[02:58:07]OFD Sender: No OFD packet to send [02:58:12]OFD Sender: No OFD packet to send [02:58:17]OFD Sender: No OFD packet to send [02:58:22]OFD Sender: No OFD packet to send [02:58:27]OFD Sender: No OFD packet to send [02:58:32]OFD Sender: No OFD packet to send [02:58:37]OFD Sender: No OFD packet to send [02:58:42]OFD Sender: No OFD packet to send [02:58:47]OFD Sender: No OFD packet to send [02:58:52]OFD Sender: No OFD packet to send [02:58:57]OFD Sender: No OFD packet to send [02:59:02]OFD Sender: No OFD packet to send [02:59:07]OFD Sender: No OFD packet to send [02:59:12]OFD Sender: No OFD packet to send [02:59:17]OFD Sender: No OFD packet to send [02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:13]OFD Sender: No OFD packet to send [03:05:18]OFD Sender: No OFD packet to send [03:05:23]OFD Sender: No OFD packet to send [03:05:28]OFD Sender: No OFD packet to send [03:05:33]OFD Sender: No OFD packet to send [03:05:38]OFD Sender: No OFD packet to send [03:05:43]OFD Sender: No OFD packet to send [03:05:48]OFD Sender: No OFD packet to send [03:05:53]OFD Sender: No OFD packet to send [03:05:58]OFD Sender: No OFD packet to send [03:06:03]OFD Sender: No OFD packet to send [03:06:08]OFD Sender: No OFD packet to send [03:06:13]OFD Sender: No OFD packet to send [03:06:18]OFD Sender: No OFD packet to send [03:06:23]OFD Sender: No OFD packet to send [03:06:28]OFD Sender: No OFD packet to send [03:06:33]OFD Sender: No OFD packet to send [03:06:38]OFD Sender: No OFD packet to send [03:06:43]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send [03:07:13]OFD Sender: No OFD packet to send [03:07:18]OFD Sender: No OFD packet to send [03:07:23]OFD Sender: No OFD packet to send [03:07:28]OFD Sender: No OFD packet to send [03:07:33]OFD Sender: No OFD packet to send [03:07:38]OFD Sender: No OFD packet to send [03:07:43]OFD Sender: No OFD packet to send [03:07:48]OFD Sender: No OFD packet to send [03:07:53]OFD Sender: No OFD packet to send [03:07:58]OFD Sender: No OFD packet to send [03:08:03]OFD Sender: No OFD packet to send [03:08:08]OFD Sender: No OFD packet to send [03:08:13]OFD Sender: No OFD packet to send [03:08:18]OFD Sender: No OFD packet to send [03:08:23]OFD Sender: No OFD packet to send [03:08:28]OFD Sender: No OFD packet to send [03:08:33]OFD Sender: No OFD packet to send [03:08:38]OFD Sender: No OFD packet to send [03:08:43]OFD Sender: No OFD packet to send [03:08:48]OFD Sender: No OFD packet to send [03:08:53]OFD Sender: No OFD packet to send [03:08:58]OFD Sender: No OFD packet to send [03:09:03]OFD Sender: No OFD packet to send [03:09:08]OFD Sender: No OFD packet to send [03:09:13]OFD Sender: No OFD packet to send [03:09:18]OFD Sender: No OFD packet to send [03:09:23]OFD Sender: No OFD packet to send [03:09:28]OFD Sender: No OFD packet to send [03:09:33]OFD Sender: No OFD packet to send [03:09:38]OFD Sender: No OFD packet to send [03:09:43]OFD Sender: No OFD packet to send [03:09:48]OFD Sender: No OFD packet to send [03:09:53]OFD Sender: No OFD packet to send [03:09:58]OFD Sender: No OFD packet to send [03:10:03]OFD Sender: No OFD packet to send [03:10:08]OFD Sender: No OFD packet to send [03:10:13]OFD Sender: No OFD packet to send [03:10:18]OFD Sender: No OFD packet to send [03:10:23]OFD Sender: No OFD packet to send [03:10:28]OFD Sender: No OFD packet to send [03:10:33]OFD Sender: No OFD packet to send [03:10:38]OFD Sender: No OFD packet to send [03:10:43]OFD Sender: No OFD packet to send [03:10:48]OFD Sender: No OFD packet to send [03:10:53]OFD Sender: No OFD packet to send [03:10:58]OFD Sender: No OFD packet to send [03:11:03]OFD Sender: No OFD packet to send [03:11:08]OFD Sender: No OFD packet to send [03:11:13]OFD Sender: No OFD packet to send [03:11:18]OFD Sender: No OFD packet to send [03:11:23]OFD Sender: No OFD packet to send [03:11:28]OFD Sender: No OFD packet to send [03:11:33]OFD Sender: No OFD packet to send [03:11:38]OFD Sender: No OFD packet to send [03:11:43]OFD Sender: No OFD packet to send [03:11:48]OFD Sender: No OFD packet to send [03:11:53]OFD Sender: No OFD packet to send [03:11:58]OFD Sender: No OFD packet to send [03:12:03]OFD Sender: No OFD packet to send [03:12:08]OFD Sender: No OFD packet to send [03:12:13]OFD Sender: No OFD packet to send [03:12:18]OFD Sender: No OFD packet to send [03:12:23]OFD Sender: No OFD packet to send [03:12:28]OFD Sender: No OFD packet to send [03:12:33]OFD Sender: No OFD packet to send [03:12:38]OFD Sender: No OFD packet to send [03:12:43]OFD Sender: No OFD packet to send [03:12:48]OFD Sender: No OFD packet to send [03:12:53]OFD Sender: No OFD packet to send [03:12:58]OFD Sender: No OFD packet to send [03:13:03]OFD Sender: No OFD packet to send [03:13:08]OFD Sender: No OFD packet to send [03:13:13]OFD Sender: No OFD packet to send [03:13:18]OFD Sender: No OFD packet to send [03:13:23]OFD Sender: No OFD packet to send [03:13:28]OFD Sender: No OFD packet to send [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:28]OFD Sender: No OFD packet to send [03:16:33]OFD Sender: No OFD packet to send [03:16:38]OFD Sender: No OFD packet to send [03:16:43]OFD Sender: No OFD packet to send [03:16:48]OFD Sender: No OFD packet to send [03:16:53]OFD Sender: No OFD packet to send [03:16:58]OFD Sender: No OFD packet to send [03:17:03]OFD Sender: No OFD packet to send [03:17:08]OFD Sender: No OFD packet to send [03:17:13]OFD Sender: No OFD packet to send [03:17:18]OFD Sender: No OFD packet to send [03:17:23]OFD Sender: No OFD packet to send [03:17:28]OFD Sender: No OFD packet to send [03:17:33]OFD Sender: No OFD packet to send [03:17:38]OFD Sender: No OFD packet to send [03:17:43]OFD Sender: No OFD packet to send [03:17:48]OFD Sender: No OFD packet to send [03:17:53]OFD Sender: No OFD packet to send [03:17:58]OFD Sender: No OFD packet to send [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:18]OFD Sender: No OFD packet to send [03:18:23]OFD Sender: No OFD packet to send [03:18:28]OFD Sender: No OFD packet to send [03:18:33]OFD Sender: No OFD packet to send [03:18:38]OFD Sender: No OFD packet to send [03:18:43]OFD Sender: No OFD packet to send [03:18:48]OFD Sender: No OFD packet to send [03:18:53]OFD Sender: No OFD packet to send [03:18:58]OFD Sender: No OFD packet to send [03:19:03]OFD Sender: No OFD packet to send [03:19:08]OFD Sender: No OFD packet to send [03:19:13]OFD Sender: No OFD packet to send [03:19:18]OFD Sender: No OFD packet to send [03:19:23]OFD Sender: No OFD packet to send [03:19:28]OFD Sender: No OFD packet to send [03:19:33]OFD Sender: No OFD packet to send [03:19:38]OFD Sender: No OFD packet to send [03:19:43]OFD Sender: No OFD packet to send [03:19:48]OFD Sender: No OFD packet to send [03:19:53]OFD Sender: No OFD packet to send [03:19:58]OFD Sender: No OFD packet to send [03:20:03]OFD Sender: No OFD packet to send [03:20:08]OFD Sender: No OFD packet to send [03:20:13]OFD Sender: No OFD packet to send [03:20:18]OFD Sender: No OFD packet to send [03:20:23]OFD Sender: No OFD packet to send [03:20:28]OFD Sender: No OFD packet to send [03:20:33]OFD Sender: No OFD packet to send [03:20:38]OFD Sender: No OFD packet to send [03:20:43]OFD Sender: No OFD packet to send [03:20:48]OFD Sender: No OFD packet to send [03:20:53]OFD Sender: No OFD packet to send [03:20:58]OFD Sender: No OFD packet to send [03:21:03]OFD Sender: No OFD packet to send [03:21:08]OFD Sender: No OFD packet to send [03:21:13]OFD Sender: No OFD packet to send [03:21:18]OFD Sender: No OFD packet to send [03:21:23]OFD Sender: No OFD packet to send [03:21:28]OFD Sender: No OFD packet to send [03:21:33]OFD Sender: No OFD packet to send [03:21:38]OFD Sender: No OFD packet to send [03:21:43]OFD Sender: No OFD packet to send [03:21:48]OFD Sender: No OFD packet to send [03:21:53]OFD Sender: No OFD packet to send [03:21:58]OFD Sender: No OFD packet to send [03:22:03]OFD Sender: No OFD packet to send [03:22:08]OFD Sender: No OFD packet to send [03:22:13]OFD Sender: No OFD packet to send [03:22:18]OFD Sender: No OFD packet to send [03:22:23]OFD Sender: No OFD packet to send [03:22:28]OFD Sender: No OFD packet to send [03:22:33]OFD Sender: No OFD packet to send [03:22:38]OFD Sender: No OFD packet to send [03:22:43]OFD Sender: No OFD packet to send [03:22:48]OFD Sender: No OFD packet to send [03:22:53]OFD Sender: No OFD packet to send [03:22:58]OFD Sender: No OFD packet to send [03:23:03]OFD Sender: No OFD packet to send [03:23:08]OFD Sender: No OFD packet to send [03:23:13]OFD Sender: No OFD packet to send [03:23:18]OFD Sender: No OFD packet to send [03:23:23]OFD Sender: No OFD packet to send [03:23:28]OFD Sender: No OFD packet to send [03:23:33]OFD Sender: No OFD packet to send [03:23:38]OFD Sender: No OFD packet to send [03:23:43]OFD Sender: No OFD packet to send [03:23:48]OFD Sender: No OFD packet to send [03:23:53]OFD Sender: No OFD packet to send [03:23:58]OFD Sender: No OFD packet to send [03:24:03]OFD Sender: No OFD packet to send [03:24:08]OFD Sender: No OFD packet to send [03:24:13]OFD Sender: No OFD packet to send [03:24:18]OFD Sender: No OFD packet to send [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:58]OFD Sender: No OFD packet to send [03:26:03]OFD Sender: No OFD packet to send [03:26:08]OFD Sender: No OFD packet to send [03:26:13]OFD Sender: No OFD packet to send [03:26:18]OFD Sender: No OFD packet to send [03:26:23]OFD Sender: No OFD packet to send [03:26:28]OFD Sender: No OFD packet to send [03:26:33]OFD Sender: No OFD packet to send [03:26:38]OFD Sender: No OFD packet to send [03:26:43]OFD Sender: No OFD packet to send [03:26:48]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:34]OFD Sender: No OFD packet to send [03:29:39]OFD Sender: No OFD packet to send [03:29:44]OFD Sender: No OFD packet to send [03:29:49]OFD Sender: No OFD packet to send [03:29:54]OFD Sender: No OFD packet to send [03:29:59]OFD Sender: No OFD packet to send [03:30:04]OFD Sender: No OFD packet to send [03:30:09]OFD Sender: No OFD packet to send [03:30:14]OFD Sender: No OFD packet to send [03:30:19]OFD Sender: No OFD packet to send [03:30:24]OFD Sender: No OFD packet to send [03:30:29]OFD Sender: No OFD packet to send [03:30:34]OFD Sender: No OFD packet to send [03:30:39]OFD Sender: No OFD packet to send [03:30:44]OFD Sender: No OFD packet to send [03:30:49]OFD Sender: No OFD packet to send [03:30:54]OFD Sender: No OFD packet to send [03:30:59]OFD Sender: No OFD packet to send [03:31:04]OFD Sender: No OFD packet to send [03:31:09]OFD Sender: No OFD packet to send [03:31:14]OFD Sender: No OFD packet to send [03:31:19]OFD Sender: No OFD packet to send [03:31:24]OFD Sender: No OFD packet to send [03:31:29]OFD Sender: No OFD packet to send [03:31:34]OFD Sender: No OFD packet to send [03:31:39]OFD Sender: No OFD packet to send [03:31:44]OFD Sender: No OFD packet to send [03:31:49]OFD Sender: No OFD packet to send [03:31:54]OFD Sender: No OFD packet to send [03:31:59]OFD Sender: No OFD packet to send [03:32:04]OFD Sender: No OFD packet to send [03:32:09]OFD Sender: No OFD packet to send [03:32:14]OFD Sender: No OFD packet to send [03:32:19]OFD Sender: No OFD packet to send [03:32:24]OFD Sender: No OFD packet to send [03:32:29]OFD Sender: No OFD packet to send [03:32:34]OFD Sender: No OFD packet to send [03:32:39]OFD Sender: No OFD packet to send [03:32:44]OFD Sender: No OFD packet to send [03:32:49]OFD Sender: No OFD packet to send [03:32:54]OFD Sender: No OFD packet to send [03:32:59]OFD Sender: No OFD packet to send [03:33:04]OFD Sender: No OFD packet to send [03:33:09]OFD Sender: No OFD packet to send [03:33:14]OFD Sender: No OFD packet to send [03:33:19]OFD Sender: No OFD packet to send [03:33:24]OFD Sender: No OFD packet to send [03:33:29]OFD Sender: No OFD packet to send [03:33:34]OFD Sender: No OFD packet to send [03:33:39]OFD Sender: No OFD packet to send [03:33:44]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:23]accept exits with 10 [03:39:23]New connection [03:39:23]New thread 3066965348 created [03:39:23]Thread 3066821988 joined [03:39:23]Waiting for new connection... [03:39:23] Sock 10.Parse request [03:39:23]Sock 10.Check first char [03:39:23]Sock 10.First char is OK [03:39:23]request: POST /json_proto HTTP/1.0 [03:39:23]Method: POST [03:39:23]URL: /json_proto [03:39:23]Method is POST - this is cgi request [03:39:23]url: /json_proto [03:39:23]query_string will be loaded in cgi processing [03:39:23]execute_cgi json_proto POST (null) [03:39:23]execute_cgi path=json_proto method=POST [03:39:23]POST find Content-Length [03:39:23]Host: 172.17.39.68:8080 [03:39:23]Content-Length: 883 [03:39:23]Content-Type: application/json [03:39:23] [03:39:23]POST finish read [03:39:23]Found Content-Length = 883 [03:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214278", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 2.000, "sum" : 314.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 594.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:23]execute_script... [03:39: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 : (3)214278", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 157.00, "quantity" : 2.000, "sum" : 314.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 2.000, "sum" : 280.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 594.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:39:23]POST & json_proto [03:39:23]process_json_proto [03:39:23]json parsed OK: [03:39:23]protocol is kg_v1.0 [03:39:23]action value=close_receipt [03:39:23]process_action close_receipt [03:39:23]cmd_close_receipt [03:39:23]MH_GetDate [03:39:23]Write to MH i2c: F0 00 00 61 10 60 [03:39:23]Write i2c OK [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: F0 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: F0 09 00 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: F0 09 00 61 10 00 6D EB 95 66 D6 48 95 66 D5 [03:39:23]GetLastDocTimeStamp 1721098371 [03:39:23]current date 1721101165 [03:39:23]FM_GetShiftState [03:39:23]SAM_PROTO_GetShiftState [03:39:23]wFMCommunicate request_size=4 [03:39:23]MH_SAM_APDU [03:39:23]CAPDU: 80 13 01 00 [03:39:23]Write to MH i2c: E2 08 00 62 10 80 13 01 00 00 00 00 00 EF [03:39:23]Write i2c OK [03:39:23]MH_I2C_Read... [03:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:23]Read from MH i2c: E2 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: E2 0E 00 [03:39:23]MH_I2C_Read... [03:39:23]Read from MH i2c: E2 0E 00 62 10 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 3E [03:39:23]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [03:39:23]wFMCommunicate OK [03:39:23]SAM_PROTO_GetShiftState done [03:39:23]FM_GetShiftState done [03:39:23]opened in 1721088399 [03:39:23]opened+sec_in_day 1721174799 [03:39:23]quantity*price = 31400 [03:39:23]sum+1 = 31401 [03:39:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 2.000 * 140.00 = 280.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 594.00 НСП 1% : 5.26 НДС 12% : 63.07 Наличными: 594.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 16 16.07.2024 03:39 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31697 ФПД: 267472709034078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T033925&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31697&fm=267472709034078&tin=02508201610067®Number=0000000000098025&sum=59400 0 [03:39:24]StoreToDocumentArchive [03:39:24]shift 371 fd 31697 [03:39:24]save to /storage/0371/doc_00031697 [03:39:24]save last doc name /storage/0371/doc_00031697 to /storage/kkm_last_doc_name [03:39:24]save OK [03:39:24]Clear old archive folders... [03:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=381 [03:39:24]tlvbuf is 0148F520 [03:39:24]SAM_PROTO_ClearQueue [03:39:24]wFMCommunicate request_size=4 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 09 00 00 [03:39:24]Write to MH i2c: E2 08 00 6F 10 80 09 00 00 00 00 00 00 F1 [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:24]Read from MH i2c: E2 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 6F 10 00 90 00 F3 [03:39:24]RAPDU: 90 00 [03:39:24]wFMCommunicate OK [03:39:24]SAM_PROTO_ClearQueue done [03:39:24]KKMCreateOFDPacket [03:39:24]OFDProtocolAddRootSTLVToBuf [03:39:24]FM_MakeSignedData [03:39:24]FM_MakeSignedData [03:39:24]SAM_PROTO_SignData [03:39:24]wFMCommunicate request_size=4 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 0D 01 02 [03:39:24]Write to MH i2c: E2 08 00 70 10 80 0D 01 02 00 00 00 00 F9 [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:24]Read from MH i2c: E2 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 70 10 00 90 00 F4 [03:39:24]RAPDU: 90 00 [03:39:24]wFMCommunicate OK [03:39:24]wFMCommunicate request_size=255 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 A8 7A 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 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 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 08 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 [03:39:24]Write to MH i2c: E2 02 01 71 10 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 A8 7A 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 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 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 08 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 30 [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]OFD Sender: No OFD packet to send [03:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:24]Read from MH i2c: E2 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 71 10 00 90 00 F5 [03:39:24]RAPDU: 90 00 [03:39:24]wFMCommunicate OK [03:39:24]wFMCommunicate request_size=140 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 18 00 00 00 00 07 04 06 00 08 E8 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 6D EB 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D1 7B 00 00 35 04 06 00 F3 43 D7 CF 20 5E [03:39:24]Write to MH i2c: E2 8F 00 72 10 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 18 00 00 00 00 07 04 06 00 08 E8 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 6D EB 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D1 7B 00 00 35 04 06 00 F3 43 D7 CF 20 5E 00 00 66 [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:24]Read from MH i2c: E2 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 [03:39:24]MH_I2C_Read... [03:39:24]Read from MH i2c: E2 03 00 72 10 00 90 00 F6 [03:39:24]RAPDU: 90 00 [03:39:24]wFMCommunicate OK [03:39:24]wFMCommunicate request_size=4 [03:39:24]MH_SAM_APDU [03:39:24]CAPDU: 80 0D 03 02 [03:39:24]Write to MH i2c: E2 08 00 73 10 80 0D 03 02 00 00 00 00 FE [03:39:24]Write i2c OK [03:39:24]MH_I2C_Read... [03:39:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:25]Read from MH i2c: E2 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 0B 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 0B 00 73 10 00 3F ED CF 41 F9 D2 D5 30 90 00 0B [03:39:25]RAPDU: 3F ED CF 41 F9 D2 D5 30 90 00 [03:39:25]wFMCommunicate OK [03:39:25]SAM_PROTO_SignData done [03:39:25]FM_MakeSignedData done [03:39:25]CreateOFDProtocolMessage [03:39:25]wFMCommunicate request_size=4 [03:39:25]MH_SAM_APDU [03:39:25]CAPDU: 80 11 00 00 [03:39:25]Write to MH i2c: E2 08 00 74 10 80 11 00 00 00 00 00 00 FE [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:25]Read from MH i2c: E2 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 17 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: E2 17 00 74 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 59 [03:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [03:39:25]wFMCommunicate OK [03:39:25]CreateOFDProtocolMessage done [03:39:25]OFDSenderStorePacket 31697 [03:39:25]StoreOFDPacket docnum=31697 [03:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 91 01 00 00 74 CC 89 01 22 6D 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 A8 7A 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 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 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 08 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 18 00 00 00 00 07 04 06 00 08 E8 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 6D EB 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D1 7B 00 00 35 04 06 00 F3 43 D7 CF 20 5E 3F ED CF 41 F9 D2 D5 30 [03:39:25]CheckFolder [03:39:25]dirname=/storage/ofd_packets [03:39:25]CheckFolder done [03:39:25]ProducePacketName [03:39:25]name=ofd_packets/00031697 [03:39:25]NVStorageSaveData ofd_packets/00031697 [03:39:25]File name is /storage/ofd_packets/00031697 [03:39:25]Write 431 bytes [03:39:25]NVStorageSaveData done [03:39:25]OFDSenderStorePacket done [03:39:25]KKMCreateOFDPacket done [03:39:25]NVStorageSaveData kkm_last_timestamp [03:39:25]File name is /storage/kkm_last_timestamp [03:39:25]Write 4 bytes [03:39:25]NVStorageSaveData done [03:39:25]ExternCall_PrintAddStr [03:39:25]wPrintStart [03:39:25]Write to MH i2c: 01 00 00 75 10 85 [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 07 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 07 00 75 10 00 00 00 00 00 FF 0F 9A [03:39:25]RasterBufferAndPrint [03:39:25]line Счет N : (3)214278 [03:39:25]line ИНН: 02508201610067 [03:39:25]line Контрольно-Кассовый Чек [03:39:25]line ПРОДАЖА [03:39:25]line Товар: 90162602 [03:39:25]line Энерг напиток Red bull 0,25л [03:39:25]line 2.000 * 157.00 [03:39:25]line = 314.00 [03:39:25]line НДС 12% НСП 1% [03:39:25]line > о реализуемом товаре [03:39:25]line Товар: 48743570 [03:39:25]line Сигареты Winston XStyle Blue [03:39:25]line 2.000 * 140.00 [03:39:25]line = 280.00 [03:39:25]line НДС 12% НСП 1% [03:39:25]line > о реализуемом товаре [03:39:25]line ИТОГО: 594.00 [03:39:25]line НСП 1% : 5.26 [03:39:25]line НДС 12% : 63.07 [03:39:25]line Наличными: 594.00 [03:39:25]line Безнал.: 0.00 [03:39:25]line Место: АЗС № 140 "Партнер Нефть" [03:39:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:39:25]line СНО: Общий режим [03:39:25]line Чек 16 16.07.2024 03:39 [03:39:25]line Смена: 371 ФФД: 1.0 [03:39:25]line ЗНМ: 0300000189 [03:39:25]line РНМ: 0000000000098025 [03:39:25]line Версия ККМ: 001 [03:39:25]line ФМ: 0000000000965389 [03:39:25]line ФД: 31697 [03:39:25]line ФПД: 267472709034078 [03:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T033925&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31697&fm=267472709034078&tin=02508201610067®Number=0000000000098025&sum=59400 [03:39:25]line 0 [03:39:25]OFD Sender: Processing packet 31697 [packets to send 6, broken 5] [03:39:25]ProducePacketName [03:39:25]name=ofd_packets/00031697 [03:39:25]OFD Sender: To server: pG, [03:39:25]CommunicateWithHost lk.salyk.kg:30040 [03:39:25]ConnectInit lk.salyk.kg [03:39:25]written 0, free lines is 4095 [03:39:25]Connected sock=9 [03:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 91 01 00 00 74 CC 89 01 22 6D 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 54 3D 00 00 00 00 13 04 06 00 A8 7A 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 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 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 08 E8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 18 00 00 00 00 07 04 06 00 08 E8 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 6D EB 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D1 7B 00 00 35 04 06 00 F3 43 D7 CF 20 5E 3F ED CF 41 F9 D2 D5 30 [03:39:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 10 9F 47 00 B5 2E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D1 7B 00 00 F4 03 04 00 7C 97 95 66 B6 04 01 00 00 10 52 ED BD A5 EE B0 C8 [03:39:25]CommunicateWithHost err = 0 [03:39:25]CheckOFDResponse [03:39:25]1017 (14) - 77093643461234 [03:39:25]1041 (16) - 0000000000965389 [03:39:25]1040 (4) - 31697 [03:39:25]1012 (4) - 15.07.2024 21:41 [03:39:25]1206 (1) - 0 [03:39:25]OFD Sender: Remove packet 31697 [03:39:25]ProducePacketName [03:39:25]name=ofd_packets/00031697 [03:39:25]NVStorageDeleteData [03:39:25]Write to MH i2c: 01 00 00 A3 10 B3 [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 07 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: 01 07 00 A3 10 00 00 00 00 00 9F 0C 65 [03:39:25]RasterBufferAndPrint [03:39:25]line [03:39:25]line [03:39:25]line [03:39:25]line [03:39:25]line [03:39:25]written 0, free lines is 3237 [03:39:25]MH_Cut [03:39:25]Write to MH i2c: D1 01 00 AA 10 01 8C [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: D1 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: D1 01 00 [03:39:25]MH_I2C_Read... [03:39:25]Read from MH i2c: D1 01 00 AA 10 00 8B [03:39:25]Write to MH i2c: 01 00 00 AB 10 BB [03:39:25]Write i2c OK [03:39:25]MH_I2C_Read... [03:39:26]OFD Sender: No OFD packet to send [03:39:26]*** Cut start [03:39:26]*** Partial cut [03:39:26]*** CUTSNS_PIN = 1 [03:39:26]*** CUTSNS_PIN = 0 [03:39:27]*** Brake cut motor [03:39:27]Read from MH i2c: 01 [03:39:27]MH_I2C_Read... [03:39:27]*** Stop cut motor [03:39:27]*** Cut end [03:39:27]Read from MH i2c: 01 07 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: 01 07 00 AB 10 00 00 00 00 00 FF 0F D0 [03:39:27]process_action close_receipt done [03:39:27]requested_data is exist [03:39:27]produce_requested_data [03:39:27]requested_item fm.sn is exist - process it [03:39:27]wFMCommunicate request_size=4 [03:39:27]MH_SAM_APDU [03:39:27]CAPDU: 80 11 00 00 [03:39:27]Write to MH i2c: E2 08 00 AC 10 80 11 00 00 00 00 00 00 36 [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:27]Read from MH i2c: E2 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 17 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 17 00 AC 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 91 [03:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [03:39:27]wFMCommunicate OK [03:39:27]requested_item fd.num is exist - process it [03:39:27]SAM_PROTO_GetFieldsCounters [03:39:27]wFMCommunicate request_size=4 [03:39:27]MH_SAM_APDU [03:39:27]CAPDU: 80 13 00 00 [03:39:27]Write to MH i2c: E2 08 00 AD 10 80 13 00 00 00 00 00 00 39 [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:27]Read from MH i2c: E2 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 62 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 62 00 AD 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D1 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [03:39: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D1 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:39:27]wFMCommunicate OK [03:39:27]SAM_PROTO_GetFieldsCounters done [03:39:27]requested_item shift.num is exist - process it [03:39:27]requested_item shift.opened is exist - process it [03:39:27]req_shift_opened [03:39:27]FM_GetShiftState [03:39:27]SAM_PROTO_GetShiftState [03:39:27]wFMCommunicate request_size=4 [03:39:27]MH_SAM_APDU [03:39:27]CAPDU: 80 13 01 00 [03:39:27]Write to MH i2c: E2 08 00 AE 10 80 13 01 00 00 00 00 00 3B [03:39:27]Write i2c OK [03:39:27]MH_I2C_Read... [03:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:27]Read from MH i2c: E2 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 0E 00 [03:39:27]MH_I2C_Read... [03:39:27]Read from MH i2c: E2 0E 00 AE 10 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 8A [03:39:27]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [03:39:27]wFMCommunicate OK [03:39:27]SAM_PROTO_GetShiftState done [03:39:27]FM_GetShiftState done [03:39:27]req_shift_opened done [03:39:27]requested_item shift.open_date is exist - process it [03:39:27]req_shift_open_date [03:39:27]req_shift_open_date done [03:39:27]produce_requested_data done [03:39:27]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31697,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [03:39:27]process_action_free close_receipt [03:39:27]json_value_free [03:39:27]json_value_free done [03:39:27]process_json_proto returns [03:39:27]Send response to host [03:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31697,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [03:39:27]free response buf [03:39:27]execute_script done [03:39:27]execute_script returns [03:39:27]free content buf [03:39:27]Sock 10.Close socket [03:39:27]Sock 10.Thread stoped [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]OFD Sender: No OFD packet to send [03:40:11]OFD Sender: No OFD packet to send [03:40:16]OFD Sender: No OFD packet to send [03:40:21]OFD Sender: No OFD packet to send [03:40:26]OFD Sender: No OFD packet to send [03:40:31]OFD Sender: No OFD packet to send [03:40:36]OFD Sender: No OFD packet to send [03:40:41]OFD Sender: No OFD packet to send [03:40:46]OFD Sender: No OFD packet to send [03:40:51]OFD Sender: No OFD packet to send [03:40:56]OFD Sender: No OFD packet to send [03:41:01]OFD Sender: No OFD packet to send [03:41:06]OFD Sender: No OFD packet to send [03:41:11]OFD Sender: No OFD packet to send [03:41:16]OFD Sender: No OFD packet to send [03:41:21]OFD Sender: No OFD packet to send [03:41:26]OFD Sender: No OFD packet to send [03:41:31]OFD Sender: No OFD packet to send [03:41:36]OFD Sender: No OFD packet to send [03:41:41]OFD Sender: No OFD packet to send [03:41:46]OFD Sender: No OFD packet to send [03:41:51]OFD Sender: No OFD packet to send [03:41:56]OFD Sender: No OFD packet to send [03:42:01]OFD Sender: No OFD packet to send [03:42:06]OFD Sender: No OFD packet to send [03:42:11]OFD Sender: No OFD packet to send [03:42:16]OFD Sender: No OFD packet to send [03:42:21]OFD Sender: No OFD packet to send [03:42:26]OFD Sender: No OFD packet to send [03:42:31]OFD Sender: No OFD packet to send [03:42:36]OFD Sender: No OFD packet to send [03:42:41]OFD Sender: No OFD packet to send [03:42:43]accept exits with 7 [03:42:43]New connection [03:42:43]New thread 3066821988 created [03:42:43]Thread 3066965348 joined [03:42:43]Waiting for new connection... [03:42:43] Sock 7.Parse request [03:42:43]Sock 7.Check first char [03:42:43]Sock 7.First char is OK [03:42:43]request: POST /json_proto HTTP/1.0 [03:42:43]Method: POST [03:42:43]URL: /json_proto [03:42:43]Method is POST - this is cgi request [03:42:43]url: /json_proto [03:42:43]query_string will be loaded in cgi processing [03:42:43]execute_cgi json_proto POST (null) [03:42:43]execute_cgi path=json_proto method=POST [03:42:43]POST find Content-Length [03:42:43]Host: 172.17.39.68:8080 [03:42:43]Content-Length: 716 [03:42:43]Content-Type: application/json [03:42:43] [03:42:43]POST finish read [03:42:43]Found Content-Length = 716 [03:42:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214279", "tax_sys" : 0, "items" : [ { "code": "4860103356611", "name": "\u041F\u0438\u0432\u043E \u041C\u0438\u043B\u043B\u0435\u0440 \u0414\u0436\u0435\u043D\u044C\u044E\u043D \u0414\u0440\u0430\u0444\u0442 0,5\u043B \u0441\u0442", "price" : 260.00, "quantity" : 1.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" ] } } [03:42:43]execute_script... [03:42:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214279", "tax_sys" : 0, "items" : [ { "code": "4860103356611", "name": "\u041F\u0438\u0432\u043E \u041C\u0438\u043B\u043B\u0435\u0440 \u0414\u0436\u0435\u043D\u044C\u044E\u043D \u0414\u0440\u0430\u0444\u0442 0,5\u043B \u0441\u0442", "price" : 260.00, "quantity" : 1.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" ] } } [03:42:43]POST & json_proto [03:42:43]process_json_proto [03:42:43]json parsed OK: [03:42:43]protocol is kg_v1.0 [03:42:43]action value=close_receipt [03:42:43]process_action close_receipt [03:42:43]cmd_close_receipt [03:42:43]MH_GetDate [03:42:43]Write to MH i2c: F0 00 00 AF 10 AE [03:42:43]Write i2c OK [03:42:43]MH_I2C_Read... [03:42:43]Read from MH i2c: F0 [03:42:43]MH_I2C_Read... [03:42:43]Read from MH i2c: F0 09 00 [03:42:43]MH_I2C_Read... [03:42:43]Read from MH i2c: F0 09 00 AF 10 00 35 EC 95 66 D6 48 95 66 EC [03:42:43]GetLastDocTimeStamp 1721101165 [03:42:43]current date 1721101365 [03:42:43]FM_GetShiftState [03:42:43]SAM_PROTO_GetShiftState [03:42:43]wFMCommunicate request_size=4 [03:42:43]MH_SAM_APDU [03:42:43]CAPDU: 80 13 01 00 [03:42:43]Write to MH i2c: E2 08 00 B0 10 80 13 01 00 00 00 00 00 3D [03:42:43]Write i2c OK [03:42:43]MH_I2C_Read... [03:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:42:43]Read from MH i2c: E2 [03:42:43]MH_I2C_Read... [03:42:43]Read from MH i2c: E2 0E 00 [03:42:43]MH_I2C_Read... [03:42:43]Read from MH i2c: E2 0E 00 B0 10 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 8C [03:42:43]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [03:42:43]wFMCommunicate OK [03:42:43]SAM_PROTO_GetShiftState done [03:42:43]FM_GetShiftState done [03:42:43]opened in 1721088399 [03:42:43]opened+sec_in_day 1721174799 [03:42:43]quantity*price = 26000 [03:42:43]sum+1 = 26001 [03:42:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 17 16.07.2024 03:42 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31698 ФПД: 174772839602607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T034245&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31698&fm=174772839602607&tin=02508201610067®Number=0000000000098025&sum=26000 0 [03:42:44]StoreToDocumentArchive [03:42:44]shift 371 fd 31698 [03:42:44]save to /storage/0371/doc_00031698 [03:42:44]save last doc name /storage/0371/doc_00031698 to /storage/kkm_last_doc_name [03:42:44]save OK [03:42:44]Clear old archive folders... [03:42:44]ProcessDocumentItem done err = 0, tmpTLVsize=300 [03:42:44]tlvbuf is 01504B10 [03:42:44]SAM_PROTO_ClearQueue [03:42:44]wFMCommunicate request_size=4 [03:42:44]MH_SAM_APDU [03:42:44]CAPDU: 80 09 00 00 [03:42:44]Write to MH i2c: E2 08 00 BD 10 80 09 00 00 00 00 00 00 3F [03:42:44]Write i2c OK [03:42:44]MH_I2C_Read... [03:42:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:42:44]Read from MH i2c: E2 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 03 00 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 03 00 BD 10 00 90 00 41 [03:42:44]RAPDU: 90 00 [03:42:44]wFMCommunicate OK [03:42:44]SAM_PROTO_ClearQueue done [03:42:44]KKMCreateOFDPacket [03:42:44]OFDProtocolAddRootSTLVToBuf [03:42:44]FM_MakeSignedData [03:42:44]FM_MakeSignedData [03:42:44]SAM_PROTO_SignData [03:42:44]wFMCommunicate request_size=4 [03:42:44]MH_SAM_APDU [03:42:44]CAPDU: 80 0D 01 02 [03:42:44]Write to MH i2c: E2 08 00 BE 10 80 0D 01 02 00 00 00 00 47 [03:42:44]Write i2c OK [03:42:44]MH_I2C_Read... [03:42:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:42:44]Read from MH i2c: E2 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 03 00 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 03 00 BE 10 00 90 00 42 [03:42:44]RAPDU: 90 00 [03:42:44]wFMCommunicate OK [03:42:44]wFMCommunicate request_size=255 [03:42:44]MH_SAM_APDU [03:42:44]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 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 11 00 00 00 F4 03 04 00 35 EC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 [03:42:44]Write to MH i2c: E2 02 01 BF 10 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 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 11 00 00 00 F4 03 04 00 35 EC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 E1 [03:42:44]Write i2c OK [03:42:44]MH_I2C_Read... [03:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:42:44]Read from MH i2c: E2 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 03 00 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 03 00 BF 10 00 90 00 43 [03:42:44]RAPDU: 90 00 [03:42:44]wFMCommunicate OK [03:42:44]wFMCommunicate request_size=59 [03:42:44]MH_SAM_APDU [03:42:44]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D2 7B 00 00 35 04 06 00 9E F4 79 05 59 AF [03:42:44]Write to MH i2c: E2 3E 00 C0 10 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D2 7B 00 00 35 04 06 00 9E F4 79 05 59 AF 00 00 D7 [03:42:44]Write i2c OK [03:42:44]MH_I2C_Read... [03:42:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:42:44]Read from MH i2c: E2 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 03 00 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 03 00 C0 10 00 90 00 44 [03:42:44]RAPDU: 90 00 [03:42:44]wFMCommunicate OK [03:42:44]wFMCommunicate request_size=4 [03:42:44]MH_SAM_APDU [03:42:44]CAPDU: 80 0D 03 02 [03:42:44]Write to MH i2c: E2 08 00 C1 10 80 0D 03 02 00 00 00 00 4C [03:42:44]Write i2c OK [03:42:44]MH_I2C_Read... [03:42:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:42:44]Read from MH i2c: E2 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 0B 00 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 0B 00 C1 10 00 54 47 FD 23 3C 00 AB C5 90 00 B4 [03:42:44]RAPDU: 54 47 FD 23 3C 00 AB C5 90 00 [03:42:44]wFMCommunicate OK [03:42:44]SAM_PROTO_SignData done [03:42:44]FM_MakeSignedData done [03:42:44]CreateOFDProtocolMessage [03:42:44]wFMCommunicate request_size=4 [03:42:44]MH_SAM_APDU [03:42:44]CAPDU: 80 11 00 00 [03:42:44]Write to MH i2c: E2 08 00 C2 10 80 11 00 00 00 00 00 00 4C [03:42:44]Write i2c OK [03:42:44]MH_I2C_Read... [03:42:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:42:44]Read from MH i2c: E2 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 17 00 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: E2 17 00 C2 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A7 [03:42:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [03:42:44]wFMCommunicate OK [03:42:44]CreateOFDProtocolMessage done [03:42:44]OFDSenderStorePacket 31698 [03:42:44]StoreOFDPacket docnum=31698 [03:42:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 40 01 00 00 47 1B 38 01 55 9C 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 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 11 00 00 00 F4 03 04 00 35 EC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D2 7B 00 00 35 04 06 00 9E F4 79 05 59 AF 54 47 FD 23 3C 00 AB C5 [03:42:44]CheckFolder [03:42:44]dirname=/storage/ofd_packets [03:42:44]CheckFolder done [03:42:44]ProducePacketName [03:42:44]name=ofd_packets/00031698 [03:42:44]NVStorageSaveData ofd_packets/00031698 [03:42:44]File name is /storage/ofd_packets/00031698 [03:42:44]Write 350 bytes [03:42:44]NVStorageSaveData done [03:42:44]OFDSenderStorePacket done [03:42:44]KKMCreateOFDPacket done [03:42:44]NVStorageSaveData kkm_last_timestamp [03:42:44]File name is /storage/kkm_last_timestamp [03:42:44]Write 4 bytes [03:42:44]NVStorageSaveData done [03:42:44]ExternCall_PrintAddStr [03:42:44]wPrintStart [03:42:44]Write to MH i2c: 01 00 00 C3 10 D3 [03:42:44]Write i2c OK [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: 01 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: 01 07 00 [03:42:44]MH_I2C_Read... [03:42:44]Read from MH i2c: 01 07 00 C3 10 00 00 00 00 00 FF 0F E8 [03:42:44]RasterBufferAndPrint [03:42:44]line Счет N : (3)214279 [03:42:44]line ИНН: 02508201610067 [03:42:44]line Контрольно-Кассовый Чек [03:42:44]line ПРОДАЖА [03:42:44]line Товар: 4860103356611 [03:42:44]line Пиво Миллер Дженьюн Драфт 0,5л ст [03:42:44]line 1.000 * 260.00 [03:42:44]line = 260.00 [03:42:44]line НДС 12% НСП 1% [03:42:44]line > о реализуемом товаре [03:42:44]line ИТОГО: 260.00 [03:42:44]line НСП 1% : 2.30 [03:42:44]line НДС 12% : 27.61 [03:42:44]line Наличными: 260.00 [03:42:44]line Безнал.: 0.00 [03:42:44]line Место: АЗС № 140 "Партнер Нефть" [03:42:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:42:44]line СНО: Общий режим [03:42:44]line Чек 17 16.07.2024 03:42 [03:42:44]line Смена: 371 ФФД: 1.0 [03:42:44]line ЗНМ: 0300000189 [03:42:44]line РНМ: 0000000000098025 [03:42:44]line Версия ККМ: 001 [03:42:44]line ФМ: 0000000000965389 [03:42:44]line ФД: 31698 [03:42:44]line ФПД: 174772839602607 [03:42:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T034245&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31698&fm=174772839602607&tin=02508201610067®Number=0000000000098025&sum=26000 [03:42:45]line 0 [03:42:45]OFD Sender: Processing packet 31698 [packets to send 6, broken 5] [03:42:45]ProducePacketName [03:42:45]name=ofd_packets/00031698 [03:42:45]OFD Sender: To server: pG, [03:42:45]CommunicateWithHost lk.salyk.kg:30040 [03:42:45]ConnectInit lk.salyk.kg [03:42:45]written 0, free lines is 4095 [03:42:45]Connected sock=10 [03:42:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 40 01 00 00 47 1B 38 01 55 9C 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 36 30 31 30 33 33 35 36 36 31 31 06 04 3A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 9C D0 B8 D0 BB D0 BB D0 B5 D1 80 20 D0 94 D0 B6 D0 B5 D0 BD D1 8C D1 8E D0 BD 20 D0 94 D1 80 D0 B0 D1 84 D1 82 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 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 11 00 00 00 F4 03 04 00 35 EC 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D2 7B 00 00 35 04 06 00 9E F4 79 05 59 AF 54 47 FD 23 3C 00 AB C5 [03:42:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B0 6C 47 00 1D 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D2 7B 00 00 F4 03 04 00 44 98 95 66 B6 04 01 00 00 0E FD 00 50 5D 09 7F 75 [03:42:45]CommunicateWithHost err = 0 [03:42:45]CheckOFDResponse [03:42:45]1017 (14) - 77093643461234 [03:42:45]1041 (16) - 0000000000965389 [03:42:45]1040 (4) - 31698 [03:42:45]1012 (4) - 15.07.2024 21:44 [03:42:45]1206 (1) - 0 [03:42:45]OFD Sender: Remove packet 31698 [03:42:45]ProducePacketName [03:42:45]name=ofd_packets/00031698 [03:42:45]NVStorageDeleteData [03:42:45]Write to MH i2c: 01 00 00 EC 10 FC [03:42:45]Write i2c OK [03:42:45]MH_I2C_Read... [03:42:45]Read from MH i2c: 01 [03:42:45]MH_I2C_Read... [03:42:45]Read from MH i2c: 01 07 00 [03:42:45]MH_I2C_Read... [03:42:45]Read from MH i2c: 01 07 00 EC 10 00 00 00 00 00 F1 0C 00 [03:42:45]RasterBufferAndPrint [03:42:45]line [03:42:45]line [03:42:45]line [03:42:45]line [03:42:45]line [03:42:45]written 0, free lines is 3319 [03:42:45]MH_Cut [03:42:45]Write to MH i2c: D1 01 00 F3 10 01 D5 [03:42:45]Write i2c OK [03:42:45]MH_I2C_Read... [03:42:45]Read from MH i2c: D1 [03:42:45]MH_I2C_Read... [03:42:45]Read from MH i2c: D1 01 00 [03:42:45]MH_I2C_Read... [03:42:45]Read from MH i2c: D1 01 00 F3 10 00 D4 [03:42:45]Write to MH i2c: 01 00 00 F4 10 04 [03:42:45]Write i2c OK [03:42:45]MH_I2C_Read... [03:42:46]OFD Sender: No OFD packet to send [03:42:46]*** Cut start [03:42:46]*** Partial cut [03:42:46]*** CUTSNS_PIN = 1 [03:42:46]*** CUTSNS_PIN = 0 [03:42:46]*** Brake cut motor [03:42:47]Read from MH i2c: 01 [03:42:47]MH_I2C_Read... [03:42:47]*** Stop cut motor [03:42:47]*** Cut end [03:42:47]Read from MH i2c: 01 07 00 [03:42:47]MH_I2C_Read... [03:42:47]Read from MH i2c: 01 07 00 F4 10 00 00 00 00 00 FF 0F 19 [03:42:47]process_action close_receipt done [03:42:47]requested_data is exist [03:42:47]produce_requested_data [03:42:47]requested_item fm.sn is exist - process it [03:42:47]wFMCommunicate request_size=4 [03:42:47]MH_SAM_APDU [03:42:47]CAPDU: 80 11 00 00 [03:42:47]Write to MH i2c: E2 08 00 F5 10 80 11 00 00 00 00 00 00 7F [03:42:47]Write i2c OK [03:42:47]MH_I2C_Read... [03:42:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:42:47]Read from MH i2c: E2 [03:42:47]MH_I2C_Read... [03:42:47]Read from MH i2c: E2 17 00 [03:42:47]MH_I2C_Read... [03:42:47]Read from MH i2c: E2 17 00 F5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DA [03:42:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [03:42:47]wFMCommunicate OK [03:42:47]requested_item fd.num is exist - process it [03:42:47]SAM_PROTO_GetFieldsCounters [03:42:47]wFMCommunicate request_size=4 [03:42:47]MH_SAM_APDU [03:42:47]CAPDU: 80 13 00 00 [03:42:47]Write to MH i2c: E2 08 00 F6 10 80 13 00 00 00 00 00 00 82 [03:42:47]Write i2c OK [03:42:47]MH_I2C_Read... [03:42:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:42:47]Read from MH i2c: E2 [03:42:47]MH_I2C_Read... [03:42:47]Read from MH i2c: E2 62 00 [03:42:47]MH_I2C_Read... [03:42:47]Read from MH i2c: E2 62 00 F6 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D2 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [03:42: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D2 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:42:47]wFMCommunicate OK [03:42:47]SAM_PROTO_GetFieldsCounters done [03:42:47]requested_item shift.num is exist - process it [03:42:47]requested_item shift.opened is exist - process it [03:42:47]req_shift_opened [03:42:47]FM_GetShiftState [03:42:47]SAM_PROTO_GetShiftState [03:42:47]wFMCommunicate request_size=4 [03:42:47]MH_SAM_APDU [03:42:47]CAPDU: 80 13 01 00 [03:42:47]Write to MH i2c: E2 08 00 F7 10 80 13 01 00 00 00 00 00 84 [03:42:47]Write i2c OK [03:42:47]MH_I2C_Read... [03:42:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:42:47]Read from MH i2c: E2 [03:42:47]MH_I2C_Read... [03:42:47]Read from MH i2c: E2 0E 00 [03:42:47]MH_I2C_Read... [03:42:47]Read from MH i2c: E2 0E 00 F7 10 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 D3 [03:42:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [03:42:47]wFMCommunicate OK [03:42:47]SAM_PROTO_GetShiftState done [03:42:47]FM_GetShiftState done [03:42:47]req_shift_opened done [03:42:47]requested_item shift.open_date is exist - process it [03:42:47]req_shift_open_date [03:42:47]req_shift_open_date done [03:42:47]produce_requested_data done [03:42:47]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31698,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [03:42:47]process_action_free close_receipt [03:42:47]json_value_free [03:42:47]json_value_free done [03:42:47]process_json_proto returns [03:42:47]Send response to host [03:42:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31698,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [03:42:47]free response buf [03:42:47]execute_script done [03:42:47]execute_script returns [03:42:47]free content buf [03:42:47]Sock 7.Close socket [03:42:47]Sock 7.Thread stoped [03:42:51]OFD Sender: No OFD packet to send [03:42:56]OFD Sender: No OFD packet to send [03:43:01]OFD Sender: No OFD packet to send [03:43:06]OFD Sender: No OFD packet to send [03:43:11]OFD Sender: No OFD packet to send [03:43:16]OFD Sender: No OFD packet to send [03:43:21]OFD Sender: No OFD packet to send [03:43:26]OFD Sender: No OFD packet to send [03:43:31]OFD Sender: No OFD packet to send [03:43:36]OFD Sender: No OFD packet to send [03:43:41]OFD Sender: No OFD packet to send [03:43:46]OFD Sender: No OFD packet to send [03:43:51]OFD Sender: No OFD packet to send [03:43:56]OFD Sender: No OFD packet to send [03:44:01]OFD Sender: No OFD packet to send [03:44:06]OFD Sender: No OFD packet to send [03:44:11]OFD Sender: No OFD packet to send [03:44:16]OFD Sender: No OFD packet to send [03:44:21]OFD Sender: No OFD packet to send [03:44:26]OFD Sender: No OFD packet to send [03:44:31]OFD Sender: No OFD packet to send [03:44:36]OFD Sender: No OFD packet to send [03:44:41]OFD Sender: No OFD packet to send [03:44:46]OFD Sender: No OFD packet to send [03:44:51]OFD Sender: No OFD packet to send [03:44:56]OFD Sender: No OFD packet to send [03:45:01]OFD Sender: No OFD packet to send [03:45:06]OFD Sender: No OFD packet to send [03:45:11]OFD Sender: No OFD packet to send [03:45:16]OFD Sender: No OFD packet to send [03:45:21]OFD Sender: No OFD packet to send [03:45:26]OFD Sender: No OFD packet to send [03:45:31]OFD Sender: No OFD packet to send [03:45:36]OFD Sender: No OFD packet to send [03:45:41]OFD Sender: No OFD packet to send [03:45:46]OFD Sender: No OFD packet to send [03:45:51]OFD Sender: No OFD packet to send [03:45:56]OFD Sender: No OFD packet to send [03:46:01]OFD Sender: No OFD packet to send [03:46:06]OFD Sender: No OFD packet to send [03:46:11]OFD Sender: No OFD packet to send [03:46:16]OFD Sender: No OFD packet to send [03:46:21]OFD Sender: No OFD packet to send [03:46:26]OFD Sender: No OFD packet to send [03:46:31]OFD Sender: No OFD packet to send [03:46:36]OFD Sender: No OFD packet to send [03:46:41]OFD Sender: No OFD packet to send [03:46:46]OFD Sender: No OFD packet to send [03:46:51]OFD Sender: No OFD packet to send [03:46:56]OFD Sender: No OFD packet to send [03:47:01]OFD Sender: No OFD packet to send [03:47:06]OFD Sender: No OFD packet to send [03:47:11]OFD Sender: No OFD packet to send [03:47:16]OFD Sender: No OFD packet to send [03:47:21]OFD Sender: No OFD packet to send [03:47:26]OFD Sender: No OFD packet to send [03:47:31]OFD Sender: No OFD packet to send [03:47:36]OFD Sender: No OFD packet to send [03:47:41]OFD Sender: No OFD packet to send [03:47:46]OFD Sender: No OFD packet to send [03:47:51]OFD Sender: No OFD packet to send [03:47:56]OFD Sender: No OFD packet to send [03:48:01]OFD Sender: No OFD packet to send [03:48:06]OFD Sender: No OFD packet to send [03:48:11]OFD Sender: No OFD packet to send [03:48:16]OFD Sender: No OFD packet to send [03:48:21]OFD Sender: No OFD packet to send [03:48:26]OFD Sender: No OFD packet to send [03:48:31]OFD Sender: No OFD packet to send [03:48:36]OFD Sender: No OFD packet to send [03:48:41]OFD Sender: No OFD packet to send [03:48:46]OFD Sender: No OFD packet to send [03:48:51]OFD Sender: No OFD packet to send [03:48:56]OFD Sender: No OFD packet to send [03:49:01]OFD Sender: No OFD packet to send [03:49:06]OFD Sender: No OFD packet to send [03:49:11]OFD Sender: No OFD packet to send [03:49:16]OFD Sender: No OFD packet to send [03:49:21]OFD Sender: No OFD packet to send [03:49:26]OFD Sender: No OFD packet to send [03:49:31]OFD Sender: No OFD packet to send [03:49:36]OFD Sender: No OFD packet to send [03:49:41]OFD Sender: No OFD packet to send [03:49:46]OFD Sender: No OFD packet to send [03:49:51]OFD Sender: No OFD packet to send [03:49:56]OFD Sender: No OFD packet to send [03:50:01]OFD Sender: No OFD packet to send [03:50:06]OFD Sender: No OFD packet to send [03:50:11]OFD Sender: No OFD packet to send [03:50:16]OFD Sender: No OFD packet to send [03:50:21]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:55:11]OFD Sender: No OFD packet to send [03:55:16]OFD Sender: No OFD packet to send [03:55:21]OFD Sender: No OFD packet to send [03:55:26]OFD Sender: No OFD packet to send [03:55:31]OFD Sender: No OFD packet to send [03:55:36]OFD Sender: No OFD packet to send [03:55:41]OFD Sender: No OFD packet to send [03:55:46]OFD Sender: No OFD packet to send [03:55:51]OFD Sender: No OFD packet to send [03:55:56]OFD Sender: No OFD packet to send [03:56:01]OFD Sender: No OFD packet to send [03:56:06]OFD Sender: No OFD packet to send [03:56:11]OFD Sender: No OFD packet to send [03:56:16]OFD Sender: No OFD packet to send [03:56:21]OFD Sender: No OFD packet to send [03:56:26]OFD Sender: No OFD packet to send [03:56:31]OFD Sender: No OFD packet to send [03:56:36]OFD Sender: No OFD packet to send [03:56:41]OFD Sender: No OFD packet to send [03:56:46]OFD Sender: No OFD packet to send [03:56:51]OFD Sender: No OFD packet to send [03:56:56]OFD Sender: No OFD packet to send [03:57:01]OFD Sender: No OFD packet to send [03:57:06]OFD Sender: No OFD packet to send [03:57:11]OFD Sender: No OFD packet to send [03:57:16]OFD Sender: No OFD packet to send [03:57:20]ConnectInit Can't connect to host [03:57:21]OFD Sender: No OFD packet to send [03:57:26]OFD Sender: No OFD packet to send [03:57:28]accept exits with 9 [03:57:28]New connection [03:57:28]New thread 3066965348 created [03:57:28] Sock 9.Parse request [03:57:28]Thread 3066821988 joined [03:57:28]Sock 9.Check first char [03:57:28]Waiting for new connection... [03:57:28]Sock 9.First char is OK [03:57:28]request: POST /json_proto HTTP/1.0 [03:57:28]Method: POST [03:57:28]URL: /json_proto [03:57:28]Method is POST - this is cgi request [03:57:28]url: /json_proto [03:57:28]query_string will be loaded in cgi processing [03:57:28]execute_cgi json_proto POST (null) [03:57:28]execute_cgi path=json_proto method=POST [03:57:28]POST find Content-Length [03:57:28]Host: 172.17.39.68:8080 [03:57:28]Content-Length: 623 [03:57:28]Content-Type: application/json [03:57:28] [03:57:28]POST finish read [03:57:28]Found Content-Length = 623 [03:57:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214280", "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" ] } } [03:57:28]execute_script... [03:57: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)214280", "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" ] } } [03:57:28]POST & json_proto [03:57:28]process_json_proto [03:57:28]json parsed OK: [03:57:28]protocol is kg_v1.0 [03:57:28]action value=close_receipt [03:57:28]process_action close_receipt [03:57:28]cmd_close_receipt [03:57:28]MH_GetDate [03:57:28]Write to MH i2c: F0 00 00 F8 10 F7 [03:57:28]Write i2c OK [03:57:28]MH_I2C_Read... [03:57:28]Read from MH i2c: F0 [03:57:28]MH_I2C_Read... [03:57:28]Read from MH i2c: F0 09 00 [03:57:28]MH_I2C_Read... [03:57:28]Read from MH i2c: F0 09 00 F8 10 00 AA EF 95 66 D6 48 95 66 AD [03:57:28]GetLastDocTimeStamp 1721101365 [03:57:28]current date 1721102250 [03:57:28]FM_GetShiftState [03:57:28]SAM_PROTO_GetShiftState [03:57:28]wFMCommunicate request_size=4 [03:57:28]MH_SAM_APDU [03:57:28]CAPDU: 80 13 01 00 [03:57:28]Write to MH i2c: E2 08 00 F9 10 80 13 01 00 00 00 00 00 86 [03:57:28]Write i2c OK [03:57:28]MH_I2C_Read... [03:57:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:57:28]Read from MH i2c: E2 [03:57:28]MH_I2C_Read... [03:57:28]Read from MH i2c: E2 0E 00 [03:57:28]MH_I2C_Read... [03:57:28]Read from MH i2c: E2 0E 00 F9 10 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 D5 [03:57:28]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [03:57:28]wFMCommunicate OK [03:57:28]SAM_PROTO_GetShiftState done [03:57:28]FM_GetShiftState done [03:57:28]opened in 1721088399 [03:57:28]opened+sec_in_day 1721174799 [03:57:28]quantity*price = 14000 [03:57:28]sum+1 = 14001 [03:57:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 18 16.07.2024 03:57 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31699 ФПД: 204467083164525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T035730&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31699&fm=204467083164525&tin=02508201610067®Number=0000000000098025&sum=14000 0 [03:57:29]StoreToDocumentArchive [03:57:29]shift 371 fd 31699 [03:57:29]save to /storage/0371/doc_00031699 [03:57:29]save last doc name /storage/0371/doc_00031699 to /storage/kkm_last_doc_name [03:57:29]save OK [03:57:29]Clear old archive folders... [03:57:29]ProcessDocumentItem done err = 0, tmpTLVsize=275 [03:57:29]tlvbuf is 01476030 [03:57:29]SAM_PROTO_ClearQueue [03:57:29]wFMCommunicate request_size=4 [03:57:29]MH_SAM_APDU [03:57:29]CAPDU: 80 09 00 00 [03:57:29]Write to MH i2c: E2 08 00 06 11 80 09 00 00 00 00 00 00 89 [03:57:29]Write i2c OK [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 [03:57:29]MH_I2C_Read... [03:57:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:57:29]Read from MH i2c: E2 03 00 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 03 00 06 11 00 90 00 8B [03:57:29]RAPDU: 90 00 [03:57:29]wFMCommunicate OK [03:57:29]SAM_PROTO_ClearQueue done [03:57:29]KKMCreateOFDPacket [03:57:29]OFDProtocolAddRootSTLVToBuf [03:57:29]FM_MakeSignedData [03:57:29]FM_MakeSignedData [03:57:29]SAM_PROTO_SignData [03:57:29]wFMCommunicate request_size=4 [03:57:29]MH_SAM_APDU [03:57:29]CAPDU: 80 0D 01 02 [03:57:29]Write to MH i2c: E2 08 00 07 11 80 0D 01 02 00 00 00 00 91 [03:57:29]Write i2c OK [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 [03:57:29]MH_I2C_Read... [03:57:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:57:29]Read from MH i2c: E2 03 00 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 03 00 07 11 00 90 00 8C [03:57:29]RAPDU: 90 00 [03:57:29]wFMCommunicate OK [03:57:29]wFMCommunicate request_size=255 [03:57:29]MH_SAM_APDU [03:57:29]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 12 00 00 00 F4 03 04 00 AA EF 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [03:57:29]Write to MH i2c: E2 02 01 08 11 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 12 00 00 00 F4 03 04 00 AA EF 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 3A [03:57:29]Write i2c OK [03:57:29]MH_I2C_Read... [03:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:57:29]Read from MH i2c: E2 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 03 00 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 03 00 08 11 00 90 00 8D [03:57:29]RAPDU: 90 00 [03:57:29]wFMCommunicate OK [03:57:29]wFMCommunicate request_size=34 [03:57:29]MH_SAM_APDU [03:57:29]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D3 7B 00 00 35 04 06 00 B9 F6 33 DC 3B 6D [03:57:29]Write to MH i2c: E2 25 00 09 11 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D3 7B 00 00 35 04 06 00 B9 F6 33 DC 3B 6D 00 00 11 [03:57:29]Write i2c OK [03:57:29]MH_I2C_Read... [03:57:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:57:29]Read from MH i2c: E2 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 03 00 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 03 00 09 11 00 90 00 8E [03:57:29]RAPDU: 90 00 [03:57:29]wFMCommunicate OK [03:57:29]wFMCommunicate request_size=4 [03:57:29]MH_SAM_APDU [03:57:29]CAPDU: 80 0D 03 02 [03:57:29]Write to MH i2c: E2 08 00 0A 11 80 0D 03 02 00 00 00 00 96 [03:57:29]Write i2c OK [03:57:29]MH_I2C_Read... [03:57:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:57:29]Read from MH i2c: E2 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 0B 00 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 0B 00 0A 11 00 BB 2B 30 F1 CE 79 C5 C3 90 00 6D [03:57:29]RAPDU: BB 2B 30 F1 CE 79 C5 C3 90 00 [03:57:29]wFMCommunicate OK [03:57:29]SAM_PROTO_SignData done [03:57:29]FM_MakeSignedData done [03:57:29]CreateOFDProtocolMessage [03:57:29]wFMCommunicate request_size=4 [03:57:29]MH_SAM_APDU [03:57:29]CAPDU: 80 11 00 00 [03:57:29]Write to MH i2c: E2 08 00 0B 11 80 11 00 00 00 00 00 00 96 [03:57:29]Write i2c OK [03:57:29]MH_I2C_Read... [03:57:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:57:29]Read from MH i2c: E2 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: E2 17 00 [03:57:29]MH_I2C_Read... [03:57:29]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 35 33 38 39 90 00 F1 [03:57:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [03:57:29]wFMCommunicate OK [03:57:29]CreateOFDProtocolMessage done [03:57:29]OFDSenderStorePacket 31699 [03:57:29]StoreOFDPacket docnum=31699 [03:57:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 B6 AA 1F 01 DE DA 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 12 00 00 00 F4 03 04 00 AA EF 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D3 7B 00 00 35 04 06 00 B9 F6 33 DC 3B 6D BB 2B 30 F1 CE 79 C5 C3 [03:57:29]CheckFolder [03:57:29]dirname=/storage/ofd_packets [03:57:29]CheckFolder done [03:57:29]ProducePacketName [03:57:29]name=ofd_packets/00031699 [03:57:29]NVStorageSaveData ofd_packets/00031699 [03:57:29]File name is /storage/ofd_packets/00031699 [03:57:29]Write 325 bytes [03:57:29]NVStorageSaveData done [03:57:29]OFDSenderStorePacket done [03:57:29]KKMCreateOFDPacket done [03:57:29]NVStorageSaveData kkm_last_timestamp [03:57:29]File name is /storage/kkm_last_timestamp [03:57:29]Write 4 bytes [03:57:29]NVStorageSaveData done [03:57:29]ExternCall_PrintAddStr [03:57:29]wPrintStart [03:57:29]Write to MH i2c: 01 00 00 0C 11 1D [03:57:29]Write i2c OK [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: 01 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: 01 07 00 [03:57:29]MH_I2C_Read... [03:57:29]Read from MH i2c: 01 07 00 0C 11 00 00 00 00 00 FF 0F 32 [03:57:29]RasterBufferAndPrint [03:57:29]line Счет N : (3)214280 [03:57:29]line ИНН: 02508201610067 [03:57:29]line Контрольно-Кассовый Чек [03:57:29]line ПРОДАЖА [03:57:29]line Товар: 48743587 [03:57:29]line Сигареты Winston XStyle Silver [03:57:29]line 1.000 * 140.00 [03:57:29]line = 140.00 [03:57:29]line НДС 12% НСП 1% [03:57:29]line > о реализуемом товаре [03:57:29]line ИТОГО: 140.00 [03:57:29]line НСП 1% : 1.24 [03:57:29]line НДС 12% : 14.87 [03:57:29]line Наличными: 140.00 [03:57:29]line Безнал.: 0.00 [03:57:29]line Место: АЗС № 140 "Партнер Нефть" [03:57:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [03:57:29]line СНО: Общий режим [03:57:29]line Чек 18 16.07.2024 03:57 [03:57:29]line Смена: 371 ФФД: 1.0 [03:57:29]line ЗНМ: 0300000189 [03:57:29]line РНМ: 0000000000098025 [03:57:29]line Версия ККМ: 001 [03:57:29]line ФМ: 0000000000965389 [03:57:29]line ФД: 31699 [03:57:29]line ФПД: 204467083164525 [03:57:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T035730&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31699&fm=204467083164525&tin=02508201610067®Number=0000000000098025&sum=14000 [03:57:30]line 0 [03:57:30]OFD Sender: Processing packet 31699 [packets to send 6, broken 5] [03:57:30]ProducePacketName [03:57:30]name=ofd_packets/00031699 [03:57:30]OFD Sender: To server: pG, [03:57:30]CommunicateWithHost lk.salyk.kg:30040 [03:57:30]ConnectInit lk.salyk.kg [03:57:30]written 0, free lines is 4095 [03:57:30]Connected sock=10 [03:57:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 B6 AA 1F 01 DE DA 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 12 00 00 00 F4 03 04 00 AA EF 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D3 7B 00 00 35 04 06 00 B9 F6 33 DC 3B 6D BB 2B 30 F1 CE 79 C5 C3 [03:57:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 F6 85 47 00 DB 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 35 33 38 39 10 04 04 00 D3 7B 00 00 F4 03 04 00 B8 9B 95 66 B6 04 01 00 00 BA 2B F7 D1 77 E0 D4 D1 [03:57:30]CommunicateWithHost err = 0 [03:57:30]CheckOFDResponse [03:57:30]1017 (14) - 77093643461234 [03:57:30]1041 (16) - 0000000000965389 [03:57:30]1040 (4) - 31699 [03:57:30]1012 (4) - 15.07.2024 21:59 [03:57:30]1206 (1) - 0 [03:57:30]OFD Sender: Remove packet 31699 [03:57:30]ProducePacketName [03:57:30]name=ofd_packets/00031699 [03:57:30]NVStorageDeleteData [03:57:30]Write to MH i2c: 01 00 00 35 11 46 [03:57:30]Write i2c OK [03:57:30]MH_I2C_Read... [03:57:30]Read from MH i2c: 01 [03:57:30]MH_I2C_Read... [03:57:30]Read from MH i2c: 01 07 00 [03:57:30]MH_I2C_Read... [03:57:30]Read from MH i2c: 01 07 00 35 11 00 00 00 00 00 D0 0C 29 [03:57:30]RasterBufferAndPrint [03:57:30]line [03:57:30]line [03:57:30]line [03:57:30]line [03:57:30]line [03:57:30]written 0, free lines is 3286 [03:57:30]MH_Cut [03:57:30]Write to MH i2c: D1 01 00 3C 11 01 1F [03:57:30]Write i2c OK [03:57:30]MH_I2C_Read... [03:57:30]Read from MH i2c: D1 [03:57:30]MH_I2C_Read... [03:57:30]Read from MH i2c: D1 01 00 [03:57:30]MH_I2C_Read... [03:57:30]Read from MH i2c: D1 01 00 3C 11 00 1E [03:57:30]Write to MH i2c: 01 00 00 3D 11 4E [03:57:30]Write i2c OK [03:57:30]MH_I2C_Read... [03:57:30]OFD Sender: No OFD packet to send [03:57:31]*** Cut start [03:57:31]*** Partial cut [03:57:31]*** CUTSNS_PIN = 1 [03:57:31]*** CUTSNS_PIN = 0 [03:57:31]*** Brake cut motor [03:57:31]Read from MH i2c: 01 [03:57:31]MH_I2C_Read... [03:57:31]*** Stop cut motor [03:57:31]*** Cut end [03:57:31]Read from MH i2c: 01 07 00 [03:57:31]MH_I2C_Read... [03:57:31]Read from MH i2c: 01 07 00 3D 11 00 00 00 00 00 FF 0F 63 [03:57:31]process_action close_receipt done [03:57:31]requested_data is exist [03:57:31]produce_requested_data [03:57:31]requested_item fm.sn is exist - process it [03:57:31]wFMCommunicate request_size=4 [03:57:31]MH_SAM_APDU [03:57:31]CAPDU: 80 11 00 00 [03:57:31]Write to MH i2c: E2 08 00 3E 11 80 11 00 00 00 00 00 00 C9 [03:57:31]Write i2c OK [03:57:31]MH_I2C_Read... [03:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:57:31]Read from MH i2c: E2 [03:57:31]MH_I2C_Read... [03:57:31]Read from MH i2c: E2 17 00 [03:57:31]MH_I2C_Read... [03:57:31]Read from MH i2c: E2 17 00 3E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 24 [03:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [03:57:31]wFMCommunicate OK [03:57:31]requested_item fd.num is exist - process it [03:57:31]SAM_PROTO_GetFieldsCounters [03:57:31]wFMCommunicate request_size=4 [03:57:31]MH_SAM_APDU [03:57:31]CAPDU: 80 13 00 00 [03:57:31]Write to MH i2c: E2 08 00 3F 11 80 13 00 00 00 00 00 00 CC [03:57:31]Write i2c OK [03:57:31]MH_I2C_Read... [03:57:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:57:32]Read from MH i2c: E2 [03:57:32]MH_I2C_Read... [03:57:32]Read from MH i2c: E2 62 00 [03:57:32]MH_I2C_Read... [03:57:32]Read from MH i2c: E2 62 00 3F 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D3 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [03:57: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D3 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:57:32]wFMCommunicate OK [03:57:32]SAM_PROTO_GetFieldsCounters done [03:57:32]requested_item shift.num is exist - process it [03:57:32]requested_item shift.opened is exist - process it [03:57:32]req_shift_opened [03:57:32]FM_GetShiftState [03:57:32]SAM_PROTO_GetShiftState [03:57:32]wFMCommunicate request_size=4 [03:57:32]MH_SAM_APDU [03:57:32]CAPDU: 80 13 01 00 [03:57:32]Write to MH i2c: E2 08 00 40 11 80 13 01 00 00 00 00 00 CE [03:57:32]Write i2c OK [03:57:32]MH_I2C_Read... [03:57:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:57:32]Read from MH i2c: E2 [03:57:32]MH_I2C_Read... [03:57:32]Read from MH i2c: E2 0E 00 [03:57:32]MH_I2C_Read... [03:57:32]Read from MH i2c: E2 0E 00 40 11 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 1D [03:57:32]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [03:57:32]wFMCommunicate OK [03:57:32]SAM_PROTO_GetShiftState done [03:57:32]FM_GetShiftState done [03:57:32]req_shift_opened done [03:57:32]requested_item shift.open_date is exist - process it [03:57:32]req_shift_open_date [03:57:32]req_shift_open_date done [03:57:32]produce_requested_data done [03:57:32]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31699,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [03:57:32]process_action_free close_receipt [03:57:32]json_value_free [03:57:32]json_value_free done [03:57:32]process_json_proto returns [03:57:32]Send response to host [03:57:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31699,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [03:57:32]free response buf [03:57:32]execute_script done [03:57:32]execute_script returns [03:57:32]free content buf [03:57:32]Sock 9.Close socket [03:57:32]Sock 9.Thread stoped [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:31]OFD Sender: No OFD packet to send [03:59:36]OFD Sender: No OFD packet to send [03:59:41]OFD Sender: No OFD packet to send [03:59:46]OFD Sender: No OFD packet to send [03:59:51]OFD Sender: No OFD packet to send [03:59:56]OFD Sender: No OFD packet to send [04:00:01]OFD Sender: No OFD packet to send [04:00:06]OFD Sender: No OFD packet to send [04:00:11]OFD Sender: No OFD packet to send [04:00:16]OFD Sender: No OFD packet to send [04:00:21]OFD Sender: No OFD packet to send [04:00:26]OFD Sender: No OFD packet to send [04:00:31]OFD Sender: No OFD packet to send [04:00:36]OFD Sender: No OFD packet to send [04:00:41]OFD Sender: No OFD packet to send [04:00:46]OFD Sender: No OFD packet to send [04:00:51]OFD Sender: No OFD packet to send [04:00:56]OFD Sender: No OFD packet to send [04:01:01]OFD Sender: No OFD packet to send [04:01:06]OFD Sender: No OFD packet to send [04:01:11]OFD Sender: No OFD packet to send [04:01:16]OFD Sender: No OFD packet to send [04:01:21]OFD Sender: No OFD packet to send [04:01:26]OFD Sender: No OFD packet to send [04:01:31]OFD Sender: No OFD packet to send [04:01:36]OFD Sender: No OFD packet to send [04:01:41]OFD Sender: No OFD packet to send [04:01:46]OFD Sender: No OFD packet to send [04:01:51]OFD Sender: No OFD packet to send [04:01:56]OFD Sender: No OFD packet to send [04:02:01]OFD Sender: No OFD packet to send [04:02:06]OFD Sender: No OFD packet to send [04:02:11]OFD Sender: No OFD packet to send [04:02:16]OFD Sender: No OFD packet to send [04:02:21]OFD Sender: No OFD packet to send [04:02:26]OFD Sender: No OFD packet to send [04:02:31]OFD Sender: No OFD packet to send [04:02:36]OFD Sender: No OFD packet to send [04:02:41]OFD Sender: No OFD packet to send [04:02:46]OFD Sender: No OFD packet to send [04:02:51]OFD Sender: No OFD packet to send [04:02:56]OFD Sender: No OFD packet to send [04:03:01]OFD Sender: No OFD packet to send [04:03:06]OFD Sender: No OFD packet to send [04:03:11]OFD Sender: No OFD packet to send [04:03:16]OFD Sender: No OFD packet to send [04:03:21]OFD Sender: No OFD packet to send [04:03:26]OFD Sender: No OFD packet to send [04:03:31]OFD Sender: No OFD packet to send [04:03:36]OFD Sender: No OFD packet to send [04:03:41]OFD Sender: No OFD packet to send [04:03:46]OFD Sender: No OFD packet to send [04:03:51]OFD Sender: No OFD packet to send [04:03:56]OFD Sender: No OFD packet to send [04:04:01]OFD Sender: No OFD packet to send [04:04:06]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:36]OFD Sender: No OFD packet to send [04:05:41]OFD Sender: No OFD packet to send [04:05:46]OFD Sender: No OFD packet to send [04:05:51]OFD Sender: No OFD packet to send [04:05:56]OFD Sender: No OFD packet to send [04:06:01]OFD Sender: No OFD packet to send [04:06:06]OFD Sender: No OFD packet to send [04:06:11]OFD Sender: No OFD packet to send [04:06:16]OFD Sender: No OFD packet to send [04:06:21]OFD Sender: No OFD packet to send [04:06:26]OFD Sender: No OFD packet to send [04:06:31]OFD Sender: No OFD packet to send [04:06:36]OFD Sender: No OFD packet to send [04:06:41]OFD Sender: No OFD packet to send [04:06:46]OFD Sender: No OFD packet to send [04:06:51]OFD Sender: No OFD packet to send [04:06:56]OFD Sender: No OFD packet to send [04:07:01]OFD Sender: No OFD packet to send [04:07:06]OFD Sender: No OFD packet to send [04:07:11]OFD Sender: No OFD packet to send [04:07:16]OFD Sender: No OFD packet to send [04:07:21]OFD Sender: No OFD packet to send [04:07:26]OFD Sender: No OFD packet to send [04:07:31]OFD Sender: No OFD packet to send [04:07:36]OFD Sender: No OFD packet to send [04:07:41]OFD Sender: No OFD packet to send [04:07:46]OFD Sender: No OFD packet to send [04:07:51]OFD Sender: No OFD packet to send [04:07:56]OFD Sender: No OFD packet to send [04:08:01]OFD Sender: No OFD packet to send [04:08:06]OFD Sender: No OFD packet to send [04:08:11]OFD Sender: No OFD packet to send [04:08:16]OFD Sender: No OFD packet to send [04:08:21]OFD Sender: No OFD packet to send [04:08:26]OFD Sender: No OFD packet to send [04:08:31]OFD Sender: No OFD packet to send [04:08:36]OFD Sender: No OFD packet to send [04:08:41]OFD Sender: No OFD packet to send [04:08:46]OFD Sender: No OFD packet to send [04:08:51]OFD Sender: No OFD packet to send [04:08:56]OFD Sender: No OFD packet to send [04:09:01]OFD Sender: No OFD packet to send [04:09:06]OFD Sender: No OFD packet to send [04:09:11]OFD Sender: No OFD packet to send [04:09:16]OFD Sender: No OFD packet to send [04:09:21]OFD Sender: No OFD packet to send [04:09:26]OFD Sender: No OFD packet to send [04:09:31]OFD Sender: No OFD packet to send [04:09:36]OFD Sender: No OFD packet to send [04:09:41]OFD Sender: No OFD packet to send [04:09:46]OFD Sender: No OFD packet to send [04:09:51]OFD Sender: No OFD packet to send [04:09:56]OFD Sender: No OFD packet to send [04:10:01]OFD Sender: No OFD packet to send [04:10:06]OFD Sender: No OFD packet to send [04:10:11]OFD Sender: No OFD packet to send [04:10:16]OFD Sender: No OFD packet to send [04:10:21]OFD Sender: No OFD packet to send [04:10:26]OFD Sender: No OFD packet to send [04:10:31]OFD Sender: No OFD packet to send [04:10:36]OFD Sender: No OFD packet to send [04:10:41]OFD Sender: No OFD packet to send [04:10:46]OFD Sender: No OFD packet to send [04:10:51]OFD Sender: No OFD packet to send [04:10:56]OFD Sender: No OFD packet to send [04:11:01]OFD Sender: No OFD packet to send [04:11:06]OFD Sender: No OFD packet to send [04:11:11]OFD Sender: No OFD packet to send [04:11:16]OFD Sender: No OFD packet to send [04:11:21]OFD Sender: No OFD packet to send [04:11:26]OFD Sender: No OFD packet to send [04:11:31]OFD Sender: No OFD packet to send [04:11:36]OFD Sender: No OFD packet to send [04:11:41]OFD Sender: No OFD packet to send [04:11:43]accept exits with 7 [04:11:43]New connection [04:11:43]New thread 3066821988 created [04:11:43]Thread 3066965348 joined [04:11:43]Waiting for new connection... [04:11:43] Sock 7.Parse request [04:11:43]Sock 7.Check first char [04:11:43]Sock 7.First char is OK [04:11:43]request: POST /json_proto HTTP/1.0 [04:11:43]Method: POST [04:11:43]URL: /json_proto [04:11:43]Method is POST - this is cgi request [04:11:43]url: /json_proto [04:11:43]query_string will be loaded in cgi processing [04:11:43]execute_cgi json_proto POST (null) [04:11:43]execute_cgi path=json_proto method=POST [04:11:43]POST find Content-Length [04:11:43]Host: 172.17.39.68:8080 [04:11:43]Content-Length: 624 [04:11:43]Content-Type: application/json [04:11:43] [04:11:43]POST finish read [04:11:43]Found Content-Length = 624 [04:11:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214281", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:11:43]execute_script... [04:11: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)214281", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:11:43]POST & json_proto [04:11:43]process_json_proto [04:11:43]json parsed OK: [04:11:43]protocol is kg_v1.0 [04:11:43]action value=close_receipt [04:11:43]process_action close_receipt [04:11:43]cmd_close_receipt [04:11:43]MH_GetDate [04:11:43]Write to MH i2c: F0 00 00 41 11 41 [04:11:43]Write i2c OK [04:11:43]MH_I2C_Read... [04:11:43]Read from MH i2c: F0 [04:11:43]MH_I2C_Read... [04:11:43]Read from MH i2c: F0 09 00 [04:11:43]MH_I2C_Read... [04:11:43]Read from MH i2c: F0 09 00 41 11 00 01 F3 95 66 D6 48 95 66 52 [04:11:43]GetLastDocTimeStamp 1721102250 [04:11:43]current date 1721103105 [04:11:43]FM_GetShiftState [04:11:43]SAM_PROTO_GetShiftState [04:11:43]wFMCommunicate request_size=4 [04:11:43]MH_SAM_APDU [04:11:43]CAPDU: 80 13 01 00 [04:11:43]Write to MH i2c: E2 08 00 42 11 80 13 01 00 00 00 00 00 D0 [04:11:43]Write i2c OK [04:11:43]MH_I2C_Read... [04:11:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:11:43]Read from MH i2c: E2 [04:11:43]MH_I2C_Read... [04:11:43]Read from MH i2c: E2 0E 00 [04:11:43]MH_I2C_Read... [04:11:43]Read from MH i2c: E2 0E 00 42 11 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 1F [04:11:43]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:11:43]wFMCommunicate OK [04:11:43]SAM_PROTO_GetShiftState done [04:11:43]FM_GetShiftState done [04:11:43]opened in 1721088399 [04:11:43]opened+sec_in_day 1721174799 [04:11:43]quantity*price = 15100 [04:11:43]sum+1 = 15101 [04:11:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 19 16.07.2024 04:11 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31700 ФПД: 100717911646770 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T041145&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31700&fm=100717911646770&tin=02508201610067®Number=0000000000098025&sum=15100 0 [04:11:44]StoreToDocumentArchive [04:11:44]shift 371 fd 31700 [04:11:44]save to /storage/0371/doc_00031700 [04:11:44]save last doc name /storage/0371/doc_00031700 to /storage/kkm_last_doc_name [04:11:44]save OK [04:11:44]Clear old archive folders... [04:11:44]ProcessDocumentItem done err = 0, tmpTLVsize=276 [04:11:44]tlvbuf is 014B7CE0 [04:11:44]SAM_PROTO_ClearQueue [04:11:44]wFMCommunicate request_size=4 [04:11:44]MH_SAM_APDU [04:11:44]CAPDU: 80 09 00 00 [04:11:44]Write to MH i2c: E2 08 00 4F 11 80 09 00 00 00 00 00 00 D2 [04:11:44]Write i2c OK [04:11:44]MH_I2C_Read... [04:11:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:11:44]Read from MH i2c: E2 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 03 00 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 03 00 4F 11 00 90 00 D4 [04:11:44]RAPDU: 90 00 [04:11:44]wFMCommunicate OK [04:11:44]SAM_PROTO_ClearQueue done [04:11:44]KKMCreateOFDPacket [04:11:44]OFDProtocolAddRootSTLVToBuf [04:11:44]FM_MakeSignedData [04:11:44]FM_MakeSignedData [04:11:44]SAM_PROTO_SignData [04:11:44]wFMCommunicate request_size=4 [04:11:44]MH_SAM_APDU [04:11:44]CAPDU: 80 0D 01 02 [04:11:44]Write to MH i2c: E2 08 00 50 11 80 0D 01 02 00 00 00 00 DA [04:11:44]Write i2c OK [04:11:44]MH_I2C_Read... [04:11:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:11:44]Read from MH i2c: E2 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 03 00 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 03 00 50 11 00 90 00 D5 [04:11:44]RAPDU: 90 00 [04:11:44]wFMCommunicate OK [04:11:44]wFMCommunicate request_size=255 [04:11:44]MH_SAM_APDU [04:11:44]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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 F3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [04:11:44]Write to MH i2c: E2 02 01 51 11 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 F3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 A1 [04:11:44]Write i2c OK [04:11:44]MH_I2C_Read... [04:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:11:44]Read from MH i2c: E2 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 03 00 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 03 00 51 11 00 90 00 D6 [04:11:44]RAPDU: 90 00 [04:11:44]wFMCommunicate OK [04:11:44]wFMCommunicate request_size=35 [04:11:44]MH_SAM_APDU [04:11:44]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D4 7B 00 00 35 04 06 00 5B 9A 37 58 A2 32 [04:11:44]Write to MH i2c: E2 26 00 52 11 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D4 7B 00 00 35 04 06 00 5B 9A 37 58 A2 32 00 00 7F [04:11:44]Write i2c OK [04:11:44]MH_I2C_Read... [04:11:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:11:44]Read from MH i2c: E2 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 03 00 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 03 00 52 11 00 90 00 D7 [04:11:44]RAPDU: 90 00 [04:11:44]wFMCommunicate OK [04:11:44]wFMCommunicate request_size=4 [04:11:44]MH_SAM_APDU [04:11:44]CAPDU: 80 0D 03 02 [04:11:44]Write to MH i2c: E2 08 00 53 11 80 0D 03 02 00 00 00 00 DF [04:11:44]Write i2c OK [04:11:44]MH_I2C_Read... [04:11:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:11:44]Read from MH i2c: E2 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 0B 00 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 0B 00 53 11 00 E4 80 98 EC D4 34 AB 3B 90 00 B6 [04:11:44]RAPDU: E4 80 98 EC D4 34 AB 3B 90 00 [04:11:44]wFMCommunicate OK [04:11:44]SAM_PROTO_SignData done [04:11:44]FM_MakeSignedData done [04:11:44]CreateOFDProtocolMessage [04:11:44]wFMCommunicate request_size=4 [04:11:44]MH_SAM_APDU [04:11:44]CAPDU: 80 11 00 00 [04:11:44]Write to MH i2c: E2 08 00 54 11 80 11 00 00 00 00 00 00 DF [04:11:44]Write i2c OK [04:11:44]MH_I2C_Read... [04:11:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:11:44]Read from MH i2c: E2 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: E2 17 00 [04:11:44]MH_I2C_Read... [04:11:44]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 35 33 38 39 90 00 3A [04:11:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:11:44]wFMCommunicate OK [04:11:44]CreateOFDProtocolMessage done [04:11:44]OFDSenderStorePacket 31700 [04:11:44]StoreOFDPacket docnum=31700 [04:11:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 A5 A4 20 01 3F 72 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 F3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D4 7B 00 00 35 04 06 00 5B 9A 37 58 A2 32 E4 80 98 EC D4 34 AB 3B [04:11:44]CheckFolder [04:11:44]dirname=/storage/ofd_packets [04:11:44]CheckFolder done [04:11:44]ProducePacketName [04:11:44]name=ofd_packets/00031700 [04:11:44]NVStorageSaveData ofd_packets/00031700 [04:11:44]File name is /storage/ofd_packets/00031700 [04:11:44]Write 326 bytes [04:11:44]NVStorageSaveData done [04:11:44]OFDSenderStorePacket done [04:11:44]KKMCreateOFDPacket done [04:11:44]NVStorageSaveData kkm_last_timestamp [04:11:44]File name is /storage/kkm_last_timestamp [04:11:44]Write 4 bytes [04:11:44]NVStorageSaveData done [04:11:44]ExternCall_PrintAddStr [04:11:44]wPrintStart [04:11:44]Write to MH i2c: 01 00 00 55 11 66 [04:11:44]Write i2c OK [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: 01 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: 01 07 00 [04:11:44]MH_I2C_Read... [04:11:44]Read from MH i2c: 01 07 00 55 11 00 00 00 00 00 FF 0F 7B [04:11:44]RasterBufferAndPrint [04:11:44]line Счет N : (3)214281 [04:11:44]line ИНН: 02508201610067 [04:11:44]line Контрольно-Кассовый Чек [04:11:44]line ПРОДАЖА [04:11:44]line Товар: 48742245 [04:11:44]line Сигареты Parliament Silver Blue [04:11:44]line 1.000 * 151.00 [04:11:44]line = 151.00 [04:11:44]line НДС 12% НСП 1% [04:11:44]line > о реализуемом товаре [04:11:44]line ИТОГО: 151.00 [04:11:44]line НСП 1% : 1.34 [04:11:44]line НДС 12% : 16.03 [04:11:44]line Наличными: 151.00 [04:11:44]line Безнал.: 0.00 [04:11:44]line Место: АЗС № 140 "Партнер Нефть" [04:11:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:11:44]line СНО: Общий режим [04:11:44]line Чек 19 16.07.2024 04:11 [04:11:44]line Смена: 371 ФФД: 1.0 [04:11:44]line ЗНМ: 0300000189 [04:11:44]line РНМ: 0000000000098025 [04:11:44]line Версия ККМ: 001 [04:11:44]line ФМ: 0000000000965389 [04:11:44]line ФД: 31700 [04:11:44]line ФПД: 100717911646770 [04:11:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T041145&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31700&fm=100717911646770&tin=02508201610067®Number=0000000000098025&sum=15100 [04:11:45]line 0 [04:11:45]OFD Sender: Processing packet 31700 [packets to send 6, broken 5] [04:11:45]ProducePacketName [04:11:45]name=ofd_packets/00031700 [04:11:45]OFD Sender: To server: pG, [04:11:45]CommunicateWithHost lk.salyk.kg:30040 [04:11:45]ConnectInit lk.salyk.kg [04:11:45]written 0, free lines is 4095 [04:11:45]Connected sock=10 [04:11:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 A5 A4 20 01 3F 72 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 F3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D4 7B 00 00 35 04 06 00 5B 9A 37 58 A2 32 E4 80 98 EC D4 34 AB 3B [04:11:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 DD 19 47 00 D7 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D4 7B 00 00 F4 03 04 00 10 9F 95 66 B6 04 01 00 00 0E 6C 78 81 89 9E 04 AF [04:11:45]CommunicateWithHost err = 0 [04:11:45]CheckOFDResponse [04:11:45]1017 (14) - 77093643461234 [04:11:45]1041 (16) - 0000000000965389 [04:11:45]1040 (4) - 31700 [04:11:45]1012 (4) - 15.07.2024 22:13 [04:11:45]1206 (1) - 0 [04:11:45]OFD Sender: Remove packet 31700 [04:11:45]ProducePacketName [04:11:45]name=ofd_packets/00031700 [04:11:45]NVStorageDeleteData [04:11:45]Write to MH i2c: 01 00 00 7E 11 8F [04:11:45]Write i2c OK [04:11:45]MH_I2C_Read... [04:11:45]Read from MH i2c: 01 [04:11:45]MH_I2C_Read... [04:11:45]Read from MH i2c: 01 07 00 [04:11:45]MH_I2C_Read... [04:11:45]Read from MH i2c: 01 07 00 7E 11 00 00 00 00 00 C6 0C 68 [04:11:45]RasterBufferAndPrint [04:11:45]line [04:11:45]line [04:11:45]line [04:11:45]line [04:11:45]line [04:11:45]written 0, free lines is 3275 [04:11:45]MH_Cut [04:11:45]Write to MH i2c: D1 01 00 85 11 01 68 [04:11:45]Write i2c OK [04:11:45]MH_I2C_Read... [04:11:45]Read from MH i2c: D1 [04:11:45]MH_I2C_Read... [04:11:45]Read from MH i2c: D1 01 00 [04:11:45]MH_I2C_Read... [04:11:45]Read from MH i2c: D1 01 00 85 11 00 67 [04:11:45]Write to MH i2c: 01 00 00 86 11 97 [04:11:45]Write i2c OK [04:11:45]MH_I2C_Read... [04:11:45]OFD Sender: No OFD packet to send [04:11:46]*** Cut start [04:11:46]*** Partial cut [04:11:46]*** CUTSNS_PIN = 1 [04:11:46]*** CUTSNS_PIN = 0 [04:11:46]*** Brake cut motor [04:11:46]Read from MH i2c: 01 [04:11:46]MH_I2C_Read... [04:11:46]*** Stop cut motor [04:11:46]*** Cut end [04:11:46]Read from MH i2c: 01 07 00 [04:11:46]MH_I2C_Read... [04:11:46]Read from MH i2c: 01 07 00 86 11 00 00 00 00 00 FF 0F AC [04:11:46]process_action close_receipt done [04:11:46]requested_data is exist [04:11:46]produce_requested_data [04:11:46]requested_item fm.sn is exist - process it [04:11:46]wFMCommunicate request_size=4 [04:11:46]MH_SAM_APDU [04:11:46]CAPDU: 80 11 00 00 [04:11:46]Write to MH i2c: E2 08 00 87 11 80 11 00 00 00 00 00 00 12 [04:11:46]Write i2c OK [04:11:46]MH_I2C_Read... [04:11:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:11:47]Read from MH i2c: E2 [04:11:47]MH_I2C_Read... [04:11:47]Read from MH i2c: E2 17 00 [04:11:47]MH_I2C_Read... [04:11:47]Read from MH i2c: E2 17 00 87 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6D [04:11:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:11:47]wFMCommunicate OK [04:11:47]requested_item fd.num is exist - process it [04:11:47]SAM_PROTO_GetFieldsCounters [04:11:47]wFMCommunicate request_size=4 [04:11:47]MH_SAM_APDU [04:11:47]CAPDU: 80 13 00 00 [04:11:47]Write to MH i2c: E2 08 00 88 11 80 13 00 00 00 00 00 00 15 [04:11:47]Write i2c OK [04:11:47]MH_I2C_Read... [04:11:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:11:47]Read from MH i2c: E2 [04:11:47]MH_I2C_Read... [04:11:47]Read from MH i2c: E2 62 00 [04:11:47]MH_I2C_Read... [04:11:47]Read from MH i2c: E2 62 00 88 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D4 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [04:11: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D4 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:11:47]wFMCommunicate OK [04:11:47]SAM_PROTO_GetFieldsCounters done [04:11:47]requested_item shift.num is exist - process it [04:11:47]requested_item shift.opened is exist - process it [04:11:47]req_shift_opened [04:11:47]FM_GetShiftState [04:11:47]SAM_PROTO_GetShiftState [04:11:47]wFMCommunicate request_size=4 [04:11:47]MH_SAM_APDU [04:11:47]CAPDU: 80 13 01 00 [04:11:47]Write to MH i2c: E2 08 00 89 11 80 13 01 00 00 00 00 00 17 [04:11:47]Write i2c OK [04:11:47]MH_I2C_Read... [04:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:11:47]Read from MH i2c: E2 [04:11:47]MH_I2C_Read... [04:11:47]Read from MH i2c: E2 0E 00 [04:11:47]MH_I2C_Read... [04:11:47]Read from MH i2c: E2 0E 00 89 11 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 66 [04:11:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:11:47]wFMCommunicate OK [04:11:47]SAM_PROTO_GetShiftState done [04:11:47]FM_GetShiftState done [04:11:47]req_shift_opened done [04:11:47]requested_item shift.open_date is exist - process it [04:11:47]req_shift_open_date [04:11:47]req_shift_open_date done [04:11:47]produce_requested_data done [04:11:47]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31700,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [04:11:47]process_action_free close_receipt [04:11:47]json_value_free [04:11:47]json_value_free done [04:11:47]process_json_proto returns [04:11:47]Send response to host [04:11:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31700,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [04:11:47]free response buf [04:11:47]execute_script done [04:11:47]execute_script returns [04:11:47]free content buf [04:11:47]Sock 7.Close socket [04:11:47]Sock 7.Thread stoped [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:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:28]accept exits with 9 [04:14:28]New connection [04:14:28]New thread 3066965348 created [04:14:28]Thread 3066821988 joined [04:14:28]Waiting for new connection... [04:14:28] Sock 9.Parse request [04:14:28]Sock 9.Check first char [04:14:28]Sock 9.First char is OK [04:14:28]request: POST /json_proto HTTP/1.0 [04:14:28]Method: POST [04:14:28]URL: /json_proto [04:14:28]Method is POST - this is cgi request [04:14:28]url: /json_proto [04:14:28]query_string will be loaded in cgi processing [04:14:28]execute_cgi json_proto POST (null) [04:14:28]execute_cgi path=json_proto method=POST [04:14:28]POST find Content-Length [04:14:28]Host: 172.17.39.68:8080 [04:14:28]Content-Length: 624 [04:14:28]Content-Type: application/json [04:14:28] [04:14:28]POST finish read [04:14:28]Found Content-Length = 624 [04:14:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214282", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "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" ] } } [04:14:28]execute_script... [04: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 : (3)214282", "tax_sys" : 0, "items" : [ { "code": "4600721021627", "name": "\u041F\u0438\u0432\u043E \u0411\u0410\u0414 0,5\u043B \u0441\u0442", "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" ] } } [04:14:28]POST & json_proto [04:14:28]process_json_proto [04:14:28]json parsed OK: [04:14:28]protocol is kg_v1.0 [04:14:28]action value=close_receipt [04:14:28]process_action close_receipt [04:14:28]cmd_close_receipt [04:14:28]MH_GetDate [04:14:28]Write to MH i2c: F0 00 00 8A 11 8A [04:14:28]Write i2c OK [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: F0 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: F0 09 00 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: F0 09 00 8A 11 00 A6 F3 95 66 D6 48 95 66 40 [04:14:28]GetLastDocTimeStamp 1721103105 [04:14:28]current date 1721103270 [04:14:28]FM_GetShiftState [04:14:28]SAM_PROTO_GetShiftState [04:14:28]wFMCommunicate request_size=4 [04:14:28]MH_SAM_APDU [04:14:28]CAPDU: 80 13 01 00 [04:14:28]Write to MH i2c: E2 08 00 8B 11 80 13 01 00 00 00 00 00 19 [04:14:28]Write i2c OK [04:14:28]MH_I2C_Read... [04:14:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:14:28]Read from MH i2c: E2 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: E2 0E 00 [04:14:28]MH_I2C_Read... [04:14:28]Read from MH i2c: E2 0E 00 8B 11 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 68 [04:14:28]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:14:28]wFMCommunicate OK [04:14:28]SAM_PROTO_GetShiftState done [04:14:28]FM_GetShiftState done [04:14:28]opened in 1721088399 [04:14:28]opened+sec_in_day 1721174799 [04:14:28]quantity*price = 15000 [04:14:28]sum+1 = 15001 [04:14:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 20 16.07.2024 04:14 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31701 ФПД: 165557963846588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T041430&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31701&fm=165557963846588&tin=02508201610067®Number=0000000000098025&sum=15000 0 [04:14:29]StoreToDocumentArchive [04:14:29]shift 371 fd 31701 [04:14:29]save to /storage/0371/doc_00031701 [04:14:29]save last doc name /storage/0371/doc_00031701 to /storage/kkm_last_doc_name [04:14:29]save OK [04:14:29]Clear old archive folders... [04:14:29]ProcessDocumentItem done err = 0, tmpTLVsize=268 [04:14:29]tlvbuf is 014A60E0 [04:14:29]SAM_PROTO_ClearQueue [04:14:29]wFMCommunicate request_size=4 [04:14:29]MH_SAM_APDU [04:14:29]CAPDU: 80 09 00 00 [04:14:29]Write to MH i2c: E2 08 00 98 11 80 09 00 00 00 00 00 00 1B [04:14:29]Write i2c OK [04:14:29]MH_I2C_Read... [04:14:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:14:29]Read from MH i2c: E2 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 03 00 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 03 00 98 11 00 90 00 1D [04:14:29]RAPDU: 90 00 [04:14:29]wFMCommunicate OK [04:14:29]SAM_PROTO_ClearQueue done [04:14:29]KKMCreateOFDPacket [04:14:29]OFDProtocolAddRootSTLVToBuf [04:14:29]FM_MakeSignedData [04:14:29]FM_MakeSignedData [04:14:29]SAM_PROTO_SignData [04:14:29]wFMCommunicate request_size=4 [04:14:29]MH_SAM_APDU [04:14:29]CAPDU: 80 0D 01 02 [04:14:29]Write to MH i2c: E2 08 00 99 11 80 0D 01 02 00 00 00 00 23 [04:14:29]Write i2c OK [04:14:29]MH_I2C_Read... [04:14:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:14:29]Read from MH i2c: E2 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 03 00 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 03 00 99 11 00 90 00 1E [04:14:29]RAPDU: 90 00 [04:14:29]wFMCommunicate OK [04:14:29]wFMCommunicate request_size=255 [04:14:29]MH_SAM_APDU [04:14:29]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 14 00 00 00 F4 03 04 00 A6 F3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [04:14:29]Write to MH i2c: E2 02 01 9A 11 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 14 00 00 00 F4 03 04 00 A6 F3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 C0 [04:14:29]Write i2c OK [04:14:29]MH_I2C_Read... [04:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:14:29]Read from MH i2c: E2 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 03 00 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 03 00 9A 11 00 90 00 1F [04:14:29]RAPDU: 90 00 [04:14:29]wFMCommunicate OK [04:14:29]wFMCommunicate request_size=27 [04:14:29]MH_SAM_APDU [04:14:29]CAPDU: 80 0D 02 02 16 35 33 38 39 10 04 04 00 D5 7B 00 00 35 04 06 00 96 92 F7 9F F3 BC [04:14:29]Write to MH i2c: E2 1E 00 9B 11 80 0D 02 02 16 00 35 33 38 39 10 04 04 00 D5 7B 00 00 35 04 06 00 96 92 F7 9F F3 BC 00 00 3F [04:14:29]Write i2c OK [04:14:29]MH_I2C_Read... [04:14:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:14:29]Read from MH i2c: E2 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 03 00 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [04:14:29]RAPDU: 90 00 [04:14:29]wFMCommunicate OK [04:14:29]wFMCommunicate request_size=4 [04:14:29]MH_SAM_APDU [04:14:29]CAPDU: 80 0D 03 02 [04:14:29]Write to MH i2c: E2 08 00 9C 11 80 0D 03 02 00 00 00 00 28 [04:14:29]Write i2c OK [04:14:29]MH_I2C_Read... [04:14:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:14:29]Read from MH i2c: E2 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 0B 00 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 0B 00 9C 11 00 E3 C9 ED E0 65 FB 5E 71 90 00 D1 [04:14:29]RAPDU: E3 C9 ED E0 65 FB 5E 71 90 00 [04:14:29]wFMCommunicate OK [04:14:29]SAM_PROTO_SignData done [04:14:29]FM_MakeSignedData done [04:14:29]CreateOFDProtocolMessage [04:14:29]wFMCommunicate request_size=4 [04:14:29]MH_SAM_APDU [04:14:29]CAPDU: 80 11 00 00 [04:14:29]Write to MH i2c: E2 08 00 9D 11 80 11 00 00 00 00 00 00 28 [04:14:29]Write i2c OK [04:14:29]MH_I2C_Read... [04:14:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:14:29]Read from MH i2c: E2 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: E2 17 00 [04:14:29]MH_I2C_Read... [04:14:29]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 35 33 38 39 90 00 83 [04:14:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:14:29]wFMCommunicate OK [04:14:29]CreateOFDProtocolMessage done [04:14:29]OFDSenderStorePacket 31701 [04:14:29]StoreOFDPacket docnum=31701 [04:14:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 20 01 00 00 F4 29 18 01 8F 22 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 14 00 00 00 F4 03 04 00 A6 F3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D5 7B 00 00 35 04 06 00 96 92 F7 9F F3 BC E3 C9 ED E0 65 FB 5E 71 [04:14:29]CheckFolder [04:14:29]dirname=/storage/ofd_packets [04:14:29]CheckFolder done [04:14:29]ProducePacketName [04:14:29]name=ofd_packets/00031701 [04:14:29]NVStorageSaveData ofd_packets/00031701 [04:14:29]File name is /storage/ofd_packets/00031701 [04:14:29]Write 318 bytes [04:14:29]NVStorageSaveData done [04:14:29]OFDSenderStorePacket done [04:14:29]KKMCreateOFDPacket done [04:14:29]NVStorageSaveData kkm_last_timestamp [04:14:29]File name is /storage/kkm_last_timestamp [04:14:29]Write 4 bytes [04:14:29]NVStorageSaveData done [04:14:29]ExternCall_PrintAddStr [04:14:29]wPrintStart [04:14:29]Write to MH i2c: 01 00 00 9E 11 AF [04:14:29]Write i2c OK [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: 01 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: 01 07 00 [04:14:29]MH_I2C_Read... [04:14:29]Read from MH i2c: 01 07 00 9E 11 00 00 00 00 00 FF 0F C4 [04:14:29]RasterBufferAndPrint [04:14:29]line Счет N : (3)214282 [04:14:29]line ИНН: 02508201610067 [04:14:29]line Контрольно-Кассовый Чек [04:14:29]line ПРОДАЖА [04:14:29]line Товар: 4600721021627 [04:14:29]line Пиво БАД 0,5л ст [04:14:29]line 1.000 * 150.00 [04:14:29]line = 150.00 [04:14:29]line НДС 12% НСП 1% [04:14:29]line > о реализуемом товаре [04:14:29]line ИТОГО: 150.00 [04:14:29]line НСП 1% : 1.33 [04:14:29]line НДС 12% : 15.93 [04:14:29]line Наличными: 150.00 [04:14:29]line Безнал.: 0.00 [04:14:29]line Место: АЗС № 140 "Партнер Нефть" [04:14:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:14:29]line СНО: Общий режим [04:14:29]line Чек 20 16.07.2024 04:14 [04:14:29]line Смена: 371 ФФД: 1.0 [04:14:29]line ЗНМ: 0300000189 [04:14:29]line РНМ: 0000000000098025 [04:14:29]line Версия ККМ: 001 [04:14:29]line ФМ: 0000000000965389 [04:14:30]line ФД: 31701 [04:14:30]line ФПД: 165557963846588 [04:14:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T041430&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31701&fm=165557963846588&tin=02508201610067®Number=0000000000098025&sum=15000 [04:14:30]line 0 [04:14:30]OFD Sender: Processing packet 31701 [packets to send 6, broken 5] [04:14:30]ProducePacketName [04:14:30]name=ofd_packets/00031701 [04:14:30]OFD Sender: To server: pG, [04:14:30]CommunicateWithHost lk.salyk.kg:30040 [04:14:30]ConnectInit lk.salyk.kg [04:14:30]written 0, free lines is 4095 [04:14:30]Connected sock=10 [04: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 35 33 38 39 20 01 00 00 F4 29 18 01 8F 22 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 36 32 37 06 04 1A 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 91 D0 90 D0 94 20 30 2C 35 D0 BB 20 D1 81 D1 82 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 14 00 00 00 F4 03 04 00 A6 F3 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D5 7B 00 00 35 04 06 00 96 92 F7 9F F3 BC E3 C9 ED E0 65 FB 5E 71 [04:14:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 0C B0 47 00 32 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D5 7B 00 00 F4 03 04 00 B5 9F 95 66 B6 04 01 00 00 29 4E 80 97 55 A1 21 06 [04:14:30]CommunicateWithHost err = 0 [04:14:30]CheckOFDResponse [04:14:30]1017 (14) - 77093643461234 [04:14:30]1041 (16) - 0000000000965389 [04:14:30]1040 (4) - 31701 [04:14:30]1012 (4) - 15.07.2024 22:16 [04:14:30]1206 (1) - 0 [04:14:30]OFD Sender: Remove packet 31701 [04:14:30]ProducePacketName [04:14:30]name=ofd_packets/00031701 [04:14:30]NVStorageDeleteData [04:14:30]Write to MH i2c: 01 00 00 C6 11 D7 [04:14:30]Write i2c OK [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: 01 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: 01 07 00 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: 01 07 00 C6 11 00 00 00 00 00 F4 0C DE [04:14:30]RasterBufferAndPrint [04:14:30]line [04:14:30]line [04:14:30]line [04:14:30]line [04:14:30]line [04:14:30]written 0, free lines is 3323 [04:14:30]MH_Cut [04:14:30]Write to MH i2c: D1 01 00 CD 11 01 B0 [04:14:30]Write i2c OK [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: D1 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: D1 01 00 [04:14:30]MH_I2C_Read... [04:14:30]Read from MH i2c: D1 01 00 CD 11 00 AF [04:14:30]Write to MH i2c: 01 00 00 CE 11 DF [04:14:30]Write i2c OK [04:14:30]MH_I2C_Read... [04:14:30]OFD Sender: No OFD packet to send [04:14:31]*** Cut start [04:14:31]*** Partial cut [04:14:31]*** CUTSNS_PIN = 1 [04:14:31]*** CUTSNS_PIN = 0 [04:14:31]*** Brake cut motor [04:14:31]Read from MH i2c: 01 [04:14:31]MH_I2C_Read... [04:14:31]*** Stop cut motor [04:14:31]*** Cut end [04:14:31]Read from MH i2c: 01 07 00 [04:14:31]MH_I2C_Read... [04:14:31]Read from MH i2c: 01 07 00 CE 11 00 00 00 00 00 FF 0F F4 [04:14:31]process_action close_receipt done [04:14:31]requested_data is exist [04:14:31]produce_requested_data [04:14:31]requested_item fm.sn is exist - process it [04:14:31]wFMCommunicate request_size=4 [04:14:31]MH_SAM_APDU [04:14:31]CAPDU: 80 11 00 00 [04:14:31]Write to MH i2c: E2 08 00 CF 11 80 11 00 00 00 00 00 00 5A [04:14:31]Write i2c OK [04:14:31]MH_I2C_Read... [04:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:14:32]Read from MH i2c: E2 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 17 00 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 17 00 CF 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B5 [04:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:14:32]wFMCommunicate OK [04:14:32]requested_item fd.num is exist - process it [04:14:32]SAM_PROTO_GetFieldsCounters [04:14:32]wFMCommunicate request_size=4 [04:14:32]MH_SAM_APDU [04:14:32]CAPDU: 80 13 00 00 [04:14:32]Write to MH i2c: E2 08 00 D0 11 80 13 00 00 00 00 00 00 5D [04:14:32]Write i2c OK [04:14:32]MH_I2C_Read... [04:14:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:14:32]Read from MH i2c: E2 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 62 00 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 62 00 D0 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D5 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [04: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D5 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:14:32]wFMCommunicate OK [04:14:32]SAM_PROTO_GetFieldsCounters done [04:14:32]requested_item shift.num is exist - process it [04:14:32]requested_item shift.opened is exist - process it [04:14:32]req_shift_opened [04:14:32]FM_GetShiftState [04:14:32]SAM_PROTO_GetShiftState [04:14:32]wFMCommunicate request_size=4 [04:14:32]MH_SAM_APDU [04:14:32]CAPDU: 80 13 01 00 [04:14:32]Write to MH i2c: E2 08 00 D1 11 80 13 01 00 00 00 00 00 5F [04:14:32]Write i2c OK [04:14:32]MH_I2C_Read... [04:14:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:14:32]Read from MH i2c: E2 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 0E 00 [04:14:32]MH_I2C_Read... [04:14:32]Read from MH i2c: E2 0E 00 D1 11 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 AE [04:14:32]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:14:32]wFMCommunicate OK [04:14:32]SAM_PROTO_GetShiftState done [04:14:32]FM_GetShiftState done [04:14:32]req_shift_opened done [04:14:32]requested_item shift.open_date is exist - process it [04:14:32]req_shift_open_date [04:14:32]req_shift_open_date done [04:14:32]produce_requested_data done [04:14:32]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31701,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [04:14:32]process_action_free close_receipt [04:14:32]json_value_free [04:14:32]json_value_free done [04:14:32]process_json_proto returns [04:14:32]Send response to host [04:14:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31701,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [04:14:32]free response buf [04:14:32]execute_script done [04:14:32]execute_script returns [04:14:32]free content buf [04:14:32]Sock 9.Close socket [04:14:32]Sock 9.Thread stoped [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:36]OFD Sender: No OFD packet to send [04:15:41]OFD Sender: No OFD packet to send [04:15:46]OFD Sender: No OFD packet to send [04:15:51]OFD Sender: No OFD packet to send [04:15:56]OFD Sender: No OFD packet to send [04:16:01]OFD Sender: No OFD packet to send [04:16:06]OFD Sender: No OFD packet to send [04:16:11]OFD Sender: No OFD packet to send [04:16:16]OFD Sender: No OFD packet to send [04:16:21]OFD Sender: No OFD packet to send [04:16:26]OFD Sender: No OFD packet to send [04:16:31]OFD Sender: No OFD packet to send [04:16:36]OFD Sender: No OFD packet to send [04:16:41]OFD Sender: No OFD packet to send [04:16:46]OFD Sender: No OFD packet to send [04:16:51]OFD Sender: No OFD packet to send [04:16:56]OFD Sender: No OFD packet to send [04:17:01]OFD Sender: No OFD packet to send [04:17:06]OFD Sender: No OFD packet to send [04:17:11]OFD Sender: No OFD packet to send [04:17:16]OFD Sender: No OFD packet to send [04:17:21]OFD Sender: No OFD packet to send [04:17:26]OFD Sender: No OFD packet to send [04:17:31]OFD Sender: No OFD packet to send [04:17:36]OFD Sender: No OFD packet to send [04:17:41]OFD Sender: No OFD packet to send [04:17:46]OFD Sender: No OFD packet to send [04:17:51]OFD Sender: No OFD packet to send [04:17:56]OFD Sender: No OFD packet to send [04:18:01]OFD Sender: No OFD packet to send [04:18:06]OFD Sender: No OFD packet to send [04:18:11]OFD Sender: No OFD packet to send [04:18:16]OFD Sender: No OFD packet to send [04:18:21]OFD Sender: No OFD packet to send [04:18:26]OFD Sender: No OFD packet to send [04:18:31]OFD Sender: No OFD packet to send [04:18:36]OFD Sender: No OFD packet to send [04:18:41]OFD Sender: No OFD packet to send [04:18:46]OFD Sender: No OFD packet to send [04:18:51]OFD Sender: No OFD packet to send [04:18:56]OFD Sender: No OFD packet to send [04:19:01]OFD Sender: No OFD packet to send [04:19:06]OFD Sender: No OFD packet to send [04:19:11]OFD Sender: No OFD packet to send [04:19:16]OFD Sender: No OFD packet to send [04:19:21]OFD Sender: No OFD packet to send [04:19:26]OFD Sender: No OFD packet to send [04:19:31]OFD Sender: No OFD packet to send [04:19:36]OFD Sender: No OFD packet to send [04:19:41]OFD Sender: No OFD packet to send [04:19:46]OFD Sender: No OFD packet to send [04:19:51]OFD Sender: No OFD packet to send [04:19:56]OFD Sender: No OFD packet to send [04:20:01]OFD Sender: No OFD packet to send [04:20:06]OFD Sender: No OFD packet to send [04:20:11]OFD Sender: No OFD packet to send [04:20:16]OFD Sender: No OFD packet to send [04:20:21]OFD Sender: No OFD packet to send [04:20:26]OFD Sender: No OFD packet to send [04:20:31]OFD Sender: No OFD packet to send [04:20:36]OFD Sender: No OFD packet to send [04:20:41]OFD Sender: No OFD packet to send [04:20:46]OFD Sender: No OFD packet to send [04:20:51]OFD Sender: No OFD packet to send [04:20:56]OFD Sender: No OFD packet to send [04:21:01]OFD Sender: No OFD packet to send [04:21:06]OFD Sender: No OFD packet to send [04:21:11]OFD Sender: No OFD packet to send [04:21:16]OFD Sender: No OFD packet to send [04:21:21]OFD Sender: No OFD packet to send [04:21:26]OFD Sender: No OFD packet to send [04:21:31]OFD Sender: No OFD packet to send [04:21:36]OFD Sender: No OFD packet to send [04:21:41]OFD Sender: No OFD packet to send [04:21:46]OFD Sender: No OFD packet to send [04:21:51]OFD Sender: No OFD packet to send [04:21:56]OFD Sender: No OFD packet to send [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:11]OFD Sender: No OFD packet to send [04:22:16]OFD Sender: No OFD packet to send [04:22:21]OFD Sender: No OFD packet to send [04:22:26]OFD Sender: No OFD packet to send [04:22:31]OFD Sender: No OFD packet to send [04:22:36]OFD Sender: No OFD packet to send [04:22:41]OFD Sender: No OFD packet to send [04:22:46]OFD Sender: No OFD packet to send [04:22:47]accept exits with 7 [04:22:47]New connection [04:22:47]New thread 3066821988 created [04:22:47]Thread 3066965348 joined [04:22:47]Waiting for new connection... [04:22:47] Sock 7.Parse request [04:22:47]Sock 7.Check first char [04:22:47]Sock 7.First char is OK [04:22:47]request: POST /json_proto HTTP/1.0 [04:22:47]Method: POST [04:22:47]URL: /json_proto [04:22:47]Method is POST - this is cgi request [04:22:47]url: /json_proto [04:22:47]query_string will be loaded in cgi processing [04:22:47]execute_cgi json_proto POST (null) [04:22:47]execute_cgi path=json_proto method=POST [04:22:47]POST find Content-Length [04:22:47]Host: 172.17.39.68:8080 [04:22:47]Content-Length: 717 [04:22:47]Content-Type: application/json [04:22:47] [04:22:47]POST finish read [04:22:47]Found Content-Length = 717 [04:22:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214283", "tax_sys" : 0, "items" : [ { "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:47]execute_script... [04:22: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)214283", "tax_sys" : 0, "items" : [ { "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:22:47]POST & json_proto [04:22:47]process_json_proto [04:22:47]json parsed OK: [04:22:47]protocol is kg_v1.0 [04:22:47]action value=close_receipt [04:22:47]process_action close_receipt [04:22:47]cmd_close_receipt [04:22:47]MH_GetDate [04:22:47]Write to MH i2c: F0 00 00 D2 11 D2 [04:22:47]Write i2c OK [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: F0 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: F0 09 00 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: F0 09 00 D2 11 00 99 F5 95 66 D6 48 95 66 7D [04:22:47]GetLastDocTimeStamp 1721103270 [04:22:47]current date 1721103769 [04:22:47]FM_GetShiftState [04:22:47]SAM_PROTO_GetShiftState [04:22:47]wFMCommunicate request_size=4 [04:22:47]MH_SAM_APDU [04:22:47]CAPDU: 80 13 01 00 [04:22:47]Write to MH i2c: E2 08 00 D3 11 80 13 01 00 00 00 00 00 61 [04:22:47]Write i2c OK [04:22:47]MH_I2C_Read... [04:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:47]Read from MH i2c: E2 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: E2 0E 00 [04:22:47]MH_I2C_Read... [04:22:47]Read from MH i2c: E2 0E 00 D3 11 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B0 [04:22:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:22:47]wFMCommunicate OK [04:22:47]SAM_PROTO_GetShiftState done [04:22:47]FM_GetShiftState done [04:22:47]opened in 1721088399 [04:22:47]opened+sec_in_day 1721174799 [04:22:47]quantity*price = 14000 [04:22:47]sum+1 = 14001 [04:22:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 21 16.07.2024 04:22 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31702 ФПД: 171516467348602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T042249&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31702&fm=171516467348602&tin=02508201610067®Number=0000000000098025&sum=14000 0 [04:22:48]StoreToDocumentArchive [04:22:48]shift 371 fd 31702 [04:22:48]save to /storage/0371/doc_00031702 [04:22:48]save last doc name /storage/0371/doc_00031702 to /storage/kkm_last_doc_name [04:22:48]save OK [04:22:48]Clear old archive folders... [04:22:48]ProcessDocumentItem done err = 0, tmpTLVsize=298 [04:22:48]tlvbuf is 01485770 [04:22:48]SAM_PROTO_ClearQueue [04:22:48]wFMCommunicate request_size=4 [04:22:48]MH_SAM_APDU [04:22:48]CAPDU: 80 09 00 00 [04:22:48]Write to MH i2c: E2 08 00 E0 11 80 09 00 00 00 00 00 00 63 [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:48]Read from MH i2c: E2 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 E0 11 00 90 00 65 [04:22:48]RAPDU: 90 00 [04:22:48]wFMCommunicate OK [04:22:48]SAM_PROTO_ClearQueue done [04:22:48]KKMCreateOFDPacket [04:22:48]OFDProtocolAddRootSTLVToBuf [04:22:48]FM_MakeSignedData [04:22:48]FM_MakeSignedData [04:22:48]SAM_PROTO_SignData [04:22:48]wFMCommunicate request_size=4 [04:22:48]MH_SAM_APDU [04:22:48]CAPDU: 80 0D 01 02 [04:22:48]Write to MH i2c: E2 08 00 E1 11 80 0D 01 02 00 00 00 00 6B [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:48]Read from MH i2c: E2 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 E1 11 00 90 00 66 [04:22:48]RAPDU: 90 00 [04:22:48]wFMCommunicate OK [04:22:48]wFMCommunicate request_size=255 [04:22:48]MH_SAM_APDU [04:22:48]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 99 F5 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [04:22:48]Write to MH i2c: E2 02 01 E2 11 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 99 F5 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 92 [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:48]Read from MH i2c: E2 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 E2 11 00 90 00 67 [04:22:48]RAPDU: 90 00 [04:22:48]wFMCommunicate OK [04:22:48]wFMCommunicate request_size=57 [04:22:48]MH_SAM_APDU [04:22:48]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D6 7B 00 00 35 04 06 00 9B FE 4A 1C 04 7A [04:22:48]Write to MH i2c: E2 3C 00 E3 11 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D6 7B 00 00 35 04 06 00 9B FE 4A 1C 04 7A 00 00 00 [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:48]Read from MH i2c: E2 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 03 00 E3 11 00 90 00 68 [04:22:48]RAPDU: 90 00 [04:22:48]wFMCommunicate OK [04:22:48]wFMCommunicate request_size=4 [04:22:48]MH_SAM_APDU [04:22:48]CAPDU: 80 0D 03 02 [04:22:48]Write to MH i2c: E2 08 00 E4 11 80 0D 03 02 00 00 00 00 70 [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:48]Read from MH i2c: E2 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 0B 00 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 0B 00 E4 11 00 64 68 06 DD 56 70 80 17 90 00 7D [04:22:48]RAPDU: 64 68 06 DD 56 70 80 17 90 00 [04:22:48]wFMCommunicate OK [04:22:48]SAM_PROTO_SignData done [04:22:48]FM_MakeSignedData done [04:22:48]CreateOFDProtocolMessage [04:22:48]wFMCommunicate request_size=4 [04:22:48]MH_SAM_APDU [04:22:48]CAPDU: 80 11 00 00 [04:22:48]Write to MH i2c: E2 08 00 E5 11 80 11 00 00 00 00 00 00 70 [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:48]Read from MH i2c: E2 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 17 00 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: E2 17 00 E5 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CB [04:22:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:22:48]wFMCommunicate OK [04:22:48]CreateOFDProtocolMessage done [04:22:48]OFDSenderStorePacket 31702 [04:22:48]StoreOFDPacket docnum=31702 [04:22:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3E 01 00 00 A3 2D 36 01 D9 4B 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 99 F5 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D6 7B 00 00 35 04 06 00 9B FE 4A 1C 04 7A 64 68 06 DD 56 70 80 17 [04:22:48]CheckFolder [04:22:48]dirname=/storage/ofd_packets [04:22:48]CheckFolder done [04:22:48]ProducePacketName [04:22:48]name=ofd_packets/00031702 [04:22:48]NVStorageSaveData ofd_packets/00031702 [04:22:48]File name is /storage/ofd_packets/00031702 [04:22:48]Write 348 bytes [04:22:48]NVStorageSaveData done [04:22:48]OFDSenderStorePacket done [04:22:48]KKMCreateOFDPacket done [04:22:48]NVStorageSaveData kkm_last_timestamp [04:22:48]File name is /storage/kkm_last_timestamp [04:22:48]Write 4 bytes [04:22:48]NVStorageSaveData done [04:22:48]ExternCall_PrintAddStr [04:22:48]wPrintStart [04:22:48]Write to MH i2c: 01 00 00 E6 11 F7 [04:22:48]Write i2c OK [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: 01 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: 01 07 00 [04:22:48]MH_I2C_Read... [04:22:48]Read from MH i2c: 01 07 00 E6 11 00 00 00 00 00 FF 0F 0C [04:22:48]RasterBufferAndPrint [04:22:48]line Счет N : (3)214283 [04:22:48]line ИНН: 02508201610067 [04:22:48]line Контрольно-Кассовый Чек [04:22:48]line ПРОДАЖА [04:22:48]line Товар: 4700007110073 [04:22:48]line Сэндвич с кетчупом Талас Даамы [04:22:48]line 2.000 * 70.00 [04:22:48]line = 140.00 [04:22:48]line НДС 12% НСП 1% [04:22:48]line > о реализуемом товаре [04:22:48]line ИТОГО: 140.00 [04:22:48]line НСП 1% : 1.24 [04:22:48]line НДС 12% : 14.87 [04:22:48]line Наличными: 140.00 [04:22:48]line Безнал.: 0.00 [04:22:48]line Место: АЗС № 140 "Партнер Нефть" [04:22:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:22:48]line СНО: Общий режим [04:22:48]line Чек 21 16.07.2024 04:22 [04:22:48]line Смена: 371 ФФД: 1.0 [04:22:48]line ЗНМ: 0300000189 [04:22:48]line РНМ: 0000000000098025 [04:22:48]line Версия ККМ: 001 [04:22:48]line ФМ: 0000000000965389 [04:22:48]line ФД: 31702 [04:22:48]line ФПД: 171516467348602 [04:22:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T042249&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31702&fm=171516467348602&tin=02508201610067®Number=0000000000098025&sum=14000 [04:22:49]line 0 [04:22:49]OFD Sender: Processing packet 31702 [packets to send 6, broken 5] [04:22:49]ProducePacketName [04:22:49]name=ofd_packets/00031702 [04:22:49]OFD Sender: To server: pG, [04:22:49]CommunicateWithHost lk.salyk.kg:30040 [04:22:49]ConnectInit lk.salyk.kg [04:22:49]written 0, free lines is 4095 [04:22:49]Connected sock=10 [04:22:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3E 01 00 00 A3 2D 36 01 D9 4B 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 99 F5 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D6 7B 00 00 35 04 06 00 9B FE 4A 1C 04 7A 64 68 06 DD 56 70 80 17 [04:22:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 D9 56 47 00 42 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 35 33 38 39 10 04 04 00 D6 7B 00 00 F4 03 04 00 A8 A1 95 66 B6 04 01 00 00 4C 1C 89 A8 88 46 04 AB [04:22:49]CommunicateWithHost err = 0 [04:22:49]CheckOFDResponse [04:22:49]1017 (14) - 77093643461234 [04:22:49]1041 (16) - 0000000000965389 [04:22:49]1040 (4) - 31702 [04:22:49]1012 (4) - 15.07.2024 22:24 [04:22:49]1206 (1) - 0 [04:22:49]OFD Sender: Remove packet 31702 [04:22:49]ProducePacketName [04:22:49]name=ofd_packets/00031702 [04:22:49]NVStorageDeleteData [04:22:49]Write to MH i2c: 01 00 00 0F 12 21 [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: 01 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: 01 07 00 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: 01 07 00 0F 12 00 00 00 00 00 D8 0C 0C [04:22:49]RasterBufferAndPrint [04:22:49]line [04:22:49]line [04:22:49]line [04:22:49]line [04:22:49]line [04:22:49]written 0, free lines is 3297 [04:22:49]MH_Cut [04:22:49]Write to MH i2c: D1 01 00 16 12 01 FA [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: D1 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: D1 01 00 [04:22:49]MH_I2C_Read... [04:22:49]Read from MH i2c: D1 01 00 16 12 00 F9 [04:22:49]Write to MH i2c: 01 00 00 17 12 29 [04:22:49]Write i2c OK [04:22:49]MH_I2C_Read... [04:22:49]OFD Sender: No OFD packet to send [04:22:50]*** Cut start [04:22:50]*** Partial cut [04:22:50]*** CUTSNS_PIN = 1 [04:22:50]*** CUTSNS_PIN = 0 [04:22:50]*** Brake cut motor [04:22:50]Read from MH i2c: 01 [04:22:50]MH_I2C_Read... [04:22:50]*** Stop cut motor [04:22:50]*** Cut end [04:22:50]Read from MH i2c: 01 07 00 [04:22:50]MH_I2C_Read... [04:22:50]Read from MH i2c: 01 07 00 17 12 00 00 00 00 00 FF 0F 3E [04:22:50]process_action close_receipt done [04:22:50]requested_data is exist [04:22:50]produce_requested_data [04:22:50]requested_item fm.sn is exist - process it [04:22:50]wFMCommunicate request_size=4 [04:22:50]MH_SAM_APDU [04:22:50]CAPDU: 80 11 00 00 [04:22:50]Write to MH i2c: E2 08 00 18 12 80 11 00 00 00 00 00 00 A4 [04:22:51]Write i2c OK [04:22:51]MH_I2C_Read... [04:22:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:51]Read from MH i2c: E2 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 17 00 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 17 00 18 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FF [04:22:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:22:51]wFMCommunicate OK [04:22:51]requested_item fd.num is exist - process it [04:22:51]SAM_PROTO_GetFieldsCounters [04:22:51]wFMCommunicate request_size=4 [04:22:51]MH_SAM_APDU [04:22:51]CAPDU: 80 13 00 00 [04:22:51]Write to MH i2c: E2 08 00 19 12 80 13 00 00 00 00 00 00 A7 [04:22:51]Write i2c OK [04:22:51]MH_I2C_Read... [04:22:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:51]Read from MH i2c: E2 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 62 00 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 62 00 19 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D6 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [04:22:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D6 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:22:51]wFMCommunicate OK [04:22:51]SAM_PROTO_GetFieldsCounters done [04:22:51]requested_item shift.num is exist - process it [04:22:51]requested_item shift.opened is exist - process it [04:22:51]req_shift_opened [04:22:51]FM_GetShiftState [04:22:51]SAM_PROTO_GetShiftState [04:22:51]wFMCommunicate request_size=4 [04:22:51]MH_SAM_APDU [04:22:51]CAPDU: 80 13 01 00 [04:22:51]Write to MH i2c: E2 08 00 1A 12 80 13 01 00 00 00 00 00 A9 [04:22:51]Write i2c OK [04:22:51]MH_I2C_Read... [04:22:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:51]Read from MH i2c: E2 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 0E 00 [04:22:51]MH_I2C_Read... [04:22:51]Read from MH i2c: E2 0E 00 1A 12 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F8 [04:22:51]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:22:51]wFMCommunicate OK [04:22:51]SAM_PROTO_GetShiftState done [04:22:51]FM_GetShiftState done [04:22:51]req_shift_opened done [04:22:51]requested_item shift.open_date is exist - process it [04:22:51]req_shift_open_date [04:22:51]req_shift_open_date done [04:22:51]produce_requested_data done [04:22:51]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31702,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [04:22:51]process_action_free close_receipt [04:22:51]json_value_free [04:22:51]json_value_free done [04:22:51]process_json_proto returns [04:22:51]Send response to host [04:22:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31702,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [04:22:51]free response buf [04:22:51]execute_script done [04:22:51]execute_script returns [04:22:51]free content buf [04:22:51]Sock 7.Close socket [04:22:51]Sock 7.Thread stoped [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:40]OFD Sender: No OFD packet to send [04:23:45]OFD Sender: No OFD packet to send [04:23:50]OFD Sender: No OFD packet to send [04:23:55]OFD Sender: No OFD packet to send [04:24:00]OFD Sender: No OFD packet to send [04:24:05]OFD Sender: No OFD packet to send [04:24:10]OFD Sender: No OFD packet to send [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:35]OFD Sender: No OFD packet to send [04:24:40]OFD Sender: No OFD packet to send [04:24:45]OFD Sender: No OFD packet to send [04:24:50]OFD Sender: No OFD packet to send [04:24:55]OFD Sender: No OFD packet to send [04:24:59]accept exits with 9 [04:24:59]New connection [04:24:59]New thread 3066965348 created [04:24:59]Thread 3066821988 joined [04:24:59]Waiting for new connection... [04:24:59] Sock 9.Parse request [04:24:59]Sock 9.Check first char [04:24:59]Sock 9.First char is OK [04:24:59]request: POST /json_proto HTTP/1.0 [04:24:59]Method: POST [04:24:59]URL: /json_proto [04:24:59]Method is POST - this is cgi request [04:24:59]url: /json_proto [04:24:59]query_string will be loaded in cgi processing [04:24:59]execute_cgi json_proto POST (null) [04:24:59]execute_cgi path=json_proto method=POST [04:24:59]POST find Content-Length [04:24:59]Host: 172.17.39.68:8080 [04:24:59]Content-Length: 897 [04:24:59]Content-Type: application/json [04:24:59] [04:24:59]POST finish read [04:24:59]Found Content-Length = 897 [04:24:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214284", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:59]execute_script... [04:24: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)214284", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:24:59]POST & json_proto [04:24:59]process_json_proto [04:24:59]json parsed OK: [04:24:59]protocol is kg_v1.0 [04:24:59]action value=close_receipt [04:24:59]process_action close_receipt [04:24:59]cmd_close_receipt [04:24:59]MH_GetDate [04:24:59]Write to MH i2c: F0 00 00 1B 12 1C [04:24:59]Write i2c OK [04:24:59]MH_I2C_Read... [04:24:59]Read from MH i2c: F0 [04:24:59]MH_I2C_Read... [04:24:59]Read from MH i2c: F0 09 00 [04:24:59]MH_I2C_Read... [04:24:59]Read from MH i2c: F0 09 00 1B 12 00 1E F6 95 66 D6 48 95 66 4D [04:24:59]GetLastDocTimeStamp 1721103769 [04:24:59]current date 1721103902 [04:24:59]FM_GetShiftState [04:24:59]SAM_PROTO_GetShiftState [04:24:59]wFMCommunicate request_size=4 [04:24:59]MH_SAM_APDU [04:24:59]CAPDU: 80 13 01 00 [04:24:59]Write to MH i2c: E2 08 00 1C 12 80 13 01 00 00 00 00 00 AB [04:24:59]Write i2c OK [04:24:59]MH_I2C_Read... [04:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:59]Read from MH i2c: E2 [04:24:59]MH_I2C_Read... [04:24:59]Read from MH i2c: E2 0E 00 [04:24:59]MH_I2C_Read... [04:24:59]Read from MH i2c: E2 0E 00 1C 12 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 FA [04:24:59]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:24:59]wFMCommunicate OK [04:24:59]SAM_PROTO_GetShiftState done [04:24:59]FM_GetShiftState done [04:24:59]opened in 1721088399 [04:24:59]opened+sec_in_day 1721174799 [04:24:59]quantity*price = 6000 [04:24:59]sum+1 = 6001 [04:24:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310036 Вода Жалалабат 27 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 22 16.07.2024 04:25 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31703 ФПД: 153787807357137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T042502&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31703&fm=153787807357137&tin=02508201610067®Number=0000000000098025&sum=10000 0 [04:25:00]StoreToDocumentArchive [04:25:00]shift 371 fd 31703 [04:25:00]save to /storage/0371/doc_00031703 [04:25:00]save last doc name /storage/0371/doc_00031703 to /storage/kkm_last_doc_name [04:25:00]save OK [04:25:00]Clear old archive folders... [04:25:00]ProcessDocumentItem done err = 0, tmpTLVsize=379 [04:25:00]tlvbuf is 014766F0 [04:25:00]SAM_PROTO_ClearQueue [04:25:00]wFMCommunicate request_size=4 [04:25:00]MH_SAM_APDU [04:25:00]CAPDU: 80 09 00 00 [04:25:00]Write to MH i2c: E2 08 00 29 12 80 09 00 00 00 00 00 00 AD [04:25:00]Write i2c OK [04:25:00]MH_I2C_Read... [04:25:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:25:00]Read from MH i2c: E2 [04:25:00]MH_I2C_Read... [04:25:00]Read from MH i2c: E2 03 00 [04:25:00]MH_I2C_Read... [04:25:00]Read from MH i2c: E2 03 00 29 12 00 90 00 AF [04:25:00]RAPDU: 90 00 [04:25:00]wFMCommunicate OK [04:25:00]SAM_PROTO_ClearQueue done [04:25:00]KKMCreateOFDPacket [04:25:00]OFDProtocolAddRootSTLVToBuf [04:25:00]FM_MakeSignedData [04:25:00]FM_MakeSignedData [04:25:00]SAM_PROTO_SignData [04:25:00]wFMCommunicate request_size=4 [04:25:00]MH_SAM_APDU [04:25:00]CAPDU: 80 0D 01 02 [04:25:00]Write to MH i2c: E2 08 00 2A 12 80 0D 01 02 00 00 00 00 B5 [04:25:00]Write i2c OK [04:25:00]MH_I2C_Read... [04:25:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:25:00]Read from MH i2c: E2 [04:25:00]MH_I2C_Read... [04:25:00]Read from MH i2c: E2 03 00 [04:25:00]MH_I2C_Read... [04:25:00]Read from MH i2c: E2 03 00 2A 12 00 90 00 B0 [04:25:00]RAPDU: 90 00 [04:25:00]wFMCommunicate OK [04:25:00]wFMCommunicate request_size=255 [04:25:00]MH_SAM_APDU [04:25:00]CAPDU: 80 0D 02 02 FA 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 [04:25:00]Write to MH i2c: E2 02 01 2B 12 80 0D 02 02 FA 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 00 28 [04:25:00]Write i2c OK [04:25:00]MH_I2C_Read... [04:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:00]Read from MH i2c: E2 [04:25:00]MH_I2C_Read... [04:25:00]Read from MH i2c: E2 03 00 [04:25:00]MH_I2C_Read... [04:25:00]Read from MH i2c: E2 03 00 2B 12 00 90 00 B1 [04:25:00]RAPDU: 90 00 [04:25:00]wFMCommunicate OK [04:25:00]wFMCommunicate request_size=138 [04:25:00]MH_SAM_APDU [04:25:00]CAPDU: 80 0D 02 02 85 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 1E F6 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D7 7B 00 00 35 04 06 00 8B DE 83 A0 D8 D1 [04:25:00]Write to MH i2c: E2 8D 00 2C 12 80 0D 02 02 85 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 1E F6 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D7 7B 00 00 35 04 06 00 8B DE 83 A0 D8 D1 00 00 77 [04:25:00]Write i2c OK [04:25:00]MH_I2C_Read... [04:25:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:25:01]Read from MH i2c: E2 [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: E2 03 00 [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: E2 03 00 2C 12 00 90 00 B2 [04:25:01]RAPDU: 90 00 [04:25:01]wFMCommunicate OK [04:25:01]wFMCommunicate request_size=4 [04:25:01]MH_SAM_APDU [04:25:01]CAPDU: 80 0D 03 02 [04:25:01]Write to MH i2c: E2 08 00 2D 12 80 0D 03 02 00 00 00 00 BA [04:25:01]Write i2c OK [04:25:01]MH_I2C_Read... [04:25:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:25:01]Read from MH i2c: E2 [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: E2 0B 00 [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: E2 0B 00 2D 12 00 89 C1 F1 99 86 FD D0 27 90 00 09 [04:25:01]RAPDU: 89 C1 F1 99 86 FD D0 27 90 00 [04:25:01]wFMCommunicate OK [04:25:01]SAM_PROTO_SignData done [04:25:01]FM_MakeSignedData done [04:25:01]CreateOFDProtocolMessage [04:25:01]wFMCommunicate request_size=4 [04:25:01]MH_SAM_APDU [04:25:01]CAPDU: 80 11 00 00 [04:25:01]Write to MH i2c: E2 08 00 2E 12 80 11 00 00 00 00 00 00 BA [04:25:01]Write i2c OK [04:25:01]MH_I2C_Read... [04:25:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:01]Read from MH i2c: E2 [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: E2 17 00 [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: E2 17 00 2E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 15 [04:25:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:25:01]wFMCommunicate OK [04:25:01]CreateOFDProtocolMessage done [04:25:01]OFDSenderStorePacket 31703 [04:25:01]StoreOFDPacket docnum=31703 [04:25:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 8F 01 00 00 68 CB 87 01 D5 71 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 1E F6 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D7 7B 00 00 35 04 06 00 8B DE 83 A0 D8 D1 89 C1 F1 99 86 FD D0 27 [04:25:01]CheckFolder [04:25:01]dirname=/storage/ofd_packets [04:25:01]CheckFolder done [04:25:01]ProducePacketName [04:25:01]name=ofd_packets/00031703 [04:25:01]NVStorageSaveData ofd_packets/00031703 [04:25:01]File name is /storage/ofd_packets/00031703 [04:25:01]Write 429 bytes [04:25:01]NVStorageSaveData done [04:25:01]OFDSenderStorePacket done [04:25:01]KKMCreateOFDPacket done [04:25:01]NVStorageSaveData kkm_last_timestamp [04:25:01]File name is /storage/kkm_last_timestamp [04:25:01]Write 4 bytes [04:25:01]NVStorageSaveData done [04:25:01]ExternCall_PrintAddStr [04:25:01]wPrintStart [04:25:01]Write to MH i2c: 01 00 00 2F 12 41 [04:25:01]Write i2c OK [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: 01 [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: 01 07 00 [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: 01 07 00 2F 12 00 00 00 00 00 FF 0F 56 [04:25:01]RasterBufferAndPrint [04:25:01]line Счет N : (3)214284 [04:25:01]line ИНН: 02508201610067 [04:25:01]line Контрольно-Кассовый Чек [04:25:01]line ПРОДАЖА [04:25:01]line Товар: 4700000160204 [04:25:01]line Вода Легенда 1,5л [04:25:01]line 1.000 * 60.00 [04:25:01]line = 60.00 [04:25:01]line НДС 12% НСП 1% [04:25:01]line > о реализуемом товаре [04:25:01]line Товар: 4700000310036 [04:25:01]line Вода Жалалабат 27 0,5л [04:25:01]line 1.000 * 40.00 [04:25:01]line = 40.00 [04:25:01]line НДС 12% НСП 1% [04:25:01]line > о реализуемом товаре [04:25:01]line ИТОГО: 100.00 [04:25:01]line НСП 1% : 0.88 [04:25:01]line НДС 12% : 10.62 [04:25:01]line Наличными: 100.00 [04:25:01]line Безнал.: 0.00 [04:25:01]line Место: АЗС № 140 "Партнер Нефть" [04:25:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:25:01]line СНО: Общий режим [04:25:01]line Чек 22 16.07.2024 04:25 [04:25:01]line Смена: 371 ФФД: 1.0 [04:25:01]line ЗНМ: 0300000189 [04:25:01]line РНМ: 0000000000098025 [04:25:01]line Версия ККМ: 001 [04:25:01]line ФМ: 0000000000965389 [04:25:01]line ФД: 31703 [04:25:01]line ФПД: 153787807357137 [04:25:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T042502&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31703&fm=153787807357137&tin=02508201610067®Number=0000000000098025&sum=10000 [04:25:01]line 0 [04:25:01]OFD Sender: Processing packet 31703 [packets to send 6, broken 5] [04:25:01]ProducePacketName [04:25:01]name=ofd_packets/00031703 [04:25:01]OFD Sender: To server: pG, [04:25:01]CommunicateWithHost lk.salyk.kg:30040 [04:25:01]ConnectInit lk.salyk.kg [04:25:01]written 0, free lines is 4095 [04:25:01]Connected sock=10 [04:25:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 8F 01 00 00 68 CB 87 01 D5 71 5A 03 01 00 03 00 7B 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 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 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 1E F6 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D7 7B 00 00 35 04 06 00 8B DE 83 A0 D8 D1 89 C1 F1 99 86 FD D0 27 [04:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 0C 62 47 00 22 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 35 33 38 39 10 04 04 00 D7 7B 00 00 F4 03 04 00 2C A2 95 66 B6 04 01 00 00 65 DC E5 95 49 56 4F 06 [04:25:01]CommunicateWithHost err = 0 [04:25:01]CheckOFDResponse [04:25:01]1017 (14) - 77093643461234 [04:25:01]1041 (16) - 0000000000965389 [04:25:01]1040 (4) - 31703 [04:25:01]1012 (4) - 15.07.2024 22:26 [04:25:01]1206 (1) - 0 [04:25:01]OFD Sender: Remove packet 31703 [04:25:01]ProducePacketName [04:25:01]name=ofd_packets/00031703 [04:25:01]NVStorageDeleteData [04:25:01]Write to MH i2c: 01 00 00 5D 12 6F [04:25:01]Write i2c OK [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: 01 [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: 01 07 00 [04:25:01]MH_I2C_Read... [04:25:01]Read from MH i2c: 01 07 00 5D 12 00 00 00 00 00 AA 0C 2C [04:25:01]RasterBufferAndPrint [04:25:01]line [04:25:01]line [04:25:01]line [04:25:01]line [04:25:01]line [04:25:01]written 0, free lines is 3247 [04:25:01]MH_Cut [04:25:01]Write to MH i2c: D1 01 00 64 12 01 48 [04:25:02]Write i2c OK [04:25:02]MH_I2C_Read... [04:25:02]Read from MH i2c: D1 [04:25:02]MH_I2C_Read... [04:25:02]Read from MH i2c: D1 01 00 [04:25:02]MH_I2C_Read... [04:25:02]Read from MH i2c: D1 01 00 64 12 00 47 [04:25:02]Write to MH i2c: 01 00 00 65 12 77 [04:25:02]Write i2c OK [04:25:02]MH_I2C_Read... [04:25:02]OFD Sender: No OFD packet to send [04:25:02]*** Cut start [04:25:02]*** Partial cut [04:25:02]*** CUTSNS_PIN = 1 [04:25:02]*** CUTSNS_PIN = 0 [04:25:03]*** Brake cut motor [04:25:03]Read from MH i2c: 01 [04:25:03]MH_I2C_Read... [04:25:03]*** Stop cut motor [04:25:03]*** Cut end [04:25:03]Read from MH i2c: 01 07 00 [04:25:03]MH_I2C_Read... [04:25:03]Read from MH i2c: 01 07 00 65 12 00 00 00 00 00 FF 0F 8C [04:25:03]process_action close_receipt done [04:25:03]requested_data is exist [04:25:03]produce_requested_data [04:25:03]requested_item fm.sn is exist - process it [04:25:03]wFMCommunicate request_size=4 [04:25:03]MH_SAM_APDU [04:25:03]CAPDU: 80 11 00 00 [04:25:03]Write to MH i2c: E2 08 00 66 12 80 11 00 00 00 00 00 00 F2 [04:25:03]Write i2c OK [04:25:03]MH_I2C_Read... [04:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:25:03]Read from MH i2c: E2 [04:25:03]MH_I2C_Read... [04:25:03]Read from MH i2c: E2 17 00 [04:25:03]MH_I2C_Read... [04:25:03]Read from MH i2c: E2 17 00 66 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 4D [04:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:25:03]wFMCommunicate OK [04:25:03]requested_item fd.num is exist - process it [04:25:03]SAM_PROTO_GetFieldsCounters [04:25:03]wFMCommunicate request_size=4 [04:25:03]MH_SAM_APDU [04:25:03]CAPDU: 80 13 00 00 [04:25:03]Write to MH i2c: E2 08 00 67 12 80 13 00 00 00 00 00 00 F5 [04:25:03]Write i2c OK [04:25:03]MH_I2C_Read... [04:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:25:03]Read from MH i2c: E2 [04:25:03]MH_I2C_Read... [04:25:03]Read from MH i2c: E2 62 00 [04:25:03]MH_I2C_Read... [04:25:03]Read from MH i2c: E2 62 00 67 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D7 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [04:25:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D7 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:25:03]wFMCommunicate OK [04:25:03]SAM_PROTO_GetFieldsCounters done [04:25:03]requested_item shift.num is exist - process it [04:25:03]requested_item shift.opened is exist - process it [04:25:03]req_shift_opened [04:25:03]FM_GetShiftState [04:25:03]SAM_PROTO_GetShiftState [04:25:03]wFMCommunicate request_size=4 [04:25:03]MH_SAM_APDU [04:25:03]CAPDU: 80 13 01 00 [04:25:03]Write to MH i2c: E2 08 00 68 12 80 13 01 00 00 00 00 00 F7 [04:25:03]Write i2c OK [04:25:03]MH_I2C_Read... [04:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:25:03]Read from MH i2c: E2 [04:25:03]MH_I2C_Read... [04:25:03]Read from MH i2c: E2 0E 00 [04:25:03]MH_I2C_Read... [04:25:03]Read from MH i2c: E2 0E 00 68 12 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 46 [04:25:03]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:25:03]wFMCommunicate OK [04:25:03]SAM_PROTO_GetShiftState done [04:25:03]FM_GetShiftState done [04:25:03]req_shift_opened done [04:25:03]requested_item shift.open_date is exist - process it [04:25:03]req_shift_open_date [04:25:03]req_shift_open_date done [04:25:03]produce_requested_data done [04:25:03]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31703,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [04:25:03]process_action_free close_receipt [04:25:03]json_value_free [04:25:03]json_value_free done [04:25:03]process_json_proto returns [04:25:03]Send response to host [04:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31703,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [04:25:03]free response buf [04:25:03]execute_script done [04:25:03]execute_script returns [04:25:03]free content buf [04:25:03]Sock 9.Close socket [04:25:03]Sock 9.Thread stoped [04:25:07]OFD Sender: No OFD packet to send [04:25:12]OFD Sender: No OFD packet to send [04:25:17]OFD Sender: No OFD packet to send [04:25:22]OFD Sender: No OFD packet to send [04:25:27]OFD Sender: No OFD packet to send [04:25:32]OFD Sender: No OFD packet to send [04:25:37]OFD Sender: No OFD packet to send [04:25:42]OFD Sender: No OFD packet to send [04:25:47]OFD Sender: No OFD packet to send [04:25:52]OFD Sender: No OFD packet to send [04:25:57]OFD Sender: No OFD packet to send [04:26:02]OFD Sender: No OFD packet to send [04:26:07]OFD Sender: No OFD packet to send [04:26:12]OFD Sender: No OFD packet to send [04:26:17]OFD Sender: No OFD packet to send [04:26:22]OFD Sender: No OFD packet to send [04:26:27]OFD Sender: No OFD packet to send [04:26:32]OFD Sender: No OFD packet to send [04:26:37]OFD Sender: No OFD packet to send [04:26:42]OFD Sender: No OFD packet to send [04:26:47]OFD Sender: No OFD packet to send [04:26:52]OFD Sender: No OFD packet to send [04:26:57]OFD Sender: No OFD packet to send [04:27:02]OFD Sender: No OFD packet to send [04:27:07]OFD Sender: No OFD packet to send [04:27:12]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:51]accept exits with 7 [04:29:51]New connection [04:29:51]New thread 3066821988 created [04:29:51]Thread 3066965348 joined [04:29:51]Waiting for new connection... [04:29:51] Sock 7.Parse request [04:29:51]Sock 7.Check first char [04:29:51]Sock 7.First char is OK [04:29:51]request: POST /json_proto HTTP/1.0 [04:29:51]Method: POST [04:29:51]URL: /json_proto [04:29:51]Method is POST - this is cgi request [04:29:51]url: /json_proto [04:29:51]query_string will be loaded in cgi processing [04:29:51]execute_cgi json_proto POST (null) [04:29:51]execute_cgi path=json_proto method=POST [04:29:51]POST find Content-Length [04:29:51]Host: 172.17.39.68:8080 [04:29:51]Content-Length: 1210 [04:29:51]Content-Type: application/json [04:29:51] [04:29:51]POST finish read [04:29:51]Found Content-Length = 1210 [04:29:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214285", "tax_sys" : 0, "items" : [ { "code": "4700002082504", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.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": "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" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:29:51]execute_script... [04:29: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)214285", "tax_sys" : 0, "items" : [ { "code": "4700002082504", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u043E\u0435 \u0437\u043E\u043B\u043E\u0442\u043E 0,24\u043B", "price" : 200.00, "quantity" : 1.000, "sum" : 200.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": "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" : 400.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:29:51]POST & json_proto [04:29:51]process_json_proto [04:29:51]json parsed OK: [04:29:51]protocol is kg_v1.0 [04:29:51]action value=close_receipt [04:29:51]process_action close_receipt [04:29:51]cmd_close_receipt [04:29:51]MH_GetDate [04:29:51]Write to MH i2c: F0 00 00 69 12 6A [04:29:51]Write i2c OK [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: F0 [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: F0 09 00 [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: F0 09 00 69 12 00 42 F7 95 66 D6 48 95 66 C0 [04:29:51]GetLastDocTimeStamp 1721103902 [04:29:51]current date 1721104194 [04:29:51]FM_GetShiftState [04:29:51]SAM_PROTO_GetShiftState [04:29:51]wFMCommunicate request_size=4 [04:29:51]MH_SAM_APDU [04:29:51]CAPDU: 80 13 01 00 [04:29:51]Write to MH i2c: E2 08 00 6A 12 80 13 01 00 00 00 00 00 F9 [04:29:51]Write i2c OK [04:29:51]MH_I2C_Read... [04:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:51]Read from MH i2c: E2 [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: E2 0E 00 [04:29:51]MH_I2C_Read... [04:29:51]Read from MH i2c: E2 0E 00 6A 12 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 48 [04:29:51]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:29:51]wFMCommunicate OK [04:29:51]SAM_PROTO_GetShiftState done [04:29:51]FM_GetShiftState done [04:29:51]opened in 1721088399 [04:29:51]opened+sec_in_day 1721174799 [04:29:51]quantity*price = 20000 [04:29:51]sum+1 = 20001 [04:29:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 400.00 НСП 1% : 3.54 НДС 12% : 42.47 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 23 16.07.2024 04:29 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31704 ФПД: 278064725100297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T042954&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31704&fm=278064725100297&tin=02508201610067®Number=0000000000098025&sum=40000 0 [04:29:52]StoreToDocumentArchive [04:29:52]shift 371 fd 31704 [04:29:52]save to /storage/0371/doc_00031704 [04:29:52]save last doc name /storage/0371/doc_00031704 to /storage/kkm_last_doc_name [04:29:52]save OK [04:29:52]Clear old archive folders... [04:29:52]ProcessDocumentItem done err = 0, tmpTLVsize=496 [04:29:52]tlvbuf is 0148F4C0 [04:29:52]SAM_PROTO_ClearQueue [04:29:52]wFMCommunicate request_size=4 [04:29:52]MH_SAM_APDU [04:29:52]CAPDU: 80 09 00 00 [04:29:52]Write to MH i2c: E2 08 00 77 12 80 09 00 00 00 00 00 00 FB [04:29:52]Write i2c OK [04:29:52]MH_I2C_Read... [04:29:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:29:52]Read from MH i2c: E2 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 03 00 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 03 00 77 12 00 90 00 FD [04:29:52]RAPDU: 90 00 [04:29:52]wFMCommunicate OK [04:29:52]SAM_PROTO_ClearQueue done [04:29:52]KKMCreateOFDPacket [04:29:52]OFDProtocolAddRootSTLVToBuf [04:29:52]FM_MakeSignedData [04:29:52]FM_MakeSignedData [04:29:52]SAM_PROTO_SignData [04:29:52]wFMCommunicate request_size=4 [04:29:52]MH_SAM_APDU [04:29:52]CAPDU: 80 0D 01 02 [04:29:52]Write to MH i2c: E2 08 00 78 12 80 0D 01 02 00 00 00 00 03 [04:29:52]Write i2c OK [04:29:52]MH_I2C_Read... [04:29:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:29:52]Read from MH i2c: E2 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 03 00 [04:29:52]MH_I2C_Read... [04:29:52]Read from MH i2c: E2 03 00 78 12 00 90 00 FE [04:29:52]RAPDU: 90 00 [04:29:52]wFMCommunicate OK [04:29:52]wFMCommunicate request_size=255 [04:29:52]MH_SAM_APDU [04:29:52]CAPDU: 80 0D 02 02 FA 03 00 F0 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 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 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 [04:29:53]Write to MH i2c: E2 02 01 79 12 80 0D 02 02 FA 00 03 00 F0 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 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 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 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 00 00 45 [04:29:53]Write i2c OK [04:29:53]MH_I2C_Read... [04:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:53]Read from MH i2c: E2 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 03 00 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [04:29:53]RAPDU: 90 00 [04:29:53]wFMCommunicate OK [04:29:53]wFMCommunicate request_size=255 [04:29:53]MH_SAM_APDU [04:29:53]CAPDU: 80 0D 02 02 FA 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 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 97 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 17 00 00 00 F4 03 04 00 42 F7 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D8 7B 00 00 35 04 06 00 FC E5 FD 2A 07 09 [04:29:53]Write to MH i2c: E2 02 01 7A 12 80 0D 02 02 FA 00 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 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 97 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 17 00 00 00 F4 03 04 00 42 F7 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D8 7B 00 00 35 04 06 00 FC E5 FD 2A 07 09 00 00 03 [04:29:53]Write i2c OK [04:29:53]MH_I2C_Read... [04:29:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:29:53]Read from MH i2c: E2 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 03 00 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 03 00 7A 12 00 90 00 00 [04:29:53]RAPDU: 90 00 [04:29:53]wFMCommunicate OK [04:29:53]wFMCommunicate request_size=4 [04:29:53]MH_SAM_APDU [04:29:53]CAPDU: 80 0D 03 02 [04:29:53]Write to MH i2c: E2 08 00 7B 12 80 0D 03 02 00 00 00 00 08 [04:29:53]Write i2c OK [04:29:53]MH_I2C_Read... [04:29:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:29:53]Read from MH i2c: E2 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 0B 00 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 0B 00 7B 12 00 54 85 02 DB D7 75 C0 FD 90 00 C8 [04:29:53]RAPDU: 54 85 02 DB D7 75 C0 FD 90 00 [04:29:53]wFMCommunicate OK [04:29:53]SAM_PROTO_SignData done [04:29:53]FM_MakeSignedData done [04:29:53]CreateOFDProtocolMessage [04:29:53]wFMCommunicate request_size=4 [04:29:53]MH_SAM_APDU [04:29:53]CAPDU: 80 11 00 00 [04:29:53]Write to MH i2c: E2 08 00 7C 12 80 11 00 00 00 00 00 00 08 [04:29:53]Write i2c OK [04:29:53]MH_I2C_Read... [04:29:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:53]Read from MH i2c: E2 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 17 00 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: E2 17 00 7C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 63 [04:29:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:29:53]wFMCommunicate OK [04:29:53]CreateOFDProtocolMessage done [04:29:53]OFDSenderStorePacket 31704 [04:29:53]StoreOFDPacket docnum=31704 [04:29:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 04 02 00 00 20 51 FC 01 7D C0 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 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 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 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 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 97 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 17 00 00 00 F4 03 04 00 42 F7 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D8 7B 00 00 35 04 06 00 FC E5 FD 2A 07 09 54 85 02 DB D7 75 C0 FD [04:29:53]CheckFolder [04:29:53]dirname=/storage/ofd_packets [04:29:53]CheckFolder done [04:29:53]ProducePacketName [04:29:53]name=ofd_packets/00031704 [04:29:53]NVStorageSaveData ofd_packets/00031704 [04:29:53]File name is /storage/ofd_packets/00031704 [04:29:53]Write 546 bytes [04:29:53]NVStorageSaveData done [04:29:53]OFDSenderStorePacket done [04:29:53]KKMCreateOFDPacket done [04:29:53]NVStorageSaveData kkm_last_timestamp [04:29:53]File name is /storage/kkm_last_timestamp [04:29:53]Write 4 bytes [04:29:53]NVStorageSaveData done [04:29:53]ExternCall_PrintAddStr [04:29:53]wPrintStart [04:29:53]Write to MH i2c: 01 00 00 7D 12 8F [04:29:53]Write i2c OK [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: 01 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: 01 07 00 [04:29:53]MH_I2C_Read... [04:29:53]Read from MH i2c: 01 07 00 7D 12 00 00 00 00 00 FF 0F A4 [04:29:53]RasterBufferAndPrint [04:29:53]line Счет N : (3)214285 [04:29:53]line ИНН: 02508201610067 [04:29:53]line Контрольно-Кассовый Чек [04:29:53]line ПРОДАЖА [04:29:53]line Товар: 4700002082504 [04:29:53]line Водка Белое золото 0,24л [04:29:53]line 1.000 * 200.00 [04:29:53]line = 200.00 [04:29:53]line НДС 12% НСП 1% [04:29:53]line > о реализуемом товаре [04:29:53]line Товар: 54491472 [04:29:53]line Напиток Кока-Кола 0,5л [04:29:53]line 1.000 * 75.00 [04:29:53]line = 75.00 [04:29:53]line НДС 12% НСП 1% [04:29:53]line > о реализуемом товаре [04:29:53]line Товар: 5449000054227 [04:29:53]line Напиток Кока-Кола 1л [04:29:53]line 1.000 * 125.00 [04:29:53]line = 125.00 [04:29:53]line НДС 12% НСП 1% [04:29:53]line > о реализуемом товаре [04:29:53]line ИТОГО: 400.00 [04:29:53]line НСП 1% : 3.54 [04:29:53]line НДС 12% : 42.47 [04:29:53]line Наличными: 400.00 [04:29:53]line Безнал.: 0.00 [04:29:53]line Место: АЗС № 140 "Партнер Нефть" [04:29:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:29:53]line СНО: Общий режим [04:29:53]line Чек 23 16.07.2024 04:29 [04:29:53]line Смена: 371 ФФД: 1.0 [04:29:53]line ЗНМ: 0300000189 [04:29:53]line РНМ: 0000000000098025 [04:29:53]line Версия ККМ: 001 [04:29:53]line ФМ: 0000000000965389 [04:29:53]line ФД: 31704 [04:29:53]line ФПД: 278064725100297 [04:29:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T042954&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31704&fm=278064725100297&tin=02508201610067®Number=0000000000098025&sum=40000 [04:29:53]line 0 [04:29:53]written 0, free lines is 4095 [04:29:53]OFD Sender: Processing packet 31704 [packets to send 6, broken 5] [04:29:53]ProducePacketName [04:29:53]name=ofd_packets/00031704 [04:29:53]OFD Sender: To server: pG, [04:29:53]CommunicateWithHost lk.salyk.kg:30040 [04:29:53]ConnectInit lk.salyk.kg [04:29:53]Connected sock=10 [04:29:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 04 02 00 00 20 51 FC 01 7D C0 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 35 30 34 06 04 29 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 BE D0 B5 20 D0 B7 D0 BE D0 BB D0 BE D1 82 D0 BE 20 30 2C 32 34 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 4E 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 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 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 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 97 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 17 00 00 00 F4 03 04 00 42 F7 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D8 7B 00 00 35 04 06 00 FC E5 FD 2A 07 09 54 85 02 DB D7 75 C0 FD [04:29:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 20 CA 47 00 43 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 35 33 38 39 10 04 04 00 D8 7B 00 00 F4 03 04 00 50 A3 95 66 B6 04 01 00 00 13 11 57 38 2D 36 F1 DE [04:29:54]CommunicateWithHost err = 0 [04:29:54]CheckOFDResponse [04:29:54]1017 (14) - 77093643461234 [04:29:54]1041 (16) - 0000000000965389 [04:29:54]1040 (4) - 31704 [04:29:54]1012 (4) - 15.07.2024 22:31 [04:29:54]1206 (1) - 0 [04:29:54]OFD Sender: Remove packet 31704 [04:29:54]ProducePacketName [04:29:54]name=ofd_packets/00031704 [04:29:54]NVStorageDeleteData [04:29:54]Write to MH i2c: 01 00 00 B1 12 C3 [04:29:54]Write i2c OK [04:29:54]MH_I2C_Read... [04:29:54]Read from MH i2c: 01 [04:29:54]MH_I2C_Read... [04:29:54]Read from MH i2c: 01 07 00 [04:29:54]MH_I2C_Read... [04:29:54]Read from MH i2c: 01 07 00 B1 12 00 00 00 00 00 4A 0C 20 [04:29:54]RasterBufferAndPrint [04:29:54]line [04:29:54]line [04:29:54]line [04:29:54]line [04:29:54]line [04:29:54]written 0, free lines is 3152 [04:29:54]MH_Cut [04:29:54]Write to MH i2c: D1 01 00 B8 12 01 9C [04:29:54]Write i2c OK [04:29:54]MH_I2C_Read... [04:29:54]Read from MH i2c: D1 [04:29:54]MH_I2C_Read... [04:29:54]Read from MH i2c: D1 01 00 [04:29:54]MH_I2C_Read... [04:29:54]Read from MH i2c: D1 01 00 B8 12 00 9B [04:29:54]Write to MH i2c: 01 00 00 B9 12 CB [04:29:54]Write i2c OK [04:29:54]MH_I2C_Read... [04:29:54]OFD Sender: No OFD packet to send [04:29:55]*** Cut start [04:29:55]*** Partial cut [04:29:55]*** CUTSNS_PIN = 1 [04:29:55]*** CUTSNS_PIN = 0 [04:29:55]*** Brake cut motor [04:29:55]Read from MH i2c: 01 [04:29:55]MH_I2C_Read... [04:29:55]*** Stop cut motor [04:29:55]*** Cut end [04:29:55]Read from MH i2c: 01 07 00 [04:29:55]MH_I2C_Read... [04:29:55]Read from MH i2c: 01 07 00 B9 12 00 00 00 00 00 FF 0F E0 [04:29:55]process_action close_receipt done [04:29:55]requested_data is exist [04:29:55]produce_requested_data [04:29:55]requested_item fm.sn is exist - process it [04:29:55]wFMCommunicate request_size=4 [04:29:55]MH_SAM_APDU [04:29:55]CAPDU: 80 11 00 00 [04:29:55]Write to MH i2c: E2 08 00 BA 12 80 11 00 00 00 00 00 00 46 [04:29:55]Write i2c OK [04:29:55]MH_I2C_Read... [04:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:29:55]Read from MH i2c: E2 [04:29:55]MH_I2C_Read... [04:29:55]Read from MH i2c: E2 17 00 [04:29:55]MH_I2C_Read... [04:29:55]Read from MH i2c: E2 17 00 BA 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A1 [04:29:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:29:55]wFMCommunicate OK [04:29:55]requested_item fd.num is exist - process it [04:29:55]SAM_PROTO_GetFieldsCounters [04:29:55]wFMCommunicate request_size=4 [04:29:55]MH_SAM_APDU [04:29:55]CAPDU: 80 13 00 00 [04:29:55]Write to MH i2c: E2 08 00 BB 12 80 13 00 00 00 00 00 00 49 [04:29:55]Write i2c OK [04:29:55]MH_I2C_Read... [04:29:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:29:55]Read from MH i2c: E2 [04:29:55]MH_I2C_Read... [04:29:55]Read from MH i2c: E2 62 00 [04:29:55]MH_I2C_Read... [04:29:55]Read from MH i2c: E2 62 00 BB 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D8 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [04:29:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D8 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:29:55]wFMCommunicate OK [04:29:55]SAM_PROTO_GetFieldsCounters done [04:29:55]requested_item shift.num is exist - process it [04:29:55]requested_item shift.opened is exist - process it [04:29:55]req_shift_opened [04:29:55]FM_GetShiftState [04:29:55]SAM_PROTO_GetShiftState [04:29:55]wFMCommunicate request_size=4 [04:29:55]MH_SAM_APDU [04:29:55]CAPDU: 80 13 01 00 [04:29:55]Write to MH i2c: E2 08 00 BC 12 80 13 01 00 00 00 00 00 4B [04:29:55]Write i2c OK [04:29:55]MH_I2C_Read... [04:29:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:29:56]Read from MH i2c: E2 [04:29:56]MH_I2C_Read... [04:29:56]Read from MH i2c: E2 0E 00 [04:29:56]MH_I2C_Read... [04:29:56]Read from MH i2c: E2 0E 00 BC 12 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 9A [04:29:56]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:29:56]wFMCommunicate OK [04:29:56]SAM_PROTO_GetShiftState done [04:29:56]FM_GetShiftState done [04:29:56]req_shift_opened done [04:29:56]requested_item shift.open_date is exist - process it [04:29:56]req_shift_open_date [04:29:56]req_shift_open_date done [04:29:56]produce_requested_data done [04:29:56]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31704,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [04:29:56]process_action_free close_receipt [04:29:56]json_value_free [04:29:56]json_value_free done [04:29:56]process_json_proto returns [04:29:56]Send response to host [04:29:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31704,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [04:29:56]free response buf [04:29:56]execute_script done [04:29:56]execute_script returns [04:29:56]free content buf [04:29:56]Sock 7.Close socket [04:29:56]Sock 7.Thread stoped [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:23]accept exits with 9 [04:31:23]New connection [04:31:23]New thread 3066965348 created [04:31:23]Thread 3066821988 joined [04:31:23]Waiting for new connection... [04:31:23] Sock 9.Parse request [04:31:23]Sock 9.Check first char [04:31:23]Sock 9.First char is OK [04:31:23]request: POST /json_proto HTTP/1.0 [04:31:23]Method: POST [04:31:23]URL: /json_proto [04:31:23]Method is POST - this is cgi request [04:31:23]url: /json_proto [04:31:23]query_string will be loaded in cgi processing [04:31:23]execute_cgi json_proto POST (null) [04:31:23]execute_cgi path=json_proto method=POST [04:31:23]POST find Content-Length [04:31:23]Host: 172.17.39.68:8080 [04:31:23]Content-Length: 910 [04:31:23]Content-Type: application/json [04:31:23] [04:31:23]POST finish read [04:31:23]Found Content-Length = 910 [04:31:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214286", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/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" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:23]execute_script... [04:31: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 : (3)214286", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/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" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:23]POST & json_proto [04:31:23]process_json_proto [04:31:23]json parsed OK: [04:31:23]protocol is kg_v1.0 [04:31:23]action value=close_receipt [04:31:23]process_action close_receipt [04:31:23]cmd_close_receipt [04:31:23]MH_GetDate [04:31:23]Write to MH i2c: F0 00 00 BD 12 BE [04:31:23]Write i2c OK [04:31:23]MH_I2C_Read... [04:31:23]Read from MH i2c: F0 [04:31:23]MH_I2C_Read... [04:31:23]Read from MH i2c: F0 09 00 [04:31:23]MH_I2C_Read... [04:31:23]Read from MH i2c: F0 09 00 BD 12 00 9E F7 95 66 D6 48 95 66 70 [04:31:23]GetLastDocTimeStamp 1721104194 [04:31:23]current date 1721104286 [04:31:23]FM_GetShiftState [04:31:23]SAM_PROTO_GetShiftState [04:31:23]wFMCommunicate request_size=4 [04:31:23]MH_SAM_APDU [04:31:23]CAPDU: 80 13 01 00 [04:31:23]Write to MH i2c: E2 08 00 BE 12 80 13 01 00 00 00 00 00 4D [04:31:23]Write i2c OK [04:31:23]MH_I2C_Read... [04:31:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:23]Read from MH i2c: E2 [04:31:23]MH_I2C_Read... [04:31:23]Read from MH i2c: E2 0E 00 [04:31:23]MH_I2C_Read... [04:31:23]Read from MH i2c: E2 0E 00 BE 12 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 9C [04:31:23]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:31:23]wFMCommunicate OK [04:31:23]SAM_PROTO_GetShiftState done [04:31:23]FM_GetShiftState done [04:31:23]opened in 1721088399 [04:31:23]opened+sec_in_day 1721174799 [04:31:23]quantity*price = 7000 [04:31:23]sum+1 = 7001 [04:31:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46214638 Р/ж mentos p.white нежная мята 16/15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 119.00 НСП 1% : 1.05 НДС 12% : 12.63 Наличными: 119.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 24 16.07.2024 04:31 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31705 ФПД: 7810190703326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T043126&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31705&fm=7810190703326&tin=02508201610067®Number=0000000000098025&sum=11900 0 [04:31:24]StoreToDocumentArchive [04:31:24]shift 371 fd 31705 [04:31:24]save to /storage/0371/doc_00031705 [04:31:24]save last doc name /storage/0371/doc_00031705 to /storage/kkm_last_doc_name [04:31:24]save OK [04:31:24]Clear old archive folders... [04:31:24]ProcessDocumentItem done err = 0, tmpTLVsize=392 [04:31:24]tlvbuf is 014B8490 [04:31:24]SAM_PROTO_ClearQueue [04:31:24]wFMCommunicate request_size=4 [04:31:24]MH_SAM_APDU [04:31:24]CAPDU: 80 09 00 00 [04:31:24]Write to MH i2c: E2 08 00 CB 12 80 09 00 00 00 00 00 00 4F [04:31:24]Write i2c OK [04:31:24]MH_I2C_Read... [04:31:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:31:24]Read from MH i2c: E2 [04:31:24]MH_I2C_Read... [04:31:24]Read from MH i2c: E2 03 00 [04:31:24]MH_I2C_Read... [04:31:24]Read from MH i2c: E2 03 00 CB 12 00 90 00 51 [04:31:24]RAPDU: 90 00 [04:31:24]wFMCommunicate OK [04:31:24]SAM_PROTO_ClearQueue done [04:31:24]KKMCreateOFDPacket [04:31:24]OFDProtocolAddRootSTLVToBuf [04:31:24]FM_MakeSignedData [04:31:24]FM_MakeSignedData [04:31:24]SAM_PROTO_SignData [04:31:24]wFMCommunicate request_size=4 [04:31:24]MH_SAM_APDU [04:31:24]CAPDU: 80 0D 01 02 [04:31:24]Write to MH i2c: E2 08 00 CC 12 80 0D 01 02 00 00 00 00 57 [04:31:24]Write i2c OK [04:31:24]MH_I2C_Read... [04:31:24]OFD Sender: No OFD packet to send [04:31:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:31:24]Read from MH i2c: E2 [04:31:24]MH_I2C_Read... [04:31:24]Read from MH i2c: E2 03 00 [04:31:24]MH_I2C_Read... [04:31:24]Read from MH i2c: E2 03 00 CC 12 00 90 00 52 [04:31:24]RAPDU: 90 00 [04:31:24]wFMCommunicate OK [04:31:24]wFMCommunicate request_size=255 [04:31:24]MH_SAM_APDU [04:31:24]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 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 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [04:31:24]Write to MH i2c: E2 02 01 CD 12 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 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 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 C1 [04:31:24]Write i2c OK [04:31:24]MH_I2C_Read... [04:31:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:24]Read from MH i2c: E2 [04:31:24]MH_I2C_Read... [04:31:24]Read from MH i2c: E2 03 00 [04:31:24]MH_I2C_Read... [04:31:24]Read from MH i2c: E2 03 00 CD 12 00 90 00 53 [04:31:24]RAPDU: 90 00 [04:31:24]wFMCommunicate OK [04:31:24]wFMCommunicate request_size=151 [04:31:24]MH_SAM_APDU [04:31:24]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9E F7 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D9 7B 00 00 35 04 06 00 07 1A 73 A4 7A DE [04:31:24]Write to MH i2c: E2 9A 00 CE 12 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9E F7 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D9 7B 00 00 35 04 06 00 07 1A 73 A4 7A DE 00 00 BD [04:31:24]Write i2c OK [04:31:24]MH_I2C_Read... [04:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:25]Read from MH i2c: E2 [04:31:25]MH_I2C_Read... [04:31:25]Read from MH i2c: E2 03 00 [04:31:25]MH_I2C_Read... [04:31:25]Read from MH i2c: E2 03 00 CE 12 00 90 00 54 [04:31:25]RAPDU: 90 00 [04:31:25]wFMCommunicate OK [04:31:25]wFMCommunicate request_size=4 [04:31:25]MH_SAM_APDU [04:31:25]CAPDU: 80 0D 03 02 [04:31:25]Write to MH i2c: E2 08 00 CF 12 80 0D 03 02 00 00 00 00 5C [04:31:25]Write i2c OK [04:31:25]MH_I2C_Read... [04:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:31:25]Read from MH i2c: E2 [04:31:25]MH_I2C_Read... [04:31:25]Read from MH i2c: E2 0B 00 [04:31:25]MH_I2C_Read... [04:31:25]Read from MH i2c: E2 0B 00 CF 12 00 6C 84 B1 61 49 D8 02 CD 90 00 4F [04:31:25]RAPDU: 6C 84 B1 61 49 D8 02 CD 90 00 [04:31:25]wFMCommunicate OK [04:31:25]SAM_PROTO_SignData done [04:31:25]FM_MakeSignedData done [04:31:25]CreateOFDProtocolMessage [04:31:25]wFMCommunicate request_size=4 [04:31:25]MH_SAM_APDU [04:31:25]CAPDU: 80 11 00 00 [04:31:25]Write to MH i2c: E2 08 00 D0 12 80 11 00 00 00 00 00 00 5C [04:31:25]Write i2c OK [04:31:25]MH_I2C_Read... [04:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:25]Read from MH i2c: E2 [04:31:25]MH_I2C_Read... [04:31:25]Read from MH i2c: E2 17 00 [04:31:25]MH_I2C_Read... [04:31:25]Read from MH i2c: E2 17 00 D0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B7 [04:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:31:25]wFMCommunicate OK [04:31:25]CreateOFDProtocolMessage done [04:31:25]OFDSenderStorePacket 31705 [04:31:25]StoreOFDPacket docnum=31705 [04:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 9C 01 00 00 30 6B 94 01 64 1B 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 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 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9E F7 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D9 7B 00 00 35 04 06 00 07 1A 73 A4 7A DE 6C 84 B1 61 49 D8 02 CD [04:31:25]CheckFolder [04:31:25]dirname=/storage/ofd_packets [04:31:25]CheckFolder done [04:31:25]ProducePacketName [04:31:25]name=ofd_packets/00031705 [04:31:25]NVStorageSaveData ofd_packets/00031705 [04:31:25]File name is /storage/ofd_packets/00031705 [04:31:25]Write 442 bytes [04:31:25]NVStorageSaveData done [04:31:25]OFDSenderStorePacket done [04:31:25]KKMCreateOFDPacket done [04:31:25]NVStorageSaveData kkm_last_timestamp [04:31:25]File name is /storage/kkm_last_timestamp [04:31:25]Write 4 bytes [04:31:25]NVStorageSaveData done [04:31:25]ExternCall_PrintAddStr [04:31:25]wPrintStart [04:31:25]Write to MH i2c: 01 00 00 D1 12 E3 [04:31:25]Write i2c OK [04:31:25]MH_I2C_Read... [04:31:25]Read from MH i2c: 01 [04:31:25]MH_I2C_Read... [04:31:25]Read from MH i2c: 01 07 00 [04:31:25]MH_I2C_Read... [04:31:25]Read from MH i2c: 01 07 00 D1 12 00 00 00 00 00 FF 0F F8 [04:31:25]RasterBufferAndPrint [04:31:25]line Счет N : (3)214286 [04:31:25]line ИНН: 02508201610067 [04:31:25]line Контрольно-Кассовый Чек [04:31:25]line ПРОДАЖА [04:31:25]line Товар: 4700002082931 [04:31:25]line Водка Хорошая 0,1л [04:31:25]line 1.000 * 70.00 [04:31:25]line = 70.00 [04:31:25]line НДС 12% НСП 1% [04:31:25]line > о реализуемом товаре [04:31:25]line Товар: 46214638 [04:31:25]line Р/ж mentos p.white нежная мята 16/15,5г [04:31:25]line 1.000 * 49.00 [04:31:25]line = 49.00 [04:31:25]line НДС 12% НСП 1% [04:31:25]line > о реализуемом товаре [04:31:25]line ИТОГО: 119.00 [04:31:25]line НСП 1% : 1.05 [04:31:25]line НДС 12% : 12.63 [04:31:25]line Наличными: 119.00 [04:31:25]line Безнал.: 0.00 [04:31:25]line Место: АЗС № 140 "Партнер Нефть" [04:31:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [04:31:25]line СНО: Общий режим [04:31:25]line Чек 24 16.07.2024 04:31 [04:31:25]line Смена: 371 ФФД: 1.0 [04:31:25]line ЗНМ: 0300000189 [04:31:25]line РНМ: 0000000000098025 [04:31:25]line Версия ККМ: 001 [04:31:25]line ФМ: 0000000000965389 [04:31:25]line ФД: 31705 [04:31:25]line ФПД: 7810190703326 [04:31:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T043126&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31705&fm=7810190703326&tin=02508201610067®Number=0000000000098025&sum=11900 [04:31:25]line 0 [04:31:25]OFD Sender: Processing packet 31705 [packets to send 6, broken 5] [04:31:25]ProducePacketName [04:31:25]name=ofd_packets/00031705 [04:31:25]OFD Sender: To server: pG, [04:31:25]CommunicateWithHost lk.salyk.kg:30040 [04:31:25]ConnectInit lk.salyk.kg [04:31:25]written 0, free lines is 4095 [04:31:25]Connected sock=10 [04:31:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 9C 01 00 00 30 6B 94 01 64 1B 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 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 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 9E F7 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 D9 7B 00 00 35 04 06 00 07 1A 73 A4 7A DE 6C 84 B1 61 49 D8 02 CD [04:31:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 18 8A 47 00 F6 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 35 33 38 39 10 04 04 00 D9 7B 00 00 F4 03 04 00 AC A3 95 66 B6 04 01 00 00 7D FC B7 11 67 CE 66 85 [04:31:25]CommunicateWithHost err = 0 [04:31:25]CheckOFDResponse [04:31:25]1017 (14) - 77093643461234 [04:31:25]1041 (16) - 0000000000965389 [04:31:25]1040 (4) - 31705 [04:31:25]1012 (4) - 15.07.2024 22:33 [04:31:25]1206 (1) - 0 [04:31:25]OFD Sender: Remove packet 31705 [04:31:25]ProducePacketName [04:31:25]name=ofd_packets/00031705 [04:31:25]NVStorageDeleteData [04:31:26]Write to MH i2c: 01 00 00 00 13 13 [04:31:26]Write i2c OK [04:31:26]MH_I2C_Read... [04:31:26]Read from MH i2c: 01 [04:31:26]MH_I2C_Read... [04:31:26]Read from MH i2c: 01 07 00 [04:31:26]MH_I2C_Read... [04:31:26]Read from MH i2c: 01 07 00 00 13 00 00 00 00 00 9B 0C C1 [04:31:26]RasterBufferAndPrint [04:31:26]line [04:31:26]line [04:31:26]line [04:31:26]line [04:31:26]line [04:31:26]written 0, free lines is 3234 [04:31:26]MH_Cut [04:31:26]Write to MH i2c: D1 01 00 07 13 01 EC [04:31:26]Write i2c OK [04:31:26]MH_I2C_Read... [04:31:26]Read from MH i2c: D1 [04:31:26]MH_I2C_Read... [04:31:26]Read from MH i2c: D1 01 00 [04:31:26]MH_I2C_Read... [04:31:26]Read from MH i2c: D1 01 00 07 13 00 EB [04:31:26]Write to MH i2c: 01 00 00 08 13 1B [04:31:26]Write i2c OK [04:31:26]MH_I2C_Read... [04:31:26]OFD Sender: No OFD packet to send [04:31:26]*** Cut start [04:31:26]*** Partial cut [04:31:26]*** CUTSNS_PIN = 1 [04:31:26]*** CUTSNS_PIN = 0 [04:31:27]*** Brake cut motor [04:31:27]Read from MH i2c: 01 [04:31:27]MH_I2C_Read... [04:31:27]*** Stop cut motor [04:31:27]*** Cut end [04:31:27]Read from MH i2c: 01 07 00 [04:31:27]MH_I2C_Read... [04:31:27]Read from MH i2c: 01 07 00 08 13 00 00 00 00 00 FF 0F 30 [04:31:27]process_action close_receipt done [04:31:27]requested_data is exist [04:31:27]produce_requested_data [04:31:27]requested_item fm.sn is exist - process it [04:31:27]wFMCommunicate request_size=4 [04:31:27]MH_SAM_APDU [04:31:27]CAPDU: 80 11 00 00 [04:31:27]Write to MH i2c: E2 08 00 09 13 80 11 00 00 00 00 00 00 96 [04:31:27]Write i2c OK [04:31:27]MH_I2C_Read... [04:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:27]Read from MH i2c: E2 [04:31:27]MH_I2C_Read... [04:31:27]Read from MH i2c: E2 17 00 [04:31:27]MH_I2C_Read... [04:31:27]Read from MH i2c: E2 17 00 09 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F1 [04:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [04:31:27]wFMCommunicate OK [04:31:27]requested_item fd.num is exist - process it [04:31:27]SAM_PROTO_GetFieldsCounters [04:31:27]wFMCommunicate request_size=4 [04:31:27]MH_SAM_APDU [04:31:27]CAPDU: 80 13 00 00 [04:31:27]Write to MH i2c: E2 08 00 0A 13 80 13 00 00 00 00 00 00 99 [04:31:27]Write i2c OK [04:31:27]MH_I2C_Read... [04:31:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:31:27]Read from MH i2c: E2 [04:31:27]MH_I2C_Read... [04:31:27]Read from MH i2c: E2 62 00 [04:31:27]MH_I2C_Read... [04:31:27]Read from MH i2c: E2 62 00 0A 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D9 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [04:31: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 D9 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:31:27]wFMCommunicate OK [04:31:27]SAM_PROTO_GetFieldsCounters done [04:31:27]requested_item shift.num is exist - process it [04:31:27]requested_item shift.opened is exist - process it [04:31:27]req_shift_opened [04:31:27]FM_GetShiftState [04:31:27]SAM_PROTO_GetShiftState [04:31:27]wFMCommunicate request_size=4 [04:31:27]MH_SAM_APDU [04:31:27]CAPDU: 80 13 01 00 [04:31:27]Write to MH i2c: E2 08 00 0B 13 80 13 01 00 00 00 00 00 9B [04:31:27]Write i2c OK [04:31:27]MH_I2C_Read... [04:31:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:27]Read from MH i2c: E2 [04:31:27]MH_I2C_Read... [04:31:27]Read from MH i2c: E2 0E 00 [04:31:27]MH_I2C_Read... [04:31:27]Read from MH i2c: E2 0E 00 0B 13 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 EA [04:31:27]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [04:31:27]wFMCommunicate OK [04:31:27]SAM_PROTO_GetShiftState done [04:31:27]FM_GetShiftState done [04:31:27]req_shift_opened done [04:31:27]requested_item shift.open_date is exist - process it [04:31:27]req_shift_open_date [04:31:27]req_shift_open_date done [04:31:27]produce_requested_data done [04:31:27]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31705,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [04:31:27]process_action_free close_receipt [04:31:27]json_value_free [04:31:27]json_value_free done [04:31:27]process_json_proto returns [04:31:27]Send response to host [04:31:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31705,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [04:31:27]free response buf [04:31:27]execute_script done [04:31:27]execute_script returns [04:31:27]free content buf [04:31:27]Sock 9.Close socket [04:31:27]Sock 9.Thread stoped [04:31:31]OFD Sender: No OFD packet to send [04:31:36]OFD Sender: No OFD packet to send [04:31:41]OFD Sender: No OFD packet to send [04:31:46]OFD Sender: No OFD packet to send [04:31:51]OFD Sender: No OFD packet to send [04:31:56]OFD Sender: No OFD packet to send [04:32:01]OFD Sender: No OFD packet to send [04:32:06]OFD Sender: No OFD packet to send [04:32:11]OFD Sender: No OFD packet to send [04:32:16]OFD Sender: No OFD packet to send [04:32:21]OFD Sender: No OFD packet to send [04:32:26]OFD Sender: No OFD packet to send [04:32:31]OFD Sender: No OFD packet to send [04:32:36]OFD Sender: No OFD packet to send [04:32:41]OFD Sender: No OFD packet to send [04:32:46]OFD Sender: No OFD packet to send [04:32:51]OFD Sender: No OFD packet to send [04:32:56]OFD Sender: No OFD packet to send [04:33:01]OFD Sender: No OFD packet to send [04:33:06]OFD Sender: No OFD packet to send [04:33:11]OFD Sender: No OFD packet to send [04:33:16]OFD Sender: No OFD packet to send [04:33:21]OFD Sender: No OFD packet to send [04:33:26]OFD Sender: No OFD packet to send [04:33:31]OFD Sender: No OFD packet to send [04:33:36]OFD Sender: No OFD packet to send [04:33:41]OFD Sender: No OFD packet to send [04:33:46]OFD Sender: No OFD packet to send [04:33:51]OFD Sender: No OFD packet to send [04:33:56]OFD Sender: No OFD packet to send [04:34:01]OFD Sender: No OFD packet to send [04:34:06]OFD Sender: No OFD packet to send [04:34:11]OFD Sender: No OFD packet to send [04:34:16]OFD Sender: No OFD packet to send [04:34:21]OFD Sender: No OFD packet to send [04:34:26]OFD Sender: No OFD packet to send [04:34:31]OFD Sender: No OFD packet to send [04:34:36]OFD Sender: No OFD packet to send [04:34:41]OFD Sender: No OFD packet to send [04:34:46]OFD Sender: No OFD packet to send [04:34:51]OFD Sender: No OFD packet to send [04:34:56]OFD Sender: No OFD packet to send [04:35:01]OFD Sender: No OFD packet to send [04:35:06]OFD Sender: No OFD packet to send [04:35:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:56]OFD Sender: No OFD packet to send [04:39:01]OFD Sender: No OFD packet to send [04:39:06]OFD Sender: No OFD packet to send [04:39:11]OFD Sender: No OFD packet to send [04:39:16]OFD Sender: No OFD packet to send [04:39:21]OFD Sender: No OFD packet to send [04:39:26]OFD Sender: No OFD packet to send [04:39:31]OFD Sender: No OFD packet to send [04:39:36]OFD Sender: No OFD packet to send [04:39:41]OFD Sender: No OFD packet to send [04:39:46]OFD Sender: No OFD packet to send [04:39:51]OFD Sender: No OFD packet to send [04:39:56]OFD Sender: No OFD packet to send [04:40:01]OFD Sender: No OFD packet to send [04:40:06]OFD Sender: No OFD packet to send [04:40:11]OFD Sender: No OFD packet to send [04:40:16]OFD Sender: No OFD packet to send [04:40:21]OFD Sender: No OFD packet to send [04:40:26]OFD Sender: No OFD packet to send [04:40:31]OFD Sender: No OFD packet to send [04:40:36]OFD Sender: No OFD packet to send [04:40:41]OFD Sender: No OFD packet to send [04:40:46]OFD Sender: No OFD packet to send [04:40:51]OFD Sender: No OFD packet to send [04:40:56]OFD Sender: No OFD packet to send [04:41:01]OFD Sender: No OFD packet to send [04:41:06]OFD Sender: No OFD packet to send [04:41:11]OFD Sender: No OFD packet to send [04:41:16]OFD Sender: No OFD packet to send [04:41:21]OFD Sender: No OFD packet to send [04:41:26]OFD Sender: No OFD packet to send [04:41:31]OFD Sender: No OFD packet to send [04:41:36]OFD Sender: No OFD packet to send [04:41:41]OFD Sender: No OFD packet to send [04:41:46]OFD Sender: No OFD packet to send [04:41:51]OFD Sender: No OFD packet to send [04:41:56]OFD Sender: No OFD packet to send [04:42:01]OFD Sender: No OFD packet to send [04:42:06]OFD Sender: No OFD packet to send [04:42:11]OFD Sender: No OFD packet to send [04:42:16]OFD Sender: No OFD packet to send [04:42:21]OFD Sender: No OFD packet to send [04:42:26]OFD Sender: No OFD packet to send [04:42:31]OFD Sender: No OFD packet to send [04:42:36]OFD Sender: No OFD packet to send [04:42:41]OFD Sender: No OFD packet to send [04:42:46]OFD Sender: No OFD packet to send [04:42:51]OFD Sender: No OFD packet to send [04:42:56]OFD Sender: No OFD packet to send [04:43:01]OFD Sender: No OFD packet to send [04:43:06]OFD Sender: No OFD packet to send [04:43:11]OFD Sender: No OFD packet to send [04:43:16]OFD Sender: No OFD packet to send [04:43:21]OFD Sender: No OFD packet to send [04:43:26]OFD Sender: No OFD packet to send [04:43:31]OFD Sender: No OFD packet to send [04:43:36]OFD Sender: No OFD packet to send [04:43:41]OFD Sender: No OFD packet to send [04:43:46]OFD Sender: No OFD packet to send [04:43:51]OFD Sender: No OFD packet to send [04:43:56]OFD Sender: No OFD packet to send [04:44:01]OFD Sender: No OFD packet to send [04:44:06]OFD Sender: No OFD packet to send [04:44:11]OFD Sender: No OFD packet to send [04:44:16]OFD Sender: No OFD packet to send [04:44:21]OFD Sender: No OFD packet to send [04:44:26]OFD Sender: No OFD packet to send [04:44:31]OFD Sender: No OFD packet to send [04:44:36]OFD Sender: No OFD packet to send [04:44:41]OFD Sender: No OFD packet to send [04:44:46]OFD Sender: No OFD packet to send [04:44:51]OFD Sender: No OFD packet to send [04:44:56]OFD Sender: No OFD packet to send [04:45:01]OFD Sender: No OFD packet to send [04:45:07]OFD Sender: No OFD packet to send [04:45:12]OFD Sender: No OFD packet to send [04:45:17]OFD Sender: No OFD packet to send [04:45:22]OFD Sender: No OFD packet to send [04:45:27]OFD Sender: No OFD packet to send [04:45:32]OFD Sender: No OFD packet to send [04:45:37]OFD Sender: No OFD packet to send [04:45:42]OFD Sender: No OFD packet to send [04:45:47]OFD Sender: No OFD packet to send [04:45:52]OFD Sender: No OFD packet to send [04:45:57]OFD Sender: No OFD packet to send [04:46:02]OFD Sender: No OFD packet to send [04:46:07]OFD Sender: No OFD packet to send [04:46:12]OFD Sender: No OFD packet to send [04:46:17]OFD Sender: No OFD packet to send [04:46:22]OFD Sender: No OFD packet to send [04:46:27]OFD Sender: No OFD packet to send [04:46:32]OFD Sender: No OFD packet to send [04:46:37]OFD Sender: No OFD packet to send [04:46:42]OFD Sender: No OFD packet to send [04:46:47]OFD Sender: No OFD packet to send [04:46:52]OFD Sender: No OFD packet to send [04:46:57]OFD Sender: No OFD packet to send [04:47:02]OFD Sender: No OFD packet to send [04:47:07]OFD Sender: No OFD packet to send [04:47:12]OFD Sender: No OFD packet to send [04:47:17]OFD Sender: No OFD packet to send [04:47:22]OFD Sender: No OFD packet to send [04:47:27]OFD Sender: No OFD packet to send [04:47:32]OFD Sender: No OFD packet to send [04:47:37]OFD Sender: No OFD packet to send [04:47:42]OFD Sender: No OFD packet to send [04:47:47]OFD Sender: No OFD packet to send [04:47:52]OFD Sender: No OFD packet to send [04:47:57]OFD Sender: No OFD packet to send [04:48:02]OFD Sender: No OFD packet to send [04:48:07]OFD Sender: No OFD packet to send [04:48:12]OFD Sender: No OFD packet to send [04:48:17]OFD Sender: No OFD packet to send [04:48:22]OFD Sender: No OFD packet to send [04:48:27]OFD Sender: No OFD packet to send [04:48:32]OFD Sender: No OFD packet to send [04:48:37]OFD Sender: No OFD packet to send [04:48:42]OFD Sender: No OFD packet to send [04:48:47]OFD Sender: No OFD packet to send [04:48:52]OFD Sender: No OFD packet to send [04:48:57]OFD Sender: No OFD packet to send [04:49:02]OFD Sender: No OFD packet to send [04:49:07]OFD Sender: No OFD packet to send [04:49:12]OFD Sender: No OFD packet to send [04:49:17]OFD Sender: No OFD packet to send [04:49:22]OFD Sender: No OFD packet to send [04:49:27]OFD Sender: No OFD packet to send [04:49:32]OFD Sender: No OFD packet to send [04:49:37]OFD Sender: No OFD packet to send [04:49:42]OFD Sender: No OFD packet to send [04:49:47]OFD Sender: No OFD packet to send [04:49:52]OFD Sender: No OFD packet to send [04:49:57]OFD Sender: No OFD packet to send [04:50:02]OFD Sender: No OFD packet to send [04:50:07]OFD Sender: No OFD packet to send [04:50:12]OFD Sender: No OFD packet to send [04:50:17]OFD Sender: No OFD packet to send [04:50:22]OFD Sender: No OFD packet to send [04:50:27]OFD Sender: No OFD packet to send [04:50:32]OFD Sender: No OFD packet to send [04:50:37]OFD Sender: No OFD packet to send [04:50:42]OFD Sender: No OFD packet to send [04:50:47]OFD Sender: No OFD packet to send [04:50:52]OFD Sender: No OFD packet to send [04:50:57]OFD Sender: No OFD packet to send [04:51:02]OFD Sender: No OFD packet to send [04:51:07]OFD Sender: No OFD packet to send [04:51:12]OFD Sender: No OFD packet to send [04:51:17]OFD Sender: No OFD packet to send [04:51:22]OFD Sender: No OFD packet to send [04:51:27]OFD Sender: No OFD packet to send [04:51:32]OFD Sender: No OFD packet to send [04:51:37]OFD Sender: No OFD packet to send [04:51:42]OFD Sender: No OFD packet to send [04:51:47]OFD Sender: No OFD packet to send [04:51:52]OFD Sender: No OFD packet to send [04:51:57]OFD Sender: No OFD packet to send [04:52:02]OFD Sender: No OFD packet to send [04:52:07]OFD Sender: No OFD packet to send [04:52:12]OFD Sender: No OFD packet to send [04:52:17]OFD Sender: No OFD packet to send [04:52:22]OFD Sender: No OFD packet to send [04:52:27]OFD Sender: No OFD packet to send [04:52:32]OFD Sender: No OFD packet to send [04:52:37]OFD Sender: No OFD packet to send [04:52:42]OFD Sender: No OFD packet to send [04:52:47]OFD Sender: No OFD packet to send [04:52:52]OFD Sender: No OFD packet to send [04:52:57]OFD Sender: No OFD packet to send [04:53:02]OFD Sender: No OFD packet to send [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:17]OFD Sender: No OFD packet to send [04:53:22]OFD Sender: No OFD packet to send [04:53:27]OFD Sender: No OFD packet to send [04:53:32]OFD Sender: No OFD packet to send [04:53:37]OFD Sender: No OFD packet to send [04:53:42]OFD Sender: No OFD packet to send [04:53:47]OFD Sender: No OFD packet to send [04:53:52]OFD Sender: No OFD packet to send [04:53:57]OFD Sender: No OFD packet to send [04:54:02]OFD Sender: No OFD packet to send [04:54:07]OFD Sender: No OFD packet to send [04:54:12]OFD Sender: No OFD packet to send [04:54:17]OFD Sender: No OFD packet to send [04:54:22]OFD Sender: No OFD packet to send [04:54:27]OFD Sender: No OFD packet to send [04:54:32]OFD Sender: No OFD packet to send [04:54:37]OFD Sender: No OFD packet to send [04:54:42]OFD Sender: No OFD packet to send [04:54:47]OFD Sender: No OFD packet to send [04:54:52]OFD Sender: No OFD packet to send [04:54:57]OFD Sender: No OFD packet to send [04:55:02]OFD Sender: No OFD packet to send [04:55:07]OFD Sender: No OFD packet to send [04:55:12]OFD Sender: No OFD packet to send [04:55:17]OFD Sender: No OFD packet to send [04:55:22]OFD Sender: No OFD packet to send [04:55:27]OFD Sender: No OFD packet to send [04:55:32]OFD Sender: No OFD packet to send [04:55:37]OFD Sender: No OFD packet to send [04:55:42]OFD Sender: No OFD packet to send [04:55:47]OFD Sender: No OFD packet to send [04:55:52]OFD Sender: No OFD packet to send [04:55:57]OFD Sender: No OFD packet to send [04:56:02]OFD Sender: No OFD packet to send [04:56:07]OFD Sender: No OFD packet to send [04:56:12]OFD Sender: No OFD packet to send [04:56:17]OFD Sender: No OFD packet to send [04:56:22]OFD Sender: No OFD packet to send [04:56:27]OFD Sender: No OFD packet to send [04:56:32]OFD Sender: No OFD packet to send [04:56:37]OFD Sender: No OFD packet to send [04:56:42]OFD Sender: No OFD packet to send [04:56:47]OFD Sender: No OFD packet to send [04:56:52]OFD Sender: No OFD packet to send [04:56:57]OFD Sender: No OFD packet to send [04:57:02]OFD Sender: No OFD packet to send [04:57:07]OFD Sender: No OFD packet to send [04:57:12]OFD Sender: No OFD packet to send [04:57:17]OFD Sender: No OFD packet to send [04:57:22]OFD Sender: No OFD packet to send [04:57:27]OFD Sender: No OFD packet to send [04:57:32]OFD Sender: No OFD packet to send [04:57:37]OFD Sender: No OFD packet to send [04:57:42]OFD Sender: No OFD packet to send [04:57:47]OFD Sender: No OFD packet to send [04:57:52]OFD Sender: No OFD packet to send [04:57:57]OFD Sender: No OFD packet to send [04:58:02]OFD Sender: No OFD packet to send [04:58:07]OFD Sender: No OFD packet to send [04:58:12]OFD Sender: No OFD packet to send [04:58:17]OFD Sender: No OFD packet to send [04:58:22]OFD Sender: No OFD packet to send [04:58:27]OFD Sender: No OFD packet to send [04:58:32]OFD Sender: No OFD packet to send [04:58:37]OFD Sender: No OFD packet to send [04:58:42]OFD Sender: No OFD packet to send [04:58:47]OFD Sender: No OFD packet to send [04:58:52]OFD Sender: No OFD packet to send [04:58:57]OFD Sender: No OFD packet to send [04:59:02]OFD Sender: No OFD packet to send [04:59:07]OFD Sender: No OFD packet to send [04:59:12]OFD Sender: No OFD packet to send [04:59:17]OFD Sender: No OFD packet to send [04:59:22]OFD Sender: No OFD packet to send [04:59:27]OFD Sender: No OFD packet to send [04:59:32]OFD Sender: No OFD packet to send [04:59:37]OFD Sender: No OFD packet to send [04:59:42]OFD Sender: No OFD packet to send [04:59:47]OFD Sender: No OFD packet to send [04:59:52]OFD Sender: No OFD packet to send [04:59:57]OFD Sender: No OFD packet to send [05:00:02]OFD Sender: No OFD packet to send [05:00:07]OFD Sender: No OFD packet to send [05:00:12]OFD Sender: No OFD packet to send [05:00:17]OFD Sender: No OFD packet to send [05:00:22]OFD Sender: No OFD packet to send [05:00:27]OFD Sender: No OFD packet to send [05:00:32]OFD Sender: No OFD packet to send [05:00:37]OFD Sender: No OFD packet to send [05:00:42]OFD Sender: No OFD packet to send [05:00:47]OFD Sender: No OFD packet to send [05:00:52]OFD Sender: No OFD packet to send [05:00:57]OFD Sender: No OFD packet to send [05:01:02]OFD Sender: No OFD packet to send [05:01:07]OFD Sender: No OFD packet to send [05:01:12]OFD Sender: No OFD packet to send [05:01:17]OFD Sender: No OFD packet to send [05:01:22]OFD Sender: No OFD packet to send [05:01:27]OFD Sender: No OFD packet to send [05:01:32]OFD Sender: No OFD packet to send [05:01:37]OFD Sender: No OFD packet to send [05:01:42]OFD Sender: No OFD packet to send [05:01:47]OFD Sender: No OFD packet to send [05:01:52]OFD Sender: No OFD packet to send [05:01:57]OFD Sender: No OFD packet to send [05:02:02]OFD Sender: No OFD packet to send [05:02:07]OFD Sender: No OFD packet to send [05:02:12]OFD Sender: No OFD packet to send [05:02:17]OFD Sender: No OFD packet to send [05:02:22]OFD Sender: No OFD packet to send [05:02:27]OFD Sender: No OFD packet to send [05:02:32]OFD Sender: No OFD packet to send [05:02:37]OFD Sender: No OFD packet to send [05:02:42]OFD Sender: No OFD packet to send [05:02:47]OFD Sender: No OFD packet to send [05:02:52]OFD Sender: No OFD packet to send [05:02:57]OFD Sender: No OFD packet to send [05:03:02]OFD Sender: No OFD packet to send [05:03:07]OFD Sender: No OFD packet to send [05:03:12]OFD Sender: No OFD packet to send [05:03:17]OFD Sender: No OFD packet to send [05:03:22]OFD Sender: No OFD packet to send [05:03:27]OFD Sender: No OFD packet to send [05:03:29]accept exits with 7 [05:03:29]New connection [05:03:29]New thread 3066821988 created [05:03:29]Thread 3066965348 joined [05:03:29]Waiting for new connection... [05:03:29] Sock 7.Parse request [05:03:29]Sock 7.Check first char [05:03:29]Sock 7.First char is OK [05:03:29]request: POST /json_proto HTTP/1.0 [05:03:29]Method: POST [05:03:29]URL: /json_proto [05:03:29]Method is POST - this is cgi request [05:03:29]url: /json_proto [05:03:29]query_string will be loaded in cgi processing [05:03:29]execute_cgi json_proto POST (null) [05:03:29]execute_cgi path=json_proto method=POST [05:03:29]POST find Content-Length [05:03:29]Host: 172.17.39.68:8080 [05:03:29]Content-Length: 704 [05:03:29]Content-Type: application/json [05:03:29] [05:03:29]POST finish read [05:03:29]Found Content-Length = 704 [05:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214287", "tax_sys" : 0, "items" : [ { "code": "4600721021566", "name": "\u041F\u0438\u0432\u043E \u0425\u0443\u0433\u0430\u0440\u0434\u0435\u043D \u0431\u0435\u043B \u043D\u0435\u0444\u0438\u043B 0,5\u043B \u0441\u0442", "price" : 213.00, "quantity" : 1.000, "sum" : 213.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 213.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:29]execute_script... [05:03:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214287", "tax_sys" : 0, "items" : [ { "code": "4600721021566", "name": "\u041F\u0438\u0432\u043E \u0425\u0443\u0433\u0430\u0440\u0434\u0435\u043D \u0431\u0435\u043B \u043D\u0435\u0444\u0438\u043B 0,5\u043B \u0441\u0442", "price" : 213.00, "quantity" : 1.000, "sum" : 213.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 213.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:29]POST & json_proto [05:03:29]process_json_proto [05:03:29]json parsed OK: [05:03:29]protocol is kg_v1.0 [05:03:29]action value=close_receipt [05:03:29]process_action close_receipt [05:03:29]cmd_close_receipt [05:03:29]MH_GetDate [05:03:29]Write to MH i2c: F0 00 00 0C 13 0E [05:03:29]Write i2c OK [05:03:29]MH_I2C_Read... [05:03:29]Read from MH i2c: F0 [05:03:29]MH_I2C_Read... [05:03:29]Read from MH i2c: F0 09 00 [05:03:29]MH_I2C_Read... [05:03:29]Read from MH i2c: F0 09 00 0C 13 00 23 FF 95 66 D6 48 95 66 4D [05:03:29]GetLastDocTimeStamp 1721104286 [05:03:29]current date 1721106211 [05:03:29]FM_GetShiftState [05:03:29]SAM_PROTO_GetShiftState [05:03:29]wFMCommunicate request_size=4 [05:03:29]MH_SAM_APDU [05:03:29]CAPDU: 80 13 01 00 [05:03:29]Write to MH i2c: E2 08 00 0D 13 80 13 01 00 00 00 00 00 9D [05:03:29]Write i2c OK [05:03:29]MH_I2C_Read... [05:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:29]Read from MH i2c: E2 [05:03:29]MH_I2C_Read... [05:03:29]Read from MH i2c: E2 0E 00 [05:03:29]MH_I2C_Read... [05:03:29]Read from MH i2c: E2 0E 00 0D 13 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 EC [05:03:29]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [05:03:29]wFMCommunicate OK [05:03:29]SAM_PROTO_GetShiftState done [05:03:29]FM_GetShiftState done [05:03:29]opened in 1721088399 [05:03:29]opened+sec_in_day 1721174799 [05:03:29]quantity*price = 21300 [05:03:29]sum+1 = 21301 [05:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 213.00 НСП 1% : 1.88 НДС 12% : 22.62 Наличными: 213.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 25 16.07.2024 05:03 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31706 ФПД: 179825561133384 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T050332&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31706&fm=179825561133384&tin=02508201610067®Number=0000000000098025&sum=21300 0 [05:03:30]StoreToDocumentArchive [05:03:30]shift 371 fd 31706 [05:03:30]save to /storage/0371/doc_00031706 [05:03:30]save last doc name /storage/0371/doc_00031706 to /storage/kkm_last_doc_name [05:03:30]save OK [05:03:30]Clear old archive folders... [05:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=296 [05:03:30]tlvbuf is 0151C2B0 [05:03:30]SAM_PROTO_ClearQueue [05:03:30]wFMCommunicate request_size=4 [05:03:30]MH_SAM_APDU [05:03:30]CAPDU: 80 09 00 00 [05:03:30]Write to MH i2c: E2 08 00 1A 13 80 09 00 00 00 00 00 00 9F [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:03:30]Read from MH i2c: E2 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 03 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 03 00 1A 13 00 90 00 A1 [05:03:30]RAPDU: 90 00 [05:03:30]wFMCommunicate OK [05:03:30]SAM_PROTO_ClearQueue done [05:03:30]KKMCreateOFDPacket [05:03:30]OFDProtocolAddRootSTLVToBuf [05:03:30]FM_MakeSignedData [05:03:30]FM_MakeSignedData [05:03:30]SAM_PROTO_SignData [05:03:30]wFMCommunicate request_size=4 [05:03:30]MH_SAM_APDU [05:03:30]CAPDU: 80 0D 01 02 [05:03:30]Write to MH i2c: E2 08 00 1B 13 80 0D 01 02 00 00 00 00 A7 [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:03:30]Read from MH i2c: E2 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 03 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 03 00 1B 13 00 90 00 A2 [05:03:30]RAPDU: 90 00 [05:03:30]wFMCommunicate OK [05:03:30]wFMCommunicate request_size=255 [05:03:30]MH_SAM_APDU [05:03:30]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 35 36 36 06 04 36 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D1 83 D0 B3 D0 B0 D1 80 D0 B4 D0 B5 D0 BD 20 D0 B1 D0 B5 D0 BB 20 D0 BD D0 B5 D1 84 D0 B8 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 53 00 00 00 00 13 04 06 00 34 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 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 24 FF 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [05:03:30]Write to MH i2c: E2 02 01 1C 13 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 35 36 36 06 04 36 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D1 83 D0 B3 D0 B0 D1 80 D0 B4 D0 B5 D0 BD 20 D0 B1 D0 B5 D0 BB 20 D0 BD D0 B5 D1 84 D0 B8 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 53 00 00 00 00 13 04 06 00 34 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 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 24 FF 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 E0 [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:30]Read from MH i2c: E2 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 03 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 03 00 1C 13 00 90 00 A3 [05:03:30]RAPDU: 90 00 [05:03:30]wFMCommunicate OK [05:03:30]wFMCommunicate request_size=55 [05:03:30]MH_SAM_APDU [05:03:30]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DA 7B 00 00 35 04 06 00 A3 8C E6 B1 61 48 [05:03:30]Write to MH i2c: E2 3A 00 1D 13 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DA 7B 00 00 35 04 06 00 A3 8C E6 B1 61 48 00 00 CE [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:30]Read from MH i2c: E2 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 03 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 03 00 1D 13 00 90 00 A4 [05:03:30]RAPDU: 90 00 [05:03:30]wFMCommunicate OK [05:03:30]wFMCommunicate request_size=4 [05:03:30]MH_SAM_APDU [05:03:30]CAPDU: 80 0D 03 02 [05:03:30]Write to MH i2c: E2 08 00 1E 13 80 0D 03 02 00 00 00 00 AC [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:03:30]Read from MH i2c: E2 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 0B 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 0B 00 1E 13 00 B3 D9 8E 9D EC 93 89 63 90 00 CF [05:03:30]RAPDU: B3 D9 8E 9D EC 93 89 63 90 00 [05:03:30]wFMCommunicate OK [05:03:30]SAM_PROTO_SignData done [05:03:30]FM_MakeSignedData done [05:03:30]CreateOFDProtocolMessage [05:03:30]wFMCommunicate request_size=4 [05:03:30]MH_SAM_APDU [05:03:30]CAPDU: 80 11 00 00 [05:03:30]Write to MH i2c: E2 08 00 1F 13 80 11 00 00 00 00 00 00 AC [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:30]Read from MH i2c: E2 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 17 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 17 00 1F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 07 [05:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [05:03:30]wFMCommunicate OK [05:03:30]CreateOFDProtocolMessage done [05:03:30]OFDSenderStorePacket 31706 [05:03:30]StoreOFDPacket docnum=31706 [05:03:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 9A FE 34 01 BE 14 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 35 36 36 06 04 36 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D1 83 D0 B3 D0 B0 D1 80 D0 B4 D0 B5 D0 BD 20 D0 B1 D0 B5 D0 BB 20 D0 BD D0 B5 D1 84 D0 B8 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 53 00 00 00 00 13 04 06 00 34 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 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 24 FF 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DA 7B 00 00 35 04 06 00 A3 8C E6 B1 61 48 B3 D9 8E 9D EC 93 89 63 [05:03:30]CheckFolder [05:03:30]dirname=/storage/ofd_packets [05:03:30]CheckFolder done [05:03:30]ProducePacketName [05:03:30]name=ofd_packets/00031706 [05:03:30]NVStorageSaveData ofd_packets/00031706 [05:03:30]File name is /storage/ofd_packets/00031706 [05:03:30]Write 346 bytes [05:03:30]NVStorageSaveData done [05:03:30]OFDSenderStorePacket done [05:03:30]KKMCreateOFDPacket done [05:03:30]NVStorageSaveData kkm_last_timestamp [05:03:30]File name is /storage/kkm_last_timestamp [05:03:30]Write 4 bytes [05:03:30]NVStorageSaveData done [05:03:30]ExternCall_PrintAddStr [05:03:30]wPrintStart [05:03:30]Write to MH i2c: 01 00 00 20 13 33 [05:03:30]OFD Sender: Processing packet 31706 [packets to send 6, broken 5] [05:03:30]ProducePacketName [05:03:30]name=ofd_packets/00031706 [05:03:30]OFD Sender: To server: pG, [05:03:30]CommunicateWithHost lk.salyk.kg:30040 [05:03:30]ConnectInit lk.salyk.kg [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: 01 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: 01 07 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: 01 07 00 20 13 00 00 00 00 00 FF 0F 48 [05:03:30]RasterBufferAndPrint [05:03:30]line Счет N : (3)214287 [05:03:30]line ИНН: 02508201610067 [05:03:30]line Контрольно-Кассовый Чек [05:03:30]line ПРОДАЖА [05:03:30]line Товар: 4600721021566 [05:03:30]line Пиво Хугарден бел нефил 0,5л ст [05:03:30]line 1.000 * 213.00 [05:03:30]line = 213.00 [05:03:30]line НДС 12% НСП 1% [05:03:30]line > о реализуемом товаре [05:03:30]line ИТОГО: 213.00 [05:03:30]line НСП 1% : 1.88 [05:03:30]line НДС 12% : 22.62 [05:03:30]line Наличными: 213.00 [05:03:30]line Безнал.: 0.00 [05:03:30]line Место: АЗС № 140 "Партнер Нефть" [05:03:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:03:30]line СНО: Общий режим [05:03:30]line Чек 25 16.07.2024 05:03 [05:03:30]line Смена: 371 ФФД: 1.0 [05:03:30]line ЗНМ: 0300000189 [05:03:30]line РНМ: 0000000000098025 [05:03:30]line Версия ККМ: 001 [05:03:30]line ФМ: 0000000000965389 [05:03:30]line ФД: 31706 [05:03:30]line ФПД: 179825561133384 [05:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T050332&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31706&fm=179825561133384&tin=02508201610067®Number=0000000000098025&sum=21300 [05:03:31]line 0 [05:03:31]Connected sock=10 [05:03:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 9A FE 34 01 BE 14 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 30 37 32 31 30 32 31 35 36 36 06 04 36 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A5 D1 83 D0 B3 D0 B0 D1 80 D0 B4 D0 B5 D0 BD 20 D0 B1 D0 B5 D0 BB 20 D0 BD D0 B5 D1 84 D0 B8 D0 BB 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 53 00 00 00 00 13 04 06 00 34 53 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 08 00 00 00 00 07 04 06 00 34 53 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 24 FF 95 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DA 7B 00 00 35 04 06 00 A3 8C E6 B1 61 48 B3 D9 8E 9D EC 93 89 63 [05:03:31]written 0, free lines is 4095 [05:03:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B4 07 47 00 AC AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DA 7B 00 00 F4 03 04 00 32 AB 95 66 B6 04 01 00 00 19 C3 BC 3A E2 56 A2 9F [05:03:31]CommunicateWithHost err = 0 [05:03:31]CheckOFDResponse [05:03:31]1017 (14) - 77093643461234 [05:03:31]1041 (16) - 0000000000965389 [05:03:31]1040 (4) - 31706 [05:03:31]1012 (4) - 15.07.2024 23:05 [05:03:31]1206 (1) - 0 [05:03:31]OFD Sender: Remove packet 31706 [05:03:31]ProducePacketName [05:03:31]name=ofd_packets/00031706 [05:03:31]NVStorageDeleteData [05:03:31]Write to MH i2c: 01 00 00 49 13 5C [05:03:31]Write i2c OK [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: 01 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: 01 07 00 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: 01 07 00 49 13 00 00 00 00 00 D1 0C 40 [05:03:31]RasterBufferAndPrint [05:03:31]line [05:03:31]line [05:03:31]line [05:03:31]line [05:03:31]line [05:03:31]written 0, free lines is 3287 [05:03:31]MH_Cut [05:03:31]Write to MH i2c: D1 01 00 50 13 01 35 [05:03:31]Write i2c OK [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: D1 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: D1 01 00 [05:03:31]MH_I2C_Read... [05:03:31]Read from MH i2c: D1 01 00 50 13 00 34 [05:03:31]Write to MH i2c: 01 00 00 51 13 64 [05:03:31]Write i2c OK [05:03:31]MH_I2C_Read... [05:03:31]OFD Sender: No OFD packet to send [05:03:32]*** Cut start [05:03:32]*** Partial cut [05:03:32]*** CUTSNS_PIN = 1 [05:03:32]*** CUTSNS_PIN = 0 [05:03:32]*** Brake cut motor [05:03:33]Read from MH i2c: 01 [05:03:33]MH_I2C_Read... [05:03:33]*** Stop cut motor [05:03:33]*** Cut end [05:03:33]Read from MH i2c: 01 07 00 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: 01 07 00 51 13 00 00 00 00 00 FF 0F 79 [05:03:33]process_action close_receipt done [05:03:33]requested_data is exist [05:03:33]produce_requested_data [05:03:33]requested_item fm.sn is exist - process it [05:03:33]wFMCommunicate request_size=4 [05:03:33]MH_SAM_APDU [05:03:33]CAPDU: 80 11 00 00 [05:03:33]Write to MH i2c: E2 08 00 52 13 80 11 00 00 00 00 00 00 DF [05:03:33]Write i2c OK [05:03:33]MH_I2C_Read... [05:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:33]Read from MH i2c: E2 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: E2 17 00 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: E2 17 00 52 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3A [05:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [05:03:33]wFMCommunicate OK [05:03:33]requested_item fd.num is exist - process it [05:03:33]SAM_PROTO_GetFieldsCounters [05:03:33]wFMCommunicate request_size=4 [05:03:33]MH_SAM_APDU [05:03:33]CAPDU: 80 13 00 00 [05:03:33]Write to MH i2c: E2 08 00 53 13 80 13 00 00 00 00 00 00 E2 [05:03:33]Write i2c OK [05:03:33]MH_I2C_Read... [05:03:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:33]Read from MH i2c: E2 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: E2 62 00 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: E2 62 00 53 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DA 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [05:03: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DA 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:03:33]wFMCommunicate OK [05:03:33]SAM_PROTO_GetFieldsCounters done [05:03:33]requested_item shift.num is exist - process it [05:03:33]requested_item shift.opened is exist - process it [05:03:33]req_shift_opened [05:03:33]FM_GetShiftState [05:03:33]SAM_PROTO_GetShiftState [05:03:33]wFMCommunicate request_size=4 [05:03:33]MH_SAM_APDU [05:03:33]CAPDU: 80 13 01 00 [05:03:33]Write to MH i2c: E2 08 00 54 13 80 13 01 00 00 00 00 00 E4 [05:03:33]Write i2c OK [05:03:33]MH_I2C_Read... [05:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:33]Read from MH i2c: E2 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: E2 0E 00 [05:03:33]MH_I2C_Read... [05:03:33]Read from MH i2c: E2 0E 00 54 13 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 33 [05:03:33]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [05:03:33]wFMCommunicate OK [05:03:33]SAM_PROTO_GetShiftState done [05:03:33]FM_GetShiftState done [05:03:33]req_shift_opened done [05:03:33]requested_item shift.open_date is exist - process it [05:03:33]req_shift_open_date [05:03:33]req_shift_open_date done [05:03:33]produce_requested_data done [05:03:33]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31706,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [05:03:33]process_action_free close_receipt [05:03:33]json_value_free [05:03:33]json_value_free done [05:03:33]process_json_proto returns [05:03:33]Send response to host [05:03:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31706,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [05:03:33]free response buf [05:03:33]execute_script done [05:03:33]execute_script returns [05:03:33]free content buf [05:03:33]Sock 7.Close socket [05:03:33]Sock 7.Thread stoped [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:22]OFD Sender: No OFD packet to send [05:05:27]OFD Sender: No OFD packet to send [05:05:32]OFD Sender: No OFD packet to send [05:05:37]OFD Sender: No OFD packet to send [05:05:42]OFD Sender: No OFD packet to send [05:05:47]OFD Sender: No OFD packet to send [05:05:52]OFD Sender: No OFD packet to send [05:05:57]OFD Sender: No OFD packet to send [05:06:02]OFD Sender: No OFD packet to send [05:06:07]OFD Sender: No OFD packet to send [05:06:12]OFD Sender: No OFD packet to send [05:06:17]OFD Sender: No OFD packet to send [05:06:22]OFD Sender: No OFD packet to send [05:06:27]OFD Sender: No OFD packet to send [05:06:32]OFD Sender: No OFD packet to send [05:06:37]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:27]OFD Sender: No OFD packet to send [05:10:32]OFD Sender: No OFD packet to send [05:10:37]OFD Sender: No OFD packet to send [05:10:42]OFD Sender: No OFD packet to send [05:10:47]OFD Sender: No OFD packet to send [05:10:52]OFD Sender: No OFD packet to send [05:10:57]OFD Sender: No OFD packet to send [05:11:02]OFD Sender: No OFD packet to send [05:11:07]OFD Sender: No OFD packet to send [05:11:12]OFD Sender: No OFD packet to send [05:11:17]OFD Sender: No OFD packet to send [05:11:22]OFD Sender: No OFD packet to send [05:11:27]OFD Sender: No OFD packet to send [05:11:32]OFD Sender: No OFD packet to send [05:11:37]OFD Sender: No OFD packet to send [05:11:42]OFD Sender: No OFD packet to send [05:11:47]OFD Sender: No OFD packet to send [05:11:52]OFD Sender: No OFD packet to send [05:11:57]OFD Sender: No OFD packet to send [05:12:02]OFD Sender: No OFD packet to send [05:12:07]OFD Sender: No OFD packet to send [05:12:12]OFD Sender: No OFD packet to send [05:12:17]OFD Sender: No OFD packet to send [05:12:22]OFD Sender: No OFD packet to send [05:12:27]OFD Sender: No OFD packet to send [05:12:32]OFD Sender: No OFD packet to send [05:12:37]OFD Sender: No OFD packet to send [05:12:42]OFD Sender: No OFD packet to send [05:12:47]OFD Sender: No OFD packet to send [05:12:52]OFD Sender: No OFD packet to send [05:12:57]OFD Sender: No OFD packet to send [05:13:02]OFD Sender: No OFD packet to send [05:13:07]OFD Sender: No OFD packet to send [05:13:12]OFD Sender: No OFD packet to send [05:13:17]OFD Sender: No OFD packet to send [05:13:22]OFD Sender: No OFD packet to send [05:13:27]OFD Sender: No OFD packet to send [05:13:32]OFD Sender: No OFD packet to send [05:13:37]OFD Sender: No OFD packet to send [05:13:42]OFD Sender: No OFD packet to send [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:02]OFD Sender: No OFD packet to send [05:15:07]OFD Sender: No OFD packet to send [05:15:12]OFD Sender: No OFD packet to send [05:15:17]OFD Sender: No OFD packet to send [05:15:22]OFD Sender: No OFD packet to send [05:15:27]OFD Sender: No OFD packet to send [05:15:32]OFD Sender: No OFD packet to send [05:15:37]OFD Sender: No OFD packet to send [05:15:42]OFD Sender: No OFD packet to send [05:15:47]OFD Sender: No OFD packet to send [05:15:52]OFD Sender: No OFD packet to send [05:15:57]OFD Sender: No OFD packet to send [05:16:02]OFD Sender: No OFD packet to send [05:16:07]OFD Sender: No OFD packet to send [05:16:12]OFD Sender: No OFD packet to send [05:16:17]OFD Sender: No OFD packet to send [05:16:22]OFD Sender: No OFD packet to send [05:16:27]OFD Sender: No OFD packet to send [05:16:32]OFD Sender: No OFD packet to send [05:16:37]OFD Sender: No OFD packet to send [05:16:42]OFD Sender: No OFD packet to send [05:16:47]OFD Sender: No OFD packet to send [05:16:52]OFD Sender: No OFD packet to send [05:16:57]OFD Sender: No OFD packet to send [05:17:02]OFD Sender: No OFD packet to send [05:17:07]OFD Sender: No OFD packet to send [05:17:12]OFD Sender: No OFD packet to send [05:17:17]OFD Sender: No OFD packet to send [05:17:22]OFD Sender: No OFD packet to send [05:17:27]OFD Sender: No OFD packet to send [05:17:32]OFD Sender: No OFD packet to send [05:17:37]OFD Sender: No OFD packet to send [05:17:42]OFD Sender: No OFD packet to send [05:17:47]OFD Sender: No OFD packet to send [05:17:52]OFD Sender: No OFD packet to send [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:30]accept exits with 9 [05:33:30]New connection [05:33:30]New thread 3066965348 created [05:33:30]Thread 3066821988 joined [05:33:30]Waiting for new connection... [05:33:30] Sock 9.Parse request [05:33:30]Sock 9.Check first char [05:33:30]Sock 9.First char is OK [05:33:30]request: POST /json_proto HTTP/1.0 [05:33:30]Method: POST [05:33:30]URL: /json_proto [05:33:30]Method is POST - this is cgi request [05:33:30]url: /json_proto [05:33:30]query_string will be loaded in cgi processing [05:33:30]execute_cgi json_proto POST (null) [05:33:30]execute_cgi path=json_proto method=POST [05:33:30]POST find Content-Length [05:33:30]Host: 172.17.39.68:8080 [05:33:30]Content-Length: 816 [05:33:30]Content-Type: application/json [05:33:30] [05:33:30]POST finish read [05:33:30]Found Content-Length = 816 [05:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214288", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:33:30]execute_script... [05:33: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)214288", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:33:30]POST & json_proto [05:33:30]process_json_proto [05:33:30]json parsed OK: [05:33:30]protocol is kg_v1.0 [05:33:30]action value=close_receipt [05:33:30]process_action close_receipt [05:33:30]cmd_close_receipt [05:33:30]MH_GetDate [05:33:30]Write to MH i2c: F0 00 00 55 13 57 [05:33:30]Write i2c OK [05:33:30]MH_I2C_Read... [05:33:30]Read from MH i2c: F0 [05:33:30]MH_I2C_Read... [05:33:30]Read from MH i2c: F0 09 00 [05:33:30]MH_I2C_Read... [05:33:30]Read from MH i2c: F0 09 00 55 13 00 2D 06 96 66 D6 48 95 66 A8 [05:33:30]GetLastDocTimeStamp 1721106212 [05:33:30]current date 1721108013 [05:33:31]FM_GetShiftState [05:33:31]SAM_PROTO_GetShiftState [05:33:31]wFMCommunicate request_size=4 [05:33:31]MH_SAM_APDU [05:33:31]CAPDU: 80 13 01 00 [05:33:31]Write to MH i2c: E2 08 00 56 13 80 13 01 00 00 00 00 00 E6 [05:33:31]Write i2c OK [05:33:31]MH_I2C_Read... [05:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:33:31]Read from MH i2c: E2 [05:33:31]MH_I2C_Read... [05:33:31]Read from MH i2c: E2 0E 00 [05:33:31]MH_I2C_Read... [05:33:31]Read from MH i2c: E2 0E 00 56 13 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 35 [05:33:31]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [05:33:31]wFMCommunicate OK [05:33:31]SAM_PROTO_GetShiftState done [05:33:31]FM_GetShiftState done [05:33:31]opened in 1721088399 [05:33:31]opened+sec_in_day 1721174799 [05:33:31]quantity*price = 8500 [05:33:31]sum+1 = 8501 [05:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 26 16.07.2024 05:33 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31707 ФПД: 64074417260387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T053334&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31707&fm=64074417260387&tin=02508201610067®Number=0000000000098025&sum=8500 0 [05:33:32]StoreToDocumentArchive [05:33:32]shift 371 fd 31707 [05:33:32]save to /storage/0371/doc_00031707 [05:33:32]save last doc name /storage/0371/doc_00031707 to /storage/kkm_last_doc_name [05:33:32]save OK [05:33:32]Clear old archive folders... [05:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=294 [05:33:32]tlvbuf is 01485E90 [05:33:32]SAM_PROTO_ClearQueue [05:33:32]wFMCommunicate request_size=4 [05:33:32]MH_SAM_APDU [05:33:32]CAPDU: 80 09 00 00 [05:33:32]Write to MH i2c: E2 08 00 63 13 80 09 00 00 00 00 00 00 E8 [05:33:32]Write i2c OK [05:33:32]MH_I2C_Read... [05:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:33:32]Read from MH i2c: E2 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 03 00 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 03 00 63 13 00 90 00 EA [05:33:32]RAPDU: 90 00 [05:33:32]wFMCommunicate OK [05:33:32]SAM_PROTO_ClearQueue done [05:33:32]KKMCreateOFDPacket [05:33:32]OFDProtocolAddRootSTLVToBuf [05:33:32]FM_MakeSignedData [05:33:32]FM_MakeSignedData [05:33:32]SAM_PROTO_SignData [05:33:32]wFMCommunicate request_size=4 [05:33:32]MH_SAM_APDU [05:33:32]CAPDU: 80 0D 01 02 [05:33:32]Write to MH i2c: E2 08 00 64 13 80 0D 01 02 00 00 00 00 F0 [05:33:32]Write i2c OK [05:33:32]MH_I2C_Read... [05:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:33:32]Read from MH i2c: E2 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 03 00 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 03 00 64 13 00 90 00 EB [05:33:32]RAPDU: 90 00 [05:33:32]wFMCommunicate OK [05:33:32]wFMCommunicate request_size=255 [05:33:32]MH_SAM_APDU [05:33:32]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 2E 06 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [05:33:32]Write to MH i2c: E2 02 01 65 13 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 2E 06 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 92 [05:33:32]Write i2c OK [05:33:32]MH_I2C_Read... [05:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:33:32]Read from MH i2c: E2 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 03 00 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 03 00 65 13 00 90 00 EC [05:33:32]RAPDU: 90 00 [05:33:32]wFMCommunicate OK [05:33:32]wFMCommunicate request_size=53 [05:33:32]MH_SAM_APDU [05:33:32]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DB 7B 00 00 35 04 06 00 3A 46 7C E1 47 63 [05:33:32]Write to MH i2c: E2 38 00 66 13 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DB 7B 00 00 35 04 06 00 3A 46 7C E1 47 63 00 00 CC [05:33:32]Write i2c OK [05:33:32]MH_I2C_Read... [05:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:33:32]Read from MH i2c: E2 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 03 00 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 03 00 66 13 00 90 00 ED [05:33:32]RAPDU: 90 00 [05:33:32]wFMCommunicate OK [05:33:32]wFMCommunicate request_size=4 [05:33:32]MH_SAM_APDU [05:33:32]CAPDU: 80 0D 03 02 [05:33:32]Write to MH i2c: E2 08 00 67 13 80 0D 03 02 00 00 00 00 F5 [05:33:32]Write i2c OK [05:33:32]MH_I2C_Read... [05:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:33:32]Read from MH i2c: E2 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 0B 00 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 0B 00 67 13 00 7A AD 6F EC 08 A7 C3 C4 90 00 AE [05:33:32]RAPDU: 7A AD 6F EC 08 A7 C3 C4 90 00 [05:33:32]wFMCommunicate OK [05:33:32]SAM_PROTO_SignData done [05:33:32]FM_MakeSignedData done [05:33:32]CreateOFDProtocolMessage [05:33:32]wFMCommunicate request_size=4 [05:33:32]MH_SAM_APDU [05:33:32]CAPDU: 80 11 00 00 [05:33:32]Write to MH i2c: E2 08 00 68 13 80 11 00 00 00 00 00 00 F5 [05:33:32]Write i2c OK [05:33:32]MH_I2C_Read... [05:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:33:32]Read from MH i2c: E2 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 17 00 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: E2 17 00 68 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 50 [05:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [05:33:32]wFMCommunicate OK [05:33:32]CreateOFDProtocolMessage done [05:33:32]OFDSenderStorePacket 31707 [05:33:32]StoreOFDPacket docnum=31707 [05:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 9F 75 32 01 1E 40 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 2E 06 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DB 7B 00 00 35 04 06 00 3A 46 7C E1 47 63 7A AD 6F EC 08 A7 C3 C4 [05:33:32]CheckFolder [05:33:32]dirname=/storage/ofd_packets [05:33:32]CheckFolder done [05:33:32]ProducePacketName [05:33:32]name=ofd_packets/00031707 [05:33:32]NVStorageSaveData ofd_packets/00031707 [05:33:32]File name is /storage/ofd_packets/00031707 [05:33:32]Write 344 bytes [05:33:32]NVStorageSaveData done [05:33:32]OFDSenderStorePacket done [05:33:32]KKMCreateOFDPacket done [05:33:32]NVStorageSaveData kkm_last_timestamp [05:33:32]File name is /storage/kkm_last_timestamp [05:33:32]Write 4 bytes [05:33:32]NVStorageSaveData done [05:33:32]ExternCall_PrintAddStr [05:33:32]wPrintStart [05:33:32]Write to MH i2c: 01 00 00 69 13 7C [05:33:32]Write i2c OK [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: 01 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: 01 07 00 [05:33:32]MH_I2C_Read... [05:33:32]Read from MH i2c: 01 07 00 69 13 00 00 00 00 00 FF 0F 91 [05:33:32]RasterBufferAndPrint [05:33:32]line Счет N : (3)214288 [05:33:32]line ИНН: 02508201610067 [05:33:32]line Контрольно-Кассовый Чек [05:33:32]line ПРОДАЖА [05:33:32]line Товар: 4600682557456 [05:33:32]line Напиток FLash up energy эн ж/б 0,5/0,45л [05:33:32]line 1.000 * 85.00 [05:33:32]line = 85.00 [05:33:32]line НДС 12% НСП 1% [05:33:32]line > о реализуемом товаре [05:33:32]line ИТОГО: 85.00 [05:33:32]line НСП 1% : 0.75 [05:33:32]line НДС 12% : 9.03 [05:33:32]line Наличными: 0.00 [05:33:32]line Безнал.: 85.00 [05:33:32]line Место: АЗС № 140 "Партнер Нефть" [05:33:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:33:32]line СНО: Общий режим [05:33:32]line Чек 26 16.07.2024 05:33 [05:33:32]line Смена: 371 ФФД: 1.0 [05:33:32]line ЗНМ: 0300000189 [05:33:32]line РНМ: 0000000000098025 [05:33:33]line Версия ККМ: 001 [05:33:33]line Платежная система: O! деньги [05:33:33]line ФМ: 0000000000965389 [05:33:33]line ФД: 31707 [05:33:33]line ФПД: 64074417260387 [05:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T053334&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31707&fm=64074417260387&tin=02508201610067®Number=0000000000098025&sum=8500 [05:33:33]line 0 [05:33:33]OFD Sender: Processing packet 31707 [packets to send 6, broken 5] [05:33:33]ProducePacketName [05:33:33]name=ofd_packets/00031707 [05:33:33]OFD Sender: To server: pG, [05:33:33]CommunicateWithHost lk.salyk.kg:30040 [05:33:33]ConnectInit lk.salyk.kg [05:33:33]written 0, free lines is 4095 [05:33:33]Connected sock=10 [05:33:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 9F 75 32 01 1E 40 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 2E 06 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DB 7B 00 00 35 04 06 00 3A 46 7C E1 47 63 7A AD 6F EC 08 A7 C3 C4 [05:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 16 30 47 00 7A 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DB 7B 00 00 F4 03 04 00 3C B2 95 66 B6 04 01 00 00 A4 B0 11 11 A3 24 C5 40 [05:33:33]CommunicateWithHost err = 0 [05:33:33]CheckOFDResponse [05:33:33]1017 (14) - 77093643461234 [05:33:33]1041 (16) - 0000000000965389 [05:33:33]1040 (4) - 31707 [05:33:33]1012 (4) - 15.07.2024 23:35 [05:33:33]1206 (1) - 0 [05:33:33]OFD Sender: Remove packet 31707 [05:33:33]ProducePacketName [05:33:33]name=ofd_packets/00031707 [05:33:33]NVStorageDeleteData [05:33:33]Write to MH i2c: 01 00 00 94 13 A7 [05:33:33]Write i2c OK [05:33:33]MH_I2C_Read... [05:33:33]Read from MH i2c: 01 [05:33:33]MH_I2C_Read... [05:33:33]Read from MH i2c: 01 07 00 [05:33:33]MH_I2C_Read... [05:33:33]Read from MH i2c: 01 07 00 94 13 00 00 00 00 00 C8 0C 82 [05:33:33]RasterBufferAndPrint [05:33:33]line [05:33:33]line [05:33:33]line [05:33:33]line [05:33:33]line [05:33:33]written 0, free lines is 3278 [05:33:33]MH_Cut [05:33:33]Write to MH i2c: D1 01 00 9B 13 01 80 [05:33:33]Write i2c OK [05:33:33]MH_I2C_Read... [05:33:33]Read from MH i2c: D1 [05:33:33]MH_I2C_Read... [05:33:33]Read from MH i2c: D1 01 00 [05:33:33]MH_I2C_Read... [05:33:33]Read from MH i2c: D1 01 00 9B 13 00 7F [05:33:33]Write to MH i2c: 01 00 00 9C 13 AF [05:33:33]Write i2c OK [05:33:33]MH_I2C_Read... [05:33:33]OFD Sender: No OFD packet to send [05:33:34]*** Cut start [05:33:34]*** Partial cut [05:33:34]*** CUTSNS_PIN = 1 [05:33:34]*** CUTSNS_PIN = 0 [05:33:34]*** Brake cut motor [05:33:34]Read from MH i2c: 01 [05:33:34]MH_I2C_Read... [05:33:34]*** Stop cut motor [05:33:34]*** Cut end [05:33:34]Read from MH i2c: 01 07 00 [05:33:34]MH_I2C_Read... [05:33:34]Read from MH i2c: 01 07 00 9C 13 00 00 00 00 00 FF 0F C4 [05:33:34]process_action close_receipt done [05:33:34]requested_data is exist [05:33:34]produce_requested_data [05:33:34]requested_item fm.sn is exist - process it [05:33:34]wFMCommunicate request_size=4 [05:33:34]MH_SAM_APDU [05:33:34]CAPDU: 80 11 00 00 [05:33:34]Write to MH i2c: E2 08 00 9D 13 80 11 00 00 00 00 00 00 2A [05:33:34]Write i2c OK [05:33:34]MH_I2C_Read... [05:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:33:35]Read from MH i2c: E2 [05:33:35]MH_I2C_Read... [05:33:35]Read from MH i2c: E2 17 00 [05:33:35]MH_I2C_Read... [05:33:35]Read from MH i2c: E2 17 00 9D 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 85 [05:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [05:33:35]wFMCommunicate OK [05:33:35]requested_item fd.num is exist - process it [05:33:35]SAM_PROTO_GetFieldsCounters [05:33:35]wFMCommunicate request_size=4 [05:33:35]MH_SAM_APDU [05:33:35]CAPDU: 80 13 00 00 [05:33:35]Write to MH i2c: E2 08 00 9E 13 80 13 00 00 00 00 00 00 2D [05:33:35]Write i2c OK [05:33:35]MH_I2C_Read... [05:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:33:35]Read from MH i2c: E2 [05:33:35]MH_I2C_Read... [05:33:35]Read from MH i2c: E2 62 00 [05:33:35]MH_I2C_Read... [05:33:35]Read from MH i2c: E2 62 00 9E 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DB 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [05:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DB 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:33:35]wFMCommunicate OK [05:33:35]SAM_PROTO_GetFieldsCounters done [05:33:35]requested_item shift.num is exist - process it [05:33:35]requested_item shift.opened is exist - process it [05:33:35]req_shift_opened [05:33:35]FM_GetShiftState [05:33:35]SAM_PROTO_GetShiftState [05:33:35]wFMCommunicate request_size=4 [05:33:35]MH_SAM_APDU [05:33:35]CAPDU: 80 13 01 00 [05:33:35]Write to MH i2c: E2 08 00 9F 13 80 13 01 00 00 00 00 00 2F [05:33:35]Write i2c OK [05:33:35]MH_I2C_Read... [05:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:33:35]Read from MH i2c: E2 [05:33:35]MH_I2C_Read... [05:33:35]Read from MH i2c: E2 0E 00 [05:33:35]MH_I2C_Read... [05:33:35]Read from MH i2c: E2 0E 00 9F 13 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 7E [05:33:35]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [05:33:35]wFMCommunicate OK [05:33:35]SAM_PROTO_GetShiftState done [05:33:35]FM_GetShiftState done [05:33:35]req_shift_opened done [05:33:35]requested_item shift.open_date is exist - process it [05:33:35]req_shift_open_date [05:33:35]req_shift_open_date done [05:33:35]produce_requested_data done [05:33:35]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31707,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [05:33:35]process_action_free close_receipt [05:33:35]json_value_free [05:33:35]json_value_free done [05:33:35]process_json_proto returns [05:33:35]Send response to host [05:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31707,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [05:33:35]free response buf [05:33:35]execute_script done [05:33:35]execute_script returns [05:33:35]free content buf [05:33:35]Sock 9.Close socket [05:33:35]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [05:35:34]OFD Sender: No OFD packet to send [05:35:39]OFD Sender: No OFD packet to send [05:35:44]OFD Sender: No OFD packet to send [05:35:49]OFD Sender: No OFD packet to send [05:35:54]OFD Sender: No OFD packet to send [05:35:59]OFD Sender: No OFD packet to send [05:36:04]OFD Sender: No OFD packet to send [05:36:09]OFD Sender: No OFD packet to send [05:36:14]OFD Sender: No OFD packet to send [05:36:19]OFD Sender: No OFD packet to send [05:36:24]OFD Sender: No OFD packet to send [05:36:29]OFD Sender: No OFD packet to send [05:36:34]OFD Sender: No OFD packet to send [05:36:39]OFD Sender: No OFD packet to send [05:36:44]OFD Sender: No OFD packet to send [05:36:49]OFD Sender: No OFD packet to send [05:36:54]OFD Sender: No OFD packet to send [05:36:59]OFD Sender: No OFD packet to send [05:37:04]OFD Sender: No OFD packet to send [05:37:09]OFD Sender: No OFD packet to send [05:37:14]OFD Sender: No OFD packet to send [05:37:19]OFD Sender: No OFD packet to send [05:37:24]OFD Sender: No OFD packet to send [05:37:29]OFD Sender: No OFD packet to send [05:37:34]OFD Sender: No OFD packet to send [05:37:39]OFD Sender: No OFD packet to send [05:37:44]OFD Sender: No OFD packet to send [05:37:49]OFD Sender: No OFD packet to send [05:37:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:46]accept exits with 7 [05:40:46]New connection [05:40:46]New thread 3066821988 created [05:40:46]Thread 3066965348 joined [05:40:46]Waiting for new connection... [05:40:46] Sock 7.Parse request [05:40:46]Sock 7.Check first char [05:40:46]Sock 7.First char is OK [05:40:46]request: POST /json_proto HTTP/1.0 [05:40:46]Method: POST [05:40:46]URL: /json_proto [05:40:46]Method is POST - this is cgi request [05:40:46]url: /json_proto [05:40:46]query_string will be loaded in cgi processing [05:40:46]execute_cgi json_proto POST (null) [05:40:46]execute_cgi path=json_proto method=POST [05:40:46]POST find Content-Length [05:40:46]Host: 172.17.39.68:8080 [05:40:46]Content-Length: 670 [05:40:46]Content-Type: application/json [05:40:46] [05:40:46]POST finish read [05:40:46]Found Content-Length = 670 [05:40:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214289", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:46]execute_script... [05:40: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)214289", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:46]POST & json_proto [05:40:46]process_json_proto [05:40:46]json parsed OK: [05:40:46]protocol is kg_v1.0 [05:40:46]action value=close_receipt [05:40:46]process_action close_receipt [05:40:46]cmd_close_receipt [05:40:46]MH_GetDate [05:40:46]Write to MH i2c: F0 00 00 A0 13 A2 [05:40:46]Write i2c OK [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: F0 [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: F0 09 00 [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: F0 09 00 A0 13 00 E1 07 96 66 D6 48 95 66 A8 [05:40:46]GetLastDocTimeStamp 1721108014 [05:40:46]current date 1721108449 [05:40:46]FM_GetShiftState [05:40:46]SAM_PROTO_GetShiftState [05:40:46]wFMCommunicate request_size=4 [05:40:46]MH_SAM_APDU [05:40:46]CAPDU: 80 13 01 00 [05:40:46]Write to MH i2c: E2 08 00 A1 13 80 13 01 00 00 00 00 00 31 [05:40:46]Write i2c OK [05:40:46]MH_I2C_Read... [05:40:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:46]Read from MH i2c: E2 [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: E2 0E 00 [05:40:46]MH_I2C_Read... [05:40:46]Read from MH i2c: E2 0E 00 A1 13 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 80 [05:40:46]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [05:40:46]wFMCommunicate OK [05:40:46]SAM_PROTO_GetShiftState done [05:40:46]FM_GetShiftState done [05:40:46]opened in 1721088399 [05:40:46]opened+sec_in_day 1721174799 [05:40:46]quantity*price = 34000 [05:40:46]sum+1 = 34001 [05:40:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 27 16.07.2024 05:40 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31708 ФПД: 136824093102359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T054049&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31708&fm=136824093102359&tin=02508201610067®Number=0000000000098025&sum=34000 0 [05:40:48]StoreToDocumentArchive [05:40:48]shift 371 fd 31708 [05:40:48]save to /storage/0371/doc_00031708 [05:40:48]save last doc name /storage/0371/doc_00031708 to /storage/kkm_last_doc_name [05:40:48]save OK [05:40:48]Clear old archive folders... [05:40:48]ProcessDocumentItem done err = 0, tmpTLVsize=282 [05:40:48]tlvbuf is 014760D0 [05:40:48]SAM_PROTO_ClearQueue [05:40:48]wFMCommunicate request_size=4 [05:40:48]MH_SAM_APDU [05:40:48]CAPDU: 80 09 00 00 [05:40:48]Write to MH i2c: E2 08 00 AE 13 80 09 00 00 00 00 00 00 33 [05:40:48]Write i2c OK [05:40:48]MH_I2C_Read... [05:40:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:40:48]Read from MH i2c: E2 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 03 00 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [05:40:48]RAPDU: 90 00 [05:40:48]wFMCommunicate OK [05:40:48]SAM_PROTO_ClearQueue done [05:40:48]KKMCreateOFDPacket [05:40:48]OFDProtocolAddRootSTLVToBuf [05:40:48]FM_MakeSignedData [05:40:48]FM_MakeSignedData [05:40:48]SAM_PROTO_SignData [05:40:48]wFMCommunicate request_size=4 [05:40:48]MH_SAM_APDU [05:40:48]CAPDU: 80 0D 01 02 [05:40:48]Write to MH i2c: E2 08 00 AF 13 80 0D 01 02 00 00 00 00 3B [05:40:48]Write i2c OK [05:40:48]MH_I2C_Read... [05:40:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:40:48]Read from MH i2c: E2 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 03 00 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 03 00 AF 13 00 90 00 36 [05:40:48]RAPDU: 90 00 [05:40:48]wFMCommunicate OK [05:40:48]wFMCommunicate request_size=255 [05:40:48]MH_SAM_APDU [05:40:48]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E1 07 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 [05:40:48]Write to MH i2c: E2 02 01 B0 13 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E1 07 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 00 00 52 [05:40:48]Write i2c OK [05:40:48]MH_I2C_Read... [05:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:48]Read from MH i2c: E2 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 03 00 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 03 00 B0 13 00 90 00 37 [05:40:48]RAPDU: 90 00 [05:40:48]wFMCommunicate OK [05:40:48]wFMCommunicate request_size=41 [05:40:48]MH_SAM_APDU [05:40:48]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DC 7B 00 00 35 04 06 00 7C 70 D7 77 51 17 [05:40:48]Write to MH i2c: E2 2C 00 B1 13 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DC 7B 00 00 35 04 06 00 7C 70 D7 77 51 17 00 00 0E [05:40:48]Write i2c OK [05:40:48]MH_I2C_Read... [05:40:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:48]Read from MH i2c: E2 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 03 00 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 03 00 B1 13 00 90 00 38 [05:40:48]RAPDU: 90 00 [05:40:48]wFMCommunicate OK [05:40:48]wFMCommunicate request_size=4 [05:40:48]MH_SAM_APDU [05:40:48]CAPDU: 80 0D 03 02 [05:40:48]Write to MH i2c: E2 08 00 B2 13 80 0D 03 02 00 00 00 00 40 [05:40:48]Write i2c OK [05:40:48]MH_I2C_Read... [05:40:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:40:48]Read from MH i2c: E2 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 0B 00 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 0B 00 B2 13 00 DA 93 A9 C5 08 32 91 B2 90 00 99 [05:40:48]RAPDU: DA 93 A9 C5 08 32 91 B2 90 00 [05:40:48]wFMCommunicate OK [05:40:48]SAM_PROTO_SignData done [05:40:48]FM_MakeSignedData done [05:40:48]CreateOFDProtocolMessage [05:40:48]wFMCommunicate request_size=4 [05:40:48]MH_SAM_APDU [05:40:48]CAPDU: 80 11 00 00 [05:40:48]Write to MH i2c: E2 08 00 B3 13 80 11 00 00 00 00 00 00 40 [05:40:48]Write i2c OK [05:40:48]MH_I2C_Read... [05:40:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:48]Read from MH i2c: E2 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 17 00 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: E2 17 00 B3 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9B [05:40:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [05:40:48]wFMCommunicate OK [05:40:48]CreateOFDProtocolMessage done [05:40:48]OFDSenderStorePacket 31708 [05:40:48]StoreOFDPacket docnum=31708 [05:40:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 87 1A 26 01 94 88 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E1 07 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DC 7B 00 00 35 04 06 00 7C 70 D7 77 51 17 DA 93 A9 C5 08 32 91 B2 [05:40:48]CheckFolder [05:40:48]dirname=/storage/ofd_packets [05:40:48]CheckFolder done [05:40:48]ProducePacketName [05:40:48]name=ofd_packets/00031708 [05:40:48]NVStorageSaveData ofd_packets/00031708 [05:40:48]File name is /storage/ofd_packets/00031708 [05:40:48]Write 332 bytes [05:40:48]NVStorageSaveData done [05:40:48]OFDSenderStorePacket done [05:40:48]KKMCreateOFDPacket done [05:40:48]NVStorageSaveData kkm_last_timestamp [05:40:48]File name is /storage/kkm_last_timestamp [05:40:48]Write 4 bytes [05:40:48]NVStorageSaveData done [05:40:48]ExternCall_PrintAddStr [05:40:48]wPrintStart [05:40:48]Write to MH i2c: 01 00 00 B4 13 C7 [05:40:48]Write i2c OK [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: 01 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: 01 07 00 [05:40:48]MH_I2C_Read... [05:40:48]Read from MH i2c: 01 07 00 B4 13 00 00 00 00 00 FF 0F DC [05:40:48]RasterBufferAndPrint [05:40:48]line Счет N : (3)214289 [05:40:48]line ИНН: 02508201610067 [05:40:48]line Контрольно-Кассовый Чек [05:40:48]line ПРОДАЖА [05:40:48]line Товар: 4700000480357 [05:40:48]line Пиво шахтерское 1л ПЭТ [05:40:48]line 2.000 * 170.00 [05:40:48]line = 340.00 [05:40:48]line НДС 12% НСП 1% [05:40:48]line > о реализуемом товаре [05:40:48]line ИТОГО: 340.00 [05:40:48]line НСП 1% : 3.01 [05:40:48]line НДС 12% : 36.11 [05:40:48]line Наличными: 340.00 [05:40:48]line Безнал.: 0.00 [05:40:48]line Место: АЗС № 140 "Партнер Нефть" [05:40:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [05:40:48]line СНО: Общий режим [05:40:48]line Чек 27 16.07.2024 05:40 [05:40:48]line Смена: 371 ФФД: 1.0 [05:40:48]line ЗНМ: 0300000189 [05:40:48]line РНМ: 0000000000098025 [05:40:48]line Версия ККМ: 001 [05:40:48]line ФМ: 0000000000965389 [05:40:48]line ФД: 31708 [05:40:48]line ФПД: 136824093102359 [05:40:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T054049&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31708&fm=136824093102359&tin=02508201610067®Number=0000000000098025&sum=34000 [05:40:48]line 0 [05:40:48]OFD Sender: Processing packet 31708 [packets to send 6, broken 5] [05:40:48]ProducePacketName [05:40:48]name=ofd_packets/00031708 [05:40:48]OFD Sender: To server: pG, [05:40:48]CommunicateWithHost lk.salyk.kg:30040 [05:40:48]ConnectInit lk.salyk.kg [05:40:48]written 0, free lines is 4095 [05:40:49]Connected sock=10 [05:40:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 87 1A 26 01 94 88 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 E1 07 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DC 7B 00 00 35 04 06 00 7C 70 D7 77 51 17 DA 93 A9 C5 08 32 91 B2 [05:40:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 0C F4 47 00 88 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 35 33 38 39 10 04 04 00 DC 7B 00 00 F4 03 04 00 EF B3 95 66 B6 04 01 00 00 F7 8C F4 FC 52 00 20 9D [05:40:49]CommunicateWithHost err = 0 [05:40:49]CheckOFDResponse [05:40:49]1017 (14) - 77093643461234 [05:40:49]1041 (16) - 0000000000965389 [05:40:49]1040 (4) - 31708 [05:40:49]1012 (4) - 15.07.2024 23:42 [05:40:49]1206 (1) - 0 [05:40:49]OFD Sender: Remove packet 31708 [05:40:49]ProducePacketName [05:40:49]name=ofd_packets/00031708 [05:40:49]NVStorageDeleteData [05:40:49]Write to MH i2c: 01 00 00 DC 13 EF [05:40:49]Write i2c OK [05:40:49]MH_I2C_Read... [05:40:49]Read from MH i2c: 01 [05:40:49]MH_I2C_Read... [05:40:49]Read from MH i2c: 01 07 00 [05:40:49]MH_I2C_Read... [05:40:49]Read from MH i2c: 01 07 00 DC 13 00 00 00 00 00 00 0D 03 [05:40:49]RasterBufferAndPrint [05:40:49]line [05:40:49]line [05:40:49]line [05:40:49]line [05:40:49]line [05:40:49]written 0, free lines is 3334 [05:40:49]MH_Cut [05:40:49]Write to MH i2c: D1 01 00 E3 13 01 C8 [05:40:49]Write i2c OK [05:40:49]MH_I2C_Read... [05:40:49]Read from MH i2c: D1 [05:40:49]MH_I2C_Read... [05:40:49]Read from MH i2c: D1 01 00 [05:40:49]MH_I2C_Read... [05:40:49]Read from MH i2c: D1 01 00 E3 13 00 C7 [05:40:49]Write to MH i2c: 01 00 00 E4 13 F7 [05:40:49]Write i2c OK [05:40:49]MH_I2C_Read... [05:40:49]OFD Sender: No OFD packet to send [05:40:50]*** Cut start [05:40:50]*** Partial cut [05:40:50]*** CUTSNS_PIN = 1 [05:40:50]*** CUTSNS_PIN = 0 [05:40:50]*** Brake cut motor [05:40:50]Read from MH i2c: 01 [05:40:50]MH_I2C_Read... [05:40:50]*** Stop cut motor [05:40:50]*** Cut end [05:40:50]Read from MH i2c: 01 07 00 [05:40:50]MH_I2C_Read... [05:40:50]Read from MH i2c: 01 07 00 E4 13 00 00 00 00 00 FF 0F 0C [05:40:50]process_action close_receipt done [05:40:50]requested_data is exist [05:40:50]produce_requested_data [05:40:50]requested_item fm.sn is exist - process it [05:40:50]wFMCommunicate request_size=4 [05:40:50]MH_SAM_APDU [05:40:50]CAPDU: 80 11 00 00 [05:40:50]Write to MH i2c: E2 08 00 E5 13 80 11 00 00 00 00 00 00 72 [05:40:50]Write i2c OK [05:40:50]MH_I2C_Read... [05:40:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:50]Read from MH i2c: E2 [05:40:50]MH_I2C_Read... [05:40:50]Read from MH i2c: E2 17 00 [05:40:50]MH_I2C_Read... [05:40:50]Read from MH i2c: E2 17 00 E5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CD [05:40:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [05:40:50]wFMCommunicate OK [05:40:50]requested_item fd.num is exist - process it [05:40:50]SAM_PROTO_GetFieldsCounters [05:40:50]wFMCommunicate request_size=4 [05:40:50]MH_SAM_APDU [05:40:50]CAPDU: 80 13 00 00 [05:40:50]Write to MH i2c: E2 08 00 E6 13 80 13 00 00 00 00 00 00 75 [05:40:50]Write i2c OK [05:40:50]MH_I2C_Read... [05:40:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:40:50]Read from MH i2c: E2 [05:40:50]MH_I2C_Read... [05:40:50]Read from MH i2c: E2 62 00 [05:40:50]MH_I2C_Read... [05:40:50]Read from MH i2c: E2 62 00 E6 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DC 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [05:40: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DC 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:40:50]wFMCommunicate OK [05:40:50]SAM_PROTO_GetFieldsCounters done [05:40:50]requested_item shift.num is exist - process it [05:40:50]requested_item shift.opened is exist - process it [05:40:50]req_shift_opened [05:40:50]FM_GetShiftState [05:40:50]SAM_PROTO_GetShiftState [05:40:50]wFMCommunicate request_size=4 [05:40:50]MH_SAM_APDU [05:40:50]CAPDU: 80 13 01 00 [05:40:50]Write to MH i2c: E2 08 00 E7 13 80 13 01 00 00 00 00 00 77 [05:40:50]Write i2c OK [05:40:50]MH_I2C_Read... [05:40:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:51]Read from MH i2c: E2 [05:40:51]MH_I2C_Read... [05:40:51]Read from MH i2c: E2 0E 00 [05:40:51]MH_I2C_Read... [05:40:51]Read from MH i2c: E2 0E 00 E7 13 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C6 [05:40:51]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [05:40:51]wFMCommunicate OK [05:40:51]SAM_PROTO_GetShiftState done [05:40:51]FM_GetShiftState done [05:40:51]req_shift_opened done [05:40:51]requested_item shift.open_date is exist - process it [05:40:51]req_shift_open_date [05:40:51]req_shift_open_date done [05:40:51]produce_requested_data done [05:40:51]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31708,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [05:40:51]process_action_free close_receipt [05:40:51]json_value_free [05:40:51]json_value_free done [05:40:51]process_json_proto returns [05:40:51]Send response to host [05:40:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31708,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [05:40:51]free response buf [05:40:51]execute_script done [05:40:51]execute_script returns [05:40:51]free content buf [05:40:51]Sock 7.Close socket [05:40:51]Sock 7.Thread stoped [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:29]OFD Sender: No OFD packet to send [05:41:34]OFD Sender: No OFD packet to send [05:41:39]OFD Sender: No OFD packet to send [05:41:44]OFD Sender: No OFD packet to send [05:41:49]OFD Sender: No OFD packet to send [05:41:54]OFD Sender: No OFD packet to send [05:41:59]OFD Sender: No OFD packet to send [05:42:04]OFD Sender: No OFD packet to send [05:42:09]OFD Sender: No OFD packet to send [05:42:14]OFD Sender: No OFD packet to send [05:42:19]OFD Sender: No OFD packet to send [05:42:24]OFD Sender: No OFD packet to send [05:42:29]OFD Sender: No OFD packet to send [05:42:34]OFD Sender: No OFD packet to send [05:42:39]OFD Sender: No OFD packet to send [05:42:44]OFD Sender: No OFD packet to send [05:42:49]OFD Sender: No OFD packet to send [05:42:54]OFD Sender: No OFD packet to send [05:42:59]OFD Sender: No OFD packet to send [05:43:04]OFD Sender: No OFD packet to send [05:43:09]OFD Sender: No OFD packet to send [05:43:14]OFD Sender: No OFD packet to send [05:43:19]OFD Sender: No OFD packet to send [05:43:24]OFD Sender: No OFD packet to send [05:43:29]OFD Sender: No OFD packet to send [05:43:34]OFD Sender: No OFD packet to send [05:43:39]OFD Sender: No OFD packet to send [05:43:44]OFD Sender: No OFD packet to send [05:43:49]OFD Sender: No OFD packet to send [05:43:54]OFD Sender: No OFD packet to send [05:43:59]OFD Sender: No OFD packet to send [05:44:04]OFD Sender: No OFD packet to send [05:44:09]OFD Sender: No OFD packet to send [05:44:14]OFD Sender: No OFD packet to send [05:44:19]OFD Sender: No OFD packet to send [05:44:24]OFD Sender: No OFD packet to send [05:44:29]OFD Sender: No OFD packet to send [05:44:34]OFD Sender: No OFD packet to send [05:44:39]OFD Sender: No OFD packet to send [05:44:44]OFD Sender: No OFD packet to send [05:44:49]OFD Sender: No OFD packet to send [05:44:54]OFD Sender: No OFD packet to send [05:44:59]OFD Sender: No OFD packet to send [05:45:04]OFD Sender: No OFD packet to send [05:45:09]OFD Sender: No OFD packet to send [05:45:14]OFD Sender: No OFD packet to send [05:45:19]OFD Sender: No OFD packet to send [05:45:24]OFD Sender: No OFD packet to send [05:45:29]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:20]OFD Sender: No OFD packet to send [05:46:25]OFD Sender: No OFD packet to send [05:46:30]OFD Sender: No OFD packet to send [05:46:35]OFD Sender: No OFD packet to send [05:46:40]OFD Sender: No OFD packet to send [05:46:45]OFD Sender: No OFD packet to send [05:46:50]OFD Sender: No OFD packet to send [05:46:55]OFD Sender: No OFD packet to send [05:47:00]OFD Sender: No OFD packet to send [05:47:05]OFD Sender: No OFD packet to send [05:47:10]OFD Sender: No OFD packet to send [05:47:15]OFD Sender: No OFD packet to send [05:47:20]OFD Sender: No OFD packet to send [05:47:25]OFD Sender: No OFD packet to send [05:47:30]OFD Sender: No OFD packet to send [05:47:35]OFD Sender: No OFD packet to send [05:47:40]OFD Sender: No OFD packet to send [05:47:45]OFD Sender: No OFD packet to send [05:47:50]OFD Sender: No OFD packet to send [05:47:55]OFD Sender: No OFD packet to send [05:48:00]OFD Sender: No OFD packet to send [05:48:05]OFD Sender: No OFD packet to send [05:48:10]OFD Sender: No OFD packet to send [05:48:15]OFD Sender: No OFD packet to send [05:48:20]OFD Sender: No OFD packet to send [05:48:25]OFD Sender: No OFD packet to send [05:48:30]OFD Sender: No OFD packet to send [05:48:35]OFD Sender: No OFD packet to send [05:48:40]OFD Sender: No OFD packet to send [05:48:45]OFD Sender: No OFD packet to send [05:48:50]OFD Sender: No OFD packet to send [05:48:55]OFD Sender: No OFD packet to send [05:49:00]OFD Sender: No OFD packet to send [05:49:05]OFD Sender: No OFD packet to send [05:49:10]OFD Sender: No OFD packet to send [05:49:15]OFD Sender: No OFD packet to send [05:49:20]OFD Sender: No OFD packet to send [05:49:25]OFD Sender: No OFD packet to send [05:49:30]OFD Sender: No OFD packet to send [05:49:35]OFD Sender: No OFD packet to send [05:49:40]OFD Sender: No OFD packet to send [05:49:45]OFD Sender: No OFD packet to send [05:49:50]OFD Sender: No OFD packet to send [05:49:55]OFD Sender: No OFD packet to send [05:50:00]OFD Sender: No OFD packet to send [05:50:05]OFD Sender: No OFD packet to send [05:50:10]OFD Sender: No OFD packet to send [05:50:15]OFD Sender: No OFD packet to send [05:50:20]OFD Sender: No OFD packet to send [05:50:25]OFD Sender: No OFD packet to send [05:50:30]OFD Sender: No OFD packet to send [05:50:35]OFD Sender: No OFD packet to send [05:50:40]OFD Sender: No OFD packet to send [05:50:45]OFD Sender: No OFD packet to send [05:50:50]OFD Sender: No OFD packet to send [05:50:55]OFD Sender: No OFD packet to send [05:51:00]OFD Sender: No OFD packet to send [05:51:05]OFD Sender: No OFD packet to send [05:51:10]OFD Sender: No OFD packet to send [05:51:15]OFD Sender: No OFD packet to send [05:51:20]OFD Sender: No OFD packet to send [05:51:25]OFD Sender: No OFD packet to send [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:05]OFD Sender: No OFD packet to send [05:54:10]OFD Sender: No OFD packet to send [05:54:15]OFD Sender: No OFD packet to send [05:54:20]OFD Sender: No OFD packet to send [05:54:25]OFD Sender: No OFD packet to send [05:54:30]OFD Sender: No OFD packet to send [05:54:35]OFD Sender: No OFD packet to send [05:54:40]OFD Sender: No OFD packet to send [05:54:45]OFD Sender: No OFD packet to send [05:54:50]OFD Sender: No OFD packet to send [05:54:55]OFD Sender: No OFD packet to send [05:55:00]OFD Sender: No OFD packet to send [05:55:05]OFD Sender: No OFD packet to send [05:55:10]OFD Sender: No OFD packet to send [05:55:15]OFD Sender: No OFD packet to send [05:55:20]OFD Sender: No OFD packet to send [05:55:25]OFD Sender: No OFD packet to send [05:55:30]OFD Sender: No OFD packet to send [05:55:35]OFD Sender: No OFD packet to send [05:55:40]OFD Sender: No OFD packet to send [05:55:45]OFD Sender: No OFD packet to send [05:55:50]OFD Sender: No OFD packet to send [05:55:55]OFD Sender: No OFD packet to send [05:56:00]OFD Sender: No OFD packet to send [05:56:05]OFD Sender: No OFD packet to send [05:56:10]OFD Sender: No OFD packet to send [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:20]OFD Sender: No OFD packet to send [05:57:25]OFD Sender: No OFD packet to send [05:57:30]OFD Sender: No OFD packet to send [05:57:35]OFD Sender: No OFD packet to send [05:57:40]OFD Sender: No OFD packet to send [05:57:45]OFD Sender: No OFD packet to send [05:57:50]OFD Sender: No OFD packet to send [05:57:55]OFD Sender: No OFD packet to send [05:58:00]OFD Sender: No OFD packet to send [05:58:05]OFD Sender: No OFD packet to send [05:58:10]OFD Sender: No OFD packet to send [05:58:15]OFD Sender: No OFD packet to send [05:58:20]OFD Sender: No OFD packet to send [05:58:25]OFD Sender: No OFD packet to send [05:58:30]OFD Sender: No OFD packet to send [05:58:35]OFD Sender: No OFD packet to send [05:58:40]OFD Sender: No OFD packet to send [05:58:45]OFD Sender: No OFD packet to send [05:58:50]OFD Sender: No OFD packet to send [05:58:55]OFD Sender: No OFD packet to send [05:59:00]OFD Sender: No OFD packet to send [05:59:05]OFD Sender: No OFD packet to send [05:59:10]OFD Sender: No OFD packet to send [05:59:15]OFD Sender: No OFD packet to send [05:59:20]OFD Sender: No OFD packet to send [05:59:25]OFD Sender: No OFD packet to send [05:59:30]OFD Sender: No OFD packet to send [05:59:35]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:40]OFD Sender: No OFD packet to send [06:03:45]OFD Sender: No OFD packet to send [06:03:50]OFD Sender: No OFD packet to send [06:03:55]OFD Sender: No OFD packet to send [06:04:00]OFD Sender: No OFD packet to send [06:04:05]OFD Sender: No OFD packet to send [06:04:10]OFD Sender: No OFD packet to send [06:04:15]OFD Sender: No OFD packet to send [06:04:20]OFD Sender: No OFD packet to send [06:04:25]OFD Sender: No OFD packet to send [06:04:30]OFD Sender: No OFD packet to send [06:04:35]OFD Sender: No OFD packet to send [06:04:40]OFD Sender: No OFD packet to send [06:04:45]OFD Sender: No OFD packet to send [06:04:50]OFD Sender: No OFD packet to send [06:04:55]OFD Sender: No OFD packet to send [06:05:00]OFD Sender: No OFD packet to send [06:05:05]OFD Sender: No OFD packet to send [06:05:10]OFD Sender: No OFD packet to send [06:05:15]OFD Sender: No OFD packet to send [06:05:20]OFD Sender: No OFD packet to send [06:05:25]OFD Sender: No OFD packet to send [06:05:30]OFD Sender: No OFD packet to send [06:05:35]OFD Sender: No OFD packet to send [06:05:40]OFD Sender: No OFD packet to send [06:05:45]OFD Sender: No OFD packet to send [06:05:50]OFD Sender: No OFD packet to send [06:05:55]OFD Sender: No OFD packet to send [06:06:00]OFD Sender: No OFD packet to send [06:06:05]OFD Sender: No OFD packet to send [06:06:10]OFD Sender: No OFD packet to send [06:06:15]OFD Sender: No OFD packet to send [06:06:20]OFD Sender: No OFD packet to send [06:06:25]OFD Sender: No OFD packet to send [06:06:30]OFD Sender: No OFD packet to send [06:06:35]OFD Sender: No OFD packet to send [06:06:40]OFD Sender: No OFD packet to send [06:06:45]OFD Sender: No OFD packet to send [06:06:50]OFD Sender: No OFD packet to send [06:06:55]OFD Sender: No OFD packet to send [06:07:00]OFD Sender: No OFD packet to send [06:07:05]OFD Sender: No OFD packet to send [06:07:11]OFD Sender: No OFD packet to send [06:07:16]OFD Sender: No OFD packet to send [06:07:21]OFD Sender: No OFD packet to send [06:07:26]OFD Sender: No OFD packet to send [06:07:31]OFD Sender: No OFD packet to send [06:07:36]OFD Sender: No OFD packet to send [06:07:41]OFD Sender: No OFD packet to send [06:07:46]OFD Sender: No OFD packet to send [06:07:51]OFD Sender: No OFD packet to send [06:07:56]OFD Sender: No OFD packet to send [06:08:01]OFD Sender: No OFD packet to send [06:08:06]OFD Sender: No OFD packet to send [06:08:11]OFD Sender: No OFD packet to send [06:08:16]OFD Sender: No OFD packet to send [06:08:21]OFD Sender: No OFD packet to send [06:08:26]OFD Sender: No OFD packet to send [06:08:31]OFD Sender: No OFD packet to send [06:08:36]OFD Sender: No OFD packet to send [06:08:41]OFD Sender: No OFD packet to send [06:08:46]OFD Sender: No OFD packet to send [06:08:51]OFD Sender: No OFD packet to send [06:08:56]OFD Sender: No OFD packet to send [06:09:01]OFD Sender: No OFD packet to send [06:09:06]OFD Sender: No OFD packet to send [06:09:11]OFD Sender: No OFD packet to send [06:09:16]OFD Sender: No OFD packet to send [06:09:21]OFD Sender: No OFD packet to send [06:09:26]OFD Sender: No OFD packet to send [06:09:31]OFD Sender: No OFD packet to send [06:09:36]OFD Sender: No OFD packet to send [06:09:41]OFD Sender: No OFD packet to send [06:09:46]OFD Sender: No OFD packet to send [06:09:51]OFD Sender: No OFD packet to send [06:09:56]OFD Sender: No OFD packet to send [06:10:01]OFD Sender: No OFD packet to send [06:10:06]OFD Sender: No OFD packet to send [06:10:11]OFD Sender: No OFD packet to send [06:10:16]OFD Sender: No OFD packet to send [06:10:21]OFD Sender: No OFD packet to send [06:10:26]OFD Sender: No OFD packet to send [06:10:31]OFD Sender: No OFD packet to send [06:10:36]OFD Sender: No OFD packet to send [06:10:41]OFD Sender: No OFD packet to send [06:10:46]OFD Sender: No OFD packet to send [06:10:51]OFD Sender: No OFD packet to send [06:10:56]OFD Sender: No OFD packet to send [06:11:01]OFD Sender: No OFD packet to send [06:11:06]OFD Sender: No OFD packet to send [06:11:11]OFD Sender: No OFD packet to send [06:11:16]OFD Sender: No OFD packet to send [06:11:21]OFD Sender: No OFD packet to send [06:11:26]OFD Sender: No OFD packet to send [06:11:31]OFD Sender: No OFD packet to send [06:11:36]OFD Sender: No OFD packet to send [06:11:41]OFD Sender: No OFD packet to send [06:11:46]OFD Sender: No OFD packet to send [06:11:51]OFD Sender: No OFD packet to send [06:11:56]OFD Sender: No OFD packet to send [06:12:01]OFD Sender: No OFD packet to send [06:12:06]OFD Sender: No OFD packet to send [06:12:11]OFD Sender: No OFD packet to send [06:12:16]OFD Sender: No OFD packet to send [06:12:21]OFD Sender: No OFD packet to send [06:12:26]OFD Sender: No OFD packet to send [06:12:31]OFD Sender: No OFD packet to send [06:12:36]OFD Sender: No OFD packet to send [06:12:41]OFD Sender: No OFD packet to send [06:12:46]OFD Sender: No OFD packet to send [06:12:51]OFD Sender: No OFD packet to send [06:12:56]OFD Sender: No OFD packet to send [06:13:01]OFD Sender: No OFD packet to send [06:13:06]OFD Sender: No OFD packet to send [06:13:11]OFD Sender: No OFD packet to send [06:13:16]OFD Sender: No OFD packet to send [06:13:21]OFD Sender: No OFD packet to send [06:13:26]OFD Sender: No OFD packet to send [06:13:31]OFD Sender: No OFD packet to send [06:13:36]OFD Sender: No OFD packet to send [06:13:41]OFD Sender: No OFD packet to send [06:13:46]OFD Sender: No OFD packet to send [06:13:51]OFD Sender: No OFD packet to send [06:13:56]OFD Sender: No OFD packet to send [06:14:01]OFD Sender: No OFD packet to send [06:14:06]OFD Sender: No OFD packet to send [06:14:11]OFD Sender: No OFD packet to send [06:14:16]OFD Sender: No OFD packet to send [06:14:21]OFD Sender: No OFD packet to send [06:14:26]OFD Sender: No OFD packet to send [06:14:31]OFD Sender: No OFD packet to send [06:14:36]OFD Sender: No OFD packet to send [06:14:41]OFD Sender: No OFD packet to send [06:14:46]OFD Sender: No OFD packet to send [06:14:51]OFD Sender: No OFD packet to send [06:14:56]OFD Sender: No OFD packet to send [06:15:01]OFD Sender: No OFD packet to send [06:15:06]OFD Sender: No OFD packet to send [06:15:11]OFD Sender: No OFD packet to send [06:15:16]OFD Sender: No OFD packet to send [06:15:21]OFD Sender: No OFD packet to send [06:15:26]OFD Sender: No OFD packet to send [06:15:31]OFD Sender: No OFD packet to send [06:15:36]OFD Sender: No OFD packet to send [06:15:41]OFD Sender: No OFD packet to send [06:15:46]OFD Sender: No OFD packet to send [06:15:51]OFD Sender: No OFD packet to send [06:15:56]OFD Sender: No OFD packet to send [06:16:01]OFD Sender: No OFD packet to send [06:16:06]OFD Sender: No OFD packet to send [06:16:11]OFD Sender: No OFD packet to send [06:16:16]OFD Sender: No OFD packet to send [06:16:21]OFD Sender: No OFD packet to send [06:16:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:01]OFD Sender: No OFD packet to send [06:21:06]OFD Sender: No OFD packet to send [06:21:11]OFD Sender: No OFD packet to send [06:21:16]OFD Sender: No OFD packet to send [06:21:21]OFD Sender: No OFD packet to send [06:21:26]OFD Sender: No OFD packet to send [06:21:31]OFD Sender: No OFD packet to send [06:21:36]OFD Sender: No OFD packet to send [06:21:41]OFD Sender: No OFD packet to send [06:21:46]OFD Sender: No OFD packet to send [06:21:51]OFD Sender: No OFD packet to send [06:21:56]OFD Sender: No OFD packet to send [06:22:01]OFD Sender: No OFD packet to send [06:22:06]OFD Sender: No OFD packet to send [06:22:11]OFD Sender: No OFD packet to send [06:22:16]OFD Sender: No OFD packet to send [06:22:21]OFD Sender: No OFD packet to send [06:22:26]OFD Sender: No OFD packet to send [06:22:31]OFD Sender: No OFD packet to send [06:22:36]OFD Sender: No OFD packet to send [06:22:41]OFD Sender: No OFD packet to send [06:22:46]OFD Sender: No OFD packet to send [06:22:51]OFD Sender: No OFD packet to send [06:22:56]OFD Sender: No OFD packet to send [06:23:01]OFD Sender: No OFD packet to send [06:23:06]OFD Sender: No OFD packet to send [06:23:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:51]OFD Sender: No OFD packet to send [06:26:56]OFD Sender: No OFD packet to send [06:27:01]OFD Sender: No OFD packet to send [06:27:06]OFD Sender: No OFD packet to send [06:27:11]OFD Sender: No OFD packet to send [06:27:16]OFD Sender: No OFD packet to send [06:27:21]OFD Sender: No OFD packet to send [06:27:26]OFD Sender: No OFD packet to send [06:27:31]OFD Sender: No OFD packet to send [06:27:36]OFD Sender: No OFD packet to send [06:27:41]OFD Sender: No OFD packet to send [06:27:46]OFD Sender: No OFD packet to send [06:27:51]OFD Sender: No OFD packet to send [06:27:56]OFD Sender: No OFD packet to send [06:28:01]OFD Sender: No OFD packet to send [06:28:06]OFD Sender: No OFD packet to send [06:28:11]OFD Sender: No OFD packet to send [06:28:16]OFD Sender: No OFD packet to send [06:28:21]OFD Sender: No OFD packet to send [06:28:26]OFD Sender: No OFD packet to send [06:28:31]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:42]OFD Sender: No OFD packet to send [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:55]accept exits with 9 [06:37:55]New connection [06:37:55]New thread 3066965348 created [06:37:55]Thread 3066821988 joined [06:37:55]Waiting for new connection... [06:37:55] Sock 9.Parse request [06:37:55]Sock 9.Check first char [06:37:55]Sock 9.First char is OK [06:37:55]request: POST /json_proto HTTP/1.0 [06:37:55]Method: POST [06:37:55]URL: /json_proto [06:37:55]Method is POST - this is cgi request [06:37:55]url: /json_proto [06:37:55]query_string will be loaded in cgi processing [06:37:55]execute_cgi json_proto POST (null) [06:37:55]execute_cgi path=json_proto method=POST [06:37:55]POST find Content-Length [06:37:55]Host: 172.17.39.68:8080 [06:37:55]Content-Length: 816 [06:37:55]Content-Type: application/json [06:37:55] [06:37:55]POST finish read [06:37:55]Found Content-Length = 816 [06:37:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214290", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:55]execute_script... [06:37: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)214290", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:37:55]POST & json_proto [06:37:55]process_json_proto [06:37:55]json parsed OK: [06:37:55]protocol is kg_v1.0 [06:37:55]action value=close_receipt [06:37:55]process_action close_receipt [06:37:55]cmd_close_receipt [06:37:55]MH_GetDate [06:37:55]Write to MH i2c: F0 00 00 E8 13 EA [06:37:55]Write i2c OK [06:37:55]MH_I2C_Read... [06:37:55]Read from MH i2c: F0 [06:37:55]MH_I2C_Read... [06:37:55]Read from MH i2c: F0 09 00 [06:37:55]MH_I2C_Read... [06:37:55]Read from MH i2c: F0 09 00 E8 13 00 47 15 96 66 D6 48 95 66 64 [06:37:55]GetLastDocTimeStamp 1721108449 [06:37:55]current date 1721111879 [06:37:55]FM_GetShiftState [06:37:55]SAM_PROTO_GetShiftState [06:37:55]wFMCommunicate request_size=4 [06:37:55]MH_SAM_APDU [06:37:55]CAPDU: 80 13 01 00 [06:37:55]Write to MH i2c: E2 08 00 E9 13 80 13 01 00 00 00 00 00 79 [06:37:55]Write i2c OK [06:37:55]MH_I2C_Read... [06:37:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:37:55]Read from MH i2c: E2 [06:37:55]MH_I2C_Read... [06:37:55]Read from MH i2c: E2 0E 00 [06:37:55]MH_I2C_Read... [06:37:55]Read from MH i2c: E2 0E 00 E9 13 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C8 [06:37:55]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [06:37:55]wFMCommunicate OK [06:37:55]SAM_PROTO_GetShiftState done [06:37:55]FM_GetShiftState done [06:37:55]opened in 1721088399 [06:37:55]opened+sec_in_day 1721174799 [06:37:55]quantity*price = 8500 [06:37:55]sum+1 = 8501 [06:37:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 0.00 Безнал.: 85.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 28 16.07.2024 06:37 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31709 ФПД: 23553812506806 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T063759&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31709&fm=23553812506806&tin=02508201610067®Number=0000000000098025&sum=8500 0 [06:37:57]StoreToDocumentArchive [06:37:57]shift 371 fd 31709 [06:37:57]save to /storage/0371/doc_00031709 [06:37:57]save last doc name /storage/0371/doc_00031709 to /storage/kkm_last_doc_name [06:37:57]save OK [06:37:57]Clear old archive folders... [06:37:57]ProcessDocumentItem done err = 0, tmpTLVsize=294 [06:37:57]tlvbuf is 014B7CE0 [06:37:57]SAM_PROTO_ClearQueue [06:37:57]wFMCommunicate request_size=4 [06:37:57]MH_SAM_APDU [06:37:57]CAPDU: 80 09 00 00 [06:37:57]Write to MH i2c: E2 08 00 F6 13 80 09 00 00 00 00 00 00 7B [06:37:57]Write i2c OK [06:37:57]MH_I2C_Read... [06:37:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:37:57]Read from MH i2c: E2 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 03 00 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 03 00 F6 13 00 90 00 7D [06:37:57]RAPDU: 90 00 [06:37:57]wFMCommunicate OK [06:37:57]SAM_PROTO_ClearQueue done [06:37:57]KKMCreateOFDPacket [06:37:57]OFDProtocolAddRootSTLVToBuf [06:37:57]FM_MakeSignedData [06:37:57]FM_MakeSignedData [06:37:57]SAM_PROTO_SignData [06:37:57]wFMCommunicate request_size=4 [06:37:57]MH_SAM_APDU [06:37:57]CAPDU: 80 0D 01 02 [06:37:57]Write to MH i2c: E2 08 00 F7 13 80 0D 01 02 00 00 00 00 83 [06:37:57]Write i2c OK [06:37:57]MH_I2C_Read... [06:37:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:37:57]Read from MH i2c: E2 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 03 00 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 03 00 F7 13 00 90 00 7E [06:37:57]RAPDU: 90 00 [06:37:57]wFMCommunicate OK [06:37:57]wFMCommunicate request_size=255 [06:37:57]MH_SAM_APDU [06:37:57]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 47 15 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [06:37:57]Write to MH i2c: E2 02 01 F8 13 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 47 15 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 4F [06:37:57]Write i2c OK [06:37:57]MH_I2C_Read... [06:37:57]OFD Sender: No OFD packet to send [06:37:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:57]Read from MH i2c: E2 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 03 00 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 03 00 F8 13 00 90 00 7F [06:37:57]RAPDU: 90 00 [06:37:57]wFMCommunicate OK [06:37:57]wFMCommunicate request_size=53 [06:37:57]MH_SAM_APDU [06:37:57]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DD 7B 00 00 35 04 06 00 15 6C 0C A0 A8 B6 [06:37:57]Write to MH i2c: E2 38 00 F9 13 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DD 7B 00 00 35 04 06 00 15 6C 0C A0 A8 B6 00 00 65 [06:37:57]Write i2c OK [06:37:57]MH_I2C_Read... [06:37:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:37:57]Read from MH i2c: E2 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 03 00 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 03 00 F9 13 00 90 00 80 [06:37:57]RAPDU: 90 00 [06:37:57]wFMCommunicate OK [06:37:57]wFMCommunicate request_size=4 [06:37:57]MH_SAM_APDU [06:37:57]CAPDU: 80 0D 03 02 [06:37:57]Write to MH i2c: E2 08 00 FA 13 80 0D 03 02 00 00 00 00 88 [06:37:57]Write i2c OK [06:37:57]MH_I2C_Read... [06:37:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:37:57]Read from MH i2c: E2 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 0B 00 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 0B 00 FA 13 00 3A 83 C5 4A 13 6E C4 B9 90 00 53 [06:37:57]RAPDU: 3A 83 C5 4A 13 6E C4 B9 90 00 [06:37:57]wFMCommunicate OK [06:37:57]SAM_PROTO_SignData done [06:37:57]FM_MakeSignedData done [06:37:57]CreateOFDProtocolMessage [06:37:57]wFMCommunicate request_size=4 [06:37:57]MH_SAM_APDU [06:37:57]CAPDU: 80 11 00 00 [06:37:57]Write to MH i2c: E2 08 00 FB 13 80 11 00 00 00 00 00 00 88 [06:37:57]Write i2c OK [06:37:57]MH_I2C_Read... [06:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:57]Read from MH i2c: E2 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 17 00 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: E2 17 00 FB 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E3 [06:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [06:37:57]wFMCommunicate OK [06:37:57]CreateOFDProtocolMessage done [06:37:57]OFDSenderStorePacket 31709 [06:37:57]StoreOFDPacket docnum=31709 [06:37:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 F8 90 32 01 C8 1D 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 47 15 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DD 7B 00 00 35 04 06 00 15 6C 0C A0 A8 B6 3A 83 C5 4A 13 6E C4 B9 [06:37:57]CheckFolder [06:37:57]dirname=/storage/ofd_packets [06:37:57]CheckFolder done [06:37:57]ProducePacketName [06:37:57]name=ofd_packets/00031709 [06:37:57]NVStorageSaveData ofd_packets/00031709 [06:37:57]File name is /storage/ofd_packets/00031709 [06:37:57]Write 344 bytes [06:37:57]NVStorageSaveData done [06:37:57]OFDSenderStorePacket done [06:37:57]KKMCreateOFDPacket done [06:37:57]NVStorageSaveData kkm_last_timestamp [06:37:57]File name is /storage/kkm_last_timestamp [06:37:57]Write 4 bytes [06:37:57]NVStorageSaveData done [06:37:57]ExternCall_PrintAddStr [06:37:57]wPrintStart [06:37:57]Write to MH i2c: 01 00 00 FC 13 0F [06:37:57]Write i2c OK [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: 01 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: 01 07 00 [06:37:57]MH_I2C_Read... [06:37:57]Read from MH i2c: 01 07 00 FC 13 00 00 00 00 00 FF 0F 24 [06:37:57]RasterBufferAndPrint [06:37:57]line Счет N : (3)214290 [06:37:57]line ИНН: 02508201610067 [06:37:57]line Контрольно-Кассовый Чек [06:37:57]line ПРОДАЖА [06:37:57]line Товар: 4600682557456 [06:37:57]line Напиток FLash up energy эн ж/б 0,5/0,45л [06:37:57]line 1.000 * 85.00 [06:37:57]line = 85.00 [06:37:57]line НДС 12% НСП 1% [06:37:57]line > о реализуемом товаре [06:37:57]line ИТОГО: 85.00 [06:37:57]line НСП 1% : 0.75 [06:37:57]line НДС 12% : 9.03 [06:37:57]line Наличными: 0.00 [06:37:57]line Безнал.: 85.00 [06:37:57]line Место: АЗС № 140 "Партнер Нефть" [06:37:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:37:57]line СНО: Общий режим [06:37:57]line Чек 28 16.07.2024 06:37 [06:37:57]line Смена: 371 ФФД: 1.0 [06:37:57]line ЗНМ: 0300000189 [06:37:57]line РНМ: 0000000000098025 [06:37:57]line Версия ККМ: 001 [06:37:57]line Платежная система: O! деньги [06:37:57]line ФМ: 0000000000965389 [06:37:57]line ФД: 31709 [06:37:57]line ФПД: 23553812506806 [06:37:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T063759&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31709&fm=23553812506806&tin=02508201610067®Number=0000000000098025&sum=8500 [06:37:58]OFD Sender: Processing packet 31709 [packets to send 6, broken 5] [06:37:58]ProducePacketName [06:37:58]name=ofd_packets/00031709 [06:37:58]OFD Sender: To server: pG, [06:37:58]CommunicateWithHost lk.salyk.kg:30040 [06:37:58]ConnectInit lk.salyk.kg [06:37:58]line 0 [06:37:58]written 0, free lines is 4095 [06:37:58]Connected sock=11 [06:37:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 F8 90 32 01 C8 1D 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 47 15 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DD 7B 00 00 35 04 06 00 15 6C 0C A0 A8 B6 3A 83 C5 4A 13 6E C4 B9 [06:37:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 3A 45 47 00 81 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 35 33 38 39 10 04 04 00 DD 7B 00 00 F4 03 04 00 55 C1 95 66 B6 04 01 00 00 90 A4 D4 52 D2 AD A7 6A [06:37:58]CommunicateWithHost err = 0 [06:37:58]CheckOFDResponse [06:37:58]1017 (14) - 77093643461234 [06:37:58]1041 (16) - 0000000000965389 [06:37:58]1040 (4) - 31709 [06:37:58]1012 (4) - 16.07.2024 00:39 [06:37:58]1206 (1) - 0 [06:37:58]OFD Sender: Remove packet 31709 [06:37:58]ProducePacketName [06:37:58]name=ofd_packets/00031709 [06:37:58]NVStorageDeleteData [06:37:58]Write to MH i2c: 01 00 00 27 14 3B [06:37:58]Write i2c OK [06:37:58]MH_I2C_Read... [06:37:58]Read from MH i2c: 01 [06:37:58]MH_I2C_Read... [06:37:58]Read from MH i2c: 01 07 00 [06:37:58]MH_I2C_Read... [06:37:58]Read from MH i2c: 01 07 00 27 14 00 00 00 00 00 CF 0C 1D [06:37:58]RasterBufferAndPrint [06:37:58]line [06:37:58]line [06:37:58]line [06:37:58]line [06:37:58]line [06:37:58]written 0, free lines is 3286 [06:37:58]MH_Cut [06:37:58]Write to MH i2c: D1 01 00 2E 14 01 14 [06:37:58]Write i2c OK [06:37:58]MH_I2C_Read... [06:37:58]Read from MH i2c: D1 [06:37:58]MH_I2C_Read... [06:37:58]Read from MH i2c: D1 01 00 [06:37:58]MH_I2C_Read... [06:37:58]Read from MH i2c: D1 01 00 2E 14 00 13 [06:37:58]Write to MH i2c: 01 00 00 2F 14 43 [06:37:58]Write i2c OK [06:37:58]MH_I2C_Read... [06:37:58]OFD Sender: No OFD packet to send [06:37:59]*** Cut start [06:37:59]*** Partial cut [06:37:59]*** CUTSNS_PIN = 1 [06:37:59]*** CUTSNS_PIN = 0 [06:37:59]*** Brake cut motor [06:37:59]Read from MH i2c: 01 [06:37:59]MH_I2C_Read... [06:37:59]*** Stop cut motor [06:37:59]*** Cut end [06:37:59]Read from MH i2c: 01 07 00 [06:37:59]MH_I2C_Read... [06:37:59]Read from MH i2c: 01 07 00 2F 14 00 00 00 00 00 FF 0F 58 [06:37:59]process_action close_receipt done [06:37:59]requested_data is exist [06:37:59]produce_requested_data [06:37:59]requested_item fm.sn is exist - process it [06:37:59]wFMCommunicate request_size=4 [06:37:59]MH_SAM_APDU [06:37:59]CAPDU: 80 11 00 00 [06:37:59]Write to MH i2c: E2 08 00 30 14 80 11 00 00 00 00 00 00 BE [06:37:59]Write i2c OK [06:37:59]MH_I2C_Read... [06:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:37:59]Read from MH i2c: E2 [06:37:59]MH_I2C_Read... [06:37:59]Read from MH i2c: E2 17 00 [06:37:59]MH_I2C_Read... [06:37:59]Read from MH i2c: E2 17 00 30 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 19 [06:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [06:37:59]wFMCommunicate OK [06:37:59]requested_item fd.num is exist - process it [06:37:59]SAM_PROTO_GetFieldsCounters [06:37:59]wFMCommunicate request_size=4 [06:37:59]MH_SAM_APDU [06:37:59]CAPDU: 80 13 00 00 [06:37:59]Write to MH i2c: E2 08 00 31 14 80 13 00 00 00 00 00 00 C1 [06:37:59]Write i2c OK [06:37:59]MH_I2C_Read... [06:38:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:00]Read from MH i2c: E2 [06:38:00]MH_I2C_Read... [06:38:00]Read from MH i2c: E2 62 00 [06:38:00]MH_I2C_Read... [06:38:00]Read from MH i2c: E2 62 00 31 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DD 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [06:38:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DD 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:00]wFMCommunicate OK [06:38:00]SAM_PROTO_GetFieldsCounters done [06:38:00]requested_item shift.num is exist - process it [06:38:00]requested_item shift.opened is exist - process it [06:38:00]req_shift_opened [06:38:00]FM_GetShiftState [06:38:00]SAM_PROTO_GetShiftState [06:38:00]wFMCommunicate request_size=4 [06:38:00]MH_SAM_APDU [06:38:00]CAPDU: 80 13 01 00 [06:38:00]Write to MH i2c: E2 08 00 32 14 80 13 01 00 00 00 00 00 C3 [06:38:00]Write i2c OK [06:38:00]MH_I2C_Read... [06:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:00]Read from MH i2c: E2 [06:38:00]MH_I2C_Read... [06:38:00]Read from MH i2c: E2 0E 00 [06:38:00]MH_I2C_Read... [06:38:00]Read from MH i2c: E2 0E 00 32 14 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 12 [06:38:00]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [06:38:00]wFMCommunicate OK [06:38:00]SAM_PROTO_GetShiftState done [06:38:00]FM_GetShiftState done [06:38:00]req_shift_opened done [06:38:00]requested_item shift.open_date is exist - process it [06:38:00]req_shift_open_date [06:38:00]req_shift_open_date done [06:38:00]produce_requested_data done [06:38:00]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31709,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [06:38:00]process_action_free close_receipt [06:38:00]json_value_free [06:38:00]json_value_free done [06:38:00]process_json_proto returns [06:38:00]Send response to host [06:38:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31709,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [06:38:00]free response buf [06:38:00]execute_script done [06:38:00]execute_script returns [06:38:00]free content buf [06:38:00]Sock 9.Close socket [06:38:00]Sock 9.Thread stoped [06:38:03]OFD Sender: No OFD packet to send [06:38:08]OFD Sender: No OFD packet to send [06:38:13]OFD Sender: No OFD packet to send [06:38:18]OFD Sender: No OFD packet to send [06:38:21]accept exits with 7 [06:38:21]New connection [06:38:21]New thread 3066821988 created [06:38:21]Thread 3066965348 joined [06:38:21]Waiting for new connection... [06:38:21] Sock 7.Parse request [06:38:21]Sock 7.Check first char [06:38:21]Sock 7.First char is OK [06:38:21]request: POST /json_proto HTTP/1.0 [06:38:21]Method: POST [06:38:21]URL: /json_proto [06:38:21]Method is POST - this is cgi request [06:38:21]url: /json_proto [06:38:21]query_string will be loaded in cgi processing [06:38:21]execute_cgi json_proto POST (null) [06:38:21]execute_cgi path=json_proto method=POST [06:38:21]POST find Content-Length [06:38:21]Host: 172.17.39.68:8080 [06:38:21]Content-Length: 620 [06:38:21]Content-Type: application/json [06:38:21] [06:38:21]POST finish read [06:38:21]Found Content-Length = 620 [06:38:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214291", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "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" ] } } [06:38:21]execute_script... [06:38: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)214291", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "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" ] } } [06:38:21]POST & json_proto [06:38:21]process_json_proto [06:38:21]json parsed OK: [06:38:21]protocol is kg_v1.0 [06:38:21]action value=close_receipt [06:38:21]process_action close_receipt [06:38:21]cmd_close_receipt [06:38:21]MH_GetDate [06:38:21]Write to MH i2c: F0 00 00 33 14 36 [06:38:21]Write i2c OK [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: F0 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: F0 09 00 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: F0 09 00 33 14 00 61 15 96 66 D6 48 95 66 CA [06:38:21]GetLastDocTimeStamp 1721111879 [06:38:21]current date 1721111905 [06:38:21]FM_GetShiftState [06:38:21]SAM_PROTO_GetShiftState [06:38:21]wFMCommunicate request_size=4 [06:38:21]MH_SAM_APDU [06:38:21]CAPDU: 80 13 01 00 [06:38:21]Write to MH i2c: E2 08 00 34 14 80 13 01 00 00 00 00 00 C5 [06:38:21]Write i2c OK [06:38:21]MH_I2C_Read... [06:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:21]Read from MH i2c: E2 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: E2 0E 00 [06:38:21]MH_I2C_Read... [06:38:21]Read from MH i2c: E2 0E 00 34 14 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 14 [06:38:21]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [06:38:21]wFMCommunicate OK [06:38:21]SAM_PROTO_GetShiftState done [06:38:21]FM_GetShiftState done [06:38:21]opened in 1721088399 [06:38:21]opened+sec_in_day 1721174799 [06:38:21]quantity*price = 13500 [06:38:21]sum+1 = 13501 [06:38:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 29 16.07.2024 06:38 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31710 ФПД: 6638216120067 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T063825&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31710&fm=6638216120067&tin=02508201610067®Number=0000000000098025&sum=13500 0 [06:38:23]StoreToDocumentArchive [06:38:23]shift 371 fd 31710 [06:38:23]save to /storage/0371/doc_00031710 [06:38:23]save last doc name /storage/0371/doc_00031710 to /storage/kkm_last_doc_name [06:38:23]save OK [06:38:23]Clear old archive folders... [06:38:23]ProcessDocumentItem done err = 0, tmpTLVsize=272 [06:38:23]tlvbuf is 014B7CE0 [06:38:23]SAM_PROTO_ClearQueue [06:38:23]wFMCommunicate request_size=4 [06:38:23]MH_SAM_APDU [06:38:23]CAPDU: 80 09 00 00 [06:38:23]Write to MH i2c: E2 08 00 41 14 80 09 00 00 00 00 00 00 C7 [06:38:23]Write i2c OK [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 [06:38:23]MH_I2C_Read... [06:38:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:23]Read from MH i2c: E2 03 00 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 03 00 41 14 00 90 00 C9 [06:38:23]RAPDU: 90 00 [06:38:23]wFMCommunicate OK [06:38:23]SAM_PROTO_ClearQueue done [06:38:23]KKMCreateOFDPacket [06:38:23]OFDProtocolAddRootSTLVToBuf [06:38:23]FM_MakeSignedData [06:38:23]FM_MakeSignedData [06:38:23]SAM_PROTO_SignData [06:38:23]wFMCommunicate request_size=4 [06:38:23]MH_SAM_APDU [06:38:23]CAPDU: 80 0D 01 02 [06:38:23]Write to MH i2c: E2 08 00 42 14 80 0D 01 02 00 00 00 00 CF [06:38:23]Write i2c OK [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 [06:38:23]MH_I2C_Read... [06:38:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:23]Read from MH i2c: E2 03 00 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 03 00 42 14 00 90 00 CA [06:38:23]RAPDU: 90 00 [06:38:23]wFMCommunicate OK [06:38:23]wFMCommunicate request_size=255 [06:38:23]MH_SAM_APDU [06:38:23]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 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 1D 00 00 00 F4 03 04 00 61 15 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 [06:38:23]Write to MH i2c: E2 02 01 43 14 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 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 1D 00 00 00 F4 03 04 00 61 15 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 8C [06:38:23]Write i2c OK [06:38:23]MH_I2C_Read... [06:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:23]Read from MH i2c: E2 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 03 00 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 03 00 43 14 00 90 00 CB [06:38:23]RAPDU: 90 00 [06:38:23]wFMCommunicate OK [06:38:23]wFMCommunicate request_size=31 [06:38:23]MH_SAM_APDU [06:38:23]CAPDU: 80 0D 02 02 1A 30 30 39 36 35 33 38 39 10 04 04 00 DE 7B 00 00 35 04 06 00 06 09 94 83 87 03 [06:38:23]Write to MH i2c: E2 22 00 44 14 80 0D 02 02 1A 00 30 30 39 36 35 33 38 39 10 04 04 00 DE 7B 00 00 35 04 06 00 06 09 94 83 87 03 00 00 0E [06:38:23]Write i2c OK [06:38:23]MH_I2C_Read... [06:38:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:23]Read from MH i2c: E2 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 03 00 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 03 00 44 14 00 90 00 CC [06:38:23]RAPDU: 90 00 [06:38:23]wFMCommunicate OK [06:38:23]wFMCommunicate request_size=4 [06:38:23]MH_SAM_APDU [06:38:23]CAPDU: 80 0D 03 02 [06:38:23]Write to MH i2c: E2 08 00 45 14 80 0D 03 02 00 00 00 00 D4 [06:38:23]Write i2c OK [06:38:23]MH_I2C_Read... [06:38:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:23]Read from MH i2c: E2 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 0B 00 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 0B 00 45 14 00 F8 51 60 8D CC 2C 28 E9 90 00 14 [06:38:23]RAPDU: F8 51 60 8D CC 2C 28 E9 90 00 [06:38:23]wFMCommunicate OK [06:38:23]SAM_PROTO_SignData done [06:38:23]FM_MakeSignedData done [06:38:23]CreateOFDProtocolMessage [06:38:23]wFMCommunicate request_size=4 [06:38:23]MH_SAM_APDU [06:38:23]CAPDU: 80 11 00 00 [06:38:23]Write to MH i2c: E2 08 00 46 14 80 11 00 00 00 00 00 00 D4 [06:38:23]Write i2c OK [06:38:23]MH_I2C_Read... [06:38:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:23]Read from MH i2c: E2 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 17 00 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: E2 17 00 46 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2F [06:38:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [06:38:23]wFMCommunicate OK [06:38:23]CreateOFDProtocolMessage done [06:38:23]OFDSenderStorePacket 31710 [06:38:23]StoreOFDPacket docnum=31710 [06:38:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 24 01 00 00 01 D8 1C 01 B9 5C 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 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 1D 00 00 00 F4 03 04 00 61 15 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DE 7B 00 00 35 04 06 00 06 09 94 83 87 03 F8 51 60 8D CC 2C 28 E9 [06:38:23]CheckFolder [06:38:23]dirname=/storage/ofd_packets [06:38:23]CheckFolder done [06:38:23]ProducePacketName [06:38:23]name=ofd_packets/00031710 [06:38:23]NVStorageSaveData ofd_packets/00031710 [06:38:23]File name is /storage/ofd_packets/00031710 [06:38:23]Write 322 bytes [06:38:23]NVStorageSaveData done [06:38:23]OFDSenderStorePacket done [06:38:23]KKMCreateOFDPacket done [06:38:23]NVStorageSaveData kkm_last_timestamp [06:38:23]File name is /storage/kkm_last_timestamp [06:38:23]Write 4 bytes [06:38:23]NVStorageSaveData done [06:38:23]ExternCall_PrintAddStr [06:38:23]wPrintStart [06:38:23]Write to MH i2c: 01 00 00 47 14 5B [06:38:23]Write i2c OK [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: 01 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: 01 07 00 [06:38:23]MH_I2C_Read... [06:38:23]Read from MH i2c: 01 07 00 47 14 00 00 00 00 00 FF 0F 70 [06:38:23]RasterBufferAndPrint [06:38:23]line Счет N : (3)214291 [06:38:23]line ИНН: 02508201610067 [06:38:23]line Контрольно-Кассовый Чек [06:38:23]line ПРОДАЖА [06:38:23]line Товар: 48745000 [06:38:23]line Сигареты Winston Purple Mix [06:38:23]line 1.000 * 135.00 [06:38:23]line = 135.00 [06:38:23]line НДС 12% НСП 1% [06:38:23]line > о реализуемом товаре [06:38:23]line ИТОГО: 135.00 [06:38:23]line НСП 1% : 1.19 [06:38:23]line НДС 12% : 14.34 [06:38:23]line Наличными: 135.00 [06:38:23]line Безнал.: 0.00 [06:38:23]line Место: АЗС № 140 "Партнер Нефть" [06:38:23]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [06:38:23]line СНО: Общий режим [06:38:23]line Чек 29 16.07.2024 06:38 [06:38:23]line Смена: 371 ФФД: 1.0 [06:38:23]line ЗНМ: 0300000189 [06:38:23]line РНМ: 0000000000098025 [06:38:23]line Версия ККМ: 001 [06:38:23]line ФМ: 0000000000965389 [06:38:23]line ФД: 31710 [06:38:23]line ФПД: 6638216120067 [06:38:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T063825&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31710&fm=6638216120067&tin=02508201610067®Number=0000000000098025&sum=13500 [06:38:23]line 0 [06:38:23]OFD Sender: Processing packet 31710 [packets to send 6, broken 5] [06:38:23]ProducePacketName [06:38:23]name=ofd_packets/00031710 [06:38:23]OFD Sender: To server: pG, [06:38:23]CommunicateWithHost lk.salyk.kg:30040 [06:38:23]ConnectInit lk.salyk.kg [06:38:23]written 0, free lines is 4095 [06:38:24]Connected sock=10 [06:38:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 24 01 00 00 01 D8 1C 01 B9 5C 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 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 1D 00 00 00 F4 03 04 00 61 15 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DE 7B 00 00 35 04 06 00 06 09 94 83 87 03 F8 51 60 8D CC 2C 28 E9 [06:38:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 61 3C 47 00 23 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DE 7B 00 00 F4 03 04 00 6F C1 95 66 B6 04 01 00 00 41 86 A2 3D 3D 5B BF 57 [06:38:24]CommunicateWithHost err = 0 [06:38:24]CheckOFDResponse [06:38:24]1017 (14) - 77093643461234 [06:38:24]1041 (16) - 0000000000965389 [06:38:24]1040 (4) - 31710 [06:38:24]1012 (4) - 16.07.2024 00:40 [06:38:24]1206 (1) - 0 [06:38:24]OFD Sender: Remove packet 31710 [06:38:24]ProducePacketName [06:38:24]name=ofd_packets/00031710 [06:38:24]NVStorageDeleteData [06:38:24]Write to MH i2c: 01 00 00 6F 14 83 [06:38:24]Write i2c OK [06:38:24]MH_I2C_Read... [06:38:24]Read from MH i2c: 01 [06:38:24]MH_I2C_Read... [06:38:24]Read from MH i2c: 01 07 00 [06:38:24]MH_I2C_Read... [06:38:24]Read from MH i2c: 01 07 00 6F 14 00 00 00 00 00 F1 0C 87 [06:38:24]RasterBufferAndPrint [06:38:24]line [06:38:24]line [06:38:24]line [06:38:24]line [06:38:24]line [06:38:24]written 0, free lines is 3319 [06:38:24]MH_Cut [06:38:24]Write to MH i2c: D1 01 00 76 14 01 5C [06:38:24]Write i2c OK [06:38:24]MH_I2C_Read... [06:38:24]Read from MH i2c: D1 [06:38:24]MH_I2C_Read... [06:38:24]Read from MH i2c: D1 01 00 [06:38:24]MH_I2C_Read... [06:38:24]Read from MH i2c: D1 01 00 76 14 00 5B [06:38:24]Write to MH i2c: 01 00 00 77 14 8B [06:38:24]Write i2c OK [06:38:24]MH_I2C_Read... [06:38:24]OFD Sender: No OFD packet to send [06:38:25]*** Cut start [06:38:25]*** Partial cut [06:38:25]*** CUTSNS_PIN = 1 [06:38:25]*** CUTSNS_PIN = 0 [06:38:25]*** Brake cut motor [06:38:25]Read from MH i2c: 01 [06:38:25]MH_I2C_Read... [06:38:25]*** Stop cut motor [06:38:25]*** Cut end [06:38:25]Read from MH i2c: 01 07 00 [06:38:25]MH_I2C_Read... [06:38:25]Read from MH i2c: 01 07 00 77 14 00 00 00 00 00 FF 0F A0 [06:38:25]process_action close_receipt done [06:38:25]requested_data is exist [06:38:25]produce_requested_data [06:38:25]requested_item fm.sn is exist - process it [06:38:25]wFMCommunicate request_size=4 [06:38:25]MH_SAM_APDU [06:38:25]CAPDU: 80 11 00 00 [06:38:25]Write to MH i2c: E2 08 00 78 14 80 11 00 00 00 00 00 00 06 [06:38:25]Write i2c OK [06:38:25]MH_I2C_Read... [06:38:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:25]Read from MH i2c: E2 [06:38:25]MH_I2C_Read... [06:38:25]Read from MH i2c: E2 17 00 [06:38:25]MH_I2C_Read... [06:38:25]Read from MH i2c: E2 17 00 78 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 61 [06:38:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [06:38:25]wFMCommunicate OK [06:38:25]requested_item fd.num is exist - process it [06:38:25]SAM_PROTO_GetFieldsCounters [06:38:25]wFMCommunicate request_size=4 [06:38:25]MH_SAM_APDU [06:38:25]CAPDU: 80 13 00 00 [06:38:25]Write to MH i2c: E2 08 00 79 14 80 13 00 00 00 00 00 00 09 [06:38:25]Write i2c OK [06:38:25]MH_I2C_Read... [06:38:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:25]Read from MH i2c: E2 [06:38:25]MH_I2C_Read... [06:38:25]Read from MH i2c: E2 62 00 [06:38:25]MH_I2C_Read... [06:38:25]Read from MH i2c: E2 62 00 79 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DE 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [06:38:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DE 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:26]wFMCommunicate OK [06:38:26]SAM_PROTO_GetFieldsCounters done [06:38:26]requested_item shift.num is exist - process it [06:38:26]requested_item shift.opened is exist - process it [06:38:26]req_shift_opened [06:38:26]FM_GetShiftState [06:38:26]SAM_PROTO_GetShiftState [06:38:26]wFMCommunicate request_size=4 [06:38:26]MH_SAM_APDU [06:38:26]CAPDU: 80 13 01 00 [06:38:26]Write to MH i2c: E2 08 00 7A 14 80 13 01 00 00 00 00 00 0B [06:38:26]Write i2c OK [06:38:26]MH_I2C_Read... [06:38:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:26]Read from MH i2c: E2 [06:38:26]MH_I2C_Read... [06:38:26]Read from MH i2c: E2 0E 00 [06:38:26]MH_I2C_Read... [06:38:26]Read from MH i2c: E2 0E 00 7A 14 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 5A [06:38:26]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [06:38:26]wFMCommunicate OK [06:38:26]SAM_PROTO_GetShiftState done [06:38:26]FM_GetShiftState done [06:38:26]req_shift_opened done [06:38:26]requested_item shift.open_date is exist - process it [06:38:26]req_shift_open_date [06:38:26]req_shift_open_date done [06:38:26]produce_requested_data done [06:38:26]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31710,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [06:38:26]process_action_free close_receipt [06:38:26]json_value_free [06:38:26]json_value_free done [06:38:26]process_json_proto returns [06:38:26]Send response to host [06:38:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31710,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [06:38:26]free response buf [06:38:26]execute_script done [06:38:26]execute_script returns [06:38:26]free content buf [06:38:26]Sock 7.Close socket [06:38:26]Sock 7.Thread stoped [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:55]OFD Sender: No OFD packet to send [06:43:00]OFD Sender: No OFD packet to send [06:43:05]OFD Sender: No OFD packet to send [06:43:10]OFD Sender: No OFD packet to send [06:43:15]OFD Sender: No OFD packet to send [06:43:20]OFD Sender: No OFD packet to send [06:43:25]OFD Sender: No OFD packet to send [06:43:30]OFD Sender: No OFD packet to send [06:43:35]OFD Sender: No OFD packet to send [06:43:40]OFD Sender: No OFD packet to send [06:43:45]OFD Sender: No OFD packet to send [06:43:50]OFD Sender: No OFD packet to send [06:43:55]OFD Sender: No OFD packet to send [06:44:00]OFD Sender: No OFD packet to send [06:44:05]OFD Sender: No OFD packet to send [06:44:10]OFD Sender: No OFD packet to send [06:44:15]OFD Sender: No OFD packet to send [06:44:20]OFD Sender: No OFD packet to send [06:44:25]OFD Sender: No OFD packet to send [06:44:30]OFD Sender: No OFD packet to send [06:44:35]OFD Sender: No OFD packet to send [06:44:40]OFD Sender: No OFD packet to send [06:44:45]OFD Sender: No OFD packet to send [06:44:50]OFD Sender: No OFD packet to send [06:44:55]OFD Sender: No OFD packet to send [06:45:00]OFD Sender: No OFD packet to send [06:45:05]OFD Sender: No OFD packet to send [06:45:10]OFD Sender: No OFD packet to send [06:45:15]OFD Sender: No OFD packet to send [06:45:20]OFD Sender: No OFD packet to send [06:45:25]OFD Sender: No OFD packet to send [06:45:30]OFD Sender: No OFD packet to send [06:45:35]OFD Sender: No OFD packet to send [06:45:40]OFD Sender: No OFD packet to send [06:45:45]OFD Sender: No OFD packet to send [06:45:50]OFD Sender: No OFD packet to send [06:45:55]OFD Sender: No OFD packet to send [06:46:00]OFD Sender: No OFD packet to send [06:46:05]OFD Sender: No OFD packet to send [06:46:10]OFD Sender: No OFD packet to send [06:46:15]OFD Sender: No OFD packet to send [06:46:20]OFD Sender: No OFD packet to send [06:46:25]OFD Sender: No OFD packet to send [06:46:30]OFD Sender: No OFD packet to send [06:46:35]OFD Sender: No OFD packet to send [06:46:40]OFD Sender: No OFD packet to send [06:46:45]OFD Sender: No OFD packet to send [06:46:50]OFD Sender: No OFD packet to send [06:46:55]OFD Sender: No OFD packet to send [06:47:00]OFD Sender: No OFD packet to send [06:47:05]OFD Sender: No OFD packet to send [06:47:10]OFD Sender: No OFD packet to send [06:47:15]OFD Sender: No OFD packet to send [06:47:20]OFD Sender: No OFD packet to send [06:47:25]OFD Sender: No OFD packet to send [06:47:30]OFD Sender: No OFD packet to send [06:47:35]OFD Sender: No OFD packet to send [06:47:40]OFD Sender: No OFD packet to send [06:47:45]OFD Sender: No OFD packet to send [06:47:50]OFD Sender: No OFD packet to send [06:47:55]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:50]OFD Sender: No OFD packet to send [06:51:55]OFD Sender: No OFD packet to send [06:52:00]OFD Sender: No OFD packet to send [06:52:05]OFD Sender: No OFD packet to send [06:52:10]OFD Sender: No OFD packet to send [06:52:15]OFD Sender: No OFD packet to send [06:52:20]OFD Sender: No OFD packet to send [06:52:25]OFD Sender: No OFD packet to send [06:52:30]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56:20]OFD Sender: No OFD packet to send [06:56:25]OFD Sender: No OFD packet to send [06:56:30]OFD Sender: No OFD packet to send [06:56:35]OFD Sender: No OFD packet to send [06:56:40]OFD Sender: No OFD packet to send [06:56:45]OFD Sender: No OFD packet to send [06:56:50]OFD Sender: No OFD packet to send [06:56:55]OFD Sender: No OFD packet to send [06:57:00]OFD Sender: No OFD packet to send [06:57:05]OFD Sender: No OFD packet to send [06:57:10]OFD Sender: No OFD packet to send [06:57:15]OFD Sender: No OFD packet to send [06:57:20]OFD Sender: No OFD packet to send [06:57:25]OFD Sender: No OFD packet to send [06:57:30]OFD Sender: No OFD packet to send [06:57:35]OFD Sender: No OFD packet to send [06:57:40]OFD Sender: No OFD packet to send [06:57:45]OFD Sender: No OFD packet to send [06:57:50]OFD Sender: No OFD packet to send [06:57:55]OFD Sender: No OFD packet to send [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:50]OFD Sender: No OFD packet to send [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:25]OFD Sender: No OFD packet to send [06:59:30]OFD Sender: No OFD packet to send [06:59:35]OFD Sender: No OFD packet to send [06:59:40]OFD Sender: No OFD packet to send [06:59:45]OFD Sender: No OFD packet to send [06:59:50]OFD Sender: No OFD packet to send [06:59:55]OFD Sender: No OFD packet to send [07:00:00]OFD Sender: No OFD packet to send [07:00:05]OFD Sender: No OFD packet to send [07:00:10]OFD Sender: No OFD packet to send [07:00:15]OFD Sender: No OFD packet to send [07:00:20]OFD Sender: No OFD packet to send [07:00:25]OFD Sender: No OFD packet to send [07:00:30]OFD Sender: No OFD packet to send [07:00:35]OFD Sender: No OFD packet to send [07:00:40]OFD Sender: No OFD packet to send [07:00:45]OFD Sender: No OFD packet to send [07:00:50]OFD Sender: No OFD packet to send [07:00:55]OFD Sender: No OFD packet to send [07:01:00]OFD Sender: No OFD packet to send [07:01:05]OFD Sender: No OFD packet to send [07:01:10]OFD Sender: No OFD packet to send [07:01:15]OFD Sender: No OFD packet to send [07:01:20]OFD Sender: No OFD packet to send [07:01:25]OFD Sender: No OFD packet to send [07:01:30]OFD Sender: No OFD packet to send [07:01:35]OFD Sender: No OFD packet to send [07:01:40]OFD Sender: No OFD packet to send [07:01:45]OFD Sender: No OFD packet to send [07:01:50]OFD Sender: No OFD packet to send [07:01:55]OFD Sender: No OFD packet to send [07:02:00]OFD Sender: No OFD packet to send [07:02:05]OFD Sender: No OFD packet to send [07:02:10]OFD Sender: No OFD packet to send [07:02:15]OFD Sender: No OFD packet to send [07:02:20]OFD Sender: No OFD packet to send [07:02:25]OFD Sender: No OFD packet to send [07:02:30]OFD Sender: No OFD packet to send [07:02:35]OFD Sender: No OFD packet to send [07:02:40]OFD Sender: No OFD packet to send [07:02:45]OFD Sender: No OFD packet to send [07:02:50]OFD Sender: No OFD packet to send [07:02:55]OFD Sender: No OFD packet to send [07:03:00]OFD Sender: No OFD packet to send [07:03:05]OFD Sender: No OFD packet to send [07:03:10]OFD Sender: No OFD packet to send [07:03:15]OFD Sender: No OFD packet to send [07:03:20]OFD Sender: No OFD packet to send [07:03:25]OFD Sender: No OFD packet to send [07:03:30]OFD Sender: No OFD packet to send [07:03:35]OFD Sender: No OFD packet to send [07:03:40]OFD Sender: No OFD packet to send [07:03:45]OFD Sender: No OFD packet to send [07:03:50]OFD Sender: No OFD packet to send [07:03:55]OFD Sender: No OFD packet to send [07:04:00]OFD Sender: No OFD packet to send [07:04:05]OFD Sender: No OFD packet to send [07:04:10]OFD Sender: No OFD packet to send [07:04:15]OFD Sender: No OFD packet to send [07:04:16]accept exits with 9 [07:04:16]New connection [07:04:16]New thread 3066965348 created [07:04:16]Thread 3066821988 joined [07:04:16]Waiting for new connection... [07:04:16] Sock 9.Parse request [07:04:16]Sock 9.Check first char [07:04:16]Sock 9.First char is OK [07:04:16]request: POST /json_proto HTTP/1.0 [07:04:16]Method: POST [07:04:16]URL: /json_proto [07:04:16]Method is POST - this is cgi request [07:04:16]url: /json_proto [07:04:16]query_string will be loaded in cgi processing [07:04:16]execute_cgi json_proto POST (null) [07:04:16]execute_cgi path=json_proto method=POST [07:04:16]POST find Content-Length [07:04:16]Host: 172.17.39.68:8080 [07:04:16]Content-Length: 696 [07:04:16]Content-Type: application/json [07:04:16] [07:04:16]POST finish read [07:04:16]Found Content-Length = 696 [07:04:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214292", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 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" ] } } [07:04:16]execute_script... [07:04:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214292", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 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" ] } } [07:04:16]POST & json_proto [07:04:16]process_json_proto [07:04:16]json parsed OK: [07:04:16]protocol is kg_v1.0 [07:04:16]action value=close_receipt [07:04:16]process_action close_receipt [07:04:16]cmd_close_receipt [07:04:16]MH_GetDate [07:04:16]Write to MH i2c: F0 00 00 7B 14 7E [07:04:16]Write i2c OK [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: F0 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: F0 09 00 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: F0 09 00 7B 14 00 74 1B 96 66 D6 48 95 66 2B [07:04:16]GetLastDocTimeStamp 1721111905 [07:04:16]current date 1721113460 [07:04:16]FM_GetShiftState [07:04:16]SAM_PROTO_GetShiftState [07:04:16]wFMCommunicate request_size=4 [07:04:16]MH_SAM_APDU [07:04:16]CAPDU: 80 13 01 00 [07:04:16]Write to MH i2c: E2 08 00 7C 14 80 13 01 00 00 00 00 00 0D [07:04:16]Write i2c OK [07:04:16]MH_I2C_Read... [07:04:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:16]Read from MH i2c: E2 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: E2 0E 00 [07:04:16]MH_I2C_Read... [07:04:16]Read from MH i2c: E2 0E 00 7C 14 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 5C [07:04:16]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:04:16]wFMCommunicate OK [07:04:16]SAM_PROTO_GetShiftState done [07:04:16]FM_GetShiftState done [07:04:16]opened in 1721088399 [07:04:16]opened+sec_in_day 1721174799 [07:04:16]quantity*price = 11000 [07:04:16]sum+1 = 11001 [07:04:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 30 16.07.2024 07:04 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31711 ФПД: 106853551343344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T070420&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31711&fm=106853551343344&tin=02508201610067®Number=0000000000098025&sum=11000 0 [07:04:18]StoreToDocumentArchive [07:04:18]shift 371 fd 31711 [07:04:18]save to /storage/0371/doc_00031711 [07:04:18]save last doc name /storage/0371/doc_00031711 to /storage/kkm_last_doc_name [07:04:18]save OK [07:04:18]Clear old archive folders... [07:04:18]ProcessDocumentItem done err = 0, tmpTLVsize=296 [07:04:18]tlvbuf is 01503BB0 [07:04:18]SAM_PROTO_ClearQueue [07:04:18]wFMCommunicate request_size=4 [07:04:18]MH_SAM_APDU [07:04:18]CAPDU: 80 09 00 00 [07:04:18]Write to MH i2c: E2 08 00 89 14 80 09 00 00 00 00 00 00 0F [07:04:18]Write i2c OK [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 [07:04:18]MH_I2C_Read... [07:04:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:04:18]Read from MH i2c: E2 03 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 03 00 89 14 00 90 00 11 [07:04:18]RAPDU: 90 00 [07:04:18]wFMCommunicate OK [07:04:18]SAM_PROTO_ClearQueue done [07:04:18]KKMCreateOFDPacket [07:04:18]OFDProtocolAddRootSTLVToBuf [07:04:18]FM_MakeSignedData [07:04:18]FM_MakeSignedData [07:04:18]SAM_PROTO_SignData [07:04:18]wFMCommunicate request_size=4 [07:04:18]MH_SAM_APDU [07:04:18]CAPDU: 80 0D 01 02 [07:04:18]Write to MH i2c: E2 08 00 8A 14 80 0D 01 02 00 00 00 00 17 [07:04:18]Write i2c OK [07:04:18]MH_I2C_Read... [07:04:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:04:18]Read from MH i2c: E2 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 03 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 03 00 8A 14 00 90 00 12 [07:04:18]RAPDU: 90 00 [07:04:18]wFMCommunicate OK [07:04:18]wFMCommunicate request_size=255 [07:04:18]MH_SAM_APDU [07:04:18]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1E 00 00 00 F4 03 04 00 74 1B 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [07:04:18]Write to MH i2c: E2 02 01 8B 14 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1E 00 00 00 F4 03 04 00 74 1B 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 B2 [07:04:18]Write i2c OK [07:04:18]MH_I2C_Read... [07:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:18]Read from MH i2c: E2 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 03 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 03 00 8B 14 00 90 00 13 [07:04:18]RAPDU: 90 00 [07:04:18]wFMCommunicate OK [07:04:18]wFMCommunicate request_size=55 [07:04:18]MH_SAM_APDU [07:04:18]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DF 7B 00 00 35 04 06 00 61 2E C7 F8 86 F0 [07:04:18]Write to MH i2c: E2 3A 00 8C 14 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DF 7B 00 00 35 04 06 00 61 2E C7 F8 86 F0 00 00 98 [07:04:18]Write i2c OK [07:04:18]MH_I2C_Read... [07:04:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:04:18]Read from MH i2c: E2 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 03 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 03 00 8C 14 00 90 00 14 [07:04:18]RAPDU: 90 00 [07:04:18]wFMCommunicate OK [07:04:18]wFMCommunicate request_size=4 [07:04:18]MH_SAM_APDU [07:04:18]CAPDU: 80 0D 03 02 [07:04:18]Write to MH i2c: E2 08 00 8D 14 80 0D 03 02 00 00 00 00 1C [07:04:18]Write i2c OK [07:04:18]MH_I2C_Read... [07:04:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:04:18]Read from MH i2c: E2 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 0B 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 0B 00 8D 14 00 C3 59 52 9B 60 07 83 8B 90 00 9B [07:04:18]RAPDU: C3 59 52 9B 60 07 83 8B 90 00 [07:04:18]wFMCommunicate OK [07:04:18]SAM_PROTO_SignData done [07:04:18]FM_MakeSignedData done [07:04:18]CreateOFDProtocolMessage [07:04:18]wFMCommunicate request_size=4 [07:04:18]MH_SAM_APDU [07:04:18]CAPDU: 80 11 00 00 [07:04:18]Write to MH i2c: E2 08 00 8E 14 80 11 00 00 00 00 00 00 1C [07:04:18]Write i2c OK [07:04:18]MH_I2C_Read... [07:04:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:18]Read from MH i2c: E2 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 17 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: E2 17 00 8E 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 77 [07:04:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:04:18]wFMCommunicate OK [07:04:18]CreateOFDProtocolMessage done [07:04:18]OFDSenderStorePacket 31711 [07:04:18]StoreOFDPacket docnum=31711 [07:04:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 1D 1F 34 01 4A DD 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1E 00 00 00 F4 03 04 00 74 1B 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DF 7B 00 00 35 04 06 00 61 2E C7 F8 86 F0 C3 59 52 9B 60 07 83 8B [07:04:18]CheckFolder [07:04:18]dirname=/storage/ofd_packets [07:04:18]CheckFolder done [07:04:18]ProducePacketName [07:04:18]name=ofd_packets/00031711 [07:04:18]NVStorageSaveData ofd_packets/00031711 [07:04:18]File name is /storage/ofd_packets/00031711 [07:04:18]Write 346 bytes [07:04:18]NVStorageSaveData done [07:04:18]OFDSenderStorePacket done [07:04:18]KKMCreateOFDPacket done [07:04:18]NVStorageSaveData kkm_last_timestamp [07:04:18]File name is /storage/kkm_last_timestamp [07:04:18]Write 4 bytes [07:04:18]NVStorageSaveData done [07:04:18]ExternCall_PrintAddStr [07:04:18]wPrintStart [07:04:18]Write to MH i2c: 01 00 00 8F 14 A3 [07:04:18]Write i2c OK [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: 01 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: 01 07 00 [07:04:18]MH_I2C_Read... [07:04:18]Read from MH i2c: 01 07 00 8F 14 00 00 00 00 00 FF 0F B8 [07:04:18]RasterBufferAndPrint [07:04:18]line Счет N : (3)214292 [07:04:18]line ИНН: 02508201610067 [07:04:18]line Контрольно-Кассовый Чек [07:04:18]line ПРОДАЖА [07:04:18]line Товар: 4870202521261 [07:04:18]line Напиток MAXI чай 1,2 лесные ягоды [07:04:18]line 1.000 * 110.00 [07:04:18]line = 110.00 [07:04:18]line НДС 12% НСП 1% [07:04:18]line > о реализуемом товаре [07:04:18]line ИТОГО: 110.00 [07:04:18]line НСП 1% : 0.97 [07:04:18]line НДС 12% : 11.68 [07:04:18]line Наличными: 110.00 [07:04:18]line Безнал.: 0.00 [07:04:18]line Место: АЗС № 140 "Партнер Нефть" [07:04:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:04:18]line СНО: Общий режим [07:04:18]line Чек 30 16.07.2024 07:04 [07:04:18]line Смена: 371 ФФД: 1.0 [07:04:18]line ЗНМ: 0300000189 [07:04:18]line РНМ: 0000000000098025 [07:04:18]line Версия ККМ: 001 [07:04:18]line ФМ: 0000000000965389 [07:04:18]line ФД: 31711 [07:04:18]line ФПД: 106853551343344 [07:04:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T070420&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31711&fm=106853551343344&tin=02508201610067®Number=0000000000098025&sum=11000 [07:04:18]line 0 [07:04:18]OFD Sender: Processing packet 31711 [packets to send 6, broken 5] [07:04:18]ProducePacketName [07:04:18]name=ofd_packets/00031711 [07:04:18]OFD Sender: To server: pG, [07:04:18]CommunicateWithHost lk.salyk.kg:30040 [07:04:18]ConnectInit lk.salyk.kg [07:04:18]written 0, free lines is 4095 [07:04:19]Connected sock=10 [07:04:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 1D 1F 34 01 4A DD 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 1E 00 00 00 F4 03 04 00 74 1B 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DF 7B 00 00 35 04 06 00 61 2E C7 F8 86 F0 C3 59 52 9B 60 07 83 8B [07:04:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B8 BC 47 00 D1 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 DF 7B 00 00 F4 03 04 00 82 C7 95 66 B6 04 01 00 00 40 4F 4A FA EA DA 93 4C [07:04:19]CommunicateWithHost err = 0 [07:04:19]CheckOFDResponse [07:04:19]1017 (14) - 77093643461234 [07:04:19]1041 (16) - 0000000000965389 [07:04:19]1040 (4) - 31711 [07:04:19]1012 (4) - 16.07.2024 01:06 [07:04:19]1206 (1) - 0 [07:04:19]OFD Sender: Remove packet 31711 [07:04:19]ProducePacketName [07:04:19]name=ofd_packets/00031711 [07:04:19]NVStorageDeleteData [07:04:19]Write to MH i2c: 01 00 00 B8 14 CC [07:04:19]Write i2c OK [07:04:19]MH_I2C_Read... [07:04:19]Read from MH i2c: 01 [07:04:19]MH_I2C_Read... [07:04:19]Read from MH i2c: 01 07 00 [07:04:19]MH_I2C_Read... [07:04:19]Read from MH i2c: 01 07 00 B8 14 00 00 00 00 00 E1 0C C0 [07:04:19]RasterBufferAndPrint [07:04:19]line [07:04:19]line [07:04:19]line [07:04:19]line [07:04:19]line [07:04:19]written 0, free lines is 3303 [07:04:19]MH_Cut [07:04:19]Write to MH i2c: D1 01 00 BF 14 01 A5 [07:04:19]Write i2c OK [07:04:19]MH_I2C_Read... [07:04:19]Read from MH i2c: D1 [07:04:19]MH_I2C_Read... [07:04:19]Read from MH i2c: D1 01 00 [07:04:19]MH_I2C_Read... [07:04:19]Read from MH i2c: D1 01 00 BF 14 00 A4 [07:04:19]Write to MH i2c: 01 00 00 C0 14 D4 [07:04:19]Write i2c OK [07:04:19]MH_I2C_Read... [07:04:19]OFD Sender: No OFD packet to send [07:04:20]*** Cut start [07:04:20]*** Partial cut [07:04:20]*** CUTSNS_PIN = 1 [07:04:20]*** CUTSNS_PIN = 0 [07:04:20]*** Brake cut motor [07:04:20]Read from MH i2c: 01 [07:04:20]MH_I2C_Read... [07:04:20]*** Stop cut motor [07:04:20]*** Cut end [07:04:20]Read from MH i2c: 01 07 00 [07:04:20]MH_I2C_Read... [07:04:20]Read from MH i2c: 01 07 00 C0 14 00 00 00 00 00 FF 0F E9 [07:04:20]process_action close_receipt done [07:04:20]requested_data is exist [07:04:20]produce_requested_data [07:04:20]requested_item fm.sn is exist - process it [07:04:20]wFMCommunicate request_size=4 [07:04:20]MH_SAM_APDU [07:04:20]CAPDU: 80 11 00 00 [07:04:20]Write to MH i2c: E2 08 00 C1 14 80 11 00 00 00 00 00 00 4F [07:04:20]Write i2c OK [07:04:20]MH_I2C_Read... [07:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:04:20]Read from MH i2c: E2 [07:04:20]MH_I2C_Read... [07:04:20]Read from MH i2c: E2 17 00 [07:04:20]MH_I2C_Read... [07:04:20]Read from MH i2c: E2 17 00 C1 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 AA [07:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:04:20]wFMCommunicate OK [07:04:20]requested_item fd.num is exist - process it [07:04:20]SAM_PROTO_GetFieldsCounters [07:04:20]wFMCommunicate request_size=4 [07:04:20]MH_SAM_APDU [07:04:20]CAPDU: 80 13 00 00 [07:04:20]Write to MH i2c: E2 08 00 C2 14 80 13 00 00 00 00 00 00 52 [07:04:20]Write i2c OK [07:04:20]MH_I2C_Read... [07:04:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:04:20]Read from MH i2c: E2 [07:04:20]MH_I2C_Read... [07:04:20]Read from MH i2c: E2 62 00 [07:04:20]MH_I2C_Read... [07:04:20]Read from MH i2c: E2 62 00 C2 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DF 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [07:04:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 DF 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:04:20]wFMCommunicate OK [07:04:20]SAM_PROTO_GetFieldsCounters done [07:04:20]requested_item shift.num is exist - process it [07:04:20]requested_item shift.opened is exist - process it [07:04:20]req_shift_opened [07:04:20]FM_GetShiftState [07:04:20]SAM_PROTO_GetShiftState [07:04:20]wFMCommunicate request_size=4 [07:04:20]MH_SAM_APDU [07:04:20]CAPDU: 80 13 01 00 [07:04:20]Write to MH i2c: E2 08 00 C3 14 80 13 01 00 00 00 00 00 54 [07:04:20]Write i2c OK [07:04:20]MH_I2C_Read... [07:04:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:04:20]Read from MH i2c: E2 [07:04:20]MH_I2C_Read... [07:04:20]Read from MH i2c: E2 0E 00 [07:04:20]MH_I2C_Read... [07:04:20]Read from MH i2c: E2 0E 00 C3 14 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A3 [07:04:20]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:04:20]wFMCommunicate OK [07:04:20]SAM_PROTO_GetShiftState done [07:04:20]FM_GetShiftState done [07:04:20]req_shift_opened done [07:04:20]requested_item shift.open_date is exist - process it [07:04:20]req_shift_open_date [07:04:20]req_shift_open_date done [07:04:20]produce_requested_data done [07:04:20]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31711,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [07:04:20]process_action_free close_receipt [07:04:20]json_value_free [07:04:20]json_value_free done [07:04:20]process_json_proto returns [07:04:20]Send response to host [07:04:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31711,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [07:04:20]free response buf [07:04:20]execute_script done [07:04:20]execute_script returns [07:04:20]free content buf [07:04:20]Sock 9.Close socket [07:04:20]Sock 9.Thread stoped [07:04:24]OFD Sender: No OFD packet to send [07:04:29]OFD Sender: No OFD packet to send [07:04:34]OFD Sender: No OFD packet to send [07:04:39]OFD Sender: No OFD packet to send [07:04:44]OFD Sender: No OFD packet to send [07:04:49]OFD Sender: No OFD packet to send [07:04:54]OFD Sender: No OFD packet to send [07:04:59]OFD Sender: No OFD packet to send [07:05:04]OFD Sender: No OFD packet to send [07:05:09]OFD Sender: No OFD packet to send [07:05:14]OFD Sender: No OFD packet to send [07:05:19]OFD Sender: No OFD packet to send [07:05:24]OFD Sender: No OFD packet to send [07:05:29]OFD Sender: No OFD packet to send [07:05:34]OFD Sender: No OFD packet to send [07:05:39]OFD Sender: No OFD packet to send [07:05:44]OFD Sender: No OFD packet to send [07:05:49]OFD Sender: No OFD packet to send [07:05:54]OFD Sender: No OFD packet to send [07:05:59]OFD Sender: No OFD packet to send [07:06:04]OFD Sender: No OFD packet to send [07:06:09]OFD Sender: No OFD packet to send [07:06:14]OFD Sender: No OFD packet to send [07:06:19]OFD Sender: No OFD packet to send [07:06:24]OFD Sender: No OFD packet to send [07:06:29]OFD Sender: No OFD packet to send [07:06:34]OFD Sender: No OFD packet to send [07:06:39]OFD Sender: No OFD packet to send [07:06:44]OFD Sender: No OFD packet to send [07:06:49]OFD Sender: No OFD packet to send [07:06:54]OFD Sender: No OFD packet to send [07:06:59]OFD Sender: No OFD packet to send [07:07:04]OFD Sender: No OFD packet to send [07:07:09]OFD Sender: No OFD packet to send [07:07:14]OFD Sender: No OFD packet to send [07:07:19]OFD Sender: No OFD packet to send [07:07:24]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:47]accept exits with 7 [07:07:47]New connection [07:07:47]New thread 3066821988 created [07:07:47]Thread 3066965348 joined [07:07:47]Waiting for new connection... [07:07:47] Sock 7.Parse request [07:07:47]Sock 7.Check first char [07:07:47]Sock 7.First char is OK [07:07:47]request: POST /json_proto HTTP/1.0 [07:07:47]Method: POST [07:07:47]URL: /json_proto [07:07:47]Method is POST - this is cgi request [07:07:47]url: /json_proto [07:07:47]query_string will be loaded in cgi processing [07:07:47]execute_cgi json_proto POST (null) [07:07:47]execute_cgi path=json_proto method=POST [07:07:47]POST find Content-Length [07:07:47]Host: 172.17.39.68:8080 [07:07:47]Content-Length: 626 [07:07:47]Content-Type: application/json [07:07:47] [07:07:47]POST finish read [07:07:47]Found Content-Length = 626 [07:07:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214293", "tax_sys" : 0, "items" : [ { "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:47]execute_script... [07:07:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214293", "tax_sys" : 0, "items" : [ { "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:07:47]POST & json_proto [07:07:47]process_json_proto [07:07:47]json parsed OK: [07:07:47]protocol is kg_v1.0 [07:07:47]action value=close_receipt [07:07:47]process_action close_receipt [07:07:47]cmd_close_receipt [07:07:47]MH_GetDate [07:07:47]Write to MH i2c: F0 00 00 C4 14 C7 [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: F0 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: F0 09 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: F0 09 00 C4 14 00 47 1C 96 66 D6 48 95 66 48 [07:07:47]GetLastDocTimeStamp 1721113460 [07:07:47]current date 1721113671 [07:07:47]FM_GetShiftState [07:07:47]SAM_PROTO_GetShiftState [07:07:47]wFMCommunicate request_size=4 [07:07:47]MH_SAM_APDU [07:07:47]CAPDU: 80 13 01 00 [07:07:47]Write to MH i2c: E2 08 00 C5 14 80 13 01 00 00 00 00 00 56 [07:07:47]Write i2c OK [07:07:47]MH_I2C_Read... [07:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:47]Read from MH i2c: E2 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 0E 00 [07:07:47]MH_I2C_Read... [07:07:47]Read from MH i2c: E2 0E 00 C5 14 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A5 [07:07:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:07:47]wFMCommunicate OK [07:07:47]SAM_PROTO_GetShiftState done [07:07:47]FM_GetShiftState done [07:07:47]opened in 1721088399 [07:07:47]opened+sec_in_day 1721174799 [07:07:47]quantity*price = 15500 [07:07:47]sum+1 = 15501 [07:07:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 31 16.07.2024 07:07 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31712 ФПД: 218954490474190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T070751&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31712&fm=218954490474190&tin=02508201610067®Number=0000000000098025&sum=15500 0 [07:07:49]StoreToDocumentArchive [07:07:49]shift 371 fd 31712 [07:07:49]save to /storage/0371/doc_00031712 [07:07:49]save last doc name /storage/0371/doc_00031712 to /storage/kkm_last_doc_name [07:07:49]save OK [07:07:49]Clear old archive folders... [07:07:49]ProcessDocumentItem done err = 0, tmpTLVsize=278 [07:07:49]tlvbuf is 01476040 [07:07:49]SAM_PROTO_ClearQueue [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 09 00 00 [07:07:49]Write to MH i2c: E2 08 00 D2 14 80 09 00 00 00 00 00 00 58 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 D2 14 00 90 00 5A [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]SAM_PROTO_ClearQueue done [07:07:49]KKMCreateOFDPacket [07:07:49]OFDProtocolAddRootSTLVToBuf [07:07:49]FM_MakeSignedData [07:07:49]FM_MakeSignedData [07:07:49]SAM_PROTO_SignData [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 0D 01 02 [07:07:49]Write to MH i2c: E2 08 00 D3 14 80 0D 01 02 00 00 00 00 60 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 D3 14 00 90 00 5B [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]wFMCommunicate request_size=255 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 47 1C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 [07:07:49]Write to MH i2c: E2 02 01 D4 14 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 47 1C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 00 00 07 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 D4 14 00 90 00 5C [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]wFMCommunicate request_size=37 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E0 7B 00 00 35 04 06 00 C7 23 50 A0 6E CE [07:07:49]Write to MH i2c: E2 28 00 D5 14 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E0 7B 00 00 35 04 06 00 C7 23 50 A0 6E CE 00 00 33 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 03 00 D5 14 00 90 00 5D [07:07:49]RAPDU: 90 00 [07:07:49]wFMCommunicate OK [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 0D 03 02 [07:07:49]Write to MH i2c: E2 08 00 D6 14 80 0D 03 02 00 00 00 00 65 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 0B 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 0B 00 D6 14 00 C9 EE 47 DA 3F BF 19 D3 90 00 28 [07:07:49]RAPDU: C9 EE 47 DA 3F BF 19 D3 90 00 [07:07:49]wFMCommunicate OK [07:07:49]SAM_PROTO_SignData done [07:07:49]FM_MakeSignedData done [07:07:49]CreateOFDProtocolMessage [07:07:49]wFMCommunicate request_size=4 [07:07:49]MH_SAM_APDU [07:07:49]CAPDU: 80 11 00 00 [07:07:49]Write to MH i2c: E2 08 00 D7 14 80 11 00 00 00 00 00 00 65 [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:49]Read from MH i2c: E2 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 17 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: E2 17 00 D7 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C0 [07:07:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:07:49]wFMCommunicate OK [07:07:49]CreateOFDProtocolMessage done [07:07:49]OFDSenderStorePacket 31712 [07:07:49]StoreOFDPacket docnum=31712 [07:07:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 E9 0E 22 01 5C B8 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 47 1C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E0 7B 00 00 35 04 06 00 C7 23 50 A0 6E CE C9 EE 47 DA 3F BF 19 D3 [07:07:49]CheckFolder [07:07:49]dirname=/storage/ofd_packets [07:07:49]CheckFolder done [07:07:49]ProducePacketName [07:07:49]name=ofd_packets/00031712 [07:07:49]NVStorageSaveData ofd_packets/00031712 [07:07:49]File name is /storage/ofd_packets/00031712 [07:07:49]Write 328 bytes [07:07:49]NVStorageSaveData done [07:07:49]OFDSenderStorePacket done [07:07:49]KKMCreateOFDPacket done [07:07:49]NVStorageSaveData kkm_last_timestamp [07:07:49]File name is /storage/kkm_last_timestamp [07:07:49]Write 4 bytes [07:07:49]NVStorageSaveData done [07:07:49]ExternCall_PrintAddStr [07:07:49]wPrintStart [07:07:49]Write to MH i2c: 01 00 00 D8 14 EC [07:07:49]Write i2c OK [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: 01 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: 01 07 00 [07:07:49]MH_I2C_Read... [07:07:49]Read from MH i2c: 01 07 00 D8 14 00 00 00 00 00 FF 0F 01 [07:07:49]RasterBufferAndPrint [07:07:49]line Счет N : (3)214293 [07:07:49]line ИНН: 02508201610067 [07:07:49]line Контрольно-Кассовый Чек [07:07:49]line ПРОДАЖА [07:07:49]line Товар: 48745895 [07:07:49]line Сигареты RICHMOND KS GOLD EDITION [07:07:49]line 1.000 * 155.00 [07:07:49]line = 155.00 [07:07:49]line НДС 12% НСП 1% [07:07:49]line > о реализуемом товаре [07:07:49]line ИТОГО: 155.00 [07:07:49]line НСП 1% : 1.37 [07:07:49]line НДС 12% : 16.46 [07:07:49]line Наличными: 155.00 [07:07:49]line Безнал.: 0.00 [07:07:49]line Место: АЗС № 140 "Партнер Нефть" [07:07:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:07:49]line СНО: Общий режим [07:07:49]line Чек 31 16.07.2024 07:07 [07:07:49]line Смена: 371 ФФД: 1.0 [07:07:49]line ЗНМ: 0300000189 [07:07:49]line РНМ: 0000000000098025 [07:07:49]line Версия ККМ: 001 [07:07:49]line ФМ: 0000000000965389 [07:07:49]line ФД: 31712 [07:07:49]line ФПД: 218954490474190 [07:07:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T070751&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31712&fm=218954490474190&tin=02508201610067®Number=0000000000098025&sum=15500 [07:07:49]line 0 [07:07:49]OFD Sender: Processing packet 31712 [packets to send 6, broken 5] [07:07:49]ProducePacketName [07:07:49]name=ofd_packets/00031712 [07:07:49]OFD Sender: To server: pG, [07:07:49]CommunicateWithHost lk.salyk.kg:30040 [07:07:49]ConnectInit lk.salyk.kg [07:07:49]written 0, free lines is 4095 [07:07:50]Connected sock=10 [07:07:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 E9 0E 22 01 5C B8 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 47 1C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E0 7B 00 00 35 04 06 00 C7 23 50 A0 6E CE C9 EE 47 DA 3F BF 19 D3 [07:07:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 90 2F 47 00 D0 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E0 7B 00 00 F4 03 04 00 55 C8 95 66 B6 04 01 00 00 92 C4 ED 1F F3 C9 8D 29 [07:07:50]CommunicateWithHost err = 0 [07:07:50]CheckOFDResponse [07:07:50]1017 (14) - 77093643461234 [07:07:50]1041 (16) - 0000000000965389 [07:07:50]1040 (4) - 31712 [07:07:50]1012 (4) - 16.07.2024 01:09 [07:07:50]1206 (1) - 0 [07:07:50]OFD Sender: Remove packet 31712 [07:07:50]ProducePacketName [07:07:50]name=ofd_packets/00031712 [07:07:50]NVStorageDeleteData [07:07:50]Write to MH i2c: 01 00 00 01 15 16 [07:07:50]Write i2c OK [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: 01 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: 01 07 00 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: 01 07 00 01 15 00 00 00 00 00 D5 0C FE [07:07:50]RasterBufferAndPrint [07:07:50]line [07:07:50]line [07:07:50]line [07:07:50]line [07:07:50]line [07:07:50]written 0, free lines is 3291 [07:07:50]MH_Cut [07:07:50]Write to MH i2c: D1 01 00 08 15 01 EF [07:07:50]Write i2c OK [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: D1 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: D1 01 00 [07:07:50]MH_I2C_Read... [07:07:50]Read from MH i2c: D1 01 00 08 15 00 EE [07:07:50]Write to MH i2c: 01 00 00 09 15 1E [07:07:50]Write i2c OK [07:07:50]MH_I2C_Read... [07:07:50]OFD Sender: No OFD packet to send [07:07:51]*** Cut start [07:07:51]*** Partial cut [07:07:51]*** CUTSNS_PIN = 1 [07:07:51]*** CUTSNS_PIN = 0 [07:07:51]*** Brake cut motor [07:07:51]Read from MH i2c: 01 [07:07:51]MH_I2C_Read... [07:07:51]*** Stop cut motor [07:07:51]*** Cut end [07:07:51]Read from MH i2c: 01 07 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: 01 07 00 09 15 00 00 00 00 00 FF 0F 33 [07:07:51]process_action close_receipt done [07:07:51]requested_data is exist [07:07:51]produce_requested_data [07:07:51]requested_item fm.sn is exist - process it [07:07:51]wFMCommunicate request_size=4 [07:07:51]MH_SAM_APDU [07:07:51]CAPDU: 80 11 00 00 [07:07:51]Write to MH i2c: E2 08 00 0A 15 80 11 00 00 00 00 00 00 99 [07:07:51]Write i2c OK [07:07:51]MH_I2C_Read... [07:07:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:07:51]Read from MH i2c: E2 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 17 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 17 00 0A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F4 [07:07:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:07:51]wFMCommunicate OK [07:07:51]requested_item fd.num is exist - process it [07:07:51]SAM_PROTO_GetFieldsCounters [07:07:51]wFMCommunicate request_size=4 [07:07:51]MH_SAM_APDU [07:07:51]CAPDU: 80 13 00 00 [07:07:51]Write to MH i2c: E2 08 00 0B 15 80 13 00 00 00 00 00 00 9C [07:07:51]Write i2c OK [07:07:51]MH_I2C_Read... [07:07:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:07:51]Read from MH i2c: E2 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 62 00 [07:07:51]MH_I2C_Read... [07:07:51]Read from MH i2c: E2 62 00 0B 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E0 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [07:07:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E0 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:07:51]wFMCommunicate OK [07:07:51]SAM_PROTO_GetFieldsCounters done [07:07:51]requested_item shift.num is exist - process it [07:07:51]requested_item shift.opened is exist - process it [07:07:51]req_shift_opened [07:07:51]FM_GetShiftState [07:07:51]SAM_PROTO_GetShiftState [07:07:51]wFMCommunicate request_size=4 [07:07:51]MH_SAM_APDU [07:07:51]CAPDU: 80 13 01 00 [07:07:51]Write to MH i2c: E2 08 00 0C 15 80 13 01 00 00 00 00 00 9E [07:07:51]Write i2c OK [07:07:51]MH_I2C_Read... [07:07:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:07:52]Read from MH i2c: E2 [07:07:52]MH_I2C_Read... [07:07:52]Read from MH i2c: E2 0E 00 [07:07:52]MH_I2C_Read... [07:07:52]Read from MH i2c: E2 0E 00 0C 15 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 ED [07:07:52]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:07:52]wFMCommunicate OK [07:07:52]SAM_PROTO_GetShiftState done [07:07:52]FM_GetShiftState done [07:07:52]req_shift_opened done [07:07:52]requested_item shift.open_date is exist - process it [07:07:52]req_shift_open_date [07:07:52]req_shift_open_date done [07:07:52]produce_requested_data done [07:07:52]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31712,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [07:07:52]process_action_free close_receipt [07:07:52]json_value_free [07:07:52]json_value_free done [07:07:52]process_json_proto returns [07:07:52]Send response to host [07:07:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31712,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [07:07:52]free response buf [07:07:52]execute_script done [07:07:52]execute_script returns [07:07:52]free content buf [07:07:52]Sock 7.Close socket [07:07:52]Sock 7.Thread stoped [07:07:55]OFD Sender: No OFD packet to send [07:08:00]OFD Sender: No OFD packet to send [07:08:05]OFD Sender: No OFD packet to send [07:08:10]OFD Sender: No OFD packet to send [07:08:15]OFD Sender: No OFD packet to send [07:08:20]OFD Sender: No OFD packet to send [07:08:25]OFD Sender: No OFD packet to send [07:08:30]OFD Sender: No OFD packet to send [07:08:35]OFD Sender: No OFD packet to send [07:08:40]OFD Sender: No OFD packet to send [07:08:45]OFD Sender: No OFD packet to send [07:08:50]OFD Sender: No OFD packet to send [07:08:55]OFD Sender: No OFD packet to send [07:09:00]OFD Sender: No OFD packet to send [07:09:05]OFD Sender: No OFD packet to send [07:09:10]OFD Sender: No OFD packet to send [07:09:15]OFD Sender: No OFD packet to send [07:09:20]OFD Sender: No OFD packet to send [07:09:25]OFD Sender: No OFD packet to send [07:09:30]OFD Sender: No OFD packet to send [07:09:35]OFD Sender: No OFD packet to send [07:09:40]OFD Sender: No OFD packet to send [07:09:45]OFD Sender: No OFD packet to send [07:09:50]OFD Sender: No OFD packet to send [07:09:55]OFD Sender: No OFD packet to send [07:10:00]OFD Sender: No OFD packet to send [07:10:05]OFD Sender: No OFD packet to send [07:10:10]OFD Sender: No OFD packet to send [07:10:15]OFD Sender: No OFD packet to send [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:56]OFD Sender: No OFD packet to send [07:14:01]OFD Sender: No OFD packet to send [07:14:06]OFD Sender: No OFD packet to send [07:14:11]OFD Sender: No OFD packet to send [07:14:16]OFD Sender: No OFD packet to send [07:14:21]OFD Sender: No OFD packet to send [07:14:26]OFD Sender: No OFD packet to send [07:14:31]OFD Sender: No OFD packet to send [07:14:36]OFD Sender: No OFD packet to send [07:14:41]OFD Sender: No OFD packet to send [07:14:46]OFD Sender: No OFD packet to send [07:14:51]OFD Sender: No OFD packet to send [07:14:56]OFD Sender: No OFD packet to send [07:15:01]OFD Sender: No OFD packet to send [07:15:06]OFD Sender: No OFD packet to send [07:15:11]OFD Sender: No OFD packet to send [07:15:16]OFD Sender: No OFD packet to send [07:15:21]OFD Sender: No OFD packet to send [07:15:26]OFD Sender: No OFD packet to send [07:15:31]OFD Sender: No OFD packet to send [07:15:36]OFD Sender: No OFD packet to send [07:15:41]OFD Sender: No OFD packet to send [07:15:46]OFD Sender: No OFD packet to send [07:15:51]OFD Sender: No OFD packet to send [07:15:56]OFD Sender: No OFD packet to send [07:16:01]OFD Sender: No OFD packet to send [07:16:06]OFD Sender: No OFD packet to send [07:16:11]OFD Sender: No OFD packet to send [07:16:16]OFD Sender: No OFD packet to send [07:16:21]OFD Sender: No OFD packet to send [07:16:26]OFD Sender: No OFD packet to send [07:16:31]OFD Sender: No OFD packet to send [07:16:36]OFD Sender: No OFD packet to send [07:16:41]OFD Sender: No OFD packet to send [07:16:46]OFD Sender: No OFD packet to send [07:16:51]OFD Sender: No OFD packet to send [07:16:56]OFD Sender: No OFD packet to send [07:17:01]OFD Sender: No OFD packet to send [07:17:06]OFD Sender: No OFD packet to send [07:17:11]OFD Sender: No OFD packet to send [07:17:16]OFD Sender: No OFD packet to send [07:17:21]OFD Sender: No OFD packet to send [07:17:26]OFD Sender: No OFD packet to send [07:17:31]OFD Sender: No OFD packet to send [07:17:36]OFD Sender: No OFD packet to send [07:17:41]OFD Sender: No OFD packet to send [07:17:46]OFD Sender: No OFD packet to send [07:17:51]OFD Sender: No OFD packet to send [07:17:56]OFD Sender: No OFD packet to send [07:18:01]OFD Sender: No OFD packet to send [07:18:06]OFD Sender: No OFD packet to send [07:18:11]OFD Sender: No OFD packet to send [07:18:16]OFD Sender: No OFD packet to send [07:18:21]OFD Sender: No OFD packet to send [07:18:26]OFD Sender: No OFD packet to send [07:18:31]OFD Sender: No OFD packet to send [07:18:36]OFD Sender: No OFD packet to send [07:18:41]OFD Sender: No OFD packet to send [07:18:46]OFD Sender: No OFD packet to send [07:18:51]OFD Sender: No OFD packet to send [07:18:56]OFD Sender: No OFD packet to send [07:19:01]OFD Sender: No OFD packet to send [07:19:06]OFD Sender: No OFD packet to send [07:19:11]OFD Sender: No OFD packet to send [07:19:16]OFD Sender: No OFD packet to send [07:19:21]OFD Sender: No OFD packet to send [07:19:26]OFD Sender: No OFD packet to send [07:19:31]OFD Sender: No OFD packet to send [07:19:36]OFD Sender: No OFD packet to send [07:19:41]OFD Sender: No OFD packet to send [07:19:46]OFD Sender: No OFD packet to send [07:19:51]OFD Sender: No OFD packet to send [07:19:56]OFD Sender: No OFD packet to send [07:20:01]OFD Sender: No OFD packet to send [07:20:06]OFD Sender: No OFD packet to send [07:20:11]OFD Sender: No OFD packet to send [07:20:16]OFD Sender: No OFD packet to send [07:20:21]OFD Sender: No OFD packet to send [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:20:56]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:25:58]accept exits with 9 [07:25:58]New connection [07:25:58]New thread 3066965348 created [07:25:58]Thread 3066821988 joined [07:25:58]Waiting for new connection... [07:25:58] Sock 9.Parse request [07:25:58]Sock 9.Check first char [07:25:58]Sock 9.First char is OK [07:25:58]request: POST /json_proto HTTP/1.0 [07:25:58]Method: POST [07:25:58]URL: /json_proto [07:25:58]Method is POST - this is cgi request [07:25:58]url: /json_proto [07:25:58]query_string will be loaded in cgi processing [07:25:58]execute_cgi json_proto POST (null) [07:25:58]execute_cgi path=json_proto method=POST [07:25:58]POST find Content-Length [07:25:58]Host: 172.17.39.68:8080 [07:25:58]Content-Length: 628 [07:25:58]Content-Type: application/json [07:25:58] [07:25:58]POST finish read [07:25:58]Found Content-Length = 628 [07:25:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214294", "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" ] } } [07:25:58]execute_script... [07:25:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214294", "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" ] } } [07:25:58]POST & json_proto [07:25:58]process_json_proto [07:25:58]json parsed OK: [07:25:58]protocol is kg_v1.0 [07:25:58]action value=close_receipt [07:25:58]process_action close_receipt [07:25:58]cmd_close_receipt [07:25:58]MH_GetDate [07:25:58]Write to MH i2c: F0 00 00 0D 15 11 [07:25:58]Write i2c OK [07:25:58]MH_I2C_Read... [07:25:58]Read from MH i2c: F0 [07:25:58]MH_I2C_Read... [07:25:58]Read from MH i2c: F0 09 00 [07:25:58]MH_I2C_Read... [07:25:58]Read from MH i2c: F0 09 00 0D 15 00 8A 20 96 66 D6 48 95 66 D9 [07:25:58]GetLastDocTimeStamp 1721113671 [07:25:58]current date 1721114762 [07:25:58]FM_GetShiftState [07:25:58]SAM_PROTO_GetShiftState [07:25:58]wFMCommunicate request_size=4 [07:25:58]MH_SAM_APDU [07:25:58]CAPDU: 80 13 01 00 [07:25:58]Write to MH i2c: E2 08 00 0E 15 80 13 01 00 00 00 00 00 A0 [07:25:58]Write i2c OK [07:25:58]MH_I2C_Read... [07:25:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:25:58]Read from MH i2c: E2 [07:25:58]MH_I2C_Read... [07:25:58]Read from MH i2c: E2 0E 00 [07:25:58]MH_I2C_Read... [07:25:58]Read from MH i2c: E2 0E 00 0E 15 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 EF [07:25:58]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:25:58]wFMCommunicate OK [07:25:58]SAM_PROTO_GetShiftState done [07:25:58]FM_GetShiftState done [07:25:58]opened in 1721088399 [07:25:58]opened+sec_in_day 1721174799 [07:25:58]quantity*price = 13000 [07:25:58]sum+1 = 13001 [07:25:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 32 16.07.2024 07:26 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31713 ФПД: 215157783970905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T072602&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31713&fm=215157783970905&tin=02508201610067®Number=0000000000098025&sum=13000 0 [07:26:00]StoreToDocumentArchive [07:26:00]shift 371 fd 31713 [07:26:00]save to /storage/0371/doc_00031713 [07:26:00]save last doc name /storage/0371/doc_00031713 to /storage/kkm_last_doc_name [07:26:00]save OK [07:26:00]Clear old archive folders... [07:26:00]ProcessDocumentItem done err = 0, tmpTLVsize=276 [07:26:00]tlvbuf is 014CC5C0 [07:26:00]SAM_PROTO_ClearQueue [07:26:00]wFMCommunicate request_size=4 [07:26:00]MH_SAM_APDU [07:26:00]CAPDU: 80 09 00 00 [07:26:00]Write to MH i2c: E2 08 00 1B 15 80 09 00 00 00 00 00 00 A2 [07:26:00]Write i2c OK [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 [07:26:00]MH_I2C_Read... [07:26:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:00]Read from MH i2c: E2 03 00 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 03 00 1B 15 00 90 00 A4 [07:26:00]RAPDU: 90 00 [07:26:00]wFMCommunicate OK [07:26:00]SAM_PROTO_ClearQueue done [07:26:00]KKMCreateOFDPacket [07:26:00]OFDProtocolAddRootSTLVToBuf [07:26:00]FM_MakeSignedData [07:26:00]FM_MakeSignedData [07:26:00]SAM_PROTO_SignData [07:26:00]wFMCommunicate request_size=4 [07:26:00]MH_SAM_APDU [07:26:00]CAPDU: 80 0D 01 02 [07:26:00]Write to MH i2c: E2 08 00 1C 15 80 0D 01 02 00 00 00 00 AA [07:26:00]Write i2c OK [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 [07:26:00]MH_I2C_Read... [07:26:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:00]Read from MH i2c: E2 03 00 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 03 00 1C 15 00 90 00 A5 [07:26:00]RAPDU: 90 00 [07:26:00]wFMCommunicate OK [07:26:00]wFMCommunicate request_size=255 [07:26:00]MH_SAM_APDU [07:26:00]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 20 00 00 00 F4 03 04 00 8A 20 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [07:26:00]Write to MH i2c: E2 02 01 1D 15 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 20 00 00 00 F4 03 04 00 8A 20 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 FE [07:26:00]Write i2c OK [07:26:00]MH_I2C_Read... [07:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:00]Read from MH i2c: E2 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 03 00 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 03 00 1D 15 00 90 00 A6 [07:26:00]RAPDU: 90 00 [07:26:00]wFMCommunicate OK [07:26:00]wFMCommunicate request_size=35 [07:26:00]MH_SAM_APDU [07:26:00]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E1 7B 00 00 35 04 06 00 C3 AF 53 48 C4 59 [07:26:00]Write to MH i2c: E2 26 00 1E 15 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E1 7B 00 00 35 04 06 00 C3 AF 53 48 C4 59 00 00 2E [07:26:00]Write i2c OK [07:26:00]MH_I2C_Read... [07:26:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:00]Read from MH i2c: E2 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 03 00 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 03 00 1E 15 00 90 00 A7 [07:26:00]RAPDU: 90 00 [07:26:00]wFMCommunicate OK [07:26:00]wFMCommunicate request_size=4 [07:26:00]MH_SAM_APDU [07:26:00]CAPDU: 80 0D 03 02 [07:26:00]Write to MH i2c: E2 08 00 1F 15 80 0D 03 02 00 00 00 00 AF [07:26:00]Write i2c OK [07:26:00]MH_I2C_Read... [07:26:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:00]Read from MH i2c: E2 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 0B 00 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 0B 00 1F 15 00 54 35 70 62 9E 28 71 82 90 00 C4 [07:26:00]RAPDU: 54 35 70 62 9E 28 71 82 90 00 [07:26:00]wFMCommunicate OK [07:26:00]SAM_PROTO_SignData done [07:26:00]FM_MakeSignedData done [07:26:00]CreateOFDProtocolMessage [07:26:00]wFMCommunicate request_size=4 [07:26:00]MH_SAM_APDU [07:26:00]CAPDU: 80 11 00 00 [07:26:00]Write to MH i2c: E2 08 00 20 15 80 11 00 00 00 00 00 00 AF [07:26:00]Write i2c OK [07:26:00]MH_I2C_Read... [07:26:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:00]Read from MH i2c: E2 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 17 00 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: E2 17 00 20 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0A [07:26:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:26:00]wFMCommunicate OK [07:26:00]CreateOFDProtocolMessage done [07:26:00]OFDSenderStorePacket 31713 [07:26:00]StoreOFDPacket docnum=31713 [07:26:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 06 2F 20 01 93 96 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 20 00 00 00 F4 03 04 00 8A 20 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E1 7B 00 00 35 04 06 00 C3 AF 53 48 C4 59 54 35 70 62 9E 28 71 82 [07:26:00]CheckFolder [07:26:00]dirname=/storage/ofd_packets [07:26:00]CheckFolder done [07:26:00]ProducePacketName [07:26:00]name=ofd_packets/00031713 [07:26:00]NVStorageSaveData ofd_packets/00031713 [07:26:00]File name is /storage/ofd_packets/00031713 [07:26:00]Write 326 bytes [07:26:00]NVStorageSaveData done [07:26:00]OFDSenderStorePacket done [07:26:00]KKMCreateOFDPacket done [07:26:00]NVStorageSaveData kkm_last_timestamp [07:26:00]File name is /storage/kkm_last_timestamp [07:26:00]Write 4 bytes [07:26:00]NVStorageSaveData done [07:26:00]ExternCall_PrintAddStr [07:26:00]wPrintStart [07:26:00]Write to MH i2c: 01 00 00 21 15 36 [07:26:00]Write i2c OK [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: 01 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: 01 07 00 [07:26:00]MH_I2C_Read... [07:26:00]Read from MH i2c: 01 07 00 21 15 00 00 00 00 00 FF 0F 4B [07:26:00]RasterBufferAndPrint [07:26:00]line Счет N : (3)214294 [07:26:00]line ИНН: 02508201610067 [07:26:00]line Контрольно-Кассовый Чек [07:26:00]line ПРОДАЖА [07:26:00]line Товар: 2000036230011 [07:26:00]line Кофе Латте XL(GABB TRADE) [07:26:00]line 1.000 * 130.00 [07:26:00]line = 130.00 [07:26:00]line НДС 12% НСП 1% [07:26:00]line > о реализуемом товаре [07:26:00]line ИТОГО: 130.00 [07:26:00]line НСП 1% : 1.15 [07:26:00]line НДС 12% : 13.80 [07:26:00]line Наличными: 130.00 [07:26:00]line Безнал.: 0.00 [07:26:00]line Место: АЗС № 140 "Партнер Нефть" [07:26:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:26:00]line СНО: Общий режим [07:26:00]line Чек 32 16.07.2024 07:26 [07:26:00]line Смена: 371 ФФД: 1.0 [07:26:00]line ЗНМ: 0300000189 [07:26:00]line РНМ: 0000000000098025 [07:26:00]line Версия ККМ: 001 [07:26:00]line ФМ: 0000000000965389 [07:26:00]line ФД: 31713 [07:26:00]line ФПД: 215157783970905 [07:26:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T072602&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31713&fm=215157783970905&tin=02508201610067®Number=0000000000098025&sum=13000 [07:26:00]line 0 [07:26:00]OFD Sender: Processing packet 31713 [packets to send 6, broken 5] [07:26:00]ProducePacketName [07:26:00]name=ofd_packets/00031713 [07:26:00]OFD Sender: To server: pG, [07:26:00]CommunicateWithHost lk.salyk.kg:30040 [07:26:00]ConnectInit lk.salyk.kg [07:26:00]written 0, free lines is 4095 [07:26:01]Connected sock=10 [07:26:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 06 2F 20 01 93 96 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 20 00 00 00 F4 03 04 00 8A 20 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E1 7B 00 00 35 04 06 00 C3 AF 53 48 C4 59 54 35 70 62 9E 28 71 82 [07:26:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 62 C6 47 00 CD 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E1 7B 00 00 F4 03 04 00 98 CC 95 66 B6 04 01 00 00 CB 16 2C EB 0E 04 A4 D8 [07:26:01]CommunicateWithHost err = 0 [07:26:01]CheckOFDResponse [07:26:01]1017 (14) - 77093643461234 [07:26:01]1041 (16) - 0000000000965389 [07:26:01]1040 (4) - 31713 [07:26:01]1012 (4) - 16.07.2024 01:27 [07:26:01]1206 (1) - 0 [07:26:01]OFD Sender: Remove packet 31713 [07:26:01]ProducePacketName [07:26:01]name=ofd_packets/00031713 [07:26:01]NVStorageDeleteData [07:26:01]Write to MH i2c: 01 00 00 49 15 5E [07:26:01]Write i2c OK [07:26:01]MH_I2C_Read... [07:26:01]Read from MH i2c: 01 [07:26:01]MH_I2C_Read... [07:26:01]Read from MH i2c: 01 07 00 [07:26:01]MH_I2C_Read... [07:26:01]Read from MH i2c: 01 07 00 49 15 00 00 00 00 00 02 0D 74 [07:26:01]RasterBufferAndPrint [07:26:01]line [07:26:01]line [07:26:01]line [07:26:01]line [07:26:01]line [07:26:01]written 0, free lines is 3337 [07:26:01]MH_Cut [07:26:01]Write to MH i2c: D1 01 00 50 15 01 37 [07:26:01]Write i2c OK [07:26:01]MH_I2C_Read... [07:26:01]Read from MH i2c: D1 [07:26:01]MH_I2C_Read... [07:26:01]Read from MH i2c: D1 01 00 [07:26:01]MH_I2C_Read... [07:26:01]Read from MH i2c: D1 01 00 50 15 00 36 [07:26:01]Write to MH i2c: 01 00 00 51 15 66 [07:26:01]Write i2c OK [07:26:01]MH_I2C_Read... [07:26:01]OFD Sender: No OFD packet to send [07:26:02]*** Cut start [07:26:02]*** Partial cut [07:26:02]*** CUTSNS_PIN = 1 [07:26:02]*** CUTSNS_PIN = 0 [07:26:02]*** Brake cut motor [07:26:02]Read from MH i2c: 01 [07:26:02]MH_I2C_Read... [07:26:02]*** Stop cut motor [07:26:02]*** Cut end [07:26:02]Read from MH i2c: 01 07 00 [07:26:02]MH_I2C_Read... [07:26:02]Read from MH i2c: 01 07 00 51 15 00 00 00 00 00 FF 0F 7B [07:26:02]process_action close_receipt done [07:26:02]requested_data is exist [07:26:02]produce_requested_data [07:26:02]requested_item fm.sn is exist - process it [07:26:02]wFMCommunicate request_size=4 [07:26:02]MH_SAM_APDU [07:26:02]CAPDU: 80 11 00 00 [07:26:02]Write to MH i2c: E2 08 00 52 15 80 11 00 00 00 00 00 00 E1 [07:26:02]Write i2c OK [07:26:02]MH_I2C_Read... [07:26:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:02]Read from MH i2c: E2 [07:26:02]MH_I2C_Read... [07:26:02]Read from MH i2c: E2 17 00 [07:26:02]MH_I2C_Read... [07:26:02]Read from MH i2c: E2 17 00 52 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3C [07:26:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:26:02]wFMCommunicate OK [07:26:02]requested_item fd.num is exist - process it [07:26:02]SAM_PROTO_GetFieldsCounters [07:26:02]wFMCommunicate request_size=4 [07:26:02]MH_SAM_APDU [07:26:02]CAPDU: 80 13 00 00 [07:26:02]Write to MH i2c: E2 08 00 53 15 80 13 00 00 00 00 00 00 E4 [07:26:02]Write i2c OK [07:26:02]MH_I2C_Read... [07:26:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:03]Read from MH i2c: E2 [07:26:03]MH_I2C_Read... [07:26:03]Read from MH i2c: E2 62 00 [07:26:03]MH_I2C_Read... [07:26:03]Read from MH i2c: E2 62 00 53 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E1 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [07:26:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E1 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:26:03]wFMCommunicate OK [07:26:03]SAM_PROTO_GetFieldsCounters done [07:26:03]requested_item shift.num is exist - process it [07:26:03]requested_item shift.opened is exist - process it [07:26:03]req_shift_opened [07:26:03]FM_GetShiftState [07:26:03]SAM_PROTO_GetShiftState [07:26:03]wFMCommunicate request_size=4 [07:26:03]MH_SAM_APDU [07:26:03]CAPDU: 80 13 01 00 [07:26:03]Write to MH i2c: E2 08 00 54 15 80 13 01 00 00 00 00 00 E6 [07:26:03]Write i2c OK [07:26:03]MH_I2C_Read... [07:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:03]Read from MH i2c: E2 [07:26:03]MH_I2C_Read... [07:26:03]Read from MH i2c: E2 0E 00 [07:26:03]MH_I2C_Read... [07:26:03]Read from MH i2c: E2 0E 00 54 15 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 35 [07:26:03]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:26:03]wFMCommunicate OK [07:26:03]SAM_PROTO_GetShiftState done [07:26:03]FM_GetShiftState done [07:26:03]req_shift_opened done [07:26:03]requested_item shift.open_date is exist - process it [07:26:03]req_shift_open_date [07:26:03]req_shift_open_date done [07:26:03]produce_requested_data done [07:26:03]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31713,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [07:26:03]process_action_free close_receipt [07:26:03]json_value_free [07:26:03]json_value_free done [07:26:03]process_json_proto returns [07:26:03]Send response to host [07:26:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31713,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [07:26:03]free response buf [07:26:03]execute_script done [07:26:03]execute_script returns [07:26:03]free content buf [07:26:03]Sock 9.Close socket [07:26:03]Sock 9.Thread stoped [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:17]OFD Sender: No OFD packet to send [07:30:22]OFD Sender: No OFD packet to send [07:30:27]OFD Sender: No OFD packet to send [07:30:32]OFD Sender: No OFD packet to send [07:30:37]OFD Sender: No OFD packet to send [07:30:42]OFD Sender: No OFD packet to send [07:30:47]OFD Sender: No OFD packet to send [07:30:52]OFD Sender: No OFD packet to send [07:30:57]OFD Sender: No OFD packet to send [07:31:02]OFD Sender: No OFD packet to send [07:31:07]OFD Sender: No OFD packet to send [07:31:12]OFD Sender: No OFD packet to send [07:31:17]OFD Sender: No OFD packet to send [07:31:22]OFD Sender: No OFD packet to send [07:31:27]OFD Sender: No OFD packet to send [07:31:32]OFD Sender: No OFD packet to send [07:31:37]OFD Sender: No OFD packet to send [07:31:42]OFD Sender: No OFD packet to send [07:31:47]OFD Sender: No OFD packet to send [07:31:52]OFD Sender: No OFD packet to send [07:31:57]OFD Sender: No OFD packet to send [07:32:02]OFD Sender: No OFD packet to send [07:32:07]OFD Sender: No OFD packet to send [07:32:12]OFD Sender: No OFD packet to send [07:32:17]OFD Sender: No OFD packet to send [07:32:22]OFD Sender: No OFD packet to send [07:32:27]OFD Sender: No OFD packet to send [07:32:32]OFD Sender: No OFD packet to send [07:32:37]OFD Sender: No OFD packet to send [07:32:42]OFD Sender: No OFD packet to send [07:32:47]OFD Sender: No OFD packet to send [07:32:52]OFD Sender: No OFD packet to send [07:32:57]OFD Sender: No OFD packet to send [07:33:02]OFD Sender: No OFD packet to send [07:33:07]OFD Sender: No OFD packet to send [07:33:12]OFD Sender: No OFD packet to send [07:33:17]OFD Sender: No OFD packet to send [07:33:22]OFD Sender: No OFD packet to send [07:33:27]OFD Sender: No OFD packet to send [07:33:32]OFD Sender: No OFD packet to send [07:33:37]OFD Sender: No OFD packet to send [07:33:42]OFD Sender: No OFD packet to send [07:33:47]OFD Sender: No OFD packet to send [07:33:52]OFD Sender: No OFD packet to send [07:33:57]OFD Sender: No OFD packet to send [07:34:02]OFD Sender: No OFD packet to send [07:34:07]OFD Sender: No OFD packet to send [07:34:12]OFD Sender: No OFD packet to send [07:34:17]OFD Sender: No OFD packet to send [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:37]OFD Sender: No OFD packet to send [07:34:42]OFD Sender: No OFD packet to send [07:34:47]OFD Sender: No OFD packet to send [07:34:52]OFD Sender: No OFD packet to send [07:34:57]OFD Sender: No OFD packet to send [07:35:02]OFD Sender: No OFD packet to send [07:35:07]OFD Sender: No OFD packet to send [07:35:12]OFD Sender: No OFD packet to send [07:35:17]OFD Sender: No OFD packet to send [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:39:02]OFD Sender: No OFD packet to send [07:39:07]OFD Sender: No OFD packet to send [07:39:12]OFD Sender: No OFD packet to send [07:39:17]OFD Sender: No OFD packet to send [07:39:22]OFD Sender: No OFD packet to send [07:39:27]OFD Sender: No OFD packet to send [07:39:32]OFD Sender: No OFD packet to send [07:39:37]OFD Sender: No OFD packet to send [07:39:42]OFD Sender: No OFD packet to send [07:39:47]OFD Sender: No OFD packet to send [07:39:52]OFD Sender: No OFD packet to send [07:39:57]OFD Sender: No OFD packet to send [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:22]OFD Sender: No OFD packet to send [07:40:27]OFD Sender: No OFD packet to send [07:40:32]OFD Sender: No OFD packet to send [07:40:37]OFD Sender: No OFD packet to send [07:40:42]OFD Sender: No OFD packet to send [07:40:47]OFD Sender: No OFD packet to send [07:40:52]OFD Sender: No OFD packet to send [07:40:57]OFD Sender: No OFD packet to send [07:41:02]OFD Sender: No OFD packet to send [07:41:07]OFD Sender: No OFD packet to send [07:41:12]OFD Sender: No OFD packet to send [07:41:17]OFD Sender: No OFD packet to send [07:41:22]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]accept exits with 7 [07:42:02]New connection [07:42:02]New thread 3066821988 created [07:42:02]Thread 3066965348 joined [07:42:02]Waiting for new connection... [07:42:02] Sock 7.Parse request [07:42:02]Sock 7.Check first char [07:42:02]Sock 7.First char is OK [07:42:02]request: POST /json_proto HTTP/1.0 [07:42:02]Method: POST [07:42:02]URL: /json_proto [07:42:02]Method is POST - this is cgi request [07:42:02]url: /json_proto [07:42:02]query_string will be loaded in cgi processing [07:42:02]execute_cgi json_proto POST (null) [07:42:02]execute_cgi path=json_proto method=POST [07:42:02]POST find Content-Length [07:42:02]Host: 172.17.39.68:8080 [07:42:02]Content-Length: 931 [07:42:02]Content-Type: application/json [07:42:02] [07:42:02]POST finish read [07:42:02]Found Content-Length = 931 [07:42:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214295", "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 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 323.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:02]execute_script... [07:42: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)214295", "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 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 323.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:02]POST & json_proto [07:42:02]process_json_proto [07:42:02]json parsed OK: [07:42:02]protocol is kg_v1.0 [07:42:02]action value=close_receipt [07:42:02]process_action close_receipt [07:42:02]cmd_close_receipt [07:42:02]MH_GetDate [07:42:02]Write to MH i2c: F0 00 00 55 15 59 [07:42:02]Write i2c OK [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: F0 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: F0 09 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: F0 09 00 55 15 00 4D 24 96 66 D6 48 95 66 E8 [07:42:02]GetLastDocTimeStamp 1721114762 [07:42:02]current date 1721115725 [07:42:02]FM_GetShiftState [07:42:02]SAM_PROTO_GetShiftState [07:42:02]wFMCommunicate request_size=4 [07:42:02]MH_SAM_APDU [07:42:02]CAPDU: 80 13 01 00 [07:42:02]Write to MH i2c: E2 08 00 56 15 80 13 01 00 00 00 00 00 E8 [07:42:02]Write i2c OK [07:42:02]MH_I2C_Read... [07:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:02]Read from MH i2c: E2 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 0E 00 [07:42:02]MH_I2C_Read... [07:42:02]Read from MH i2c: E2 0E 00 56 15 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 37 [07:42:02]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:42:02]wFMCommunicate OK [07:42:02]SAM_PROTO_GetShiftState done [07:42:02]FM_GetShiftState done [07:42:02]opened in 1721088399 [07:42:02]opened+sec_in_day 1721174799 [07:42:02]quantity*price = 23000 [07:42:02]sum+1 = 23001 [07:42:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004862 Печ.сах.FORSITE Сэнд.шок-ор.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 323.00 НСП 1% : 2.85 НДС 12% : 34.30 Наличными: 323.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 33 16.07.2024 07:42 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31714 ФПД: 176550129276820 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T074205&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31714&fm=176550129276820&tin=02508201610067®Number=0000000000098025&sum=32300 0 [07:42:03]StoreToDocumentArchive [07:42:03]shift 371 fd 31714 [07:42:03]save to /storage/0371/doc_00031714 [07:42:03]save last doc name /storage/0371/doc_00031714 to /storage/kkm_last_doc_name [07:42:03]save OK [07:42:03]Clear old archive folders... [07:42:03]ProcessDocumentItem done err = 0, tmpTLVsize=399 [07:42:03]tlvbuf is 0147E410 [07:42:03]SAM_PROTO_ClearQueue [07:42:03]wFMCommunicate request_size=4 [07:42:03]MH_SAM_APDU [07:42:03]CAPDU: 80 09 00 00 [07:42:03]Write to MH i2c: E2 08 00 63 15 80 09 00 00 00 00 00 00 EA [07:42:03]Write i2c OK [07:42:03]MH_I2C_Read... [07:42:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:03]Read from MH i2c: E2 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 03 00 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 03 00 63 15 00 90 00 EC [07:42:03]RAPDU: 90 00 [07:42:03]wFMCommunicate OK [07:42:03]SAM_PROTO_ClearQueue done [07:42:03]KKMCreateOFDPacket [07:42:03]OFDProtocolAddRootSTLVToBuf [07:42:03]FM_MakeSignedData [07:42:03]FM_MakeSignedData [07:42:03]SAM_PROTO_SignData [07:42:03]wFMCommunicate request_size=4 [07:42:03]MH_SAM_APDU [07:42:03]CAPDU: 80 0D 01 02 [07:42:03]Write to MH i2c: E2 08 00 64 15 80 0D 01 02 00 00 00 00 F2 [07:42:03]Write i2c OK [07:42:03]MH_I2C_Read... [07:42:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:03]Read from MH i2c: E2 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 03 00 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 03 00 64 15 00 90 00 ED [07:42:03]RAPDU: 90 00 [07:42:03]wFMCommunicate OK [07:42:03]wFMCommunicate request_size=255 [07:42:03]MH_SAM_APDU [07:42:03]CAPDU: 80 0D 02 02 FA 03 00 8F 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 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 [07:42:03]Write to MH i2c: E2 02 01 65 15 80 0D 02 02 FA 00 03 00 8F 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 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 00 00 F6 [07:42:03]Write i2c OK [07:42:03]MH_I2C_Read... [07:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:03]Read from MH i2c: E2 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 03 00 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 03 00 65 15 00 90 00 EE [07:42:03]RAPDU: 90 00 [07:42:03]wFMCommunicate OK [07:42:03]wFMCommunicate request_size=158 [07:42:03]MH_SAM_APDU [07:42:03]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 24 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E2 7B 00 00 35 04 06 00 A0 92 47 BD 97 94 [07:42:03]Write to MH i2c: E2 A1 00 66 15 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 24 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E2 7B 00 00 35 04 06 00 A0 92 47 BD 97 94 00 00 78 [07:42:03]Write i2c OK [07:42:03]MH_I2C_Read... [07:42:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:03]Read from MH i2c: E2 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 03 00 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 03 00 66 15 00 90 00 EF [07:42:03]RAPDU: 90 00 [07:42:03]wFMCommunicate OK [07:42:03]wFMCommunicate request_size=4 [07:42:03]MH_SAM_APDU [07:42:03]CAPDU: 80 0D 03 02 [07:42:03]Write to MH i2c: E2 08 00 67 15 80 0D 03 02 00 00 00 00 F7 [07:42:03]Write i2c OK [07:42:03]MH_I2C_Read... [07:42:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:03]Read from MH i2c: E2 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 0B 00 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 0B 00 67 15 00 11 1B EB 97 7F 53 B9 DF 90 00 10 [07:42:03]RAPDU: 11 1B EB 97 7F 53 B9 DF 90 00 [07:42:03]wFMCommunicate OK [07:42:03]SAM_PROTO_SignData done [07:42:03]FM_MakeSignedData done [07:42:03]CreateOFDProtocolMessage [07:42:03]wFMCommunicate request_size=4 [07:42:03]MH_SAM_APDU [07:42:03]CAPDU: 80 11 00 00 [07:42:03]Write to MH i2c: E2 08 00 68 15 80 11 00 00 00 00 00 00 F7 [07:42:03]Write i2c OK [07:42:03]MH_I2C_Read... [07:42:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:03]Read from MH i2c: E2 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 17 00 [07:42:03]MH_I2C_Read... [07:42:03]Read from MH i2c: E2 17 00 68 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 52 [07:42:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:42:03]wFMCommunicate OK [07:42:03]CreateOFDProtocolMessage done [07:42:03]OFDSenderStorePacket 31714 [07:42:03]StoreOFDPacket docnum=31714 [07:42:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A3 01 00 00 B8 16 9B 01 80 67 5A 03 01 00 03 00 8F 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 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 24 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E2 7B 00 00 35 04 06 00 A0 92 47 BD 97 94 11 1B EB 97 7F 53 B9 DF [07:42:03]CheckFolder [07:42:03]dirname=/storage/ofd_packets [07:42:03]CheckFolder done [07:42:03]ProducePacketName [07:42:03]name=ofd_packets/00031714 [07:42:03]NVStorageSaveData ofd_packets/00031714 [07:42:03]File name is /storage/ofd_packets/00031714 [07:42:03]Write 449 bytes [07:42:03]NVStorageSaveData done [07:42:03]OFDSenderStorePacket done [07:42:03]KKMCreateOFDPacket done [07:42:03]NVStorageSaveData kkm_last_timestamp [07:42:03]File name is /storage/kkm_last_timestamp [07:42:03]Write 4 bytes [07:42:03]NVStorageSaveData done [07:42:03]ExternCall_PrintAddStr [07:42:03]wPrintStart [07:42:03]Write to MH i2c: 01 00 00 69 15 7E [07:42:04]Write i2c OK [07:42:04]MH_I2C_Read... [07:42:04]OFD Sender: Processing packet 31714 [packets to send 6, broken 5] [07:42:04]Read from MH i2c: ProducePacketName [07:42:04]01 [07:42:04]name=ofd_packets/00031714 [07:42:04]MH_I2C_Read... [07:42:04]OFD Sender: To server: pG, [07:42:04]CommunicateWithHost lk.salyk.kg:30040 [07:42:04]Read from MH i2c: ConnectInit lk.salyk.kg [07:42:04]01 07 00 [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: 01 07 00 69 15 00 00 00 00 00 FF 0F 93 [07:42:04]RasterBufferAndPrint [07:42:04]line Счет N : (3)214295 [07:42:04]line ИНН: 02508201610067 [07:42:04]line Контрольно-Кассовый Чек [07:42:04]line ПРОДАЖА [07:42:04]line Товар: 2000036210013 [07:42:04]line Кофе Капучино (GABB TRADE) [07:42:04]line 2.000 * 115.00 [07:42:04]line = 230.00 [07:42:04]line НДС 12% НСП 1% [07:42:04]line > о реализуемом товаре [07:42:04]line Товар: 4603290004862 [07:42:04]line Печ.сах.FORSITE Сэнд.шок-ор.вк [07:42:04]line 1.000 * 93.00 [07:42:04]line = 93.00 [07:42:04]line НДС 12% НСП 1% [07:42:04]line > о реализуемом товаре [07:42:04]line ИТОГО: 323.00 [07:42:04]line НСП 1% : 2.85 [07:42:04]line НДС 12% : 34.30 [07:42:04]line Наличными: 323.00 [07:42:04]line Безнал.: 0.00 [07:42:04]line Место: АЗС № 140 "Партнер Нефть" [07:42:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:42:04]line СНО: Общий режим [07:42:04]line Чек 33 16.07.2024 07:42 [07:42:04]line Смена: 371 ФФД: 1.0 [07:42:04]line ЗНМ: 0300000189 [07:42:04]line РНМ: 0000000000098025 [07:42:04]line Версия ККМ: 001 [07:42:04]line ФМ: 0000000000965389 [07:42:04]line ФД: 31714 [07:42:04]line ФПД: 176550129276820 [07:42:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T074205&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31714&fm=176550129276820&tin=02508201610067®Number=0000000000098025&sum=32300 [07:42:04]line 0 [07:42:04]written 0, free lines is 4095 [07:42:04]Connected sock=11 [07:42:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A3 01 00 00 B8 16 9B 01 80 67 5A 03 01 00 03 00 8F 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 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 7E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 0D 00 00 00 00 07 04 06 00 2C 7E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 4D 24 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E2 7B 00 00 35 04 06 00 A0 92 47 BD 97 94 11 1B EB 97 7F 53 B9 DF [07:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 DF A9 47 00 1A 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 35 33 38 39 10 04 04 00 E2 7B 00 00 F4 03 04 00 5B D0 95 66 B6 04 01 00 00 C1 BE 42 33 4D B8 D4 AE [07:42:04]CommunicateWithHost err = 0 [07:42:04]CheckOFDResponse [07:42:04]1017 (14) - 77093643461234 [07:42:04]1041 (16) - 0000000000965389 [07:42:04]1040 (4) - 31714 [07:42:04]1012 (4) - 16.07.2024 01:43 [07:42:04]1206 (1) - 0 [07:42:04]OFD Sender: Remove packet 31714 [07:42:04]ProducePacketName [07:42:04]name=ofd_packets/00031714 [07:42:04]NVStorageDeleteData [07:42:04]Write to MH i2c: 01 00 00 98 15 AD [07:42:04]Write i2c OK [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: 01 [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: 01 07 00 [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: 01 07 00 98 15 00 00 00 00 00 9D 0C 5D [07:42:04]RasterBufferAndPrint [07:42:04]line [07:42:04]line [07:42:04]line [07:42:04]line [07:42:04]line [07:42:04]written 0, free lines is 3236 [07:42:04]MH_Cut [07:42:04]Write to MH i2c: D1 01 00 9F 15 01 86 [07:42:04]Write i2c OK [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: D1 [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: D1 01 00 [07:42:04]MH_I2C_Read... [07:42:04]Read from MH i2c: D1 01 00 9F 15 00 85 [07:42:04]Write to MH i2c: 01 00 00 A0 15 B5 [07:42:04]Write i2c OK [07:42:04]MH_I2C_Read... [07:42:05]OFD Sender: No OFD packet to send [07:42:05]*** Cut start [07:42:05]*** Partial cut [07:42:05]*** CUTSNS_PIN = 1 [07:42:05]*** CUTSNS_PIN = 0 [07:42:05]*** Brake cut motor [07:42:06]Read from MH i2c: 01 [07:42:06]MH_I2C_Read... [07:42:06]*** Stop cut motor [07:42:06]*** Cut end [07:42:06]Read from MH i2c: 01 07 00 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: 01 07 00 A0 15 00 00 00 00 00 FF 0F CA [07:42:06]process_action close_receipt done [07:42:06]requested_data is exist [07:42:06]produce_requested_data [07:42:06]requested_item fm.sn is exist - process it [07:42:06]wFMCommunicate request_size=4 [07:42:06]MH_SAM_APDU [07:42:06]CAPDU: 80 11 00 00 [07:42:06]Write to MH i2c: E2 08 00 A1 15 80 11 00 00 00 00 00 00 30 [07:42:06]Write i2c OK [07:42:06]MH_I2C_Read... [07:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:06]Read from MH i2c: E2 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 17 00 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 17 00 A1 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8B [07:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:42:06]wFMCommunicate OK [07:42:06]requested_item fd.num is exist - process it [07:42:06]SAM_PROTO_GetFieldsCounters [07:42:06]wFMCommunicate request_size=4 [07:42:06]MH_SAM_APDU [07:42:06]CAPDU: 80 13 00 00 [07:42:06]Write to MH i2c: E2 08 00 A2 15 80 13 00 00 00 00 00 00 33 [07:42:06]Write i2c OK [07:42:06]MH_I2C_Read... [07:42:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:06]Read from MH i2c: E2 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 62 00 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 62 00 A2 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E2 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 8F [07:42:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E2 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:42:06]wFMCommunicate OK [07:42:06]SAM_PROTO_GetFieldsCounters done [07:42:06]requested_item shift.num is exist - process it [07:42:06]requested_item shift.opened is exist - process it [07:42:06]req_shift_opened [07:42:06]FM_GetShiftState [07:42:06]SAM_PROTO_GetShiftState [07:42:06]wFMCommunicate request_size=4 [07:42:06]MH_SAM_APDU [07:42:06]CAPDU: 80 13 01 00 [07:42:06]Write to MH i2c: E2 08 00 A3 15 80 13 01 00 00 00 00 00 35 [07:42:06]Write i2c OK [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 [07:42:06]MH_I2C_Read... [07:42:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:06]Read from MH i2c: E2 0E 00 [07:42:06]MH_I2C_Read... [07:42:06]Read from MH i2c: E2 0E 00 A3 15 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 84 [07:42:06]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:42:06]wFMCommunicate OK [07:42:06]SAM_PROTO_GetShiftState done [07:42:06]FM_GetShiftState done [07:42:06]req_shift_opened done [07:42:06]requested_item shift.open_date is exist - process it [07:42:06]req_shift_open_date [07:42:06]req_shift_open_date done [07:42:06]produce_requested_data done [07:42:06]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31714,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [07:42:06]process_action_free close_receipt [07:42:06]json_value_free [07:42:06]json_value_free done [07:42:06]process_json_proto returns [07:42:06]Send response to host [07:42:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31714,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [07:42:06]free response buf [07:42:06]execute_script done [07:42:06]execute_script returns [07:42:06]free content buf [07:42:06]Sock 7.Close socket [07:42:06]Sock 7.Thread stoped [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:03]accept exits with 9 [07:46:03]New connection [07:46:03]New thread 3066965348 created [07:46:03]Thread 3066821988 joined [07:46:03]Waiting for new connection... [07:46:03] Sock 9.Parse request [07:46:03]Sock 9.Check first char [07:46:03]Sock 9.First char is OK [07:46:03]request: POST /json_proto HTTP/1.0 [07:46:03]Method: POST [07:46:03]URL: /json_proto [07:46:03]Method is POST - this is cgi request [07:46:03]url: /json_proto [07:46:03]query_string will be loaded in cgi processing [07:46:03]execute_cgi json_proto POST (null) [07:46:03]execute_cgi path=json_proto method=POST [07:46:03]POST find Content-Length [07:46:03]Host: 172.17.39.68:8080 [07:46:03]Content-Length: 670 [07:46:03]Content-Type: application/json [07:46:03] [07:46:03]POST finish read [07:46:03]Found Content-Length = 670 [07:46:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214296", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:03]execute_script... [07:46: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)214296", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:46:03]POST & json_proto [07:46:03]process_json_proto [07:46:03]json parsed OK: [07:46:03]protocol is kg_v1.0 [07:46:03]action value=close_receipt [07:46:03]process_action close_receipt [07:46:03]cmd_close_receipt [07:46:03]MH_GetDate [07:46:03]Write to MH i2c: F0 00 00 A4 15 A8 [07:46:03]Write i2c OK [07:46:03]MH_I2C_Read... [07:46:03]Read from MH i2c: F0 [07:46:03]MH_I2C_Read... [07:46:03]Read from MH i2c: F0 09 00 [07:46:03]MH_I2C_Read... [07:46:03]Read from MH i2c: F0 09 00 A4 15 00 3F 25 96 66 D6 48 95 66 2A [07:46:03]GetLastDocTimeStamp 1721115725 [07:46:03]current date 1721115967 [07:46:03]FM_GetShiftState [07:46:03]SAM_PROTO_GetShiftState [07:46:03]wFMCommunicate request_size=4 [07:46:03]MH_SAM_APDU [07:46:03]CAPDU: 80 13 01 00 [07:46:03]Write to MH i2c: E2 08 00 A5 15 80 13 01 00 00 00 00 00 37 [07:46:03]Write i2c OK [07:46:03]MH_I2C_Read... [07:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:03]Read from MH i2c: E2 [07:46:03]MH_I2C_Read... [07:46:03]Read from MH i2c: E2 0E 00 [07:46:03]MH_I2C_Read... [07:46:03]Read from MH i2c: E2 0E 00 A5 15 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 86 [07:46:03]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:46:03]wFMCommunicate OK [07:46:03]SAM_PROTO_GetShiftState done [07:46:03]FM_GetShiftState done [07:46:03]opened in 1721088399 [07:46:03]opened+sec_in_day 1721174799 [07:46:03]quantity*price = 34000 [07:46:03]sum+1 = 34001 [07:46:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 НСП 1% : 3.01 НДС 12% : 36.11 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 34 16.07.2024 07:46 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31715 ФПД: 32982724695673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T074607&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31715&fm=32982724695673&tin=02508201610067®Number=0000000000098025&sum=34000 0 [07:46:04]StoreToDocumentArchive [07:46:04]shift 371 fd 31715 [07:46:04]save to /storage/0371/doc_00031715 [07:46:04]save last doc name /storage/0371/doc_00031715 to /storage/kkm_last_doc_name [07:46:04]save OK [07:46:04]Clear old archive folders... [07:46:04]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:46:04]tlvbuf is 01476110 [07:46:04]SAM_PROTO_ClearQueue [07:46:04]wFMCommunicate request_size=4 [07:46:04]MH_SAM_APDU [07:46:04]CAPDU: 80 09 00 00 [07:46:04]Write to MH i2c: E2 08 00 B2 15 80 09 00 00 00 00 00 00 39 [07:46:04]Write i2c OK [07:46:04]MH_I2C_Read... [07:46:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:46:05]Read from MH i2c: E2 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 03 00 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 03 00 B2 15 00 90 00 3B [07:46:05]RAPDU: 90 00 [07:46:05]wFMCommunicate OK [07:46:05]SAM_PROTO_ClearQueue done [07:46:05]KKMCreateOFDPacket [07:46:05]OFDProtocolAddRootSTLVToBuf [07:46:05]FM_MakeSignedData [07:46:05]FM_MakeSignedData [07:46:05]SAM_PROTO_SignData [07:46:05]wFMCommunicate request_size=4 [07:46:05]MH_SAM_APDU [07:46:05]CAPDU: 80 0D 01 02 [07:46:05]Write to MH i2c: E2 08 00 B3 15 80 0D 01 02 00 00 00 00 41 [07:46:05]Write i2c OK [07:46:05]MH_I2C_Read... [07:46:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:46:05]Read from MH i2c: E2 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 03 00 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 03 00 B3 15 00 90 00 3C [07:46:05]RAPDU: 90 00 [07:46:05]wFMCommunicate OK [07:46:05]wFMCommunicate request_size=255 [07:46:05]MH_SAM_APDU [07:46:05]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F 25 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 [07:46:05]Write to MH i2c: E2 02 01 B4 15 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F 25 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 00 00 DB [07:46:05]Write i2c OK [07:46:05]MH_I2C_Read... [07:46:05]OFD Sender: No OFD packet to send [07:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:05]Read from MH i2c: E2 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 03 00 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 03 00 B4 15 00 90 00 3D [07:46:05]RAPDU: 90 00 [07:46:05]wFMCommunicate OK [07:46:05]wFMCommunicate request_size=41 [07:46:05]MH_SAM_APDU [07:46:05]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E3 7B 00 00 35 04 06 00 1D FF 63 96 D6 79 [07:46:05]Write to MH i2c: E2 2C 00 B5 15 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E3 7B 00 00 35 04 06 00 1D FF 63 96 D6 79 00 00 DD [07:46:05]Write i2c OK [07:46:05]MH_I2C_Read... [07:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:46:05]Read from MH i2c: E2 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 03 00 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 03 00 B5 15 00 90 00 3E [07:46:05]RAPDU: 90 00 [07:46:05]wFMCommunicate OK [07:46:05]wFMCommunicate request_size=4 [07:46:05]MH_SAM_APDU [07:46:05]CAPDU: 80 0D 03 02 [07:46:05]Write to MH i2c: E2 08 00 B6 15 80 0D 03 02 00 00 00 00 46 [07:46:05]Write i2c OK [07:46:05]MH_I2C_Read... [07:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:46:05]Read from MH i2c: E2 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 0B 00 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 0B 00 B6 15 00 1A 82 67 A0 41 26 45 81 90 00 17 [07:46:05]RAPDU: 1A 82 67 A0 41 26 45 81 90 00 [07:46:05]wFMCommunicate OK [07:46:05]SAM_PROTO_SignData done [07:46:05]FM_MakeSignedData done [07:46:05]CreateOFDProtocolMessage [07:46:05]wFMCommunicate request_size=4 [07:46:05]MH_SAM_APDU [07:46:05]CAPDU: 80 11 00 00 [07:46:05]Write to MH i2c: E2 08 00 B7 15 80 11 00 00 00 00 00 00 46 [07:46:05]Write i2c OK [07:46:05]MH_I2C_Read... [07:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:05]Read from MH i2c: E2 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 17 00 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: E2 17 00 B7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A1 [07:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:46:05]wFMCommunicate OK [07:46:05]CreateOFDProtocolMessage done [07:46:05]OFDSenderStorePacket 31715 [07:46:05]StoreOFDPacket docnum=31715 [07:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 FF 9E 26 01 B3 1C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F 25 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E3 7B 00 00 35 04 06 00 1D FF 63 96 D6 79 1A 82 67 A0 41 26 45 81 [07:46:05]CheckFolder [07:46:05]dirname=/storage/ofd_packets [07:46:05]CheckFolder done [07:46:05]ProducePacketName [07:46:05]name=ofd_packets/00031715 [07:46:05]NVStorageSaveData ofd_packets/00031715 [07:46:05]File name is /storage/ofd_packets/00031715 [07:46:05]Write 332 bytes [07:46:05]NVStorageSaveData done [07:46:05]OFDSenderStorePacket done [07:46:05]KKMCreateOFDPacket done [07:46:05]NVStorageSaveData kkm_last_timestamp [07:46:05]File name is /storage/kkm_last_timestamp [07:46:05]Write 4 bytes [07:46:05]NVStorageSaveData done [07:46:05]ExternCall_PrintAddStr [07:46:05]wPrintStart [07:46:05]Write to MH i2c: 01 00 00 B8 15 CD [07:46:05]Write i2c OK [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: 01 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: 01 07 00 [07:46:05]MH_I2C_Read... [07:46:05]Read from MH i2c: 01 07 00 B8 15 00 00 00 00 00 FF 0F E2 [07:46:05]RasterBufferAndPrint [07:46:05]line Счет N : (3)214296 [07:46:05]line ИНН: 02508201610067 [07:46:05]line Контрольно-Кассовый Чек [07:46:05]line ПРОДАЖА [07:46:05]line Товар: 4700000480357 [07:46:05]line Пиво шахтерское 1л ПЭТ [07:46:05]line 2.000 * 170.00 [07:46:05]line = 340.00 [07:46:05]line НДС 12% НСП 1% [07:46:05]line > о реализуемом товаре [07:46:05]line ИТОГО: 340.00 [07:46:05]line НСП 1% : 3.01 [07:46:05]line НДС 12% : 36.11 [07:46:05]line Наличными: 340.00 [07:46:05]line Безнал.: 0.00 [07:46:05]line Место: АЗС № 140 "Партнер Нефть" [07:46:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:46:05]line СНО: Общий режим [07:46:05]line Чек 34 16.07.2024 07:46 [07:46:05]line Смена: 371 ФФД: 1.0 [07:46:05]line ЗНМ: 0300000189 [07:46:05]line РНМ: 0000000000098025 [07:46:05]line Версия ККМ: 001 [07:46:05]line ФМ: 0000000000965389 [07:46:05]line ФД: 31715 [07:46:05]line ФПД: 32982724695673 [07:46:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T074607&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31715&fm=32982724695673&tin=02508201610067®Number=0000000000098025&sum=34000 [07:46:05]line 0 [07:46:05]OFD Sender: Processing packet 31715 [packets to send 6, broken 5] [07:46:05]ProducePacketName [07:46:05]name=ofd_packets/00031715 [07:46:05]OFD Sender: To server: pG, [07:46:05]CommunicateWithHost lk.salyk.kg:30040 [07:46:05]ConnectInit lk.salyk.kg [07:46:05]written 0, free lines is 4095 [07:46:05]Connected sock=10 [07:46:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 FF 9E 26 01 B3 1C 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 3F 25 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E3 7B 00 00 35 04 06 00 1D FF 63 96 D6 79 1A 82 67 A0 41 26 45 81 [07:46:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 87 62 47 00 D4 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 35 33 38 39 10 04 04 00 E3 7B 00 00 F4 03 04 00 4D D1 95 66 B6 04 01 00 00 D1 32 C7 74 4C 62 8D 0A [07:46:06]CommunicateWithHost err = 0 [07:46:06]CheckOFDResponse [07:46:06]1017 (14) - 77093643461234 [07:46:06]1041 (16) - 0000000000965389 [07:46:06]1040 (4) - 31715 [07:46:06]1012 (4) - 16.07.2024 01:47 [07:46:06]1206 (1) - 0 [07:46:06]OFD Sender: Remove packet 31715 [07:46:06]ProducePacketName [07:46:06]name=ofd_packets/00031715 [07:46:06]NVStorageDeleteData [07:46:06]Write to MH i2c: 01 00 00 E0 15 F5 [07:46:06]Write i2c OK [07:46:06]MH_I2C_Read... [07:46:06]Read from MH i2c: 01 [07:46:06]MH_I2C_Read... [07:46:06]Read from MH i2c: 01 07 00 [07:46:06]MH_I2C_Read... [07:46:06]Read from MH i2c: 01 07 00 E0 15 00 00 00 00 00 FD 0C 05 [07:46:06]RasterBufferAndPrint [07:46:06]line [07:46:06]line [07:46:06]line [07:46:06]line [07:46:06]line [07:46:06]written 0, free lines is 3332 [07:46:06]MH_Cut [07:46:06]Write to MH i2c: D1 01 00 E7 15 01 CE [07:46:06]Write i2c OK [07:46:06]MH_I2C_Read... [07:46:06]Read from MH i2c: D1 [07:46:06]MH_I2C_Read... [07:46:06]Read from MH i2c: D1 01 00 [07:46:06]MH_I2C_Read... [07:46:06]Read from MH i2c: D1 01 00 E7 15 00 CD [07:46:06]Write to MH i2c: 01 00 00 E8 15 FD [07:46:06]Write i2c OK [07:46:06]MH_I2C_Read... [07:46:06]OFD Sender: No OFD packet to send [07:46:07]*** Cut start [07:46:07]*** Partial cut [07:46:07]*** CUTSNS_PIN = 1 [07:46:07]*** CUTSNS_PIN = 0 [07:46:07]*** Brake cut motor [07:46:07]Read from MH i2c: 01 [07:46:07]MH_I2C_Read... [07:46:07]*** Stop cut motor [07:46:07]*** Cut end [07:46:07]Read from MH i2c: 01 07 00 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: 01 07 00 E8 15 00 00 00 00 00 FF 0F 12 [07:46:07]process_action close_receipt done [07:46:07]requested_data is exist [07:46:07]produce_requested_data [07:46:07]requested_item fm.sn is exist - process it [07:46:07]wFMCommunicate request_size=4 [07:46:07]MH_SAM_APDU [07:46:07]CAPDU: 80 11 00 00 [07:46:07]Write to MH i2c: E2 08 00 E9 15 80 11 00 00 00 00 00 00 78 [07:46:07]Write i2c OK [07:46:07]MH_I2C_Read... [07:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:46:07]Read from MH i2c: E2 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: E2 17 00 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: E2 17 00 E9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D3 [07:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:46:07]wFMCommunicate OK [07:46:07]requested_item fd.num is exist - process it [07:46:07]SAM_PROTO_GetFieldsCounters [07:46:07]wFMCommunicate request_size=4 [07:46:07]MH_SAM_APDU [07:46:07]CAPDU: 80 13 00 00 [07:46:07]Write to MH i2c: E2 08 00 EA 15 80 13 00 00 00 00 00 00 7B [07:46:07]Write i2c OK [07:46:07]MH_I2C_Read... [07:46:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:46:07]Read from MH i2c: E2 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: E2 62 00 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: E2 62 00 EA 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E3 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [07:46:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E3 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:46:07]wFMCommunicate OK [07:46:07]SAM_PROTO_GetFieldsCounters done [07:46:07]requested_item shift.num is exist - process it [07:46:07]requested_item shift.opened is exist - process it [07:46:07]req_shift_opened [07:46:07]FM_GetShiftState [07:46:07]SAM_PROTO_GetShiftState [07:46:07]wFMCommunicate request_size=4 [07:46:07]MH_SAM_APDU [07:46:07]CAPDU: 80 13 01 00 [07:46:07]Write to MH i2c: E2 08 00 EB 15 80 13 01 00 00 00 00 00 7D [07:46:07]Write i2c OK [07:46:07]MH_I2C_Read... [07:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:46:07]Read from MH i2c: E2 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: E2 0E 00 [07:46:07]MH_I2C_Read... [07:46:07]Read from MH i2c: E2 0E 00 EB 15 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 CC [07:46:07]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:46:07]wFMCommunicate OK [07:46:07]SAM_PROTO_GetShiftState done [07:46:07]FM_GetShiftState done [07:46:07]req_shift_opened done [07:46:07]requested_item shift.open_date is exist - process it [07:46:07]req_shift_open_date [07:46:07]req_shift_open_date done [07:46:07]produce_requested_data done [07:46:07]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31715,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [07:46:07]process_action_free close_receipt [07:46:07]json_value_free [07:46:07]json_value_free done [07:46:07]process_json_proto returns [07:46:07]Send response to host [07:46:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31715,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [07:46:07]free response buf [07:46:07]execute_script done [07:46:07]execute_script returns [07:46:07]free content buf [07:46:07]Sock 9.Close socket [07:46:07]Sock 9.Thread stoped [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50:36]OFD Sender: No OFD packet to send [07:50:41]OFD Sender: No OFD packet to send [07:50:46]OFD Sender: No OFD packet to send [07:50:51]OFD Sender: No OFD packet to send [07:50:56]OFD Sender: No OFD packet to send [07:51:01]OFD Sender: No OFD packet to send [07:51:06]OFD Sender: No OFD packet to send [07:51:11]OFD Sender: No OFD packet to send [07:51:16]OFD Sender: No OFD packet to send [07:51:21]OFD Sender: No OFD packet to send [07:51:26]OFD Sender: No OFD packet to send [07:51:31]OFD Sender: No OFD packet to send [07:51:36]OFD Sender: No OFD packet to send [07:51:41]OFD Sender: No OFD packet to send [07:51:46]accept exits with 7 [07:51:46]New connection [07:51:46]New thread 3066821988 created [07:51:46]Thread 3066965348 joined [07:51:46]Waiting for new connection... [07:51:46] Sock 7.Parse request [07:51:46]Sock 7.Check first char [07:51:46]Sock 7.First char is OK [07:51:46]request: POST /json_proto HTTP/1.0 [07:51:46]Method: POST [07:51:46]URL: /json_proto [07:51:46]Method is POST - this is cgi request [07:51:46]url: /json_proto [07:51:46]query_string will be loaded in cgi processing [07:51:46]execute_cgi json_proto POST (null) [07:51:46]execute_cgi path=json_proto method=POST [07:51:46]POST find Content-Length [07:51:46]Host: 172.17.39.68:8080 [07:51:46]Content-Length: 623 [07:51:46]Content-Type: application/json [07:51:46] [07:51:46]POST finish read [07:51:46]Found Content-Length = 623 [07:51:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214297", "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" ] } } [07:51:46]execute_script... [07:51: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)214297", "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" ] } } [07:51:46]POST & json_proto [07:51:46]process_json_proto [07:51:46]json parsed OK: [07:51:46]protocol is kg_v1.0 [07:51:46]action value=close_receipt [07:51:46]process_action close_receipt [07:51:46]cmd_close_receipt [07:51:46]MH_GetDate [07:51:46]Write to MH i2c: F0 00 00 EC 15 F0 [07:51:46]Write i2c OK [07:51:46]MH_I2C_Read... [07:51:46]Read from MH i2c: F0 [07:51:46]MH_I2C_Read... [07:51:46]Read from MH i2c: F0 09 00 [07:51:46]MH_I2C_Read... [07:51:46]Read from MH i2c: F0 09 00 EC 15 00 96 26 96 66 D6 48 95 66 CA [07:51:46]GetLastDocTimeStamp 1721115967 [07:51:46]current date 1721116310 [07:51:46]FM_GetShiftState [07:51:46]SAM_PROTO_GetShiftState [07:51:46]wFMCommunicate request_size=4 [07:51:46]MH_SAM_APDU [07:51:46]CAPDU: 80 13 01 00 [07:51:46]Write to MH i2c: E2 08 00 ED 15 80 13 01 00 00 00 00 00 7F [07:51:46]Write i2c OK [07:51:46]MH_I2C_Read... [07:51:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:46]Read from MH i2c: E2 [07:51:46]MH_I2C_Read... [07:51:46]Read from MH i2c: E2 0E 00 [07:51:46]MH_I2C_Read... [07:51:46]Read from MH i2c: E2 0E 00 ED 15 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 CE [07:51:46]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:51:46]wFMCommunicate OK [07:51:46]SAM_PROTO_GetShiftState done [07:51:46]FM_GetShiftState done [07:51:46]opened in 1721088399 [07:51:46]opened+sec_in_day 1721174799 [07:51:46]quantity*price = 14000 [07:51:46]sum+1 = 14001 [07:51:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 35 16.07.2024 07:51 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31716 ФПД: 264683254765769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T075150&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31716&fm=264683254765769&tin=02508201610067®Number=0000000000098025&sum=14000 0 [07:51:47]StoreToDocumentArchive [07:51:47]shift 371 fd 31716 [07:51:47]save to /storage/0371/doc_00031716 [07:51:47]save last doc name /storage/0371/doc_00031716 to /storage/kkm_last_doc_name [07:51:47]save OK [07:51:47]Clear old archive folders... [07:51:47]ProcessDocumentItem done err = 0, tmpTLVsize=275 [07:51:47]tlvbuf is 0149BAF0 [07:51:47]SAM_PROTO_ClearQueue [07:51:47]wFMCommunicate request_size=4 [07:51:47]MH_SAM_APDU [07:51:47]CAPDU: 80 09 00 00 [07:51:47]Write to MH i2c: E2 08 00 FA 15 80 09 00 00 00 00 00 00 81 [07:51:47]Write i2c OK [07:51:47]MH_I2C_Read... [07:51:47]Read from MH i2c: E2 [07:51:47]MH_I2C_Read... [07:51:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:47]Read from MH i2c: E2 03 00 [07:51:47]MH_I2C_Read... [07:51:47]Read from MH i2c: E2 03 00 FA 15 00 90 00 83 [07:51:47]RAPDU: 90 00 [07:51:47]wFMCommunicate OK [07:51:47]SAM_PROTO_ClearQueue done [07:51:47]KKMCreateOFDPacket [07:51:47]OFDProtocolAddRootSTLVToBuf [07:51:47]FM_MakeSignedData [07:51:47]FM_MakeSignedData [07:51:47]SAM_PROTO_SignData [07:51:47]wFMCommunicate request_size=4 [07:51:47]MH_SAM_APDU [07:51:47]CAPDU: 80 0D 01 02 [07:51:47]Write to MH i2c: E2 08 00 FB 15 80 0D 01 02 00 00 00 00 89 [07:51:47]Write i2c OK [07:51:47]MH_I2C_Read... [07:51:47]Read from MH i2c: E2 [07:51:47]MH_I2C_Read... [07:51:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:47]Read from MH i2c: E2 03 00 [07:51:47]MH_I2C_Read... [07:51:47]Read from MH i2c: E2 03 00 FB 15 00 90 00 84 [07:51:47]RAPDU: 90 00 [07:51:47]wFMCommunicate OK [07:51:47]wFMCommunicate request_size=255 [07:51:47]MH_SAM_APDU [07:51: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 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 23 00 00 00 F4 03 04 00 96 26 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [07:51:47]Write to MH i2c: E2 02 01 FC 15 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 23 00 00 00 F4 03 04 00 96 26 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 67 [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:48]Read from MH i2c: E2 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 FC 15 00 90 00 85 [07:51:48]RAPDU: 90 00 [07:51:48]wFMCommunicate OK [07:51:48]wFMCommunicate request_size=34 [07:51:48]MH_SAM_APDU [07:51:48]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E4 7B 00 00 35 04 06 00 F0 BA 5F 60 D8 C9 [07:51:48]Write to MH i2c: E2 25 00 FD 15 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E4 7B 00 00 35 04 06 00 F0 BA 5F 60 D8 C9 00 00 BE [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:48]Read from MH i2c: E2 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 03 00 FD 15 00 90 00 86 [07:51:48]RAPDU: 90 00 [07:51:48]wFMCommunicate OK [07:51:48]wFMCommunicate request_size=4 [07:51:48]MH_SAM_APDU [07:51:48]CAPDU: 80 0D 03 02 [07:51:48]Write to MH i2c: E2 08 00 FE 15 80 0D 03 02 00 00 00 00 8E [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:48]Read from MH i2c: E2 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 0B 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 0B 00 FE 15 00 FB B1 E9 C8 F4 28 60 19 90 00 81 [07:51:48]RAPDU: FB B1 E9 C8 F4 28 60 19 90 00 [07:51:48]wFMCommunicate OK [07:51:48]SAM_PROTO_SignData done [07:51:48]FM_MakeSignedData done [07:51:48]CreateOFDProtocolMessage [07:51:48]wFMCommunicate request_size=4 [07:51:48]MH_SAM_APDU [07:51:48]CAPDU: 80 11 00 00 [07:51:48]Write to MH i2c: E2 08 00 FF 15 80 11 00 00 00 00 00 00 8E [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:48]Read from MH i2c: E2 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 17 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: E2 17 00 FF 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E9 [07:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:51:48]wFMCommunicate OK [07:51:48]CreateOFDProtocolMessage done [07:51:48]OFDSenderStorePacket 31716 [07:51:48]StoreOFDPacket docnum=31716 [07:51:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 3B 55 1F 01 AD B9 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 23 00 00 00 F4 03 04 00 96 26 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E4 7B 00 00 35 04 06 00 F0 BA 5F 60 D8 C9 FB B1 E9 C8 F4 28 60 19 [07:51:48]CheckFolder [07:51:48]dirname=/storage/ofd_packets [07:51:48]CheckFolder done [07:51:48]ProducePacketName [07:51:48]name=ofd_packets/00031716 [07:51:48]NVStorageSaveData ofd_packets/00031716 [07:51:48]File name is /storage/ofd_packets/00031716 [07:51:48]Write 325 bytes [07:51:48]NVStorageSaveData done [07:51:48]OFDSenderStorePacket done [07:51:48]KKMCreateOFDPacket done [07:51:48]NVStorageSaveData kkm_last_timestamp [07:51:48]File name is /storage/kkm_last_timestamp [07:51:48]Write 4 bytes [07:51:48]NVStorageSaveData done [07:51:48]ExternCall_PrintAddStr [07:51:48]wPrintStart [07:51:48]Write to MH i2c: 01 00 00 00 16 16 [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: 01 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: 01 07 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: 01 07 00 00 16 00 00 00 00 00 FF 0F 2B [07:51:48]RasterBufferAndPrint [07:51:48]line Счет N : (3)214297 [07:51:48]line ИНН: 02508201610067 [07:51:48]line Контрольно-Кассовый Чек [07:51:48]line ПРОДАЖА [07:51:48]line Товар: 48743587 [07:51:48]line Сигареты Winston XStyle Silver [07:51:48]line 1.000 * 140.00 [07:51:48]line = 140.00 [07:51:48]line НДС 12% НСП 1% [07:51:48]line > о реализуемом товаре [07:51:48]line ИТОГО: 140.00 [07:51:48]line НСП 1% : 1.24 [07:51:48]line НДС 12% : 14.87 [07:51:48]line Наличными: 140.00 [07:51:48]line Безнал.: 0.00 [07:51:48]line Место: АЗС № 140 "Партнер Нефть" [07:51:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [07:51:48]line СНО: Общий режим [07:51:48]line Чек 35 16.07.2024 07:51 [07:51:48]line Смена: 371 ФФД: 1.0 [07:51:48]line ЗНМ: 0300000189 [07:51:48]line РНМ: 0000000000098025 [07:51:48]line Версия ККМ: 001 [07:51:48]line ФМ: 0000000000965389 [07:51:48]line ФД: 31716 [07:51:48]line ФПД: 264683254765769 [07:51:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T075150&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31716&fm=264683254765769&tin=02508201610067®Number=0000000000098025&sum=14000 [07:51:48]line 0 [07:51:48]written 0, free lines is 4095 [07:51:48]OFD Sender: Processing packet 31716 [packets to send 6, broken 5] [07:51:48]ProducePacketName [07:51:48]name=ofd_packets/00031716 [07:51:48]OFD Sender: To server: pG, [07:51:48]CommunicateWithHost lk.salyk.kg:30040 [07:51:48]ConnectInit lk.salyk.kg [07:51:48]Connected sock=10 [07:51:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 3B 55 1F 01 AD B9 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 23 00 00 00 F4 03 04 00 96 26 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E4 7B 00 00 35 04 06 00 F0 BA 5F 60 D8 C9 FB B1 E9 C8 F4 28 60 19 [07:51:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 A3 BC 47 00 9C E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E4 7B 00 00 F4 03 04 00 A3 D2 95 66 B6 04 01 00 00 7F 50 C5 CA 5E 98 BC F0 [07:51:48]CommunicateWithHost err = 0 [07:51:48]CheckOFDResponse [07:51:48]1017 (14) - 77093643461234 [07:51:48]1041 (16) - 0000000000965389 [07:51:48]1040 (4) - 31716 [07:51:48]1012 (4) - 16.07.2024 01:53 [07:51:48]1206 (1) - 0 [07:51:48]OFD Sender: Remove packet 31716 [07:51:48]ProducePacketName [07:51:48]name=ofd_packets/00031716 [07:51:48]NVStorageDeleteData [07:51:48]Write to MH i2c: 01 00 00 29 16 3F [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: 01 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: 01 07 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: 01 07 00 29 16 00 00 00 00 00 F1 0C 43 [07:51:48]RasterBufferAndPrint [07:51:48]line [07:51:48]line [07:51:48]line [07:51:48]line [07:51:48]line [07:51:48]written 0, free lines is 3319 [07:51:48]MH_Cut [07:51:48]Write to MH i2c: D1 01 00 30 16 01 18 [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: D1 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: D1 01 00 [07:51:48]MH_I2C_Read... [07:51:48]Read from MH i2c: D1 01 00 30 16 00 17 [07:51:48]Write to MH i2c: 01 00 00 31 16 47 [07:51:48]Write i2c OK [07:51:48]MH_I2C_Read... [07:51:49]OFD Sender: No OFD packet to send [07:51:49]*** Cut start [07:51:49]*** Partial cut [07:51:49]*** CUTSNS_PIN = 1 [07:51:49]*** CUTSNS_PIN = 0 [07:51:49]*** Brake cut motor [07:51:50]Read from MH i2c: 01 [07:51:50]MH_I2C_Read... [07:51:50]*** Stop cut motor [07:51:50]*** Cut end [07:51:50]Read from MH i2c: 01 07 00 [07:51:50]MH_I2C_Read... [07:51:50]Read from MH i2c: 01 07 00 31 16 00 00 00 00 00 FF 0F 5C [07:51:50]process_action close_receipt done [07:51:50]requested_data is exist [07:51:50]produce_requested_data [07:51:50]requested_item fm.sn is exist - process it [07:51:50]wFMCommunicate request_size=4 [07:51:50]MH_SAM_APDU [07:51:50]CAPDU: 80 11 00 00 [07:51:50]Write to MH i2c: E2 08 00 32 16 80 11 00 00 00 00 00 00 C2 [07:51:50]Write i2c OK [07:51:50]MH_I2C_Read... [07:51:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:50]Read from MH i2c: E2 [07:51:50]MH_I2C_Read... [07:51:50]Read from MH i2c: E2 17 00 [07:51:50]MH_I2C_Read... [07:51:50]Read from MH i2c: E2 17 00 32 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1D [07:51:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [07:51:50]wFMCommunicate OK [07:51:50]requested_item fd.num is exist - process it [07:51:50]SAM_PROTO_GetFieldsCounters [07:51:50]wFMCommunicate request_size=4 [07:51:50]MH_SAM_APDU [07:51:50]CAPDU: 80 13 00 00 [07:51:50]Write to MH i2c: E2 08 00 33 16 80 13 00 00 00 00 00 00 C5 [07:51:50]Write i2c OK [07:51:50]MH_I2C_Read... [07:51:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:50]Read from MH i2c: E2 [07:51:50]MH_I2C_Read... [07:51:50]Read from MH i2c: E2 62 00 [07:51:50]MH_I2C_Read... [07:51:50]Read from MH i2c: E2 62 00 33 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E4 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [07:51: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E4 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:51:50]wFMCommunicate OK [07:51:50]SAM_PROTO_GetFieldsCounters done [07:51:50]requested_item shift.num is exist - process it [07:51:50]requested_item shift.opened is exist - process it [07:51:50]req_shift_opened [07:51:50]FM_GetShiftState [07:51:50]SAM_PROTO_GetShiftState [07:51:50]wFMCommunicate request_size=4 [07:51:50]MH_SAM_APDU [07:51:50]CAPDU: 80 13 01 00 [07:51:50]Write to MH i2c: E2 08 00 34 16 80 13 01 00 00 00 00 00 C7 [07:51:50]Write i2c OK [07:51:50]MH_I2C_Read... [07:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:50]Read from MH i2c: E2 [07:51:50]MH_I2C_Read... [07:51:50]Read from MH i2c: E2 0E 00 [07:51:50]MH_I2C_Read... [07:51:50]Read from MH i2c: E2 0E 00 34 16 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 16 [07:51:50]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [07:51:50]wFMCommunicate OK [07:51:50]SAM_PROTO_GetShiftState done [07:51:50]FM_GetShiftState done [07:51:50]req_shift_opened done [07:51:50]requested_item shift.open_date is exist - process it [07:51:50]req_shift_open_date [07:51:50]req_shift_open_date done [07:51:50]produce_requested_data done [07:51:50]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31716,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [07:51:50]process_action_free close_receipt [07:51:50]json_value_free [07:51:50]json_value_free done [07:51:50]process_json_proto returns [07:51:50]Send response to host [07:51:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31716,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [07:51:50]free response buf [07:51:50]execute_script done [07:51:50]execute_script returns [07:51:50]free content buf [07:51:50]Sock 7.Close socket [07:51:50]Sock 7.Thread stoped [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:04]OFD Sender: No OFD packet to send [07:52:09]OFD Sender: No OFD packet to send [07:52:14]OFD Sender: No OFD packet to send [07:52:19]OFD Sender: No OFD packet to send [07:52:24]OFD Sender: No OFD packet to send [07:52:29]OFD Sender: No OFD packet to send [07:52:34]OFD Sender: No OFD packet to send [07:52:39]OFD Sender: No OFD packet to send [07:52:44]OFD Sender: No OFD packet to send [07:52:49]OFD Sender: No OFD packet to send [07:52:54]OFD Sender: No OFD packet to send [07:52:59]OFD Sender: No OFD packet to send [07:53:04]OFD Sender: No OFD packet to send [07:53:09]OFD Sender: No OFD packet to send [07:53:14]OFD Sender: No OFD packet to send [07:53:19]OFD Sender: No OFD packet to send [07:53:24]OFD Sender: No OFD packet to send [07:53:29]OFD Sender: No OFD packet to send [07:53:34]OFD Sender: No OFD packet to send [07:53:39]OFD Sender: No OFD packet to send [07:53:44]OFD Sender: No OFD packet to send [07:53:49]OFD Sender: No OFD packet to send [07:53:54]OFD Sender: No OFD packet to send [07:53:59]OFD Sender: No OFD packet to send [07:54:04]OFD Sender: No OFD packet to send [07:54:09]OFD Sender: No OFD packet to send [07:54:14]OFD Sender: No OFD packet to send [07:54:19]OFD Sender: No OFD packet to send [07:54:24]OFD Sender: No OFD packet to send [07:54:29]OFD Sender: No OFD packet to send [07:54:34]OFD Sender: No OFD packet to send [07:54:39]OFD Sender: No OFD packet to send [07:54:44]OFD Sender: No OFD packet to send [07:54:49]OFD Sender: No OFD packet to send [07:54:54]OFD Sender: No OFD packet to send [07:54:59]OFD Sender: No OFD packet to send [07:55:04]OFD Sender: No OFD packet to send [07:55:09]OFD Sender: No OFD packet to send [07:55:14]OFD Sender: No OFD packet to send [07:55:19]OFD Sender: No OFD packet to send [07:55:24]OFD Sender: No OFD packet to send [07:55:29]OFD Sender: No OFD packet to send [07:55:34]OFD Sender: No OFD packet to send [07:55:39]OFD Sender: No OFD packet to send [07:55:44]OFD Sender: No OFD packet to send [07:55:49]OFD Sender: No OFD packet to send [07:55:54]OFD Sender: No OFD packet to send [07:55:59]OFD Sender: No OFD packet to send [07:56:04]OFD Sender: No OFD packet to send [07:56:09]OFD Sender: No OFD packet to send [07:56:14]OFD Sender: No OFD packet to send [07:56:19]OFD Sender: No OFD packet to send [07:56:24]OFD Sender: No OFD packet to send [07:56:29]OFD Sender: No OFD packet to send [07:56:34]OFD Sender: No OFD packet to send [07:56:39]OFD Sender: No OFD packet to send [07:56:44]OFD Sender: No OFD packet to send [07:56:49]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:39]OFD Sender: No OFD packet to send [07:57:44]OFD Sender: No OFD packet to send [07:57:49]OFD Sender: No OFD packet to send [07:57:54]OFD Sender: No OFD packet to send [07:57:59]OFD Sender: No OFD packet to send [07:58:04]OFD Sender: No OFD packet to send [07:58:09]OFD Sender: No OFD packet to send [07:58:14]OFD Sender: No OFD packet to send [07:58:19]OFD Sender: No OFD packet to send [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:39]OFD Sender: No OFD packet to send [07:59:44]OFD Sender: No OFD packet to send [07:59:49]OFD Sender: No OFD packet to send [07:59:54]OFD Sender: No OFD packet to send [07:59:59]OFD Sender: No OFD packet to send [08:00:04]OFD Sender: No OFD packet to send [08:00:09]OFD Sender: No OFD packet to send [08:00:14]OFD Sender: No OFD packet to send [08:00:19]OFD Sender: No OFD packet to send [08:00:24]OFD Sender: No OFD packet to send [08:00:29]OFD Sender: No OFD packet to send [08:00:34]OFD Sender: No OFD packet to send [08:00:39]OFD Sender: No OFD packet to send [08:00:44]OFD Sender: No OFD packet to send [08:00:49]OFD Sender: No OFD packet to send [08:00:54]OFD Sender: No OFD packet to send [08:00:59]OFD Sender: No OFD packet to send [08:01:04]OFD Sender: No OFD packet to send [08:01:09]OFD Sender: No OFD packet to send [08:01:14]OFD Sender: No OFD packet to send [08:01:19]OFD Sender: No OFD packet to send [08:01:24]OFD Sender: No OFD packet to send [08:01:29]OFD Sender: No OFD packet to send [08:01:34]OFD Sender: No OFD packet to send [08:01:39]OFD Sender: No OFD packet to send [08:01:44]OFD Sender: No OFD packet to send [08:01:49]OFD Sender: No OFD packet to send [08:01:54]OFD Sender: No OFD packet to send [08:01:59]OFD Sender: No OFD packet to send [08:02:04]OFD Sender: No OFD packet to send [08:02:09]OFD Sender: No OFD packet to send [08:02:14]OFD Sender: No OFD packet to send [08:02:19]OFD Sender: No OFD packet to send [08:02:24]OFD Sender: No OFD packet to send [08:02:29]OFD Sender: No OFD packet to send [08:02:34]OFD Sender: No OFD packet to send [08:02:39]OFD Sender: No OFD packet to send [08:02:44]OFD Sender: No OFD packet to send [08:02:49]OFD Sender: No OFD packet to send [08:02:54]OFD Sender: No OFD packet to send [08:02:59]OFD Sender: No OFD packet to send [08:03:04]OFD Sender: No OFD packet to send [08:03:09]OFD Sender: No OFD packet to send [08:03:14]OFD Sender: No OFD packet to send [08:03:19]OFD Sender: No OFD packet to send [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04:24]OFD Sender: No OFD packet to send [08:04:29]OFD Sender: No OFD packet to send [08:04:34]OFD Sender: No OFD packet to send [08:04:39]OFD Sender: No OFD packet to send [08:04:44]OFD Sender: No OFD packet to send [08:04:49]OFD Sender: No OFD packet to send [08:04:54]OFD Sender: No OFD packet to send [08:04:59]OFD Sender: No OFD packet to send [08:05:04]OFD Sender: No OFD packet to send [08:05:09]OFD Sender: No OFD packet to send [08:05:14]OFD Sender: No OFD packet to send [08:05:19]OFD Sender: No OFD packet to send [08:05:24]OFD Sender: No OFD packet to send [08:05:29]OFD Sender: No OFD packet to send [08:05:34]OFD Sender: No OFD packet to send [08:05:39]OFD Sender: No OFD packet to send [08:05:44]OFD Sender: No OFD packet to send [08:05:49]OFD Sender: No OFD packet to send [08:05:54]OFD Sender: No OFD packet to send [08:05:59]OFD Sender: No OFD packet to send [08:06:04]OFD Sender: No OFD packet to send [08:06:09]OFD Sender: No OFD packet to send [08:06:14]OFD Sender: No OFD packet to send [08:06:19]OFD Sender: No OFD packet to send [08:06:24]OFD Sender: No OFD packet to send [08:06:29]OFD Sender: No OFD packet to send [08:06:34]OFD Sender: No OFD packet to send [08:06:39]OFD Sender: No OFD packet to send [08:06:44]OFD Sender: No OFD packet to send [08:06:49]OFD Sender: No OFD packet to send [08:06:54]OFD Sender: No OFD packet to send [08:06:59]OFD Sender: No OFD packet to send [08:07:04]OFD Sender: No OFD packet to send [08:07:09]OFD Sender: No OFD packet to send [08:07:14]OFD Sender: No OFD packet to send [08:07:19]OFD Sender: No OFD packet to send [08:07:24]OFD Sender: No OFD packet to send [08:07:29]OFD Sender: No OFD packet to send [08:07:34]OFD Sender: No OFD packet to send [08:07:39]OFD Sender: No OFD packet to send [08:07:44]OFD Sender: No OFD packet to send [08:07:49]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08:55]OFD Sender: No OFD packet to send [08:09:00]OFD Sender: No OFD packet to send [08:09:05]OFD Sender: No OFD packet to send [08:09:10]OFD Sender: No OFD packet to send [08:09:15]OFD Sender: No OFD packet to send [08:09:20]OFD Sender: No OFD packet to send [08:09:25]OFD Sender: No OFD packet to send [08:09:30]OFD Sender: No OFD packet to send [08:09:35]OFD Sender: No OFD packet to send [08:09:40]OFD Sender: No OFD packet to send [08:09:45]OFD Sender: No OFD packet to send [08:09:50]OFD Sender: No OFD packet to send [08:09:55]OFD Sender: No OFD packet to send [08:10:00]OFD Sender: No OFD packet to send [08:10:05]OFD Sender: No OFD packet to send [08:10:10]OFD Sender: No OFD packet to send [08:10:15]OFD Sender: No OFD packet to send [08:10:20]OFD Sender: No OFD packet to send [08:10:25]OFD Sender: No OFD packet to send [08:10:30]OFD Sender: No OFD packet to send [08:10:35]OFD Sender: No OFD packet to send [08:10:40]OFD Sender: No OFD packet to send [08:10:45]OFD Sender: No OFD packet to send [08:10:50]OFD Sender: No OFD packet to send [08:10:55]OFD Sender: No OFD packet to send [08:11:00]OFD Sender: No OFD packet to send [08:11:05]OFD Sender: No OFD packet to send [08:11:10]OFD Sender: No OFD packet to send [08:11:15]OFD Sender: No OFD packet to send [08:11:20]OFD Sender: No OFD packet to send [08:11:25]OFD Sender: No OFD packet to send [08:11:30]OFD Sender: No OFD packet to send [08:11:35]OFD Sender: No OFD packet to send [08:11:40]OFD Sender: No OFD packet to send [08:11:45]OFD Sender: No OFD packet to send [08:11:50]OFD Sender: No OFD packet to send [08:11:55]OFD Sender: No OFD packet to send [08:12:00]OFD Sender: No OFD packet to send [08:12:05]OFD Sender: No OFD packet to send [08:12:10]OFD Sender: No OFD packet to send [08:12:15]OFD Sender: No OFD packet to send [08:12:20]OFD Sender: No OFD packet to send [08:12:25]OFD Sender: No OFD packet to send [08:12:30]OFD Sender: No OFD packet to send [08:12:35]OFD Sender: No OFD packet to send [08:12:40]OFD Sender: No OFD packet to send [08:12:45]OFD Sender: No OFD packet to send [08:12:50]OFD Sender: No OFD packet to send [08:12:55]OFD Sender: No OFD packet to send [08:13:00]OFD Sender: No OFD packet to send [08:13:05]OFD Sender: No OFD packet to send [08:13:10]OFD Sender: No OFD packet to send [08:13:15]OFD Sender: No OFD packet to send [08:13:20]OFD Sender: No OFD packet to send [08:13:25]OFD Sender: No OFD packet to send [08:13:30]OFD Sender: No OFD packet to send [08:13:35]OFD Sender: No OFD packet to send [08:13:40]OFD Sender: No OFD packet to send [08:13:45]OFD Sender: No OFD packet to send [08:13:50]OFD Sender: No OFD packet to send [08:13:55]OFD Sender: No OFD packet to send [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:15:56]accept exits with 9 [08:15:56]New connection [08:15:56]New thread 3066965348 created [08:15:56]Thread 3066821988 joined [08:15:56]Waiting for new connection... [08:15:56] Sock 9.Parse request [08:15:56]Sock 9.Check first char [08:15:56]Sock 9.First char is OK [08:15:56]request: POST /json_proto HTTP/1.0 [08:15:56]Method: POST [08:15:56]URL: /json_proto [08:15:56]Method is POST - this is cgi request [08:15:56]url: /json_proto [08:15:56]query_string will be loaded in cgi processing [08:15:56]execute_cgi json_proto POST (null) [08:15:56]execute_cgi path=json_proto method=POST [08:15:56]POST find Content-Length [08:15:56]Host: 172.17.39.68:8080 [08:15:56]Content-Length: 626 [08:15:56]Content-Type: application/json [08:15:56] [08:15:56]POST finish read [08:15:56]Found Content-Length = 626 [08:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214298", "tax_sys" : 0, "items" : [ { "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact 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:15:56]execute_script... [08: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 : (3)214298", "tax_sys" : 0, "items" : [ { "code": "48743389", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B BOND STREET compact 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:15:56]POST & json_proto [08:15:56]process_json_proto [08:15:56]json parsed OK: [08:15:56]protocol is kg_v1.0 [08:15:56]action value=close_receipt [08:15:56]process_action close_receipt [08:15:56]cmd_close_receipt [08:15:56]MH_GetDate [08:15:56]Write to MH i2c: F0 00 00 35 16 3A [08:15:56]Write i2c OK [08:15:56]MH_I2C_Read... [08:15:56]Read from MH i2c: F0 [08:15:56]MH_I2C_Read... [08:15:56]Read from MH i2c: F0 09 00 [08:15:56]MH_I2C_Read... [08:15:56]Read from MH i2c: F0 09 00 35 16 00 40 2C 96 66 D6 48 95 66 C4 [08:15:56]GetLastDocTimeStamp 1721116310 [08:15:56]current date 1721117760 [08:15:56]FM_GetShiftState [08:15:56]SAM_PROTO_GetShiftState [08:15:56]wFMCommunicate request_size=4 [08:15:56]MH_SAM_APDU [08:15:56]CAPDU: 80 13 01 00 [08:15:56]Write to MH i2c: E2 08 00 36 16 80 13 01 00 00 00 00 00 C9 [08:15:56]Write i2c OK [08:15:56]MH_I2C_Read... [08:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:15:56]Read from MH i2c: E2 [08:15:56]MH_I2C_Read... [08:15:56]Read from MH i2c: E2 0E 00 [08:15:56]MH_I2C_Read... [08:15:56]Read from MH i2c: E2 0E 00 36 16 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 18 [08:15:56]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [08:15:56]wFMCommunicate OK [08:15:56]SAM_PROTO_GetShiftState done [08:15:56]FM_GetShiftState done [08:15:56]opened in 1721088399 [08:15:56]opened+sec_in_day 1721174799 [08:15:56]quantity*price = 12500 [08:15:56]sum+1 = 12501 [08:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 36 16.07.2024 08:16 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31717 ФПД: 73270242896759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T081600&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31717&fm=73270242896759&tin=02508201610067®Number=0000000000098025&sum=12500 0 [08:15:58]StoreToDocumentArchive [08:15:58]shift 371 fd 31717 [08:15:58]save to /storage/0371/doc_00031717 [08:15:58]save last doc name /storage/0371/doc_00031717 to /storage/kkm_last_doc_name [08:15:58]save OK [08:15:58]Clear old archive folders... [08:15:58]ProcessDocumentItem done err = 0, tmpTLVsize=278 [08:15:58]tlvbuf is 014B82B0 [08:15:58]SAM_PROTO_ClearQueue [08:15:58]wFMCommunicate request_size=4 [08:15:58]MH_SAM_APDU [08:15:58]CAPDU: 80 09 00 00 [08:15:58]Write to MH i2c: E2 08 00 43 16 80 09 00 00 00 00 00 00 CB [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:15:58]Read from MH i2c: E2 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 43 16 00 90 00 CD [08:15:58]RAPDU: 90 00 [08:15:58]wFMCommunicate OK [08:15:58]SAM_PROTO_ClearQueue done [08:15:58]KKMCreateOFDPacket [08:15:58]OFDProtocolAddRootSTLVToBuf [08:15:58]FM_MakeSignedData [08:15:58]FM_MakeSignedData [08:15:58]SAM_PROTO_SignData [08:15:58]wFMCommunicate request_size=4 [08:15:58]MH_SAM_APDU [08:15:58]CAPDU: 80 0D 01 02 [08:15:58]Write to MH i2c: E2 08 00 44 16 80 0D 01 02 00 00 00 00 D3 [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:15:58]Read from MH i2c: E2 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 44 16 00 90 00 CE [08:15:58]RAPDU: 90 00 [08:15:58]wFMCommunicate OK [08:15:58]wFMCommunicate request_size=255 [08:15:58]MH_SAM_APDU [08:15:58]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 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 24 00 00 00 F4 03 04 00 40 2C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 [08:15:58]Write to MH i2c: E2 02 01 45 16 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 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 24 00 00 00 F4 03 04 00 40 2C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 00 00 7F [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:58]Read from MH i2c: E2 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 45 16 00 90 00 CF [08:15:58]RAPDU: 90 00 [08:15:58]wFMCommunicate OK [08:15:58]wFMCommunicate request_size=37 [08:15:58]MH_SAM_APDU [08:15:58]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E5 7B 00 00 35 04 06 00 42 A3 8E CC EB 77 [08:15:58]Write to MH i2c: E2 28 00 46 16 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E5 7B 00 00 35 04 06 00 42 A3 8E CC EB 77 00 00 36 [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:15:58]Read from MH i2c: E2 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 03 00 46 16 00 90 00 D0 [08:15:58]RAPDU: 90 00 [08:15:58]wFMCommunicate OK [08:15:58]wFMCommunicate request_size=4 [08:15:58]MH_SAM_APDU [08:15:58]CAPDU: 80 0D 03 02 [08:15:58]Write to MH i2c: E2 08 00 47 16 80 0D 03 02 00 00 00 00 D8 [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:15:58]Read from MH i2c: E2 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 0B 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 0B 00 47 16 00 3E DE 93 9D 93 C6 EA C5 90 00 2D [08:15:58]RAPDU: 3E DE 93 9D 93 C6 EA C5 90 00 [08:15:58]wFMCommunicate OK [08:15:58]SAM_PROTO_SignData done [08:15:58]FM_MakeSignedData done [08:15:58]CreateOFDProtocolMessage [08:15:58]wFMCommunicate request_size=4 [08:15:58]MH_SAM_APDU [08:15:58]CAPDU: 80 11 00 00 [08:15:58]Write to MH i2c: E2 08 00 48 16 80 11 00 00 00 00 00 00 D8 [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:15:58]Read from MH i2c: E2 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 17 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: E2 17 00 48 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 33 [08:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:15:58]wFMCommunicate OK [08:15:58]CreateOFDProtocolMessage done [08:15:58]OFDSenderStorePacket 31717 [08:15:58]StoreOFDPacket docnum=31717 [08:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 13 79 22 01 95 06 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 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 24 00 00 00 F4 03 04 00 40 2C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E5 7B 00 00 35 04 06 00 42 A3 8E CC EB 77 3E DE 93 9D 93 C6 EA C5 [08:15:58]CheckFolder [08:15:58]dirname=/storage/ofd_packets [08:15:58]CheckFolder done [08:15:58]ProducePacketName [08:15:58]name=ofd_packets/00031717 [08:15:58]NVStorageSaveData ofd_packets/00031717 [08:15:58]File name is /storage/ofd_packets/00031717 [08:15:58]Write 328 bytes [08:15:58]NVStorageSaveData done [08:15:58]OFDSenderStorePacket done [08:15:58]KKMCreateOFDPacket done [08:15:58]NVStorageSaveData kkm_last_timestamp [08:15:58]File name is /storage/kkm_last_timestamp [08:15:58]Write 4 bytes [08:15:58]NVStorageSaveData done [08:15:58]ExternCall_PrintAddStr [08:15:58]wPrintStart [08:15:58]Write to MH i2c: 01 00 00 49 16 5F [08:15:58]Write i2c OK [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: 01 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: 01 07 00 [08:15:58]MH_I2C_Read... [08:15:58]Read from MH i2c: 01 07 00 49 16 00 00 00 00 00 FF 0F 74 [08:15:58]RasterBufferAndPrint [08:15:58]line Счет N : (3)214298 [08:15:58]line ИНН: 02508201610067 [08:15:58]line Контрольно-Кассовый Чек [08:15:58]line ПРОДАЖА [08:15:58]line Товар: 48743389 [08:15:58]line Сигареты BOND STREET compact blue [08:15:58]line 1.000 * 125.00 [08:15:58]line = 125.00 [08:15:58]line НДС 12% НСП 1% [08:15:58]line > о реализуемом товаре [08:15:58]line ИТОГО: 125.00 [08:15:58]line НСП 1% : 1.11 [08:15:58]line НДС 12% : 13.27 [08:15:58]line Наличными: 125.00 [08:15:58]line Безнал.: 0.00 [08:15:58]line Место: АЗС № 140 "Партнер Нефть" [08:15:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:15:58]line СНО: Общий режим [08:15:58]line Чек 36 16.07.2024 08:16 [08:15:58]line Смена: 371 ФФД: 1.0 [08:15:58]line ЗНМ: 0300000189 [08:15:58]line РНМ: 0000000000098025 [08:15:58]line Версия ККМ: 001 [08:15:58]line ФМ: 0000000000965389 [08:15:58]line ФД: 31717 [08:15:58]line ФПД: 73270242896759 [08:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T081600&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31717&fm=73270242896759&tin=02508201610067®Number=0000000000098025&sum=12500 [08:15:58]line 0 [08:15:58]OFD Sender: Processing packet 31717 [packets to send 6, broken 5] [08:15:58]ProducePacketName [08:15:58]name=ofd_packets/00031717 [08:15:58]OFD Sender: To server: pG, [08:15:58]CommunicateWithHost lk.salyk.kg:30040 [08:15:58]ConnectInit lk.salyk.kg [08:15:58]written 0, free lines is 4095 [08:15:58]Connected sock=10 [08: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 35 33 38 39 2A 01 00 00 13 79 22 01 95 06 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 33 33 38 39 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 4F 4E 44 20 53 54 52 45 45 54 20 63 6F 6D 70 61 63 74 20 62 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 24 00 00 00 F4 03 04 00 40 2C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E5 7B 00 00 35 04 06 00 42 A3 8E CC EB 77 3E DE 93 9D 93 C6 EA C5 [08:15:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 0B 71 47 00 D9 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 35 33 38 39 10 04 04 00 E5 7B 00 00 F4 03 04 00 4E D8 95 66 B6 04 01 00 00 12 27 19 DA 93 40 EA 0C [08:15:59]CommunicateWithHost err = 0 [08:15:59]CheckOFDResponse [08:15:59]1017 (14) - 77093643461234 [08:15:59]1041 (16) - 0000000000965389 [08:15:59]1040 (4) - 31717 [08:15:59]1012 (4) - 16.07.2024 02:17 [08:15:59]1206 (1) - 0 [08:15:59]OFD Sender: Remove packet 31717 [08:15:59]ProducePacketName [08:15:59]name=ofd_packets/00031717 [08:15:59]NVStorageDeleteData [08:15:59]Write to MH i2c: 01 00 00 72 16 88 [08:15:59]Write i2c OK [08:15:59]MH_I2C_Read... [08:15:59]Read from MH i2c: 01 [08:15:59]MH_I2C_Read... [08:15:59]Read from MH i2c: 01 07 00 [08:15:59]MH_I2C_Read... [08:15:59]Read from MH i2c: 01 07 00 72 16 00 00 00 00 00 D8 0C 73 [08:15:59]RasterBufferAndPrint [08:15:59]line [08:15:59]line [08:15:59]line [08:15:59]line [08:15:59]line [08:15:59]written 0, free lines is 3298 [08:15:59]MH_Cut [08:15:59]Write to MH i2c: D1 01 00 79 16 01 61 [08:15:59]Write i2c OK [08:15:59]MH_I2C_Read... [08:15:59]Read from MH i2c: D1 [08:15:59]MH_I2C_Read... [08:15:59]Read from MH i2c: D1 01 00 [08:15:59]MH_I2C_Read... [08:15:59]Read from MH i2c: D1 01 00 79 16 00 60 [08:15:59]Write to MH i2c: 01 00 00 7A 16 90 [08:15:59]Write i2c OK [08:15:59]MH_I2C_Read... [08:15:59]OFD Sender: No OFD packet to send [08:16:00]*** Cut start [08:16:00]*** Partial cut [08:16:00]*** CUTSNS_PIN = 1 [08:16:00]*** CUTSNS_PIN = 0 [08:16:00]*** Brake cut motor [08:16:00]Read from MH i2c: 01 [08:16:00]MH_I2C_Read... [08:16:00]*** Stop cut motor [08:16:00]*** Cut end [08:16:00]Read from MH i2c: 01 07 00 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: 01 07 00 7A 16 00 00 00 00 00 FF 0F A5 [08:16:00]process_action close_receipt done [08:16:00]requested_data is exist [08:16:00]produce_requested_data [08:16:00]requested_item fm.sn is exist - process it [08:16:00]wFMCommunicate request_size=4 [08:16:00]MH_SAM_APDU [08:16:00]CAPDU: 80 11 00 00 [08:16:00]Write to MH i2c: E2 08 00 7B 16 80 11 00 00 00 00 00 00 0B [08:16:00]Write i2c OK [08:16:00]MH_I2C_Read... [08:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:00]Read from MH i2c: E2 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 17 00 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 17 00 7B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 66 [08:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:16:00]wFMCommunicate OK [08:16:00]requested_item fd.num is exist - process it [08:16:00]SAM_PROTO_GetFieldsCounters [08:16:00]wFMCommunicate request_size=4 [08:16:00]MH_SAM_APDU [08:16:00]CAPDU: 80 13 00 00 [08:16:00]Write to MH i2c: E2 08 00 7C 16 80 13 00 00 00 00 00 00 0E [08:16:00]Write i2c OK [08:16:00]MH_I2C_Read... [08:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:00]Read from MH i2c: E2 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 62 00 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 62 00 7C 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E5 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [08: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E5 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:00]wFMCommunicate OK [08:16:00]SAM_PROTO_GetFieldsCounters done [08:16:00]requested_item shift.num is exist - process it [08:16:00]requested_item shift.opened is exist - process it [08:16:00]req_shift_opened [08:16:00]FM_GetShiftState [08:16:00]SAM_PROTO_GetShiftState [08:16:00]wFMCommunicate request_size=4 [08:16:00]MH_SAM_APDU [08:16:00]CAPDU: 80 13 01 00 [08:16:00]Write to MH i2c: E2 08 00 7D 16 80 13 01 00 00 00 00 00 10 [08:16:00]Write i2c OK [08:16:00]MH_I2C_Read... [08:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:00]Read from MH i2c: E2 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 0E 00 [08:16:00]MH_I2C_Read... [08:16:00]Read from MH i2c: E2 0E 00 7D 16 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 5F [08:16:00]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [08:16:00]wFMCommunicate OK [08:16:00]SAM_PROTO_GetShiftState done [08:16:00]FM_GetShiftState done [08:16:00]req_shift_opened done [08:16:00]requested_item shift.open_date is exist - process it [08:16:00]req_shift_open_date [08:16:00]req_shift_open_date done [08:16:00]produce_requested_data done [08:16:00]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31717,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [08:16:00]process_action_free close_receipt [08:16:00]json_value_free [08:16:00]json_value_free done [08:16:00]process_json_proto returns [08:16:00]Send response to host [08:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31717,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [08:16:00]free response buf [08:16:00]execute_script done [08:16:00]execute_script returns [08:16:00]free content buf [08:16:00]Sock 9.Close socket [08:16:00]Sock 9.Thread stoped [08:16:04]OFD Sender: No OFD packet to send [08:16:09]OFD Sender: No OFD packet to send [08:16:14]OFD Sender: No OFD packet to send [08:16:19]OFD Sender: No OFD packet to send [08:16:24]OFD Sender: No OFD packet to send [08:16:29]OFD Sender: No OFD packet to send [08:16:34]OFD Sender: No OFD packet to send [08:16:39]OFD Sender: No OFD packet to send [08:16:44]OFD Sender: No OFD packet to send [08:16:49]OFD Sender: No OFD packet to send [08:16:54]OFD Sender: No OFD packet to send [08:16:59]OFD Sender: No OFD packet to send [08:17:04]OFD Sender: No OFD packet to send [08:17:09]OFD Sender: No OFD packet to send [08:17:14]OFD Sender: No OFD packet to send [08:17:19]OFD Sender: No OFD packet to send [08:17:24]OFD Sender: No OFD packet to send [08:17:29]OFD Sender: No OFD packet to send [08:17:34]OFD Sender: No OFD packet to send [08:17:39]OFD Sender: No OFD packet to send [08:17:44]OFD Sender: No OFD packet to send [08:17:46]accept exits with 7 [08:17:46]New connection [08:17:46]New thread 3066821988 created [08:17:46]Thread 3066965348 joined [08:17:46]Waiting for new connection... [08:17:46] Sock 7.Parse request [08:17:46]Sock 7.Check first char [08:17:46]Sock 7.First char is OK [08:17:46]request: POST /json_proto HTTP/1.0 [08:17:46]Method: POST [08:17:46]URL: /json_proto [08:17:46]Method is POST - this is cgi request [08:17:46]url: /json_proto [08:17:46]query_string will be loaded in cgi processing [08:17:46]execute_cgi json_proto POST (null) [08:17:46]execute_cgi path=json_proto method=POST [08:17:46]POST find Content-Length [08:17:46]Host: 172.17.39.68:8080 [08:17:46]Content-Length: 644 [08:17:46]Content-Type: application/json [08:17:46] [08:17:46]POST finish read [08:17:46]Found Content-Length = 644 [08:17:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214299", "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" ] } } [08:17:46]execute_script... [08:17: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)214299", "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" ] } } [08:17:46]POST & json_proto [08:17:46]process_json_proto [08:17:46]json parsed OK: [08:17:46]protocol is kg_v1.0 [08:17:46]action value=close_receipt [08:17:46]process_action close_receipt [08:17:46]cmd_close_receipt [08:17:46]MH_GetDate [08:17:46]Write to MH i2c: F0 00 00 7E 16 83 [08:17:46]Write i2c OK [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: F0 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: F0 09 00 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: F0 09 00 7E 16 00 AE 2C 96 66 D6 48 95 66 7B [08:17:46]GetLastDocTimeStamp 1721117760 [08:17:46]current date 1721117870 [08:17:46]FM_GetShiftState [08:17:46]SAM_PROTO_GetShiftState [08:17:46]wFMCommunicate request_size=4 [08:17:46]MH_SAM_APDU [08:17:46]CAPDU: 80 13 01 00 [08:17:46]Write to MH i2c: E2 08 00 7F 16 80 13 01 00 00 00 00 00 12 [08:17:46]Write i2c OK [08:17:46]MH_I2C_Read... [08:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:46]Read from MH i2c: E2 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: E2 0E 00 [08:17:46]MH_I2C_Read... [08:17:46]Read from MH i2c: E2 0E 00 7F 16 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 61 [08:17:46]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [08:17:46]wFMCommunicate OK [08:17:46]SAM_PROTO_GetShiftState done [08:17:46]FM_GetShiftState done [08:17:46]opened in 1721088399 [08:17:46]opened+sec_in_day 1721174799 [08:17:46]quantity*price = 11500 [08:17:46]sum+1 = 11501 [08:17:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 37 16.07.2024 08:17 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31718 ФПД: 121464894609972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T081750&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31718&fm=121464894609972&tin=02508201610067®Number=0000000000098025&sum=11500 0 [08:17:48]StoreToDocumentArchive [08:17:48]shift 371 fd 31718 [08:17:48]save to /storage/0371/doc_00031718 [08:17:48]save last doc name /storage/0371/doc_00031718 to /storage/kkm_last_doc_name [08:17:48]save OK [08:17:48]Clear old archive folders... [08:17:48]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:17:48]tlvbuf is 01476770 [08:17:48]SAM_PROTO_ClearQueue [08:17:48]wFMCommunicate request_size=4 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 09 00 00 [08:17:48]Write to MH i2c: E2 08 00 8C 16 80 09 00 00 00 00 00 00 14 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 8C 16 00 90 00 16 [08:17:48]RAPDU: 90 00 [08:17:48]wFMCommunicate OK [08:17:48]SAM_PROTO_ClearQueue done [08:17:48]KKMCreateOFDPacket [08:17:48]OFDProtocolAddRootSTLVToBuf [08:17:48]FM_MakeSignedData [08:17:48]FM_MakeSignedData [08:17:48]SAM_PROTO_SignData [08:17:48]wFMCommunicate request_size=4 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 0D 01 02 [08:17:48]Write to MH i2c: E2 08 00 8D 16 80 0D 01 02 00 00 00 00 1C [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 8D 16 00 90 00 17 [08:17:48]RAPDU: 90 00 [08:17:48]wFMCommunicate OK [08:17:48]wFMCommunicate request_size=255 [08:17:48]MH_SAM_APDU [08:17:48]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 25 00 00 00 F4 03 04 00 AE 2C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [08:17:48]Write to MH i2c: E2 02 01 8E 16 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 25 00 00 00 F4 03 04 00 AE 2C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 CA [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 8E 16 00 90 00 18 [08:17:48]RAPDU: 90 00 [08:17:48]wFMCommunicate OK [08:17:48]wFMCommunicate request_size=39 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E6 7B 00 00 35 04 06 00 6E 78 BF E5 5A 34 [08:17:48]Write to MH i2c: E2 2A 00 8F 16 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E6 7B 00 00 35 04 06 00 6E 78 BF E5 5A 34 00 00 5B [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 03 00 8F 16 00 90 00 19 [08:17:48]RAPDU: 90 00 [08:17:48]wFMCommunicate OK [08:17:48]wFMCommunicate request_size=4 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 0D 03 02 [08:17:48]Write to MH i2c: E2 08 00 90 16 80 0D 03 02 00 00 00 00 21 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 0B 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 0B 00 90 16 00 1D 3A BB 79 87 D5 41 C1 90 00 0B [08:17:48]RAPDU: 1D 3A BB 79 87 D5 41 C1 90 00 [08:17:48]wFMCommunicate OK [08:17:48]SAM_PROTO_SignData done [08:17:48]FM_MakeSignedData done [08:17:48]CreateOFDProtocolMessage [08:17:48]wFMCommunicate request_size=4 [08:17:48]MH_SAM_APDU [08:17:48]CAPDU: 80 11 00 00 [08:17:48]Write to MH i2c: E2 08 00 91 16 80 11 00 00 00 00 00 00 21 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:48]Read from MH i2c: E2 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 17 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: E2 17 00 91 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7C [08:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:17:48]wFMCommunicate OK [08:17:48]CreateOFDProtocolMessage done [08:17:48]OFDSenderStorePacket 31718 [08:17:48]StoreOFDPacket docnum=31718 [08:17:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 F0 E1 24 01 9D D4 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 25 00 00 00 F4 03 04 00 AE 2C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E6 7B 00 00 35 04 06 00 6E 78 BF E5 5A 34 1D 3A BB 79 87 D5 41 C1 [08:17:48]CheckFolder [08:17:48]dirname=/storage/ofd_packets [08:17:48]CheckFolder done [08:17:48]ProducePacketName [08:17:48]name=ofd_packets/00031718 [08:17:48]NVStorageSaveData ofd_packets/00031718 [08:17:48]File name is /storage/ofd_packets/00031718 [08:17:48]Write 330 bytes [08:17:48]NVStorageSaveData done [08:17:48]OFDSenderStorePacket done [08:17:48]KKMCreateOFDPacket done [08:17:48]NVStorageSaveData kkm_last_timestamp [08:17:48]File name is /storage/kkm_last_timestamp [08:17:48]Write 4 bytes [08:17:48]NVStorageSaveData done [08:17:48]ExternCall_PrintAddStr [08:17:48]wPrintStart [08:17:48]Write to MH i2c: 01 00 00 92 16 A8 [08:17:48]Write i2c OK [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: 01 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: 01 07 00 [08:17:48]MH_I2C_Read... [08:17:48]Read from MH i2c: 01 07 00 92 16 00 00 00 00 00 FF 0F BD [08:17:48]RasterBufferAndPrint [08:17:48]line Счет N : (3)214299 [08:17:48]line ИНН: 02508201610067 [08:17:48]line Контрольно-Кассовый Чек [08:17:48]line ПРОДАЖА [08:17:48]line Товар: 2000036210013 [08:17:48]line Кофе Капучино (GABB TRADE) [08:17:48]line 1.000 * 115.00 [08:17:48]line = 115.00 [08:17:48]line НДС 12% НСП 1% [08:17:48]line > о реализуемом товаре [08:17:48]line ИТОГО: 115.00 [08:17:48]line НСП 1% : 1.02 [08:17:48]line НДС 12% : 12.21 [08:17:48]line Наличными: 115.00 [08:17:48]line Безнал.: 0.00 [08:17:48]line Место: АЗС № 140 "Партнер Нефть" [08:17:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:17:48]line СНО: Общий режим [08:17:48]line Чек 37 16.07.2024 08:17 [08:17:48]line Смена: 371 ФФД: 1.0 [08:17:48]line ЗНМ: 0300000189 [08:17:48]line РНМ: 0000000000098025 [08:17:48]line Версия ККМ: 001 [08:17:48]line ФМ: 0000000000965389 [08:17:48]line ФД: 31718 [08:17:48]line ФПД: 121464894609972 [08:17:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T081750&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31718&fm=121464894609972&tin=02508201610067®Number=0000000000098025&sum=11500 [08:17:48]line 0 [08:17:48]OFD Sender: Processing packet 31718 [packets to send 6, broken 5] [08:17:48]ProducePacketName [08:17:48]name=ofd_packets/00031718 [08:17:48]OFD Sender: To server: pG, [08:17:48]CommunicateWithHost lk.salyk.kg:30040 [08:17:48]ConnectInit lk.salyk.kg [08:17:48]written 0, free lines is 4095 [08:17:49]Connected sock=10 [08:17:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 F0 E1 24 01 9D D4 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 25 00 00 00 F4 03 04 00 AE 2C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E6 7B 00 00 35 04 06 00 6E 78 BF E5 5A 34 1D 3A BB 79 87 D5 41 C1 [08:17:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 94 5F 47 00 C6 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 35 33 38 39 10 04 04 00 E6 7B 00 00 F4 03 04 00 BC D8 95 66 B6 04 01 00 00 F6 ED CA D8 CC 2A 77 15 [08:17:49]CommunicateWithHost err = 0 [08:17:49]CheckOFDResponse [08:17:49]1017 (14) - 77093643461234 [08:17:49]1041 (16) - 0000000000965389 [08:17:49]1040 (4) - 31718 [08:17:49]1012 (4) - 16.07.2024 02:19 [08:17:49]1206 (1) - 0 [08:17:49]OFD Sender: Remove packet 31718 [08:17:49]ProducePacketName [08:17:49]name=ofd_packets/00031718 [08:17:49]NVStorageDeleteData [08:17:49]Write to MH i2c: 01 00 00 BA 16 D0 [08:17:49]Write i2c OK [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: 01 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: 01 07 00 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: 01 07 00 BA 16 00 00 00 00 00 06 0D EA [08:17:49]RasterBufferAndPrint [08:17:49]line [08:17:49]line [08:17:49]line [08:17:49]line [08:17:49]line [08:17:49]written 0, free lines is 3340 [08:17:49]MH_Cut [08:17:49]Write to MH i2c: D1 01 00 C1 16 01 A9 [08:17:49]Write i2c OK [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: D1 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: D1 01 00 [08:17:49]MH_I2C_Read... [08:17:49]Read from MH i2c: D1 01 00 C1 16 00 A8 [08:17:49]Write to MH i2c: 01 00 00 C2 16 D8 [08:17:49]Write i2c OK [08:17:49]MH_I2C_Read... [08:17:49]OFD Sender: No OFD packet to send [08:17:50]*** Cut start [08:17:50]*** Partial cut [08:17:50]*** CUTSNS_PIN = 1 [08:17:50]*** CUTSNS_PIN = 0 [08:17:50]*** Brake cut motor [08:17:50]Read from MH i2c: 01 [08:17:50]MH_I2C_Read... [08:17:50]*** Stop cut motor [08:17:50]*** Cut end [08:17:50]Read from MH i2c: 01 07 00 [08:17:50]MH_I2C_Read... [08:17:50]Read from MH i2c: 01 07 00 C2 16 00 00 00 00 00 FF 0F ED [08:17:50]process_action close_receipt done [08:17:50]requested_data is exist [08:17:50]produce_requested_data [08:17:50]requested_item fm.sn is exist - process it [08:17:50]wFMCommunicate request_size=4 [08:17:50]MH_SAM_APDU [08:17:50]CAPDU: 80 11 00 00 [08:17:50]Write to MH i2c: E2 08 00 C3 16 80 11 00 00 00 00 00 00 53 [08:17:50]Write i2c OK [08:17:50]MH_I2C_Read... [08:17:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:50]Read from MH i2c: E2 [08:17:50]MH_I2C_Read... [08:17:50]Read from MH i2c: E2 17 00 [08:17:50]MH_I2C_Read... [08:17:50]Read from MH i2c: E2 17 00 C3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 AE [08:17:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:17:50]wFMCommunicate OK [08:17:50]requested_item fd.num is exist - process it [08:17:50]SAM_PROTO_GetFieldsCounters [08:17:50]wFMCommunicate request_size=4 [08:17:50]MH_SAM_APDU [08:17:50]CAPDU: 80 13 00 00 [08:17:50]Write to MH i2c: E2 08 00 C4 16 80 13 00 00 00 00 00 00 56 [08:17:50]Write i2c OK [08:17:50]MH_I2C_Read... [08:17:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:17:50]Read from MH i2c: E2 [08:17:50]MH_I2C_Read... [08:17:50]Read from MH i2c: E2 62 00 [08:17:50]MH_I2C_Read... [08:17:50]Read from MH i2c: E2 62 00 C4 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E6 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [08:17: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E6 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:17:50]wFMCommunicate OK [08:17:50]SAM_PROTO_GetFieldsCounters done [08:17:50]requested_item shift.num is exist - process it [08:17:50]requested_item shift.opened is exist - process it [08:17:50]req_shift_opened [08:17:50]FM_GetShiftState [08:17:50]SAM_PROTO_GetShiftState [08:17:50]wFMCommunicate request_size=4 [08:17:50]MH_SAM_APDU [08:17:50]CAPDU: 80 13 01 00 [08:17:50]Write to MH i2c: E2 08 00 C5 16 80 13 01 00 00 00 00 00 58 [08:17:50]Write i2c OK [08:17:50]MH_I2C_Read... [08:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:50]Read from MH i2c: E2 [08:17:50]MH_I2C_Read... [08:17:50]Read from MH i2c: E2 0E 00 [08:17:50]MH_I2C_Read... [08:17:50]Read from MH i2c: E2 0E 00 C5 16 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A7 [08:17:50]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [08:17:50]wFMCommunicate OK [08:17:50]SAM_PROTO_GetShiftState done [08:17:50]FM_GetShiftState done [08:17:50]req_shift_opened done [08:17:50]requested_item shift.open_date is exist - process it [08:17:50]req_shift_open_date [08:17:50]req_shift_open_date done [08:17:50]produce_requested_data done [08:17:50]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31718,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [08:17:50]process_action_free close_receipt [08:17:50]json_value_free [08:17:50]json_value_free done [08:17:50]process_json_proto returns [08:17:50]Send response to host [08:17:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31718,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [08:17:50]free response buf [08:17:50]execute_script done [08:17:50]execute_script returns [08:17:50]free content buf [08:17:50]Sock 7.Close socket [08:17:50]Sock 7.Thread stoped [08:17:54]OFD Sender: No OFD packet to send [08:17:59]OFD Sender: No OFD packet to send [08:18:04]OFD Sender: No OFD packet to send [08:18:09]OFD Sender: No OFD packet to send [08:18:14]OFD Sender: No OFD packet to send [08:18:19]OFD Sender: No OFD packet to send [08:18:24]OFD Sender: No OFD packet to send [08:18:29]OFD Sender: No OFD packet to send [08:18:34]OFD Sender: No OFD packet to send [08:18:39]OFD Sender: No OFD packet to send [08:18:44]OFD Sender: No OFD packet to send [08:18:49]OFD Sender: No OFD packet to send [08:18:54]OFD Sender: No OFD packet to send [08:18:59]OFD Sender: No OFD packet to send [08:19:04]OFD Sender: No OFD packet to send [08:19:09]OFD Sender: No OFD packet to send [08:19:14]OFD Sender: No OFD packet to send [08:19:19]OFD Sender: No OFD packet to send [08:19:24]OFD Sender: No OFD packet to send [08:19:29]OFD Sender: No OFD packet to send [08:19:34]OFD Sender: No OFD packet to send [08:19:39]OFD Sender: No OFD packet to send [08:19:44]OFD Sender: No OFD packet to send [08:19:49]OFD Sender: No OFD packet to send [08:19:54]OFD Sender: No OFD packet to send [08:19:59]OFD Sender: No OFD packet to send [08:20:04]OFD Sender: No OFD packet to send [08:20:09]OFD Sender: No OFD packet to send [08:20:14]OFD Sender: No OFD packet to send [08:20:19]OFD Sender: No OFD packet to send [08:20:24]OFD Sender: No OFD packet to send [08:20:29]OFD Sender: No OFD packet to send [08:20:34]OFD Sender: No OFD packet to send [08:20:39]OFD Sender: No OFD packet to send [08:20:44]OFD Sender: No OFD packet to send [08:20:49]OFD Sender: No OFD packet to send [08:20:54]OFD Sender: No OFD packet to send [08:20:59]OFD Sender: No OFD packet to send [08:21:04]OFD Sender: No OFD packet to send [08:21:09]OFD Sender: No OFD packet to send [08:21:14]OFD Sender: No OFD packet to send [08:21:19]OFD Sender: No OFD packet to send [08:21:24]OFD Sender: No OFD packet to send [08:21:29]OFD Sender: No OFD packet to send [08:21:34]OFD Sender: No OFD packet to send [08:21:39]OFD Sender: No OFD packet to send [08:21:44]OFD Sender: No OFD packet to send [08:21:49]OFD Sender: No OFD packet to send [08:21:54]OFD Sender: No OFD packet to send [08:21:59]OFD Sender: No OFD packet to send [08:22:04]OFD Sender: No OFD packet to send [08:22:09]OFD Sender: No OFD packet to send [08:22:14]OFD Sender: No OFD packet to send [08:22:19]OFD Sender: No OFD packet to send [08:22:24]OFD Sender: No OFD packet to send [08:22:29]OFD Sender: No OFD packet to send [08:22:34]OFD Sender: No OFD packet to send [08:22:39]OFD Sender: No OFD packet to send [08:22:44]OFD Sender: No OFD packet to send [08:22:49]OFD Sender: No OFD packet to send [08:22:54]OFD Sender: No OFD packet to send [08:22:59]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:40]OFD Sender: No OFD packet to send [08:27:45]OFD Sender: No OFD packet to send [08:27:50]OFD Sender: No OFD packet to send [08:27:55]OFD Sender: No OFD packet to send [08:28:00]OFD Sender: No OFD packet to send [08:28:05]OFD Sender: No OFD packet to send [08:28:10]OFD Sender: No OFD packet to send [08:28:15]OFD Sender: No OFD packet to send [08:28:20]OFD Sender: No OFD packet to send [08:28:25]OFD Sender: No OFD packet to send [08:28:30]OFD Sender: No OFD packet to send [08:28:35]OFD Sender: No OFD packet to send [08:28:40]OFD Sender: No OFD packet to send [08:28:45]OFD Sender: No OFD packet to send [08:28:50]OFD Sender: No OFD packet to send [08:28:55]OFD Sender: No OFD packet to send [08:29:00]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:35]OFD Sender: No OFD packet to send [08:31:40]OFD Sender: No OFD packet to send [08:31:45]OFD Sender: No OFD packet to send [08:31:50]OFD Sender: No OFD packet to send [08:31:55]OFD Sender: No OFD packet to send [08:32:00]OFD Sender: No OFD packet to send [08:32:05]OFD Sender: No OFD packet to send [08:32:10]OFD Sender: No OFD packet to send [08:32:15]OFD Sender: No OFD packet to send [08:32:20]OFD Sender: No OFD packet to send [08:32:25]OFD Sender: No OFD packet to send [08:32:30]OFD Sender: No OFD packet to send [08:32:35]OFD Sender: No OFD packet to send [08:32:40]OFD Sender: No OFD packet to send [08:32:45]OFD Sender: No OFD packet to send [08:32:50]OFD Sender: No OFD packet to send [08:32:55]OFD Sender: No OFD packet to send [08:33:00]OFD Sender: No OFD packet to send [08:33:05]OFD Sender: No OFD packet to send [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:10]OFD Sender: No OFD packet to send [08:36:15]OFD Sender: No OFD packet to send [08:36:20]OFD Sender: No OFD packet to send [08:36:25]OFD Sender: No OFD packet to send [08:36:30]OFD Sender: No OFD packet to send [08:36:35]OFD Sender: No OFD packet to send [08:36:40]OFD Sender: No OFD packet to send [08:36:45]OFD Sender: No OFD packet to send [08:36:50]OFD Sender: No OFD packet to send [08:36:55]OFD Sender: No OFD packet to send [08:37:00]OFD Sender: No OFD packet to send [08:37:05]OFD Sender: No OFD packet to send [08:37:10]OFD Sender: No OFD packet to send [08:37:15]OFD Sender: No OFD packet to send [08:37:20]OFD Sender: No OFD packet to send [08:37:25]OFD Sender: No OFD packet to send [08:37:30]OFD Sender: No OFD packet to send [08:37:35]OFD Sender: No OFD packet to send [08:37:40]OFD Sender: No OFD packet to send [08:37:45]OFD Sender: No OFD packet to send [08:37:50]OFD Sender: No OFD packet to send [08:37:55]OFD Sender: No OFD packet to send [08:38:00]OFD Sender: No OFD packet to send [08:38:05]OFD Sender: No OFD packet to send [08:38:10]OFD Sender: No OFD packet to send [08:38:15]OFD Sender: No OFD packet to send [08:38:20]OFD Sender: No OFD packet to send [08:38:25]OFD Sender: No OFD packet to send [08:38:30]OFD Sender: No OFD packet to send [08:38:35]OFD Sender: No OFD packet to send [08:38:40]OFD Sender: No OFD packet to send [08:38:45]OFD Sender: No OFD packet to send [08:38:50]OFD Sender: No OFD packet to send [08:38:55]OFD Sender: No OFD packet to send [08:39:00]OFD Sender: No OFD packet to send [08:39:05]OFD Sender: No OFD packet to send [08:39:10]OFD Sender: No OFD packet to send [08:39:15]OFD Sender: No OFD packet to send [08:39:20]OFD Sender: No OFD packet to send [08:39:25]OFD Sender: No OFD packet to send [08:39:30]OFD Sender: No OFD packet to send [08:39:35]OFD Sender: No OFD packet to send [08:39:40]OFD Sender: No OFD packet to send [08:39:45]OFD Sender: No OFD packet to send [08:39:50]OFD Sender: No OFD packet to send [08:39:55]OFD Sender: No OFD packet to send [08:40:00]OFD Sender: No OFD packet to send [08:40:05]OFD Sender: No OFD packet to send [08:40:10]OFD Sender: No OFD packet to send [08:40:15]OFD Sender: No OFD packet to send [08:40:20]OFD Sender: No OFD packet to send [08:40:25]OFD Sender: No OFD packet to send [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:40]OFD Sender: No OFD packet to send [08:42:45]OFD Sender: No OFD packet to send [08:42:50]OFD Sender: No OFD packet to send [08:42:55]OFD Sender: No OFD packet to send [08:43:00]OFD Sender: No OFD packet to send [08:43:05]OFD Sender: No OFD packet to send [08:43:10]OFD Sender: No OFD packet to send [08:43:15]OFD Sender: No OFD packet to send [08:43:20]OFD Sender: No OFD packet to send [08:43:25]OFD Sender: No OFD packet to send [08:43:30]OFD Sender: No OFD packet to send [08:43:35]OFD Sender: No OFD packet to send [08:43:40]OFD Sender: No OFD packet to send [08:43:45]OFD Sender: No OFD packet to send [08:43:50]OFD Sender: No OFD packet to send [08:43:55]OFD Sender: No OFD packet to send [08:44:00]OFD Sender: No OFD packet to send [08:44:05]OFD Sender: No OFD packet to send [08:44:10]OFD Sender: No OFD packet to send [08:44:15]OFD Sender: No OFD packet to send [08:44:20]OFD Sender: No OFD packet to send [08:44:25]OFD Sender: No OFD packet to send [08:44:30]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:21]OFD Sender: No OFD packet to send [08:53:26]OFD Sender: No OFD packet to send [08:53:31]OFD Sender: No OFD packet to send [08:53:36]OFD Sender: No OFD packet to send [08:53:41]OFD Sender: No OFD packet to send [08:53:46]OFD Sender: No OFD packet to send [08:53:51]OFD Sender: No OFD packet to send [08:53:56]OFD Sender: No OFD packet to send [08:54:01]OFD Sender: No OFD packet to send [08:54:06]OFD Sender: No OFD packet to send [08:54:11]OFD Sender: No OFD packet to send [08:54:16]OFD Sender: No OFD packet to send [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:31]OFD Sender: No OFD packet to send [08:56:36]OFD Sender: No OFD packet to send [08:56:41]OFD Sender: No OFD packet to send [08:56:46]OFD Sender: No OFD packet to send [08:56:51]OFD Sender: No OFD packet to send [08:56:56]OFD Sender: No OFD packet to send [08:57:01]OFD Sender: No OFD packet to send [08:57:06]OFD Sender: No OFD packet to send [08:57:11]OFD Sender: No OFD packet to send [08:57:16]OFD Sender: No OFD packet to send [08:57:21]OFD Sender: No OFD packet to send [08:57:26]OFD Sender: No OFD packet to send [08:57:31]OFD Sender: No OFD packet to send [08:57:36]OFD Sender: No OFD packet to send [08:57:41]OFD Sender: No OFD packet to send [08:57:44]accept exits with 9 [08:57:44]New connection [08:57:44]New thread 3066965348 created [08:57:44]Thread 3066821988 joined [08:57:44]Waiting for new connection... [08:57:44] Sock 9.Parse request [08:57:44]Sock 9.Check first char [08:57:44]Sock 9.First char is OK [08:57:44]request: POST /json_proto HTTP/1.0 [08:57:44]Method: POST [08:57:44]URL: /json_proto [08:57:44]Method is POST - this is cgi request [08:57:44]url: /json_proto [08:57:44]query_string will be loaded in cgi processing [08:57:44]execute_cgi json_proto POST (null) [08:57:44]execute_cgi path=json_proto method=POST [08:57:44]POST find Content-Length [08:57:44]Host: 172.17.39.68:8080 [08:57:44]Content-Length: 621 [08:57:44]Content-Type: application/json [08:57:44] [08:57:44]POST finish read [08:57:44]Found Content-Length = 621 [08:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214300", "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:57:44]execute_script... [08:57: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)214300", "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:57:44]POST & json_proto [08:57:44]process_json_proto [08:57:44]json parsed OK: [08:57:44]protocol is kg_v1.0 [08:57:44]action value=close_receipt [08:57:44]process_action close_receipt [08:57:44]cmd_close_receipt [08:57:44]MH_GetDate [08:57:44]Write to MH i2c: F0 00 00 C6 16 CB [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: F0 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: F0 09 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: F0 09 00 C6 16 00 0C 36 96 66 D6 48 95 66 2B [08:57:44]GetLastDocTimeStamp 1721117870 [08:57:44]current date 1721120268 [08:57:44]FM_GetShiftState [08:57:44]SAM_PROTO_GetShiftState [08:57:44]wFMCommunicate request_size=4 [08:57:44]MH_SAM_APDU [08:57:44]CAPDU: 80 13 01 00 [08:57:44]Write to MH i2c: E2 08 00 C7 16 80 13 01 00 00 00 00 00 5A [08:57:44]Write i2c OK [08:57:44]MH_I2C_Read... [08:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:44]Read from MH i2c: E2 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 0E 00 [08:57:44]MH_I2C_Read... [08:57:44]Read from MH i2c: E2 0E 00 C7 16 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A9 [08:57:44]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [08:57:44]wFMCommunicate OK [08:57:44]SAM_PROTO_GetShiftState done [08:57:44]FM_GetShiftState done [08:57:44]opened in 1721088399 [08:57:44]opened+sec_in_day 1721174799 [08:57:44]quantity*price = 14000 [08:57:44]sum+1 = 14001 [08:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 38 16.07.2024 08:57 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31719 ФПД: 175991542896916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T085748&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31719&fm=175991542896916&tin=02508201610067®Number=0000000000098025&sum=14000 0 [08:57:45]StoreToDocumentArchive [08:57:45]shift 371 fd 31719 [08:57:45]save to /storage/0371/doc_00031719 [08:57:45]save last doc name /storage/0371/doc_00031719 to /storage/kkm_last_doc_name [08:57:45]save OK [08:57:45]Clear old archive folders... [08:57:45]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:57:45]tlvbuf is 01476C30 [08:57:45]SAM_PROTO_ClearQueue [08:57:45]wFMCommunicate request_size=4 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 09 00 00 [08:57:45]Write to MH i2c: E2 08 00 D4 16 80 09 00 00 00 00 00 00 5C [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:45]Read from MH i2c: E2 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 D4 16 00 90 00 5E [08:57:45]RAPDU: 90 00 [08:57:45]wFMCommunicate OK [08:57:45]SAM_PROTO_ClearQueue done [08:57:45]KKMCreateOFDPacket [08:57:45]OFDProtocolAddRootSTLVToBuf [08:57:45]FM_MakeSignedData [08:57:45]FM_MakeSignedData [08:57:45]SAM_PROTO_SignData [08:57:45]wFMCommunicate request_size=4 [08:57:45]MH_SAM_APDU [08:57:45]CAPDU: 80 0D 01 02 [08:57:45]Write to MH i2c: E2 08 00 D5 16 80 0D 01 02 00 00 00 00 64 [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:45]Read from MH i2c: E2 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 [08:57:45]MH_I2C_Read... [08:57:45]Read from MH i2c: E2 03 00 D5 16 00 90 00 5F [08:57:45]RAPDU: 90 00 [08:57:45]wFMCommunicate OK [08:57:45]wFMCommunicate request_size=255 [08:57:45]MH_SAM_APDU [08:57:45]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 26 00 00 00 F4 03 04 00 0C 36 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [08:57:45]Write to MH i2c: E2 02 01 D6 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 26 00 00 00 F4 03 04 00 0C 36 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 30 [08:57:45]Write i2c OK [08:57:45]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 03 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 03 00 D6 16 00 90 00 60 [08:57:46]RAPDU: 90 00 [08:57:46]wFMCommunicate OK [08:57:46]wFMCommunicate request_size=32 [08:57:46]MH_SAM_APDU [08:57:46]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 E7 7B 00 00 35 04 06 00 A0 10 39 65 D9 14 [08:57:46]Write to MH i2c: E2 23 00 D7 16 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 E7 7B 00 00 35 04 06 00 A0 10 39 65 D9 14 00 00 69 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 03 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 03 00 D7 16 00 90 00 61 [08:57:46]RAPDU: 90 00 [08:57:46]wFMCommunicate OK [08:57:46]wFMCommunicate request_size=4 [08:57:46]MH_SAM_APDU [08:57:46]CAPDU: 80 0D 03 02 [08:57:46]Write to MH i2c: E2 08 00 D8 16 80 0D 03 02 00 00 00 00 69 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 0B 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 0B 00 D8 16 00 96 A0 20 35 C8 3F 3D 36 90 00 6F [08:57:46]RAPDU: 96 A0 20 35 C8 3F 3D 36 90 00 [08:57:46]wFMCommunicate OK [08:57:46]SAM_PROTO_SignData done [08:57:46]FM_MakeSignedData done [08:57:46]CreateOFDProtocolMessage [08:57:46]wFMCommunicate request_size=4 [08:57:46]MH_SAM_APDU [08:57:46]CAPDU: 80 11 00 00 [08:57:46]Write to MH i2c: E2 08 00 D9 16 80 11 00 00 00 00 00 00 69 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:46]Read from MH i2c: E2 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 17 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: E2 17 00 D9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C4 [08:57:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:57:46]wFMCommunicate OK [08:57:46]CreateOFDProtocolMessage done [08:57:46]OFDSenderStorePacket 31719 [08:57:46]StoreOFDPacket docnum=31719 [08:57:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 10 23 1D 01 AC BE 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 26 00 00 00 F4 03 04 00 0C 36 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E7 7B 00 00 35 04 06 00 A0 10 39 65 D9 14 96 A0 20 35 C8 3F 3D 36 [08:57:46]CheckFolder [08:57:46]dirname=/storage/ofd_packets [08:57:46]CheckFolder done [08:57:46]ProducePacketName [08:57:46]name=ofd_packets/00031719 [08:57:46]NVStorageSaveData ofd_packets/00031719 [08:57:46]File name is /storage/ofd_packets/00031719 [08:57:46]Write 323 bytes [08:57:46]NVStorageSaveData done [08:57:46]OFDSenderStorePacket done [08:57:46]KKMCreateOFDPacket done [08:57:46]NVStorageSaveData kkm_last_timestamp [08:57:46]File name is /storage/kkm_last_timestamp [08:57:46]Write 4 bytes [08:57:46]NVStorageSaveData done [08:57:46]ExternCall_PrintAddStr [08:57:46]wPrintStart [08:57:46]Write to MH i2c: 01 00 00 DA 16 F0 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 07 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 07 00 DA 16 00 00 00 00 00 FF 0F 05 [08:57:46]RasterBufferAndPrint [08:57:46]line Счет N : (3)214300 [08:57:46]line ИНН: 02508201610067 [08:57:46]line Контрольно-Кассовый Чек [08:57:46]line ПРОДАЖА [08:57:46]line Товар: 48743570 [08:57:46]line Сигареты Winston XStyle Blue [08:57:46]line 1.000 * 140.00 [08:57:46]line = 140.00 [08:57:46]line НДС 12% НСП 1% [08:57:46]line > о реализуемом товаре [08:57:46]line ИТОГО: 140.00 [08:57:46]line НСП 1% : 1.24 [08:57:46]line НДС 12% : 14.87 [08:57:46]line Наличными: 140.00 [08:57:46]line Безнал.: 0.00 [08:57:46]line Место: АЗС № 140 "Партнер Нефть" [08:57:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [08:57:46]line СНО: Общий режим [08:57:46]line Чек 38 16.07.2024 08:57 [08:57:46]line Смена: 371 ФФД: 1.0 [08:57:46]line ЗНМ: 0300000189 [08:57:46]line РНМ: 0000000000098025 [08:57:46]line Версия ККМ: 001 [08:57:46]line ФМ: 0000000000965389 [08:57:46]line ФД: 31719 [08:57:46]line ФПД: 175991542896916 [08:57:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T085748&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31719&fm=175991542896916&tin=02508201610067®Number=0000000000098025&sum=14000 [08:57:46]line 0 [08:57:46]written 0, free lines is 4095 [08:57:46]OFD Sender: Processing packet 31719 [packets to send 6, broken 5] [08:57:46]ProducePacketName [08:57:46]name=ofd_packets/00031719 [08:57:46]OFD Sender: To server: pG, [08:57:46]CommunicateWithHost lk.salyk.kg:30040 [08:57:46]ConnectInit lk.salyk.kg [08:57:46]Connected sock=10 [08:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 10 23 1D 01 AC BE 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 26 00 00 00 F4 03 04 00 0C 36 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E7 7B 00 00 35 04 06 00 A0 10 39 65 D9 14 96 A0 20 35 C8 3F 3D 36 [08:57:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B4 B5 47 00 47 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 35 33 38 39 10 04 04 00 E7 7B 00 00 F4 03 04 00 19 E2 95 66 B6 04 01 00 00 E2 43 CF 32 32 68 EC AF [08:57:46]CommunicateWithHost err = 0 [08:57:46]CheckOFDResponse [08:57:46]1017 (14) - 77093643461234 [08:57:46]1041 (16) - 0000000000965389 [08:57:46]1040 (4) - 31719 [08:57:46]1012 (4) - 16.07.2024 02:59 [08:57:46]1206 (1) - 0 [08:57:46]OFD Sender: Remove packet 31719 [08:57:46]ProducePacketName [08:57:46]name=ofd_packets/00031719 [08:57:46]NVStorageDeleteData [08:57:46]Write to MH i2c: 01 00 00 02 17 19 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 07 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: 01 07 00 02 17 00 00 00 00 00 F5 0C 21 [08:57:46]RasterBufferAndPrint [08:57:46]line [08:57:46]line [08:57:46]line [08:57:46]line [08:57:46]line [08:57:46]written 0, free lines is 3322 [08:57:46]MH_Cut [08:57:46]Write to MH i2c: D1 01 00 09 17 01 F2 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: D1 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: D1 01 00 [08:57:46]MH_I2C_Read... [08:57:46]Read from MH i2c: D1 01 00 09 17 00 F1 [08:57:46]Write to MH i2c: 01 00 00 0A 17 21 [08:57:46]Write i2c OK [08:57:46]MH_I2C_Read... [08:57:47]OFD Sender: No OFD packet to send [08:57:47]*** Cut start [08:57:47]*** Partial cut [08:57:47]*** CUTSNS_PIN = 1 [08:57:47]*** CUTSNS_PIN = 0 [08:57:47]*** Brake cut motor [08:57:48]Read from MH i2c: 01 [08:57:48]MH_I2C_Read... [08:57:48]*** Stop cut motor [08:57:48]*** Cut end [08:57:48]Read from MH i2c: 01 07 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: 01 07 00 0A 17 00 00 00 00 00 FF 0F 36 [08:57:48]process_action close_receipt done [08:57:48]requested_data is exist [08:57:48]produce_requested_data [08:57:48]requested_item fm.sn is exist - process it [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 11 00 00 [08:57:48]Write to MH i2c: E2 08 00 0B 17 80 11 00 00 00 00 00 00 9C [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 17 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 17 00 0B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F7 [08:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [08:57:48]wFMCommunicate OK [08:57:48]requested_item fd.num is exist - process it [08:57:48]SAM_PROTO_GetFieldsCounters [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 13 00 00 [08:57:48]Write to MH i2c: E2 08 00 0C 17 80 13 00 00 00 00 00 00 9F [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 62 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 62 00 0C 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E7 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [08:57: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E7 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:48]wFMCommunicate OK [08:57:48]SAM_PROTO_GetFieldsCounters done [08:57:48]requested_item shift.num is exist - process it [08:57:48]requested_item shift.opened is exist - process it [08:57:48]req_shift_opened [08:57:48]FM_GetShiftState [08:57:48]SAM_PROTO_GetShiftState [08:57:48]wFMCommunicate request_size=4 [08:57:48]MH_SAM_APDU [08:57:48]CAPDU: 80 13 01 00 [08:57:48]Write to MH i2c: E2 08 00 0D 17 80 13 01 00 00 00 00 00 A1 [08:57:48]Write i2c OK [08:57:48]MH_I2C_Read... [08:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:48]Read from MH i2c: E2 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 0E 00 [08:57:48]MH_I2C_Read... [08:57:48]Read from MH i2c: E2 0E 00 0D 17 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F0 [08:57:48]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [08:57:48]wFMCommunicate OK [08:57:48]SAM_PROTO_GetShiftState done [08:57:48]FM_GetShiftState done [08:57:48]req_shift_opened done [08:57:48]requested_item shift.open_date is exist - process it [08:57:48]req_shift_open_date [08:57:48]req_shift_open_date done [08:57:48]produce_requested_data done [08:57:48]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31719,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [08:57:48]process_action_free close_receipt [08:57:48]json_value_free [08:57:48]json_value_free done [08:57:48]process_json_proto returns [08:57:48]Send response to host [08:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31719,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [08:57:48]free response buf [08:57:48]execute_script done [08:57:48]execute_script returns [08:57:48]free content buf [08:57:48]Sock 9.Close socket [08:57:48]Sock 9.Thread stoped [08:57:52]OFD Sender: No OFD packet to send [08:57:57]OFD Sender: No OFD packet to send [08:58:02]OFD Sender: No OFD packet to send [08:58:07]OFD Sender: No OFD packet to send [08:58:12]OFD Sender: No OFD packet to send [08:58:17]OFD Sender: No OFD packet to send [08:58:22]OFD Sender: No OFD packet to send [08:58:27]OFD Sender: No OFD packet to send [08:58:32]OFD Sender: No OFD packet to send [08:58:37]OFD Sender: No OFD packet to send [08:58:42]OFD Sender: No OFD packet to send [08:58:47]OFD Sender: No OFD packet to send [08:58:52]OFD Sender: No OFD packet to send [08:58:57]OFD Sender: No OFD packet to send [08:59:02]OFD Sender: No OFD packet to send [08:59:07]OFD Sender: No OFD packet to send [08:59:12]OFD Sender: No OFD packet to send [08:59:17]OFD Sender: No OFD packet to send [08:59:22]OFD Sender: No OFD packet to send [08:59:27]OFD Sender: No OFD packet to send [08:59:32]OFD Sender: No OFD packet to send [08:59:37]OFD Sender: No OFD packet to send [08:59:42]OFD Sender: No OFD packet to send [08:59:47]OFD Sender: No OFD packet to send [08:59:52]OFD Sender: No OFD packet to send [08:59:57]OFD Sender: No OFD packet to send [09:00:02]OFD Sender: No OFD packet to send [09:00:07]OFD Sender: No OFD packet to send [09:00:12]OFD Sender: No OFD packet to send [09:00:17]OFD Sender: No OFD packet to send [09:00:22]OFD Sender: No OFD packet to send [09:00:27]OFD Sender: No OFD packet to send [09:00:32]OFD Sender: No OFD packet to send [09:00:37]OFD Sender: No OFD packet to send [09:00:42]OFD Sender: No OFD packet to send [09:00:47]OFD Sender: No OFD packet to send [09:00:52]OFD Sender: No OFD packet to send [09:00:57]OFD Sender: No OFD packet to send [09:01:02]OFD Sender: No OFD packet to send [09:01:07]OFD Sender: No OFD packet to send [09:01:12]OFD Sender: No OFD packet to send [09:01:17]OFD Sender: No OFD packet to send [09:01:22]OFD Sender: No OFD packet to send [09:01:27]OFD Sender: No OFD packet to send [09:01:32]OFD Sender: No OFD packet to send [09:01:37]OFD Sender: No OFD packet to send [09:01:42]OFD Sender: No OFD packet to send [09:01:47]OFD Sender: No OFD packet to send [09:01:52]OFD Sender: No OFD packet to send [09:01:57]OFD Sender: No OFD packet to send [09:02:02]OFD Sender: No OFD packet to send [09:02:07]OFD Sender: No OFD packet to send [09:02:12]OFD Sender: No OFD packet to send [09:02:17]OFD Sender: No OFD packet to send [09:02:22]OFD Sender: No OFD packet to send [09:02:27]OFD Sender: No OFD packet to send [09:02:32]OFD Sender: No OFD packet to send [09:02:37]OFD Sender: No OFD packet to send [09:02:42]OFD Sender: No OFD packet to send [09:02:47]OFD Sender: No OFD packet to send [09:02:52]OFD Sender: No OFD packet to send [09:02:57]OFD Sender: No OFD packet to send [09:03:02]OFD Sender: No OFD packet to send [09:03:07]OFD Sender: No OFD packet to send [09:03:12]OFD Sender: No OFD packet to send [09:03:17]OFD Sender: No OFD packet to send [09:03:22]OFD Sender: No OFD packet to send [09:03:27]OFD Sender: No OFD packet to send [09:03:32]OFD Sender: No OFD packet to send [09:03:37]OFD Sender: No OFD packet to send [09:03:42]OFD Sender: No OFD packet to send [09:03:47]OFD Sender: No OFD packet to send [09:03:52]OFD Sender: No OFD packet to send [09:03: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:37]OFD Sender: No OFD packet to send [09:08:42]OFD Sender: No OFD packet to send [09:08:47]OFD Sender: No OFD packet to send [09:08:52]OFD Sender: No OFD packet to send [09:08:57]OFD Sender: No OFD packet to send [09:09:02]OFD Sender: No OFD packet to send [09:09:07]OFD Sender: No OFD packet to send [09:09:12]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [09:10:22]OFD Sender: No OFD packet to send [09:10:27]OFD Sender: No OFD packet to send [09:10:32]OFD Sender: No OFD packet to send [09:10:37]OFD Sender: No OFD packet to send [09:10:42]OFD Sender: No OFD packet to send [09:10:47]OFD Sender: No OFD packet to send [09:10:52]OFD Sender: No OFD packet to send [09:10:57]OFD Sender: No OFD packet to send [09:11:02]OFD Sender: No OFD packet to send [09:11:07]OFD Sender: No OFD packet to send [09:11:12]OFD Sender: No OFD packet to send [09:11:17]OFD Sender: No OFD packet to send [09:11:22]OFD Sender: No OFD packet to send [09:11:27]OFD Sender: No OFD packet to send [09:11:32]OFD Sender: No OFD packet to send [09:11:37]OFD Sender: No OFD packet to send [09:11:42]OFD Sender: No OFD packet to send [09:11:47]OFD Sender: No OFD packet to send [09:11:52]OFD Sender: No OFD packet to send [09:11:57]OFD Sender: No OFD packet to send [09:12:02]OFD Sender: No OFD packet to send [09:12:07]OFD Sender: No OFD packet to send [09:12:12]OFD Sender: No OFD packet to send [09:12:17]OFD Sender: No OFD packet to send [09:12:22]OFD Sender: No OFD packet to send [09:12:27]OFD Sender: No OFD packet to send [09:12:32]OFD Sender: No OFD packet to send [09:12:37]OFD Sender: No OFD packet to send [09:12:42]OFD Sender: No OFD packet to send [09:12:47]OFD Sender: No OFD packet to send [09:12:52]OFD Sender: No OFD packet to send [09:12:57]OFD Sender: No OFD packet to send [09:13:02]OFD Sender: No OFD packet to send [09:13:07]OFD Sender: No OFD packet to send [09:13:12]OFD Sender: No OFD packet to send [09:13:17]OFD Sender: No OFD packet to send [09:13:22]OFD Sender: No OFD packet to send [09:13:27]OFD Sender: No OFD packet to send [09:13:32]OFD Sender: No OFD packet to send [09:13:37]OFD Sender: No OFD packet to send [09:13:42]OFD Sender: No OFD packet to send [09:13:47]OFD Sender: No OFD packet to send [09:13:52]OFD Sender: No OFD packet to send [09:13:57]OFD Sender: No OFD packet to send [09:14:02]OFD Sender: No OFD packet to send [09:14:07]OFD Sender: No OFD packet to send [09:14:12]OFD Sender: No OFD packet to send [09:14:17]OFD Sender: No OFD packet to send [09:14:22]OFD Sender: No OFD packet to send [09:14:27]OFD Sender: No OFD packet to send [09:14:33]OFD Sender: No OFD packet to send [09:14:38]OFD Sender: No OFD packet to send [09:14:43]OFD Sender: No OFD packet to send [09:14:48]OFD Sender: No OFD packet to send [09:14:53]OFD Sender: No OFD packet to send [09:14:58]OFD Sender: No OFD packet to send [09:15:03]OFD Sender: No OFD packet to send [09:15:08]OFD Sender: No OFD packet to send [09:15:13]OFD Sender: No OFD packet to send [09:15:18]OFD Sender: No OFD packet to send [09:15:23]OFD Sender: No OFD packet to send [09:15:28]OFD Sender: No OFD packet to send [09:15:33]OFD Sender: No OFD packet to send [09:15:38]OFD Sender: No OFD packet to send [09:15:43]OFD Sender: No OFD packet to send [09:15:48]OFD Sender: No OFD packet to send [09:15:53]OFD Sender: No OFD packet to send [09:15:58]OFD Sender: No OFD packet to send [09:16:03]OFD Sender: No OFD packet to send [09:16:08]OFD Sender: No OFD packet to send [09:16:13]OFD Sender: No OFD packet to send [09:16:18]OFD Sender: No OFD packet to send [09:16:23]OFD Sender: No OFD packet to send [09:16:28]OFD Sender: No OFD packet to send [09:16:33]OFD Sender: No OFD packet to send [09:16:38]OFD Sender: No OFD packet to send [09:16:43]OFD Sender: No OFD packet to send [09:16:48]OFD Sender: No OFD packet to send [09:16:53]OFD Sender: No OFD packet to send [09:16:58]OFD Sender: No OFD packet to send [09:17:03]OFD Sender: No OFD packet to send [09:17:08]OFD Sender: No OFD packet to send [09:17:13]OFD Sender: No OFD packet to send [09:17:18]OFD Sender: No OFD packet to send [09:17:23]OFD Sender: No OFD packet to send [09:17:28]OFD Sender: No OFD packet to send [09:17:33]OFD Sender: No OFD packet to send [09:17:38]OFD Sender: No OFD packet to send [09:17:43]OFD Sender: No OFD packet to send [09:17:48]OFD Sender: No OFD packet to send [09:17:53]OFD Sender: No OFD packet to send [09:17:58]OFD Sender: No OFD packet to send [09:18:03]OFD Sender: No OFD packet to send [09:18:08]OFD Sender: No OFD packet to send [09:18:13]OFD Sender: No OFD packet to send [09:18:18]OFD Sender: No OFD packet to send [09:18:23]OFD Sender: No OFD packet to send [09:18:28]OFD Sender: No OFD packet to send [09:18:33]OFD Sender: No OFD packet to send [09:18:38]OFD Sender: No OFD packet to send [09:18:43]OFD Sender: No OFD packet to send [09:18:48]OFD Sender: No OFD packet to send [09:18:53]OFD Sender: No OFD packet to send [09:18:58]OFD Sender: No OFD packet to send [09:19:03]OFD Sender: No OFD packet to send [09:19:08]OFD Sender: No OFD packet to send [09:19:13]OFD Sender: No OFD packet to send [09:19:18]OFD Sender: No OFD packet to send [09:19:23]OFD Sender: No OFD packet to send [09:19:28]OFD Sender: No OFD packet to send [09:19:33]OFD Sender: No OFD packet to send [09:19:38]OFD Sender: No OFD packet to send [09:19:43]OFD Sender: No OFD packet to send [09:19:48]OFD Sender: No OFD packet to send [09:19:53]OFD Sender: No OFD packet to send [09:19:58]OFD Sender: No OFD packet to send [09:20:03]OFD Sender: No OFD packet to send [09:20:08]OFD Sender: No OFD packet to send [09:20:13]OFD Sender: No OFD packet to send [09:20:18]OFD Sender: No OFD packet to send [09:20:23]OFD Sender: No OFD packet to send [09:20:28]OFD Sender: No OFD packet to send [09:20:33]OFD Sender: No OFD packet to send [09:20:38]OFD Sender: No OFD packet to send [09:20:43]OFD Sender: No OFD packet to send [09:20:48]OFD Sender: No OFD packet to send [09:20:53]OFD Sender: No OFD packet to send [09:20:58]OFD Sender: No OFD packet to send [09:21:03]OFD Sender: No OFD packet to send [09:21:08]OFD Sender: No OFD packet to send [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:23]OFD Sender: No OFD packet to send [09:21:28]OFD Sender: No OFD packet to send [09:21:33]OFD Sender: No OFD packet to send [09:21:38]OFD Sender: No OFD packet to send [09:21:38]accept exits with 7 [09:21:38]New connection [09:21:38]New thread 3066821988 created [09:21:38]Thread 3066965348 joined [09:21:38]Waiting for new connection... [09:21:38] Sock 7.Parse request [09:21:38]Sock 7.Check first char [09:21:38]Sock 7.First char is OK [09:21:38]request: POST /json_proto HTTP/1.0 [09:21:38]Method: POST [09:21:38]URL: /json_proto [09:21:38]Method is POST - this is cgi request [09:21:38]url: /json_proto [09:21:38]query_string will be loaded in cgi processing [09:21:38]execute_cgi json_proto POST (null) [09:21:38]execute_cgi path=json_proto method=POST [09:21:38]POST find Content-Length [09:21:38]Host: 172.17.39.68:8080 [09:21:38]Content-Length: 605 [09:21:38]Content-Type: application/json [09:21:38] [09:21:38]POST finish read [09:21:38]Found Content-Length = 605 [09:21:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214301", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "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" ] } } [09:21:38]execute_script... [09:21: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)214301", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "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" ] } } [09:21:38]POST & json_proto [09:21:38]process_json_proto [09:21:38]json parsed OK: [09:21:38]protocol is kg_v1.0 [09:21:38]action value=close_receipt [09:21:38]process_action close_receipt [09:21:38]cmd_close_receipt [09:21:38]MH_GetDate [09:21:38]Write to MH i2c: F0 00 00 0E 17 14 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 09 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: F0 09 00 0E 17 00 A6 3B 96 66 D6 48 95 66 13 [09:21:38]GetLastDocTimeStamp 1721120268 [09:21:38]current date 1721121702 [09:21:38]FM_GetShiftState [09:21:38]SAM_PROTO_GetShiftState [09:21:38]wFMCommunicate request_size=4 [09:21:38]MH_SAM_APDU [09:21:38]CAPDU: 80 13 01 00 [09:21:38]Write to MH i2c: E2 08 00 0F 17 80 13 01 00 00 00 00 00 A3 [09:21:38]Write i2c OK [09:21:38]MH_I2C_Read... [09:21:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:38]Read from MH i2c: E2 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 0E 00 [09:21:38]MH_I2C_Read... [09:21:38]Read from MH i2c: E2 0E 00 0F 17 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F2 [09:21:38]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:21:38]wFMCommunicate OK [09:21:38]SAM_PROTO_GetShiftState done [09:21:38]FM_GetShiftState done [09:21:38]opened in 1721088399 [09:21:38]opened+sec_in_day 1721174799 [09:21:38]quantity*price = 4500 [09:21:38]sum+1 = 4501 [09:21:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 39 16.07.2024 09:21 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31720 ФПД: 178792509702439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T092142&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31720&fm=178792509702439&tin=02508201610067®Number=0000000000098025&sum=4500 0 [09:21:39]StoreToDocumentArchive [09:21:39]shift 371 fd 31720 [09:21:39]save to /storage/0371/doc_00031720 [09:21:39]save last doc name /storage/0371/doc_00031720 to /storage/kkm_last_doc_name [09:21:39]save OK [09:21:39]Clear old archive folders... [09:21:39]ProcessDocumentItem done err = 0, tmpTLVsize=268 [09:21:39]tlvbuf is 0148D150 [09:21:39]SAM_PROTO_ClearQueue [09:21:39]wFMCommunicate request_size=4 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 09 00 00 [09:21:39]Write to MH i2c: E2 08 00 1C 17 80 09 00 00 00 00 00 00 A5 [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:39]Read from MH i2c: E2 03 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 1C 17 00 90 00 A7 [09:21:39]RAPDU: 90 00 [09:21:39]wFMCommunicate OK [09:21:39]SAM_PROTO_ClearQueue done [09:21:39]KKMCreateOFDPacket [09:21:39]OFDProtocolAddRootSTLVToBuf [09:21:39]FM_MakeSignedData [09:21:39]FM_MakeSignedData [09:21:39]SAM_PROTO_SignData [09:21:39]wFMCommunicate request_size=4 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 0D 01 02 [09:21:39]Write to MH i2c: E2 08 00 1D 17 80 0D 01 02 00 00 00 00 AD [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 [09:21:39]MH_I2C_Read... [09:21:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:39]Read from MH i2c: E2 03 00 [09:21:39]MH_I2C_Read... [09:21:39]Read from MH i2c: E2 03 00 1D 17 00 90 00 A8 [09:21:39]RAPDU: 90 00 [09:21:39]wFMCommunicate OK [09:21:39]wFMCommunicate request_size=255 [09:21:39]MH_SAM_APDU [09:21:39]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 27 00 00 00 F4 03 04 00 A6 3B 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [09:21:39]Write to MH i2c: E2 02 01 1E 17 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 27 00 00 00 F4 03 04 00 A6 3B 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 F7 [09:21:39]Write i2c OK [09:21:39]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 1E 17 00 90 00 A9 [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]wFMCommunicate request_size=27 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 02 02 16 35 33 38 39 10 04 04 00 E8 7B 00 00 35 04 06 00 A2 9C 60 07 81 27 [09:21:40]Write to MH i2c: E2 1E 00 1F 17 80 0D 02 02 16 00 35 33 38 39 10 04 04 00 E8 7B 00 00 35 04 06 00 A2 9C 60 07 81 27 00 00 BC [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:40]Read from MH i2c: E2 03 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 03 00 1F 17 00 90 00 AA [09:21:40]RAPDU: 90 00 [09:21:40]wFMCommunicate OK [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 0D 03 02 [09:21:40]Write to MH i2c: E2 08 00 20 17 80 0D 03 02 00 00 00 00 B2 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 0B 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 0B 00 20 17 00 B5 9D 1C 36 FE 24 2A 4F 90 00 F2 [09:21:40]RAPDU: B5 9D 1C 36 FE 24 2A 4F 90 00 [09:21:40]wFMCommunicate OK [09:21:40]SAM_PROTO_SignData done [09:21:40]FM_MakeSignedData done [09:21:40]CreateOFDProtocolMessage [09:21:40]wFMCommunicate request_size=4 [09:21:40]MH_SAM_APDU [09:21:40]CAPDU: 80 11 00 00 [09:21:40]Write to MH i2c: E2 08 00 21 17 80 11 00 00 00 00 00 00 B2 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:40]Read from MH i2c: E2 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 17 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: E2 17 00 21 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0D [09:21:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:21:40]wFMCommunicate OK [09:21:40]CreateOFDProtocolMessage done [09:21:40]OFDSenderStorePacket 31720 [09:21:40]StoreOFDPacket docnum=31720 [09:21:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 20 01 00 00 2D B7 18 01 F5 39 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 27 00 00 00 F4 03 04 00 A6 3B 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E8 7B 00 00 35 04 06 00 A2 9C 60 07 81 27 B5 9D 1C 36 FE 24 2A 4F [09:21:40]CheckFolder [09:21:40]dirname=/storage/ofd_packets [09:21:40]CheckFolder done [09:21:40]ProducePacketName [09:21:40]name=ofd_packets/00031720 [09:21:40]NVStorageSaveData ofd_packets/00031720 [09:21:40]File name is /storage/ofd_packets/00031720 [09:21:40]Write 318 bytes [09:21:40]NVStorageSaveData done [09:21:40]OFDSenderStorePacket done [09:21:40]KKMCreateOFDPacket done [09:21:40]NVStorageSaveData kkm_last_timestamp [09:21:40]File name is /storage/kkm_last_timestamp [09:21:40]Write 4 bytes [09:21:40]NVStorageSaveData done [09:21:40]ExternCall_PrintAddStr [09:21:40]wPrintStart [09:21:40]Write to MH i2c: 01 00 00 22 17 39 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 22 17 00 00 00 00 00 FF 0F 4E [09:21:40]RasterBufferAndPrint [09:21:40]line Счет N : (3)214301 [09:21:40]line ИНН: 02508201610067 [09:21:40]line Контрольно-Кассовый Чек [09:21:40]line ПРОДАЖА [09:21:40]line Товар: 50173976 [09:21:40]line Жев Orbit Winterfresh под [09:21:40]line 1.000 * 45.00 [09:21:40]line = 45.00 [09:21:40]line НДС 12% НСП 1% [09:21:40]line > о реализуемом товаре [09:21:40]line ИТОГО: 45.00 [09:21:40]line НСП 1% : 0.40 [09:21:40]line НДС 12% : 4.78 [09:21:40]line Наличными: 45.00 [09:21:40]line Безнал.: 0.00 [09:21:40]line Место: АЗС № 140 "Партнер Нефть" [09:21:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:21:40]line СНО: Общий режим [09:21:40]line Чек 39 16.07.2024 09:21 [09:21:40]line Смена: 371 ФФД: 1.0 [09:21:40]line ЗНМ: 0300000189 [09:21:40]line РНМ: 0000000000098025 [09:21:40]line Версия ККМ: 001 [09:21:40]line ФМ: 0000000000965389 [09:21:40]line ФД: 31720 [09:21:40]line ФПД: 178792509702439 [09:21:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T092142&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31720&fm=178792509702439&tin=02508201610067®Number=0000000000098025&sum=4500 [09:21:40]line 0 [09:21:40]written 0, free lines is 4095 [09:21:40]OFD Sender: Processing packet 31720 [packets to send 6, broken 5] [09:21:40]ProducePacketName [09:21:40]name=ofd_packets/00031720 [09:21:40]OFD Sender: To server: pG, [09:21:40]CommunicateWithHost lk.salyk.kg:30040 [09:21:40]ConnectInit lk.salyk.kg [09:21:40]Connected sock=10 [09:21:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 20 01 00 00 2D B7 18 01 F5 39 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 35 30 31 37 33 39 37 36 06 04 1F 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 69 6E 74 65 72 66 72 65 73 68 20 D0 BF D0 BE D0 B4 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 27 00 00 00 F4 03 04 00 A6 3B 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E8 7B 00 00 35 04 06 00 A2 9C 60 07 81 27 B5 9D 1C 36 FE 24 2A 4F [09:21:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 89 72 47 00 E0 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 35 33 38 39 10 04 04 00 E8 7B 00 00 F4 03 04 00 B3 E7 95 66 B6 04 01 00 00 AD CA FC 55 30 91 DA 5B [09:21:40]CommunicateWithHost err = 0 [09:21:40]CheckOFDResponse [09:21:40]1017 (14) - 77093643461234 [09:21:40]1041 (16) - 0000000000965389 [09:21:40]1040 (4) - 31720 [09:21:40]1012 (4) - 16.07.2024 03:23 [09:21:40]1206 (1) - 0 [09:21:40]OFD Sender: Remove packet 31720 [09:21:40]ProducePacketName [09:21:40]name=ofd_packets/00031720 [09:21:40]NVStorageDeleteData [09:21:40]Write to MH i2c: 01 00 00 4A 17 61 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: 01 07 00 4A 17 00 00 00 00 00 FA 0C 6E [09:21:40]RasterBufferAndPrint [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]line [09:21:40]written 0, free lines is 3337 [09:21:40]MH_Cut [09:21:40]Write to MH i2c: D1 01 00 51 17 01 3A [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 01 00 [09:21:40]MH_I2C_Read... [09:21:40]Read from MH i2c: D1 01 00 51 17 00 39 [09:21:40]Write to MH i2c: 01 00 00 52 17 69 [09:21:40]Write i2c OK [09:21:40]MH_I2C_Read... [09:21:41]OFD Sender: No OFD packet to send [09:21:41]*** Cut start [09:21:41]*** Partial cut [09:21:41]*** CUTSNS_PIN = 1 [09:21:41]*** CUTSNS_PIN = 0 [09:21:41]*** Brake cut motor [09:21:42]Read from MH i2c: 01 [09:21:42]MH_I2C_Read... [09:21:42]*** Stop cut motor [09:21:42]*** Cut end [09:21:42]Read from MH i2c: 01 07 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: 01 07 00 52 17 00 00 00 00 00 FF 0F 7E [09:21:42]process_action close_receipt done [09:21:42]requested_data is exist [09:21:42]produce_requested_data [09:21:42]requested_item fm.sn is exist - process it [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 11 00 00 [09:21:42]Write to MH i2c: E2 08 00 53 17 80 11 00 00 00 00 00 00 E4 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 17 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 17 00 53 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3F [09:21:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:21:42]wFMCommunicate OK [09:21:42]requested_item fd.num is exist - process it [09:21:42]SAM_PROTO_GetFieldsCounters [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 13 00 00 [09:21:42]Write to MH i2c: E2 08 00 54 17 80 13 00 00 00 00 00 00 E7 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 62 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 62 00 54 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E8 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [09:21: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E8 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:42]wFMCommunicate OK [09:21:42]SAM_PROTO_GetFieldsCounters done [09:21:42]requested_item shift.num is exist - process it [09:21:42]requested_item shift.opened is exist - process it [09:21:42]req_shift_opened [09:21:42]FM_GetShiftState [09:21:42]SAM_PROTO_GetShiftState [09:21:42]wFMCommunicate request_size=4 [09:21:42]MH_SAM_APDU [09:21:42]CAPDU: 80 13 01 00 [09:21:42]Write to MH i2c: E2 08 00 55 17 80 13 01 00 00 00 00 00 E9 [09:21:42]Write i2c OK [09:21:42]MH_I2C_Read... [09:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:42]Read from MH i2c: E2 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 0E 00 [09:21:42]MH_I2C_Read... [09:21:42]Read from MH i2c: E2 0E 00 55 17 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 38 [09:21:42]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:21:42]wFMCommunicate OK [09:21:42]SAM_PROTO_GetShiftState done [09:21:42]FM_GetShiftState done [09:21:42]req_shift_opened done [09:21:42]requested_item shift.open_date is exist - process it [09:21:42]req_shift_open_date [09:21:42]req_shift_open_date done [09:21:42]produce_requested_data done [09:21:42]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31720,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [09:21:42]process_action_free close_receipt [09:21:42]json_value_free [09:21:42]json_value_free done [09:21:42]process_json_proto returns [09:21:42]Send response to host [09:21:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31720,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [09:21:42]free response buf [09:21:42]execute_script done [09:21:42]execute_script returns [09:21:42]free content buf [09:21:42]Sock 7.Close socket [09:21:42]Sock 7.Thread stoped [09:21:46]OFD Sender: No OFD packet to send [09:21:51]OFD Sender: No OFD packet to send [09:21:56]OFD Sender: No OFD packet to send [09:22:01]OFD Sender: No OFD packet to send [09:22:06]OFD Sender: No OFD packet to send [09:22:11]OFD Sender: No OFD packet to send [09:22:16]OFD Sender: No OFD packet to send [09:22:21]OFD Sender: No OFD packet to send [09:22:26]OFD Sender: No OFD packet to send [09:22:31]OFD Sender: No OFD packet to send [09:22:36]OFD Sender: No OFD packet to send [09:22:41]OFD Sender: No OFD packet to send [09:22:46]OFD Sender: No OFD packet to send [09:22:51]OFD Sender: No OFD packet to send [09:22:56]OFD Sender: No OFD packet to send [09:23:01]OFD Sender: No OFD packet to send [09:23:06]OFD Sender: No OFD packet to send [09:23:11]OFD Sender: No OFD packet to send [09:23:14]accept exits with 9 [09:23:14]New connection [09:23:14]New thread 3066965348 created [09:23:14]Thread 3066821988 joined [09:23:14]Waiting for new connection... [09:23:14] Sock 9.Parse request [09:23:14]Sock 9.Check first char [09:23:14]Sock 9.First char is OK [09:23:14]request: POST /json_proto HTTP/1.0 [09:23:14]Method: POST [09:23:14]URL: /json_proto [09:23:14]Method is POST - this is cgi request [09:23:14]url: /json_proto [09:23:14]query_string will be loaded in cgi processing [09:23:14]execute_cgi json_proto POST (null) [09:23:14]execute_cgi path=json_proto method=POST [09:23:14]POST find Content-Length [09:23:14]Host: 172.17.39.68:8080 [09:23:14]Content-Length: 622 [09:23:14]Content-Type: application/json [09:23:14] [09:23:14]POST finish read [09:23:14]Found Content-Length = 622 [09:23:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214302", "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" ] } } [09:23:14]execute_script... [09:23: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)214302", "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" ] } } [09:23:14]POST & json_proto [09:23:14]process_json_proto [09:23:14]json parsed OK: [09:23:14]protocol is kg_v1.0 [09:23:14]action value=close_receipt [09:23:14]process_action close_receipt [09:23:14]cmd_close_receipt [09:23:14]MH_GetDate [09:23:14]Write to MH i2c: F0 00 00 56 17 5C [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: F0 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: F0 09 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: F0 09 00 56 17 00 06 3C 96 66 D6 48 95 66 BC [09:23:14]GetLastDocTimeStamp 1721121702 [09:23:14]current date 1721121798 [09:23:14]FM_GetShiftState [09:23:14]SAM_PROTO_GetShiftState [09:23:14]wFMCommunicate request_size=4 [09:23:14]MH_SAM_APDU [09:23:14]CAPDU: 80 13 01 00 [09:23:14]Write to MH i2c: E2 08 00 57 17 80 13 01 00 00 00 00 00 EB [09:23:14]Write i2c OK [09:23:14]MH_I2C_Read... [09:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:14]Read from MH i2c: E2 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 0E 00 [09:23:14]MH_I2C_Read... [09:23:14]Read from MH i2c: E2 0E 00 57 17 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 3A [09:23:14]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:23:14]wFMCommunicate OK [09:23:14]SAM_PROTO_GetShiftState done [09:23:14]FM_GetShiftState done [09:23:14]opened in 1721088399 [09:23:14]opened+sec_in_day 1721174799 [09:23:14]quantity*price = 15000 [09:23:14]sum+1 = 15001 [09:23:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 40 16.07.2024 09:23 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31721 ФПД: 39130324724789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T092318&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31721&fm=39130324724789&tin=02508201610067®Number=0000000000098025&sum=15000 0 [09:23:15]StoreToDocumentArchive [09:23:15]shift 371 fd 31721 [09:23:15]save to /storage/0371/doc_00031721 [09:23:15]save last doc name /storage/0371/doc_00031721 to /storage/kkm_last_doc_name [09:23:15]save OK [09:23:15]Clear old archive folders... [09:23:15]ProcessDocumentItem done err = 0, tmpTLVsize=274 [09:23:15]tlvbuf is B6EDD860 [09:23:15]SAM_PROTO_ClearQueue [09:23:15]wFMCommunicate request_size=4 [09:23:15]MH_SAM_APDU [09:23:15]CAPDU: 80 09 00 00 [09:23:15]Write to MH i2c: E2 08 00 64 17 80 09 00 00 00 00 00 00 ED [09:23:15]Write i2c OK [09:23:15]MH_I2C_Read... [09:23:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:15]Read from MH i2c: E2 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 03 00 [09:23:15]MH_I2C_Read... [09:23:15]Read from MH i2c: E2 03 00 64 17 00 90 00 EF [09:23:15]RAPDU: 90 00 [09:23:15]wFMCommunicate OK [09:23:15]SAM_PROTO_ClearQueue done [09:23:15]KKMCreateOFDPacket [09:23:15]OFDProtocolAddRootSTLVToBuf [09:23:15]FM_MakeSignedData [09:23:15]FM_MakeSignedData [09:23:15]SAM_PROTO_SignData [09:23:15]wFMCommunicate request_size=4 [09:23:15]MH_SAM_APDU [09:23:15]CAPDU: 80 0D 01 02 [09:23:15]Write to MH i2c: E2 08 00 65 17 80 0D 01 02 00 00 00 00 F5 [09:23:15]Write i2c OK [09:23:15]MH_I2C_Read... [09:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:16]Read from MH i2c: E2 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 03 00 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 03 00 65 17 00 90 00 F0 [09:23:16]RAPDU: 90 00 [09:23:16]wFMCommunicate OK [09:23:16]wFMCommunicate request_size=255 [09:23:16]MH_SAM_APDU [09:23:16]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 28 00 00 00 F4 03 04 00 06 3C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 [09:23:16]Write to MH i2c: E2 02 01 66 17 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 28 00 00 00 F4 03 04 00 06 3C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 00 00 E6 [09:23:16]Write i2c OK [09:23:16]MH_I2C_Read... [09:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:16]Read from MH i2c: E2 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 03 00 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 03 00 66 17 00 90 00 F1 [09:23:16]RAPDU: 90 00 [09:23:16]wFMCommunicate OK [09:23:16]wFMCommunicate request_size=33 [09:23:16]MH_SAM_APDU [09:23:16]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E9 7B 00 00 35 04 06 00 23 96 BD 1A EC 35 [09:23:16]Write to MH i2c: E2 24 00 67 17 80 0D 02 02 1C 00 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E9 7B 00 00 35 04 06 00 23 96 BD 1A EC 35 00 00 A4 [09:23:16]Write i2c OK [09:23:16]MH_I2C_Read... [09:23:16]OFD Sender: No OFD packet to send [09:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:16]Read from MH i2c: E2 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 03 00 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 03 00 67 17 00 90 00 F2 [09:23:16]RAPDU: 90 00 [09:23:16]wFMCommunicate OK [09:23:16]wFMCommunicate request_size=4 [09:23:16]MH_SAM_APDU [09:23:16]CAPDU: 80 0D 03 02 [09:23:16]Write to MH i2c: E2 08 00 68 17 80 0D 03 02 00 00 00 00 FA [09:23:16]Write i2c OK [09:23:16]MH_I2C_Read... [09:23:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:16]Read from MH i2c: E2 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 0B 00 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 0B 00 68 17 00 3A 8B 6C F0 1B 99 83 05 90 00 58 [09:23:16]RAPDU: 3A 8B 6C F0 1B 99 83 05 90 00 [09:23:16]wFMCommunicate OK [09:23:16]SAM_PROTO_SignData done [09:23:16]FM_MakeSignedData done [09:23:16]CreateOFDProtocolMessage [09:23:16]wFMCommunicate request_size=4 [09:23:16]MH_SAM_APDU [09:23:16]CAPDU: 80 11 00 00 [09:23:16]Write to MH i2c: E2 08 00 69 17 80 11 00 00 00 00 00 00 FA [09:23:16]Write i2c OK [09:23:16]MH_I2C_Read... [09:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:16]Read from MH i2c: E2 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 17 00 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: E2 17 00 69 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 55 [09:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:23:16]wFMCommunicate OK [09:23:16]CreateOFDProtocolMessage done [09:23:16]OFDSenderStorePacket 31721 [09:23:16]StoreOFDPacket docnum=31721 [09:23:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 26 01 00 00 4B 1B 1E 01 5D A0 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 28 00 00 00 F4 03 04 00 06 3C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E9 7B 00 00 35 04 06 00 23 96 BD 1A EC 35 3A 8B 6C F0 1B 99 83 05 [09:23:16]CheckFolder [09:23:16]dirname=/storage/ofd_packets [09:23:16]CheckFolder done [09:23:16]ProducePacketName [09:23:16]name=ofd_packets/00031721 [09:23:16]NVStorageSaveData ofd_packets/00031721 [09:23:16]File name is /storage/ofd_packets/00031721 [09:23:16]Write 324 bytes [09:23:16]NVStorageSaveData done [09:23:16]OFDSenderStorePacket done [09:23:16]KKMCreateOFDPacket done [09:23:16]NVStorageSaveData kkm_last_timestamp [09:23:16]File name is /storage/kkm_last_timestamp [09:23:16]Write 4 bytes [09:23:16]NVStorageSaveData done [09:23:16]ExternCall_PrintAddStr [09:23:16]wPrintStart [09:23:16]Write to MH i2c: 01 00 00 6A 17 81 [09:23:16]Write i2c OK [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: 01 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: 01 07 00 [09:23:16]MH_I2C_Read... [09:23:16]Read from MH i2c: 01 07 00 6A 17 00 00 00 00 00 FF 0F 96 [09:23:16]RasterBufferAndPrint [09:23:16]line Счет N : (3)214302 [09:23:16]line ИНН: 02508201610067 [09:23:16]line Контрольно-Кассовый Чек [09:23:16]line ПРОДАЖА [09:23:16]line Товар: 46230614 [09:23:16]line Сигареты Richmond Red Edition [09:23:16]line 1.000 * 150.00 [09:23:16]line = 150.00 [09:23:16]line НДС 12% НСП 1% [09:23:16]line > о реализуемом товаре [09:23:16]line ИТОГО: 150.00 [09:23:16]line НСП 1% : 1.33 [09:23:16]line НДС 12% : 15.93 [09:23:16]line Наличными: 150.00 [09:23:16]line Безнал.: 0.00 [09:23:16]line Место: АЗС № 140 "Партнер Нефть" [09:23:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:23:16]line СНО: Общий режим [09:23:16]line Чек 40 16.07.2024 09:23 [09:23:16]line Смена: 371 ФФД: 1.0 [09:23:16]line ЗНМ: 0300000189 [09:23:16]line РНМ: 0000000000098025 [09:23:16]line Версия ККМ: 001 [09:23:16]line ФМ: 0000000000965389 [09:23:16]line ФД: 31721 [09:23:16]line ФПД: 39130324724789 [09:23:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T092318&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31721&fm=39130324724789&tin=02508201610067®Number=0000000000098025&sum=15000 [09:23:16]line 0 [09:23:16]OFD Sender: Processing packet 31721 [packets to send 6, broken 5] [09:23:16]ProducePacketName [09:23:16]name=ofd_packets/00031721 [09:23:16]OFD Sender: To server: pG, [09:23:16]CommunicateWithHost lk.salyk.kg:30040 [09:23:16]ConnectInit lk.salyk.kg [09:23:16]written 0, free lines is 4095 [09:23:16]Connected sock=10 [09:23:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 26 01 00 00 4B 1B 1E 01 5D A0 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 28 00 00 00 F4 03 04 00 06 3C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E9 7B 00 00 35 04 06 00 23 96 BD 1A EC 35 3A 8B 6C F0 1B 99 83 05 [09:23:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 E8 DC 47 00 AC E6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 E9 7B 00 00 F4 03 04 00 14 E8 95 66 B6 04 01 00 00 B7 05 87 3B 54 16 9A ED [09:23:17]CommunicateWithHost err = 0 [09:23:17]CheckOFDResponse [09:23:17]1017 (14) - 77093643461234 [09:23:17]1041 (16) - 0000000000965389 [09:23:17]1040 (4) - 31721 [09:23:17]1012 (4) - 16.07.2024 03:25 [09:23:17]1206 (1) - 0 [09:23:17]OFD Sender: Remove packet 31721 [09:23:17]ProducePacketName [09:23:17]name=ofd_packets/00031721 [09:23:17]NVStorageDeleteData [09:23:17]Write to MH i2c: 01 00 00 93 17 AA [09:23:17]Write i2c OK [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: 01 [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: 01 07 00 [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: 01 07 00 93 17 00 00 00 00 00 D1 0C 8E [09:23:17]RasterBufferAndPrint [09:23:17]line [09:23:17]line [09:23:17]line [09:23:17]line [09:23:17]line [09:23:17]written 0, free lines is 3287 [09:23:17]MH_Cut [09:23:17]Write to MH i2c: D1 01 00 9A 17 01 83 [09:23:17]Write i2c OK [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: D1 [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: D1 01 00 [09:23:17]MH_I2C_Read... [09:23:17]Read from MH i2c: D1 01 00 9A 17 00 82 [09:23:17]Write to MH i2c: 01 00 00 9B 17 B2 [09:23:17]Write i2c OK [09:23:17]MH_I2C_Read... [09:23:17]OFD Sender: No OFD packet to send [09:23:17]*** Cut start [09:23:17]*** Partial cut [09:23:17]*** CUTSNS_PIN = 1 [09:23:18]*** CUTSNS_PIN = 0 [09:23:18]*** Brake cut motor [09:23:18]Read from MH i2c: 01 [09:23:18]MH_I2C_Read... [09:23:18]*** Stop cut motor [09:23:18]*** Cut end [09:23:18]Read from MH i2c: 01 07 00 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: 01 07 00 9B 17 00 00 00 00 00 FF 0F C7 [09:23:18]process_action close_receipt done [09:23:18]requested_data is exist [09:23:18]produce_requested_data [09:23:18]requested_item fm.sn is exist - process it [09:23:18]wFMCommunicate request_size=4 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 11 00 00 [09:23:18]Write to MH i2c: E2 08 00 9C 17 80 11 00 00 00 00 00 00 2D [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 [09:23:18]MH_I2C_Read... [09:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:18]Read from MH i2c: E2 17 00 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 17 00 9C 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 88 [09:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:23:18]wFMCommunicate OK [09:23:18]requested_item fd.num is exist - process it [09:23:18]SAM_PROTO_GetFieldsCounters [09:23:18]wFMCommunicate request_size=4 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 13 00 00 [09:23:18]Write to MH i2c: E2 08 00 9D 17 80 13 00 00 00 00 00 00 30 [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:18]Read from MH i2c: E2 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 62 00 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 62 00 9D 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E9 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [09:23:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 E9 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:18]wFMCommunicate OK [09:23:18]SAM_PROTO_GetFieldsCounters done [09:23:18]requested_item shift.num is exist - process it [09:23:18]requested_item shift.opened is exist - process it [09:23:18]req_shift_opened [09:23:18]FM_GetShiftState [09:23:18]SAM_PROTO_GetShiftState [09:23:18]wFMCommunicate request_size=4 [09:23:18]MH_SAM_APDU [09:23:18]CAPDU: 80 13 01 00 [09:23:18]Write to MH i2c: E2 08 00 9E 17 80 13 01 00 00 00 00 00 32 [09:23:18]Write i2c OK [09:23:18]MH_I2C_Read... [09:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:18]Read from MH i2c: E2 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 0E 00 [09:23:18]MH_I2C_Read... [09:23:18]Read from MH i2c: E2 0E 00 9E 17 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 81 [09:23:18]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:23:18]wFMCommunicate OK [09:23:18]SAM_PROTO_GetShiftState done [09:23:18]FM_GetShiftState done [09:23:18]req_shift_opened done [09:23:18]requested_item shift.open_date is exist - process it [09:23:18]req_shift_open_date [09:23:18]req_shift_open_date done [09:23:18]produce_requested_data done [09:23:18]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31721,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [09:23:18]process_action_free close_receipt [09:23:18]json_value_free [09:23:18]json_value_free done [09:23:18]process_json_proto returns [09:23:18]Send response to host [09:23:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31721,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [09:23:18]free response buf [09:23:18]execute_script done [09:23:18]execute_script returns [09:23:18]free content buf [09:23:18]Sock 9.Close socket [09:23:18]Sock 9.Thread stoped [09:23:22]OFD Sender: No OFD packet to send [09:23:27]OFD Sender: No OFD packet to send [09:23:32]OFD Sender: No OFD packet to send [09:23:37]OFD Sender: No OFD packet to send [09:23:42]OFD Sender: No OFD packet to send [09:23:47]OFD Sender: No OFD packet to send [09:23:52]OFD Sender: No OFD packet to send [09:23:57]OFD Sender: No OFD packet to send [09:24:02]OFD Sender: No OFD packet to send [09:24:07]OFD Sender: No OFD packet to send [09:24:12]OFD Sender: No OFD packet to send [09:24:17]OFD Sender: No OFD packet to send [09:24:22]OFD Sender: No OFD packet to send [09:24:27]OFD Sender: No OFD packet to send [09:24:32]OFD Sender: No OFD packet to send [09:24:37]OFD Sender: No OFD packet to send [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]OFD Sender: No OFD packet to send [09:27:12]OFD Sender: No OFD packet to send [09:27:17]OFD Sender: No OFD packet to send [09:27:22]OFD Sender: No OFD packet to send [09:27:27]OFD Sender: No OFD packet to send [09:27:32]OFD Sender: No OFD packet to send [09:27:37]OFD Sender: No OFD packet to send [09:27:42]OFD Sender: No OFD packet to send [09:27:47]OFD Sender: No OFD packet to send [09:27:52]OFD Sender: No OFD packet to send [09:27:57]OFD Sender: No OFD packet to send [09:28:02]OFD Sender: No OFD packet to send [09:28:07]OFD Sender: No OFD packet to send [09:28:12]OFD Sender: No OFD packet to send [09:28:17]OFD Sender: No OFD packet to send [09:28:22]OFD Sender: No OFD packet to send [09:28:27]OFD Sender: No OFD packet to send [09:28:32]OFD Sender: No OFD packet to send [09:28:37]OFD Sender: No OFD packet to send [09:28:42]OFD Sender: No OFD packet to send [09:28:47]OFD Sender: No OFD packet to send [09:28:52]OFD Sender: No OFD packet to send [09:28:57]OFD Sender: No OFD packet to send [09:29:02]OFD Sender: No OFD packet to send [09:29:07]OFD Sender: No OFD packet to send [09:29:12]OFD Sender: No OFD packet to send [09:29:17]OFD Sender: No OFD packet to send [09:29:22]OFD Sender: No OFD packet to send [09:29:27]OFD Sender: No OFD packet to send [09:29:32]OFD Sender: No OFD packet to send [09:29:37]OFD Sender: No OFD packet to send [09:29:42]OFD Sender: No OFD packet to send [09:29:47]OFD Sender: No OFD packet to send [09:29:52]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:31:02]OFD Sender: No OFD packet to send [09:31:07]OFD Sender: No OFD packet to send [09:31:12]OFD Sender: No OFD packet to send [09:31:17]OFD Sender: No OFD packet to send [09:31:22]OFD Sender: No OFD packet to send [09:31:27]OFD Sender: No OFD packet to send [09:31:33]OFD Sender: No OFD packet to send [09:31:38]OFD Sender: No OFD packet to send [09:31:43]OFD Sender: No OFD packet to send [09:31:48]OFD Sender: No OFD packet to send [09:31:53]OFD Sender: No OFD packet to send [09:31:58]OFD Sender: No OFD packet to send [09:32:03]OFD Sender: No OFD packet to send [09:32:08]OFD Sender: No OFD packet to send [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]OFD Sender: No OFD packet to send [09:32:28]OFD Sender: No OFD packet to send [09:32:33]OFD Sender: No OFD packet to send [09:32:38]OFD Sender: No OFD packet to send [09:32:43]OFD Sender: No OFD packet to send [09:32:48]OFD Sender: No OFD packet to send [09:32:53]OFD Sender: No OFD packet to send [09:32:58]OFD Sender: No OFD packet to send [09:33:03]OFD Sender: No OFD packet to send [09:33:08]OFD Sender: No OFD packet to send [09:33:13]OFD Sender: No OFD packet to send [09:33:18]OFD Sender: No OFD packet to send [09:33:23]OFD Sender: No OFD packet to send [09:33:28]OFD Sender: No OFD packet to send [09:33:33]OFD Sender: No OFD packet to send [09:33:38]OFD Sender: No OFD packet to send [09:33:43]OFD Sender: No OFD packet to send [09:33:48]OFD Sender: No OFD packet to send [09:33:53]OFD Sender: No OFD packet to send [09:33:58]OFD Sender: No OFD packet to send [09:34:03]OFD Sender: No OFD packet to send [09:34:08]OFD Sender: No OFD packet to send [09:34:13]OFD Sender: No OFD packet to send [09:34:18]OFD Sender: No OFD packet to send [09:34:23]OFD Sender: No OFD packet to send [09:34:28]OFD Sender: No OFD packet to send [09:34:33]OFD Sender: No OFD packet to send [09:34:38]OFD Sender: No OFD packet to send [09:34:43]OFD Sender: No OFD packet to send [09:34:48]OFD Sender: No OFD packet to send [09:34:53]OFD Sender: No OFD packet to send [09:34:58]OFD Sender: No OFD packet to send [09:35:03]OFD Sender: No OFD packet to send [09:35:08]OFD Sender: No OFD packet to send [09:35:13]OFD Sender: No OFD packet to send [09:35:18]OFD Sender: No OFD packet to send [09:35:23]OFD Sender: No OFD packet to send [09:35:28]OFD Sender: No OFD packet to send [09:35:33]OFD Sender: No OFD packet to send [09:35:38]OFD Sender: No OFD packet to send [09:35:43]OFD Sender: No OFD packet to send [09:35:48]OFD Sender: No OFD packet to send [09:35:53]OFD Sender: No OFD packet to send [09:35:58]OFD Sender: No OFD packet to send [09:36:03]OFD Sender: No OFD packet to send [09:36:08]OFD Sender: No OFD packet to send [09:36:13]OFD Sender: No OFD packet to send [09:36:18]OFD Sender: No OFD packet to send [09:36:23]OFD Sender: No OFD packet to send [09:36:28]OFD Sender: No OFD packet to send [09:36:33]OFD Sender: No OFD packet to send [09:36:38]OFD Sender: No OFD packet to send [09:36:43]OFD Sender: No OFD packet to send [09:36:48]OFD Sender: No OFD packet to send [09:36:53]OFD Sender: No OFD packet to send [09:36:58]OFD Sender: No OFD packet to send [09:37:03]OFD Sender: No OFD packet to send [09:37:08]OFD Sender: No OFD packet to send [09:37:13]OFD Sender: No OFD packet to send [09:37:18]OFD Sender: No OFD packet to send [09:37:23]OFD Sender: No OFD packet to send [09:37:28]OFD Sender: No OFD packet to send [09:37:33]OFD Sender: No OFD packet to send [09:37:38]OFD Sender: No OFD packet to send [09:37:43]OFD Sender: No OFD packet to send [09:37:48]OFD Sender: No OFD packet to send [09:37:53]OFD Sender: No OFD packet to send [09:37:58]OFD Sender: No OFD packet to send [09:38:00]accept exits with 7 [09:38:00]New connection [09:38:00]New thread 3066821988 created [09:38:00]Thread 3066965348 joined [09:38:00]Waiting for new connection... [09:38:00] Sock 7.Parse request [09:38:00]Sock 7.Check first char [09:38:00]Sock 7.First char is OK [09:38:00]request: POST /json_proto HTTP/1.0 [09:38:00]Method: POST [09:38:00]URL: /json_proto [09:38:00]Method is POST - this is cgi request [09:38:00]url: /json_proto [09:38:00]query_string will be loaded in cgi processing [09:38:00]execute_cgi json_proto POST (null) [09:38:00]execute_cgi path=json_proto method=POST [09:38:00]POST find Content-Length [09:38:00]Host: 172.17.39.68:8080 [09:38:00]Content-Length: 978 [09:38:00]Content-Type: application/json [09:38:00] [09:38:00]POST finish read [09:38:00]Found Content-Length = 978 [09:38:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214303", "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" : 4.000, "sum" : 520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:00]execute_script... [09:38:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214303", "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" : 4.000, "sum" : 520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 590.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:00]POST & json_proto [09:38:00]process_json_proto [09:38:00]json parsed OK: [09:38:00]protocol is kg_v1.0 [09:38:00]action value=close_receipt [09:38:00]process_action close_receipt [09:38:00]cmd_close_receipt [09:38:00]MH_GetDate [09:38:00]Write to MH i2c: F0 00 00 9F 17 A5 [09:38:00]Write i2c OK [09:38:00]MH_I2C_Read... [09:38:00]Read from MH i2c: F0 [09:38:00]MH_I2C_Read... [09:38:00]Read from MH i2c: F0 09 00 [09:38:00]MH_I2C_Read... [09:38:00]Read from MH i2c: F0 09 00 9F 17 00 7C 3F 96 66 D6 48 95 66 7E [09:38:00]GetLastDocTimeStamp 1721121798 [09:38:00]current date 1721122684 [09:38:00]FM_GetShiftState [09:38:00]SAM_PROTO_GetShiftState [09:38:00]wFMCommunicate request_size=4 [09:38:00]MH_SAM_APDU [09:38:00]CAPDU: 80 13 01 00 [09:38:00]Write to MH i2c: E2 08 00 A0 17 80 13 01 00 00 00 00 00 34 [09:38:00]Write i2c OK [09:38:00]MH_I2C_Read... [09:38:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:00]Read from MH i2c: E2 [09:38:00]MH_I2C_Read... [09:38:00]Read from MH i2c: E2 0E 00 [09:38:00]MH_I2C_Read... [09:38:00]Read from MH i2c: E2 0E 00 A0 17 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 83 [09:38:00]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:38:00]wFMCommunicate OK [09:38:00]SAM_PROTO_GetShiftState done [09:38:00]FM_GetShiftState done [09:38:00]opened in 1721088399 [09:38:00]opened+sec_in_day 1721174799 [09:38:00]quantity*price = 52000 [09:38:00]sum+1 = 52001 [09:38:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007110073 Сэндвич с кетчупом Талас Даамы 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 590.00 НСП 1% : 5.22 НДС 12% : 62.65 Наличными: 590.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 41 16.07.2024 09:38 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31722 ФПД: 118773119849964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T093804&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31722&fm=118773119849964&tin=02508201610067®Number=0000000000098025&sum=59000 0 [09:38:02]StoreToDocumentArchive [09:38:02]shift 371 fd 31722 [09:38:02]save to /storage/0371/doc_00031722 [09:38:02]save last doc name /storage/0371/doc_00031722 to /storage/kkm_last_doc_name [09:38:02]save OK [09:38:02]Clear old archive folders... [09:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=410 [09:38:02]tlvbuf is B6EDD4B0 [09:38:02]SAM_PROTO_ClearQueue [09:38:02]wFMCommunicate request_size=4 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 09 00 00 [09:38:02]Write to MH i2c: E2 08 00 AD 17 80 09 00 00 00 00 00 00 36 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 AD 17 00 90 00 38 [09:38:02]RAPDU: 90 00 [09:38:02]wFMCommunicate OK [09:38:02]SAM_PROTO_ClearQueue done [09:38:02]KKMCreateOFDPacket [09:38:02]OFDProtocolAddRootSTLVToBuf [09:38:02]FM_MakeSignedData [09:38:02]FM_MakeSignedData [09:38:02]SAM_PROTO_SignData [09:38:02]wFMCommunicate request_size=4 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 0D 01 02 [09:38:02]Write to MH i2c: E2 08 00 AE 17 80 0D 01 02 00 00 00 00 3E [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 AE 17 00 90 00 39 [09:38:02]RAPDU: 90 00 [09:38:02]wFMCommunicate OK [09:38:02]wFMCommunicate request_size=255 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 0D 02 02 FA 03 00 9A 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 A0 0F 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 20 CB 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 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [09:38:02]Write to MH i2c: E2 02 01 AF 17 80 0D 02 02 FA 00 03 00 9A 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 A0 0F 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 20 CB 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 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 57 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 AF 17 00 90 00 3A [09:38:02]RAPDU: 90 00 [09:38:02]wFMCommunicate OK [09:38:02]wFMCommunicate request_size=169 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 0D 02 02 A4 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 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 29 00 00 00 F4 03 04 00 7C 3F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EA 7B 00 00 35 04 06 00 6C 06 05 9E 15 EC [09:38:02]Write to MH i2c: E2 AC 00 B0 17 80 0D 02 02 A4 00 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 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 29 00 00 00 F4 03 04 00 7C 3F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EA 7B 00 00 35 04 06 00 6C 06 05 9E 15 EC 00 00 FE [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 03 00 B0 17 00 90 00 3B [09:38:02]RAPDU: 90 00 [09:38:02]wFMCommunicate OK [09:38:02]wFMCommunicate request_size=4 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 0D 03 02 [09:38:02]Write to MH i2c: E2 08 00 B1 17 80 0D 03 02 00 00 00 00 43 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 0B 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 0B 00 B1 17 00 69 F5 74 0E E4 AC D2 A6 90 00 2C [09:38:02]RAPDU: 69 F5 74 0E E4 AC D2 A6 90 00 [09:38:02]wFMCommunicate OK [09:38:02]SAM_PROTO_SignData done [09:38:02]FM_MakeSignedData done [09:38:02]CreateOFDProtocolMessage [09:38:02]wFMCommunicate request_size=4 [09:38:02]MH_SAM_APDU [09:38:02]CAPDU: 80 11 00 00 [09:38:02]Write to MH i2c: E2 08 00 B2 17 80 11 00 00 00 00 00 00 43 [09:38:02]Write i2c OK [09:38:02]MH_I2C_Read... [09:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:02]Read from MH i2c: E2 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 17 00 [09:38:02]MH_I2C_Read... [09:38:02]Read from MH i2c: E2 17 00 B2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9E [09:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:38:02]wFMCommunicate OK [09:38:02]CreateOFDProtocolMessage done [09:38:02]OFDSenderStorePacket 31722 [09:38:02]StoreOFDPacket docnum=31722 [09:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AE 01 00 00 24 09 A6 01 A3 0E 5A 03 01 00 03 00 9A 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 A0 0F 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 20 CB 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 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 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 29 00 00 00 F4 03 04 00 7C 3F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EA 7B 00 00 35 04 06 00 6C 06 05 9E 15 EC 69 F5 74 0E E4 AC D2 A6 [09:38:02]CheckFolder [09:38:02]dirname=/storage/ofd_packets [09:38:02]CheckFolder done [09:38:02]ProducePacketName [09:38:02]name=ofd_packets/00031722 [09:38:02]NVStorageSaveData ofd_packets/00031722 [09:38:02]File name is /storage/ofd_packets/00031722 [09:38:02]Write 460 bytes [09:38:02]NVStorageSaveData done [09:38:02]OFDSenderStorePacket done [09:38:02]KKMCreateOFDPacket done [09:38:02]NVStorageSaveData kkm_last_timestamp [09:38:02]File name is /storage/kkm_last_timestamp [09:38:02]Write 4 bytes [09:38:02]NVStorageSaveData done [09:38:02]ExternCall_PrintAddStr [09:38:02]wPrintStart [09:38:02]Write to MH i2c: 01 00 00 B3 17 CA [09:38:03]OFD Sender: Processing packet 31722 [packets to send 6, broken 5] [09:38:03]ProducePacketName [09:38:03]name=ofd_packets/00031722 [09:38:03]OFD Sender: To server: pG, [09:38:03]CommunicateWithHost lk.salyk.kg:30040 [09:38:03]ConnectInit lk.salyk.kg [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 07 00 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 07 00 B3 17 00 00 00 00 00 FF 0F DF [09:38:03]RasterBufferAndPrint [09:38:03]line Счет N : (3)214303 [09:38:03]line ИНН: 02508201610067 [09:38:03]line Контрольно-Кассовый Чек [09:38:03]line ПРОДАЖА [09:38:03]line Товар: 2000036220012 [09:38:03]line Кофе Капучино XL(GABB TRADE) [09:38:03]line 4.000 * 130.00 [09:38:03]line = 520.00 [09:38:03]line НДС 12% НСП 1% [09:38:03]line > о реализуемом товаре [09:38:03]line Товар: 4700007110073 [09:38:03]line Сэндвич с кетчупом Талас Даамы [09:38:03]line 1.000 * 70.00 [09:38:03]line = 70.00 [09:38:03]line НДС 12% НСП 1% [09:38:03]line > о реализуемом товаре [09:38:03]line ИТОГО: 590.00 [09:38:03]line НСП 1% : 5.22 [09:38:03]line НДС 12% : 62.65 [09:38:03]line Наличными: 590.00 [09:38:03]line Безнал.: 0.00 [09:38:03]line Место: АЗС № 140 "Партнер Нефть" [09:38:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:38:03]line СНО: Общий режим [09:38:03]line Чек 41 16.07.2024 09:38 [09:38:03]line Смена: 371 ФФД: 1.0 [09:38:03]line ЗНМ: 0300000189 [09:38:03]line РНМ: 0000000000098025 [09:38:03]line Версия ККМ: 001 [09:38:03]line ФМ: 0000000000965389 [09:38:03]line ФД: 31722 [09:38:03]line ФПД: 118773119849964 [09:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T093804&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31722&fm=118773119849964&tin=02508201610067®Number=0000000000098025&sum=59000 [09:38:03]line 0 [09:38:03]written 0, free lines is 4095 [09:38:03]Connected sock=10 [09:38:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AE 01 00 00 24 09 A6 01 A3 0E 5A 03 01 00 03 00 9A 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 A0 0F 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 20 CB 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 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 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 29 00 00 00 F4 03 04 00 7C 3F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EA 7B 00 00 35 04 06 00 6C 06 05 9E 15 EC 69 F5 74 0E E4 AC D2 A6 [09:38:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 E2 A4 47 00 FE C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EA 7B 00 00 F4 03 04 00 8A EB 95 66 B6 04 01 00 00 3E 21 04 E5 74 C1 E8 9F [09:38:03]CommunicateWithHost err = 0 [09:38:03]CheckOFDResponse [09:38:03]1017 (14) - 77093643461234 [09:38:03]1041 (16) - 0000000000965389 [09:38:03]1040 (4) - 31722 [09:38:03]1012 (4) - 16.07.2024 03:39 [09:38:03]1206 (1) - 0 [09:38:03]OFD Sender: Remove packet 31722 [09:38:03]ProducePacketName [09:38:03]name=ofd_packets/00031722 [09:38:03]NVStorageDeleteData [09:38:03]Write to MH i2c: 01 00 00 E3 17 FA [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 07 00 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: 01 07 00 E3 17 00 00 00 00 00 93 0C A0 [09:38:03]RasterBufferAndPrint [09:38:03]line [09:38:03]line [09:38:03]line [09:38:03]line [09:38:03]line [09:38:03]written 0, free lines is 3227 [09:38:03]MH_Cut [09:38:03]Write to MH i2c: D1 01 00 EA 17 01 D3 [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: D1 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: D1 01 00 [09:38:03]MH_I2C_Read... [09:38:03]Read from MH i2c: D1 01 00 EA 17 00 D2 [09:38:03]Write to MH i2c: 01 00 00 EB 17 02 [09:38:03]Write i2c OK [09:38:03]MH_I2C_Read... [09:38:03]OFD Sender: No OFD packet to send [09:38:04]*** Cut start [09:38:04]*** Partial cut [09:38:04]*** CUTSNS_PIN = 1 [09:38:04]*** CUTSNS_PIN = 0 [09:38:04]*** Brake cut motor [09:38:05]Read from MH i2c: 01 [09:38:05]MH_I2C_Read... [09:38:05]*** Stop cut motor [09:38:05]*** Cut end [09:38:05]Read from MH i2c: 01 07 00 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: 01 07 00 EB 17 00 00 00 00 00 FF 0F 17 [09:38:05]process_action close_receipt done [09:38:05]requested_data is exist [09:38:05]produce_requested_data [09:38:05]requested_item fm.sn is exist - process it [09:38:05]wFMCommunicate request_size=4 [09:38:05]MH_SAM_APDU [09:38:05]CAPDU: 80 11 00 00 [09:38:05]Write to MH i2c: E2 08 00 EC 17 80 11 00 00 00 00 00 00 7D [09:38:05]Write i2c OK [09:38:05]MH_I2C_Read... [09:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:05]Read from MH i2c: E2 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 17 00 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 17 00 EC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D8 [09:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:38:05]wFMCommunicate OK [09:38:05]requested_item fd.num is exist - process it [09:38:05]SAM_PROTO_GetFieldsCounters [09:38:05]wFMCommunicate request_size=4 [09:38:05]MH_SAM_APDU [09:38:05]CAPDU: 80 13 00 00 [09:38:05]Write to MH i2c: E2 08 00 ED 17 80 13 00 00 00 00 00 00 80 [09:38:05]Write i2c OK [09:38:05]MH_I2C_Read... [09:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:05]Read from MH i2c: E2 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 62 00 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 62 00 ED 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 EA 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [09:38:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 EA 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:05]wFMCommunicate OK [09:38:05]SAM_PROTO_GetFieldsCounters done [09:38:05]requested_item shift.num is exist - process it [09:38:05]requested_item shift.opened is exist - process it [09:38:05]req_shift_opened [09:38:05]FM_GetShiftState [09:38:05]SAM_PROTO_GetShiftState [09:38:05]wFMCommunicate request_size=4 [09:38:05]MH_SAM_APDU [09:38:05]CAPDU: 80 13 01 00 [09:38:05]Write to MH i2c: E2 08 00 EE 17 80 13 01 00 00 00 00 00 82 [09:38:05]Write i2c OK [09:38:05]MH_I2C_Read... [09:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:05]Read from MH i2c: E2 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 0E 00 [09:38:05]MH_I2C_Read... [09:38:05]Read from MH i2c: E2 0E 00 EE 17 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 D1 [09:38:05]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:38:05]wFMCommunicate OK [09:38:05]SAM_PROTO_GetShiftState done [09:38:05]FM_GetShiftState done [09:38:05]req_shift_opened done [09:38:05]requested_item shift.open_date is exist - process it [09:38:05]req_shift_open_date [09:38:05]req_shift_open_date done [09:38:05]produce_requested_data done [09:38:05]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31722,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [09:38:05]process_action_free close_receipt [09:38:05]json_value_free [09:38:05]json_value_free done [09:38:05]process_json_proto returns [09:38:05]Send response to host [09:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31722,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [09:38:05]free response buf [09:38:05]execute_script done [09:38:05]execute_script returns [09:38:05]free content buf [09:38:05]Sock 7.Close socket [09:38:05]Sock 7.Thread stoped [09:38:08]OFD Sender: No OFD packet to send [09:38:13]OFD Sender: No OFD packet to send [09:38:18]OFD Sender: No OFD packet to send [09:38:23]OFD Sender: No OFD packet to send [09:38:28]OFD Sender: No OFD packet to send [09:38:31]accept exits with 9 [09:38:31]New connection [09:38:31]New thread 3066965348 created [09:38:31]Thread 3066821988 joined [09:38:31]Waiting for new connection... [09:38:31] Sock 9.Parse request [09:38:31]Sock 9.Check first char [09:38:31]Sock 9.First char is OK [09:38:31]request: POST /json_proto HTTP/1.0 [09:38:31]Method: POST [09:38:31]URL: /json_proto [09:38:31]Method is POST - this is cgi request [09:38:31]url: /json_proto [09:38:31]query_string will be loaded in cgi processing [09:38:31]execute_cgi json_proto POST (null) [09:38:31]execute_cgi path=json_proto method=POST [09:38:31]POST find Content-Length [09:38:31]Host: 172.17.39.68:8080 [09:38:31]Content-Length: 646 [09:38:31]Content-Type: application/json [09:38:31] [09:38:31]POST finish read [09:38:31]Found Content-Length = 646 [09:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214304", "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" ] } } [09:38:31]execute_script... [09:38: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)214304", "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" ] } } [09:38:31]POST & json_proto [09:38:31]process_json_proto [09:38:31]json parsed OK: [09:38:31]protocol is kg_v1.0 [09:38:31]action value=close_receipt [09:38:31]process_action close_receipt [09:38:31]cmd_close_receipt [09:38:31]MH_GetDate [09:38:31]Write to MH i2c: F0 00 00 EF 17 F5 [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: F0 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: F0 09 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: F0 09 00 EF 17 00 9B 3F 96 66 D6 48 95 66 ED [09:38:31]GetLastDocTimeStamp 1721122684 [09:38:31]current date 1721122715 [09:38:31]FM_GetShiftState [09:38:31]SAM_PROTO_GetShiftState [09:38:31]wFMCommunicate request_size=4 [09:38:31]MH_SAM_APDU [09:38:31]CAPDU: 80 13 01 00 [09:38:31]Write to MH i2c: E2 08 00 F0 17 80 13 01 00 00 00 00 00 84 [09:38:31]Write i2c OK [09:38:31]MH_I2C_Read... [09:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:31]Read from MH i2c: E2 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 0E 00 [09:38:31]MH_I2C_Read... [09:38:31]Read from MH i2c: E2 0E 00 F0 17 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 D3 [09:38:31]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:38:31]wFMCommunicate OK [09:38:31]SAM_PROTO_GetShiftState done [09:38:31]FM_GetShiftState done [09:38:31]opened in 1721088399 [09:38:31]opened+sec_in_day 1721174799 [09:38:31]quantity*price = 13000 [09:38:31]sum+1 = 13001 [09:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 42 16.07.2024 09:38 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31723 ФПД: 276227948452768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T093835&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31723&fm=276227948452768&tin=02508201610067®Number=0000000000098025&sum=13000 0 [09:38:32]StoreToDocumentArchive [09:38:32]shift 371 fd 31723 [09:38:32]save to /storage/0371/doc_00031723 [09:38:32]save last doc name /storage/0371/doc_00031723 to /storage/kkm_last_doc_name [09:38:32]save OK [09:38:32]Clear old archive folders... [09:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:38:32]tlvbuf is 0147AED0 [09:38:32]SAM_PROTO_ClearQueue [09:38:32]wFMCommunicate request_size=4 [09:38:32]MH_SAM_APDU [09:38:32]CAPDU: 80 09 00 00 [09:38:32]Write to MH i2c: E2 08 00 FD 17 80 09 00 00 00 00 00 00 86 [09:38:32]Write i2c OK [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: E2 [09:38:32]MH_I2C_Read... [09:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:32]Read from MH i2c: E2 03 00 [09:38:32]MH_I2C_Read... [09:38:32]Read from MH i2c: E2 03 00 FD 17 00 90 00 88 [09:38:32]RAPDU: 90 00 [09:38:32]wFMCommunicate OK [09:38:32]SAM_PROTO_ClearQueue done [09:38:32]KKMCreateOFDPacket [09:38:32]OFDProtocolAddRootSTLVToBuf [09:38:32]FM_MakeSignedData [09:38:32]FM_MakeSignedData [09:38:32]SAM_PROTO_SignData [09:38:32]wFMCommunicate request_size=4 [09:38:32]MH_SAM_APDU [09:38:32]CAPDU: 80 0D 01 02 [09:38:32]Write to MH i2c: E2 08 00 FE 17 80 0D 01 02 00 00 00 00 8E [09:38:32]Write i2c OK [09:38:32]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 FE 17 00 90 00 89 [09:38:33]RAPDU: 90 00 [09:38:33]wFMCommunicate OK [09:38:33]wFMCommunicate request_size=255 [09:38:33]MH_SAM_APDU [09:38:33]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 2A 00 00 00 F4 03 04 00 9B 3F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 [09:38:33]Write to MH i2c: E2 02 01 FF 17 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 2A 00 00 00 F4 03 04 00 9B 3F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 00 00 10 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 FF 17 00 90 00 8A [09:38:33]RAPDU: 90 00 [09:38:33]wFMCommunicate OK [09:38:33]wFMCommunicate request_size=41 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EB 7B 00 00 35 04 06 00 FB 3A 54 BE 9B A0 [09:38:33]Write to MH i2c: E2 2C 00 00 18 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EB 7B 00 00 35 04 06 00 FB 3A 54 BE 9B A0 00 00 51 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 03 00 00 18 00 90 00 8C [09:38:33]RAPDU: 90 00 [09:38:33]wFMCommunicate OK [09:38:33]wFMCommunicate request_size=4 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 0D 03 02 [09:38:33]Write to MH i2c: E2 08 00 01 18 80 0D 03 02 00 00 00 00 94 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 0B 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 0B 00 01 18 00 61 BC 64 C2 D1 2E 77 A3 90 00 F1 [09:38:33]RAPDU: 61 BC 64 C2 D1 2E 77 A3 90 00 [09:38:33]wFMCommunicate OK [09:38:33]SAM_PROTO_SignData done [09:38:33]FM_MakeSignedData done [09:38:33]CreateOFDProtocolMessage [09:38:33]wFMCommunicate request_size=4 [09:38:33]MH_SAM_APDU [09:38:33]CAPDU: 80 11 00 00 [09:38:33]Write to MH i2c: E2 08 00 02 18 80 11 00 00 00 00 00 00 94 [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:33]Read from MH i2c: E2 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 17 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: E2 17 00 02 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 EF [09:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:38:33]wFMCommunicate OK [09:38:33]CreateOFDProtocolMessage done [09:38:33]OFDSenderStorePacket 31723 [09:38:33]StoreOFDPacket docnum=31723 [09:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 81 49 26 01 13 E3 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 2A 00 00 00 F4 03 04 00 9B 3F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EB 7B 00 00 35 04 06 00 FB 3A 54 BE 9B A0 61 BC 64 C2 D1 2E 77 A3 [09:38:33]CheckFolder [09:38:33]dirname=/storage/ofd_packets [09:38:33]CheckFolder done [09:38:33]ProducePacketName [09:38:33]name=ofd_packets/00031723 [09:38:33]NVStorageSaveData ofd_packets/00031723 [09:38:33]File name is /storage/ofd_packets/00031723 [09:38:33]Write 332 bytes [09:38:33]NVStorageSaveData done [09:38:33]OFDSenderStorePacket done [09:38:33]KKMCreateOFDPacket done [09:38:33]NVStorageSaveData kkm_last_timestamp [09:38:33]File name is /storage/kkm_last_timestamp [09:38:33]Write 4 bytes [09:38:33]NVStorageSaveData done [09:38:33]ExternCall_PrintAddStr [09:38:33]wPrintStart [09:38:33]Write to MH i2c: 01 00 00 03 18 1B [09:38:33]Write i2c OK [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: 01 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: 01 07 00 [09:38:33]MH_I2C_Read... [09:38:33]Read from MH i2c: 01 07 00 03 18 00 00 00 00 00 FF 0F 30 [09:38:33]RasterBufferAndPrint [09:38:33]line Счет N : (3)214304 [09:38:33]line ИНН: 02508201610067 [09:38:33]line Контрольно-Кассовый Чек [09:38:33]line ПРОДАЖА [09:38:33]line Товар: 2000036220012 [09:38:33]line Кофе Капучино XL(GABB TRADE) [09:38:33]line 1.000 * 130.00 [09:38:33]line = 130.00 [09:38:33]line НДС 12% НСП 1% [09:38:33]line > о реализуемом товаре [09:38:33]line ИТОГО: 130.00 [09:38:33]line НСП 1% : 1.15 [09:38:33]line НДС 12% : 13.80 [09:38:33]line Наличными: 130.00 [09:38:33]line Безнал.: 0.00 [09:38:33]line Место: АЗС № 140 "Партнер Нефть" [09:38:33]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:38:33]line СНО: Общий режим [09:38:33]line Чек 42 16.07.2024 09:38 [09:38:33]line Смена: 371 ФФД: 1.0 [09:38:33]line ЗНМ: 0300000189 [09:38:33]line РНМ: 0000000000098025 [09:38:33]line Версия ККМ: 001 [09:38:33]line ФМ: 0000000000965389 [09:38:33]line ФД: 31723 [09:38:33]line ФПД: 276227948452768 [09:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T093835&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31723&fm=276227948452768&tin=02508201610067®Number=0000000000098025&sum=13000 [09:38:33]line 0 [09:38:33]OFD Sender: Processing packet 31723 [packets to send 6, broken 5] [09:38:33]ProducePacketName [09:38:33]name=ofd_packets/00031723 [09:38:33]OFD Sender: To server: pG, [09:38:33]CommunicateWithHost lk.salyk.kg:30040 [09:38:33]ConnectInit lk.salyk.kg [09:38:33]written 0, free lines is 4095 [09:38:33]Connected sock=10 [09:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 81 49 26 01 13 E3 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 2A 00 00 00 F4 03 04 00 9B 3F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EB 7B 00 00 35 04 06 00 FB 3A 54 BE 9B A0 61 BC 64 C2 D1 2E 77 A3 [09:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 54 47 47 00 8B CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EB 7B 00 00 F4 03 04 00 A9 EB 95 66 B6 04 01 00 00 F6 54 19 A6 71 87 8B FD [09:38:34]CommunicateWithHost err = 0 [09:38:34]CheckOFDResponse [09:38:34]1017 (14) - 77093643461234 [09:38:34]1041 (16) - 0000000000965389 [09:38:34]1040 (4) - 31723 [09:38:34]1012 (4) - 16.07.2024 03:40 [09:38:34]1206 (1) - 0 [09:38:34]OFD Sender: Remove packet 31723 [09:38:34]ProducePacketName [09:38:34]name=ofd_packets/00031723 [09:38:34]NVStorageDeleteData [09:38:34]Write to MH i2c: 01 00 00 2C 18 44 [09:38:34]Write i2c OK [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: 01 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: 01 07 00 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: 01 07 00 2C 18 00 00 00 00 00 F2 0C 49 [09:38:34]RasterBufferAndPrint [09:38:34]line [09:38:34]line [09:38:34]line [09:38:34]line [09:38:34]line [09:38:34]written 0, free lines is 3321 [09:38:34]MH_Cut [09:38:34]Write to MH i2c: D1 01 00 33 18 01 1D [09:38:34]Write i2c OK [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: D1 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: D1 01 00 [09:38:34]MH_I2C_Read... [09:38:34]Read from MH i2c: D1 01 00 33 18 00 1C [09:38:34]Write to MH i2c: 01 00 00 34 18 4C [09:38:34]Write i2c OK [09:38:34]MH_I2C_Read... [09:38:34]OFD Sender: No OFD packet to send [09:38:34]*** Cut start [09:38:34]*** Partial cut [09:38:34]*** CUTSNS_PIN = 1 [09:38:35]*** CUTSNS_PIN = 0 [09:38:35]*** Brake cut motor [09:38:35]Read from MH i2c: 01 [09:38:35]MH_I2C_Read... [09:38:35]*** Stop cut motor [09:38:35]*** Cut end [09:38:35]Read from MH i2c: 01 07 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: 01 07 00 34 18 00 00 00 00 00 FF 0F 61 [09:38:35]process_action close_receipt done [09:38:35]requested_data is exist [09:38:35]produce_requested_data [09:38:35]requested_item fm.sn is exist - process it [09:38:35]wFMCommunicate request_size=4 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 11 00 00 [09:38:35]Write to MH i2c: E2 08 00 35 18 80 11 00 00 00 00 00 00 C7 [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 17 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 17 00 35 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 22 [09:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:38:35]wFMCommunicate OK [09:38:35]requested_item fd.num is exist - process it [09:38:35]SAM_PROTO_GetFieldsCounters [09:38:35]wFMCommunicate request_size=4 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 13 00 00 [09:38:35]Write to MH i2c: E2 08 00 36 18 80 13 00 00 00 00 00 00 CA [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 62 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 62 00 36 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 EB 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [09:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 EB 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:38:35]wFMCommunicate OK [09:38:35]SAM_PROTO_GetFieldsCounters done [09:38:35]requested_item shift.num is exist - process it [09:38:35]requested_item shift.opened is exist - process it [09:38:35]req_shift_opened [09:38:35]FM_GetShiftState [09:38:35]SAM_PROTO_GetShiftState [09:38:35]wFMCommunicate request_size=4 [09:38:35]MH_SAM_APDU [09:38:35]CAPDU: 80 13 01 00 [09:38:35]Write to MH i2c: E2 08 00 37 18 80 13 01 00 00 00 00 00 CC [09:38:35]Write i2c OK [09:38:35]MH_I2C_Read... [09:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:35]Read from MH i2c: E2 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 0E 00 [09:38:35]MH_I2C_Read... [09:38:35]Read from MH i2c: E2 0E 00 37 18 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 1B [09:38:35]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:38:35]wFMCommunicate OK [09:38:35]SAM_PROTO_GetShiftState done [09:38:35]FM_GetShiftState done [09:38:35]req_shift_opened done [09:38:35]requested_item shift.open_date is exist - process it [09:38:35]req_shift_open_date [09:38:35]req_shift_open_date done [09:38:35]produce_requested_data done [09:38:35]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31723,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [09:38:35]process_action_free close_receipt [09:38:35]json_value_free [09:38:35]json_value_free done [09:38:35]process_json_proto returns [09:38:35]Send response to host [09:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31723,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [09:38:35]free response buf [09:38:35]execute_script done [09:38:35]execute_script returns [09:38:35]free content buf [09:38:35]Sock 9.Close socket [09:38:35]Sock 9.Thread stoped [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:09]OFD Sender: No OFD packet to send [09:39:14]OFD Sender: No OFD packet to send [09:39:19]OFD Sender: No OFD packet to send [09:39:24]OFD Sender: No OFD packet to send [09:39:29]OFD Sender: No OFD packet to send [09:39:34]OFD Sender: No OFD packet to send [09:39:39]OFD Sender: No OFD packet to send [09:39:44]OFD Sender: No OFD packet to send [09:39:49]OFD Sender: No OFD packet to send [09:39:54]OFD Sender: No OFD packet to send [09:39:59]OFD Sender: No OFD packet to send [09:40:04]OFD Sender: No OFD packet to send [09:40:09]OFD Sender: No OFD packet to send [09:40:14]OFD Sender: No OFD packet to send [09:40:19]OFD Sender: No OFD packet to send [09:40:24]OFD Sender: No OFD packet to send [09:40:29]OFD Sender: No OFD packet to send [09:40:34]OFD Sender: No OFD packet to send [09:40:39]OFD Sender: No OFD packet to send [09:40:44]OFD Sender: No OFD packet to send [09:40:49]OFD Sender: No OFD packet to send [09:40:54]OFD Sender: No OFD packet to send [09:40:59]OFD Sender: No OFD packet to send [09:41:04]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:29]OFD Sender: No OFD packet to send [09:41:34]OFD Sender: No OFD packet to send [09:41:39]OFD Sender: No OFD packet to send [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:28]accept exits with 7 [09:42:28]New connection [09:42:28]New thread 3066821988 created [09:42:28]Thread 3066965348 joined [09:42:28]Waiting for new connection... [09:42:28] Sock 7.Parse request [09:42:28]Sock 7.Check first char [09:42:28]Sock 7.First char is OK [09:42:28]request: POST /json_proto HTTP/1.0 [09:42:28]Method: POST [09:42:28]URL: /json_proto [09:42:28]Method is POST - this is cgi request [09:42:28]url: /json_proto [09:42:28]query_string will be loaded in cgi processing [09:42:28]execute_cgi json_proto POST (null) [09:42:28]execute_cgi path=json_proto method=POST [09:42:28]POST find Content-Length [09:42:28]Host: 172.17.39.68:8080 [09:42:28]Content-Length: 878 [09:42:28]Content-Type: application/json [09:42:28] [09:42:28]POST finish read [09:42:28]Found Content-Length = 878 [09:42:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214305", "tax_sys" : 0, "items" : [ { "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:28]execute_script... [09:42: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)214305", "tax_sys" : 0, "items" : [ { "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:28]POST & json_proto [09:42:28]process_json_proto [09:42:28]json parsed OK: [09:42:28]protocol is kg_v1.0 [09:42:28]action value=close_receipt [09:42:28]process_action close_receipt [09:42:28]cmd_close_receipt [09:42:28]MH_GetDate [09:42:28]Write to MH i2c: F0 00 00 38 18 3F [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: F0 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: F0 09 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: F0 09 00 38 18 00 88 40 96 66 D6 48 95 66 25 [09:42:28]GetLastDocTimeStamp 1721122715 [09:42:28]current date 1721122952 [09:42:28]FM_GetShiftState [09:42:28]SAM_PROTO_GetShiftState [09:42:28]wFMCommunicate request_size=4 [09:42:28]MH_SAM_APDU [09:42:28]CAPDU: 80 13 01 00 [09:42:28]Write to MH i2c: E2 08 00 39 18 80 13 01 00 00 00 00 00 CE [09:42:28]Write i2c OK [09:42:28]MH_I2C_Read... [09:42:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:28]Read from MH i2c: E2 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 0E 00 [09:42:28]MH_I2C_Read... [09:42:28]Read from MH i2c: E2 0E 00 39 18 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 1D [09:42:28]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:42:28]wFMCommunicate OK [09:42:28]SAM_PROTO_GetShiftState done [09:42:28]FM_GetShiftState done [09:42:28]opened in 1721088399 [09:42:28]opened+sec_in_day 1721174799 [09:42:28]quantity*price = 14000 [09:42:28]sum+1 = 14001 [09:42:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 0.00 Безнал.: 140.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 43 16.07.2024 09:42 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31724 ФПД: 93404110918835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094232&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31724&fm=93404110918835&tin=02508201610067®Number=0000000000098025&sum=14000 0 [09:42:29]StoreToDocumentArchive [09:42:29]shift 371 fd 31724 [09:42:29]save to /storage/0371/doc_00031724 [09:42:29]save last doc name /storage/0371/doc_00031724 to /storage/kkm_last_doc_name [09:42:29]save OK [09:42:29]Clear old archive folders... [09:42:29]ProcessDocumentItem done err = 0, tmpTLVsize=298 [09:42:29]tlvbuf is 01497120 [09:42:29]SAM_PROTO_ClearQueue [09:42:29]wFMCommunicate request_size=4 [09:42:29]MH_SAM_APDU [09:42:29]CAPDU: 80 09 00 00 [09:42:29]Write to MH i2c: E2 08 00 46 18 80 09 00 00 00 00 00 00 D0 [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:29]Read from MH i2c: E2 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 46 18 00 90 00 D2 [09:42:29]RAPDU: 90 00 [09:42:29]wFMCommunicate OK [09:42:29]SAM_PROTO_ClearQueue done [09:42:29]KKMCreateOFDPacket [09:42:29]OFDProtocolAddRootSTLVToBuf [09:42:29]FM_MakeSignedData [09:42:29]FM_MakeSignedData [09:42:29]SAM_PROTO_SignData [09:42:29]wFMCommunicate request_size=4 [09:42:29]MH_SAM_APDU [09:42:29]CAPDU: 80 0D 01 02 [09:42:29]Write to MH i2c: E2 08 00 47 18 80 0D 01 02 00 00 00 00 D8 [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:29]OFD Sender: No OFD packet to send [09:42:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:29]Read from MH i2c: E2 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 [09:42:29]MH_I2C_Read... [09:42:29]Read from MH i2c: E2 03 00 47 18 00 90 00 D3 [09:42:29]RAPDU: 90 00 [09:42:29]wFMCommunicate OK [09:42:29]wFMCommunicate request_size=255 [09:42:29]MH_SAM_APDU [09:42:29]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 88 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [09:42:29]Write to MH i2c: E2 02 01 48 18 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 88 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 50 [09:42:29]Write i2c OK [09:42:29]MH_I2C_Read... [09:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:30]Read from MH i2c: E2 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 03 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 03 00 48 18 00 90 00 D4 [09:42:30]RAPDU: 90 00 [09:42:30]wFMCommunicate OK [09:42:30]wFMCommunicate request_size=57 [09:42:30]MH_SAM_APDU [09:42:30]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EC 7B 00 00 35 04 06 00 54 F3 56 DA 14 B3 [09:42:30]Write to MH i2c: E2 3C 00 49 18 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EC 7B 00 00 35 04 06 00 54 F3 56 DA 14 B3 00 00 44 [09:42:30]Write i2c OK [09:42:30]MH_I2C_Read... [09:42:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:30]Read from MH i2c: E2 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 03 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 03 00 49 18 00 90 00 D5 [09:42:30]RAPDU: 90 00 [09:42:30]wFMCommunicate OK [09:42:30]wFMCommunicate request_size=4 [09:42:30]MH_SAM_APDU [09:42:30]CAPDU: 80 0D 03 02 [09:42:30]Write to MH i2c: E2 08 00 4A 18 80 0D 03 02 00 00 00 00 DD [09:42:30]Write i2c OK [09:42:30]MH_I2C_Read... [09:42:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:30]Read from MH i2c: E2 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 0B 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 0B 00 4A 18 00 30 D0 CF 53 CD A6 99 B5 90 00 C1 [09:42:30]RAPDU: 30 D0 CF 53 CD A6 99 B5 90 00 [09:42:30]wFMCommunicate OK [09:42:30]SAM_PROTO_SignData done [09:42:30]FM_MakeSignedData done [09:42:30]CreateOFDProtocolMessage [09:42:30]wFMCommunicate request_size=4 [09:42:30]MH_SAM_APDU [09:42:30]CAPDU: 80 11 00 00 [09:42:30]Write to MH i2c: E2 08 00 4B 18 80 11 00 00 00 00 00 00 DD [09:42:30]Write i2c OK [09:42:30]MH_I2C_Read... [09:42:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:30]Read from MH i2c: E2 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 17 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: E2 17 00 4B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 38 [09:42:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:42:30]wFMCommunicate OK [09:42:30]CreateOFDProtocolMessage done [09:42:30]OFDSenderStorePacket 31724 [09:42:30]StoreOFDPacket docnum=31724 [09:42:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3E 01 00 00 77 A3 36 01 08 4D 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 88 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EC 7B 00 00 35 04 06 00 54 F3 56 DA 14 B3 30 D0 CF 53 CD A6 99 B5 [09:42:30]CheckFolder [09:42:30]dirname=/storage/ofd_packets [09:42:30]CheckFolder done [09:42:30]ProducePacketName [09:42:30]name=ofd_packets/00031724 [09:42:30]NVStorageSaveData ofd_packets/00031724 [09:42:30]File name is /storage/ofd_packets/00031724 [09:42:30]Write 348 bytes [09:42:30]NVStorageSaveData done [09:42:30]OFDSenderStorePacket done [09:42:30]KKMCreateOFDPacket done [09:42:30]NVStorageSaveData kkm_last_timestamp [09:42:30]File name is /storage/kkm_last_timestamp [09:42:30]Write 4 bytes [09:42:30]NVStorageSaveData done [09:42:30]ExternCall_PrintAddStr [09:42:30]wPrintStart [09:42:30]Write to MH i2c: 01 00 00 4C 18 64 [09:42:30]Write i2c OK [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: 01 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: 01 07 00 [09:42:30]MH_I2C_Read... [09:42:30]Read from MH i2c: 01 07 00 4C 18 00 00 00 00 00 FF 0F 79 [09:42:30]RasterBufferAndPrint [09:42:30]line Счет N : (3)214305 [09:42:30]line ИНН: 02508201610067 [09:42:30]line Контрольно-Кассовый Чек [09:42:30]line ПРОДАЖА [09:42:30]line Товар: 4700007110073 [09:42:30]line Сэндвич с кетчупом Талас Даамы [09:42:30]line 2.000 * 70.00 [09:42:30]line = 140.00 [09:42:30]line НДС 12% НСП 1% [09:42:30]line > о реализуемом товаре [09:42:30]line ИТОГО: 140.00 [09:42:30]line НСП 1% : 1.24 [09:42:30]line НДС 12% : 14.87 [09:42:30]line Наличными: 0.00 [09:42:30]line Безнал.: 140.00 [09:42:30]line Место: АЗС № 140 "Партнер Нефть" [09:42:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:42:30]line СНО: Общий режим [09:42:30]line Чек 43 16.07.2024 09:42 [09:42:30]line Смена: 371 ФФД: 1.0 [09:42:30]line ЗНМ: 0300000189 [09:42:30]line РНМ: 0000000000098025 [09:42:30]line Версия ККМ: 001 [09:42:30]line Платежная система: O! деньги [09:42:30]line ФМ: 0000000000965389 [09:42:30]line ФД: 31724 [09:42:30]line ФПД: 93404110918835 [09:42:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094232&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31724&fm=93404110918835&tin=02508201610067®Number=0000000000098025&sum=14000 [09:42:30]line 0 [09:42:30]OFD Sender: Processing packet 31724 [packets to send 6, broken 5] [09:42:30]ProducePacketName [09:42:30]name=ofd_packets/00031724 [09:42:30]OFD Sender: To server: pG, [09:42:30]CommunicateWithHost lk.salyk.kg:30040 [09:42:30]ConnectInit lk.salyk.kg [09:42:30]written 0, free lines is 4095 [09:42:30]Connected sock=10 [09:42:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3E 01 00 00 77 A3 36 01 08 4D 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 36 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 88 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EC 7B 00 00 35 04 06 00 54 F3 56 DA 14 B3 30 D0 CF 53 CD A6 99 B5 [09:42:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 42 4F 47 00 60 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EC 7B 00 00 F4 03 04 00 96 EC 95 66 B6 04 01 00 00 9B 82 62 92 6B AF FA 9D [09:42:31]CommunicateWithHost err = 0 [09:42:31]CheckOFDResponse [09:42:31]1017 (14) - 77093643461234 [09:42:31]1041 (16) - 0000000000965389 [09:42:31]1040 (4) - 31724 [09:42:31]1012 (4) - 16.07.2024 03:44 [09:42:31]1206 (1) - 0 [09:42:31]OFD Sender: Remove packet 31724 [09:42:31]ProducePacketName [09:42:31]name=ofd_packets/00031724 [09:42:31]NVStorageDeleteData [09:42:31]Write to MH i2c: 01 00 00 77 18 8F [09:42:31]Write i2c OK [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: 01 [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: 01 07 00 [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: 01 07 00 77 18 00 00 00 00 00 DD 0C 7F [09:42:31]RasterBufferAndPrint [09:42:31]line [09:42:31]line [09:42:31]line [09:42:31]line [09:42:31]line [09:42:31]written 0, free lines is 3302 [09:42:31]MH_Cut [09:42:31]Write to MH i2c: D1 01 00 7E 18 01 68 [09:42:31]Write i2c OK [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: D1 [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: D1 01 00 [09:42:31]MH_I2C_Read... [09:42:31]Read from MH i2c: D1 01 00 7E 18 00 67 [09:42:31]Write to MH i2c: 01 00 00 7F 18 97 [09:42:31]Write i2c OK [09:42:31]MH_I2C_Read... [09:42:31]OFD Sender: No OFD packet to send [09:42:31]*** Cut start [09:42:31]*** Partial cut [09:42:31]*** CUTSNS_PIN = 1 [09:42:31]*** CUTSNS_PIN = 0 [09:42:32]*** Brake cut motor [09:42:32]Read from MH i2c: 01 [09:42:32]MH_I2C_Read... [09:42:32]*** Stop cut motor [09:42:32]*** Cut end [09:42:32]Read from MH i2c: 01 07 00 [09:42:32]MH_I2C_Read... [09:42:32]Read from MH i2c: 01 07 00 7F 18 00 00 00 00 00 FF 0F AC [09:42:32]process_action close_receipt done [09:42:32]requested_data is exist [09:42:32]produce_requested_data [09:42:32]requested_item fm.sn is exist - process it [09:42:32]wFMCommunicate request_size=4 [09:42:32]MH_SAM_APDU [09:42:32]CAPDU: 80 11 00 00 [09:42:32]Write to MH i2c: E2 08 00 80 18 80 11 00 00 00 00 00 00 12 [09:42:32]Write i2c OK [09:42:32]MH_I2C_Read... [09:42:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:32]Read from MH i2c: E2 [09:42:32]MH_I2C_Read... [09:42:32]Read from MH i2c: E2 17 00 [09:42:32]MH_I2C_Read... [09:42:32]Read from MH i2c: E2 17 00 80 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6D [09:42:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:42:32]wFMCommunicate OK [09:42:32]requested_item fd.num is exist - process it [09:42:32]SAM_PROTO_GetFieldsCounters [09:42:32]wFMCommunicate request_size=4 [09:42:32]MH_SAM_APDU [09:42:32]CAPDU: 80 13 00 00 [09:42:32]Write to MH i2c: E2 08 00 81 18 80 13 00 00 00 00 00 00 15 [09:42:32]Write i2c OK [09:42:32]MH_I2C_Read... [09:42:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:32]Read from MH i2c: E2 [09:42:32]MH_I2C_Read... [09:42:32]Read from MH i2c: E2 62 00 [09:42:32]MH_I2C_Read... [09:42:32]Read from MH i2c: E2 62 00 81 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 EC 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [09:42: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 EC 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:32]wFMCommunicate OK [09:42:32]SAM_PROTO_GetFieldsCounters done [09:42:32]requested_item shift.num is exist - process it [09:42:32]requested_item shift.opened is exist - process it [09:42:32]req_shift_opened [09:42:32]FM_GetShiftState [09:42:32]SAM_PROTO_GetShiftState [09:42:32]wFMCommunicate request_size=4 [09:42:32]MH_SAM_APDU [09:42:32]CAPDU: 80 13 01 00 [09:42:32]Write to MH i2c: E2 08 00 82 18 80 13 01 00 00 00 00 00 17 [09:42:32]Write i2c OK [09:42:32]MH_I2C_Read... [09:42:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:32]Read from MH i2c: E2 [09:42:32]MH_I2C_Read... [09:42:32]Read from MH i2c: E2 0E 00 [09:42:32]MH_I2C_Read... [09:42:32]Read from MH i2c: E2 0E 00 82 18 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 66 [09:42:32]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:42:32]wFMCommunicate OK [09:42:32]SAM_PROTO_GetShiftState done [09:42:32]FM_GetShiftState done [09:42:32]req_shift_opened done [09:42:32]requested_item shift.open_date is exist - process it [09:42:32]req_shift_open_date [09:42:32]req_shift_open_date done [09:42:32]produce_requested_data done [09:42:32]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31724,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [09:42:32]process_action_free close_receipt [09:42:32]json_value_free [09:42:32]json_value_free done [09:42:32]process_json_proto returns [09:42:32]Send response to host [09:42:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31724,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [09:42:32]free response buf [09:42:32]execute_script done [09:42:32]execute_script returns [09:42:32]free content buf [09:42:32]Sock 7.Close socket [09:42:32]Sock 7.Thread stoped [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:02]accept exits with 9 [09:43:02]New connection [09:43:02]New thread 3066965348 created [09:43:02]Thread 3066821988 joined [09:43:02]Waiting for new connection... [09:43:02] Sock 9.Parse request [09:43:02]Sock 9.Check first char [09:43:02]Sock 9.First char is OK [09:43:02]request: POST /json_proto HTTP/1.0 [09:43:02]Method: POST [09:43:02]URL: /json_proto [09:43:02]Method is POST - this is cgi request [09:43:02]url: /json_proto [09:43:02]query_string will be loaded in cgi processing [09:43:02]execute_cgi json_proto POST (null) [09:43:02]execute_cgi path=json_proto method=POST [09:43:02]POST find Content-Length [09:43:02]Host: 172.17.39.68:8080 [09:43:02]Content-Length: 1051 [09:43:02]Content-Type: application/json [09:43:02] [09:43:02]POST finish read [09:43:02]Found Content-Length = 1051 [09:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214306", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329432", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041F\u0438\u0430\u043B\u0430 Ice Tea \u043C\u0430\u043D\u0433\u043E,\u0430\u043D\u0430\u043D,\u043B\u0435\u043C0,5\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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:02]execute_script... [09:43: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)214306", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329432", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041F\u0438\u0430\u043B\u0430 Ice Tea \u043C\u0430\u043D\u0433\u043E,\u0430\u043D\u0430\u043D,\u043B\u0435\u043C0,5\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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:02]POST & json_proto [09:43:02]process_json_proto [09:43:02]json parsed OK: [09:43:02]protocol is kg_v1.0 [09:43:02]action value=close_receipt [09:43:02]process_action close_receipt [09:43:02]cmd_close_receipt [09:43:02]MH_GetDate [09:43:02]Write to MH i2c: F0 00 00 83 18 8A [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: F0 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: F0 09 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: F0 09 00 83 18 00 AA 40 96 66 D6 48 95 66 92 [09:43:02]GetLastDocTimeStamp 1721122952 [09:43:02]current date 1721122986 [09:43:02]FM_GetShiftState [09:43:02]SAM_PROTO_GetShiftState [09:43:02]wFMCommunicate request_size=4 [09:43:02]MH_SAM_APDU [09:43:02]CAPDU: 80 13 01 00 [09:43:02]Write to MH i2c: E2 08 00 84 18 80 13 01 00 00 00 00 00 19 [09:43:02]Write i2c OK [09:43:02]MH_I2C_Read... [09:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:02]Read from MH i2c: E2 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 0E 00 [09:43:02]MH_I2C_Read... [09:43:02]Read from MH i2c: E2 0E 00 84 18 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 68 [09:43:02]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:43:02]wFMCommunicate OK [09:43:02]SAM_PROTO_GetShiftState done [09:43:02]FM_GetShiftState done [09:43:02]opened in 1721088399 [09:43:02]opened+sec_in_day 1721174799 [09:43:02]quantity*price = 6500 [09:43:02]sum+1 = 6501 [09:43:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329432 Напиток Пиала Ice Tea манго,анан,лем0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.14 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 44 16.07.2024 09:43 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31725 ФПД: 136858108822170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094306&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31725&fm=136858108822170&tin=02508201610067®Number=0000000000098025&sum=13000 0 [09:43:04]StoreToDocumentArchive [09:43:04]shift 371 fd 31725 [09:43:04]save to /storage/0371/doc_00031725 [09:43:04]save last doc name /storage/0371/doc_00031725 to /storage/kkm_last_doc_name [09:43:04]save OK [09:43:04]Clear old archive folders... [09:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=441 [09:43:04]tlvbuf is 0149B680 [09:43:04]SAM_PROTO_ClearQueue [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 09 00 00 [09:43:04]Write to MH i2c: E2 08 00 91 18 80 09 00 00 00 00 00 00 1B [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:04]Read from MH i2c: E2 03 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 91 18 00 90 00 1D [09:43:04]RAPDU: 90 00 [09:43:04]wFMCommunicate OK [09:43:04]SAM_PROTO_ClearQueue done [09:43:04]KKMCreateOFDPacket [09:43:04]OFDProtocolAddRootSTLVToBuf [09:43:04]FM_MakeSignedData [09:43:04]FM_MakeSignedData [09:43:04]SAM_PROTO_SignData [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 0D 01 02 [09:43:04]Write to MH i2c: E2 08 00 92 18 80 0D 01 02 00 00 00 00 23 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 92 18 00 90 00 1E [09:43:04]RAPDU: 90 00 [09:43:04]wFMCommunicate OK [09:43:04]wFMCommunicate request_size=255 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 0D 02 02 FA 03 00 B9 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 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 85 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 33 32 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D0 B0 D0 BD D0 B0 D0 BD 2C D0 BB D0 B5 D0 BC 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 [09:43:04]Write to MH i2c: E2 02 01 93 18 80 0D 02 02 FA 00 03 00 B9 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 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 85 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 33 32 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D0 B0 D0 BD D0 B0 D0 BD 2C D0 BB D0 B5 D0 BC 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 00 00 E1 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 93 18 00 90 00 1F [09:43:04]RAPDU: 90 00 [09:43:04]wFMCommunicate OK [09:43:04]wFMCommunicate request_size=200 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 0D 02 02 C3 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 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 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 2C 00 00 00 F4 03 04 00 AA 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 ED 7B 00 00 35 04 06 00 7C 78 C2 F6 02 9A [09:43:04]Write to MH i2c: E2 CB 00 94 18 80 0D 02 02 C3 00 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 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 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 2C 00 00 00 F4 03 04 00 AA 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 ED 7B 00 00 35 04 06 00 7C 78 C2 F6 02 9A 00 00 61 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 03 00 94 18 00 90 00 20 [09:43:04]RAPDU: 90 00 [09:43:04]wFMCommunicate OK [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 0D 03 02 [09:43:04]Write to MH i2c: E2 08 00 95 18 80 0D 03 02 00 00 00 00 28 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 0B 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 0B 00 95 18 00 74 08 E1 F9 84 B9 9A 58 90 00 AE [09:43:04]RAPDU: 74 08 E1 F9 84 B9 9A 58 90 00 [09:43:04]wFMCommunicate OK [09:43:04]SAM_PROTO_SignData done [09:43:04]FM_MakeSignedData done [09:43:04]CreateOFDProtocolMessage [09:43:04]wFMCommunicate request_size=4 [09:43:04]MH_SAM_APDU [09:43:04]CAPDU: 80 11 00 00 [09:43:04]Write to MH i2c: E2 08 00 96 18 80 11 00 00 00 00 00 00 28 [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:04]Read from MH i2c: E2 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 17 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: E2 17 00 96 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 83 [09:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:43:04]wFMCommunicate OK [09:43:04]CreateOFDProtocolMessage done [09:43:04]OFDSenderStorePacket 31725 [09:43:04]StoreOFDPacket docnum=31725 [09:43:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 CD 01 00 00 65 55 C5 01 1A 47 5A 03 01 00 03 00 B9 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 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 85 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 33 32 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D0 B0 D0 BD D0 B0 D0 BD 2C D0 BB D0 B5 D0 BC 30 2C 35 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 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 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 2C 00 00 00 F4 03 04 00 AA 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 ED 7B 00 00 35 04 06 00 7C 78 C2 F6 02 9A 74 08 E1 F9 84 B9 9A 58 [09:43:04]CheckFolder [09:43:04]dirname=/storage/ofd_packets [09:43:04]CheckFolder done [09:43:04]ProducePacketName [09:43:04]name=ofd_packets/00031725 [09:43:04]NVStorageSaveData ofd_packets/00031725 [09:43:04]File name is /storage/ofd_packets/00031725 [09:43:04]Write 491 bytes [09:43:04]NVStorageSaveData done [09:43:04]OFDSenderStorePacket done [09:43:04]KKMCreateOFDPacket done [09:43:04]NVStorageSaveData kkm_last_timestamp [09:43:04]File name is /storage/kkm_last_timestamp [09:43:04]Write 4 bytes [09:43:04]NVStorageSaveData done [09:43:04]ExternCall_PrintAddStr [09:43:04]wPrintStart [09:43:04]Write to MH i2c: 01 00 00 97 18 AF [09:43:04]Write i2c OK [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: 01 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: 01 07 00 [09:43:04]MH_I2C_Read... [09:43:04]Read from MH i2c: 01 07 00 97 18 00 00 00 00 00 FF 0F C4 [09:43:04]RasterBufferAndPrint [09:43:05]line Счет N : (3)214306 [09:43:05]line ИНН: 02508201610067 [09:43:05]line Контрольно-Кассовый Чек [09:43:05]line ПРОДАЖА [09:43:05]line Товар: 4870001571023 [09:43:05]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [09:43:05]line 1.000 * 65.00 [09:43:05]line = 65.00 [09:43:05]line НДС 12% НСП 1% [09:43:05]line > о реализуемом товаре [09:43:05]line Товар: 4870002329432 [09:43:05]line Напиток Пиала Ice Tea манго,анан,лем0,5л [09:43:05]line 1.000 * 65.00 [09:43:05]line = 65.00 [09:43:05]line НДС 12% НСП 1% [09:43:05]line > о реализуемом товаре [09:43:05]line ИТОГО: 130.00 [09:43:05]line НСП 1% : 1.14 [09:43:05]line НДС 12% : 13.80 [09:43:05]line Наличными: 130.00 [09:43:05]line Безнал.: 0.00 [09:43:05]line Место: АЗС № 140 "Партнер Нефть" [09:43:05]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:43:05]line СНО: Общий режим [09:43:05]line Чек 44 16.07.2024 09:43 [09:43:05]line Смена: 371 ФФД: 1.0 [09:43:05]line ЗНМ: 0300000189 [09:43:05]line РНМ: 0000000000098025 [09:43:05]line Версия ККМ: 001 [09:43:05]line ФМ: 0000000000965389 [09:43:05]line ФД: 31725 [09:43:05]line ФПД: 136858108822170 [09:43:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094306&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31725&fm=136858108822170&tin=02508201610067®Number=0000000000098025&sum=13000 [09:43:05]OFD Sender: Processing packet 31725 [packets to send 6, broken 5] [09:43:05]ProducePacketName [09:43:05]name=ofd_packets/00031725 [09:43:05]OFD Sender: To server: pG, [09:43:05]CommunicateWithHost lk.salyk.kg:30040 [09:43:05]ConnectInit lk.salyk.kg [09:43:05]line 0 [09:43:05]written 0, free lines is 4095 [09:43:05]Connected sock=10 [09:43:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 CD 01 00 00 65 55 C5 01 1A 47 5A 03 01 00 03 00 B9 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 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 85 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 33 32 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9F D0 B8 D0 B0 D0 BB D0 B0 20 49 63 65 20 54 65 61 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D0 B0 D0 BD D0 B0 D0 BD 2C D0 BB D0 B5 D0 BC 30 2C 35 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 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 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 2C 00 00 00 F4 03 04 00 AA 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 ED 7B 00 00 35 04 06 00 7C 78 C2 F6 02 9A 74 08 E1 F9 84 B9 9A 58 [09:43:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 65 F1 47 00 77 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 ED 7B 00 00 F4 03 04 00 B8 EC 95 66 B6 04 01 00 00 AE 9C 09 13 33 77 C1 CD [09:43:05]CommunicateWithHost err = 0 [09:43:05]CheckOFDResponse [09:43:05]1017 (14) - 77093643461234 [09:43:05]1041 (16) - 0000000000965389 [09:43:05]1040 (4) - 31725 [09:43:05]1012 (4) - 16.07.2024 03:44 [09:43:05]1206 (1) - 0 [09:43:05]OFD Sender: Remove packet 31725 [09:43:05]ProducePacketName [09:43:05]name=ofd_packets/00031725 [09:43:05]NVStorageDeleteData [09:43:05]Write to MH i2c: 01 00 00 C7 18 DF [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: 01 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: 01 07 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: 01 07 00 C7 18 00 00 00 00 00 89 0C 7B [09:43:05]RasterBufferAndPrint [09:43:05]line [09:43:05]line [09:43:05]line [09:43:05]line [09:43:05]line [09:43:05]written 0, free lines is 3216 [09:43:05]MH_Cut [09:43:05]Write to MH i2c: D1 01 00 CE 18 01 B8 [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: D1 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: D1 01 00 [09:43:05]MH_I2C_Read... [09:43:05]Read from MH i2c: D1 01 00 CE 18 00 B7 [09:43:05]Write to MH i2c: 01 00 00 CF 18 E7 [09:43:05]Write i2c OK [09:43:05]MH_I2C_Read... [09:43:05]OFD Sender: No OFD packet to send [09:43:06]*** Cut start [09:43:06]*** Partial cut [09:43:06]*** CUTSNS_PIN = 1 [09:43:06]*** CUTSNS_PIN = 0 [09:43:06]*** Brake cut motor [09:43:07]Read from MH i2c: 01 [09:43:07]MH_I2C_Read... [09:43:07]*** Stop cut motor [09:43:07]*** Cut end [09:43:07]Read from MH i2c: 01 07 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: 01 07 00 CF 18 00 00 00 00 00 FF 0F FC [09:43:07]process_action close_receipt done [09:43:07]requested_data is exist [09:43:07]produce_requested_data [09:43:07]requested_item fm.sn is exist - process it [09:43:07]wFMCommunicate request_size=4 [09:43:07]MH_SAM_APDU [09:43:07]CAPDU: 80 11 00 00 [09:43:07]Write to MH i2c: E2 08 00 D0 18 80 11 00 00 00 00 00 00 62 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:07]Read from MH i2c: E2 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 17 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 17 00 D0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BD [09:43:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:43:07]wFMCommunicate OK [09:43:07]requested_item fd.num is exist - process it [09:43:07]SAM_PROTO_GetFieldsCounters [09:43:07]wFMCommunicate request_size=4 [09:43:07]MH_SAM_APDU [09:43:07]CAPDU: 80 13 00 00 [09:43:07]Write to MH i2c: E2 08 00 D1 18 80 13 00 00 00 00 00 00 65 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:07]Read from MH i2c: E2 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 62 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 62 00 D1 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 ED 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [09:43:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 ED 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:07]wFMCommunicate OK [09:43:07]SAM_PROTO_GetFieldsCounters done [09:43:07]requested_item shift.num is exist - process it [09:43:07]requested_item shift.opened is exist - process it [09:43:07]req_shift_opened [09:43:07]FM_GetShiftState [09:43:07]SAM_PROTO_GetShiftState [09:43:07]wFMCommunicate request_size=4 [09:43:07]MH_SAM_APDU [09:43:07]CAPDU: 80 13 01 00 [09:43:07]Write to MH i2c: E2 08 00 D2 18 80 13 01 00 00 00 00 00 67 [09:43:07]Write i2c OK [09:43:07]MH_I2C_Read... [09:43:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:07]Read from MH i2c: E2 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 0E 00 [09:43:07]MH_I2C_Read... [09:43:07]Read from MH i2c: E2 0E 00 D2 18 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B6 [09:43:07]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:43:07]wFMCommunicate OK [09:43:07]SAM_PROTO_GetShiftState done [09:43:07]FM_GetShiftState done [09:43:07]req_shift_opened done [09:43:07]requested_item shift.open_date is exist - process it [09:43:07]req_shift_open_date [09:43:07]req_shift_open_date done [09:43:07]produce_requested_data done [09:43:07]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31725,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [09:43:07]process_action_free close_receipt [09:43:07]json_value_free [09:43:07]json_value_free done [09:43:07]process_json_proto returns [09:43:07]Send response to host [09:43:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31725,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [09:43:07]free response buf [09:43:07]execute_script done [09:43:07]execute_script returns [09:43:07]free content buf [09:43:07]Sock 9.Close socket [09:43:07]Sock 9.Thread stoped [09:43:10]OFD Sender: No OFD packet to send [09:43:15]OFD Sender: No OFD packet to send [09:43:20]OFD Sender: No OFD packet to send [09:43:25]OFD Sender: No OFD packet to send [09:43:30]OFD Sender: No OFD packet to send [09:43:35]OFD Sender: No OFD packet to send [09:43:40]OFD Sender: No OFD packet to send [09:43:45]accept exits with 7 [09:43:45]New connection [09:43:45]New thread 3066821988 created [09:43:45]Thread 3066965348 joined [09:43:45]Waiting for new connection... [09:43:45] Sock 7.Parse request [09:43:45]Sock 7.Check first char [09:43:45]Sock 7.First char is OK [09:43:45]request: POST /json_proto HTTP/1.0 [09:43:45]Method: POST [09:43:45]URL: /json_proto [09:43:45]Method is POST - this is cgi request [09:43:45]url: /json_proto [09:43:45]query_string will be loaded in cgi processing [09:43:45]execute_cgi json_proto POST (null) [09:43:45]execute_cgi path=json_proto method=POST [09:43:45]POST find Content-Length [09:43:45]Host: 172.17.39.68:8080 [09:43:45]Content-Length: 876 [09:43:45]Content-Type: application/json [09:43:45] [09:43:45]POST finish read [09:43:45]Found Content-Length = 876 [09:43:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214307", "tax_sys" : 0, "items" : [ { "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:45]execute_script... [09:43:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214307", "tax_sys" : 0, "items" : [ { "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:45]POST & json_proto [09:43:45]process_json_proto [09:43:45]json parsed OK: [09:43:45]protocol is kg_v1.0 [09:43:45]action value=close_receipt [09:43:45]process_action close_receipt [09:43:45]cmd_close_receipt [09:43:45]MH_GetDate [09:43:45]Write to MH i2c: F0 00 00 D3 18 DA [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: F0 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: F0 09 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: F0 09 00 D3 18 00 D5 40 96 66 D6 48 95 66 0D [09:43:45]GetLastDocTimeStamp 1721122986 [09:43:45]current date 1721123029 [09:43:45]FM_GetShiftState [09:43:45]SAM_PROTO_GetShiftState [09:43:45]wFMCommunicate request_size=4 [09:43:45]MH_SAM_APDU [09:43:45]CAPDU: 80 13 01 00 [09:43:45]Write to MH i2c: E2 08 00 D4 18 80 13 01 00 00 00 00 00 69 [09:43:45]Write i2c OK [09:43:45]MH_I2C_Read... [09:43:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:45]Read from MH i2c: E2 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 0E 00 [09:43:45]MH_I2C_Read... [09:43:45]Read from MH i2c: E2 0E 00 D4 18 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B8 [09:43:45]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:43:45]wFMCommunicate OK [09:43:45]SAM_PROTO_GetShiftState done [09:43:45]FM_GetShiftState done [09:43:45]opened in 1721088399 [09:43:45]opened+sec_in_day 1721174799 [09:43:45]quantity*price = 7000 [09:43:45]sum+1 = 7001 [09:43:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 45 16.07.2024 09:43 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31726 ФПД: 228290873651983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094349&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31726&fm=228290873651983&tin=02508201610067®Number=0000000000098025&sum=7000 0 [09:43:46]StoreToDocumentArchive [09:43:46]shift 371 fd 31726 [09:43:46]save to /storage/0371/doc_00031726 [09:43:46]save last doc name /storage/0371/doc_00031726 to /storage/kkm_last_doc_name [09:43:46]save OK [09:43:46]Clear old archive folders... [09:43:46]ProcessDocumentItem done err = 0, tmpTLVsize=298 [09:43:46]tlvbuf is 01478FD0 [09:43:46]SAM_PROTO_ClearQueue [09:43:46]wFMCommunicate request_size=4 [09:43:46]MH_SAM_APDU [09:43:46]CAPDU: 80 09 00 00 [09:43:46]Write to MH i2c: E2 08 00 E1 18 80 09 00 00 00 00 00 00 6B [09:43:46]Write i2c OK [09:43:46]MH_I2C_Read... [09:43:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:46]Read from MH i2c: E2 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 03 00 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 03 00 E1 18 00 90 00 6D [09:43:46]RAPDU: 90 00 [09:43:46]wFMCommunicate OK [09:43:46]SAM_PROTO_ClearQueue done [09:43:46]KKMCreateOFDPacket [09:43:46]OFDProtocolAddRootSTLVToBuf [09:43:46]FM_MakeSignedData [09:43:46]FM_MakeSignedData [09:43:46]SAM_PROTO_SignData [09:43:46]wFMCommunicate request_size=4 [09:43:46]MH_SAM_APDU [09:43:46]CAPDU: 80 0D 01 02 [09:43:46]Write to MH i2c: E2 08 00 E2 18 80 0D 01 02 00 00 00 00 73 [09:43:46]Write i2c OK [09:43:46]MH_I2C_Read... [09:43:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:46]Read from MH i2c: E2 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 03 00 [09:43:46]MH_I2C_Read... [09:43:46]Read from MH i2c: E2 03 00 E2 18 00 90 00 6E [09:43:46]RAPDU: 90 00 [09:43:46]wFMCommunicate OK [09:43:46]wFMCommunicate request_size=255 [09:43:46]MH_SAM_APDU [09:43:46]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 D5 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [09:43:46]Write to MH i2c: E2 02 01 E3 18 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 D5 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 CC [09:43:46]Write i2c OK [09:43:46]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 E3 18 00 90 00 6F [09:43:47]RAPDU: 90 00 [09:43:47]wFMCommunicate OK [09:43:47]wFMCommunicate request_size=57 [09:43:47]MH_SAM_APDU [09:43:47]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EE 7B 00 00 35 04 06 00 CF A1 1C 6D F3 0F [09:43:47]Write to MH i2c: E2 3C 00 E4 18 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EE 7B 00 00 35 04 06 00 CF A1 1C 6D F3 0F 00 00 9E [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 03 00 E4 18 00 90 00 70 [09:43:47]RAPDU: 90 00 [09:43:47]wFMCommunicate OK [09:43:47]wFMCommunicate request_size=4 [09:43:47]MH_SAM_APDU [09:43:47]CAPDU: 80 0D 03 02 [09:43:47]Write to MH i2c: E2 08 00 E5 18 80 0D 03 02 00 00 00 00 78 [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 0B 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 0B 00 E5 18 00 EB E7 90 9C 51 D9 8B 4B 90 00 77 [09:43:47]RAPDU: EB E7 90 9C 51 D9 8B 4B 90 00 [09:43:47]wFMCommunicate OK [09:43:47]SAM_PROTO_SignData done [09:43:47]FM_MakeSignedData done [09:43:47]CreateOFDProtocolMessage [09:43:47]wFMCommunicate request_size=4 [09:43:47]MH_SAM_APDU [09:43:47]CAPDU: 80 11 00 00 [09:43:47]Write to MH i2c: E2 08 00 E6 18 80 11 00 00 00 00 00 00 78 [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:47]Read from MH i2c: E2 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 17 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: E2 17 00 E6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D3 [09:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:43:47]wFMCommunicate OK [09:43:47]CreateOFDProtocolMessage done [09:43:47]OFDSenderStorePacket 31726 [09:43:47]StoreOFDPacket docnum=31726 [09:43:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3E 01 00 00 41 F5 36 01 2D 10 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 D5 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EE 7B 00 00 35 04 06 00 CF A1 1C 6D F3 0F EB E7 90 9C 51 D9 8B 4B [09:43:47]CheckFolder [09:43:47]dirname=/storage/ofd_packets [09:43:47]CheckFolder done [09:43:47]ProducePacketName [09:43:47]name=ofd_packets/00031726 [09:43:47]NVStorageSaveData ofd_packets/00031726 [09:43:47]File name is /storage/ofd_packets/00031726 [09:43:47]Write 348 bytes [09:43:47]NVStorageSaveData done [09:43:47]OFDSenderStorePacket done [09:43:47]KKMCreateOFDPacket done [09:43:47]NVStorageSaveData kkm_last_timestamp [09:43:47]File name is /storage/kkm_last_timestamp [09:43:47]Write 4 bytes [09:43:47]NVStorageSaveData done [09:43:47]ExternCall_PrintAddStr [09:43:47]wPrintStart [09:43:47]Write to MH i2c: 01 00 00 E7 18 FF [09:43:47]Write i2c OK [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: 01 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: 01 07 00 [09:43:47]MH_I2C_Read... [09:43:47]Read from MH i2c: 01 07 00 E7 18 00 00 00 00 00 FF 0F 14 [09:43:47]RasterBufferAndPrint [09:43:47]line Счет N : (3)214307 [09:43:47]line ИНН: 02508201610067 [09:43:47]line Контрольно-Кассовый Чек [09:43:47]line ПРОДАЖА [09:43:47]line Товар: 4700007110073 [09:43:47]line Сэндвич с кетчупом Талас Даамы [09:43:47]line 1.000 * 70.00 [09:43:47]line = 70.00 [09:43:47]line НДС 12% НСП 1% [09:43:47]line > о реализуемом товаре [09:43:47]line ИТОГО: 70.00 [09:43:47]line НСП 1% : 0.62 [09:43:47]line НДС 12% : 7.43 [09:43:47]line Наличными: 0.00 [09:43:47]line Безнал.: 70.00 [09:43:47]line Место: АЗС № 140 "Партнер Нефть" [09:43:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:43:47]line СНО: Общий режим [09:43:47]line Чек 45 16.07.2024 09:43 [09:43:47]line Смена: 371 ФФД: 1.0 [09:43:47]line ЗНМ: 0300000189 [09:43:47]line РНМ: 0000000000098025 [09:43:47]line Версия ККМ: 001 [09:43:47]line Платежная система: O! деньги [09:43:47]line ФМ: 0000000000965389 [09:43:47]line ФД: 31726 [09:43:47]line ФПД: 228290873651983 [09:43:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094349&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31726&fm=228290873651983&tin=02508201610067®Number=0000000000098025&sum=7000 [09:43:47]line 0 [09:43:47]OFD Sender: Processing packet 31726 [packets to send 6, broken 5] [09:43:47]ProducePacketName [09:43:47]name=ofd_packets/00031726 [09:43:47]OFD Sender: To server: pG, [09:43:47]CommunicateWithHost lk.salyk.kg:30040 [09:43:47]ConnectInit lk.salyk.kg [09:43:47]written 0, free lines is 4095 [09:43:47]Connected sock=10 [09:43:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3E 01 00 00 41 F5 36 01 2D 10 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 D5 40 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EE 7B 00 00 35 04 06 00 CF A1 1C 6D F3 0F EB E7 90 9C 51 D9 8B 4B [09:43:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 65 20 47 00 F6 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 35 33 38 39 10 04 04 00 EE 7B 00 00 F4 03 04 00 E3 EC 95 66 B6 04 01 00 00 BB 7B AD CF AD E3 52 24 [09:43:48]CommunicateWithHost err = 0 [09:43:48]CheckOFDResponse [09:43:48]1017 (14) - 77093643461234 [09:43:48]1041 (16) - 0000000000965389 [09:43:48]1040 (4) - 31726 [09:43:48]1012 (4) - 16.07.2024 03:45 [09:43:48]1206 (1) - 0 [09:43:48]OFD Sender: Remove packet 31726 [09:43:48]ProducePacketName [09:43:48]name=ofd_packets/00031726 [09:43:48]NVStorageDeleteData [09:43:48]Write to MH i2c: 01 00 00 12 19 2B [09:43:48]Write i2c OK [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: 01 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: 01 07 00 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: 01 07 00 12 19 00 00 00 00 00 CD 0C 0B [09:43:48]RasterBufferAndPrint [09:43:48]line [09:43:48]line [09:43:48]line [09:43:48]line [09:43:48]line [09:43:48]written 0, free lines is 3283 [09:43:48]MH_Cut [09:43:48]Write to MH i2c: D1 01 00 19 19 01 04 [09:43:48]Write i2c OK [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: D1 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: D1 01 00 [09:43:48]MH_I2C_Read... [09:43:48]Read from MH i2c: D1 01 00 19 19 00 03 [09:43:48]Write to MH i2c: 01 00 00 1A 19 33 [09:43:48]Write i2c OK [09:43:48]MH_I2C_Read... [09:43:48]OFD Sender: No OFD packet to send [09:43:48]*** Cut start [09:43:48]*** Partial cut [09:43:48]*** CUTSNS_PIN = 1 [09:43:48]*** CUTSNS_PIN = 0 [09:43:49]*** Brake cut motor [09:43:49]Read from MH i2c: 01 [09:43:49]MH_I2C_Read... [09:43:49]*** Stop cut motor [09:43:49]*** Cut end [09:43:49]Read from MH i2c: 01 07 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: 01 07 00 1A 19 00 00 00 00 00 FF 0F 48 [09:43:49]process_action close_receipt done [09:43:49]requested_data is exist [09:43:49]produce_requested_data [09:43:49]requested_item fm.sn is exist - process it [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 11 00 00 [09:43:49]Write to MH i2c: E2 08 00 1B 19 80 11 00 00 00 00 00 00 AE [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 17 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 17 00 1B 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 09 [09:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:43:49]wFMCommunicate OK [09:43:49]requested_item fd.num is exist - process it [09:43:49]SAM_PROTO_GetFieldsCounters [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 13 00 00 [09:43:49]Write to MH i2c: E2 08 00 1C 19 80 13 00 00 00 00 00 00 B1 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 62 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 62 00 1C 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 EE 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [09:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 EE 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:49]wFMCommunicate OK [09:43:49]SAM_PROTO_GetFieldsCounters done [09:43:49]requested_item shift.num is exist - process it [09:43:49]requested_item shift.opened is exist - process it [09:43:49]req_shift_opened [09:43:49]FM_GetShiftState [09:43:49]SAM_PROTO_GetShiftState [09:43:49]wFMCommunicate request_size=4 [09:43:49]MH_SAM_APDU [09:43:49]CAPDU: 80 13 01 00 [09:43:49]Write to MH i2c: E2 08 00 1D 19 80 13 01 00 00 00 00 00 B3 [09:43:49]Write i2c OK [09:43:49]MH_I2C_Read... [09:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:49]Read from MH i2c: E2 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 0E 00 [09:43:49]MH_I2C_Read... [09:43:49]Read from MH i2c: E2 0E 00 1D 19 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 02 [09:43:49]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:43:49]wFMCommunicate OK [09:43:49]SAM_PROTO_GetShiftState done [09:43:49]FM_GetShiftState done [09:43:49]req_shift_opened done [09:43:49]requested_item shift.open_date is exist - process it [09:43:49]req_shift_open_date [09:43:49]req_shift_open_date done [09:43:49]produce_requested_data done [09:43:49]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31726,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [09:43:49]process_action_free close_receipt [09:43:49]json_value_free [09:43:49]json_value_free done [09:43:49]process_json_proto returns [09:43:49]Send response to host [09:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31726,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [09:43:49]free response buf [09:43:49]execute_script done [09:43:49]execute_script returns [09:43:49]free content buf [09:43:49]Sock 7.Close socket [09:43:49]Sock 7.Thread stoped [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:33]OFD Sender: No OFD packet to send [09:45:38]OFD Sender: No OFD packet to send [09:45:43]OFD Sender: No OFD packet to send [09:45:48]OFD Sender: No OFD packet to send [09:45:53]OFD Sender: No OFD packet to send [09:45:58]OFD Sender: No OFD packet to send [09:46:03]OFD Sender: No OFD packet to send [09:46:08]OFD Sender: No OFD packet to send [09:46:13]OFD Sender: No OFD packet to send [09:46:18]OFD Sender: No OFD packet to send [09:46:23]OFD Sender: No OFD packet to send [09:46:28]OFD Sender: No OFD packet to send [09:46:33]OFD Sender: No OFD packet to send [09:46:38]OFD Sender: No OFD packet to send [09:46:43]OFD Sender: No OFD packet to send [09:46:44]accept exits with 9 [09:46:44]New connection [09:46:44]New thread 3066965348 created [09:46:44]Thread 3066821988 joined [09:46:44]Waiting for new connection... [09:46:44] Sock 9.Parse request [09:46:44]Sock 9.Check first char [09:46:44]Sock 9.First char is OK [09:46:44]request: POST /json_proto HTTP/1.0 [09:46:44]Method: POST [09:46:44]URL: /json_proto [09:46:44]Method is POST - this is cgi request [09:46:44]url: /json_proto [09:46:44]query_string will be loaded in cgi processing [09:46:44]execute_cgi json_proto POST (null) [09:46:44]execute_cgi path=json_proto method=POST [09:46:44]POST find Content-Length [09:46:44]Host: 172.17.39.68:8080 [09:46:44]Content-Length: 623 [09:46:44]Content-Type: application/json [09:46:44] [09:46:44]POST finish read [09:46:44]Found Content-Length = 623 [09:46:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214308", "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" ] } } [09:46:44]execute_script... [09:46: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)214308", "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" ] } } [09:46:44]POST & json_proto [09:46:44]process_json_proto [09:46:44]json parsed OK: [09:46:44]protocol is kg_v1.0 [09:46:44]action value=close_receipt [09:46:44]process_action close_receipt [09:46:44]cmd_close_receipt [09:46:44]MH_GetDate [09:46:44]Write to MH i2c: F0 00 00 1E 19 26 [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: F0 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: F0 09 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: F0 09 00 1E 19 00 88 41 96 66 D6 48 95 66 0D [09:46:44]GetLastDocTimeStamp 1721123029 [09:46:44]current date 1721123208 [09:46:44]FM_GetShiftState [09:46:44]SAM_PROTO_GetShiftState [09:46:44]wFMCommunicate request_size=4 [09:46:44]MH_SAM_APDU [09:46:44]CAPDU: 80 13 01 00 [09:46:44]Write to MH i2c: E2 08 00 1F 19 80 13 01 00 00 00 00 00 B5 [09:46:44]Write i2c OK [09:46:44]MH_I2C_Read... [09:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:44]Read from MH i2c: E2 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 0E 00 [09:46:44]MH_I2C_Read... [09:46:44]Read from MH i2c: E2 0E 00 1F 19 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 04 [09:46:44]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:46:44]wFMCommunicate OK [09:46:44]SAM_PROTO_GetShiftState done [09:46:44]FM_GetShiftState done [09:46:44]opened in 1721088399 [09:46:44]opened+sec_in_day 1721174799 [09:46:44]quantity*price = 14000 [09:46:44]sum+1 = 14001 [09:46:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 46 16.07.2024 09:46 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31727 ФПД: 152583825532875 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094648&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31727&fm=152583825532875&tin=02508201610067®Number=0000000000098025&sum=14000 0 [09:46:45]StoreToDocumentArchive [09:46:45]shift 371 fd 31727 [09:46:45]save to /storage/0371/doc_00031727 [09:46:45]save last doc name /storage/0371/doc_00031727 to /storage/kkm_last_doc_name [09:46:45]save OK [09:46:45]Clear old archive folders... [09:46:45]ProcessDocumentItem done err = 0, tmpTLVsize=275 [09:46:45]tlvbuf is 0149B580 [09:46:45]SAM_PROTO_ClearQueue [09:46:45]wFMCommunicate request_size=4 [09:46:45]MH_SAM_APDU [09:46:45]CAPDU: 80 09 00 00 [09:46:45]Write to MH i2c: E2 08 00 2C 19 80 09 00 00 00 00 00 00 B7 [09:46:45]Write i2c OK [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 [09:46:45]MH_I2C_Read... [09:46:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:45]Read from MH i2c: E2 03 00 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 03 00 2C 19 00 90 00 B9 [09:46:45]RAPDU: 90 00 [09:46:45]wFMCommunicate OK [09:46:45]SAM_PROTO_ClearQueue done [09:46:45]KKMCreateOFDPacket [09:46:45]OFDProtocolAddRootSTLVToBuf [09:46:45]FM_MakeSignedData [09:46:45]FM_MakeSignedData [09:46:45]SAM_PROTO_SignData [09:46:45]wFMCommunicate request_size=4 [09:46:45]MH_SAM_APDU [09:46:45]CAPDU: 80 0D 01 02 [09:46:45]Write to MH i2c: E2 08 00 2D 19 80 0D 01 02 00 00 00 00 BF [09:46:45]Write i2c OK [09:46:45]MH_I2C_Read... [09:46:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:45]Read from MH i2c: E2 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 03 00 [09:46:45]MH_I2C_Read... [09:46:45]Read from MH i2c: E2 03 00 2D 19 00 90 00 BA [09:46:45]RAPDU: 90 00 [09:46:45]wFMCommunicate OK [09:46:45]wFMCommunicate request_size=255 [09:46:45]MH_SAM_APDU [09:46:45]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 2E 00 00 00 F4 03 04 00 88 41 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [09:46:45]Write to MH i2c: E2 02 01 2E 19 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 2E 00 00 00 F4 03 04 00 88 41 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 B5 [09:46:45]Write i2c OK [09:46:45]MH_I2C_Read... [09:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:46]Read from MH i2c: E2 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 03 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 03 00 2E 19 00 90 00 BB [09:46:46]RAPDU: 90 00 [09:46:46]wFMCommunicate OK [09:46:46]wFMCommunicate request_size=34 [09:46:46]MH_SAM_APDU [09:46:46]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EF 7B 00 00 35 04 06 00 8A C6 30 B8 27 CB [09:46:46]Write to MH i2c: E2 25 00 2F 19 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EF 7B 00 00 35 04 06 00 8A C6 30 B8 27 CB 00 00 1F [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:46:46]Read from MH i2c: E2 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 03 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 03 00 2F 19 00 90 00 BC [09:46:46]RAPDU: 90 00 [09:46:46]wFMCommunicate OK [09:46:46]wFMCommunicate request_size=4 [09:46:46]MH_SAM_APDU [09:46:46]CAPDU: 80 0D 03 02 [09:46:46]Write to MH i2c: E2 08 00 30 19 80 0D 03 02 00 00 00 00 C4 [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:46:46]Read from MH i2c: E2 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 0B 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 0B 00 30 19 00 F1 55 0A 69 51 3E 0A 1C 90 00 33 [09:46:46]RAPDU: F1 55 0A 69 51 3E 0A 1C 90 00 [09:46:46]wFMCommunicate OK [09:46:46]SAM_PROTO_SignData done [09:46:46]FM_MakeSignedData done [09:46:46]CreateOFDProtocolMessage [09:46:46]wFMCommunicate request_size=4 [09:46:46]MH_SAM_APDU [09:46:46]CAPDU: 80 11 00 00 [09:46:46]Write to MH i2c: E2 08 00 31 19 80 11 00 00 00 00 00 00 C4 [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:46]Read from MH i2c: E2 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 17 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: E2 17 00 31 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1F [09:46:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:46:46]wFMCommunicate OK [09:46:46]CreateOFDProtocolMessage done [09:46:46]OFDSenderStorePacket 31727 [09:46:46]StoreOFDPacket docnum=31727 [09:46:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 6C 8F 1F 01 37 2B 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 2E 00 00 00 F4 03 04 00 88 41 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EF 7B 00 00 35 04 06 00 8A C6 30 B8 27 CB F1 55 0A 69 51 3E 0A 1C [09:46:46]CheckFolder [09:46:46]dirname=/storage/ofd_packets [09:46:46]CheckFolder done [09:46:46]ProducePacketName [09:46:46]name=ofd_packets/00031727 [09:46:46]NVStorageSaveData ofd_packets/00031727 [09:46:46]File name is /storage/ofd_packets/00031727 [09:46:46]Write 325 bytes [09:46:46]NVStorageSaveData done [09:46:46]OFDSenderStorePacket done [09:46:46]KKMCreateOFDPacket done [09:46:46]NVStorageSaveData kkm_last_timestamp [09:46:46]File name is /storage/kkm_last_timestamp [09:46:46]Write 4 bytes [09:46:46]NVStorageSaveData done [09:46:46]ExternCall_PrintAddStr [09:46:46]wPrintStart [09:46:46]Write to MH i2c: 01 00 00 32 19 4B [09:46:46]Write i2c OK [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: 01 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: 01 07 00 [09:46:46]MH_I2C_Read... [09:46:46]Read from MH i2c: 01 07 00 32 19 00 00 00 00 00 FF 0F 60 [09:46:46]RasterBufferAndPrint [09:46:46]line Счет N : (3)214308 [09:46:46]line ИНН: 02508201610067 [09:46:46]line Контрольно-Кассовый Чек [09:46:46]line ПРОДАЖА [09:46:46]line Товар: 48743587 [09:46:46]line Сигареты Winston XStyle Silver [09:46:46]line 1.000 * 140.00 [09:46:46]line = 140.00 [09:46:46]line НДС 12% НСП 1% [09:46:46]line > о реализуемом товаре [09:46:46]line ИТОГО: 140.00 [09:46:46]line НСП 1% : 1.24 [09:46:46]line НДС 12% : 14.87 [09:46:46]line Наличными: 140.00 [09:46:46]line Безнал.: 0.00 [09:46:46]line Место: АЗС № 140 "Партнер Нефть" [09:46:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:46:46]line СНО: Общий режим [09:46:46]line Чек 46 16.07.2024 09:46 [09:46:46]line Смена: 371 ФФД: 1.0 [09:46:46]line ЗНМ: 0300000189 [09:46:46]line РНМ: 0000000000098025 [09:46:46]line Версия ККМ: 001 [09:46:46]line ФМ: 0000000000965389 [09:46:46]line ФД: 31727 [09:46:46]line ФПД: 152583825532875 [09:46:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094648&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31727&fm=152583825532875&tin=02508201610067®Number=0000000000098025&sum=14000 [09:46:46]line 0 [09:46:46]OFD Sender: Processing packet 31727 [packets to send 6, broken 5] [09:46:46]ProducePacketName [09:46:46]name=ofd_packets/00031727 [09:46:46]OFD Sender: To server: pG, [09:46:46]CommunicateWithHost lk.salyk.kg:30040 [09:46:46]ConnectInit lk.salyk.kg [09:46:46]written 0, free lines is 4095 [09:46:46]Connected sock=10 [09:46:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 6C 8F 1F 01 37 2B 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 2E 00 00 00 F4 03 04 00 88 41 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 EF 7B 00 00 35 04 06 00 8A C6 30 B8 27 CB F1 55 0A 69 51 3E 0A 1C [09:46:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 3F AE 47 00 50 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 35 33 38 39 10 04 04 00 EF 7B 00 00 F4 03 04 00 96 ED 95 66 B6 04 01 00 00 AB D8 FB 69 89 68 69 0B [09:46:46]CommunicateWithHost err = 0 [09:46:46]CheckOFDResponse [09:46:46]1017 (14) - 77093643461234 [09:46:46]1041 (16) - 0000000000965389 [09:46:46]1040 (4) - 31727 [09:46:46]1012 (4) - 16.07.2024 03:48 [09:46:46]1206 (1) - 0 [09:46:46]OFD Sender: Remove packet 31727 [09:46:46]ProducePacketName [09:46:46]name=ofd_packets/00031727 [09:46:46]NVStorageDeleteData [09:46:47]Write to MH i2c: 01 00 00 5B 19 74 [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 07 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: 01 07 00 5B 19 00 00 00 00 00 DE 0C 65 [09:46:47]RasterBufferAndPrint [09:46:47]line [09:46:47]line [09:46:47]line [09:46:47]line [09:46:47]line [09:46:47]written 0, free lines is 3300 [09:46:47]MH_Cut [09:46:47]Write to MH i2c: D1 01 00 62 19 01 4D [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: D1 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: D1 01 00 [09:46:47]MH_I2C_Read... [09:46:47]Read from MH i2c: D1 01 00 62 19 00 4C [09:46:47]Write to MH i2c: 01 00 00 63 19 7C [09:46:47]Write i2c OK [09:46:47]MH_I2C_Read... [09:46:47]OFD Sender: No OFD packet to send [09:46:47]*** Cut start [09:46:47]*** Partial cut [09:46:47]*** CUTSNS_PIN = 1 [09:46:47]*** CUTSNS_PIN = 0 [09:46:48]*** Brake cut motor [09:46:48]Read from MH i2c: 01 [09:46:48]MH_I2C_Read... [09:46:48]*** Stop cut motor [09:46:48]*** Cut end [09:46:48]Read from MH i2c: 01 07 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: 01 07 00 63 19 00 00 00 00 00 FF 0F 91 [09:46:48]process_action close_receipt done [09:46:48]requested_data is exist [09:46:48]produce_requested_data [09:46:48]requested_item fm.sn is exist - process it [09:46:48]wFMCommunicate request_size=4 [09:46:48]MH_SAM_APDU [09:46:48]CAPDU: 80 11 00 00 [09:46:48]Write to MH i2c: E2 08 00 64 19 80 11 00 00 00 00 00 00 F7 [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 17 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 17 00 64 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 52 [09:46:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:46:48]wFMCommunicate OK [09:46:48]requested_item fd.num is exist - process it [09:46:48]SAM_PROTO_GetFieldsCounters [09:46:48]wFMCommunicate request_size=4 [09:46:48]MH_SAM_APDU [09:46:48]CAPDU: 80 13 00 00 [09:46:48]Write to MH i2c: E2 08 00 65 19 80 13 00 00 00 00 00 00 FA [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 62 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 62 00 65 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 EF 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [09:46: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 EF 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:46:48]wFMCommunicate OK [09:46:48]SAM_PROTO_GetFieldsCounters done [09:46:48]requested_item shift.num is exist - process it [09:46:48]requested_item shift.opened is exist - process it [09:46:48]req_shift_opened [09:46:48]FM_GetShiftState [09:46:48]SAM_PROTO_GetShiftState [09:46:48]wFMCommunicate request_size=4 [09:46:48]MH_SAM_APDU [09:46:48]CAPDU: 80 13 01 00 [09:46:48]Write to MH i2c: E2 08 00 66 19 80 13 01 00 00 00 00 00 FC [09:46:48]Write i2c OK [09:46:48]MH_I2C_Read... [09:46:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:48]Read from MH i2c: E2 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 0E 00 [09:46:48]MH_I2C_Read... [09:46:48]Read from MH i2c: E2 0E 00 66 19 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 4B [09:46:48]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:46:48]wFMCommunicate OK [09:46:48]SAM_PROTO_GetShiftState done [09:46:48]FM_GetShiftState done [09:46:48]req_shift_opened done [09:46:48]requested_item shift.open_date is exist - process it [09:46:48]req_shift_open_date [09:46:48]req_shift_open_date done [09:46:48]produce_requested_data done [09:46:48]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31727,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [09:46:48]process_action_free close_receipt [09:46:48]json_value_free [09:46:48]json_value_free done [09:46:48]process_json_proto returns [09:46:48]Send response to host [09:46:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31727,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [09:46:48]free response buf [09:46:48]execute_script done [09:46:48]execute_script returns [09:46:48]free content buf [09:46:48]Sock 9.Close socket [09:46:48]Sock 9.Thread stoped [09:46:52]OFD Sender: No OFD packet to send [09:46:57]OFD Sender: No OFD packet to send [09:46:58]accept exits with 7 [09:46:58]New connection [09:46:58]New thread 3066821988 created [09:46:58]Thread 3066965348 joined [09:46:58]Waiting for new connection... [09:46:58] Sock 7.Parse request [09:46:58]Sock 7.Check first char [09:46:58]Sock 7.First char is OK [09:46:58]request: POST /json_proto HTTP/1.0 [09:46:58]Method: POST [09:46:58]URL: /json_proto [09:46:58]Method is POST - this is cgi request [09:46:58]url: /json_proto [09:46:58]query_string will be loaded in cgi processing [09:46:58]execute_cgi json_proto POST (null) [09:46:58]execute_cgi path=json_proto method=POST [09:46:58]POST find Content-Length [09:46:58]Host: 172.17.39.68:8080 [09:46:58]Content-Length: 661 [09:46:58]Content-Type: application/json [09:46:58] [09:46:58]POST finish read [09:46:58]Found Content-Length = 661 [09:46:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214309", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:58]execute_script... [09:46: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)214309", "tax_sys" : 0, "items" : [ { "code": "6931280300549", "name": "\u0417\u0430\u0436\u0438\u0433\u0430\u043B\u043A\u0430 Cricket \u041F\u041D \u043F\u044C\u0435\u0437\u043E", "price" : 67.00, "quantity" : 1.000, "sum" : 67.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 67.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:46:58]POST & json_proto [09:46:58]process_json_proto [09:46:58]json parsed OK: [09:46:58]protocol is kg_v1.0 [09:46:58]action value=close_receipt [09:46:58]process_action close_receipt [09:46:58]cmd_close_receipt [09:46:58]MH_GetDate [09:46:58]Write to MH i2c: F0 00 00 67 19 6F [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: F0 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: F0 09 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: F0 09 00 67 19 00 96 41 96 66 D6 48 95 66 64 [09:46:58]GetLastDocTimeStamp 1721123208 [09:46:58]current date 1721123222 [09:46:58]FM_GetShiftState [09:46:58]SAM_PROTO_GetShiftState [09:46:58]wFMCommunicate request_size=4 [09:46:58]MH_SAM_APDU [09:46:58]CAPDU: 80 13 01 00 [09:46:58]Write to MH i2c: E2 08 00 68 19 80 13 01 00 00 00 00 00 FE [09:46:58]Write i2c OK [09:46:58]MH_I2C_Read... [09:46:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:46:58]Read from MH i2c: E2 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: E2 0E 00 [09:46:58]MH_I2C_Read... [09:46:58]Read from MH i2c: E2 0E 00 68 19 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 4D [09:46:58]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:46:58]wFMCommunicate OK [09:46:58]SAM_PROTO_GetShiftState done [09:46:58]FM_GetShiftState done [09:46:58]opened in 1721088399 [09:46:58]opened+sec_in_day 1721174799 [09:46:58]quantity*price = 6700 [09:46:58]sum+1 = 6701 [09:46:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 67.00 НСП 1% : 0.59 НДС 12% : 7.11 Наличными: 67.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 47 16.07.2024 09:47 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31728 ФПД: 215428661679262 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094702&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31728&fm=215428661679262&tin=02508201610067®Number=0000000000098025&sum=6700 0 [09:46:59]StoreToDocumentArchive [09:46:59]shift 371 fd 31728 [09:46:59]save to /storage/0371/doc_00031728 [09:46:59]save last doc name /storage/0371/doc_00031728 to /storage/kkm_last_doc_name [09:46:59]save OK [09:46:59]Clear old archive folders... [09:46:59]ProcessDocumentItem done err = 0, tmpTLVsize=284 [09:46:59]tlvbuf is 01496650 [09:46:59]SAM_PROTO_ClearQueue [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 09 00 00 [09:46:59]Write to MH i2c: E2 08 00 75 19 80 09 00 00 00 00 00 00 00 [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 75 19 00 90 00 02 [09:46:59]RAPDU: 90 00 [09:46:59]wFMCommunicate OK [09:46:59]SAM_PROTO_ClearQueue done [09:46:59]KKMCreateOFDPacket [09:46:59]OFDProtocolAddRootSTLVToBuf [09:46:59]FM_MakeSignedData [09:46:59]FM_MakeSignedData [09:46:59]SAM_PROTO_SignData [09:46:59]wFMCommunicate request_size=4 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 0D 01 02 [09:46:59]Write to MH i2c: E2 08 00 76 19 80 0D 01 02 00 00 00 00 08 [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:46:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:46:59]Read from MH i2c: E2 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 [09:46:59]MH_I2C_Read... [09:46:59]Read from MH i2c: E2 03 00 76 19 00 90 00 03 [09:46:59]RAPDU: 90 00 [09:46:59]wFMCommunicate OK [09:46:59]wFMCommunicate request_size=255 [09:46:59]MH_SAM_APDU [09:46:59]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 96 41 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 [09:46:59]Write to MH i2c: E2 02 01 77 19 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 96 41 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 00 00 9E [09:46:59]Write i2c OK [09:46:59]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 77 19 00 90 00 04 [09:47:00]RAPDU: 90 00 [09:47:00]wFMCommunicate OK [09:47:00]wFMCommunicate request_size=43 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F0 7B 00 00 35 04 06 00 C3 EE 64 DA 94 9E [09:47:00]Write to MH i2c: E2 2E 00 78 19 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F0 7B 00 00 35 04 06 00 C3 EE 64 DA 94 9E 00 00 87 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 03 00 78 19 00 90 00 05 [09:47:00]RAPDU: 90 00 [09:47:00]wFMCommunicate OK [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 0D 03 02 [09:47:00]Write to MH i2c: E2 08 00 79 19 80 0D 03 02 00 00 00 00 0D [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0B 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 0B 00 79 19 00 D6 E3 D4 27 4D 1B E1 51 90 00 5C [09:47:00]RAPDU: D6 E3 D4 27 4D 1B E1 51 90 00 [09:47:00]wFMCommunicate OK [09:47:00]SAM_PROTO_SignData done [09:47:00]FM_MakeSignedData done [09:47:00]CreateOFDProtocolMessage [09:47:00]wFMCommunicate request_size=4 [09:47:00]MH_SAM_APDU [09:47:00]CAPDU: 80 11 00 00 [09:47:00]Write to MH i2c: E2 08 00 7A 19 80 11 00 00 00 00 00 00 0D [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:00]Read from MH i2c: E2 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 17 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: E2 17 00 7A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 68 [09:47:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:47:00]wFMCommunicate OK [09:47:00]CreateOFDProtocolMessage done [09:47:00]OFDSenderStorePacket 31728 [09:47:00]StoreOFDPacket docnum=31728 [09:47:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 30 01 00 00 BB 92 28 01 2B AD 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 96 41 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F0 7B 00 00 35 04 06 00 C3 EE 64 DA 94 9E D6 E3 D4 27 4D 1B E1 51 [09:47:00]CheckFolder [09:47:00]dirname=/storage/ofd_packets [09:47:00]CheckFolder done [09:47:00]ProducePacketName [09:47:00]name=ofd_packets/00031728 [09:47:00]NVStorageSaveData ofd_packets/00031728 [09:47:00]File name is /storage/ofd_packets/00031728 [09:47:00]Write 334 bytes [09:47:00]NVStorageSaveData done [09:47:00]OFDSenderStorePacket done [09:47:00]KKMCreateOFDPacket done [09:47:00]NVStorageSaveData kkm_last_timestamp [09:47:00]File name is /storage/kkm_last_timestamp [09:47:00]Write 4 bytes [09:47:00]NVStorageSaveData done [09:47:00]OFD Sender: Processing packet 31728 [packets to send 6, broken 5] [09:47:00]ProducePacketName [09:47:00]name=ofd_packets/00031728 [09:47:00]OFD Sender: To server: pG, [09:47:00]CommunicateWithHost lk.salyk.kg:30040 [09:47:00]ConnectInit lk.salyk.kg [09:47:00]ExternCall_PrintAddStr [09:47:00]wPrintStart [09:47:00]Write to MH i2c: 01 00 00 7B 19 94 [09:47:00]Write i2c OK [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: 01 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: 01 07 00 [09:47:00]MH_I2C_Read... [09:47:00]Read from MH i2c: 01 07 00 7B 19 00 00 00 00 00 FF 0F A9 [09:47:00]RasterBufferAndPrint [09:47:00]line Счет N : (3)214309 [09:47:00]line ИНН: 02508201610067 [09:47:00]line Контрольно-Кассовый Чек [09:47:00]line ПРОДАЖА [09:47:00]line Товар: 6931280300549 [09:47:00]line Зажигалка Cricket ПН пьезо [09:47:00]line 1.000 * 67.00 [09:47:00]line = 67.00 [09:47:00]line НДС 12% НСП 1% [09:47:00]line > о реализуемом товаре [09:47:00]line ИТОГО: 67.00 [09:47:00]line НСП 1% : 0.59 [09:47:00]line НДС 12% : 7.11 [09:47:00]line Наличными: 67.00 [09:47:00]line Безнал.: 0.00 [09:47:00]line Место: АЗС № 140 "Партнер Нефть" [09:47:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:47:00]line СНО: Общий режим [09:47:00]line Чек 47 16.07.2024 09:47 [09:47:00]line Смена: 371 ФФД: 1.0 [09:47:00]line ЗНМ: 0300000189 [09:47:00]line РНМ: 0000000000098025 [09:47:00]line Версия ККМ: 001 [09:47:00]line ФМ: 0000000000965389 [09:47:00]line ФД: 31728 [09:47:00]line ФПД: 215428661679262 [09:47:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094702&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31728&fm=215428661679262&tin=02508201610067®Number=0000000000098025&sum=6700 [09:47:00]line 0 [09:47:00]Connected sock=11 [09:47:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 30 01 00 00 BB 92 28 01 2B AD 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 36 39 33 31 32 38 30 33 30 30 35 34 39 06 04 2A 00 D0 97 D0 B0 D0 B6 D0 B8 D0 B3 D0 B0 D0 BB D0 BA D0 B0 20 43 72 69 63 6B 65 74 20 D0 9F D0 9D 20 D0 BF D1 8C D0 B5 D0 B7 D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 2C 1A 00 00 00 00 13 04 06 00 2C 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C7 02 00 00 00 00 07 04 06 00 2C 1A 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 96 41 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F0 7B 00 00 35 04 06 00 C3 EE 64 DA 94 9E D6 E3 D4 27 4D 1B E1 51 [09:47:00]written 0, free lines is 4095 [09:47:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 24 1C 47 00 93 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F0 7B 00 00 F4 03 04 00 A4 ED 95 66 B6 04 01 00 00 FE 7D DA 9F 80 25 51 93 [09:47:00]CommunicateWithHost err = 0 [09:47:00]CheckOFDResponse [09:47:00]1017 (14) - 77093643461234 [09:47:00]1041 (16) - 0000000000965389 [09:47:00]1040 (4) - 31728 [09:47:00]1012 (4) - 16.07.2024 03:48 [09:47:00]1206 (1) - 0 [09:47:00]OFD Sender: Remove packet 31728 [09:47:00]ProducePacketName [09:47:00]name=ofd_packets/00031728 [09:47:00]NVStorageDeleteData [09:47:01]Write to MH i2c: 01 00 00 A3 19 BC [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: 01 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: 01 07 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: 01 07 00 A3 19 00 00 00 00 00 10 0D E0 [09:47:01]RasterBufferAndPrint [09:47:01]line [09:47:01]line [09:47:01]line [09:47:01]line [09:47:01]line [09:47:01]written 0, free lines is 3350 [09:47:01]MH_Cut [09:47:01]Write to MH i2c: D1 01 00 AA 19 01 95 [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: D1 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: D1 01 00 [09:47:01]MH_I2C_Read... [09:47:01]Read from MH i2c: D1 01 00 AA 19 00 94 [09:47:01]Write to MH i2c: 01 00 00 AB 19 C4 [09:47:01]Write i2c OK [09:47:01]MH_I2C_Read... [09:47:01]OFD Sender: No OFD packet to send [09:47:01]*** Cut start [09:47:01]*** Partial cut [09:47:01]*** CUTSNS_PIN = 1 [09:47:01]*** CUTSNS_PIN = 0 [09:47:02]*** Brake cut motor [09:47:02]Read from MH i2c: 01 [09:47:02]MH_I2C_Read... [09:47:02]*** Stop cut motor [09:47:02]*** Cut end [09:47:02]Read from MH i2c: 01 07 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: 01 07 00 AB 19 00 00 00 00 00 FF 0F D9 [09:47:02]process_action close_receipt done [09:47:02]requested_data is exist [09:47:02]produce_requested_data [09:47:02]requested_item fm.sn is exist - process it [09:47:02]wFMCommunicate request_size=4 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 11 00 00 [09:47:02]Write to MH i2c: E2 08 00 AC 19 80 11 00 00 00 00 00 00 3F [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 17 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 17 00 AC 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9A [09:47:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:47:02]wFMCommunicate OK [09:47:02]requested_item fd.num is exist - process it [09:47:02]SAM_PROTO_GetFieldsCounters [09:47:02]wFMCommunicate request_size=4 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 13 00 00 [09:47:02]Write to MH i2c: E2 08 00 AD 19 80 13 00 00 00 00 00 00 42 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 62 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 62 00 AD 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F0 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [09:47: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F0 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:02]wFMCommunicate OK [09:47:02]SAM_PROTO_GetFieldsCounters done [09:47:02]requested_item shift.num is exist - process it [09:47:02]requested_item shift.opened is exist - process it [09:47:02]req_shift_opened [09:47:02]FM_GetShiftState [09:47:02]SAM_PROTO_GetShiftState [09:47:02]wFMCommunicate request_size=4 [09:47:02]MH_SAM_APDU [09:47:02]CAPDU: 80 13 01 00 [09:47:02]Write to MH i2c: E2 08 00 AE 19 80 13 01 00 00 00 00 00 44 [09:47:02]Write i2c OK [09:47:02]MH_I2C_Read... [09:47:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:02]Read from MH i2c: E2 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 0E 00 [09:47:02]MH_I2C_Read... [09:47:02]Read from MH i2c: E2 0E 00 AE 19 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 93 [09:47:02]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:47:02]wFMCommunicate OK [09:47:02]SAM_PROTO_GetShiftState done [09:47:02]FM_GetShiftState done [09:47:02]req_shift_opened done [09:47:02]requested_item shift.open_date is exist - process it [09:47:02]req_shift_open_date [09:47:02]req_shift_open_date done [09:47:02]produce_requested_data done [09:47:02]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31728,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [09:47:02]process_action_free close_receipt [09:47:02]json_value_free [09:47:02]json_value_free done [09:47:02]process_json_proto returns [09:47:02]Send response to host [09:47:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31728,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [09:47:02]free response buf [09:47:02]execute_script done [09:47:02]execute_script returns [09:47:02]free content buf [09:47:02]Sock 7.Close socket [09:47:02]Sock 7.Thread stoped [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [09:47:39]accept exits with 9 [09:47:39]New connection [09:47:39]New thread 3066965348 created [09:47:39]Thread 3066821988 joined [09:47:39]Waiting for new connection... [09:47:39] Sock 9.Parse request [09:47:39]Sock 9.Check first char [09:47:39]Sock 9.First char is OK [09:47:39]request: POST /json_proto HTTP/1.0 [09:47:39]Method: POST [09:47:39]URL: /json_proto [09:47:39]Method is POST - this is cgi request [09:47:39]url: /json_proto [09:47:39]query_string will be loaded in cgi processing [09:47:39]execute_cgi json_proto POST (null) [09:47:39]execute_cgi path=json_proto method=POST [09:47:39]POST find Content-Length [09:47:39]Host: 172.17.39.68:8080 [09:47:39]Content-Length: 751 [09:47:39]Content-Type: application/json [09:47:39] [09:47:39]POST finish read [09:47:39]Found Content-Length = 751 [09:47:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214310", "tax_sys" : 0, "items" : [ { "code": "4601025113964", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,9", "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" ] } } [09:47:39]execute_script... [09:47: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)214310", "tax_sys" : 0, "items" : [ { "code": "4601025113964", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0440\u0443\u0442\u043C\u043E\u0442\u0438\u0432 \u0442\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043C\u0438\u043A\u0441 0,9", "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" ] } } [09:47:39]POST & json_proto [09:47:39]process_json_proto [09:47:39]json parsed OK: [09:47:39]protocol is kg_v1.0 [09:47:39]action value=close_receipt [09:47:39]process_action close_receipt [09:47:39]cmd_close_receipt [09:47:39]MH_GetDate [09:47:39]Write to MH i2c: F0 00 00 AF 19 B7 [09:47:39]Write i2c OK [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: F0 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: F0 09 00 [09:47:39]MH_I2C_Read... [09:47:39]Read from MH i2c: F0 09 00 AF 19 00 BF 41 96 66 D6 48 95 66 D5 [09:47:39]GetLastDocTimeStamp 1721123222 [09:47:39]current date 1721123263 [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 B0 19 80 13 01 00 00 00 00 00 46 [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 B0 19 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 95 [09:47:39]RAPDU: 09 00 01 8F B9 95 66 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]opened in 1721088399 [09:47:39]opened+sec_in_day 1721174799 [09:47:39]quantity*price = 13500 [09:47:39]sum+1 = 13501 [09:47:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 48 16.07.2024 09:47 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31729 ФПД: 263090972010906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094743&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31729&fm=263090972010906&tin=02508201610067®Number=0000000000098025&sum=13500 0 [09:47:40]StoreToDocumentArchive [09:47:40]shift 371 fd 31729 [09:47:40]save to /storage/0371/doc_00031729 [09:47:40]save last doc name /storage/0371/doc_00031729 to /storage/kkm_last_doc_name [09:47:40]save OK [09:47:40]Clear old archive folders... [09:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=311 [09:47:40]tlvbuf is 014E65E0 [09:47:40]SAM_PROTO_ClearQueue [09:47:40]wFMCommunicate request_size=4 [09:47:40]MH_SAM_APDU [09:47:40]CAPDU: 80 09 00 00 [09:47:40]Write to MH i2c: E2 08 00 BD 19 80 09 00 00 00 00 00 00 48 [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 [09:47:40]MH_I2C_Read... [09:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:40]Read from MH i2c: E2 03 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [09:47:40]RAPDU: 90 00 [09:47:40]wFMCommunicate OK [09:47:40]SAM_PROTO_ClearQueue done [09:47:40]KKMCreateOFDPacket [09:47:40]OFDProtocolAddRootSTLVToBuf [09:47:40]FM_MakeSignedData [09:47:40]FM_MakeSignedData [09:47:40]SAM_PROTO_SignData [09:47:40]wFMCommunicate request_size=4 [09:47:40]MH_SAM_APDU [09:47:40]CAPDU: 80 0D 01 02 [09:47:40]Write to MH i2c: E2 08 00 BE 19 80 0D 01 02 00 00 00 00 50 [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:40]Read from MH i2c: E2 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 03 00 [09:47:40]MH_I2C_Read... [09:47:40]Read from MH i2c: E2 03 00 BE 19 00 90 00 4B [09:47:40]RAPDU: 90 00 [09:47:40]wFMCommunicate OK [09:47:40]wFMCommunicate request_size=255 [09:47:40]MH_SAM_APDU [09:47:40]CAPDU: 80 0D 02 02 FA 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 33 39 36 34 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 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 30 00 00 00 F4 03 04 00 BF 41 96 66 0E 04 04 00 73 01 [09:47:40]Write to MH i2c: E2 02 01 BF 19 80 0D 02 02 FA 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 33 39 36 34 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 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 30 00 00 00 F4 03 04 00 BF 41 96 66 0E 04 04 00 73 01 00 00 71 [09:47:40]Write i2c OK [09:47:40]MH_I2C_Read... [09:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:41]Read from MH i2c: E2 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 03 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 03 00 BF 19 00 90 00 4C [09:47:41]RAPDU: 90 00 [09:47:41]wFMCommunicate OK [09:47:41]wFMCommunicate request_size=70 [09:47:41]MH_SAM_APDU [09:47:41]CAPDU: 80 0D 02 02 41 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F1 7B 00 00 35 04 06 00 EF 47 A3 EE 29 9A [09:47:41]Write to MH i2c: E2 49 00 C0 19 80 0D 02 02 41 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F1 7B 00 00 35 04 06 00 EF 47 A3 EE 29 9A 00 00 67 [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:41]Read from MH i2c: E2 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 03 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 03 00 C0 19 00 90 00 4D [09:47:41]RAPDU: 90 00 [09:47:41]wFMCommunicate OK [09:47:41]wFMCommunicate request_size=4 [09:47:41]MH_SAM_APDU [09:47:41]CAPDU: 80 0D 03 02 [09:47:41]Write to MH i2c: E2 08 00 C1 19 80 0D 03 02 00 00 00 00 55 [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:41]Read from MH i2c: E2 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 0B 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 0B 00 C1 19 00 6F C9 EF EE BC 09 11 9F 90 00 E0 [09:47:41]RAPDU: 6F C9 EF EE BC 09 11 9F 90 00 [09:47:41]wFMCommunicate OK [09:47:41]SAM_PROTO_SignData done [09:47:41]FM_MakeSignedData done [09:47:41]CreateOFDProtocolMessage [09:47:41]wFMCommunicate request_size=4 [09:47:41]MH_SAM_APDU [09:47:41]CAPDU: 80 11 00 00 [09:47:41]Write to MH i2c: E2 08 00 C2 19 80 11 00 00 00 00 00 00 55 [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:41]Read from MH i2c: E2 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 17 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: E2 17 00 C2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B0 [09:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:47:41]wFMCommunicate OK [09:47:41]CreateOFDProtocolMessage done [09:47:41]OFDSenderStorePacket 31729 [09:47:41]StoreOFDPacket docnum=31729 [09:47:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4B 01 00 00 17 AD 43 01 4C 2B 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 33 39 36 34 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 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 30 00 00 00 F4 03 04 00 BF 41 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F1 7B 00 00 35 04 06 00 EF 47 A3 EE 29 9A 6F C9 EF EE BC 09 11 9F [09:47:41]CheckFolder [09:47:41]dirname=/storage/ofd_packets [09:47:41]CheckFolder done [09:47:41]ProducePacketName [09:47:41]name=ofd_packets/00031729 [09:47:41]NVStorageSaveData ofd_packets/00031729 [09:47:41]File name is /storage/ofd_packets/00031729 [09:47:41]Write 361 bytes [09:47:41]NVStorageSaveData done [09:47:41]OFDSenderStorePacket done [09:47:41]KKMCreateOFDPacket done [09:47:41]NVStorageSaveData kkm_last_timestamp [09:47:41]File name is /storage/kkm_last_timestamp [09:47:41]Write 4 bytes [09:47:41]NVStorageSaveData done [09:47:41]ExternCall_PrintAddStr [09:47:41]wPrintStart [09:47:41]Write to MH i2c: 01 00 00 C3 19 DC [09:47:41]Write i2c OK [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: 01 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: 01 07 00 [09:47:41]MH_I2C_Read... [09:47:41]Read from MH i2c: 01 07 00 C3 19 00 00 00 00 00 FF 0F F1 [09:47:41]RasterBufferAndPrint [09:47:41]line Счет N : (3)214310 [09:47:41]line ИНН: 02508201610067 [09:47:41]line Контрольно-Кассовый Чек [09:47:41]line ПРОДАЖА [09:47:41]line Товар: 4601025113964 [09:47:41]line Напиток Фрутмотив тропический микс 0,9 [09:47:41]line 1.000 * 135.00 [09:47:41]line = 135.00 [09:47:41]line НДС 12% НСП 1% [09:47:41]line > о реализуемом товаре [09:47:41]line ИТОГО: 135.00 [09:47:41]line НСП 1% : 1.19 [09:47:41]line НДС 12% : 14.34 [09:47:41]line Наличными: 135.00 [09:47:41]line Безнал.: 0.00 [09:47:41]line Место: АЗС № 140 "Партнер Нефть" [09:47:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [09:47:41]line СНО: Общий режим [09:47:41]line Чек 48 16.07.2024 09:47 [09:47:41]line Смена: 371 ФФД: 1.0 [09:47:41]line ЗНМ: 0300000189 [09:47:41]line РНМ: 0000000000098025 [09:47:41]line Версия ККМ: 001 [09:47:41]line ФМ: 0000000000965389 [09:47:41]line ФД: 31729 [09:47:41]line ФПД: 263090972010906 [09:47:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T094743&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31729&fm=263090972010906&tin=02508201610067®Number=0000000000098025&sum=13500 [09:47:41]line 0 [09:47:41]OFD Sender: Processing packet 31729 [packets to send 6, broken 5] [09:47:41]ProducePacketName [09:47:41]name=ofd_packets/00031729 [09:47:41]OFD Sender: To server: pG, [09:47:41]CommunicateWithHost lk.salyk.kg:30040 [09:47:41]ConnectInit lk.salyk.kg [09:47:41]written 0, free lines is 4095 [09:47:41]Connected sock=10 [09:47:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4B 01 00 00 17 AD 43 01 4C 2B 5A 03 01 00 03 00 37 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 36 30 31 30 32 35 31 31 33 39 36 34 06 04 45 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BC D0 BE D1 82 D0 B8 D0 B2 20 D1 82 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BC D0 B8 D0 BA D1 81 20 30 2C 39 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 30 00 00 00 F4 03 04 00 BF 41 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F1 7B 00 00 35 04 06 00 EF 47 A3 EE 29 9A 6F C9 EF EE BC 09 11 9F [09:47:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 25 AC 47 00 9F 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 35 33 38 39 10 04 04 00 F1 7B 00 00 F4 03 04 00 CD ED 95 66 B6 04 01 00 00 3C 43 E4 5A C2 74 7F AD [09:47:42]CommunicateWithHost err = 0 [09:47:42]CheckOFDResponse [09:47:42]1017 (14) - 77093643461234 [09:47:42]1041 (16) - 0000000000965389 [09:47:42]1040 (4) - 31729 [09:47:42]1012 (4) - 16.07.2024 03:49 [09:47:42]1206 (1) - 0 [09:47:42]OFD Sender: Remove packet 31729 [09:47:42]ProducePacketName [09:47:42]name=ofd_packets/00031729 [09:47:42]NVStorageDeleteData [09:47:42]Write to MH i2c: 01 00 00 EC 19 05 [09:47:42]Write i2c OK [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: 01 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: 01 07 00 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: 01 07 00 EC 19 00 00 00 00 00 F7 0C 0F [09:47:42]RasterBufferAndPrint [09:47:42]line [09:47:42]line [09:47:42]line [09:47:42]line [09:47:42]line [09:47:42]written 0, free lines is 3330 [09:47:42]MH_Cut [09:47:42]Write to MH i2c: D1 01 00 F3 19 01 DE [09:47:42]Write i2c OK [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: D1 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: D1 01 00 [09:47:42]MH_I2C_Read... [09:47:42]Read from MH i2c: D1 01 00 F3 19 00 DD [09:47:42]Write to MH i2c: 01 00 00 F4 19 0D [09:47:42]Write i2c OK [09:47:42]MH_I2C_Read... [09:47:42]OFD Sender: No OFD packet to send [09:47:42]*** Cut start [09:47:42]*** Partial cut [09:47:42]*** CUTSNS_PIN = 1 [09:47:42]*** CUTSNS_PIN = 0 [09:47:43]*** Brake cut motor [09:47:43]Read from MH i2c: 01 [09:47:43]MH_I2C_Read... [09:47:43]*** Stop cut motor [09:47:43]*** Cut end [09:47:43]Read from MH i2c: 01 07 00 [09:47:43]MH_I2C_Read... [09:47:43]Read from MH i2c: 01 07 00 F4 19 00 00 00 00 00 FF 0F 22 [09:47:43]process_action close_receipt done [09:47:43]requested_data is exist [09:47:43]produce_requested_data [09:47:43]requested_item fm.sn is exist - process it [09:47:43]wFMCommunicate request_size=4 [09:47:43]MH_SAM_APDU [09:47:43]CAPDU: 80 11 00 00 [09:47:43]Write to MH i2c: E2 08 00 F5 19 80 11 00 00 00 00 00 00 88 [09:47:43]Write i2c OK [09:47:43]MH_I2C_Read... [09:47:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:43]Read from MH i2c: E2 [09:47:43]MH_I2C_Read... [09:47:43]Read from MH i2c: E2 17 00 [09:47:43]MH_I2C_Read... [09:47:43]Read from MH i2c: E2 17 00 F5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E3 [09:47:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [09:47:43]wFMCommunicate OK [09:47:43]requested_item fd.num is exist - process it [09:47:43]SAM_PROTO_GetFieldsCounters [09:47:43]wFMCommunicate request_size=4 [09:47:43]MH_SAM_APDU [09:47:43]CAPDU: 80 13 00 00 [09:47:43]Write to MH i2c: E2 08 00 F6 19 80 13 00 00 00 00 00 00 8B [09:47:43]Write i2c OK [09:47:43]MH_I2C_Read... [09:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:43]Read from MH i2c: E2 [09:47:43]MH_I2C_Read... [09:47:43]Read from MH i2c: E2 62 00 [09:47:43]MH_I2C_Read... [09:47:43]Read from MH i2c: E2 62 00 F6 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F1 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [09:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F1 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:43]wFMCommunicate OK [09:47:43]SAM_PROTO_GetFieldsCounters done [09:47:43]requested_item shift.num is exist - process it [09:47:43]requested_item shift.opened is exist - process it [09:47:43]req_shift_opened [09:47:43]FM_GetShiftState [09:47:43]SAM_PROTO_GetShiftState [09:47:43]wFMCommunicate request_size=4 [09:47:43]MH_SAM_APDU [09:47:43]CAPDU: 80 13 01 00 [09:47:43]Write to MH i2c: E2 08 00 F7 19 80 13 01 00 00 00 00 00 8D [09:47:43]Write i2c OK [09:47:43]MH_I2C_Read... [09:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:43]Read from MH i2c: E2 [09:47:43]MH_I2C_Read... [09:47:43]Read from MH i2c: E2 0E 00 [09:47:43]MH_I2C_Read... [09:47:43]Read from MH i2c: E2 0E 00 F7 19 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 DC [09:47:43]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [09:47:43]wFMCommunicate OK [09:47:43]SAM_PROTO_GetShiftState done [09:47:43]FM_GetShiftState done [09:47:43]req_shift_opened done [09:47:43]requested_item shift.open_date is exist - process it [09:47:43]req_shift_open_date [09:47:43]req_shift_open_date done [09:47:43]produce_requested_data done [09:47:43]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31729,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [09:47:43]process_action_free close_receipt [09:47:43]json_value_free [09:47:43]json_value_free done [09:47:43]process_json_proto returns [09:47:43]Send response to host [09:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31729,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [09:47:43]free response buf [09:47:43]execute_script done [09:47:43]execute_script returns [09:47:43]free content buf [09:47:43]Sock 9.Close socket [09:47:43]Sock 9.Thread stoped [09:47:47]OFD Sender: No OFD packet to send [09:47:52]OFD Sender: No OFD packet to send [09:47:57]OFD Sender: No OFD packet to send [09:48:02]OFD Sender: No OFD packet to send [09:48:07]OFD Sender: No OFD packet to send [09:48:12]OFD Sender: No OFD packet to send [09:48:17]OFD Sender: No OFD packet to send [09:48:22]OFD Sender: No OFD packet to send [09:48:27]OFD Sender: No OFD packet to send [09:48:32]OFD Sender: No OFD packet to send [09:48:37]OFD Sender: No OFD packet to send [09:48:42]OFD Sender: No OFD packet to send [09:48:47]OFD Sender: No OFD packet to send [09:48:52]OFD Sender: No OFD packet to send [09:48:57]OFD Sender: No OFD packet to send [09:49:02]OFD Sender: No OFD packet to send [09:49:07]OFD Sender: No OFD packet to send [09:49:12]OFD Sender: No OFD packet to send [09:49:17]OFD Sender: No OFD packet to send [09:49:22]OFD Sender: No OFD packet to send [09:49:27]OFD Sender: No OFD packet to send [09:49:32]OFD Sender: No OFD packet to send [09:49:37]OFD Sender: No OFD packet to send [09:49:42]OFD Sender: No OFD packet to send [09:49:47]OFD Sender: No OFD packet to send [09:49:52]OFD Sender: No OFD packet to send [09:49:57]OFD Sender: No OFD packet to send [09:50:02]OFD Sender: No OFD packet to send [09:50:07]OFD Sender: No OFD packet to send [09:50:12]OFD Sender: No OFD packet to send [09:50:17]OFD Sender: No OFD packet to send [09:50:22]OFD Sender: No OFD packet to send [09:50:27]OFD Sender: No OFD packet to send [09:50:32]OFD Sender: No OFD packet to send [09:50:37]OFD Sender: No OFD packet to send [09:50:42]OFD Sender: No OFD packet to send [09:50:47]OFD Sender: No OFD packet to send [09:50:52]OFD Sender: No OFD packet to send [09:50:57]OFD Sender: No OFD packet to send [09:51:02]OFD Sender: No OFD packet to send [09:51:07]OFD Sender: No OFD packet to send [09:51:12]OFD Sender: No OFD packet to send [09:51:17]OFD Sender: No OFD packet to send [09:51:22]OFD Sender: No OFD packet to send [09:51:27]OFD Sender: No OFD packet to send [09:51:32]OFD Sender: No OFD packet to send [09:51:37]OFD Sender: No OFD packet to send [09:51:42]OFD Sender: No OFD packet to send [09:51:47]OFD Sender: No OFD packet to send [09:51:52]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00:23]OFD Sender: No OFD packet to send [10:00:28]OFD Sender: No OFD packet to send [10:00:33]OFD Sender: No OFD packet to send [10:00:38]OFD Sender: No OFD packet to send [10:00:43]OFD Sender: No OFD packet to send [10:00:48]OFD Sender: No OFD packet to send [10:00:53]OFD Sender: No OFD packet to send [10:00:58]OFD Sender: No OFD packet to send [10:01:03]OFD Sender: No OFD packet to send [10:01:08]OFD Sender: No OFD packet to send [10:01:13]OFD Sender: No OFD packet to send [10:01:18]OFD Sender: No OFD packet to send [10:01:23]OFD Sender: No OFD packet to send [10:01:28]OFD Sender: No OFD packet to send [10:01:33]OFD Sender: No OFD packet to send [10:01:38]OFD Sender: No OFD packet to send [10:01:43]OFD Sender: No OFD packet to send [10:01:48]OFD Sender: No OFD packet to send [10:01:53]OFD Sender: No OFD packet to send [10:01:58]OFD Sender: No OFD packet to send [10:02:03]OFD Sender: No OFD packet to send [10:02:08]OFD Sender: No OFD packet to send [10:02:13]OFD Sender: No OFD packet to send [10:02:18]OFD Sender: No OFD packet to send [10:02:23]OFD Sender: No OFD packet to send [10:02:28]OFD Sender: No OFD packet to send [10:02:33]OFD Sender: No OFD packet to send [10:02:38]OFD Sender: No OFD packet to send [10:02:43]OFD Sender: No OFD packet to send [10:02:48]OFD Sender: No OFD packet to send [10:02:53]OFD Sender: No OFD packet to send [10:02:54]accept exits with 7 [10:02:54]New connection [10:02:54]New thread 3066821988 created [10:02:54]Thread 3066965348 joined [10:02:54]Waiting for new connection... [10:02:54] Sock 7.Parse request [10:02:54]Sock 7.Check first char [10:02:54]Sock 7.First char is OK [10:02:54]request: POST /json_proto HTTP/1.0 [10:02:54]Method: POST [10:02:54]URL: /json_proto [10:02:54]Method is POST - this is cgi request [10:02:54]url: /json_proto [10:02:54]query_string will be loaded in cgi processing [10:02:54]execute_cgi json_proto POST (null) [10:02:54]execute_cgi path=json_proto method=POST [10:02:54]POST find Content-Length [10:02:54]Host: 172.17.39.68:8080 [10:02:54]Content-Length: 623 [10:02:54]Content-Type: application/json [10:02:54] [10:02:54]POST finish read [10:02:54]Found Content-Length = 623 [10:02:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214311", "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" ] } } [10:02:54]execute_script... [10:02: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)214311", "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" ] } } [10:02:54]POST & json_proto [10:02:54]process_json_proto [10:02:54]json parsed OK: [10:02:54]protocol is kg_v1.0 [10:02:54]action value=close_receipt [10:02:54]process_action close_receipt [10:02:54]cmd_close_receipt [10:02:54]MH_GetDate [10:02:54]Write to MH i2c: F0 00 00 F8 19 00 [10:02:54]Write i2c OK [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: F0 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: F0 09 00 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: F0 09 00 F8 19 00 52 45 96 66 D6 48 95 66 B5 [10:02:54]GetLastDocTimeStamp 1721123263 [10:02:54]current date 1721124178 [10:02:54]FM_GetShiftState [10:02:54]SAM_PROTO_GetShiftState [10:02:54]wFMCommunicate request_size=4 [10:02:54]MH_SAM_APDU [10:02:54]CAPDU: 80 13 01 00 [10:02:54]Write to MH i2c: E2 08 00 F9 19 80 13 01 00 00 00 00 00 8F [10:02:54]Write i2c OK [10:02:54]MH_I2C_Read... [10:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:54]Read from MH i2c: E2 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 0E 00 [10:02:54]MH_I2C_Read... [10:02:54]Read from MH i2c: E2 0E 00 F9 19 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 DE [10:02:54]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [10:02:54]wFMCommunicate OK [10:02:54]SAM_PROTO_GetShiftState done [10:02:54]FM_GetShiftState done [10:02:54]opened in 1721088399 [10:02:54]opened+sec_in_day 1721174799 [10:02:54]quantity*price = 14000 [10:02:54]sum+1 = 14001 [10:02:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 49 16.07.2024 10:02 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31730 ФПД: 255851929300993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T100258&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31730&fm=255851929300993&tin=02508201610067®Number=0000000000098025&sum=14000 0 [10:02:55]StoreToDocumentArchive [10:02:55]shift 371 fd 31730 [10:02:55]save to /storage/0371/doc_00031730 [10:02:55]save last doc name /storage/0371/doc_00031730 to /storage/kkm_last_doc_name [10:02:55]save OK [10:02:55]Clear old archive folders... [10:02:55]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:02:55]tlvbuf is 0147B030 [10:02:55]SAM_PROTO_ClearQueue [10:02:55]wFMCommunicate request_size=4 [10:02:55]MH_SAM_APDU [10:02:55]CAPDU: 80 09 00 00 [10:02:55]Write to MH i2c: E2 08 00 06 1A 80 09 00 00 00 00 00 00 92 [10:02:55]Write i2c OK [10:02:55]MH_I2C_Read... [10:02:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:55]Read from MH i2c: E2 [10:02:55]MH_I2C_Read... [10:02:55]Read from MH i2c: E2 03 00 [10:02:55]MH_I2C_Read... [10:02:55]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [10:02:55]RAPDU: 90 00 [10:02:55]wFMCommunicate OK [10:02:55]SAM_PROTO_ClearQueue done [10:02:55]KKMCreateOFDPacket [10:02:55]OFDProtocolAddRootSTLVToBuf [10:02:55]FM_MakeSignedData [10:02:55]FM_MakeSignedData [10:02:55]SAM_PROTO_SignData [10:02:55]wFMCommunicate request_size=4 [10:02:55]MH_SAM_APDU [10:02:55]CAPDU: 80 0D 01 02 [10:02:55]Write to MH i2c: E2 08 00 07 1A 80 0D 01 02 00 00 00 00 9A [10:02:55]Write i2c OK [10:02:55]MH_I2C_Read... [10:02:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:55]Read from MH i2c: E2 [10:02:55]MH_I2C_Read... [10:02:55]Read from MH i2c: E2 03 00 [10:02:55]MH_I2C_Read... [10:02:55]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [10:02:55]RAPDU: 90 00 [10:02:55]wFMCommunicate OK [10:02:55]wFMCommunicate request_size=255 [10:02:55]MH_SAM_APDU [10:02:55]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 31 00 00 00 F4 03 04 00 52 45 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [10:02:55]Write to MH i2c: E2 02 01 08 1A 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 31 00 00 00 F4 03 04 00 52 45 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 61 [10:02:55]Write i2c OK [10:02:55]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 08 1A 00 90 00 96 [10:02:56]RAPDU: 90 00 [10:02:56]wFMCommunicate OK [10:02:56]wFMCommunicate request_size=34 [10:02:56]MH_SAM_APDU [10:02:56]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F2 7B 00 00 35 04 06 00 E8 B2 2B 5C 70 01 [10:02:56]Write to MH i2c: E2 25 00 09 1A 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F2 7B 00 00 35 04 06 00 E8 B2 2B 5C 70 01 00 00 65 [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 03 00 09 1A 00 90 00 97 [10:02:56]RAPDU: 90 00 [10:02:56]wFMCommunicate OK [10:02:56]wFMCommunicate request_size=4 [10:02:56]MH_SAM_APDU [10:02:56]CAPDU: 80 0D 03 02 [10:02:56]Write to MH i2c: E2 08 00 0A 1A 80 0D 03 02 00 00 00 00 9F [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 0B 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 0B 00 0A 1A 00 26 A9 CB 74 43 AA 9C D4 90 00 0B [10:02:56]RAPDU: 26 A9 CB 74 43 AA 9C D4 90 00 [10:02:56]wFMCommunicate OK [10:02:56]SAM_PROTO_SignData done [10:02:56]FM_MakeSignedData done [10:02:56]CreateOFDProtocolMessage [10:02:56]wFMCommunicate request_size=4 [10:02:56]MH_SAM_APDU [10:02:56]CAPDU: 80 11 00 00 [10:02:56]Write to MH i2c: E2 08 00 0B 1A 80 11 00 00 00 00 00 00 9F [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:56]Read from MH i2c: E2 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 17 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: E2 17 00 0B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FA [10:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:02:56]wFMCommunicate OK [10:02:56]CreateOFDProtocolMessage done [10:02:56]OFDSenderStorePacket 31730 [10:02:56]StoreOFDPacket docnum=31730 [10:02:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 49 7D 1F 01 FB DE 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 31 00 00 00 F4 03 04 00 52 45 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F2 7B 00 00 35 04 06 00 E8 B2 2B 5C 70 01 26 A9 CB 74 43 AA 9C D4 [10:02:56]CheckFolder [10:02:56]dirname=/storage/ofd_packets [10:02:56]CheckFolder done [10:02:56]ProducePacketName [10:02:56]name=ofd_packets/00031730 [10:02:56]NVStorageSaveData ofd_packets/00031730 [10:02:56]File name is /storage/ofd_packets/00031730 [10:02:56]Write 325 bytes [10:02:56]NVStorageSaveData done [10:02:56]OFDSenderStorePacket done [10:02:56]KKMCreateOFDPacket done [10:02:56]NVStorageSaveData kkm_last_timestamp [10:02:56]File name is /storage/kkm_last_timestamp [10:02:56]Write 4 bytes [10:02:56]NVStorageSaveData done [10:02:56]ExternCall_PrintAddStr [10:02:56]wPrintStart [10:02:56]Write to MH i2c: 01 00 00 0C 1A 26 [10:02:56]Write i2c OK [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: 01 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: 01 07 00 [10:02:56]MH_I2C_Read... [10:02:56]Read from MH i2c: 01 07 00 0C 1A 00 00 00 00 00 FF 0F 3B [10:02:56]RasterBufferAndPrint [10:02:56]line Счет N : (3)214311 [10:02:56]line ИНН: 02508201610067 [10:02:56]line Контрольно-Кассовый Чек [10:02:56]line ПРОДАЖА [10:02:56]line Товар: 48743587 [10:02:56]line Сигареты Winston XStyle Silver [10:02:56]line 1.000 * 140.00 [10:02:56]line = 140.00 [10:02:56]line НДС 12% НСП 1% [10:02:56]line > о реализуемом товаре [10:02:56]line ИТОГО: 140.00 [10:02:56]line НСП 1% : 1.24 [10:02:56]line НДС 12% : 14.87 [10:02:56]line Наличными: 140.00 [10:02:56]line Безнал.: 0.00 [10:02:56]line Место: АЗС № 140 "Партнер Нефть" [10:02:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:02:56]line СНО: Общий режим [10:02:56]line Чек 49 16.07.2024 10:02 [10:02:56]line Смена: 371 ФФД: 1.0 [10:02:56]line ЗНМ: 0300000189 [10:02:56]line РНМ: 0000000000098025 [10:02:56]line Версия ККМ: 001 [10:02:56]line ФМ: 0000000000965389 [10:02:56]line ФД: 31730 [10:02:56]line ФПД: 255851929300993 [10:02:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T100258&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31730&fm=255851929300993&tin=02508201610067®Number=0000000000098025&sum=14000 [10:02:56]line 0 [10:02:56]OFD Sender: Processing packet 31730 [packets to send 6, broken 5] [10:02:56]ProducePacketName [10:02:56]name=ofd_packets/00031730 [10:02:56]OFD Sender: To server: pG, [10:02:56]CommunicateWithHost lk.salyk.kg:30040 [10:02:56]ConnectInit lk.salyk.kg [10:02:56]written 0, free lines is 4095 [10:02:56]Connected sock=10 [10:02:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 49 7D 1F 01 FB DE 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 31 00 00 00 F4 03 04 00 52 45 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F2 7B 00 00 35 04 06 00 E8 B2 2B 5C 70 01 26 A9 CB 74 43 AA 9C D4 [10:02:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 8C 96 47 00 98 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 35 33 38 39 10 04 04 00 F2 7B 00 00 F4 03 04 00 60 F1 95 66 B6 04 01 00 00 C8 7F C5 5C 6B 2B B6 A2 [10:02:57]CommunicateWithHost err = 0 [10:02:57]CheckOFDResponse [10:02:57]1017 (14) - 77093643461234 [10:02:57]1041 (16) - 0000000000965389 [10:02:57]1040 (4) - 31730 [10:02:57]1012 (4) - 16.07.2024 04:04 [10:02:57]1206 (1) - 0 [10:02:57]OFD Sender: Remove packet 31730 [10:02:57]ProducePacketName [10:02:57]name=ofd_packets/00031730 [10:02:57]NVStorageDeleteData [10:02:57]Write to MH i2c: 01 00 00 35 1A 4F [10:02:57]Write i2c OK [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: 01 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: 01 07 00 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: 01 07 00 35 1A 00 00 00 00 00 E2 0C 44 [10:02:57]RasterBufferAndPrint [10:02:57]line [10:02:57]line [10:02:57]line [10:02:57]line [10:02:57]line [10:02:57]written 0, free lines is 3303 [10:02:57]MH_Cut [10:02:57]Write to MH i2c: D1 01 00 3C 1A 01 28 [10:02:57]Write i2c OK [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: D1 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: D1 01 00 [10:02:57]MH_I2C_Read... [10:02:57]Read from MH i2c: D1 01 00 3C 1A 00 27 [10:02:57]Write to MH i2c: 01 00 00 3D 1A 57 [10:02:57]Write i2c OK [10:02:57]MH_I2C_Read... [10:02:57]OFD Sender: No OFD packet to send [10:02:57]*** Cut start [10:02:57]*** Partial cut [10:02:57]*** CUTSNS_PIN = 1 [10:02:57]*** CUTSNS_PIN = 0 [10:02:58]*** Brake cut motor [10:02:58]Read from MH i2c: 01 [10:02:58]MH_I2C_Read... [10:02:58]*** Stop cut motor [10:02:58]*** Cut end [10:02:58]Read from MH i2c: 01 07 00 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: 01 07 00 3D 1A 00 00 00 00 00 FF 0F 6C [10:02:58]process_action close_receipt done [10:02:58]requested_data is exist [10:02:58]produce_requested_data [10:02:58]requested_item fm.sn is exist - process it [10:02:58]wFMCommunicate request_size=4 [10:02:58]MH_SAM_APDU [10:02:58]CAPDU: 80 11 00 00 [10:02:58]Write to MH i2c: E2 08 00 3E 1A 80 11 00 00 00 00 00 00 D2 [10:02:58]Write i2c OK [10:02:58]MH_I2C_Read... [10:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:58]Read from MH i2c: E2 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 17 00 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 17 00 3E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2D [10:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:02:58]wFMCommunicate OK [10:02:58]requested_item fd.num is exist - process it [10:02:58]SAM_PROTO_GetFieldsCounters [10:02:58]wFMCommunicate request_size=4 [10:02:58]MH_SAM_APDU [10:02:58]CAPDU: 80 13 00 00 [10:02:58]Write to MH i2c: E2 08 00 3F 1A 80 13 00 00 00 00 00 00 D5 [10:02:58]Write i2c OK [10:02:58]MH_I2C_Read... [10:02:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:58]Read from MH i2c: E2 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 62 00 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 62 00 3F 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F2 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 71 [10:02: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F2 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:58]wFMCommunicate OK [10:02:58]SAM_PROTO_GetFieldsCounters done [10:02:58]requested_item shift.num is exist - process it [10:02:58]requested_item shift.opened is exist - process it [10:02:58]req_shift_opened [10:02:58]FM_GetShiftState [10:02:58]SAM_PROTO_GetShiftState [10:02:58]wFMCommunicate request_size=4 [10:02:58]MH_SAM_APDU [10:02:58]CAPDU: 80 13 01 00 [10:02:58]Write to MH i2c: E2 08 00 40 1A 80 13 01 00 00 00 00 00 D7 [10:02:58]Write i2c OK [10:02:58]MH_I2C_Read... [10:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:58]Read from MH i2c: E2 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 0E 00 [10:02:58]MH_I2C_Read... [10:02:58]Read from MH i2c: E2 0E 00 40 1A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 26 [10:02:58]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [10:02:58]wFMCommunicate OK [10:02:58]SAM_PROTO_GetShiftState done [10:02:58]FM_GetShiftState done [10:02:58]req_shift_opened done [10:02:58]requested_item shift.open_date is exist - process it [10:02:58]req_shift_open_date [10:02:58]req_shift_open_date done [10:02:58]produce_requested_data done [10:02:58]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31730,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [10:02:58]process_action_free close_receipt [10:02:58]json_value_free [10:02:58]json_value_free done [10:02:58]process_json_proto returns [10:02:58]Send response to host [10:02:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31730,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [10:02:58]free response buf [10:02:58]execute_script done [10:02:58]execute_script returns [10:02:58]free content buf [10:02:58]Sock 7.Close socket [10:02:58]Sock 7.Thread stoped [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [10:08:42]OFD Sender: No OFD packet to send [10:08:47]OFD Sender: No OFD packet to send [10:08:52]OFD Sender: No OFD packet to send [10:08:57]OFD Sender: No OFD packet to send [10:09:02]OFD Sender: No OFD packet to send [10:09:07]OFD Sender: No OFD packet to send [10:09:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:22]OFD Sender: No OFD packet to send [10:11:27]OFD Sender: No OFD packet to send [10:11: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:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:28]OFD Sender: No OFD packet to send [10:22:33]OFD Sender: No OFD packet to send [10:22:38]OFD Sender: No OFD packet to send [10:22:43]OFD Sender: No OFD packet to send [10:22:48]OFD Sender: No OFD packet to send [10:22:53]OFD Sender: No OFD packet to send [10:22:58]OFD Sender: No OFD packet to send [10:23:03]OFD Sender: No OFD packet to send [10:23:08]OFD Sender: No OFD packet to send [10:23:13]OFD Sender: No OFD packet to send [10:23:18]OFD Sender: No OFD packet to send [10:23:23]OFD Sender: No OFD packet to send [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25: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:54]accept exits with 9 [10:26:54]New connection [10:26:54]New thread 3066965348 created [10:26:54]Thread 3066821988 joined [10:26:54]Waiting for new connection... [10:26:54] Sock 9.Parse request [10:26:54]Sock 9.Check first char [10:26:54]Sock 9.First char is OK [10:26:54]request: POST /json_proto HTTP/1.0 [10:26:54]Method: POST [10:26:54]URL: /json_proto [10:26:54]Method is POST - this is cgi request [10:26:54]url: /json_proto [10:26:54]query_string will be loaded in cgi processing [10:26:54]execute_cgi json_proto POST (null) [10:26:54]execute_cgi path=json_proto method=POST [10:26:54]POST find Content-Length [10:26:54]Host: 172.17.39.68:8080 [10:26:54]Content-Length: 934 [10:26:54]Content-Type: application/json [10:26:54] [10:26:54]POST finish read [10:26:54]Found Content-Length = 934 [10:26:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214312", "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 }]} ,{ "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" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:54]execute_script... [10:26: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)214312", "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 }]} ,{ "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" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:54]POST & json_proto [10:26:54]process_json_proto [10:26:54]json parsed OK: [10:26:54]protocol is kg_v1.0 [10:26:54]action value=close_receipt [10:26:54]process_action close_receipt [10:26:54]cmd_close_receipt [10:26:54]MH_GetDate [10:26:54]Write to MH i2c: F0 00 00 41 1A 4A [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: F0 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: F0 09 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: F0 09 00 41 1A 00 F2 4A 96 66 D6 48 95 66 A4 [10:26:54]GetLastDocTimeStamp 1721124178 [10:26:54]current date 1721125618 [10:26:54]FM_GetShiftState [10:26:54]SAM_PROTO_GetShiftState [10:26:54]wFMCommunicate request_size=4 [10:26:54]MH_SAM_APDU [10:26:54]CAPDU: 80 13 01 00 [10:26:54]Write to MH i2c: E2 08 00 42 1A 80 13 01 00 00 00 00 00 D9 [10:26:54]Write i2c OK [10:26:54]MH_I2C_Read... [10:26:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:54]Read from MH i2c: E2 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 0E 00 [10:26:54]MH_I2C_Read... [10:26:54]Read from MH i2c: E2 0E 00 42 1A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 28 [10:26:54]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [10:26:54]wFMCommunicate OK [10:26:54]SAM_PROTO_GetShiftState done [10:26:54]FM_GetShiftState done [10:26:54]opened in 1721088399 [10:26:54]opened+sec_in_day 1721174799 [10:26:54]quantity*price = 11000 [10:26:54]sum+1 = 11001 [10:26:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46227737 Р/ж mentos pure fresh арбуз ролл 15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.40 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 50 16.07.2024 10:26 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31731 ФПД: 267374580196532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T102658&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31731&fm=267374580196532&tin=02508201610067®Number=0000000000098025&sum=15900 0 [10:26:55]StoreToDocumentArchive [10:26:55]shift 371 fd 31731 [10:26:55]save to /storage/0371/doc_00031731 [10:26:55]save last doc name /storage/0371/doc_00031731 to /storage/kkm_last_doc_name [10:26:55]save OK [10:26:55]Clear old archive folders... [10:26:55]ProcessDocumentItem done err = 0, tmpTLVsize=410 [10:26:55]tlvbuf is 0147AFF0 [10:26:55]SAM_PROTO_ClearQueue [10:26:55]wFMCommunicate request_size=4 [10:26:55]MH_SAM_APDU [10:26:55]CAPDU: 80 09 00 00 [10:26:55]Write to MH i2c: E2 08 00 4F 1A 80 09 00 00 00 00 00 00 DB [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:55]Read from MH i2c: E2 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 03 00 [10:26:55]MH_I2C_Read... [10:26:55]Read from MH i2c: E2 03 00 4F 1A 00 90 00 DD [10:26:55]RAPDU: 90 00 [10:26:55]wFMCommunicate OK [10:26:55]SAM_PROTO_ClearQueue done [10:26:55]KKMCreateOFDPacket [10:26:55]OFDProtocolAddRootSTLVToBuf [10:26:55]FM_MakeSignedData [10:26:55]FM_MakeSignedData [10:26:55]SAM_PROTO_SignData [10:26:55]wFMCommunicate request_size=4 [10:26:55]MH_SAM_APDU [10:26:55]CAPDU: 80 0D 01 02 [10:26:55]Write to MH i2c: E2 08 00 50 1A 80 0D 01 02 00 00 00 00 E3 [10:26:55]Write i2c OK [10:26:55]MH_I2C_Read... [10:26:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [10:26:56]RAPDU: 90 00 [10:26:56]wFMCommunicate OK [10:26:56]wFMCommunicate request_size=255 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 0D 02 02 FA 03 00 9A 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 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 [10:26:56]Write to MH i2c: E2 02 01 51 1A 80 0D 02 02 FA 00 03 00 9A 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 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 00 00 9B [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 51 1A 00 90 00 DF [10:26:56]RAPDU: 90 00 [10:26:56]wFMCommunicate OK [10:26:56]wFMCommunicate request_size=169 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 0D 02 02 A4 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F2 4A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F3 7B 00 00 35 04 06 00 F3 2C FE DF E4 B4 [10:26:56]Write to MH i2c: E2 AC 00 52 1A 80 0D 02 02 A4 00 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F2 4A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F3 7B 00 00 35 04 06 00 F3 2C FE DF E4 B4 00 00 39 [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 03 00 52 1A 00 90 00 E0 [10:26:56]RAPDU: 90 00 [10:26:56]wFMCommunicate OK [10:26:56]wFMCommunicate request_size=4 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 0D 03 02 [10:26:56]Write to MH i2c: E2 08 00 53 1A 80 0D 03 02 00 00 00 00 E8 [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 0B 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 0B 00 53 1A 00 4D B7 9F 72 3E 05 5B B5 90 00 51 [10:26:56]RAPDU: 4D B7 9F 72 3E 05 5B B5 90 00 [10:26:56]wFMCommunicate OK [10:26:56]SAM_PROTO_SignData done [10:26:56]FM_MakeSignedData done [10:26:56]CreateOFDProtocolMessage [10:26:56]wFMCommunicate request_size=4 [10:26:56]MH_SAM_APDU [10:26:56]CAPDU: 80 11 00 00 [10:26:56]Write to MH i2c: E2 08 00 54 1A 80 11 00 00 00 00 00 00 E8 [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:56]Read from MH i2c: E2 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 17 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: E2 17 00 54 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 43 [10:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:26:56]wFMCommunicate OK [10:26:56]CreateOFDProtocolMessage done [10:26:56]OFDSenderStorePacket 31731 [10:26:56]StoreOFDPacket docnum=31731 [10:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AE 01 00 00 E2 D2 A6 01 BB 1A 5A 03 01 00 03 00 9A 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 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 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F2 4A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F3 7B 00 00 35 04 06 00 F3 2C FE DF E4 B4 4D B7 9F 72 3E 05 5B B5 [10:26:56]CheckFolder [10:26:56]dirname=/storage/ofd_packets [10:26:56]CheckFolder done [10:26:56]ProducePacketName [10:26:56]name=ofd_packets/00031731 [10:26:56]NVStorageSaveData ofd_packets/00031731 [10:26:56]File name is /storage/ofd_packets/00031731 [10:26:56]Write 460 bytes [10:26:56]NVStorageSaveData done [10:26:56]OFDSenderStorePacket done [10:26:56]KKMCreateOFDPacket done [10:26:56]NVStorageSaveData kkm_last_timestamp [10:26:56]File name is /storage/kkm_last_timestamp [10:26:56]Write 4 bytes [10:26:56]NVStorageSaveData done [10:26:56]ExternCall_PrintAddStr [10:26:56]wPrintStart [10:26:56]Write to MH i2c: 01 00 00 55 1A 6F [10:26:56]Write i2c OK [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: 01 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: 01 07 00 [10:26:56]MH_I2C_Read... [10:26:56]Read from MH i2c: 01 07 00 55 1A 00 00 00 00 00 FF 0F 84 [10:26:56]RasterBufferAndPrint [10:26:56]line Счет N : (3)214312 [10:26:56]line ИНН: 02508201610067 [10:26:56]line Контрольно-Кассовый Чек [10:26:56]line ПРОДАЖА [10:26:56]line Товар: 4870022003305 [10:26:56]line Напиток Gorilla эн нат ж/б 0,5/0,45л [10:26:56]line 1.000 * 110.00 [10:26:56]line = 110.00 [10:26:56]line НДС 12% НСП 1% [10:26:56]line > о реализуемом товаре [10:26:56]line Товар: 46227737 [10:26:56]line Р/ж mentos pure fresh арбуз ролл 15,5г [10:26:56]line 1.000 * 49.00 [10:26:56]line = 49.00 [10:26:56]line НДС 12% НСП 1% [10:26:56]line > о реализуемом товаре [10:26:56]line ИТОГО: 159.00 [10:26:56]line НСП 1% : 1.40 [10:26:56]line НДС 12% : 16.88 [10:26:56]line Наличными: 159.00 [10:26:56]line Безнал.: 0.00 [10:26:56]line Место: АЗС № 140 "Партнер Нефть" [10:26:56]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:26:56]line СНО: Общий режим [10:26:56]line Чек 50 16.07.2024 10:26 [10:26:56]line Смена: 371 ФФД: 1.0 [10:26:56]line ЗНМ: 0300000189 [10:26:56]line РНМ: 0000000000098025 [10:26:56]line Версия ККМ: 001 [10:26:56]line ФМ: 0000000000965389 [10:26:56]line ФД: 31731 [10:26:56]line ФПД: 267374580196532 [10:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T102658&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31731&fm=267374580196532&tin=02508201610067®Number=0000000000098025&sum=15900 [10:26:56]line 0 [10:26:56]OFD Sender: Processing packet 31731 [packets to send 6, broken 5] [10:26:56]ProducePacketName [10:26:56]name=ofd_packets/00031731 [10:26:56]OFD Sender: To server: pG, [10:26:56]CommunicateWithHost lk.salyk.kg:30040 [10:26:56]ConnectInit lk.salyk.kg [10:26:56]written 0, free lines is 4095 [10:26:57]Connected sock=10 [10:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AE 01 00 00 E2 D2 A6 01 BB 1A 5A 03 01 00 03 00 9A 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 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 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 F2 4A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F3 7B 00 00 35 04 06 00 F3 2C FE DF E4 B4 4D B7 9F 72 3E 05 5B B5 [10:26:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 53 7C 47 00 4F 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 35 33 38 39 10 04 04 00 F3 7B 00 00 F4 03 04 00 00 F7 95 66 B6 04 01 00 00 5E CF 57 A9 DD DC 5D B0 [10:26:57]CommunicateWithHost err = 0 [10:26:57]CheckOFDResponse [10:26:57]1017 (14) - 77093643461234 [10:26:57]1041 (16) - 0000000000965389 [10:26:57]1040 (4) - 31731 [10:26:57]1012 (4) - 16.07.2024 04:28 [10:26:57]1206 (1) - 0 [10:26:57]OFD Sender: Remove packet 31731 [10:26:57]ProducePacketName [10:26:57]name=ofd_packets/00031731 [10:26:57]NVStorageDeleteData [10:26:57]Write to MH i2c: 01 00 00 85 1A 9F [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: 01 07 00 85 1A 00 00 00 00 00 80 0C 32 [10:26:57]RasterBufferAndPrint [10:26:57]line [10:26:57]line [10:26:57]line [10:26:57]line [10:26:57]line [10:26:57]written 0, free lines is 3206 [10:26:57]MH_Cut [10:26:57]Write to MH i2c: D1 01 00 8C 1A 01 78 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: D1 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: D1 01 00 [10:26:57]MH_I2C_Read... [10:26:57]Read from MH i2c: D1 01 00 8C 1A 00 77 [10:26:57]Write to MH i2c: 01 00 00 8D 1A A7 [10:26:57]Write i2c OK [10:26:57]MH_I2C_Read... [10:26:57]OFD Sender: No OFD packet to send [10:26:58]*** Cut start [10:26:58]*** Partial cut [10:26:58]*** CUTSNS_PIN = 1 [10:26:58]*** CUTSNS_PIN = 0 [10:26:58]*** Brake cut motor [10:26:58]Read from MH i2c: 01 [10:26:58]MH_I2C_Read... [10:26:58]*** Stop cut motor [10:26:58]*** Cut end [10:26:58]Read from MH i2c: 01 07 00 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: 01 07 00 8D 1A 00 00 00 00 00 FF 0F BC [10:26:58]process_action close_receipt done [10:26:58]requested_data is exist [10:26:58]produce_requested_data [10:26:58]requested_item fm.sn is exist - process it [10:26:58]wFMCommunicate request_size=4 [10:26:58]MH_SAM_APDU [10:26:58]CAPDU: 80 11 00 00 [10:26:58]Write to MH i2c: E2 08 00 8E 1A 80 11 00 00 00 00 00 00 22 [10:26:58]Write i2c OK [10:26:58]MH_I2C_Read... [10:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:58]Read from MH i2c: E2 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: E2 17 00 [10:26:58]MH_I2C_Read... [10:26:58]Read from MH i2c: E2 17 00 8E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7D [10:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:26:58]wFMCommunicate OK [10:26:58]requested_item fd.num is exist - process it [10:26:58]SAM_PROTO_GetFieldsCounters [10:26:58]wFMCommunicate request_size=4 [10:26:58]MH_SAM_APDU [10:26:58]CAPDU: 80 13 00 00 [10:26:58]Write to MH i2c: E2 08 00 8F 1A 80 13 00 00 00 00 00 00 25 [10:26:58]Write i2c OK [10:26:58]MH_I2C_Read... [10:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:59]Read from MH i2c: E2 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 62 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 62 00 8F 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F3 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [10:26:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F3 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:59]wFMCommunicate OK [10:26:59]SAM_PROTO_GetFieldsCounters done [10:26:59]requested_item shift.num is exist - process it [10:26:59]requested_item shift.opened is exist - process it [10:26:59]req_shift_opened [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 90 1A 80 13 01 00 00 00 00 00 27 [10:26:59]Write i2c OK [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 [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 0E 00 [10:26:59]MH_I2C_Read... [10:26:59]Read from MH i2c: E2 0E 00 90 1A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 76 [10:26:59]RAPDU: 09 00 01 8F B9 95 66 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]req_shift_opened done [10:26:59]requested_item shift.open_date is exist - process it [10:26:59]req_shift_open_date [10:26:59]req_shift_open_date done [10:26:59]produce_requested_data done [10:26:59]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31731,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [10:26:59]process_action_free close_receipt [10:26:59]json_value_free [10:26:59]json_value_free done [10:26:59]process_json_proto returns [10:26:59]Send response to host [10:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31731,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [10:26:59]free response buf [10:26:59]execute_script done [10:26:59]execute_script returns [10:26:59]free content buf [10:26:59]Sock 9.Close socket [10:26:59]Sock 9.Thread stoped [10:27:02]OFD Sender: No OFD packet to send [10:27:07]OFD Sender: No OFD packet to send [10:27:12]OFD Sender: No OFD packet to send [10:27:17]OFD Sender: No OFD packet to send [10:27:22]OFD Sender: No OFD packet to send [10:27:27]OFD Sender: No OFD packet to send [10:27:32]OFD Sender: No OFD packet to send [10:27:37]OFD Sender: No OFD packet to send [10:27:42]OFD Sender: No OFD packet to send [10:27:47]OFD Sender: No OFD packet to send [10:27:52]OFD Sender: No OFD packet to send [10:27:57]OFD Sender: No OFD packet to send [10:28:02]OFD Sender: No OFD packet to send [10:28: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:27]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [10:31:22]OFD Sender: No OFD packet to send [10:31:27]OFD Sender: No OFD packet to send [10:31:30]accept exits with 7 [10:31:30]New connection [10:31:30]New thread 3066821988 created [10:31:30]Thread 3066965348 joined [10:31:30]Waiting for new connection... [10:31:30] Sock 7.Parse request [10:31:30]Sock 7.Check first char [10:31:30]Sock 7.First char is OK [10:31:30]request: POST /json_proto HTTP/1.0 [10:31:30]Method: POST [10:31:30]URL: /json_proto [10:31:30]Method is POST - this is cgi request [10:31:30]url: /json_proto [10:31:30]query_string will be loaded in cgi processing [10:31:30]execute_cgi json_proto POST (null) [10:31:30]execute_cgi path=json_proto method=POST [10:31:30]POST find Content-Length [10:31:30]Host: 172.17.39.68:8080 [10:31:30]Content-Length: 696 [10:31:30]Content-Type: application/json [10:31:30] [10:31:30]POST finish read [10:31:30]Found Content-Length = 696 [10:31:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214313", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 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" ] } } [10:31:30]execute_script... [10:31: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)214313", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 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" ] } } [10:31:30]POST & json_proto [10:31:30]process_json_proto [10:31:30]json parsed OK: [10:31:30]protocol is kg_v1.0 [10:31:30]action value=close_receipt [10:31:30]process_action close_receipt [10:31:30]cmd_close_receipt [10:31:30]MH_GetDate [10:31:30]Write to MH i2c: F0 00 00 91 1A 9A [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: F0 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: F0 09 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: F0 09 00 91 1A 00 06 4C 96 66 D6 48 95 66 0A [10:31:30]GetLastDocTimeStamp 1721125618 [10:31:30]current date 1721125894 [10:31:30]FM_GetShiftState [10:31:30]SAM_PROTO_GetShiftState [10:31:30]wFMCommunicate request_size=4 [10:31:30]MH_SAM_APDU [10:31:30]CAPDU: 80 13 01 00 [10:31:30]Write to MH i2c: E2 08 00 92 1A 80 13 01 00 00 00 00 00 29 [10:31:30]Write i2c OK [10:31:30]MH_I2C_Read... [10:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:30]Read from MH i2c: E2 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 0E 00 [10:31:30]MH_I2C_Read... [10:31:30]Read from MH i2c: E2 0E 00 92 1A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 78 [10:31:30]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [10:31:30]wFMCommunicate OK [10:31:30]SAM_PROTO_GetShiftState done [10:31:30]FM_GetShiftState done [10:31:30]opened in 1721088399 [10:31:30]opened+sec_in_day 1721174799 [10:31:30]quantity*price = 11000 [10:31:30]sum+1 = 11001 [10:31:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 51 16.07.2024 10:31 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31732 ФПД: 12399157692449 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T103134&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31732&fm=12399157692449&tin=02508201610067®Number=0000000000098025&sum=11000 0 [10:31:31]StoreToDocumentArchive [10:31:31]shift 371 fd 31732 [10:31:31]save to /storage/0371/doc_00031732 [10:31:31]save last doc name /storage/0371/doc_00031732 to /storage/kkm_last_doc_name [10:31:31]save OK [10:31:31]Clear old archive folders... [10:31:31]ProcessDocumentItem done err = 0, tmpTLVsize=296 [10:31:31]tlvbuf is 0152DDF0 [10:31:31]SAM_PROTO_ClearQueue [10:31:31]wFMCommunicate request_size=4 [10:31:31]MH_SAM_APDU [10:31:31]CAPDU: 80 09 00 00 [10:31:31]Write to MH i2c: E2 08 00 9F 1A 80 09 00 00 00 00 00 00 2B [10:31:31]Write i2c OK [10:31:31]MH_I2C_Read... [10:31:31]Read from MH i2c: E2 [10:31:31]MH_I2C_Read... [10:31:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:31]Read from MH i2c: E2 03 00 [10:31:31]MH_I2C_Read... [10:31:31]Read from MH i2c: E2 03 00 9F 1A 00 90 00 2D [10:31:31]RAPDU: 90 00 [10:31:31]wFMCommunicate OK [10:31:31]SAM_PROTO_ClearQueue done [10:31:31]KKMCreateOFDPacket [10:31:31]OFDProtocolAddRootSTLVToBuf [10:31:31]FM_MakeSignedData [10:31:31]FM_MakeSignedData [10:31:31]SAM_PROTO_SignData [10:31:31]wFMCommunicate request_size=4 [10:31:31]MH_SAM_APDU [10:31:31]CAPDU: 80 0D 01 02 [10:31:31]Write to MH i2c: E2 08 00 A0 1A 80 0D 01 02 00 00 00 00 33 [10:31:31]Write i2c OK [10:31:31]MH_I2C_Read... [10:31:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:31]Read from MH i2c: E2 [10:31:31]MH_I2C_Read... [10:31:31]Read from MH i2c: E2 03 00 [10:31:31]MH_I2C_Read... [10:31:31]Read from MH i2c: E2 03 00 A0 1A 00 90 00 2E [10:31:31]RAPDU: 90 00 [10:31:31]wFMCommunicate OK [10:31:31]wFMCommunicate request_size=255 [10:31:31]MH_SAM_APDU [10:31:31]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 33 00 00 00 F4 03 04 00 06 4C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [10:31:31]Write to MH i2c: E2 02 01 A1 1A 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 33 00 00 00 F4 03 04 00 06 4C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 A6 [10:31:31]Write i2c OK [10:31:31]MH_I2C_Read... [10:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:32]Read from MH i2c: E2 [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: E2 03 00 [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: E2 03 00 A1 1A 00 90 00 2F [10:31:32]RAPDU: 90 00 [10:31:32]wFMCommunicate OK [10:31:32]wFMCommunicate request_size=55 [10:31:32]MH_SAM_APDU [10:31:32]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F4 7B 00 00 35 04 06 00 0B 46 E7 63 C8 21 [10:31:32]Write to MH i2c: E2 3A 00 A2 1A 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F4 7B 00 00 35 04 06 00 0B 46 E7 63 C8 21 00 00 89 [10:31:32]Write i2c OK [10:31:32]MH_I2C_Read... [10:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:32]Read from MH i2c: E2 [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: E2 03 00 [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: E2 03 00 A2 1A 00 90 00 30 [10:31:32]RAPDU: 90 00 [10:31:32]wFMCommunicate OK [10:31:32]wFMCommunicate request_size=4 [10:31:32]MH_SAM_APDU [10:31:32]CAPDU: 80 0D 03 02 [10:31:32]Write to MH i2c: E2 08 00 A3 1A 80 0D 03 02 00 00 00 00 38 [10:31:32]Write i2c OK [10:31:32]MH_I2C_Read... [10:31:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:32]Read from MH i2c: E2 [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: E2 0B 00 [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: E2 0B 00 A3 1A 00 0D E3 58 BD 9E 7B 50 CE 90 00 75 [10:31:32]RAPDU: 0D E3 58 BD 9E 7B 50 CE 90 00 [10:31:32]wFMCommunicate OK [10:31:32]SAM_PROTO_SignData done [10:31:32]FM_MakeSignedData done [10:31:32]CreateOFDProtocolMessage [10:31:32]wFMCommunicate request_size=4 [10:31:32]MH_SAM_APDU [10:31:32]CAPDU: 80 11 00 00 [10:31:32]Write to MH i2c: E2 08 00 A4 1A 80 11 00 00 00 00 00 00 38 [10:31:32]Write i2c OK [10:31:32]MH_I2C_Read... [10:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:32]Read from MH i2c: E2 [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: E2 17 00 [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: E2 17 00 A4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 93 [10:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:31:32]wFMCommunicate OK [10:31:32]CreateOFDProtocolMessage done [10:31:32]OFDSenderStorePacket 31732 [10:31:32]StoreOFDPacket docnum=31732 [10:31:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 89 33 34 01 01 D0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 33 00 00 00 F4 03 04 00 06 4C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F4 7B 00 00 35 04 06 00 0B 46 E7 63 C8 21 0D E3 58 BD 9E 7B 50 CE [10:31:32]CheckFolder [10:31:32]dirname=/storage/ofd_packets [10:31:32]CheckFolder done [10:31:32]ProducePacketName [10:31:32]name=ofd_packets/00031732 [10:31:32]NVStorageSaveData ofd_packets/00031732 [10:31:32]File name is /storage/ofd_packets/00031732 [10:31:32]Write 346 bytes [10:31:32]NVStorageSaveData done [10:31:32]OFDSenderStorePacket done [10:31:32]KKMCreateOFDPacket done [10:31:32]NVStorageSaveData kkm_last_timestamp [10:31:32]File name is /storage/kkm_last_timestamp [10:31:32]Write 4 bytes [10:31:32]NVStorageSaveData done [10:31:32]ExternCall_PrintAddStr [10:31:32]wPrintStart [10:31:32]Write to MH i2c: 01 00 00 A5 1A BF [10:31:32]Write i2c OK [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: 01 [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: 01 07 00 [10:31:32]MH_I2C_Read... [10:31:32]Read from MH i2c: 01 07 00 A5 1A 00 00 00 00 00 FF 0F D4 [10:31:32]RasterBufferAndPrint [10:31:32]line Счет N : (3)214313 [10:31:32]line ИНН: 02508201610067 [10:31:32]line Контрольно-Кассовый Чек [10:31:32]line ПРОДАЖА [10:31:32]line Товар: 4870202521261 [10:31:32]line Напиток MAXI чай 1,2 лесные ягоды [10:31:32]line 1.000 * 110.00 [10:31:32]line = 110.00 [10:31:32]line НДС 12% НСП 1% [10:31:32]line > о реализуемом товаре [10:31:32]line ИТОГО: 110.00 [10:31:32]line НСП 1% : 0.97 [10:31:32]line НДС 12% : 11.68 [10:31:32]line Наличными: 110.00 [10:31:32]line Безнал.: 0.00 [10:31:32]line Место: АЗС № 140 "Партнер Нефть" [10:31:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:31:32]line СНО: Общий режим [10:31:32]line Чек 51 16.07.2024 10:31 [10:31:32]line Смена: 371 ФФД: 1.0 [10:31:32]line ЗНМ: 0300000189 [10:31:32]line РНМ: 0000000000098025 [10:31:32]line Версия ККМ: 001 [10:31:32]line ФМ: 0000000000965389 [10:31:32]line ФД: 31732 [10:31:32]line ФПД: 12399157692449 [10:31:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T103134&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31732&fm=12399157692449&tin=02508201610067®Number=0000000000098025&sum=11000 [10:31:32]line 0 [10:31:32]OFD Sender: Processing packet 31732 [packets to send 6, broken 5] [10:31:32]ProducePacketName [10:31:32]name=ofd_packets/00031732 [10:31:32]OFD Sender: To server: pG, [10:31:32]CommunicateWithHost lk.salyk.kg:30040 [10:31:32]ConnectInit lk.salyk.kg [10:31:32]written 0, free lines is 4095 [10:31:32]Connected sock=10 [10:31:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 89 33 34 01 01 D0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 33 00 00 00 F4 03 04 00 06 4C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F4 7B 00 00 35 04 06 00 0B 46 E7 63 C8 21 0D E3 58 BD 9E 7B 50 CE [10:31:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 7C 22 47 00 9D 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F4 7B 00 00 F4 03 04 00 14 F8 95 66 B6 04 01 00 00 5F BE 6A 54 7B C7 21 0E [10:31:32]CommunicateWithHost err = 0 [10:31:32]CheckOFDResponse [10:31:32]1017 (14) - 77093643461234 [10:31:32]1041 (16) - 0000000000965389 [10:31:32]1040 (4) - 31732 [10:31:32]1012 (4) - 16.07.2024 04:33 [10:31:32]1206 (1) - 0 [10:31:32]OFD Sender: Remove packet 31732 [10:31:32]ProducePacketName [10:31:32]name=ofd_packets/00031732 [10:31:32]NVStorageDeleteData [10:31:33]Write to MH i2c: 01 00 00 CE 1A E8 [10:31:33]Write i2c OK [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: 01 [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: 01 07 00 [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: 01 07 00 CE 1A 00 00 00 00 00 E8 0C E3 [10:31:33]RasterBufferAndPrint [10:31:33]line [10:31:33]line [10:31:33]line [10:31:33]line [10:31:33]line [10:31:33]written 0, free lines is 3310 [10:31:33]MH_Cut [10:31:33]Write to MH i2c: D1 01 00 D5 1A 01 C1 [10:31:33]Write i2c OK [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: D1 [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: D1 01 00 [10:31:33]MH_I2C_Read... [10:31:33]Read from MH i2c: D1 01 00 D5 1A 00 C0 [10:31:33]Write to MH i2c: 01 00 00 D6 1A F0 [10:31:33]Write i2c OK [10:31:33]MH_I2C_Read... [10:31:33]OFD Sender: No OFD packet to send [10:31:33]*** Cut start [10:31:33]*** Partial cut [10:31:33]*** CUTSNS_PIN = 1 [10:31:33]*** CUTSNS_PIN = 0 [10:31:34]*** Brake cut motor [10:31:34]Read from MH i2c: 01 [10:31:34]MH_I2C_Read... [10:31:34]*** Stop cut motor [10:31:34]*** Cut end [10:31:34]Read from MH i2c: 01 07 00 [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: 01 07 00 D6 1A 00 00 00 00 00 FF 0F 05 [10:31:34]process_action close_receipt done [10:31:34]requested_data is exist [10:31:34]produce_requested_data [10:31:34]requested_item fm.sn is exist - process it [10:31:34]wFMCommunicate request_size=4 [10:31:34]MH_SAM_APDU [10:31:34]CAPDU: 80 11 00 00 [10:31:34]Write to MH i2c: E2 08 00 D7 1A 80 11 00 00 00 00 00 00 6B [10:31:34]Write i2c OK [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: E2 [10:31:34]MH_I2C_Read... [10:31:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:34]Read from MH i2c: E2 17 00 [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: E2 17 00 D7 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C6 [10:31:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:31:34]wFMCommunicate OK [10:31:34]requested_item fd.num is exist - process it [10:31:34]SAM_PROTO_GetFieldsCounters [10:31:34]wFMCommunicate request_size=4 [10:31:34]MH_SAM_APDU [10:31:34]CAPDU: 80 13 00 00 [10:31:34]Write to MH i2c: E2 08 00 D8 1A 80 13 00 00 00 00 00 00 6E [10:31:34]Write i2c OK [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: E2 [10:31:34]MH_I2C_Read... [10:31:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:34]Read from MH i2c: E2 62 00 [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: E2 62 00 D8 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F4 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [10:31:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F4 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:34]wFMCommunicate OK [10:31:34]SAM_PROTO_GetFieldsCounters done [10:31:34]requested_item shift.num is exist - process it [10:31:34]requested_item shift.opened is exist - process it [10:31:34]req_shift_opened [10:31:34]FM_GetShiftState [10:31:34]SAM_PROTO_GetShiftState [10:31:34]wFMCommunicate request_size=4 [10:31:34]MH_SAM_APDU [10:31:34]CAPDU: 80 13 01 00 [10:31:34]Write to MH i2c: E2 08 00 D9 1A 80 13 01 00 00 00 00 00 70 [10:31:34]Write i2c OK [10:31:34]MH_I2C_Read... [10:31:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:34]Read from MH i2c: E2 [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: E2 0E 00 [10:31:34]MH_I2C_Read... [10:31:34]Read from MH i2c: E2 0E 00 D9 1A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 BF [10:31:34]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [10:31:34]wFMCommunicate OK [10:31:34]SAM_PROTO_GetShiftState done [10:31:34]FM_GetShiftState done [10:31:34]req_shift_opened done [10:31:34]requested_item shift.open_date is exist - process it [10:31:34]req_shift_open_date [10:31:34]req_shift_open_date done [10:31:34]produce_requested_data done [10:31:34]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31732,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [10:31:34]process_action_free close_receipt [10:31:34]json_value_free [10:31:34]json_value_free done [10:31:34]process_json_proto returns [10:31:34]Send response to host [10:31:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31732,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [10:31:34]free response buf [10:31:34]execute_script done [10:31:34]execute_script returns [10:31:34]free content buf [10:31:34]Sock 7.Close socket [10:31:34]Sock 7.Thread stoped [10:31:38]OFD Sender: No OFD packet to send [10:31:40]accept exits with 9 [10:31:40]New connection [10:31:40]New thread 3066965348 created [10:31:40]Thread 3066821988 joined [10:31:40]Waiting for new connection... [10:31:40] Sock 9.Parse request [10:31:40]Sock 9.Check first char [10:31:40]Sock 9.First char is OK [10:31:40]request: POST /json_proto HTTP/1.0 [10:31:40]Method: POST [10:31:40]URL: /json_proto [10:31:40]Method is POST - this is cgi request [10:31:40]url: /json_proto [10:31:40]query_string will be loaded in cgi processing [10:31:40]execute_cgi json_proto POST (null) [10:31:40]execute_cgi path=json_proto method=POST [10:31:40]POST find Content-Length [10:31:40]Host: 172.17.39.68:8080 [10:31:40]Content-Length: 791 [10:31:40]Content-Type: application/json [10:31:40] [10:31:40]POST finish read [10:31:40]Found Content-Length = 791 [10:31:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214314", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:40]execute_script... [10:31:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214314", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:40]POST & json_proto [10:31:40]process_json_proto [10:31:40]json parsed OK: [10:31:40]protocol is kg_v1.0 [10:31:40]action value=close_receipt [10:31:40]process_action close_receipt [10:31:40]cmd_close_receipt [10:31:40]MH_GetDate [10:31:40]Write to MH i2c: F0 00 00 DA 1A E3 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: F0 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: F0 09 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: F0 09 00 DA 1A 00 10 4C 96 66 D6 48 95 66 5D [10:31:40]GetLastDocTimeStamp 1721125894 [10:31:40]current date 1721125904 [10:31:40]FM_GetShiftState [10:31:40]SAM_PROTO_GetShiftState [10:31:40]wFMCommunicate request_size=4 [10:31:40]MH_SAM_APDU [10:31:40]CAPDU: 80 13 01 00 [10:31:40]Write to MH i2c: E2 08 00 DB 1A 80 13 01 00 00 00 00 00 72 [10:31:40]Write i2c OK [10:31:40]MH_I2C_Read... [10:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:40]Read from MH i2c: E2 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: E2 0E 00 [10:31:40]MH_I2C_Read... [10:31:40]Read from MH i2c: E2 0E 00 DB 1A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C1 [10:31:40]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [10:31:40]wFMCommunicate OK [10:31:40]SAM_PROTO_GetShiftState done [10:31:40]FM_GetShiftState done [10:31:40]opened in 1721088399 [10:31:40]opened+sec_in_day 1721174799 [10:31:40]quantity*price = 5000 [10:31:40]sum+1 = 5001 [10:31:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 52 16.07.2024 10:31 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31733 ФПД: 42448969948506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T103144&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31733&fm=42448969948506&tin=02508201610067®Number=0000000000098025&sum=5000 0 [10:31:41]StoreToDocumentArchive [10:31:41]shift 371 fd 31733 [10:31:41]save to /storage/0371/doc_00031733 [10:31:41]save last doc name /storage/0371/doc_00031733 to /storage/kkm_last_doc_name [10:31:41]save OK [10:31:41]Clear old archive folders... [10:31:41]ProcessDocumentItem done err = 0, tmpTLVsize=269 [10:31:41]tlvbuf is 014DA2B0 [10:31:41]SAM_PROTO_ClearQueue [10:31:41]wFMCommunicate request_size=4 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 09 00 00 [10:31:41]Write to MH i2c: E2 08 00 E8 1A 80 09 00 00 00 00 00 00 74 [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 E8 1A 00 90 00 76 [10:31:41]RAPDU: 90 00 [10:31:41]wFMCommunicate OK [10:31:41]SAM_PROTO_ClearQueue done [10:31:41]KKMCreateOFDPacket [10:31:41]OFDProtocolAddRootSTLVToBuf [10:31:41]FM_MakeSignedData [10:31:41]FM_MakeSignedData [10:31:41]SAM_PROTO_SignData [10:31:41]wFMCommunicate request_size=4 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 0D 01 02 [10:31:41]Write to MH i2c: E2 08 00 E9 1A 80 0D 01 02 00 00 00 00 7C [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:41]Read from MH i2c: E2 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 [10:31:41]MH_I2C_Read... [10:31:41]Read from MH i2c: E2 03 00 E9 1A 00 90 00 77 [10:31:41]RAPDU: 90 00 [10:31:41]wFMCommunicate OK [10:31:41]wFMCommunicate request_size=255 [10:31:41]MH_SAM_APDU [10:31:41]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 10 4C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [10:31:41]Write to MH i2c: E2 02 01 EA 1A 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 10 4C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 93 [10:31:41]Write i2c OK [10:31:41]MH_I2C_Read... [10:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:42]Read from MH i2c: E2 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 03 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 03 00 EA 1A 00 90 00 78 [10:31:42]RAPDU: 90 00 [10:31:42]wFMCommunicate OK [10:31:42]wFMCommunicate request_size=28 [10:31:42]MH_SAM_APDU [10:31:42]CAPDU: 80 0D 02 02 17 36 35 33 38 39 10 04 04 00 F5 7B 00 00 35 04 06 00 26 9B 6B C6 5D 5A [10:31:42]Write to MH i2c: E2 1F 00 EB 1A 80 0D 02 02 17 00 36 35 33 38 39 10 04 04 00 F5 7B 00 00 35 04 06 00 26 9B 6B C6 5D 5A 00 00 2C [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:42]Read from MH i2c: E2 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 03 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 03 00 EB 1A 00 90 00 79 [10:31:42]RAPDU: 90 00 [10:31:42]wFMCommunicate OK [10:31:42]wFMCommunicate request_size=4 [10:31:42]MH_SAM_APDU [10:31:42]CAPDU: 80 0D 03 02 [10:31:42]Write to MH i2c: E2 08 00 EC 1A 80 0D 03 02 00 00 00 00 81 [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:42]Read from MH i2c: E2 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 0B 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 0B 00 EC 1A 00 FE 0A B0 7C 74 11 40 D9 90 00 54 [10:31:42]RAPDU: FE 0A B0 7C 74 11 40 D9 90 00 [10:31:42]wFMCommunicate OK [10:31:42]SAM_PROTO_SignData done [10:31:42]FM_MakeSignedData done [10:31:42]CreateOFDProtocolMessage [10:31:42]wFMCommunicate request_size=4 [10:31:42]MH_SAM_APDU [10:31:42]CAPDU: 80 11 00 00 [10:31:42]Write to MH i2c: E2 08 00 ED 1A 80 11 00 00 00 00 00 00 81 [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:42]Read from MH i2c: E2 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 17 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: E2 17 00 ED 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DC [10:31:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:31:42]wFMCommunicate OK [10:31:42]CreateOFDProtocolMessage done [10:31:42]OFDSenderStorePacket 31733 [10:31:42]StoreOFDPacket docnum=31733 [10:31:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 21 01 00 00 2B D0 19 01 2F B8 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 10 4C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F5 7B 00 00 35 04 06 00 26 9B 6B C6 5D 5A FE 0A B0 7C 74 11 40 D9 [10:31:42]CheckFolder [10:31:42]dirname=/storage/ofd_packets [10:31:42]CheckFolder done [10:31:42]ProducePacketName [10:31:42]name=ofd_packets/00031733 [10:31:42]NVStorageSaveData ofd_packets/00031733 [10:31:42]File name is /storage/ofd_packets/00031733 [10:31:42]Write 319 bytes [10:31:42]NVStorageSaveData done [10:31:42]OFDSenderStorePacket done [10:31:42]KKMCreateOFDPacket done [10:31:42]NVStorageSaveData kkm_last_timestamp [10:31:42]File name is /storage/kkm_last_timestamp [10:31:42]Write 4 bytes [10:31:42]NVStorageSaveData done [10:31:42]ExternCall_PrintAddStr [10:31:42]wPrintStart [10:31:42]Write to MH i2c: 01 00 00 EE 1A 08 [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: 01 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: 01 07 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: 01 07 00 EE 1A 00 00 00 00 00 FF 0F 1D [10:31:42]RasterBufferAndPrint [10:31:42]line Счет N : (3)214314 [10:31:42]line ИНН: 02508201610067 [10:31:42]line Контрольно-Кассовый Чек [10:31:42]line ПРОДАЖА [10:31:42]line Товар: 4700000160358 [10:31:42]line Вода Легенда 1л [10:31:42]line 1.000 * 50.00 [10:31:42]line = 50.00 [10:31:42]line НДС 12% НСП 1% [10:31:42]line > о реализуемом товаре [10:31:42]line ИТОГО: 50.00 [10:31:42]line НСП 1% : 0.44 [10:31:42]line НДС 12% : 5.31 [10:31:42]line Наличными: 0.00 [10:31:42]line Безнал.: 50.00 [10:31:42]line Место: АЗС № 140 "Партнер Нефть" [10:31:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:31:42]line СНО: Общий режим [10:31:42]line Чек 52 16.07.2024 10:31 [10:31:42]line Смена: 371 ФФД: 1.0 [10:31:42]line ЗНМ: 0300000189 [10:31:42]line РНМ: 0000000000098025 [10:31:42]line Версия ККМ: 001 [10:31:42]line Платежная система: O! деньги [10:31:42]line ФМ: 0000000000965389 [10:31:42]line ФД: 31733 [10:31:42]line ФПД: 42448969948506 [10:31:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T103144&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31733&fm=42448969948506&tin=02508201610067®Number=0000000000098025&sum=5000 [10:31:42]line 0 [10:31:42]written 0, free lines is 4095 [10:31:42]OFD Sender: Processing packet 31733 [packets to send 6, broken 5] [10:31:42]ProducePacketName [10:31:42]name=ofd_packets/00031733 [10:31:42]OFD Sender: To server: pG, [10:31:42]CommunicateWithHost lk.salyk.kg:30040 [10:31:42]ConnectInit lk.salyk.kg [10:31:42]Connected sock=11 [10:31:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 21 01 00 00 2B D0 19 01 2F B8 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 10 4C 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F5 7B 00 00 35 04 06 00 26 9B 6B C6 5D 5A FE 0A B0 7C 74 11 40 D9 [10:31:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 97 ED 47 00 89 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 35 33 38 39 10 04 04 00 F5 7B 00 00 F4 03 04 00 1D F8 95 66 B6 04 01 00 00 37 E5 9F A8 36 60 36 FB [10:31:42]CommunicateWithHost err = 0 [10:31:42]CheckOFDResponse [10:31:42]1017 (14) - 77093643461234 [10:31:42]1041 (16) - 0000000000965389 [10:31:42]1040 (4) - 31733 [10:31:42]1012 (4) - 16.07.2024 04:33 [10:31:42]1206 (1) - 0 [10:31:42]OFD Sender: Remove packet 31733 [10:31:42]ProducePacketName [10:31:42]name=ofd_packets/00031733 [10:31:42]NVStorageDeleteData [10:31:42]Write to MH i2c: 01 00 00 18 1B 33 [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: 01 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: 01 07 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: 01 07 00 18 1B 00 00 00 00 00 DF 0C 25 [10:31:42]RasterBufferAndPrint [10:31:42]line [10:31:42]line [10:31:42]line [10:31:42]line [10:31:42]line [10:31:42]written 0, free lines is 3301 [10:31:42]MH_Cut [10:31:42]Write to MH i2c: D1 01 00 1F 1B 01 0C [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: D1 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: D1 01 00 [10:31:42]MH_I2C_Read... [10:31:42]Read from MH i2c: D1 01 00 1F 1B 00 0B [10:31:42]Write to MH i2c: 01 00 00 20 1B 3B [10:31:42]Write i2c OK [10:31:42]MH_I2C_Read... [10:31:43]OFD Sender: No OFD packet to send [10:31:43]*** Cut start [10:31:43]*** Partial cut [10:31:43]*** CUTSNS_PIN = 1 [10:31:43]*** CUTSNS_PIN = 0 [10:31:43]*** Brake cut motor [10:31:44]Read from MH i2c: 01 [10:31:44]MH_I2C_Read... [10:31:44]*** Stop cut motor [10:31:44]*** Cut end [10:31:44]Read from MH i2c: 01 07 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: 01 07 00 20 1B 00 00 00 00 00 FF 0F 50 [10:31:44]process_action close_receipt done [10:31:44]requested_data is exist [10:31:44]produce_requested_data [10:31:44]requested_item fm.sn is exist - process it [10:31:44]wFMCommunicate request_size=4 [10:31:44]MH_SAM_APDU [10:31:44]CAPDU: 80 11 00 00 [10:31:44]Write to MH i2c: E2 08 00 21 1B 80 11 00 00 00 00 00 00 B6 [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 17 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 17 00 21 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 11 [10:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:31:44]wFMCommunicate OK [10:31:44]requested_item fd.num is exist - process it [10:31:44]SAM_PROTO_GetFieldsCounters [10:31:44]wFMCommunicate request_size=4 [10:31:44]MH_SAM_APDU [10:31:44]CAPDU: 80 13 00 00 [10:31:44]Write to MH i2c: E2 08 00 22 1B 80 13 00 00 00 00 00 00 B9 [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 62 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 62 00 22 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F5 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [10:31: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F5 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:44]wFMCommunicate OK [10:31:44]SAM_PROTO_GetFieldsCounters done [10:31:44]requested_item shift.num is exist - process it [10:31:44]requested_item shift.opened is exist - process it [10:31:44]req_shift_opened [10:31:44]FM_GetShiftState [10:31:44]SAM_PROTO_GetShiftState [10:31:44]wFMCommunicate request_size=4 [10:31:44]MH_SAM_APDU [10:31:44]CAPDU: 80 13 01 00 [10:31:44]Write to MH i2c: E2 08 00 23 1B 80 13 01 00 00 00 00 00 BB [10:31:44]Write i2c OK [10:31:44]MH_I2C_Read... [10:31:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:44]Read from MH i2c: E2 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 0E 00 [10:31:44]MH_I2C_Read... [10:31:44]Read from MH i2c: E2 0E 00 23 1B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 0A [10:31:44]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [10:31:44]wFMCommunicate OK [10:31:44]SAM_PROTO_GetShiftState done [10:31:44]FM_GetShiftState done [10:31:44]req_shift_opened done [10:31:44]requested_item shift.open_date is exist - process it [10:31:44]req_shift_open_date [10:31:44]req_shift_open_date done [10:31:44]produce_requested_data done [10:31:44]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31733,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [10:31:44]process_action_free close_receipt [10:31:44]json_value_free [10:31:44]json_value_free done [10:31:44]process_json_proto returns [10:31:44]Send response to host [10:31:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31733,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [10:31:44]free response buf [10:31:44]execute_script done [10:31:44]execute_script returns [10:31:44]free content buf [10:31:44]Sock 9.Close socket [10:31:44]Sock 9.Thread stoped [10:31:48]OFD Sender: No OFD packet to send [10:31:53]OFD Sender: No OFD packet to send [10:31:58]OFD Sender: No OFD packet to send [10:32:03]OFD Sender: No OFD packet to send [10:32:08]OFD Sender: No OFD packet to send [10:32:13]OFD Sender: No OFD packet to send [10:32:18]OFD Sender: No OFD packet to send [10:32:23]OFD Sender: No OFD packet to send [10:32:28]OFD Sender: No OFD packet to send [10:32:33]OFD Sender: No OFD packet to send [10:32:38]OFD Sender: No OFD packet to send [10:32:43]OFD Sender: No OFD packet to send [10:32:48]OFD Sender: No OFD packet to send [10:32:53]OFD Sender: No OFD packet to send [10:32:58]OFD Sender: No OFD packet to send [10:33:03]OFD Sender: No OFD packet to send [10:33:08]OFD Sender: No OFD packet to send [10:33:13]OFD Sender: No OFD packet to send [10:33:18]OFD Sender: No OFD packet to send [10:33:23]OFD Sender: No OFD packet to send [10:33:28]OFD Sender: No OFD packet to send [10:33:33]OFD Sender: No OFD packet to send [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:43]OFD Sender: No OFD packet to send [10:34:48]OFD Sender: No OFD packet to send [10:34:53]OFD Sender: No OFD packet to send [10:34:58]OFD Sender: No OFD packet to send [10:35:03]OFD Sender: No OFD packet to send [10:35:08]OFD Sender: No OFD packet to send [10:35:13]OFD Sender: No OFD packet to send [10:35:18]OFD Sender: No OFD packet to send [10:35:23]OFD Sender: No OFD packet to send [10:35:28]OFD Sender: No OFD packet to send [10:35:33]OFD Sender: No OFD packet to send [10:35:38]OFD Sender: No OFD packet to send [10:35:43]OFD Sender: No OFD packet to send [10:35:48]OFD Sender: No OFD packet to send [10:35:53]OFD Sender: No OFD packet to send [10:35:58]OFD Sender: No OFD packet to send [10:36:03]OFD Sender: No OFD packet to send [10:36:08]OFD Sender: No OFD packet to send [10:36:13]OFD Sender: No OFD packet to send [10:36:18]OFD Sender: No OFD packet to send [10:36:23]OFD Sender: No OFD packet to send [10:36:28]OFD Sender: No OFD packet to send [10:36:33]OFD Sender: No OFD packet to send [10:36:38]OFD Sender: No OFD packet to send [10:36:43]OFD Sender: No OFD packet to send [10:36:48]OFD Sender: No OFD packet to send [10:36:53]OFD Sender: No OFD packet to send [10:36:58]OFD Sender: No OFD packet to send [10:37:03]OFD Sender: No OFD packet to send [10:37:08]OFD Sender: No OFD packet to send [10:37:13]OFD Sender: No OFD packet to send [10:37:18]OFD Sender: No OFD packet to send [10:37:23]OFD Sender: No OFD packet to send [10:37:28]OFD Sender: No OFD packet to send [10:37:33]OFD Sender: No OFD packet to send [10:37:38]OFD Sender: No OFD packet to send [10:37:43]OFD Sender: No OFD packet to send [10:37:48]OFD Sender: No OFD packet to send [10:37:53]OFD Sender: No OFD packet to send [10:37:58]OFD Sender: No OFD packet to send [10:38:03]OFD Sender: No OFD packet to send [10:38:08]OFD Sender: No OFD packet to send [10:38:13]OFD Sender: No OFD packet to send [10:38:18]OFD Sender: No OFD packet to send [10:38:23]OFD Sender: No OFD packet to send [10:38:28]OFD Sender: No OFD packet to send [10:38:33]OFD Sender: No OFD packet to send [10:38:38]OFD Sender: No OFD packet to send [10:38:43]OFD Sender: No OFD packet to send [10:38:48]OFD Sender: No OFD packet to send [10:38:53]OFD Sender: No OFD packet to send [10:38:58]OFD Sender: No OFD packet to send [10:39:03]OFD Sender: No OFD packet to send [10:39:08]OFD Sender: No OFD packet to send [10:39:13]OFD Sender: No OFD packet to send [10:39:18]OFD Sender: No OFD packet to send [10:39:23]OFD Sender: No OFD packet to send [10:39:28]OFD Sender: No OFD packet to send [10:39:33]OFD Sender: No OFD packet to send [10:39:38]OFD Sender: No OFD packet to send [10:39:43]OFD Sender: No OFD packet to send [10:39:48]OFD Sender: No OFD packet to send [10:39:53]OFD Sender: No OFD packet to send [10:39:58]OFD Sender: No OFD packet to send [10:40:03]OFD Sender: No OFD packet to send [10:40:08]OFD Sender: No OFD packet to send [10:40:13]OFD Sender: No OFD packet to send [10:40:18]OFD Sender: No OFD packet to send [10:40:23]OFD Sender: No OFD packet to send [10:40:28]OFD Sender: No OFD packet to send [10:40:33]OFD Sender: No OFD packet to send [10:40:38]OFD Sender: No OFD packet to send [10:40:43]OFD Sender: No OFD packet to send [10:40:48]OFD Sender: No OFD packet to send [10:40:53]OFD Sender: No OFD packet to send [10:40:58]OFD Sender: No OFD packet to send [10:41:03]OFD Sender: No OFD packet to send [10:41:08]OFD Sender: No OFD packet to send [10:41:13]OFD Sender: No OFD packet to send [10:41:18]OFD Sender: No OFD packet to send [10:41:23]OFD Sender: No OFD packet to send [10:41:28]OFD Sender: No OFD packet to send [10:41:33]OFD Sender: No OFD packet to send [10:41:38]OFD Sender: No OFD packet to send [10:41:43]OFD Sender: No OFD packet to send [10:41:48]OFD Sender: No OFD packet to send [10:41:53]OFD Sender: No OFD packet to send [10:41:58]OFD Sender: No OFD packet to send [10:42:03]OFD Sender: No OFD packet to send [10:42:08]OFD Sender: No OFD packet to send [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:13]OFD Sender: No OFD packet to send [10:43:18]OFD Sender: No OFD packet to send [10:43:23]OFD Sender: No OFD packet to send [10:43:28]OFD Sender: No OFD packet to send [10:43:33]OFD Sender: No OFD packet to send [10:43:38]OFD Sender: No OFD packet to send [10:43:43]OFD Sender: No OFD packet to send [10:43:48]OFD Sender: No OFD packet to send [10:43:53]OFD Sender: No OFD packet to send [10:43:58]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:08]OFD Sender: No OFD packet to send [10:44:13]OFD Sender: No OFD packet to send [10:44:18]OFD Sender: No OFD packet to send [10:44:23]OFD Sender: No OFD packet to send [10:44:28]OFD Sender: No OFD packet to send [10:44:33]OFD Sender: No OFD packet to send [10:44:38]OFD Sender: No OFD packet to send [10:44:43]OFD Sender: No OFD packet to send [10:44:48]OFD Sender: No OFD packet to send [10:44:53]OFD Sender: No OFD packet to send [10:44:58]OFD Sender: No OFD packet to send [10:45:03]OFD Sender: No OFD packet to send [10:45:08]OFD Sender: No OFD packet to send [10:45:13]OFD Sender: No OFD packet to send [10:45:18]OFD Sender: No OFD packet to send [10:45:23]OFD Sender: No OFD packet to send [10:45:28]OFD Sender: No OFD packet to send [10:45:33]OFD Sender: No OFD packet to send [10:45:38]OFD Sender: No OFD packet to send [10:45:43]OFD Sender: No OFD packet to send [10:45:48]OFD Sender: No OFD packet to send [10:45:53]OFD Sender: No OFD packet to send [10:45:58]OFD Sender: No OFD packet to send [10:46:03]OFD Sender: No OFD packet to send [10:46:08]OFD Sender: No OFD packet to send [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]accept exits with 7 [10:47:38]New connection [10:47:38]New thread 3066821988 created [10:47:38]Thread 3066965348 joined [10:47:38]Waiting for new connection... [10:47:38] Sock 7.Parse request [10:47:38]Sock 7.Check first char [10:47:38]Sock 7.First char is OK [10:47:38]request: POST /json_proto HTTP/1.0 [10:47:38]Method: POST [10:47:38]URL: /json_proto [10:47:38]Method is POST - this is cgi request [10:47:38]url: /json_proto [10:47:38]query_string will be loaded in cgi processing [10:47:38]execute_cgi json_proto POST (null) [10:47:38]execute_cgi path=json_proto method=POST [10:47:38]POST find Content-Length [10:47:38]Host: 172.17.39.68:8080 [10:47:38]Content-Length: 684 [10:47:38]Content-Type: application/json [10:47:38] [10:47:38]POST finish read [10:47:38]Found Content-Length = 684 [10:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214315", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "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:47:38]execute_script... [10:47: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)214315", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "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:47:38]POST & json_proto [10:47:38]process_json_proto [10:47:38]json parsed OK: [10:47:38]protocol is kg_v1.0 [10:47:38]action value=close_receipt [10:47:38]process_action close_receipt [10:47:38]cmd_close_receipt [10:47:38]MH_GetDate [10:47:38]Write to MH i2c: F0 00 00 24 1B 2E [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: F0 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: F0 09 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: F0 09 00 24 1B 00 CE 4F 96 66 D6 48 95 66 69 [10:47:38]GetLastDocTimeStamp 1721125904 [10:47:38]current date 1721126862 [10:47:38]FM_GetShiftState [10:47:38]SAM_PROTO_GetShiftState [10:47:38]wFMCommunicate request_size=4 [10:47:38]MH_SAM_APDU [10:47:38]CAPDU: 80 13 01 00 [10:47:38]Write to MH i2c: E2 08 00 25 1B 80 13 01 00 00 00 00 00 BD [10:47:38]Write i2c OK [10:47:38]MH_I2C_Read... [10:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:47:38]Read from MH i2c: E2 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: E2 0E 00 [10:47:38]MH_I2C_Read... [10:47:38]Read from MH i2c: E2 0E 00 25 1B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 0C [10:47:38]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [10:47:38]wFMCommunicate OK [10:47:38]SAM_PROTO_GetShiftState done [10:47:38]FM_GetShiftState done [10:47:38]opened in 1721088399 [10:47:38]opened+sec_in_day 1721174799 [10:47:38]quantity*price = 12500 [10:47:38]sum+1 = 12501 [10:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 53 16.07.2024 10:47 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31734 ФПД: 106268882381041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T104742&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31734&fm=106268882381041&tin=02508201610067®Number=0000000000098025&sum=12500 0 [10:47:39]StoreToDocumentArchive [10:47:39]shift 371 fd 31734 [10:47:39]save to /storage/0371/doc_00031734 [10:47:39]save last doc name /storage/0371/doc_00031734 to /storage/kkm_last_doc_name [10:47:39]save OK [10:47:39]Clear old archive folders... [10:47:39]ProcessDocumentItem done err = 0, tmpTLVsize=292 [10:47:39]tlvbuf is 0149B520 [10:47:39]SAM_PROTO_ClearQueue [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 09 00 00 [10:47:39]Write to MH i2c: E2 08 00 32 1B 80 09 00 00 00 00 00 00 BF [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 09 00 00... 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 32 1B 00 90 00 C1 [10:47:39]RAPDU: 90 00 [10:47:39]wFMCommunicate OK [10:47:39]SAM_PROTO_ClearQueue done [10:47:39]KKMCreateOFDPacket [10:47:39]OFDProtocolAddRootSTLVToBuf [10:47:39]FM_MakeSignedData [10:47:39]FM_MakeSignedData [10:47:39]SAM_PROTO_SignData [10:47:39]wFMCommunicate request_size=4 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 0D 01 02 [10:47:39]Write to MH i2c: E2 08 00 33 1B 80 0D 01 02 00 00 00 00 C7 [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:39]*** iso7816_exchange 80 0D 01 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 33 1B 00 90 00 C2 [10:47:39]RAPDU: 90 00 [10:47:39]wFMCommunicate OK [10:47:39]wFMCommunicate request_size=255 [10:47:39]MH_SAM_APDU [10:47:39]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 35 00 00 00 F4 03 04 00 CE 4F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [10:47:39]Write to MH i2c: E2 02 01 34 1B 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 35 00 00 00 F4 03 04 00 CE 4F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 4F [10:47:39]Write i2c OK [10:47:39]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 34 1B 00 90 00 C3 [10:47:40]RAPDU: 90 00 [10:47:40]wFMCommunicate OK [10:47:40]wFMCommunicate request_size=51 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 0D 02 02 2E 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F6 7B 00 00 35 04 06 00 60 A6 A6 FC 28 F1 [10:47:40]Write to MH i2c: E2 36 00 35 1B 80 0D 02 02 2E 00 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F6 7B 00 00 35 04 06 00 60 A6 A6 FC 28 F1 00 00 94 [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 03 00 35 1B 00 90 00 C4 [10:47:40]RAPDU: 90 00 [10:47:40]wFMCommunicate OK [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 0D 03 02 [10:47:40]Write to MH i2c: E2 08 00 36 1B 80 0D 03 02 00 00 00 00 CC [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 0B 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 0B 00 36 1B 00 7B 6E F7 A1 1A FF AC C4 90 00 D7 [10:47:40]RAPDU: 7B 6E F7 A1 1A FF AC C4 90 00 [10:47:40]wFMCommunicate OK [10:47:40]SAM_PROTO_SignData done [10:47:40]FM_MakeSignedData done [10:47:40]CreateOFDProtocolMessage [10:47:40]wFMCommunicate request_size=4 [10:47:40]MH_SAM_APDU [10:47:40]CAPDU: 80 11 00 00 [10:47:40]Write to MH i2c: E2 08 00 37 1B 80 11 00 00 00 00 00 00 CC [10:47:40]Write i2c OK [10:47:40]MH_I2C_Read... [10:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:40]Read from MH i2c: E2 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 17 00 [10:47:40]MH_I2C_Read... [10:47:40]Read from MH i2c: E2 17 00 37 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 27 [10:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:47:40]wFMCommunicate OK [10:47:40]CreateOFDProtocolMessage done [10:47:40]OFDSenderStorePacket 31734 [10:47:40]StoreOFDPacket docnum=31734 [10:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 38 01 00 00 96 DB 30 01 7D 9A 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 35 00 00 00 F4 03 04 00 CE 4F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F6 7B 00 00 35 04 06 00 60 A6 A6 FC 28 F1 7B 6E F7 A1 1A FF AC C4 [10:47:40]CheckFolder [10:47:40]dirname=/storage/ofd_packets [10:47:40]CheckFolder done [10:47:40]ProducePacketName [10:47:40]name=ofd_packets/00031734 [10:47:40]NVStorageSaveData ofd_packets/00031734 [10:47:40]File name is /storage/ofd_packets/00031734 [10:47:40]Write 342 bytes [10:47:40]NVStorageSaveData done [10:47:40]OFDSenderStorePacket done [10:47:40]KKMCreateOFDPacket done [10:47:40]NVStorageSaveData kkm_last_timestamp [10:47:40]File name is /storage/kkm_last_timestamp [10:47:40]Write 4 bytes [10:47:40]NVStorageSaveData done [10:47:40]ExternCall_PrintAddStr [10:47:40]wPrintStart [10:47:40]Write to MH i2c: 01 00 00 38 1B 53 [10:47:40]OFD Sender: Processing packet 31734 [packets to send 6, broken 5] [10:47:40]ProducePacketName [10:47:40]name=ofd_packets/00031734 [10:47:40]OFD Sender: To server: pG, [10:47:40]CommunicateWithHost lk.salyk.kg:30040 [10:47:40]ConnectInit lk.salyk.kg [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 38 1B 00 00 00 00 00 FF 0F 68 [10:47:40]RasterBufferAndPrint [10:47:40]line Счет N : (3)214315 [10:47:40]line ИНН: 02508201610067 [10:47:40]line Контрольно-Кассовый Чек [10:47:40]line ПРОДАЖА [10:47:40]line Товар: 4870202521230 [10:47:40]line Напиток MAXI чай 1,2 черн.лимон [10:47:40]line 1.000 * 125.00 [10:47:40]line = 125.00 [10:47:40]line НДС 12% НСП 1% [10:47:40]line > о реализуемом товаре [10:47:40]line ИТОГО: 125.00 [10:47:40]line НСП 1% : 1.11 [10:47:40]line НДС 12% : 13.27 [10:47:40]line Наличными: 125.00 [10:47:40]line Безнал.: 0.00 [10:47:40]line Место: АЗС № 140 "Партнер Нефть" [10:47:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:47:40]line СНО: Общий режим [10:47:40]line Чек 53 16.07.2024 10:47 [10:47:40]line Смена: 371 ФФД: 1.0 [10:47:40]line ЗНМ: 0300000189 [10:47:40]line РНМ: 0000000000098025 [10:47:40]line Версия ККМ: 001 [10:47:40]line ФМ: 0000000000965389 [10:47:40]line ФД: 31734 [10:47:40]line ФПД: 106268882381041 [10:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T104742&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31734&fm=106268882381041&tin=02508201610067®Number=0000000000098025&sum=12500 [10:47:40]line 0 [10:47:40]Connected sock=10 [10:47:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 38 01 00 00 96 DB 30 01 7D 9A 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 35 00 00 00 F4 03 04 00 CE 4F 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F6 7B 00 00 35 04 06 00 60 A6 A6 FC 28 F1 7B 6E F7 A1 1A FF AC C4 [10:47:40]written 0, free lines is 4095 [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 35 33 38 39 4F 00 00 00 54 96 47 00 4C 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 35 33 38 39 10 04 04 00 F6 7B 00 00 F4 03 04 00 DB FB 95 66 B6 04 01 00 00 4F D7 BB 17 46 3D 8C D7 [10:47:40]CommunicateWithHost err = 0 [10:47:40]CheckOFDResponse [10:47:40]1017 (14) - 77093643461234 [10:47:40]1041 (16) - 0000000000965389 [10:47:40]1040 (4) - 31734 [10:47:40]1012 (4) - 16.07.2024 04:49 [10:47:40]1206 (1) - 0 [10:47:40]OFD Sender: Remove packet 31734 [10:47:40]ProducePacketName [10:47:40]name=ofd_packets/00031734 [10:47:40]NVStorageDeleteData [10:47:41]Write to MH i2c: 01 00 00 61 1B 7C [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: 01 [10:47:41]MH_I2C_Read... [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 61 1B 00 00 00 00 00 E5 0C 74 [10:47:41]RasterBufferAndPrint [10:47:41]line [10:47:41]line [10:47:41]line [10:47:41]line [10:47:41]line [10:47:41]written 0, free lines is 3310 [10:47:41]MH_Cut [10:47:41]Write to MH i2c: D1 01 00 68 1B 01 55 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D1 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D1 01 00 [10:47:41]MH_I2C_Read... [10:47:41]Read from MH i2c: D1 01 00 68 1B 00 54 [10:47:41]Write to MH i2c: 01 00 00 69 1B 84 [10:47:41]Write i2c OK [10:47:41]MH_I2C_Read... [10:47:41]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:42]*** Brake cut motor [10:47:42]Read from MH i2c: 01 [10:47:42]MH_I2C_Read... [10:47:42]*** Stop cut motor [10:47:42]*** Cut end [10:47:42]Read from MH i2c: 01 07 00 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: 01 07 00 69 1B 00 00 00 00 00 FF 0F 99 [10:47:42]process_action close_receipt done [10:47:42]requested_data is exist [10:47:42]produce_requested_data [10:47:42]requested_item fm.sn is exist - process it [10:47:42]wFMCommunicate request_size=4 [10:47:42]MH_SAM_APDU [10:47:42]CAPDU: 80 11 00 00 [10:47:42]Write to MH i2c: E2 08 00 6A 1B 80 11 00 00 00 00 00 00 FF [10:47:42]Write i2c OK [10:47:42]MH_I2C_Read... [10:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:47:42]Read from MH i2c: E2 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: E2 17 00 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: E2 17 00 6A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 5A [10:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:47:42]wFMCommunicate OK [10:47:42]requested_item fd.num is exist - process it [10:47:42]SAM_PROTO_GetFieldsCounters [10:47:42]wFMCommunicate request_size=4 [10:47:42]MH_SAM_APDU [10:47:42]CAPDU: 80 13 00 00 [10:47:42]Write to MH i2c: E2 08 00 6B 1B 80 13 00 00 00 00 00 00 02 [10:47:42]Write i2c OK [10:47:42]MH_I2C_Read... [10:47:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:47:42]Read from MH i2c: E2 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: E2 62 00 [10:47:42]MH_I2C_Read... [10:47:42]Read from MH i2c: E2 62 00 6B 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F6 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [10:47: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F6 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:47:42]wFMCommunicate OK [10:47:42]SAM_PROTO_GetFieldsCounters done [10:47:42]requested_item shift.num is exist - process it [10:47:42]requested_item shift.opened is exist - process it [10:47:42]req_shift_opened [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 6C 1B 80 13 01 00 00 00 00 00 04 [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 6C 1B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 53 [10:47:42]RAPDU: 09 00 01 8F B9 95 66 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":"0000000000965389","fd.num":31734,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [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":"0000000000965389","fd.num":31734,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [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 7.Close socket [10:47:42]Sock 7.Thread stoped [10:47:46]OFD Sender: No OFD packet to send [10:47:51]OFD Sender: No OFD packet to send [10:47:56]OFD Sender: No OFD packet to send [10:48:01]OFD Sender: No OFD packet to send [10:48:06]OFD Sender: No OFD packet to send [10:48:11]OFD Sender: No OFD packet to send [10:48:16]OFD Sender: No OFD packet to send [10:48:21]OFD Sender: No OFD packet to send [10:48:26]OFD Sender: No OFD packet to send [10:48:31]OFD Sender: No OFD packet to send [10:48:36]OFD Sender: No OFD packet to send [10:48:41]OFD Sender: No OFD packet to send [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:43]accept exits with 9 [10:56:43]New connection [10:56:43]New thread 3066965348 created [10:56:43]Thread 3066821988 joined [10:56:43]Waiting for new connection... [10:56:43] Sock 9.Parse request [10:56:43]Sock 9.Check first char [10:56:43]Sock 9.First char is OK [10:56:43]request: POST /json_proto HTTP/1.0 [10:56:43]Method: POST [10:56:43]URL: /json_proto [10:56:43]Method is POST - this is cgi request [10:56:43]url: /json_proto [10:56:43]query_string will be loaded in cgi processing [10:56:43]execute_cgi json_proto POST (null) [10:56:43]execute_cgi path=json_proto method=POST [10:56:43]POST find Content-Length [10:56:43]Host: 172.17.39.68:8080 [10:56:43]Content-Length: 644 [10:56:43]Content-Type: application/json [10:56:43] [10:56:43]POST finish read [10:56:43]Found Content-Length = 644 [10:56:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214316", "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" ] } } [10:56:43]execute_script... [10: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 : (3)214316", "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" ] } } [10:56:43]POST & json_proto [10:56:43]process_json_proto [10:56:43]json parsed OK: [10:56:43]protocol is kg_v1.0 [10:56:43]action value=close_receipt [10:56:43]process_action close_receipt [10:56:43]cmd_close_receipt [10:56:43]MH_GetDate [10:56:43]Write to MH i2c: F0 00 00 6D 1B 77 [10:56:43]Write i2c OK [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: F0 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: F0 09 00 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: F0 09 00 6D 1B 00 EF 51 96 66 D6 48 95 66 D5 [10:56:43]GetLastDocTimeStamp 1721126862 [10:56:43]current date 1721127407 [10:56:43]FM_GetShiftState [10:56:43]SAM_PROTO_GetShiftState [10:56:43]wFMCommunicate request_size=4 [10:56:43]MH_SAM_APDU [10:56:43]CAPDU: 80 13 01 00 [10:56:43]Write to MH i2c: E2 08 00 6E 1B 80 13 01 00 00 00 00 00 06 [10:56:43]Write i2c OK [10:56:43]MH_I2C_Read... [10:56:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:43]Read from MH i2c: E2 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: E2 0E 00 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: E2 0E 00 6E 1B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 55 [10:56:43]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [10:56:43]wFMCommunicate OK [10:56:43]SAM_PROTO_GetShiftState done [10:56:43]FM_GetShiftState done [10:56:43]opened in 1721088399 [10:56:43]opened+sec_in_day 1721174799 [10:56:43]quantity*price = 11500 [10:56:43]sum+1 = 11501 [10:56:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 54 16.07.2024 10:56 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31735 ФПД: 280875161127672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T105647&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31735&fm=280875161127672&tin=02508201610067®Number=0000000000098025&sum=11500 0 [10:56:44]StoreToDocumentArchive [10:56:44]shift 371 fd 31735 [10:56:44]save to /storage/0371/doc_00031735 [10:56:44]save last doc name /storage/0371/doc_00031735 to /storage/kkm_last_doc_name [10:56:44]save OK [10:56:44]Clear old archive folders... [10:56:44]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:56:44]tlvbuf is 0147BBC0 [10:56:44]SAM_PROTO_ClearQueue [10:56:44]wFMCommunicate request_size=4 [10:56:44]MH_SAM_APDU [10:56:44]CAPDU: 80 09 00 00 [10:56:44]Write to MH i2c: E2 08 00 7B 1B 80 09 00 00 00 00 00 00 08 [10:56:44]Write i2c OK [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 [10:56:44]MH_I2C_Read... [10:56:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:44]Read from MH i2c: E2 03 00 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 7B 1B 00 90 00 0A [10:56:44]RAPDU: 90 00 [10:56:44]wFMCommunicate OK [10:56:44]SAM_PROTO_ClearQueue done [10:56:44]KKMCreateOFDPacket [10:56:44]OFDProtocolAddRootSTLVToBuf [10:56:44]FM_MakeSignedData [10:56:44]FM_MakeSignedData [10:56:44]SAM_PROTO_SignData [10:56:44]wFMCommunicate request_size=4 [10:56:44]MH_SAM_APDU [10:56:44]CAPDU: 80 0D 01 02 [10:56:44]Write to MH i2c: E2 08 00 7C 1B 80 0D 01 02 00 00 00 00 10 [10:56:44]Write i2c OK [10:56:44]MH_I2C_Read... [10:56:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:44]Read from MH i2c: E2 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 [10:56:44]MH_I2C_Read... [10:56:44]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [10:56:44]RAPDU: 90 00 [10:56:44]wFMCommunicate OK [10:56:44]wFMCommunicate request_size=255 [10:56:44]MH_SAM_APDU [10:56:44]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 36 00 00 00 F4 03 04 00 EF 51 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [10:56:44]Write to MH i2c: E2 02 01 7D 1B 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 36 00 00 00 F4 03 04 00 EF 51 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 35 [10:56:44]Write i2c OK [10:56:44]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 7D 1B 00 90 00 0C [10:56:45]RAPDU: 90 00 [10:56:45]wFMCommunicate OK [10:56:45]wFMCommunicate request_size=39 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F7 7B 00 00 35 04 06 00 FF 74 58 34 8A F8 [10:56:45]Write to MH i2c: E2 2A 00 7E 1B 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F7 7B 00 00 35 04 06 00 FF 74 58 34 8A F8 00 00 C9 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 03 00 7E 1B 00 90 00 0D [10:56:45]RAPDU: 90 00 [10:56:45]wFMCommunicate OK [10:56:45]wFMCommunicate request_size=4 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 0D 03 02 [10:56:45]Write to MH i2c: E2 08 00 7F 1B 80 0D 03 02 00 00 00 00 15 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 0B 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 0B 00 7F 1B 00 CE 05 D7 C5 EE CA 24 7E 90 00 DF [10:56:45]RAPDU: CE 05 D7 C5 EE CA 24 7E 90 00 [10:56:45]wFMCommunicate OK [10:56:45]SAM_PROTO_SignData done [10:56:45]FM_MakeSignedData done [10:56:45]CreateOFDProtocolMessage [10:56:45]wFMCommunicate request_size=4 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 11 00 00 [10:56:45]Write to MH i2c: E2 08 00 80 1B 80 11 00 00 00 00 00 00 15 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 17 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 17 00 80 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 70 [10:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:56:45]wFMCommunicate OK [10:56:45]CreateOFDProtocolMessage done [10:56:45]OFDSenderStorePacket 31735 [10:56:45]StoreOFDPacket docnum=31735 [10:56:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 D3 EC 24 01 D2 BE 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 36 00 00 00 F4 03 04 00 EF 51 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F7 7B 00 00 35 04 06 00 FF 74 58 34 8A F8 CE 05 D7 C5 EE CA 24 7E [10:56:45]CheckFolder [10:56:45]dirname=/storage/ofd_packets [10:56:45]CheckFolder done [10:56:45]ProducePacketName [10:56:45]name=ofd_packets/00031735 [10:56:45]NVStorageSaveData ofd_packets/00031735 [10:56:45]File name is /storage/ofd_packets/00031735 [10:56:45]Write 330 bytes [10:56:45]NVStorageSaveData done [10:56:45]OFDSenderStorePacket done [10:56:45]KKMCreateOFDPacket done [10:56:45]NVStorageSaveData kkm_last_timestamp [10:56:45]File name is /storage/kkm_last_timestamp [10:56:45]Write 4 bytes [10:56:45]NVStorageSaveData done [10:56:45]ExternCall_PrintAddStr [10:56:45]wPrintStart [10:56:45]Write to MH i2c: 01 00 00 81 1B 9C [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 07 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 07 00 81 1B 00 00 00 00 00 FF 0F B1 [10:56:45]RasterBufferAndPrint [10:56:45]line Счет N : (3)214316 [10:56:45]line ИНН: 02508201610067 [10:56:45]line Контрольно-Кассовый Чек [10:56:45]line ПРОДАЖА [10:56:45]line Товар: 2000036210013 [10:56:45]line Кофе Капучино (GABB TRADE) [10:56:45]line 1.000 * 115.00 [10:56:45]line = 115.00 [10:56:45]line НДС 12% НСП 1% [10:56:45]line > о реализуемом товаре [10:56:45]line ИТОГО: 115.00 [10:56:45]line НСП 1% : 1.02 [10:56:45]line НДС 12% : 12.21 [10:56:45]line Наличными: 115.00 [10:56:45]line Безнал.: 0.00 [10:56:45]line Место: АЗС № 140 "Партнер Нефть" [10:56:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [10:56:45]line СНО: Общий режим [10:56:45]line Чек 54 16.07.2024 10:56 [10:56:45]line Смена: 371 ФФД: 1.0 [10:56:45]line ЗНМ: 0300000189 [10:56:45]line РНМ: 0000000000098025 [10:56:45]line Версия ККМ: 001 [10:56:45]line ФМ: 0000000000965389 [10:56:45]line ФД: 31735 [10:56:45]line ФПД: 280875161127672 [10:56:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T105647&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31735&fm=280875161127672&tin=02508201610067®Number=0000000000098025&sum=11500 [10:56:45]line 0 [10:56:45]OFD Sender: Processing packet 31735 [packets to send 6, broken 5] [10:56:45]ProducePacketName [10:56:45]name=ofd_packets/00031735 [10:56:45]OFD Sender: To server: pG, [10:56:45]CommunicateWithHost lk.salyk.kg:30040 [10:56:45]ConnectInit lk.salyk.kg [10:56:45]written 0, free lines is 4095 [10:56:45]Connected sock=10 [10: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 35 33 38 39 2C 01 00 00 D3 EC 24 01 D2 BE 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 36 00 00 00 F4 03 04 00 EF 51 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F7 7B 00 00 35 04 06 00 FF 74 58 34 8A F8 CE 05 D7 C5 EE CA 24 7E [10:56:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 69 46 47 00 32 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 35 33 38 39 10 04 04 00 F7 7B 00 00 F4 03 04 00 FD FD 95 66 B6 04 01 00 00 DF 14 DF 34 C4 71 46 B0 [10:56:46]CommunicateWithHost err = 0 [10:56:46]CheckOFDResponse [10:56:46]1017 (14) - 77093643461234 [10:56:46]1041 (16) - 0000000000965389 [10:56:46]1040 (4) - 31735 [10:56:46]1012 (4) - 16.07.2024 04:58 [10:56:46]1206 (1) - 0 [10:56:46]OFD Sender: Remove packet 31735 [10:56:46]ProducePacketName [10:56:46]name=ofd_packets/00031735 [10:56:46]NVStorageDeleteData [10:56:46]Write to MH i2c: 01 00 00 A9 1B C4 [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: 01 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: 01 07 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: 01 07 00 A9 1B 00 00 00 00 00 03 0D DB [10:56:46]RasterBufferAndPrint [10:56:46]line [10:56:46]line [10:56:46]line [10:56:46]line [10:56:46]line [10:56:46]written 0, free lines is 3337 [10:56:46]MH_Cut [10:56:46]Write to MH i2c: D1 01 00 B0 1B 01 9D [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: D1 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: D1 01 00 [10:56:46]MH_I2C_Read... [10:56:46]Read from MH i2c: D1 01 00 B0 1B 00 9C [10:56:46]Write to MH i2c: 01 00 00 B1 1B CC [10:56:46]Write i2c OK [10:56:46]MH_I2C_Read... [10:56:46]OFD Sender: No OFD packet to send [10:56:46]*** Cut start [10:56:46]*** Partial cut [10:56:46]*** CUTSNS_PIN = 1 [10:56:46]*** CUTSNS_PIN = 0 [10:56:47]*** Brake cut motor [10:56:47]Read from MH i2c: 01 [10:56:47]MH_I2C_Read... [10:56:47]*** Stop cut motor [10:56:47]*** Cut end [10:56:47]Read from MH i2c: 01 07 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: 01 07 00 B1 1B 00 00 00 00 00 FF 0F E1 [10:56:47]process_action close_receipt done [10:56:47]requested_data is exist [10:56:47]produce_requested_data [10:56:47]requested_item fm.sn is exist - process it [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 11 00 00 [10:56:47]Write to MH i2c: E2 08 00 B2 1B 80 11 00 00 00 00 00 00 47 [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:47]Read from MH i2c: E2 17 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 17 00 B2 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A2 [10:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [10:56:47]wFMCommunicate OK [10:56:47]requested_item fd.num is exist - process it [10:56:47]SAM_PROTO_GetFieldsCounters [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 13 00 00 [10:56:47]Write to MH i2c: E2 08 00 B3 1B 80 13 00 00 00 00 00 00 4A [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 62 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 62 00 B3 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F7 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [10: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F7 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:47]wFMCommunicate OK [10:56:47]SAM_PROTO_GetFieldsCounters done [10:56:47]requested_item shift.num is exist - process it [10:56:47]requested_item shift.opened is exist - process it [10:56:47]req_shift_opened [10:56:47]FM_GetShiftState [10:56:47]SAM_PROTO_GetShiftState [10:56:47]wFMCommunicate request_size=4 [10:56:47]MH_SAM_APDU [10:56:47]CAPDU: 80 13 01 00 [10:56:47]Write to MH i2c: E2 08 00 B4 1B 80 13 01 00 00 00 00 00 4C [10:56:47]Write i2c OK [10:56:47]MH_I2C_Read... [10:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:47]Read from MH i2c: E2 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 0E 00 [10:56:47]MH_I2C_Read... [10:56:47]Read from MH i2c: E2 0E 00 B4 1B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 9B [10:56:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [10:56:47]wFMCommunicate OK [10:56:47]SAM_PROTO_GetShiftState done [10:56:47]FM_GetShiftState done [10:56:47]req_shift_opened done [10:56:47]requested_item shift.open_date is exist - process it [10:56:47]req_shift_open_date [10:56:47]req_shift_open_date done [10:56:47]produce_requested_data done [10:56:47]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31735,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [10:56:47]process_action_free close_receipt [10:56:47]json_value_free [10:56:47]json_value_free done [10:56:47]process_json_proto returns [10:56:47]Send response to host [10:56:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31735,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [10:56:47]free response buf [10:56:47]execute_script done [10:56:47]execute_script returns [10:56:47]free content buf [10:56:47]Sock 9.Close socket [10:56:47]Sock 9.Thread stoped [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:31]OFD Sender: No OFD packet to send [11:05:36]OFD Sender: No OFD packet to send [11:05:41]OFD Sender: No OFD packet to send [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]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:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:25]accept exits with 7 [11:07:25]New connection [11:07:25]New thread 3066821988 created [11:07:25]Thread 3066965348 joined [11:07:25]Waiting for new connection... [11:07:25] Sock 7.Parse request [11:07:25]Sock 7.Check first char [11:07:25]Sock 7.First char is OK [11:07:25]request: POST /json_proto HTTP/1.0 [11:07:25]Method: POST [11:07:25]URL: /json_proto [11:07:25]Method is POST - this is cgi request [11:07:25]url: /json_proto [11:07:25]query_string will be loaded in cgi processing [11:07:25]execute_cgi json_proto POST (null) [11:07:25]execute_cgi path=json_proto method=POST [11:07:25]POST find Content-Length [11:07:25]Host: 172.17.39.68:8080 [11:07:25]Content-Length: 619 [11:07:25]Content-Type: application/json [11:07:25] [11:07:25]POST finish read [11:07:25]Found Content-Length = 619 [11:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214317", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 3.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:25]execute_script... [11:07:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214317", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 3.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:25]POST & json_proto [11:07:25]process_json_proto [11:07:25]json parsed OK: [11:07:25]protocol is kg_v1.0 [11:07:25]action value=close_receipt [11:07:25]process_action close_receipt [11:07:25]cmd_close_receipt [11:07:25]MH_GetDate [11:07:25]Write to MH i2c: F0 00 00 B5 1B BF [11:07:25]Write i2c OK [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: F0 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: F0 09 00 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: F0 09 00 B5 1B 00 71 54 96 66 D6 48 95 66 A2 [11:07:25]GetLastDocTimeStamp 1721127407 [11:07:25]current date 1721128049 [11:07:25]FM_GetShiftState [11:07:25]SAM_PROTO_GetShiftState [11:07:25]wFMCommunicate request_size=4 [11:07:25]MH_SAM_APDU [11:07:25]CAPDU: 80 13 01 00 [11:07:25]Write to MH i2c: E2 08 00 B6 1B 80 13 01 00 00 00 00 00 4E [11:07:25]Write i2c OK [11:07:25]MH_I2C_Read... [11:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:25]Read from MH i2c: E2 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 0E 00 [11:07:25]MH_I2C_Read... [11:07:25]Read from MH i2c: E2 0E 00 B6 1B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 9D [11:07:25]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [11:07:25]wFMCommunicate OK [11:07:25]SAM_PROTO_GetShiftState done [11:07:25]FM_GetShiftState done [11:07:25]opened in 1721088399 [11:07:25]opened+sec_in_day 1721174799 [11:07:25]quantity*price = 42000 [11:07:25]sum+1 = 42001 [11:07:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 420.00 НСП 1% : 3.72 НДС 12% : 44.60 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 55 16.07.2024 11:07 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31736 ФПД: 206004956726364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T110729&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31736&fm=206004956726364&tin=02508201610067®Number=0000000000098025&sum=42000 0 [11:07:26]StoreToDocumentArchive [11:07:26]shift 371 fd 31736 [11:07:26]save to /storage/0371/doc_00031736 [11:07:26]save last doc name /storage/0371/doc_00031736 to /storage/kkm_last_doc_name [11:07:26]save OK [11:07:26]Clear old archive folders... [11:07:26]ProcessDocumentItem done err = 0, tmpTLVsize=271 [11:07:26]tlvbuf is B6EC40E0 [11:07:26]SAM_PROTO_ClearQueue [11:07:26]wFMCommunicate request_size=4 [11:07:26]MH_SAM_APDU [11:07:26]CAPDU: 80 09 00 00 [11:07:26]Write to MH i2c: E2 08 00 C3 1B 80 09 00 00 00 00 00 00 50 [11:07:26]Write i2c OK [11:07:26]MH_I2C_Read... [11:07:26]*** iso7816_exchange 80 09 00 00... 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 C3 1B 00 90 00 52 [11:07:26]RAPDU: 90 00 [11:07:26]wFMCommunicate OK [11:07:26]SAM_PROTO_ClearQueue done [11:07:26]KKMCreateOFDPacket [11:07:26]OFDProtocolAddRootSTLVToBuf [11:07:26]FM_MakeSignedData [11:07:26]FM_MakeSignedData [11:07:26]SAM_PROTO_SignData [11:07:26]wFMCommunicate request_size=4 [11:07:26]MH_SAM_APDU [11:07:26]CAPDU: 80 0D 01 02 [11:07:26]Write to MH i2c: E2 08 00 C4 1B 80 0D 01 02 00 00 00 00 58 [11:07:26]Write i2c OK [11:07:26]MH_I2C_Read... [11:07:26]*** iso7816_exchange 80 0D 01 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 C4 1B 00 90 00 53 [11:07:26]RAPDU: 90 00 [11:07:26]wFMCommunicate OK [11:07:26]wFMCommunicate request_size=255 [11:07:26]MH_SAM_APDU [11:07:26]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 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 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 6C 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 37 00 00 00 F4 03 04 00 71 54 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [11:07:26]Write to MH i2c: E2 02 01 C5 1B 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 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 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 6C 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 37 00 00 00 F4 03 04 00 71 54 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 2B [11:07:26]Write i2c OK [11:07:26]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:27]OFD Sender: No OFD packet to send [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 C5 1B 00 90 00 54 [11:07:27]RAPDU: 90 00 [11:07:27]wFMCommunicate OK [11:07:27]wFMCommunicate request_size=30 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 0D 02 02 19 30 39 36 35 33 38 39 10 04 04 00 F8 7B 00 00 35 04 06 00 BB 5C 44 44 84 5C [11:07:27]Write to MH i2c: E2 21 00 C6 1B 80 0D 02 02 19 00 30 39 36 35 33 38 39 10 04 04 00 F8 7B 00 00 35 04 06 00 BB 5C 44 44 84 5C 00 00 4E [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 C6 1B 00 90 00 55 [11:07:27]RAPDU: 90 00 [11:07:27]wFMCommunicate OK [11:07:27]wFMCommunicate request_size=4 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 0D 03 02 [11:07:27]Write to MH i2c: E2 08 00 C7 1B 80 0D 03 02 00 00 00 00 5D [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 0B 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 0B 00 C7 1B 00 4A E3 22 FF AE 9A 37 3B 90 00 66 [11:07:27]RAPDU: 4A E3 22 FF AE 9A 37 3B 90 00 [11:07:27]wFMCommunicate OK [11:07:27]SAM_PROTO_SignData done [11:07:27]FM_MakeSignedData done [11:07:27]CreateOFDProtocolMessage [11:07:27]wFMCommunicate request_size=4 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 11 00 00 [11:07:27]Write to MH i2c: E2 08 00 C8 1B 80 11 00 00 00 00 00 00 5D [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 17 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 17 00 C8 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B8 [11:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:07:27]wFMCommunicate OK [11:07:27]CreateOFDProtocolMessage done [11:07:27]OFDSenderStorePacket 31736 [11:07:27]StoreOFDPacket docnum=31736 [11:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 23 01 00 00 73 40 1B 01 8B 83 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 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 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 6C 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 37 00 00 00 F4 03 04 00 71 54 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F8 7B 00 00 35 04 06 00 BB 5C 44 44 84 5C 4A E3 22 FF AE 9A 37 3B [11:07:27]CheckFolder [11:07:27]dirname=/storage/ofd_packets [11:07:27]CheckFolder done [11:07:27]ProducePacketName [11:07:27]name=ofd_packets/00031736 [11:07:27]NVStorageSaveData ofd_packets/00031736 [11:07:27]File name is /storage/ofd_packets/00031736 [11:07:27]Write 321 bytes [11:07:27]NVStorageSaveData done [11:07:27]OFDSenderStorePacket done [11:07:27]KKMCreateOFDPacket done [11:07:27]NVStorageSaveData kkm_last_timestamp [11:07:27]File name is /storage/kkm_last_timestamp [11:07:27]Write 4 bytes [11:07:27]NVStorageSaveData done [11:07:27]ExternCall_PrintAddStr [11:07:27]wPrintStart [11:07:27]Write to MH i2c: 01 00 00 C9 1B E4 [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 C9 1B 00 00 00 00 00 FF 0F F9 [11:07:27]RasterBufferAndPrint [11:07:27]line Счет N : (3)214317 [11:07:27]line ИНН: 02508201610067 [11:07:27]line Контрольно-Кассовый Чек [11:07:27]line ПРОДАЖА [11:07:27]line Товар: 47802995 [11:07:27]line Сигареты Winston XS Silver [11:07:27]line 3.000 * 140.00 [11:07:27]line = 420.00 [11:07:27]line НДС 12% НСП 1% [11:07:27]line > о реализуемом товаре [11:07:27]line ИТОГО: 420.00 [11:07:27]line НСП 1% : 3.72 [11:07:27]line НДС 12% : 44.60 [11:07:27]line Наличными: 420.00 [11:07:27]line Безнал.: 0.00 [11:07:27]line Место: АЗС № 140 "Партнер Нефть" [11:07:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:07:27]line СНО: Общий режим [11:07:27]line Чек 55 16.07.2024 11:07 [11:07:27]line Смена: 371 ФФД: 1.0 [11:07:27]line ЗНМ: 0300000189 [11:07:27]line РНМ: 0000000000098025 [11:07:27]line Версия ККМ: 001 [11:07:27]line ФМ: 0000000000965389 [11:07:27]line ФД: 31736 [11:07:27]line ФПД: 206004956726364 [11:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T110729&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31736&fm=206004956726364&tin=02508201610067®Number=0000000000098025&sum=42000 [11:07:27]line 0 [11:07:27]OFD Sender: Processing packet 31736 [packets to send 6, broken 5] [11:07:27]ProducePacketName [11:07:27]name=ofd_packets/00031736 [11:07:27]OFD Sender: To server: pG, [11:07:27]CommunicateWithHost lk.salyk.kg:30040 [11:07:27]ConnectInit lk.salyk.kg [11:07:27]written 0, free lines is 4095 [11:07:27]Connected sock=10 [11:07:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 23 01 00 00 73 40 1B 01 8B 83 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 B8 0B 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 10 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 6C 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 37 00 00 00 F4 03 04 00 71 54 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F8 7B 00 00 35 04 06 00 BB 5C 44 44 84 5C 4A E3 22 FF AE 9A 37 3B [11:07:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 5E 03 47 00 E8 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F8 7B 00 00 F4 03 04 00 7F 00 96 66 B6 04 01 00 00 B3 A2 DC 0C 5B 59 47 6F [11:07:27]CommunicateWithHost err = 0 [11:07:27]CheckOFDResponse [11:07:27]1017 (14) - 77093643461234 [11:07:27]1041 (16) - 0000000000965389 [11:07:27]1040 (4) - 31736 [11:07:27]1012 (4) - 16.07.2024 05:09 [11:07:27]1206 (1) - 0 [11:07:27]OFD Sender: Remove packet 31736 [11:07:27]ProducePacketName [11:07:27]name=ofd_packets/00031736 [11:07:27]NVStorageDeleteData [11:07:28]Write to MH i2c: 01 00 00 F1 1B 0C [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 [11:07:28]MH_I2C_Read... [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 F1 1B 00 00 00 00 00 FD 0C 1C [11:07:28]RasterBufferAndPrint [11:07:28]line [11:07:28]line [11:07:28]line [11:07:28]line [11:07:28]line [11:07:28]written 0, free lines is 3331 [11:07:28]MH_Cut [11:07:28]Write to MH i2c: D1 01 00 F8 1B 01 E5 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: D1 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: D1 01 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: D1 01 00 F8 1B 00 E4 [11:07:28]Write to MH i2c: 01 00 00 F9 1B 14 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]OFD Sender: No OFD packet to send [11:07:28]*** Cut start [11:07:28]*** Partial cut [11:07:28]*** CUTSNS_PIN = 1 [11:07:28]*** CUTSNS_PIN = 0 [11:07:29]*** Brake cut motor [11:07:29]Read from MH i2c: 01 [11:07:29]MH_I2C_Read... [11:07:29]*** Stop cut motor [11:07:29]*** Cut end [11:07:29]Read from MH i2c: 01 07 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: 01 07 00 F9 1B 00 00 00 00 00 FF 0F 29 [11:07:29]process_action close_receipt done [11:07:29]requested_data is exist [11:07:29]produce_requested_data [11:07:29]requested_item fm.sn is exist - process it [11:07:29]wFMCommunicate request_size=4 [11:07:29]MH_SAM_APDU [11:07:29]CAPDU: 80 11 00 00 [11:07:29]Write to MH i2c: E2 08 00 FA 1B 80 11 00 00 00 00 00 00 8F [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:29]Read from MH i2c: E2 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: E2 17 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: E2 17 00 FA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 EA [11:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:07:29]wFMCommunicate OK [11:07:29]requested_item fd.num is exist - process it [11:07:29]SAM_PROTO_GetFieldsCounters [11:07:29]wFMCommunicate request_size=4 [11:07:29]MH_SAM_APDU [11:07:29]CAPDU: 80 13 00 00 [11:07:29]Write to MH i2c: E2 08 00 FB 1B 80 13 00 00 00 00 00 00 92 [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:29]Read from MH i2c: E2 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: E2 62 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: E2 62 00 FB 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F8 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [11:07: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F8 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:29]wFMCommunicate OK [11:07:29]SAM_PROTO_GetFieldsCounters done [11:07:29]requested_item shift.num is exist - process it [11:07:29]requested_item shift.opened is exist - process it [11:07:29]req_shift_opened [11:07:29]FM_GetShiftState [11:07:29]SAM_PROTO_GetShiftState [11:07:29]wFMCommunicate request_size=4 [11:07:29]MH_SAM_APDU [11:07:29]CAPDU: 80 13 01 00 [11:07:29]Write to MH i2c: E2 08 00 FC 1B 80 13 01 00 00 00 00 00 94 [11:07:29]Write i2c OK [11:07:29]MH_I2C_Read... [11:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:29]Read from MH i2c: E2 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: E2 0E 00 [11:07:29]MH_I2C_Read... [11:07:29]Read from MH i2c: E2 0E 00 FC 1B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 E3 [11:07:29]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [11:07:29]wFMCommunicate OK [11:07:29]SAM_PROTO_GetShiftState done [11:07:29]FM_GetShiftState done [11:07:29]req_shift_opened done [11:07:29]requested_item shift.open_date is exist - process it [11:07:29]req_shift_open_date [11:07:29]req_shift_open_date done [11:07:29]produce_requested_data done [11:07:29]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31736,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [11:07:29]process_action_free close_receipt [11:07:29]json_value_free [11:07:29]json_value_free done [11:07:29]process_json_proto returns [11:07:29]Send response to host [11:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31736,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [11:07:29]free response buf [11:07:29]execute_script done [11:07:29]execute_script returns [11:07:29]free content buf [11:07:29]Sock 7.Close socket [11:07:29]Sock 7.Thread stoped [11:07:33]OFD Sender: No OFD packet to send [11:07:38]OFD Sender: No OFD packet to send [11:07:43]OFD Sender: No OFD packet to send [11:07:48]OFD Sender: No OFD packet to send [11:07:53]OFD Sender: No OFD packet to send [11:07:58]OFD Sender: No OFD packet to send [11:08:03]OFD Sender: No OFD packet to send [11:08:08]OFD Sender: No OFD packet to send [11:08:13]OFD Sender: No OFD packet to send [11:08:18]OFD Sender: No OFD packet to send [11:08:23]OFD Sender: No OFD packet to send [11:08:28]OFD Sender: No OFD packet to send [11:08:33]OFD Sender: No OFD packet to send [11:08:38]OFD Sender: No OFD packet to send [11:08:43]OFD Sender: No OFD packet to send [11:08:48]OFD Sender: No OFD packet to send [11:08:53]OFD Sender: No OFD packet to send [11:08:58]OFD Sender: No OFD packet to send [11:09:03]OFD Sender: No OFD packet to send [11:09:08]OFD Sender: No OFD packet to send [11:09:13]OFD Sender: No OFD packet to send [11:09:18]OFD Sender: No OFD packet to send [11:09:23]OFD Sender: No OFD packet to send [11:09:28]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:58]OFD Sender: No OFD packet to send [11:13:03]OFD Sender: No OFD packet to send [11:13:08]OFD Sender: No OFD packet to send [11:13:13]OFD Sender: No OFD packet to send [11:13:18]OFD Sender: No OFD packet to send [11:13:23]OFD Sender: No OFD packet to send [11:13:28]OFD Sender: No OFD packet to send [11:13:33]OFD Sender: No OFD packet to send [11:13:38]OFD Sender: No OFD packet to send [11:13:43]OFD Sender: No OFD packet to send [11:13:48]OFD Sender: No OFD packet to send [11:13:53]OFD Sender: No OFD packet to send [11:13:58]OFD Sender: No OFD packet to send [11:14:03]OFD Sender: No OFD packet to send [11:14:08]OFD Sender: No OFD packet to send [11:14:13]OFD Sender: No OFD packet to send [11:14:18]OFD Sender: No OFD packet to send [11:14:23]OFD Sender: No OFD packet to send [11:14:28]OFD Sender: No OFD packet to send [11:14:33]OFD Sender: No OFD packet to send [11:14:38]OFD Sender: No OFD packet to send [11:14:43]OFD Sender: No OFD packet to send [11:14:48]OFD Sender: No OFD packet to send [11:14:53]OFD Sender: No OFD packet to send [11:14:58]OFD Sender: No OFD packet to send [11:15:03]OFD Sender: No OFD packet to send [11:15:08]OFD Sender: No OFD packet to send [11:15:13]OFD Sender: No OFD packet to send [11:15:18]OFD Sender: No OFD packet to send [11:15:23]OFD Sender: No OFD packet to send [11:15:28]OFD Sender: No OFD packet to send [11:15:33]OFD Sender: No OFD packet to send [11:15:38]OFD Sender: No OFD packet to send [11:15:43]OFD Sender: No OFD packet to send [11:15:48]OFD Sender: No OFD packet to send [11:15:53]OFD Sender: No OFD packet to send [11:15:58]OFD Sender: No OFD packet to send [11:16:03]OFD Sender: No OFD packet to send [11:16:08]OFD Sender: No OFD packet to send [11:16:13]OFD Sender: No OFD packet to send [11:16:18]OFD Sender: No OFD packet to send [11:16:23]OFD Sender: No OFD packet to send [11:16:28]OFD Sender: No OFD packet to send [11:16:33]OFD Sender: No OFD packet to send [11:16:38]OFD Sender: No OFD packet to send [11:16:43]OFD Sender: No OFD packet to send [11:16:48]OFD Sender: No OFD packet to send [11:16:53]OFD Sender: No OFD packet to send [11:16:58]OFD Sender: No OFD packet to send [11:17:03]OFD Sender: No OFD packet to send [11:17:08]OFD Sender: No OFD packet to send [11:17:13]OFD Sender: No OFD packet to send [11:17:18]OFD Sender: No OFD packet to send [11:17:23]OFD Sender: No OFD packet to send [11:17:28]OFD Sender: No OFD packet to send [11:17:33]OFD Sender: No OFD packet to send [11:17:38]OFD Sender: No OFD packet to send [11:17:43]OFD Sender: No OFD packet to send [11:17:48]OFD Sender: No OFD packet to send [11:17:53]OFD Sender: No OFD packet to send [11:17:58]OFD Sender: No OFD packet to send [11:18:03]OFD Sender: No OFD packet to send [11:18:08]OFD Sender: No OFD packet to send [11:18:13]OFD Sender: No OFD packet to send [11:18:18]OFD Sender: No OFD packet to send [11:18:23]OFD Sender: No OFD packet to send [11:18:28]OFD Sender: No OFD packet to send [11:18:33]OFD Sender: No OFD packet to send [11:18:38]OFD Sender: No OFD packet to send [11:18:43]OFD Sender: No OFD packet to send [11:18:48]OFD Sender: No OFD packet to send [11:18:53]OFD Sender: No OFD packet to send [11:18:58]OFD Sender: No OFD packet to send [11:19:03]OFD Sender: No OFD packet to send [11:19:08]OFD Sender: No OFD packet to send [11:19:12]accept exits with 9 [11:19:12]New connection [11:19:12]New thread 3066965348 created [11:19:12]Thread 3066821988 joined [11:19:12]Waiting for new connection... [11:19:12] Sock 9.Parse request [11:19:12]Sock 9.Check first char [11:19:12]Sock 9.First char is OK [11:19:12]request: POST /json_proto HTTP/1.0 [11:19:12]Method: POST [11:19:12]URL: /json_proto [11:19:12]Method is POST - this is cgi request [11:19:12]url: /json_proto [11:19:12]query_string will be loaded in cgi processing [11:19:12]execute_cgi json_proto POST (null) [11:19:12]execute_cgi path=json_proto method=POST [11:19:12]POST find Content-Length [11:19:12]Host: 172.17.39.68:8080 [11:19:12]Content-Length: 614 [11:19:12]Content-Type: application/json [11:19:12] [11:19:12]POST finish read [11:19:12]Found Content-Length = 614 [11:19:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214318", "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" ] } } [11:19:12]execute_script... [11:19:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214318", "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" ] } } [11:19:12]POST & json_proto [11:19:12]process_json_proto [11:19:12]json parsed OK: [11:19:12]protocol is kg_v1.0 [11:19:12]action value=close_receipt [11:19:12]process_action close_receipt [11:19:12]cmd_close_receipt [11:19:12]MH_GetDate [11:19:12]Write to MH i2c: F0 00 00 FD 1B 07 [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: F0 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: F0 09 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: F0 09 00 FD 1B 00 34 57 96 66 D6 48 95 66 B0 [11:19:12]GetLastDocTimeStamp 1721128049 [11:19:12]current date 1721128756 [11:19:12]FM_GetShiftState [11:19:12]SAM_PROTO_GetShiftState [11:19:12]wFMCommunicate request_size=4 [11:19:12]MH_SAM_APDU [11:19:12]CAPDU: 80 13 01 00 [11:19:12]Write to MH i2c: E2 08 00 FE 1B 80 13 01 00 00 00 00 00 96 [11:19:12]Write i2c OK [11:19:12]MH_I2C_Read... [11:19:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:12]Read from MH i2c: E2 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0E 00 [11:19:12]MH_I2C_Read... [11:19:12]Read from MH i2c: E2 0E 00 FE 1B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 E5 [11:19:12]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [11:19:12]wFMCommunicate OK [11:19:12]SAM_PROTO_GetShiftState done [11:19:12]FM_GetShiftState done [11:19:12]opened in 1721088399 [11:19:12]opened+sec_in_day 1721174799 [11:19:12]quantity*price = 11100 [11:19:12]sum+1 = 11101 [11:19:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 111.00 НСП 1% : 0.98 НДС 12% : 11.79 Наличными: 111.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 56 16.07.2024 11:19 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31737 ФПД: 172142061922899 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T111916&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31737&fm=172142061922899&tin=02508201610067®Number=0000000000098025&sum=11100 0 [11:19:13]StoreToDocumentArchive [11:19:13]shift 371 fd 31737 [11:19:13]save to /storage/0371/doc_00031737 [11:19:13]save last doc name /storage/0371/doc_00031737 to /storage/kkm_last_doc_name [11:19:13]save OK [11:19:13]Clear old archive folders... [11:19:13]ProcessDocumentItem done err = 0, tmpTLVsize=266 [11:19:13]tlvbuf is B6EAB310 [11:19:13]SAM_PROTO_ClearQueue [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 09 00 00 [11:19:13]Write to MH i2c: E2 08 00 0B 1C 80 09 00 00 00 00 00 00 99 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 [11:19:13]MH_I2C_Read... [11:19:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:13]Read from MH i2c: E2 03 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 0B 1C 00 90 00 9B [11:19:13]RAPDU: 90 00 [11:19:13]wFMCommunicate OK [11:19:13]SAM_PROTO_ClearQueue done [11:19:13]KKMCreateOFDPacket [11:19:13]OFDProtocolAddRootSTLVToBuf [11:19:13]FM_MakeSignedData [11:19:13]FM_MakeSignedData [11:19:13]SAM_PROTO_SignData [11:19:13]wFMCommunicate request_size=4 [11:19:13]MH_SAM_APDU [11:19:13]CAPDU: 80 0D 01 02 [11:19:13]Write to MH i2c: E2 08 00 0C 1C 80 0D 01 02 00 00 00 00 A1 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: *** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:13]E2 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 [11:19:13]MH_I2C_Read... [11:19:13]Read from MH i2c: E2 03 00 0C 1C 00 90 00 9C [11:19:13]RAPDU: 90 00 [11:19:13]wFMCommunicate OK [11:19:13]wFMCommunicate request_size=255 [11:19:13]MH_SAM_APDU [11:19:13]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 38 00 00 00 F4 03 04 00 34 57 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 [11:19:13]Write to MH i2c: E2 02 01 0D 1C 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 38 00 00 00 F4 03 04 00 34 57 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 00 00 E9 [11:19:13]Write i2c OK [11:19:13]MH_I2C_Read... [11:19:13]OFD Sender: No OFD packet to send [11:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:14]Read from MH i2c: E2 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 03 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 03 00 0D 1C 00 90 00 9D [11:19:14]RAPDU: 90 00 [11:19:14]wFMCommunicate OK [11:19:14]wFMCommunicate request_size=25 [11:19:14]MH_SAM_APDU [11:19:14]CAPDU: 80 0D 02 02 14 38 39 10 04 04 00 F9 7B 00 00 35 04 06 00 9C 8F F2 73 AA 53 [11:19:14]Write to MH i2c: E2 1C 00 0E 1C 80 0D 02 02 14 00 38 39 10 04 04 00 F9 7B 00 00 35 04 06 00 9C 8F F2 73 AA 53 00 00 95 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:14]Read from MH i2c: E2 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 03 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 03 00 0E 1C 00 90 00 9E [11:19:14]RAPDU: 90 00 [11:19:14]wFMCommunicate OK [11:19:14]wFMCommunicate request_size=4 [11:19:14]MH_SAM_APDU [11:19:14]CAPDU: 80 0D 03 02 [11:19:14]Write to MH i2c: E2 08 00 0F 1C 80 0D 03 02 00 00 00 00 A6 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:14]Read from MH i2c: E2 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 0B 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 0B 00 0F 1C 00 FE 01 1F E0 BD 1F 9A 8C 90 00 A7 [11:19:14]RAPDU: FE 01 1F E0 BD 1F 9A 8C 90 00 [11:19:14]wFMCommunicate OK [11:19:14]SAM_PROTO_SignData done [11:19:14]FM_MakeSignedData done [11:19:14]CreateOFDProtocolMessage [11:19:14]wFMCommunicate request_size=4 [11:19:14]MH_SAM_APDU [11:19:14]CAPDU: 80 11 00 00 [11:19:14]Write to MH i2c: E2 08 00 10 1C 80 11 00 00 00 00 00 00 A6 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:14]Read from MH i2c: E2 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 17 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: E2 17 00 10 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 01 [11:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:19:14]wFMCommunicate OK [11:19:14]CreateOFDProtocolMessage done [11:19:14]OFDSenderStorePacket 31737 [11:19:14]StoreOFDPacket docnum=31737 [11:19:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1E 01 00 00 FC 08 16 01 D5 CA 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 38 00 00 00 F4 03 04 00 34 57 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F9 7B 00 00 35 04 06 00 9C 8F F2 73 AA 53 FE 01 1F E0 BD 1F 9A 8C [11:19:14]CheckFolder [11:19:14]dirname=/storage/ofd_packets [11:19:14]CheckFolder done [11:19:14]ProducePacketName [11:19:14]name=ofd_packets/00031737 [11:19:14]NVStorageSaveData ofd_packets/00031737 [11:19:14]File name is /storage/ofd_packets/00031737 [11:19:14]Write 316 bytes [11:19:14]NVStorageSaveData done [11:19:14]OFDSenderStorePacket done [11:19:14]KKMCreateOFDPacket done [11:19:14]NVStorageSaveData kkm_last_timestamp [11:19:14]File name is /storage/kkm_last_timestamp [11:19:14]Write 4 bytes [11:19:14]NVStorageSaveData done [11:19:14]ExternCall_PrintAddStr [11:19:14]wPrintStart [11:19:14]Write to MH i2c: 01 00 00 11 1C 2D [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 07 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 07 00 11 1C 00 00 00 00 00 FF 0F 42 [11:19:14]RasterBufferAndPrint [11:19:14]line Счет N : (3)214318 [11:19:14]line ИНН: 02508201610067 [11:19:14]line Контрольно-Кассовый Чек [11:19:14]line ПРОДАЖА [11:19:14]line Товар: 4870001570071 [11:19:14]line Напиток Pepsi 1л [11:19:14]line 1.000 * 111.00 [11:19:14]line = 111.00 [11:19:14]line НДС 12% НСП 1% [11:19:14]line > о реализуемом товаре [11:19:14]line ИТОГО: 111.00 [11:19:14]line НСП 1% : 0.98 [11:19:14]line НДС 12% : 11.79 [11:19:14]line Наличными: 111.00 [11:19:14]line Безнал.: 0.00 [11:19:14]line Место: АЗС № 140 "Партнер Нефть" [11:19:14]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:19:14]line СНО: Общий режим [11:19:14]line Чек 56 16.07.2024 11:19 [11:19:14]line Смена: 371 ФФД: 1.0 [11:19:14]line ЗНМ: 0300000189 [11:19:14]line РНМ: 0000000000098025 [11:19:14]line Версия ККМ: 001 [11:19:14]line ФМ: 0000000000965389 [11:19:14]line ФД: 31737 [11:19:14]line ФПД: 172142061922899 [11:19:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T111916&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31737&fm=172142061922899&tin=02508201610067®Number=0000000000098025&sum=11100 [11:19:14]line 0 [11:19:14]OFD Sender: Processing packet 31737 [packets to send 6, broken 5] [11:19:14]ProducePacketName [11:19:14]name=ofd_packets/00031737 [11:19:14]OFD Sender: To server: pG, [11:19:14]CommunicateWithHost lk.salyk.kg:30040 [11:19:14]ConnectInit lk.salyk.kg [11:19:14]written 0, free lines is 4095 [11:19:14]Connected sock=10 [11:19:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1E 01 00 00 FC 08 16 01 D5 CA 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 38 00 00 00 F4 03 04 00 34 57 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 F9 7B 00 00 35 04 06 00 9C 8F F2 73 AA 53 FE 01 1F E0 BD 1F 9A 8C [11:19:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 95 8C 47 00 E6 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 35 33 38 39 10 04 04 00 F9 7B 00 00 F4 03 04 00 42 03 96 66 B6 04 01 00 00 2B 20 84 1D 94 20 55 85 [11:19:14]CommunicateWithHost err = 0 [11:19:14]CheckOFDResponse [11:19:14]1017 (14) - 77093643461234 [11:19:14]1041 (16) - 0000000000965389 [11:19:14]1040 (4) - 31737 [11:19:14]1012 (4) - 16.07.2024 05:21 [11:19:14]1206 (1) - 0 [11:19:14]OFD Sender: Remove packet 31737 [11:19:14]ProducePacketName [11:19:14]name=ofd_packets/00031737 [11:19:14]NVStorageDeleteData [11:19:14]Write to MH i2c: 01 00 00 39 1C 55 [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 07 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: 01 07 00 39 1C 00 00 00 00 00 00 0D 69 [11:19:14]RasterBufferAndPrint [11:19:14]line [11:19:14]line [11:19:14]line [11:19:14]line [11:19:14]line [11:19:14]written 0, free lines is 3334 [11:19:14]MH_Cut [11:19:14]Write to MH i2c: D1 01 00 40 1C 01 2E [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: D1 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: D1 01 00 [11:19:14]MH_I2C_Read... [11:19:14]Read from MH i2c: D1 01 00 40 1C 00 2D [11:19:14]Write to MH i2c: 01 00 00 41 1C 5D [11:19:14]Write i2c OK [11:19:14]MH_I2C_Read... [11:19:15]OFD Sender: No OFD packet to send [11:19:15]*** Cut start [11:19:15]*** Partial cut [11:19:15]*** CUTSNS_PIN = 1 [11:19:15]*** CUTSNS_PIN = 0 [11:19:15]*** Brake cut motor [11:19:16]Read from MH i2c: 01 [11:19:16]MH_I2C_Read... [11:19:16]*** Stop cut motor [11:19:16]*** Cut end [11:19:16]Read from MH i2c: 01 07 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: 01 07 00 41 1C 00 00 00 00 00 FF 0F 72 [11:19:16]process_action close_receipt done [11:19:16]requested_data is exist [11:19:16]produce_requested_data [11:19:16]requested_item fm.sn is exist - process it [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 11 00 00 [11:19:16]Write to MH i2c: E2 08 00 42 1C 80 11 00 00 00 00 00 00 D8 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 17 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 17 00 42 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 33 [11:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:19:16]wFMCommunicate OK [11:19:16]requested_item fd.num is exist - process it [11:19:16]SAM_PROTO_GetFieldsCounters [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 13 00 00 [11:19:16]Write to MH i2c: E2 08 00 43 1C 80 13 00 00 00 00 00 00 DB [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 62 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 62 00 43 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F9 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [11:19:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 F9 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:16]wFMCommunicate OK [11:19:16]SAM_PROTO_GetFieldsCounters done [11:19:16]requested_item shift.num is exist - process it [11:19:16]requested_item shift.opened is exist - process it [11:19:16]req_shift_opened [11:19:16]FM_GetShiftState [11:19:16]SAM_PROTO_GetShiftState [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 13 01 00 [11:19:16]Write to MH i2c: E2 08 00 44 1C 80 13 01 00 00 00 00 00 DD [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 0E 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 0E 00 44 1C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 2C [11:19:16]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [11:19:16]wFMCommunicate OK [11:19:16]SAM_PROTO_GetShiftState done [11:19:16]FM_GetShiftState done [11:19:16]req_shift_opened done [11:19:16]requested_item shift.open_date is exist - process it [11:19:16]req_shift_open_date [11:19:16]req_shift_open_date done [11:19:16]produce_requested_data done [11:19:16]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31737,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [11:19:16]process_action_free close_receipt [11:19:16]json_value_free [11:19:16]json_value_free done [11:19:16]process_json_proto returns [11:19:16]Send response to host [11:19:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31737,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [11:19:16]free response buf [11:19:16]execute_script done [11:19:16]execute_script returns [11:19:16]free content buf [11:19:16]Sock 9.Close socket [11:19:16]Sock 9.Thread stoped [11:19:20]OFD Sender: No OFD packet to send [11:19:25]OFD Sender: No OFD packet to send [11:19:30]OFD Sender: No OFD packet to send [11:19:35]OFD Sender: No OFD packet to send [11:19:40]OFD Sender: No OFD packet to send [11:19:45]OFD Sender: No OFD packet to send [11:19:50]OFD Sender: No OFD packet to send [11:19:55]OFD Sender: No OFD packet to send [11:20:00]OFD Sender: No OFD packet to send [11:20:05]OFD Sender: No OFD packet to send [11:20:10]OFD Sender: No OFD packet to send [11:20:15]OFD Sender: No OFD packet to send [11:20:20]OFD Sender: No OFD packet to send [11:20:25]OFD Sender: No OFD packet to send [11:20:30]OFD Sender: No OFD packet to send [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:05]OFD Sender: No OFD packet to send [11:24:10]OFD Sender: No OFD packet to send [11:24:15]OFD Sender: No OFD packet to send [11:24:20]OFD Sender: No OFD packet to send [11:24:25]OFD Sender: No OFD packet to send [11:24:30]OFD Sender: No OFD packet to send [11:24:35]OFD Sender: No OFD packet to send [11:24:40]OFD Sender: No OFD packet to send [11:24:45]OFD Sender: No OFD packet to send [11:24:50]OFD Sender: No OFD packet to send [11:24:55]OFD Sender: No OFD packet to send [11:25:00]OFD Sender: No OFD packet to send [11:25:05]OFD Sender: No OFD packet to send [11:25:10]OFD Sender: No OFD packet to send [11:25:11]accept exits with 7 [11:25:11]New connection [11:25:11]New thread 3066821988 created [11:25:11]Thread 3066965348 joined [11:25:11]Waiting for new connection... [11:25:11] Sock 7.Parse request [11:25:11]Sock 7.Check first char [11:25:11]Sock 7.First char is OK [11:25:11]request: POST /json_proto HTTP/1.0 [11:25:11]Method: POST [11:25:11]URL: /json_proto [11:25:11]Method is POST - this is cgi request [11:25:11]url: /json_proto [11:25:11]query_string will be loaded in cgi processing [11:25:11]execute_cgi json_proto POST (null) [11:25:11]execute_cgi path=json_proto method=POST [11:25:11]POST find Content-Length [11:25:11]Host: 172.17.39.68:8080 [11:25:11]Content-Length: 699 [11:25:11]Content-Type: application/json [11:25:11] [11:25:11]POST finish read [11:25:11]Found Content-Length = 699 [11:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214319", "tax_sys" : 0, "items" : [ { "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \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" ] } } [11:25:11]execute_script... [11:25: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)214319", "tax_sys" : 0, "items" : [ { "code": "4700000482740", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \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" ] } } [11:25:11]POST & json_proto [11:25:11]process_json_proto [11:25:11]json parsed OK: [11:25:11]protocol is kg_v1.0 [11:25:11]action value=close_receipt [11:25:11]process_action close_receipt [11:25:11]cmd_close_receipt [11:25:11]MH_GetDate [11:25:11]Write to MH i2c: F0 00 00 45 1C 50 [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: F0 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: F0 09 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: F0 09 00 45 1C 00 9B 58 96 66 D6 48 95 66 61 [11:25:11]GetLastDocTimeStamp 1721128756 [11:25:11]current date 1721129115 [11:25:11]FM_GetShiftState [11:25:11]SAM_PROTO_GetShiftState [11:25:11]wFMCommunicate request_size=4 [11:25:11]MH_SAM_APDU [11:25:11]CAPDU: 80 13 01 00 [11:25:11]Write to MH i2c: E2 08 00 46 1C 80 13 01 00 00 00 00 00 DF [11:25:11]Write i2c OK [11:25:11]MH_I2C_Read... [11:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:11]Read from MH i2c: E2 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 0E 00 [11:25:11]MH_I2C_Read... [11:25:11]Read from MH i2c: E2 0E 00 46 1C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 2E [11:25:11]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [11:25:11]wFMCommunicate OK [11:25:11]SAM_PROTO_GetShiftState done [11:25:11]FM_GetShiftState done [11:25:11]opened in 1721088399 [11:25:11]opened+sec_in_day 1721174799 [11:25:11]quantity*price = 9500 [11:25:11]sum+1 = 9501 [11:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 57 16.07.2024 11:25 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31738 ФПД: 216142665786925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T112515&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31738&fm=216142665786925&tin=02508201610067®Number=0000000000098025&sum=9500 0 [11:25:12]StoreToDocumentArchive [11:25:12]shift 371 fd 31738 [11:25:12]save to /storage/0371/doc_00031738 [11:25:12]save last doc name /storage/0371/doc_00031738 to /storage/kkm_last_doc_name [11:25:12]save OK [11:25:12]Clear old archive folders... [11:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=302 [11:25:12]tlvbuf is 0147B920 [11:25:12]SAM_PROTO_ClearQueue [11:25:12]wFMCommunicate request_size=4 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 09 00 00 [11:25:12]Write to MH i2c: E2 08 00 53 1C 80 09 00 00 00 00 00 00 E1 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:12]Read from MH i2c: E2 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 03 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 03 00 53 1C 00 90 00 E3 [11:25:12]RAPDU: 90 00 [11:25:12]wFMCommunicate OK [11:25:12]SAM_PROTO_ClearQueue done [11:25:12]KKMCreateOFDPacket [11:25:12]OFDProtocolAddRootSTLVToBuf [11:25:12]FM_MakeSignedData [11:25:12]FM_MakeSignedData [11:25:12]SAM_PROTO_SignData [11:25:12]wFMCommunicate request_size=4 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 0D 01 02 [11:25:12]Write to MH i2c: E2 08 00 54 1C 80 0D 01 02 00 00 00 00 E9 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:12]Read from MH i2c: E2 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 03 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 03 00 54 1C 00 90 00 E4 [11:25:12]RAPDU: 90 00 [11:25:12]wFMCommunicate OK [11:25:12]wFMCommunicate request_size=255 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 39 00 00 00 F4 03 04 00 9B 58 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 [11:25:12]Write to MH i2c: E2 02 01 55 1C 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 39 00 00 00 F4 03 04 00 9B 58 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 00 00 A7 [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:12]Read from MH i2c: E2 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 03 00 [11:25:12]MH_I2C_Read... [11:25:12]Read from MH i2c: E2 03 00 55 1C 00 90 00 E5 [11:25:12]RAPDU: 90 00 [11:25:12]wFMCommunicate OK [11:25:12]wFMCommunicate request_size=61 [11:25:12]MH_SAM_APDU [11:25:12]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FA 7B 00 00 35 04 06 00 C4 94 A2 D0 A6 2D [11:25:12]Write to MH i2c: E2 40 00 56 1C 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FA 7B 00 00 35 04 06 00 C4 94 A2 D0 A6 2D 00 00 3A [11:25:12]Write i2c OK [11:25:12]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 03 00 56 1C 00 90 00 E6 [11:25:13]RAPDU: 90 00 [11:25:13]wFMCommunicate OK [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 0D 03 02 [11:25:13]Write to MH i2c: E2 08 00 57 1C 80 0D 03 02 00 00 00 00 EE [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0B 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 0B 00 57 1C 00 0C 06 84 B2 74 3D 9A 55 90 00 D7 [11:25:13]RAPDU: 0C 06 84 B2 74 3D 9A 55 90 00 [11:25:13]wFMCommunicate OK [11:25:13]SAM_PROTO_SignData done [11:25:13]FM_MakeSignedData done [11:25:13]CreateOFDProtocolMessage [11:25:13]wFMCommunicate request_size=4 [11:25:13]MH_SAM_APDU [11:25:13]CAPDU: 80 11 00 00 [11:25:13]Write to MH i2c: E2 08 00 58 1C 80 11 00 00 00 00 00 00 EE [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:13]Read from MH i2c: E2 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 17 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: E2 17 00 58 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 49 [11:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:25:13]wFMCommunicate OK [11:25:13]CreateOFDProtocolMessage done [11:25:13]OFDSenderStorePacket 31738 [11:25:13]StoreOFDPacket docnum=31738 [11:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 42 01 00 00 14 37 3A 01 FE D0 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 39 00 00 00 F4 03 04 00 9B 58 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FA 7B 00 00 35 04 06 00 C4 94 A2 D0 A6 2D 0C 06 84 B2 74 3D 9A 55 [11:25:13]CheckFolder [11:25:13]dirname=/storage/ofd_packets [11:25:13]CheckFolder done [11:25:13]ProducePacketName [11:25:13]name=ofd_packets/00031738 [11:25:13]NVStorageSaveData ofd_packets/00031738 [11:25:13]File name is /storage/ofd_packets/00031738 [11:25:13]Write 352 bytes [11:25:13]NVStorageSaveData done [11:25:13]OFDSenderStorePacket done [11:25:13]KKMCreateOFDPacket done [11:25:13]NVStorageSaveData kkm_last_timestamp [11:25:13]File name is /storage/kkm_last_timestamp [11:25:13]Write 4 bytes [11:25:13]NVStorageSaveData done [11:25:13]ExternCall_PrintAddStr [11:25:13]wPrintStart [11:25:13]Write to MH i2c: 01 00 00 59 1C 75 [11:25:13]OFD Sender: Processing packet 31738 [packets to send 6, broken 5] [11:25:13]ProducePacketName [11:25:13]name=ofd_packets/00031738 [11:25:13]OFD Sender: To server: pG, [11:25:13]CommunicateWithHost lk.salyk.kg:30040 [11:25:13]ConnectInit lk.salyk.kg [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 59 1C 00 00 00 00 00 FF 0F 8A [11:25:13]RasterBufferAndPrint [11:25:13]line Счет N : (3)214319 [11:25:13]line ИНН: 02508201610067 [11:25:13]line Контрольно-Кассовый Чек [11:25:13]line ПРОДАЖА [11:25:13]line Товар: 4700000482740 [11:25:13]line Напиток Nitro Fr газ апельсин ж/б 0,45л [11:25:13]line 1.000 * 95.00 [11:25:13]line = 95.00 [11:25:13]line НДС 12% НСП 1% [11:25:13]line > о реализуемом товаре [11:25:13]line ИТОГО: 95.00 [11:25:13]line НСП 1% : 0.84 [11:25:13]line НДС 12% : 10.09 [11:25:13]line Наличными: 95.00 [11:25:13]line Безнал.: 0.00 [11:25:13]line Место: АЗС № 140 "Партнер Нефть" [11:25:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:25:13]line СНО: Общий режим [11:25:13]line Чек 57 16.07.2024 11:25 [11:25:13]line Смена: 371 ФФД: 1.0 [11:25:13]line ЗНМ: 0300000189 [11:25:13]line РНМ: 0000000000098025 [11:25:13]line Версия ККМ: 001 [11:25:13]line ФМ: 0000000000965389 [11:25:13]line ФД: 31738 [11:25:13]line ФПД: 216142665786925 [11:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T112515&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31738&fm=216142665786925&tin=02508201610067®Number=0000000000098025&sum=9500 [11:25:13]line 0 [11:25:13]Connected sock=10 [11:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 42 01 00 00 14 37 3A 01 FE D0 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 34 30 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 20 D0 B3 D0 B0 D0 B7 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 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 39 00 00 00 F4 03 04 00 9B 58 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FA 7B 00 00 35 04 06 00 C4 94 A2 D0 A6 2D 0C 06 84 B2 74 3D 9A 55 [11:25:13]written 0, free lines is 4095 [11:25:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 C0 6B 47 00 CF 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FA 7B 00 00 F4 03 04 00 A8 04 96 66 B6 04 01 00 00 E0 B2 10 01 11 29 7A 02 [11:25:13]CommunicateWithHost err = 0 [11:25:13]CheckOFDResponse [11:25:13]1017 (14) - 77093643461234 [11:25:13]1041 (16) - 0000000000965389 [11:25:13]1040 (4) - 31738 [11:25:13]1012 (4) - 16.07.2024 05:27 [11:25:13]1206 (1) - 0 [11:25:13]OFD Sender: Remove packet 31738 [11:25:13]ProducePacketName [11:25:13]name=ofd_packets/00031738 [11:25:13]NVStorageDeleteData [11:25:13]Write to MH i2c: 01 00 00 82 1C 9E [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: 01 07 00 82 1C 00 00 00 00 00 F1 0C A2 [11:25:13]RasterBufferAndPrint [11:25:13]line [11:25:13]line [11:25:13]line [11:25:13]line [11:25:13]line [11:25:13]written 0, free lines is 3319 [11:25:13]MH_Cut [11:25:13]Write to MH i2c: D1 01 00 89 1C 01 77 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: D1 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: D1 01 00 [11:25:13]MH_I2C_Read... [11:25:13]Read from MH i2c: D1 01 00 89 1C 00 76 [11:25:13]Write to MH i2c: 01 00 00 8A 1C A6 [11:25:13]Write i2c OK [11:25:13]MH_I2C_Read... [11:25:14]OFD Sender: No OFD packet to send [11:25:14]*** Cut start [11:25:14]*** Partial cut [11:25:14]*** CUTSNS_PIN = 1 [11:25:14]*** CUTSNS_PIN = 0 [11:25:15]*** Brake cut motor [11:25:15]Read from MH i2c: 01 [11:25:15]MH_I2C_Read... [11:25:15]*** Stop cut motor [11:25:15]*** Cut end [11:25:15]Read from MH i2c: 01 07 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: 01 07 00 8A 1C 00 00 00 00 00 FF 0F BB [11:25:15]process_action close_receipt done [11:25:15]requested_data is exist [11:25:15]produce_requested_data [11:25:15]requested_item fm.sn is exist - process it [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 11 00 00 [11:25:15]Write to MH i2c: E2 08 00 8B 1C 80 11 00 00 00 00 00 00 21 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 17 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 17 00 8B 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7C [11:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:25:15]wFMCommunicate OK [11:25:15]requested_item fd.num is exist - process it [11:25:15]SAM_PROTO_GetFieldsCounters [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 13 00 00 [11:25:15]Write to MH i2c: E2 08 00 8C 1C 80 13 00 00 00 00 00 00 24 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 62 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 62 00 8C 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FA 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [11:25:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FA 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:15]wFMCommunicate OK [11:25:15]SAM_PROTO_GetFieldsCounters done [11:25:15]requested_item shift.num is exist - process it [11:25:15]requested_item shift.opened is exist - process it [11:25:15]req_shift_opened [11:25:15]FM_GetShiftState [11:25:15]SAM_PROTO_GetShiftState [11:25:15]wFMCommunicate request_size=4 [11:25:15]MH_SAM_APDU [11:25:15]CAPDU: 80 13 01 00 [11:25:15]Write to MH i2c: E2 08 00 8D 1C 80 13 01 00 00 00 00 00 26 [11:25:15]Write i2c OK [11:25:15]MH_I2C_Read... [11:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:15]Read from MH i2c: E2 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 0E 00 [11:25:15]MH_I2C_Read... [11:25:15]Read from MH i2c: E2 0E 00 8D 1C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 75 [11:25:15]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [11:25:15]wFMCommunicate OK [11:25:15]SAM_PROTO_GetShiftState done [11:25:15]FM_GetShiftState done [11:25:15]req_shift_opened done [11:25:15]requested_item shift.open_date is exist - process it [11:25:15]req_shift_open_date [11:25:15]req_shift_open_date done [11:25:15]produce_requested_data done [11:25:15]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31738,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [11:25:15]process_action_free close_receipt [11:25:15]json_value_free [11:25:15]json_value_free done [11:25:15]process_json_proto returns [11:25:15]Send response to host [11:25:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31738,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [11:25:15]free response buf [11:25:15]execute_script done [11:25:15]execute_script returns [11:25:15]free content buf [11:25:15]Sock 7.Close socket [11:25:15]Sock 7.Thread stoped [11:25:19]OFD Sender: No OFD packet to send [11:25:24]OFD Sender: No OFD packet to send [11:25:29]OFD Sender: No OFD packet to send [11:25:33]accept exits with 9 [11:25:33]New connection [11:25:33]New thread 3066965348 created [11:25:33]Thread 3066821988 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.39.68:8080 [11:25:33]Content-Length: 660 [11:25:33]Content-Type: application/json [11:25:33] [11:25:33]POST finish read [11:25:33]Found Content-Length = 660 [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)214320", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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)214320", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [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 8E 1C 99 [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 8E 1C 00 B1 58 96 66 D6 48 95 66 C0 [11:25:33]GetLastDocTimeStamp 1721129115 [11:25:33]current date 1721129137 [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 8F 1C 80 13 01 00 00 00 00 00 28 [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 8F 1C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 77 [11:25:33]RAPDU: 09 00 01 8F B9 95 66 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 1721088399 [11:25:33]opened+sec_in_day 1721174799 [11:25:33]quantity*price = 15500 [11:25:33]sum+1 = 15501 [11:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 58 16.07.2024 11:25 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31739 ФПД: 132533187505971 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T112537&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31739&fm=132533187505971&tin=02508201610067®Number=0000000000098025&sum=15500 0 [11:25:34]StoreToDocumentArchive [11:25:34]shift 371 fd 31739 [11:25:34]save to /storage/0371/doc_00031739 [11:25:34]save last doc name /storage/0371/doc_00031739 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=280 [11:25:34]tlvbuf is 0151C1D0 [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 9C 1C 80 09 00 00 00 00 00 00 2A [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 9C 1C 00 90 00 2C [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 9D 1C 80 0D 01 02 00 00 00 00 32 [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 9D 1C 00 90 00 2D [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 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B1 58 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [11:25:34]Write to MH i2c: E2 02 01 9E 1C 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B1 58 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 FD [11:25:34]Write i2c OK [11:25:34]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 03 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 03 00 9E 1C 00 90 00 2E [11:25:35]RAPDU: 90 00 [11:25:35]wFMCommunicate OK [11:25:35]wFMCommunicate request_size=39 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FB 7B 00 00 35 04 06 00 78 89 C9 8F EF 33 [11:25:35]Write to MH i2c: E2 2A 00 9F 1C 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FB 7B 00 00 35 04 06 00 78 89 C9 8F EF 33 00 00 E9 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 03 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 03 00 9F 1C 00 90 00 2F [11:25:35]RAPDU: 90 00 [11:25:35]wFMCommunicate OK [11:25:35]wFMCommunicate request_size=4 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 0D 03 02 [11:25:35]Write to MH i2c: E2 08 00 A0 1C 80 0D 03 02 00 00 00 00 37 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** 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 A0 1C 00 C2 2D 77 6D F5 79 41 D7 90 00 91 [11:25:35]RAPDU: C2 2D 77 6D F5 79 41 D7 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 A1 1C 80 11 00 00 00 00 00 00 37 [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 A1 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 92 [11:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:25:35]wFMCommunicate OK [11:25:35]CreateOFDProtocolMessage done [11:25:35]OFDSenderStorePacket 31739 [11:25:35]StoreOFDPacket docnum=31739 [11:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 04 62 24 01 DB E1 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B1 58 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FB 7B 00 00 35 04 06 00 78 89 C9 8F EF 33 C2 2D 77 6D F5 79 41 D7 [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/00031739 [11:25:35]NVStorageSaveData ofd_packets/00031739 [11:25:35]File name is /storage/ofd_packets/00031739 [11:25:35]Write 330 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 A2 1C BE [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 A2 1C 00 00 00 00 00 FF 0F D3 [11:25:35]RasterBufferAndPrint [11:25:35]line Счет N : (3)214320 [11:25:35]line ИНН: 02508201610067 [11:25:35]line Контрольно-Кассовый Чек [11:25:35]line ПРОДАЖА [11:25:35]line Товар: 5449000000439 [11:25:35]line Напиток Кока-Кола 1,5л [11:25:35]line 1.000 * 155.00 [11:25:35]line = 155.00 [11:25:35]line НДС 12% НСП 1% [11:25:35]line > о реализуемом товаре [11:25:35]line ИТОГО: 155.00 [11:25:35]line НСП 1% : 1.37 [11:25:35]line НДС 12% : 16.46 [11:25:35]line Наличными: 155.00 [11:25:35]line Безнал.: 0.00 [11:25:35]line Место: АЗС № 140 "Партнер Нефть" [11:25:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:25:35]line СНО: Общий режим [11:25:35]line Чек 58 16.07.2024 11:25 [11:25:35]line Смена: 371 ФФД: 1.0 [11:25:35]line ЗНМ: 0300000189 [11:25:35]line РНМ: 0000000000098025 [11:25:35]line Версия ККМ: 001 [11:25:35]line ФМ: 0000000000965389 [11:25:35]line ФД: 31739 [11:25:35]line ФПД: 132533187505971 [11:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T112537&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31739&fm=132533187505971&tin=02508201610067®Number=0000000000098025&sum=15500 [11:25:35]OFD Sender: Processing packet 31739 [packets to send 6, broken 5] [11:25:35]ProducePacketName [11:25:35]name=ofd_packets/00031739 [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]line 0 [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 35 33 38 39 2C 01 00 00 04 62 24 01 DB E1 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 B1 58 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FB 7B 00 00 35 04 06 00 78 89 C9 8F EF 33 C2 2D 77 6D F5 79 41 D7 [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 35 33 38 39 4F 00 00 00 D7 A4 47 00 6F 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FB 7B 00 00 F4 03 04 00 BF 04 96 66 B6 04 01 00 00 10 3F B7 4A 43 67 C6 24 [11:25:35]CommunicateWithHost err = 0 [11:25:35]CheckOFDResponse [11:25:35]1017 (14) - 77093643461234 [11:25:35]1041 (16) - 0000000000965389 [11:25:35]1040 (4) - 31739 [11:25:35]1012 (4) - 16.07.2024 05:27 [11:25:35]1206 (1) - 0 [11:25:35]OFD Sender: Remove packet 31739 [11:25:35]ProducePacketName [11:25:35]name=ofd_packets/00031739 [11:25:35]NVStorageDeleteData [11:25:35]Write to MH i2c: 01 00 00 CA 1C E6 [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 CA 1C 00 00 00 00 00 07 0D 01 [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 3345 [11:25:35]MH_Cut [11:25:35]Write to MH i2c: D1 01 00 D1 1C 01 BF [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 D1 1C 00 BE [11:25:35]Write to MH i2c: 01 00 00 D2 1C EE [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 D2 1C 00 00 00 00 00 FF 0F 03 [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 D3 1C 80 11 00 00 00 00 00 00 69 [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 D3 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C4 [11:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 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 D4 1C 80 13 00 00 00 00 00 00 6C [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 D4 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FB 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FB 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11: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 D5 1C 80 13 01 00 00 00 00 00 6E [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 D5 1C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 BD [11:25:37]RAPDU: 09 00 01 8F B9 95 66 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":"0000000000965389","fd.num":31739,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [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":"0000000000965389","fd.num":31739,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [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:41]OFD Sender: No OFD packet to send [11:25:46]OFD Sender: No OFD packet to send [11:25:51]OFD Sender: No OFD packet to send [11:25:56]OFD Sender: No OFD packet to send [11:26:01]OFD Sender: No OFD packet to send [11:26:06]OFD Sender: No OFD packet to send [11:26:11]OFD Sender: No OFD packet to send [11:26:16]OFD Sender: No OFD packet to send [11:26:21]OFD Sender: No OFD packet to send [11:26:26]OFD Sender: No OFD packet to send [11:26:31]OFD Sender: No OFD packet to send [11:26:36]OFD Sender: No OFD packet to send [11:26:41]OFD Sender: No OFD packet to send [11:26:46]OFD Sender: No OFD packet to send [11:26:51]OFD Sender: No OFD packet to send [11:26:56]OFD Sender: No OFD packet to send [11:27:01]OFD Sender: No OFD packet to send [11:27:06]OFD Sender: No OFD packet to send [11:27:11]OFD Sender: No OFD packet to send [11:27:16]OFD Sender: No OFD packet to send [11:27:21]OFD Sender: No OFD packet to send [11:27:26]OFD Sender: No OFD packet to send [11:27:31]OFD Sender: No OFD packet to send [11:27:36]OFD Sender: No OFD packet to send [11:27:41]OFD Sender: No OFD packet to send [11:27:41]accept exits with 7 [11:27:41]New connection [11:27:41]New thread 3066821988 created [11:27:41]Thread 3066965348 joined [11:27:41]Waiting for new connection... [11:27:41] Sock 7.Parse request [11:27:41]Sock 7.Check first char [11:27:41]Sock 7.First char is OK [11:27:41]request: POST /json_proto HTTP/1.0 [11:27:41]Method: POST [11:27:41]URL: /json_proto [11:27:41]Method is POST - this is cgi request [11:27:41]url: /json_proto [11:27:41]query_string will be loaded in cgi processing [11:27:41]execute_cgi json_proto POST (null) [11:27:41]execute_cgi path=json_proto method=POST [11:27:41]POST find Content-Length [11:27:41]Host: 172.17.39.68:8080 [11:27:41]Content-Length: 717 [11:27:41]Content-Type: application/json [11:27:41] [11:27:41]POST finish read [11:27:41]Found Content-Length = 717 [11:27:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214321", "tax_sys" : 0, "items" : [ { "code": "6921211114420", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 3D \u0412-\u0420\u041E\u0420 \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 8*45", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 41.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:41]execute_script... [11:27: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)214321", "tax_sys" : 0, "items" : [ { "code": "6921211114420", "name": "\u041A\u0430\u0440\u0430\u043C\u0435\u043B\u044C \u0427\u0427 3D \u0412-\u0420\u041E\u0420 \u0422\u0440\u043E\u043F\u0438\u0447\u0435\u0441\u043A\u0438\u0439 8*45", "price" : 41.00, "quantity" : 1.000, "sum" : 41.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 41.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:27:41]POST & json_proto [11:27:41]process_json_proto [11:27:41]json parsed OK: [11:27:41]protocol is kg_v1.0 [11:27:41]action value=close_receipt [11:27:41]process_action close_receipt [11:27:41]cmd_close_receipt [11:27:41]MH_GetDate [11:27:41]Write to MH i2c: F0 00 00 D6 1C E1 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: F0 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: F0 09 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: F0 09 00 D6 1C 00 31 59 96 66 D6 48 95 66 89 [11:27:41]GetLastDocTimeStamp 1721129137 [11:27:41]current date 1721129265 [11:27:41]FM_GetShiftState [11:27:41]SAM_PROTO_GetShiftState [11:27:41]wFMCommunicate request_size=4 [11:27:41]MH_SAM_APDU [11:27:41]CAPDU: 80 13 01 00 [11:27:41]Write to MH i2c: E2 08 00 D7 1C 80 13 01 00 00 00 00 00 70 [11:27:41]Write i2c OK [11:27:41]MH_I2C_Read... [11:27:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:41]Read from MH i2c: E2 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 0E 00 [11:27:41]MH_I2C_Read... [11:27:41]Read from MH i2c: E2 0E 00 D7 1C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 BF [11:27:41]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [11:27:41]wFMCommunicate OK [11:27:41]SAM_PROTO_GetShiftState done [11:27:41]FM_GetShiftState done [11:27:41]opened in 1721088399 [11:27:41]opened+sec_in_day 1721174799 [11:27:41]quantity*price = 4100 [11:27:41]sum+1 = 4101 [11:27:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 41.00 НСП 1% : 0.36 НДС 12% : 4.35 Наличными: 41.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 59 16.07.2024 11:27 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31740 ФПД: 90625599493533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T112745&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31740&fm=90625599493533&tin=02508201610067®Number=0000000000098025&sum=4100 0 [11:27:42]StoreToDocumentArchive [11:27:42]shift 371 fd 31740 [11:27:42]save to /storage/0371/doc_00031740 [11:27:42]save last doc name /storage/0371/doc_00031740 to /storage/kkm_last_doc_name [11:27:42]save OK [11:27:42]Clear old archive folders... [11:27:42]ProcessDocumentItem done err = 0, tmpTLVsize=304 [11:27:42]tlvbuf is 0151C1E0 [11:27:42]SAM_PROTO_ClearQueue [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 09 00 00 [11:27:42]Write to MH i2c: E2 08 00 E4 1C 80 09 00 00 00 00 00 00 72 [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 E4 1C 00 90 00 74 [11:27:42]RAPDU: 90 00 [11:27:42]wFMCommunicate OK [11:27:42]SAM_PROTO_ClearQueue done [11:27:42]KKMCreateOFDPacket [11:27:42]OFDProtocolAddRootSTLVToBuf [11:27:42]FM_MakeSignedData [11:27:42]FM_MakeSignedData [11:27:42]SAM_PROTO_SignData [11:27:42]wFMCommunicate request_size=4 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 0D 01 02 [11:27:42]Write to MH i2c: E2 08 00 E5 1C 80 0D 01 02 00 00 00 00 7A [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:27:42]Read from MH i2c: E2 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 [11:27:42]MH_I2C_Read... [11:27:42]Read from MH i2c: E2 03 00 E5 1C 00 90 00 75 [11:27:42]RAPDU: 90 00 [11:27:42]wFMCommunicate OK [11:27:42]wFMCommunicate request_size=255 [11:27:42]MH_SAM_APDU [11:27:42]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 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 3B 00 00 00 F4 03 04 00 31 59 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 [11:27:42]Write to MH i2c: E2 02 01 E6 1C 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 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 3B 00 00 00 F4 03 04 00 31 59 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 00 00 4D [11:27:42]Write i2c OK [11:27:42]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 E6 1C 00 90 00 76 [11:27:43]RAPDU: 90 00 [11:27:43]wFMCommunicate OK [11:27:43]wFMCommunicate request_size=63 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FC 7B 00 00 35 04 06 00 52 6C 6A AA 55 9D [11:27:43]Write to MH i2c: E2 42 00 E7 1C 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FC 7B 00 00 35 04 06 00 52 6C 6A AA 55 9D 00 00 09 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 03 00 E7 1C 00 90 00 77 [11:27:43]RAPDU: 90 00 [11:27:43]wFMCommunicate OK [11:27:43]wFMCommunicate request_size=4 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 0D 03 02 [11:27:43]Write to MH i2c: E2 08 00 E8 1C 80 0D 03 02 00 00 00 00 7F [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 0B 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 0B 00 E8 1C 00 4E BC B2 AE CC AA 5E C2 90 00 80 [11:27:43]RAPDU: 4E BC B2 AE CC AA 5E C2 90 00 [11:27:43]wFMCommunicate OK [11:27:43]SAM_PROTO_SignData done [11:27:43]FM_MakeSignedData done [11:27:43]CreateOFDProtocolMessage [11:27:43]wFMCommunicate request_size=4 [11:27:43]MH_SAM_APDU [11:27:43]CAPDU: 80 11 00 00 [11:27:43]Write to MH i2c: E2 08 00 E9 1C 80 11 00 00 00 00 00 00 7F [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:43]Read from MH i2c: E2 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 17 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: E2 17 00 E9 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DA [11:27:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:27:43]wFMCommunicate OK [11:27:43]CreateOFDProtocolMessage done [11:27:43]OFDSenderStorePacket 31740 [11:27:43]StoreOFDPacket docnum=31740 [11:27:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 5A 94 3C 01 21 D5 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 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 3B 00 00 00 F4 03 04 00 31 59 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FC 7B 00 00 35 04 06 00 52 6C 6A AA 55 9D 4E BC B2 AE CC AA 5E C2 [11:27:43]CheckFolder [11:27:43]dirname=/storage/ofd_packets [11:27:43]CheckFolder done [11:27:43]ProducePacketName [11:27:43]name=ofd_packets/00031740 [11:27:43]NVStorageSaveData ofd_packets/00031740 [11:27:43]File name is /storage/ofd_packets/00031740 [11:27:43]Write 354 bytes [11:27:43]NVStorageSaveData done [11:27:43]OFDSenderStorePacket done [11:27:43]KKMCreateOFDPacket done [11:27:43]NVStorageSaveData kkm_last_timestamp [11:27:43]File name is /storage/kkm_last_timestamp [11:27:43]Write 4 bytes [11:27:43]NVStorageSaveData done [11:27:43]ExternCall_PrintAddStr [11:27:43]wPrintStart [11:27:43]Write to MH i2c: 01 00 00 EA 1C 06 [11:27:43]Write i2c OK [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 07 00 [11:27:43]MH_I2C_Read... [11:27:43]Read from MH i2c: 01 07 00 EA 1C 00 00 00 00 00 FF 0F 1B [11:27:43]RasterBufferAndPrint [11:27:43]line Счет N : (3)214321 [11:27:43]line ИНН: 02508201610067 [11:27:43]line Контрольно-Кассовый Чек [11:27:43]line ПРОДАЖА [11:27:43]line Товар: 6921211114420 [11:27:43]line Карамель ЧЧ 3D В-РОР Тропический 8*45 [11:27:43]line 1.000 * 41.00 [11:27:43]line = 41.00 [11:27:43]line НДС 12% НСП 1% [11:27:43]line > о реализуемом товаре [11:27:43]line ИТОГО: 41.00 [11:27:43]line НСП 1% : 0.36 [11:27:43]line НДС 12% : 4.35 [11:27:43]line Наличными: 41.00 [11:27:43]line Безнал.: 0.00 [11:27:43]line Место: АЗС № 140 "Партнер Нефть" [11:27:43]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [11:27:43]line СНО: Общий режим [11:27:43]line Чек 59 16.07.2024 11:27 [11:27:43]line Смена: 371 ФФД: 1.0 [11:27:43]line ЗНМ: 0300000189 [11:27:43]line РНМ: 0000000000098025 [11:27:43]line Версия ККМ: 001 [11:27:43]line ФМ: 0000000000965389 [11:27:43]line ФД: 31740 [11:27:43]line ФПД: 90625599493533 [11:27:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T112745&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31740&fm=90625599493533&tin=02508201610067®Number=0000000000098025&sum=4100 [11:27:43]line 0 [11:27:43]OFD Sender: Processing packet 31740 [packets to send 6, broken 5] [11:27:43]ProducePacketName [11:27:43]name=ofd_packets/00031740 [11:27:43]OFD Sender: To server: pG, [11:27:43]CommunicateWithHost lk.salyk.kg:30040 [11:27:43]ConnectInit lk.salyk.kg [11:27:43]written 0, free lines is 4095 [11:27:43]Connected sock=11 [11:27:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 5A 94 3C 01 21 D5 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 36 39 32 31 32 31 31 31 31 34 34 32 30 06 04 3E 00 D0 9A D0 B0 D1 80 D0 B0 D0 BC D0 B5 D0 BB D1 8C 20 D0 A7 D0 A7 20 33 44 20 D0 92 2D D0 A0 D0 9E D0 A0 20 D0 A2 D1 80 D0 BE D0 BF D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 38 2A 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 10 00 00 00 00 13 04 06 00 04 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 10 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 01 00 00 00 00 07 04 06 00 04 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 3B 00 00 00 F4 03 04 00 31 59 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FC 7B 00 00 35 04 06 00 52 6C 6A AA 55 9D 4E BC B2 AE CC AA 5E C2 [11:27:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 F3 97 47 00 D1 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 35 33 38 39 10 04 04 00 FC 7B 00 00 F4 03 04 00 3F 05 96 66 B6 04 01 00 00 19 0A EC D1 FC 86 1B F3 [11:27:43]CommunicateWithHost err = 0 [11:27:43]CheckOFDResponse [11:27:43]1017 (14) - 77093643461234 [11:27:43]1041 (16) - 0000000000965389 [11:27:43]1040 (4) - 31740 [11:27:43]1012 (4) - 16.07.2024 05:29 [11:27:43]1206 (1) - 0 [11:27:43]OFD Sender: Remove packet 31740 [11:27:43]ProducePacketName [11:27:43]name=ofd_packets/00031740 [11:27:43]NVStorageDeleteData [11:27:44]Write to MH i2c: 01 00 00 13 1D 30 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: 01 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: 01 07 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: 01 07 00 13 1D 00 00 00 00 00 FA 0C 3D [11:27:44]RasterBufferAndPrint [11:27:44]line [11:27:44]line [11:27:44]line [11:27:44]line [11:27:44]line [11:27:44]written 0, free lines is 3327 [11:27:44]MH_Cut [11:27:44]Write to MH i2c: D1 01 00 1A 1D 01 09 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: D1 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: D1 01 00 [11:27:44]MH_I2C_Read... [11:27:44]Read from MH i2c: D1 01 00 1A 1D 00 08 [11:27:44]Write to MH i2c: 01 00 00 1B 1D 38 [11:27:44]Write i2c OK [11:27:44]MH_I2C_Read... [11:27:44]OFD Sender: No OFD packet to send [11:27:44]*** Cut start [11:27:44]*** Partial cut [11:27:44]*** CUTSNS_PIN = 1 [11:27:44]*** CUTSNS_PIN = 0 [11:27:45]*** Brake cut motor [11:27:45]Read from MH i2c: 01 [11:27:45]MH_I2C_Read... [11:27:45]*** Stop cut motor [11:27:45]*** Cut end [11:27:45]Read from MH i2c: 01 07 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: 01 07 00 1B 1D 00 00 00 00 00 FF 0F 4D [11:27:45]process_action close_receipt done [11:27:45]requested_data is exist [11:27:45]produce_requested_data [11:27:45]requested_item fm.sn is exist - process it [11:27:45]wFMCommunicate request_size=4 [11:27:45]MH_SAM_APDU [11:27:45]CAPDU: 80 11 00 00 [11:27:45]Write to MH i2c: E2 08 00 1C 1D 80 11 00 00 00 00 00 00 B3 [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:45]Read from MH i2c: E2 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 17 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 17 00 1C 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0E [11:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [11:27:45]wFMCommunicate OK [11:27:45]requested_item fd.num is exist - process it [11:27:45]SAM_PROTO_GetFieldsCounters [11:27:45]wFMCommunicate request_size=4 [11:27:45]MH_SAM_APDU [11:27:45]CAPDU: 80 13 00 00 [11:27:45]Write to MH i2c: E2 08 00 1D 1D 80 13 00 00 00 00 00 00 B6 [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:45]Read from MH i2c: E2 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 62 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 62 00 1D 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FC 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [11:27:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FC 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:45]wFMCommunicate OK [11:27:45]SAM_PROTO_GetFieldsCounters done [11:27:45]requested_item shift.num is exist - process it [11:27:45]requested_item shift.opened is exist - process it [11:27:45]req_shift_opened [11:27:45]FM_GetShiftState [11:27:45]SAM_PROTO_GetShiftState [11:27:45]wFMCommunicate request_size=4 [11:27:45]MH_SAM_APDU [11:27:45]CAPDU: 80 13 01 00 [11:27:45]Write to MH i2c: E2 08 00 1E 1D 80 13 01 00 00 00 00 00 B8 [11:27:45]Write i2c OK [11:27:45]MH_I2C_Read... [11:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:45]Read from MH i2c: E2 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 0E 00 [11:27:45]MH_I2C_Read... [11:27:45]Read from MH i2c: E2 0E 00 1E 1D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 07 [11:27:45]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [11:27:45]wFMCommunicate OK [11:27:45]SAM_PROTO_GetShiftState done [11:27:45]FM_GetShiftState done [11:27:45]req_shift_opened done [11:27:45]requested_item shift.open_date is exist - process it [11:27:45]req_shift_open_date [11:27:45]req_shift_open_date done [11:27:45]produce_requested_data done [11:27:45]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31740,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [11:27:45]process_action_free close_receipt [11:27:45]json_value_free [11:27:45]json_value_free done [11:27:45]process_json_proto returns [11:27:45]Send response to host [11:27:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31740,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [11:27:45]free response buf [11:27:45]execute_script done [11:27:45]execute_script returns [11:27:45]free content buf [11:27:45]Sock 7.Close socket [11:27:45]Sock 7.Thread stoped [11:27:49]OFD Sender: No OFD packet to send [11:27:54]OFD Sender: No OFD packet to send [11:27:59]OFD Sender: No OFD packet to send [11:28:04]OFD Sender: No OFD packet to send [11:28:09]OFD Sender: No OFD packet to send [11:28:14]OFD Sender: No OFD packet to send [11:28:19]OFD Sender: No OFD packet to send [11:28:24]OFD Sender: No OFD packet to send [11:28:29]OFD Sender: No OFD packet to send [11:28:34]OFD Sender: No OFD packet to send [11:28:39]OFD Sender: No OFD packet to send [11:28:44]OFD Sender: No OFD packet to send [11:28:49]OFD Sender: No OFD packet to send [11:28:54]OFD Sender: No OFD packet to send [11:28:59]OFD Sender: No OFD packet to send [11:29:04]OFD Sender: No OFD packet to send [11:29:09]OFD Sender: No OFD packet to send [11:29:14]OFD Sender: No OFD packet to send [11:29:19]OFD Sender: No OFD packet to send [11:29:24]OFD Sender: No OFD packet to send [11:29:29]OFD Sender: No OFD packet to send [11:29:34]OFD Sender: No OFD packet to send [11:29:39]OFD Sender: No OFD packet to send [11:29:44]OFD Sender: No OFD packet to send [11:29:49]OFD Sender: No OFD packet to send [11:29:54]OFD Sender: No OFD packet to send [11:29:59]OFD Sender: No OFD packet to send [11:30:04]OFD Sender: No OFD packet to send [11:30:09]OFD Sender: No OFD packet to send [11:30:14]OFD Sender: No OFD packet to send [11:30:19]OFD Sender: No OFD packet to send [11:30:24]OFD Sender: No OFD packet to send [11:30:29]OFD Sender: No OFD packet to send [11:30:34]OFD Sender: No OFD packet to send [11:30:39]OFD Sender: No OFD packet to send [11:30:44]OFD Sender: No OFD packet to send [11:30:49]OFD Sender: No OFD packet to send [11:30:54]OFD Sender: No OFD packet to send [11:30:59]OFD Sender: No OFD packet to send [11:31:04]OFD Sender: No OFD packet to send [11:31:09]OFD Sender: No OFD packet to send [11:31:14]OFD Sender: No OFD packet to send [11:31:19]OFD Sender: No OFD packet to send [11:31:24]OFD Sender: No OFD packet to send [11:31:29]OFD Sender: No OFD packet to send [11:31:34]OFD Sender: No OFD packet to send [11:31:39]OFD Sender: No OFD packet to send [11:31:44]OFD Sender: No OFD packet to send [11:31:49]OFD Sender: No OFD packet to send [11:31:54]OFD Sender: No OFD packet to send [11:31:59]OFD Sender: No OFD packet to send [11:32:04]OFD Sender: No OFD packet to send [11:32:09]OFD Sender: No OFD packet to send [11:32:14]OFD Sender: No OFD packet to send [11:32:19]OFD Sender: No OFD packet to send [11:32:24]OFD Sender: No OFD packet to send [11:32:29]OFD Sender: No OFD packet to send [11:32:34]OFD Sender: No OFD packet to send [11:32:39]OFD Sender: No OFD packet to send [11:32:44]OFD Sender: No OFD packet to send [11:32:49]OFD Sender: No OFD packet to send [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:09]OFD Sender: No OFD packet to send [11:33:14]OFD Sender: No OFD packet to send [11:33:19]OFD Sender: No OFD packet to send [11:33:24]OFD Sender: No OFD packet to send [11:33:29]OFD Sender: No OFD packet to send [11:33:34]OFD Sender: No OFD packet to send [11:33:39]OFD Sender: No OFD packet to send [11:33:44]OFD Sender: No OFD packet to send [11:33:49]OFD Sender: No OFD packet to send [11:33:54]OFD Sender: No OFD packet to send [11:33:59]OFD Sender: No OFD packet to send [11:34:04]OFD Sender: No OFD packet to send [11:34:09]OFD Sender: No OFD packet to send [11:34:14]OFD Sender: No OFD packet to send [11:34:19]OFD Sender: No OFD packet to send [11:34:24]OFD Sender: No OFD packet to send [11:34:29]OFD Sender: No OFD packet to send [11:34:34]OFD Sender: No OFD packet to send [11:34:39]OFD Sender: No OFD packet to send [11:34:44]OFD Sender: No OFD packet to send [11:34:49]OFD Sender: No OFD packet to send [11:34:54]OFD Sender: No OFD packet to send [11:34:59]OFD Sender: No OFD packet to send [11:35:04]OFD Sender: No OFD packet to send [11:35:09]OFD Sender: No OFD packet to send [11:35:14]OFD Sender: No OFD packet to send [11:35:19]OFD Sender: No OFD packet to send [11:35:24]OFD Sender: No OFD packet to send [11:35:29]OFD Sender: No OFD packet to send [11:35:34]OFD Sender: No OFD packet to send [11:35:39]OFD Sender: No OFD packet to send [11:35:44]OFD Sender: No OFD packet to send [11:35:49]OFD Sender: No OFD packet to send [11:35:54]OFD Sender: No OFD packet to send [11:35:59]OFD Sender: No OFD packet to send [11:36:04]OFD Sender: No OFD packet to send [11:36:09]OFD Sender: No OFD packet to send [11:36:14]OFD Sender: No OFD packet to send [11:36:19]OFD Sender: No OFD packet to send [11:36:24]OFD Sender: No OFD packet to send [11:36:29]OFD Sender: No OFD packet to send [11:36:34]OFD Sender: No OFD packet to send [11:36:39]OFD Sender: No OFD packet to send [11:36:44]OFD Sender: No OFD packet to send [11:36:49]OFD Sender: No OFD packet to send [11:36:54]OFD Sender: No OFD packet to send [11:36:59]OFD Sender: No OFD packet to send [11:37:04]OFD Sender: No OFD packet to send [11:37:09]OFD Sender: No OFD packet to send [11:37:14]OFD Sender: No OFD packet to send [11:37:19]OFD Sender: No OFD packet to send [11:37:24]OFD Sender: No OFD packet to send [11:37:29]OFD Sender: No OFD packet to send [11:37:34]OFD Sender: No OFD packet to send [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [11:44:00]OFD Sender: No OFD packet to send [11:44:05]OFD Sender: No OFD packet to send [11:44:10]OFD Sender: No OFD packet to send [11:44:15]OFD Sender: No OFD packet to send [11:44:20]OFD Sender: No OFD packet to send [11:44:25]OFD Sender: No OFD packet to send [11:44:30]OFD Sender: No OFD packet to send [11:44:35]OFD Sender: No OFD packet to send [11:44:40]OFD Sender: No OFD packet to send [11:44:45]OFD Sender: No OFD packet to send [11:44:50]OFD Sender: No OFD packet to send [11:44:55]OFD Sender: No OFD packet to send [11:45:00]OFD Sender: No OFD packet to send [11:45:05]OFD Sender: No OFD packet to send [11:45:10]OFD Sender: No OFD packet to send [11:45:15]OFD Sender: No OFD packet to send [11:45:20]OFD Sender: No OFD packet to send [11:45:25]OFD Sender: No OFD packet to send [11:45:30]OFD Sender: No OFD packet to send [11:45:35]OFD Sender: No OFD packet to send [11:45:40]OFD Sender: No OFD packet to send [11:45:45]OFD Sender: No OFD packet to send [11:45:50]OFD Sender: No OFD packet to send [11:45:55]OFD Sender: No OFD packet to send [11:46:00]OFD Sender: No OFD packet to send [11:46:05]OFD Sender: No OFD packet to send [11:46:10]OFD Sender: No OFD packet to send [11:46:15]OFD Sender: No OFD packet to send [11:46:20]OFD Sender: No OFD packet to send [11:46:25]OFD Sender: No OFD packet to send [11:46:30]OFD Sender: No OFD packet to send [11:46:35]OFD Sender: No OFD packet to send [11:46:40]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:55]OFD Sender: No OFD packet to send [11:47:00]OFD Sender: No OFD packet to send [11:47:05]OFD Sender: No OFD packet to send [11:47:10]OFD Sender: No OFD packet to send [11:47:15]OFD Sender: No OFD packet to send [11:47:20]OFD Sender: No OFD packet to send [11:47:25]OFD Sender: No OFD packet to send [11:47:30]OFD Sender: No OFD packet to send [11:47:35]OFD Sender: No OFD packet to send [11:47:40]OFD Sender: No OFD packet to send [11:47:45]OFD Sender: No OFD packet to send [11:47:50]OFD Sender: No OFD packet to send [11:47:55]OFD Sender: No OFD packet to send [11:48:00]OFD Sender: No OFD packet to send [11:48:05]OFD Sender: No OFD packet to send [11:48:10]OFD Sender: No OFD packet to send [11:48:15]OFD Sender: No OFD packet to send [11:48:20]OFD Sender: No OFD packet to send [11:48:25]OFD Sender: No OFD packet to send [11:48:30]OFD Sender: No OFD packet to send [11:48:35]OFD Sender: No OFD packet to send [11:48:40]OFD Sender: No OFD packet to send [11:48:45]OFD Sender: No OFD packet to send [11:48:50]OFD Sender: No OFD packet to send [11:48:55]OFD Sender: No OFD packet to send [11:49:00]OFD Sender: No OFD packet to send [11:49:05]OFD Sender: No OFD packet to send [11:49:10]OFD Sender: No OFD packet to send [11:49:15]OFD Sender: No OFD packet to send [11:49:20]OFD Sender: No OFD packet to send [11:49:25]OFD Sender: No OFD packet to send [11:49:30]OFD Sender: No OFD packet to send [11:49:35]OFD Sender: No OFD packet to send [11:49:40]OFD Sender: No OFD packet to send [11:49:45]OFD Sender: No OFD packet to send [11:49:50]OFD Sender: No OFD packet to send [11:49:55]OFD Sender: No OFD packet to send [11:50:00]OFD Sender: No OFD packet to send [11:50:05]OFD Sender: No OFD packet to send [11:50:10]OFD Sender: No OFD packet to send [11:50:15]OFD Sender: No OFD packet to send [11:50:20]OFD Sender: No OFD packet to send [11:50:25]OFD Sender: No OFD packet to send [11:50:30]OFD Sender: No OFD packet to send [11:50:35]OFD Sender: No OFD packet to send [11:50:40]OFD Sender: No OFD packet to send [11:50:45]OFD Sender: No OFD packet to send [11:50:50]OFD Sender: No OFD packet to send [11:50:55]OFD Sender: No OFD packet to send [11:51:00]OFD Sender: No OFD packet to send [11:51:05]OFD Sender: No OFD packet to send [11:51:10]OFD Sender: No OFD packet to send [11:51:15]OFD Sender: No OFD packet to send [11:51:20]OFD Sender: No OFD packet to send [11:51:25]OFD Sender: No OFD packet to send [11:51:30]OFD Sender: No OFD packet to send [11:51:35]OFD Sender: No OFD packet to send [11:51:40]OFD Sender: No OFD packet to send [11:51:45]OFD Sender: No OFD packet to send [11:51:50]OFD Sender: No OFD packet to send [11:51:55]OFD Sender: No OFD packet to send [11:52:00]OFD Sender: No OFD packet to send [11:52:05]OFD Sender: No OFD packet to send [11:52:10]OFD Sender: No OFD packet to send [11:52:15]OFD Sender: No OFD packet to send [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:15]OFD Sender: No OFD packet to send [11:53:20]OFD Sender: No OFD packet to send [11:53:25]OFD Sender: No OFD packet to send [11:53:30]OFD Sender: No OFD packet to send [11:53:35]OFD Sender: No OFD packet to send [11:53:40]OFD Sender: No OFD packet to send [11:53:45]OFD Sender: No OFD packet to send [11:53:50]OFD Sender: No OFD packet to send [11:53:55]OFD Sender: No OFD packet to send [11:54:00]OFD Sender: No OFD packet to send [11:54:05]OFD Sender: No OFD packet to send [11:54:10]OFD Sender: No OFD packet to send [11:54:15]OFD Sender: No OFD packet to send [11:54:20]OFD Sender: No OFD packet to send [11:54:25]OFD Sender: No OFD packet to send [11:54:30]OFD Sender: No OFD packet to send [11:54:35]OFD Sender: No OFD packet to send [11:54:40]OFD Sender: No OFD packet to send [11:54:45]OFD Sender: No OFD packet to send [11:54:50]OFD Sender: No OFD packet to send [11:54:55]OFD Sender: No OFD packet to send [11:55:00]OFD Sender: No OFD packet to send [11:55:05]OFD Sender: No OFD packet to send [11:55:10]OFD Sender: No OFD packet to send [11:55:15]OFD Sender: No OFD packet to send [11:55:20]OFD Sender: No OFD packet to send [11:55:25]OFD Sender: No OFD packet to send [11:55:30]OFD Sender: No OFD packet to send [11:55:35]OFD Sender: No OFD packet to send [11:55:40]OFD Sender: No OFD packet to send [11:55:45]OFD Sender: No OFD packet to send [11:55:50]OFD Sender: No OFD packet to send [11:55:55]OFD Sender: No OFD packet to send [11:56:00]OFD Sender: No OFD packet to send [11:56:05]OFD Sender: No OFD packet to send [11:56:10]OFD Sender: No OFD packet to send [11:56:15]OFD Sender: No OFD packet to send [11:56:20]OFD Sender: No OFD packet to send [11:56:25]OFD Sender: No OFD packet to send [11:56:30]OFD Sender: No OFD packet to send [11:56:35]OFD Sender: No OFD packet to send [11:56:40]OFD Sender: No OFD packet to send [11:56:45]OFD Sender: No OFD packet to send [11:56:50]OFD Sender: No OFD packet to send [11:56:55]OFD Sender: No OFD packet to send [11:57:00]OFD Sender: No OFD packet to send [11:57:05]OFD Sender: No OFD packet to send [11:57:10]OFD Sender: No OFD packet to send [11:57:15]OFD Sender: No OFD packet to send [11:57:20]OFD Sender: No OFD packet to send [11:57:25]OFD Sender: No OFD packet to send [11:57:30]OFD Sender: No OFD packet to send [11:57:35]OFD Sender: No OFD packet to send [11:57:40]OFD Sender: No OFD packet to send [11:57:45]OFD Sender: No OFD packet to send [11:57:50]OFD Sender: No OFD packet to send [11:57:55]OFD Sender: No OFD packet to send [11:58:00]OFD Sender: No OFD packet to send [11:58:05]OFD Sender: No OFD packet to send [11:58:10]OFD Sender: No OFD packet to send [11:58:15]OFD Sender: No OFD packet to send [11:58:20]OFD Sender: No OFD packet to send [11:58:25]OFD Sender: No OFD packet to send [11:58:30]OFD Sender: No OFD packet to send [11:58:35]OFD Sender: No OFD packet to send [11:58:40]OFD Sender: No OFD packet to send [11:58:45]OFD Sender: No OFD packet to send [11:58:50]OFD Sender: No OFD packet to send [11:58:55]OFD Sender: No OFD packet to send [11:59:00]OFD Sender: No OFD packet to send [11:59:05]OFD Sender: No OFD packet to send [11:59:10]OFD Sender: No OFD packet to send [11:59:15]OFD Sender: No OFD packet to send [11:59:20]OFD Sender: No OFD packet to send [11:59:25]OFD Sender: No OFD packet to send [11:59:30]OFD Sender: No OFD packet to send [11:59:35]OFD Sender: No OFD packet to send [11:59:40]OFD Sender: No OFD packet to send [11:59:45]OFD Sender: No OFD packet to send [11:59:50]OFD Sender: No OFD packet to send [11:59:55]OFD Sender: No OFD packet to send [12:00:00]OFD Sender: No OFD packet to send [12:00:05]OFD Sender: No OFD packet to send [12:00:10]OFD Sender: No OFD packet to send [12:00:15]OFD Sender: No OFD packet to send [12:00:20]OFD Sender: No OFD packet to send [12:00:25]OFD Sender: No OFD packet to send [12:00:30]OFD Sender: No OFD packet to send [12:00:35]OFD Sender: No OFD packet to send [12:00:40]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:17]accept exits with 9 [12:03:17]New connection [12:03:17]New thread 3066965348 created [12:03:17]Thread 3066821988 joined [12:03:17]Waiting for new connection... [12:03:17] Sock 9.Parse request [12:03:17]Sock 9.Check first char [12:03:17]Sock 9.First char is OK [12:03:17]request: POST /json_proto HTTP/1.0 [12:03:17]Method: POST [12:03:17]URL: /json_proto [12:03:17]Method is POST - this is cgi request [12:03:17]url: /json_proto [12:03:17]query_string will be loaded in cgi processing [12:03:17]execute_cgi json_proto POST (null) [12:03:17]execute_cgi path=json_proto method=POST [12:03:17]POST find Content-Length [12:03:17]Host: 172.17.39.68:8080 [12:03:17]Content-Length: 631 [12:03:17]Content-Type: application/json [12:03:17] [12:03:17]POST finish read [12:03:17]Found Content-Length = 631 [12:03:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214322", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:17]execute_script... [12:03:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214322", "tax_sys" : 0, "items" : [ { "code": "4640030092567", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Esse Exchange Summer Red", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:03:17]POST & json_proto [12:03:17]process_json_proto [12:03:17]json parsed OK: [12:03:17]protocol is kg_v1.0 [12:03:17]action value=close_receipt [12:03:17]process_action close_receipt [12:03:17]cmd_close_receipt [12:03:17]MH_GetDate [12:03:17]Write to MH i2c: F0 00 00 1F 1D 2B [12:03:17]Write i2c OK [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: F0 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: F0 09 00 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: F0 09 00 1F 1D 00 89 61 96 66 D6 48 95 66 33 [12:03:17]GetLastDocTimeStamp 1721129265 [12:03:17]current date 1721131401 [12:03:17]FM_GetShiftState [12:03:17]SAM_PROTO_GetShiftState [12:03:17]wFMCommunicate request_size=4 [12:03:17]MH_SAM_APDU [12:03:17]CAPDU: 80 13 01 00 [12:03:17]Write to MH i2c: E2 08 00 20 1D 80 13 01 00 00 00 00 00 BA [12:03:17]Write i2c OK [12:03:17]MH_I2C_Read... [12:03:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:17]Read from MH i2c: E2 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: E2 0E 00 [12:03:17]MH_I2C_Read... [12:03:17]Read from MH i2c: E2 0E 00 20 1D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 09 [12:03:17]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:03:17]wFMCommunicate OK [12:03:17]SAM_PROTO_GetShiftState done [12:03:17]FM_GetShiftState done [12:03:17]opened in 1721088399 [12:03:17]opened+sec_in_day 1721174799 [12:03:17]quantity*price = 13800 [12:03:17]sum+1 = 13801 [12:03:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 60 16.07.2024 12:03 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31741 ФПД: 124639586804013 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T120321&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31741&fm=124639586804013&tin=02508201610067®Number=0000000000098025&sum=13800 0 [12:03:18]StoreToDocumentArchive [12:03:18]shift 371 fd 31741 [12:03:18]save to /storage/0371/doc_00031741 [12:03:18]save last doc name /storage/0371/doc_00031741 to /storage/kkm_last_doc_name [12:03:18]save OK [12:03:18]Clear old archive folders... [12:03:18]ProcessDocumentItem done err = 0, tmpTLVsize=283 [12:03:18]tlvbuf is 0151C090 [12:03:18]SAM_PROTO_ClearQueue [12:03:18]wFMCommunicate request_size=4 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 09 00 00 [12:03:18]Write to MH i2c: E2 08 00 2D 1D 80 09 00 00 00 00 00 00 BC [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:03:18]Read from MH i2c: E2 03 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 2D 1D 00 90 00 BE [12:03:18]RAPDU: 90 00 [12:03:18]wFMCommunicate OK [12:03:18]SAM_PROTO_ClearQueue done [12:03:18]KKMCreateOFDPacket [12:03:18]OFDProtocolAddRootSTLVToBuf [12:03:18]FM_MakeSignedData [12:03:18]FM_MakeSignedData [12:03:18]SAM_PROTO_SignData [12:03:18]wFMCommunicate request_size=4 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 0D 01 02 [12:03:18]Write to MH i2c: E2 08 00 2E 1D 80 0D 01 02 00 00 00 00 C4 [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:03:18]Read from MH i2c: E2 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 [12:03:18]MH_I2C_Read... [12:03:18]Read from MH i2c: E2 03 00 2E 1D 00 90 00 BF [12:03:18]RAPDU: 90 00 [12:03:18]wFMCommunicate OK [12:03:18]wFMCommunicate request_size=255 [12:03:18]MH_SAM_APDU [12:03:18]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 89 61 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 [12:03:18]Write to MH i2c: E2 02 01 2F 1D 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 89 61 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 00 00 48 [12:03:18]Write i2c OK [12:03:18]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 2F 1D 00 90 00 C0 [12:03:19]RAPDU: 90 00 [12:03:19]wFMCommunicate OK [12:03:19]wFMCommunicate request_size=42 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FD 7B 00 00 35 04 06 00 71 5B EA 4B E1 2D [12:03:19]Write to MH i2c: E2 2D 00 30 1D 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FD 7B 00 00 35 04 06 00 71 5B EA 4B E1 2D 00 00 2B [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 03 00 30 1D 00 90 00 C1 [12:03:19]RAPDU: 90 00 [12:03:19]wFMCommunicate OK [12:03:19]wFMCommunicate request_size=4 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 0D 03 02 [12:03:19]Write to MH i2c: E2 08 00 31 1D 80 0D 03 02 00 00 00 00 C9 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 0B 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 0B 00 31 1D 00 B7 58 DA 3E 99 E3 80 4A 90 00 37 [12:03:19]RAPDU: B7 58 DA 3E 99 E3 80 4A 90 00 [12:03:19]wFMCommunicate OK [12:03:19]SAM_PROTO_SignData done [12:03:19]FM_MakeSignedData done [12:03:19]CreateOFDProtocolMessage [12:03:19]wFMCommunicate request_size=4 [12:03:19]MH_SAM_APDU [12:03:19]CAPDU: 80 11 00 00 [12:03:19]Write to MH i2c: E2 08 00 32 1D 80 11 00 00 00 00 00 00 C9 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:19]Read from MH i2c: E2 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 17 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: E2 17 00 32 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 24 [12:03:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:03:19]wFMCommunicate OK [12:03:19]CreateOFDProtocolMessage done [12:03:19]OFDSenderStorePacket 31741 [12:03:19]StoreOFDPacket docnum=31741 [12:03:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2F 01 00 00 41 9C 27 01 08 02 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 89 61 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FD 7B 00 00 35 04 06 00 71 5B EA 4B E1 2D B7 58 DA 3E 99 E3 80 4A [12:03:19]CheckFolder [12:03:19]dirname=/storage/ofd_packets [12:03:19]CheckFolder done [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00031741 [12:03:19]NVStorageSaveData ofd_packets/00031741 [12:03:19]File name is /storage/ofd_packets/00031741 [12:03:19]Write 333 bytes [12:03:19]NVStorageSaveData done [12:03:19]OFDSenderStorePacket done [12:03:19]KKMCreateOFDPacket done [12:03:19]NVStorageSaveData kkm_last_timestamp [12:03:19]File name is /storage/kkm_last_timestamp [12:03:19]Write 4 bytes [12:03:19]NVStorageSaveData done [12:03:19]ExternCall_PrintAddStr [12:03:19]wPrintStart [12:03:19]Write to MH i2c: 01 00 00 33 1D 50 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 07 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 07 00 33 1D 00 00 00 00 00 FF 0F 65 [12:03:19]RasterBufferAndPrint [12:03:19]line Счет N : (3)214322 [12:03:19]line ИНН: 02508201610067 [12:03:19]line Контрольно-Кассовый Чек [12:03:19]line ПРОДАЖА [12:03:19]line Товар: 4640030092567 [12:03:19]line Сигареты Esse Exchange Summer Red [12:03:19]line 1.000 * 138.00 [12:03:19]line = 138.00 [12:03:19]line НДС 12% НСП 1% [12:03:19]line > о реализуемом товаре [12:03:19]line ИТОГО: 138.00 [12:03:19]line НСП 1% : 1.22 [12:03:19]line НДС 12% : 14.65 [12:03:19]line Наличными: 138.00 [12:03:19]line Безнал.: 0.00 [12:03:19]line Место: АЗС № 140 "Партнер Нефть" [12:03:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:03:19]line СНО: Общий режим [12:03:19]line Чек 60 16.07.2024 12:03 [12:03:19]line Смена: 371 ФФД: 1.0 [12:03:19]line ЗНМ: 0300000189 [12:03:19]line РНМ: 0000000000098025 [12:03:19]line Версия ККМ: 001 [12:03:19]line ФМ: 0000000000965389 [12:03:19]line ФД: 31741 [12:03:19]line ФПД: 124639586804013 [12:03:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T120321&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31741&fm=124639586804013&tin=02508201610067®Number=0000000000098025&sum=13800 [12:03:19]line 0 [12:03:19]OFD Sender: Processing packet 31741 [packets to send 6, broken 5] [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00031741 [12:03:19]OFD Sender: To server: pG, [12:03:19]CommunicateWithHost lk.salyk.kg:30040 [12:03:19]ConnectInit lk.salyk.kg [12:03:19]written 0, free lines is 4095 [12:03:19]Connected sock=10 [12:03:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2F 01 00 00 41 9C 27 01 08 02 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 32 35 36 37 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 73 73 65 20 45 78 63 68 61 6E 67 65 20 53 75 6D 6D 65 72 20 52 65 64 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 89 61 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FD 7B 00 00 35 04 06 00 71 5B EA 4B E1 2D B7 58 DA 3E 99 E3 80 4A [12:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 EE 07 47 00 96 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 35 33 38 39 10 04 04 00 FD 7B 00 00 F4 03 04 00 97 0D 96 66 B6 04 01 00 00 86 AC 3A 2D 3A CD CC BF [12:03:19]CommunicateWithHost err = 0 [12:03:19]CheckOFDResponse [12:03:19]1017 (14) - 77093643461234 [12:03:19]1041 (16) - 0000000000965389 [12:03:19]1040 (4) - 31741 [12:03:19]1012 (4) - 16.07.2024 06:05 [12:03:19]1206 (1) - 0 [12:03:19]OFD Sender: Remove packet 31741 [12:03:19]ProducePacketName [12:03:19]name=ofd_packets/00031741 [12:03:19]NVStorageDeleteData [12:03:19]Write to MH i2c: 01 00 00 5C 1D 79 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 07 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: 01 07 00 5C 1D 00 00 00 00 00 E5 0C 71 [12:03:19]RasterBufferAndPrint [12:03:19]line [12:03:19]line [12:03:19]line [12:03:19]line [12:03:19]line [12:03:19]written 0, free lines is 3310 [12:03:19]MH_Cut [12:03:19]Write to MH i2c: D1 01 00 63 1D 01 52 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: D1 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: D1 01 00 [12:03:19]MH_I2C_Read... [12:03:19]Read from MH i2c: D1 01 00 63 1D 00 51 [12:03:19]Write to MH i2c: 01 00 00 64 1D 81 [12:03:19]Write i2c OK [12:03:19]MH_I2C_Read... [12:03:20]OFD Sender: No OFD packet to send [12:03:20]*** Cut start [12:03:20]*** Partial cut [12:03:20]*** CUTSNS_PIN = 1 [12:03:20]*** CUTSNS_PIN = 0 [12:03:21]*** Brake cut motor [12:03:21]Read from MH i2c: 01 [12:03:21]MH_I2C_Read... [12:03:21]*** Stop cut motor [12:03:21]*** Cut end [12:03:21]Read from MH i2c: 01 07 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: 01 07 00 64 1D 00 00 00 00 00 FF 0F 96 [12:03:21]process_action close_receipt done [12:03:21]requested_data is exist [12:03:21]produce_requested_data [12:03:21]requested_item fm.sn is exist - process it [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 11 00 00 [12:03:21]Write to MH i2c: E2 08 00 65 1D 80 11 00 00 00 00 00 00 FC [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 17 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 17 00 65 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 57 [12:03:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:03:21]wFMCommunicate OK [12:03:21]requested_item fd.num is exist - process it [12:03:21]SAM_PROTO_GetFieldsCounters [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 13 00 00 [12:03:21]Write to MH i2c: E2 08 00 66 1D 80 13 00 00 00 00 00 00 FF [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 62 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 62 00 66 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FD 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [12:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FD 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_GetFieldsCounters done [12:03:21]requested_item shift.num is exist - process it [12:03:21]requested_item shift.opened is exist - process it [12:03:21]req_shift_opened [12:03:21]FM_GetShiftState [12:03:21]SAM_PROTO_GetShiftState [12:03:21]wFMCommunicate request_size=4 [12:03:21]MH_SAM_APDU [12:03:21]CAPDU: 80 13 01 00 [12:03:21]Write to MH i2c: E2 08 00 67 1D 80 13 01 00 00 00 00 00 01 [12:03:21]Write i2c OK [12:03:21]MH_I2C_Read... [12:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:03:21]Read from MH i2c: E2 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 0E 00 [12:03:21]MH_I2C_Read... [12:03:21]Read from MH i2c: E2 0E 00 67 1D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 50 [12:03:21]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:03:21]wFMCommunicate OK [12:03:21]SAM_PROTO_GetShiftState done [12:03:21]FM_GetShiftState done [12:03:21]req_shift_opened done [12:03:21]requested_item shift.open_date is exist - process it [12:03:21]req_shift_open_date [12:03:21]req_shift_open_date done [12:03:21]produce_requested_data done [12:03:21]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31741,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:03:21]process_action_free close_receipt [12:03:21]json_value_free [12:03:21]json_value_free done [12:03:21]process_json_proto returns [12:03:21]Send response to host [12:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31741,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:03:21]free response buf [12:03:21]execute_script done [12:03:21]execute_script returns [12:03:21]free content buf [12:03:21]Sock 9.Close socket [12:03:21]Sock 9.Thread stoped [12:03:25]OFD Sender: No OFD packet to send [12:03:30]OFD Sender: No OFD packet to send [12:03:35]OFD Sender: No OFD packet to send [12:03:40]OFD Sender: No OFD packet to send [12:03:45]OFD Sender: No OFD packet to send [12:03:50]OFD Sender: No OFD packet to send [12:03:55]OFD Sender: No OFD packet to send [12:04:00]OFD Sender: No OFD packet to send [12:04:05]OFD Sender: No OFD packet to send [12:04:10]OFD Sender: No OFD packet to send [12:04:15]OFD Sender: No OFD packet to send [12:04:20]OFD Sender: No OFD packet to send [12:04:25]OFD Sender: No OFD packet to send [12:04:30]OFD Sender: No OFD packet to send [12:04:35]OFD Sender: No OFD packet to send [12:04:40]OFD Sender: No OFD packet to send [12:04:45]OFD Sender: No OFD packet to send [12:04:50]OFD Sender: No OFD packet to send [12:04:55]OFD Sender: No OFD packet to send [12:05:00]OFD Sender: No OFD packet to send [12:05:05]OFD Sender: No OFD packet to send [12:05:10]OFD Sender: No OFD packet to send [12:05:15]OFD Sender: No OFD packet to send [12:05:20]OFD Sender: No OFD packet to send [12:05:25]OFD Sender: No OFD packet to send [12:05:30]OFD Sender: No OFD packet to send [12:05:35]OFD Sender: No OFD packet to send [12:05:40]OFD Sender: No OFD packet to send [12:05:45]OFD Sender: No OFD packet to send [12:05:50]OFD Sender: No OFD packet to send [12:05:55]OFD Sender: No OFD packet to send [12:06:00]OFD Sender: No OFD packet to send [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:25]OFD Sender: No OFD packet to send [12:07:30]OFD Sender: No OFD packet to send [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:07:58]accept exits with 7 [12:07:58]New connection [12:07:58]New thread 3066821988 created [12:07:58]Thread 3066965348 joined [12:07:58]Waiting for new connection... [12:07:58] Sock 7.Parse request [12:07:58]Sock 7.Check first char [12:07:58]Sock 7.First char is OK [12:07:58]request: POST /json_proto HTTP/1.0 [12:07:58]Method: POST [12:07:58]URL: /json_proto [12:07:58]Method is POST - this is cgi request [12:07:58]url: /json_proto [12:07:58]query_string will be loaded in cgi processing [12:07:58]execute_cgi json_proto POST (null) [12:07:58]execute_cgi path=json_proto method=POST [12:07:58]POST find Content-Length [12:07:58]Host: 172.17.39.68:8080 [12:07:58]Content-Length: 933 [12:07:58]Content-Type: application/json [12:07:58] [12:07:58]POST finish read [12:07:58]Found Content-Length = 933 [12:07:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214323", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:58]execute_script... [12:07: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)214323", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 110.00, "quantity" : 1.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:58]POST & json_proto [12:07:58]process_json_proto [12:07:58]json parsed OK: [12:07:58]protocol is kg_v1.0 [12:07:58]action value=close_receipt [12:07:58]process_action close_receipt [12:07:58]cmd_close_receipt [12:07:58]MH_GetDate [12:07:58]Write to MH i2c: F0 00 00 68 1D 74 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: F0 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: F0 09 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: F0 09 00 68 1D 00 A3 62 96 66 D6 48 95 66 97 [12:07:58]GetLastDocTimeStamp 1721131401 [12:07:58]current date 1721131683 [12:07:58]FM_GetShiftState [12:07:58]SAM_PROTO_GetShiftState [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 13 01 00 [12:07:58]Write to MH i2c: E2 08 00 69 1D 80 13 01 00 00 00 00 00 03 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0E 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0E 00 69 1D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 52 [12:07:58]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:07:58]wFMCommunicate OK [12:07:58]SAM_PROTO_GetShiftState done [12:07:58]FM_GetShiftState done [12:07:58]opened in 1721088399 [12:07:58]opened+sec_in_day 1721174799 [12:07:58]quantity*price = 11000 [12:07:58]sum+1 = 11001 [12:07:58]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 61 16.07.2024 12:08 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31742 ФПД: 115655081709416 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T120803&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31742&fm=115655081709416&tin=02508201610067®Number=0000000000098025&sum=25000 0 [12:07:59]StoreToDocumentArchive [12:07:59]shift 371 fd 31742 [12:07:59]save to /storage/0371/doc_00031742 [12:07:59]save last doc name /storage/0371/doc_00031742 to /storage/kkm_last_doc_name [12:07:59]save OK [12:07:59]Clear old archive folders... [12:07:59]ProcessDocumentItem done err = 0, tmpTLVsize=399 [12:07:59]tlvbuf is 0149B8B0 [12:07:59]SAM_PROTO_ClearQueue [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 09 00 00 [12:07:59]Write to MH i2c: E2 08 00 76 1D 80 09 00 00 00 00 00 00 05 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 76 1D 00 90 00 07 [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]SAM_PROTO_ClearQueue done [12:07:59]KKMCreateOFDPacket [12:07:59]OFDProtocolAddRootSTLVToBuf [12:07:59]FM_MakeSignedData [12:07:59]FM_MakeSignedData [12:07:59]SAM_PROTO_SignData [12:07:59]wFMCommunicate request_size=4 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 01 02 [12:07:59]Write to MH i2c: E2 08 00 77 1D 80 0D 01 02 00 00 00 00 0D [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:59]Read from MH i2c: E2 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: E2 03 00 77 1D 00 90 00 08 [12:07:59]RAPDU: 90 00 [12:07:59]wFMCommunicate OK [12:07:59]wFMCommunicate request_size=255 [12:07:59]MH_SAM_APDU [12:07:59]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 A8 61 00 00 00 00 EB 03 [12:07:59]Write to MH i2c: E2 02 01 78 1D 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 A8 61 00 00 00 00 EB 03 00 00 F6 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:00]Read from MH i2c: E2 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 03 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 03 00 78 1D 00 90 00 09 [12:08:00]RAPDU: 90 00 [12:08:00]wFMCommunicate OK [12:08:00]wFMCommunicate request_size=158 [12:08:00]MH_SAM_APDU [12:08:00]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A3 62 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FE 7B 00 00 35 04 06 00 69 30 0C 0F CF 68 [12:08:00]Write to MH i2c: E2 A1 00 79 1D 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A3 62 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FE 7B 00 00 35 04 06 00 69 30 0C 0F CF 68 00 00 FD [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:08:00]Read from MH i2c: E2 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 03 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 03 00 79 1D 00 90 00 0A [12:08:00]RAPDU: 90 00 [12:08:00]wFMCommunicate OK [12:08:00]wFMCommunicate request_size=4 [12:08:00]MH_SAM_APDU [12:08:00]CAPDU: 80 0D 03 02 [12:08:00]Write to MH i2c: E2 08 00 7A 1D 80 0D 03 02 00 00 00 00 12 [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:08:00]Read from MH i2c: E2 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 0B 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 0B 00 7A 1D 00 68 64 1C E0 AB 1F 27 2A 90 00 F6 [12:08:00]RAPDU: 68 64 1C E0 AB 1F 27 2A 90 00 [12:08:00]wFMCommunicate OK [12:08:00]SAM_PROTO_SignData done [12:08:00]FM_MakeSignedData done [12:08:00]CreateOFDProtocolMessage [12:08:00]wFMCommunicate request_size=4 [12:08:00]MH_SAM_APDU [12:08:00]CAPDU: 80 11 00 00 [12:08:00]Write to MH i2c: E2 08 00 7B 1D 80 11 00 00 00 00 00 00 12 [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:00]Read from MH i2c: E2 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 17 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: E2 17 00 7B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6D [12:08:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:08:00]wFMCommunicate OK [12:08:00]CreateOFDProtocolMessage done [12:08:00]OFDSenderStorePacket 31742 [12:08:00]StoreOFDPacket docnum=31742 [12:08:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A3 01 00 00 CC 38 9B 01 BB E3 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A3 62 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FE 7B 00 00 35 04 06 00 69 30 0C 0F CF 68 68 64 1C E0 AB 1F 27 2A [12:08:00]CheckFolder [12:08:00]dirname=/storage/ofd_packets [12:08:00]CheckFolder done [12:08:00]ProducePacketName [12:08:00]name=ofd_packets/00031742 [12:08:00]NVStorageSaveData ofd_packets/00031742 [12:08:00]File name is /storage/ofd_packets/00031742 [12:08:00]Write 449 bytes [12:08:00]NVStorageSaveData done [12:08:00]OFDSenderStorePacket done [12:08:00]KKMCreateOFDPacket done [12:08:00]NVStorageSaveData kkm_last_timestamp [12:08:00]File name is /storage/kkm_last_timestamp [12:08:00]Write 4 bytes [12:08:00]NVStorageSaveData done [12:08:00]ExternCall_PrintAddStr [12:08:00]wPrintStart [12:08:00]Write to MH i2c: 01 00 00 7C 1D 99 [12:08:00]Write i2c OK [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: 01 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: 01 07 00 [12:08:00]MH_I2C_Read... [12:08:00]Read from MH i2c: 01 07 00 7C 1D 00 00 00 00 00 FF 0F AE [12:08:00]RasterBufferAndPrint [12:08:00]line Счет N : (3)214323 [12:08:00]line ИНН: 02508201610067 [12:08:00]line Контрольно-Кассовый Чек [12:08:00]line ПРОДАЖА [12:08:00]line Товар: 4870202521261 [12:08:00]line Напиток MAXI чай 1,2 лесные ягоды [12:08:00]line 1.000 * 110.00 [12:08:00]line = 110.00 [12:08:00]line НДС 12% НСП 1% [12:08:00]line > о реализуемом товаре [12:08:00]line Товар: 48743570 [12:08:00]line Сигареты Winston XStyle Blue [12:08:00]line 1.000 * 140.00 [12:08:00]line = 140.00 [12:08:00]line НДС 12% НСП 1% [12:08:00]line > о реализуемом товаре [12:08:00]line ИТОГО: 250.00 [12:08:00]line НСП 1% : 2.21 [12:08:00]line НДС 12% : 26.55 [12:08:00]line Наличными: 250.00 [12:08:00]line Безнал.: 0.00 [12:08:00]line Место: АЗС № 140 "Партнер Нефть" [12:08:00]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:08:00]line СНО: Общий режим [12:08:00]line Чек 61 16.07.2024 12:08 [12:08:00]line Смена: 371 ФФД: 1.0 [12:08:00]line ЗНМ: 0300000189 [12:08:00]line РНМ: 0000000000098025 [12:08:00]line Версия ККМ: 001 [12:08:00]line ФМ: 0000000000965389 [12:08:00]line ФД: 31742 [12:08:00]line ФПД: 115655081709416 [12:08:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T120803&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31742&fm=115655081709416&tin=02508201610067®Number=0000000000098025&sum=25000 [12:08:00]line 0 [12:08:00]OFD Sender: Processing packet 31742 [packets to send 6, broken 5] [12:08:00]ProducePacketName [12:08:00]name=ofd_packets/00031742 [12:08:00]OFD Sender: To server: pG, [12:08:00]CommunicateWithHost lk.salyk.kg:30040 [12:08:00]ConnectInit lk.salyk.kg [12:08:00]written 0, free lines is 4095 [12:08:00]Connected sock=10 [12:08:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A3 01 00 00 CC 38 9B 01 BB E3 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 A3 62 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FE 7B 00 00 35 04 06 00 69 30 0C 0F CF 68 68 64 1C E0 AB 1F 27 2A [12:08:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 54 8D 47 00 C8 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FE 7B 00 00 F4 03 04 00 B0 0E 96 66 B6 04 01 00 00 7E 68 B5 C1 29 D2 B7 F2 [12:08:01]CommunicateWithHost err = 0 [12:08:01]CheckOFDResponse [12:08:01]1017 (14) - 77093643461234 [12:08:01]1041 (16) - 0000000000965389 [12:08:01]1040 (4) - 31742 [12:08:01]1012 (4) - 16.07.2024 06:09 [12:08:01]1206 (1) - 0 [12:08:01]OFD Sender: Remove packet 31742 [12:08:01]ProducePacketName [12:08:01]name=ofd_packets/00031742 [12:08:01]NVStorageDeleteData [12:08:01]Write to MH i2c: 01 00 00 AB 1D C8 [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: 01 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: 01 07 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: 01 07 00 AB 1D 00 00 00 00 00 93 0C 6E [12:08:01]RasterBufferAndPrint [12:08:01]line [12:08:01]line [12:08:01]line [12:08:01]line [12:08:01]line [12:08:01]written 0, free lines is 3227 [12:08:01]MH_Cut [12:08:01]Write to MH i2c: D1 01 00 B2 1D 01 A1 [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: D1 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: D1 01 00 [12:08:01]MH_I2C_Read... [12:08:01]Read from MH i2c: D1 01 00 B2 1D 00 A0 [12:08:01]Write to MH i2c: 01 00 00 B3 1D D0 [12:08:01]Write i2c OK [12:08:01]MH_I2C_Read... [12:08:01]OFD Sender: No OFD packet to send [12:08:02]*** Cut start [12:08:02]*** Partial cut [12:08:02]*** CUTSNS_PIN = 1 [12:08:02]*** CUTSNS_PIN = 0 [12:08:02]*** Brake cut motor [12:08:02]Read from MH i2c: 01 [12:08:02]MH_I2C_Read... [12:08:02]*** Stop cut motor [12:08:02]*** Cut end [12:08:02]Read from MH i2c: 01 07 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: 01 07 00 B3 1D 00 00 00 00 00 FF 0F E5 [12:08:02]process_action close_receipt done [12:08:02]requested_data is exist [12:08:02]produce_requested_data [12:08:02]requested_item fm.sn is exist - process it [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 11 00 00 [12:08:02]Write to MH i2c: E2 08 00 B4 1D 80 11 00 00 00 00 00 00 4B [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:02]Read from MH i2c: E2 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 17 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 17 00 B4 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A6 [12:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:08:02]wFMCommunicate OK [12:08:02]requested_item fd.num is exist - process it [12:08:02]SAM_PROTO_GetFieldsCounters [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 13 00 00 [12:08:02]Write to MH i2c: E2 08 00 B5 1D 80 13 00 00 00 00 00 00 4E [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:02]Read from MH i2c: E2 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 62 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 62 00 B5 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FE 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [12:08: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FE 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:02]wFMCommunicate OK [12:08:02]SAM_PROTO_GetFieldsCounters done [12:08:02]requested_item shift.num is exist - process it [12:08:02]requested_item shift.opened is exist - process it [12:08:02]req_shift_opened [12:08:02]FM_GetShiftState [12:08:02]SAM_PROTO_GetShiftState [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 13 01 00 [12:08:02]Write to MH i2c: E2 08 00 B6 1D 80 13 01 00 00 00 00 00 50 [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:03]Read from MH i2c: E2 [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: E2 0E 00 [12:08:03]MH_I2C_Read... [12:08:03]Read from MH i2c: E2 0E 00 B6 1D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 9F [12:08:03]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:08:03]wFMCommunicate OK [12:08:03]SAM_PROTO_GetShiftState done [12:08:03]FM_GetShiftState done [12:08:03]req_shift_opened done [12:08:03]requested_item shift.open_date is exist - process it [12:08:03]req_shift_open_date [12:08:03]req_shift_open_date done [12:08:03]produce_requested_data done [12:08:03]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31742,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:08:03]process_action_free close_receipt [12:08:03]json_value_free [12:08:03]json_value_free done [12:08:03]process_json_proto returns [12:08:03]Send response to host [12:08:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31742,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:08:03]free response buf [12:08:03]execute_script done [12:08:03]execute_script returns [12:08:03]free content buf [12:08:03]Sock 7.Close socket [12:08:03]Sock 7.Thread stoped [12:08:06]OFD Sender: No OFD packet to send [12:08:11]OFD Sender: No OFD packet to send [12:08:16]OFD Sender: No OFD packet to send [12:08:21]OFD Sender: No OFD packet to send [12:08:26]OFD Sender: No OFD packet to send [12:08:31]OFD Sender: No OFD packet to send [12:08:36]OFD Sender: No OFD packet to send [12:08:41]OFD Sender: No OFD packet to send [12:08:46]OFD Sender: No OFD packet to send [12:08:51]OFD Sender: No OFD packet to send [12:08:56]OFD Sender: No OFD packet to send [12:09:01]OFD Sender: No OFD packet to send [12:09:06]OFD Sender: No OFD packet to send [12:09:11]OFD Sender: No OFD packet to send [12:09:16]OFD Sender: No OFD packet to send [12:09:21]OFD Sender: No OFD packet to send [12:09:26]OFD Sender: No OFD packet to send [12:09:31]OFD Sender: No OFD packet to send [12:09:36]OFD Sender: No OFD packet to send [12:09:41]OFD Sender: No OFD packet to send [12:09:46]OFD Sender: No OFD packet to send [12:09:51]OFD Sender: No OFD packet to send [12:09:56]OFD Sender: No OFD packet to send [12:10:01]OFD Sender: No OFD packet to send [12:10:06]OFD Sender: No OFD packet to send [12:10:11]OFD Sender: No OFD packet to send [12:10:16]OFD Sender: No OFD packet to send [12:10:21]OFD Sender: No OFD packet to send [12:10:26]OFD Sender: No OFD packet to send [12:10:31]OFD Sender: No OFD packet to send [12:10:36]OFD Sender: No OFD packet to send [12:10:41]OFD Sender: No OFD packet to send [12:10:46]OFD Sender: No OFD packet to send [12:10:51]OFD Sender: No OFD packet to send [12:10:56]OFD Sender: No OFD packet to send [12:11:01]OFD Sender: No OFD packet to send [12:11:06]OFD Sender: No OFD packet to send [12:11:11]OFD Sender: No OFD packet to send [12:11:16]OFD Sender: No OFD packet to send [12:11:21]OFD Sender: No OFD packet to send [12:11:26]OFD Sender: No OFD packet to send [12:11:31]OFD Sender: No OFD packet to send [12:11:36]OFD Sender: No OFD packet to send [12:11:41]OFD Sender: No OFD packet to send [12:11:46]OFD Sender: No OFD packet to send [12:11:51]OFD Sender: No OFD packet to send [12:11:56]OFD Sender: No OFD packet to send [12:12:01]OFD Sender: No OFD packet to send [12:12:06]OFD Sender: No OFD packet to send [12:12:11]OFD Sender: No OFD packet to send [12:12:16]OFD Sender: No OFD packet to send [12:12:21]OFD Sender: No OFD packet to send [12:12:26]OFD Sender: No OFD packet to send [12:12:31]OFD Sender: No OFD packet to send [12:12:36]OFD Sender: No OFD packet to send [12:12:41]OFD Sender: No OFD packet to send [12:12:46]OFD Sender: No OFD packet to send [12:12:51]OFD Sender: No OFD packet to send [12:12:56]OFD Sender: No OFD packet to send [12:13:01]OFD Sender: No OFD packet to send [12:13:06]OFD Sender: No OFD packet to send [12:13:11]OFD Sender: No OFD packet to send [12:13:16]OFD Sender: No OFD packet to send [12:13:21]OFD Sender: No OFD packet to send [12:13:26]OFD Sender: No OFD packet to send [12:13:31]OFD Sender: No OFD packet to send [12:13:36]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:14:58]accept exits with 9 [12:14:58]New connection [12:14:58]New thread 3066965348 created [12:14:58]Thread 3066821988 joined [12:14:58]Waiting for new connection... [12:14:58] Sock 9.Parse request [12:14:58]Sock 9.Check first char [12:14:58]Sock 9.First char is OK [12:14:58]request: POST /json_proto HTTP/1.0 [12:14:58]Method: POST [12:14:58]URL: /json_proto [12:14:58]Method is POST - this is cgi request [12:14:58]url: /json_proto [12:14:58]query_string will be loaded in cgi processing [12:14:58]execute_cgi json_proto POST (null) [12:14:58]execute_cgi path=json_proto method=POST [12:14:58]POST find Content-Length [12:14:58]Host: 172.17.39.68:8080 [12:14:58]Content-Length: 1320 [12:14:58]Content-Type: application/json [12:14:58] [12:14:58]POST finish read [12:14:58]Found Content-Length = 1320 [12:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214324", "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": "8691216090477", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO StarMix 80\u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 283.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:58]execute_script... [12:14: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)214324", "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": "8691216090477", "name": "\u0416\u0435\u0432\u0430\u0442\u0435\u043B\u044C\u043D\u044B\u0439 \u043C\u0430\u0440\u043C\u0435\u043B\u0430\u0434 HARIBO StarMix 80\u0433\u0440", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 283.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:58]POST & json_proto [12:14:58]process_json_proto [12:14:58]json parsed OK: [12:14:58]protocol is kg_v1.0 [12:14:58]action value=close_receipt [12:14:58]process_action close_receipt [12:14:58]cmd_close_receipt [12:14:58]MH_GetDate [12:14:58]Write to MH i2c: F0 00 00 B7 1D C3 [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: F0 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: F0 09 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: F0 09 00 B7 1D 00 47 64 96 66 D6 48 95 66 8C [12:14:58]GetLastDocTimeStamp 1721131683 [12:14:58]current date 1721132103 [12:14:58]FM_GetShiftState [12:14:58]SAM_PROTO_GetShiftState [12:14:58]wFMCommunicate request_size=4 [12:14:58]MH_SAM_APDU [12:14:58]CAPDU: 80 13 01 00 [12:14:58]Write to MH i2c: E2 08 00 B8 1D 80 13 01 00 00 00 00 00 52 [12:14:58]Write i2c OK [12:14:58]MH_I2C_Read... [12:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:58]Read from MH i2c: E2 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 0E 00 [12:14:58]MH_I2C_Read... [12:14:58]Read from MH i2c: E2 0E 00 B8 1D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A1 [12:14:58]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:14:58]wFMCommunicate OK [12:14:58]SAM_PROTO_GetShiftState done [12:14:58]FM_GetShiftState done [12:14:58]opened in 1721088399 [12:14:58]opened+sec_in_day 1721174799 [12:14:58]quantity*price = 9000 [12:14:58]sum+1 = 9001 [12:14:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 8691216090477 Жевательный мармелад HARIBO StarMix 80гр 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 283.00 НСП 1% : 2.50 НДС 12% : 30.06 Наличными: 283.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 62 16.07.2024 12:15 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31743 ФПД: 197747661383428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T121503&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31743&fm=197747661383428&tin=02508201610067®Number=0000000000098025&sum=28300 0 [12:14:59]StoreToDocumentArchive [12:14:59]shift 371 fd 31743 [12:14:59]save to /storage/0371/doc_00031743 [12:14:59]save last doc name /storage/0371/doc_00031743 to /storage/kkm_last_doc_name [12:14:59]save OK [12:14:59]Clear old archive folders... [12:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=556 [12:14:59]tlvbuf is 014E68E0 [12:14:59]SAM_PROTO_ClearQueue [12:14:59]wFMCommunicate request_size=4 [12:14:59]MH_SAM_APDU [12:14:59]CAPDU: 80 09 00 00 [12:14:59]Write to MH i2c: E2 08 00 C5 1D 80 09 00 00 00 00 00 00 54 [12:14:59]Write i2c OK [12:14:59]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 C5 1D 00 90 00 56 [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]SAM_PROTO_ClearQueue done [12:15:00]KKMCreateOFDPacket [12:15:00]OFDProtocolAddRootSTLVToBuf [12:15:00]FM_MakeSignedData [12:15:00]FM_MakeSignedData [12:15:00]SAM_PROTO_SignData [12:15:00]wFMCommunicate request_size=4 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 01 02 [12:15:00]Write to MH i2c: E2 08 00 C6 1D 80 0D 01 02 00 00 00 00 5C [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 C6 1D 00 90 00 57 [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]wFMCommunicate request_size=255 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 02 02 FA 03 00 2C 02 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 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 37 37 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 53 74 61 72 4D 69 78 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 [12:15:00]Write to MH i2c: E2 02 01 C7 1D 80 0D 02 02 FA 00 03 00 2C 02 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 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 37 37 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 53 74 61 72 4D 69 78 20 38 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 87 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 C7 1D 00 90 00 58 [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]wFMCommunicate request_size=255 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 02 02 FA 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 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0B 00 00 00 00 07 04 06 00 8C 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 47 64 96 66 0E 04 04 00 73 01 00 00 B9 04 01 [12:15:00]Write to MH i2c: E2 02 01 C8 1D 80 0D 02 02 FA 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 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0B 00 00 00 00 07 04 06 00 8C 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 47 64 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 00 B7 [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:00]Read from MH i2c: E2 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 [12:15:00]MH_I2C_Read... [12:15:00]Read from MH i2c: E2 03 00 C8 1D 00 90 00 59 [12:15:00]RAPDU: 90 00 [12:15:00]wFMCommunicate OK [12:15:00]wFMCommunicate request_size=65 [12:15:00]MH_SAM_APDU [12:15:00]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FF 7B 00 00 35 04 06 00 B3 D9 B7 1C A7 04 [12:15:00]Write to MH i2c: E2 44 00 C9 1D 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FF 7B 00 00 35 04 06 00 B3 D9 B7 1C A7 04 00 00 3A [12:15:00]Write i2c OK [12:15:00]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 03 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 03 00 C9 1D 00 90 00 5A [12:15:01]RAPDU: 90 00 [12:15:01]wFMCommunicate OK [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 0D 03 02 [12:15:01]Write to MH i2c: E2 08 00 CA 1D 80 0D 03 02 00 00 00 00 62 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 0B 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 0B 00 CA 1D 00 06 17 6B FF 4A 57 2C E0 90 00 97 [12:15:01]RAPDU: 06 17 6B FF 4A 57 2C E0 90 00 [12:15:01]wFMCommunicate OK [12:15:01]SAM_PROTO_SignData done [12:15:01]FM_MakeSignedData done [12:15:01]CreateOFDProtocolMessage [12:15:01]wFMCommunicate request_size=4 [12:15:01]MH_SAM_APDU [12:15:01]CAPDU: 80 11 00 00 [12:15:01]Write to MH i2c: E2 08 00 CB 1D 80 11 00 00 00 00 00 00 62 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:01]Read from MH i2c: E2 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 17 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: E2 17 00 CB 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BD [12:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:15:01]wFMCommunicate OK [12:15:01]CreateOFDProtocolMessage done [12:15:01]OFDSenderStorePacket 31743 [12:15:01]StoreOFDPacket docnum=31743 [12:15:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 40 02 00 00 93 FA 38 02 0A 45 5A 03 01 00 03 00 2C 02 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 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 37 37 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 53 74 61 72 4D 69 78 20 38 30 D0 B3 D1 80 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 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0B 00 00 00 00 07 04 06 00 8C 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 47 64 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FF 7B 00 00 35 04 06 00 B3 D9 B7 1C A7 04 06 17 6B FF 4A 57 2C E0 [12:15:01]CheckFolder [12:15:01]dirname=/storage/ofd_packets [12:15:01]CheckFolder done [12:15:01]ProducePacketName [12:15:01]name=ofd_packets/00031743 [12:15:01]NVStorageSaveData ofd_packets/00031743 [12:15:01]File name is /storage/ofd_packets/00031743 [12:15:01]Write 606 bytes [12:15:01]NVStorageSaveData done [12:15:01]OFDSenderStorePacket done [12:15:01]KKMCreateOFDPacket done [12:15:01]NVStorageSaveData kkm_last_timestamp [12:15:01]File name is /storage/kkm_last_timestamp [12:15:01]Write 4 bytes [12:15:01]NVStorageSaveData done [12:15:01]ExternCall_PrintAddStr [12:15:01]wPrintStart [12:15:01]Write to MH i2c: 01 00 00 CC 1D E9 [12:15:01]Write i2c OK [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 [12:15:01]MH_I2C_Read... [12:15:01]Read from MH i2c: 01 07 00 CC 1D 00 00 00 00 00 FF 0F FE [12:15:01]RasterBufferAndPrint [12:15:01]line Счет N : (3)214324 [12:15:01]line ИНН: 02508201610067 [12:15:01]line Контрольно-Кассовый Чек [12:15:01]line ПРОДАЖА [12:15:01]line Товар: 4870235681086 [12:15:01]line Grizzly волнистые Сыр с халапеньо 55 гр [12:15:01]line 1.000 * 90.00 [12:15:01]line = 90.00 [12:15:01]line НДС 12% НСП 1% [12:15:01]line > о реализуемом товаре [12:15:01]line Товар: 8691216090477 [12:15:01]line Жевательный мармелад HARIBO StarMix 80гр [12:15:01]line 1.000 * 100.00 [12:15:01]line = 100.00 [12:15:01]line НДС 12% НСП 1% [12:15:01]line > о реализуемом товаре [12:15:01]line Товар: 4603290004879 [12:15:01]line Печ.сах.FORSITE Сэнд.кокос.вк [12:15:01]line 1.000 * 93.00 [12:15:01]line = 93.00 [12:15:01]line НДС 12% НСП 1% [12:15:01]line > о реализуемом товаре [12:15:01]line ИТОГО: 283.00 [12:15:01]line НСП 1% : 2.50 [12:15:01]line НДС 12% : 30.06 [12:15:01]line Наличными: 283.00 [12:15:01]line Безнал.: 0.00 [12:15:01]line Место: АЗС № 140 "Партнер Нефть" [12:15:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:15:01]line СНО: Общий режим [12:15:01]line Чек 62 16.07.2024 12:15 [12:15:01]line Смена: 371 ФФД: 1.0 [12:15:01]line ЗНМ: 0300000189 [12:15:01]line РНМ: 0000000000098025 [12:15:01]line Версия ККМ: 001 [12:15:01]line ФМ: 0000000000965389 [12:15:01]line ФД: 31743 [12:15:01]line ФПД: 197747661383428 [12:15:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T121503&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31743&fm=197747661383428&tin=02508201610067®Number=0000000000098025&sum=28300 [12:15:01]line 0 [12:15:01]OFD Sender: Processing packet 31743 [packets to send 6, broken 5] [12:15:01]ProducePacketName [12:15:01]name=ofd_packets/00031743 [12:15:01]OFD Sender: To server: pG, [12:15:01]CommunicateWithHost lk.salyk.kg:30040 [12:15:01]ConnectInit lk.salyk.kg [12:15:01]written 0, free lines is 4095 [12:15:01]Connected sock=10 [12:15:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 40 02 00 00 93 FA 38 02 0A 45 5A 03 01 00 03 00 2C 02 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 81 00 8A 04 0D 00 38 36 39 31 32 31 36 30 39 30 34 37 37 06 04 3D 00 D0 96 D0 B5 D0 B2 D0 B0 D1 82 D0 B5 D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 BC D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 48 41 52 49 42 4F 20 53 74 61 72 4D 69 78 20 38 30 D0 B3 D1 80 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 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BE 0B 00 00 00 00 07 04 06 00 8C 6E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 47 64 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FF 7B 00 00 35 04 06 00 B3 D9 B7 1C A7 04 06 17 6B FF 4A 57 2C E0 [12:15:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 D0 39 47 00 4E 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 FF 7B 00 00 F4 03 04 00 55 10 96 66 B6 04 01 00 00 CE AC E6 EB E7 BA B5 A3 [12:15:01]CommunicateWithHost err = 0 [12:15:01]CheckOFDResponse [12:15:01]1017 (14) - 77093643461234 [12:15:01]1041 (16) - 0000000000965389 [12:15:01]1040 (4) - 31743 [12:15:01]1012 (4) - 16.07.2024 06:16 [12:15:01]1206 (1) - 0 [12:15:01]OFD Sender: Remove packet 31743 [12:15:01]ProducePacketName [12:15:01]name=ofd_packets/00031743 [12:15:01]NVStorageDeleteData [12:15:02]Write to MH i2c: 01 00 00 02 1E 20 [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: 01 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: 01 07 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: 01 07 00 02 1E 00 00 00 00 00 2B 0C 5E [12:15:02]RasterBufferAndPrint [12:15:02]line [12:15:02]line [12:15:02]line [12:15:02]line [12:15:02]line [12:15:02]written 0, free lines is 3122 [12:15:02]MH_Cut [12:15:02]Write to MH i2c: D1 01 00 09 1E 01 F9 [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: D1 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: D1 01 00 [12:15:02]MH_I2C_Read... [12:15:02]Read from MH i2c: D1 01 00 09 1E 00 F8 [12:15:02]Write to MH i2c: 01 00 00 0A 1E 28 [12:15:02]Write i2c OK [12:15:02]MH_I2C_Read... [12:15:02]OFD Sender: No OFD packet to send [12:15:02]*** Cut start [12:15:02]*** Partial cut [12:15:02]*** CUTSNS_PIN = 1 [12:15:02]*** CUTSNS_PIN = 0 [12:15:03]*** Brake cut motor [12:15:03]Read from MH i2c: 01 [12:15:03]MH_I2C_Read... [12:15:03]*** Stop cut motor [12:15:03]*** Cut end [12:15:03]Read from MH i2c: 01 07 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: 01 07 00 0A 1E 00 00 00 00 00 FF 0F 3D [12:15:03]process_action close_receipt done [12:15:03]requested_data is exist [12:15:03]produce_requested_data [12:15:03]requested_item fm.sn is exist - process it [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 11 00 00 [12:15:03]Write to MH i2c: E2 08 00 0B 1E 80 11 00 00 00 00 00 00 A3 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 17 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 17 00 0B 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 FE [12:15:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:15:03]wFMCommunicate OK [12:15:03]requested_item fd.num is exist - process it [12:15:03]SAM_PROTO_GetFieldsCounters [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 13 00 00 [12:15:03]Write to MH i2c: E2 08 00 0C 1E 80 13 00 00 00 00 00 00 A6 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 62 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 62 00 0C 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FF 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [12:15:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 FF 7B 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_GetFieldsCounters done [12:15:03]requested_item shift.num is exist - process it [12:15:03]requested_item shift.opened is exist - process it [12:15:03]req_shift_opened [12:15:03]FM_GetShiftState [12:15:03]SAM_PROTO_GetShiftState [12:15:03]wFMCommunicate request_size=4 [12:15:03]MH_SAM_APDU [12:15:03]CAPDU: 80 13 01 00 [12:15:03]Write to MH i2c: E2 08 00 0D 1E 80 13 01 00 00 00 00 00 A8 [12:15:03]Write i2c OK [12:15:03]MH_I2C_Read... [12:15:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:03]Read from MH i2c: E2 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0E 00 [12:15:03]MH_I2C_Read... [12:15:03]Read from MH i2c: E2 0E 00 0D 1E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F7 [12:15:03]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:15:03]wFMCommunicate OK [12:15:03]SAM_PROTO_GetShiftState done [12:15:03]FM_GetShiftState done [12:15:03]req_shift_opened done [12:15:03]requested_item shift.open_date is exist - process it [12:15:03]req_shift_open_date [12:15:03]req_shift_open_date done [12:15:03]produce_requested_data done [12:15:03]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31743,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:15:03]process_action_free close_receipt [12:15:03]json_value_free [12:15:03]json_value_free done [12:15:03]process_json_proto returns [12:15:03]Send response to host [12:15:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31743,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:15:03]free response buf [12:15:03]execute_script done [12:15:03]execute_script returns [12:15:03]free content buf [12:15:03]Sock 9.Close socket [12:15:03]Sock 9.Thread stoped [12:15:07]OFD Sender: No OFD packet to send [12:15:12]OFD Sender: No OFD packet to send [12:15:17]OFD Sender: No OFD packet to send [12:15:22]OFD Sender: No OFD packet to send [12:15:27]OFD Sender: No OFD packet to send [12:15:32]OFD Sender: No OFD packet to send [12:15:37]OFD Sender: No OFD packet to send [12:15:42]OFD Sender: No OFD packet to send [12:15:47]OFD Sender: No OFD packet to send [12:15:52]OFD Sender: No OFD packet to send [12:15:57]OFD Sender: No OFD packet to send [12:16:02]OFD Sender: No OFD packet to send [12:16:07]OFD Sender: No OFD packet to send [12:16:12]OFD Sender: No OFD packet to send [12:16:17]OFD Sender: No OFD packet to send [12:16:22]OFD Sender: No OFD packet to send [12:16:27]OFD Sender: No OFD packet to send [12:16:32]OFD Sender: No OFD packet to send [12:16:37]OFD Sender: No OFD packet to send [12:16:42]OFD Sender: No OFD packet to send [12:16:44]accept exits with 7 [12:16:44]New connection [12:16:44]New thread 3066821988 created [12:16:44]Thread 3066965348 joined [12:16:44]Waiting for new connection... [12:16:44] Sock 7.Parse request [12:16:44]Sock 7.Check first char [12:16:44]Sock 7.First char is OK [12:16:44]request: POST /json_proto HTTP/1.0 [12:16:44]Method: POST [12:16:44]URL: /json_proto [12:16:44]Method is POST - this is cgi request [12:16:44]url: /json_proto [12:16:44]query_string will be loaded in cgi processing [12:16:44]execute_cgi json_proto POST (null) [12:16:44]execute_cgi path=json_proto method=POST [12:16:44]POST find Content-Length [12:16:44]Host: 172.17.39.68:8080 [12:16:44]Content-Length: 644 [12:16:44]Content-Type: application/json [12:16:44] [12:16:44]POST finish read [12:16:44]Found Content-Length = 644 [12:16:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214325", "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" ] } } [12:16:44]execute_script... [12:16:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214325", "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" ] } } [12:16:44]POST & json_proto [12:16:44]process_json_proto [12:16:44]json parsed OK: [12:16:44]protocol is kg_v1.0 [12:16:44]action value=close_receipt [12:16:44]process_action close_receipt [12:16:44]cmd_close_receipt [12:16:44]MH_GetDate [12:16:44]Write to MH i2c: F0 00 00 0E 1E 1B [12:16:44]Write i2c OK [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: F0 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: F0 09 00 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: F0 09 00 0E 1E 00 B0 64 96 66 D6 48 95 66 4D [12:16:44]GetLastDocTimeStamp 1721132103 [12:16:44]current date 1721132208 [12:16:44]FM_GetShiftState [12:16:44]SAM_PROTO_GetShiftState [12:16:44]wFMCommunicate request_size=4 [12:16:44]MH_SAM_APDU [12:16:44]CAPDU: 80 13 01 00 [12:16:44]Write to MH i2c: E2 08 00 0F 1E 80 13 01 00 00 00 00 00 AA [12:16:44]Write i2c OK [12:16:44]MH_I2C_Read... [12:16:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:44]Read from MH i2c: E2 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: E2 0E 00 [12:16:44]MH_I2C_Read... [12:16:44]Read from MH i2c: E2 0E 00 0F 1E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F9 [12:16:44]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:16:44]wFMCommunicate OK [12:16:44]SAM_PROTO_GetShiftState done [12:16:44]FM_GetShiftState done [12:16:44]opened in 1721088399 [12:16:44]opened+sec_in_day 1721174799 [12:16:44]quantity*price = 11500 [12:16:44]sum+1 = 11501 [12:16:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 63 16.07.2024 12:16 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31744 ФПД: 86880979146353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T121648&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31744&fm=86880979146353&tin=02508201610067®Number=0000000000098025&sum=11500 0 [12:16:45]StoreToDocumentArchive [12:16:45]shift 371 fd 31744 [12:16:45]save to /storage/0371/doc_00031744 [12:16:45]save last doc name /storage/0371/doc_00031744 to /storage/kkm_last_doc_name [12:16:45]save OK [12:16:45]Clear old archive folders... [12:16:45]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:16:45]tlvbuf is 014ACD50 [12:16:45]SAM_PROTO_ClearQueue [12:16:45]wFMCommunicate request_size=4 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 09 00 00 [12:16:45]Write to MH i2c: E2 08 00 1C 1E 80 09 00 00 00 00 00 00 AC [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:45]Read from MH i2c: E2 03 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 1C 1E 00 90 00 AE [12:16:45]RAPDU: 90 00 [12:16:45]wFMCommunicate OK [12:16:45]SAM_PROTO_ClearQueue done [12:16:45]KKMCreateOFDPacket [12:16:45]OFDProtocolAddRootSTLVToBuf [12:16:45]FM_MakeSignedData [12:16:45]FM_MakeSignedData [12:16:45]SAM_PROTO_SignData [12:16:45]wFMCommunicate request_size=4 [12:16:45]MH_SAM_APDU [12:16:45]CAPDU: 80 0D 01 02 [12:16:45]Write to MH i2c: E2 08 00 1D 1E 80 0D 01 02 00 00 00 00 B4 [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:45]Read from MH i2c: E2 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 [12:16:45]MH_I2C_Read... [12:16:45]Read from MH i2c: E2 03 00 1D 1E 00 90 00 AF [12:16:45]RAPDU: 90 00 [12:16:45]wFMCommunicate OK [12:16:45]wFMCommunicate request_size=255 [12:16:45]MH_SAM_APDU [12:16:45]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 3F 00 00 00 F4 03 04 00 B0 64 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [12:16:45]Write to MH i2c: E2 02 01 1E 1E 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 3F 00 00 00 F4 03 04 00 B0 64 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 B6 [12:16:45]Write i2c OK [12:16:45]MH_I2C_Read... [12:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:46]Read from MH i2c: E2 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 03 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 03 00 1E 1E 00 90 00 B0 [12:16:46]RAPDU: 90 00 [12:16:46]wFMCommunicate OK [12:16:46]wFMCommunicate request_size=39 [12:16:46]MH_SAM_APDU [12:16:46]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 00 7C 00 00 35 04 06 00 4F 04 8D E6 56 71 [12:16:46]Write to MH i2c: E2 2A 00 1F 1E 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 00 7C 00 00 35 04 06 00 4F 04 8D E6 56 71 00 00 83 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:46]Read from MH i2c: E2 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 03 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [12:16:46]RAPDU: 90 00 [12:16:46]wFMCommunicate OK [12:16:46]wFMCommunicate request_size=4 [12:16:46]MH_SAM_APDU [12:16:46]CAPDU: 80 0D 03 02 [12:16:46]Write to MH i2c: E2 08 00 20 1E 80 0D 03 02 00 00 00 00 B9 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:46]Read from MH i2c: E2 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 0B 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 0B 00 20 1E 00 33 8A E1 69 92 30 E6 4F 90 00 B8 [12:16:46]RAPDU: 33 8A E1 69 92 30 E6 4F 90 00 [12:16:46]wFMCommunicate OK [12:16:46]SAM_PROTO_SignData done [12:16:46]FM_MakeSignedData done [12:16:46]CreateOFDProtocolMessage [12:16:46]wFMCommunicate request_size=4 [12:16:46]MH_SAM_APDU [12:16:46]CAPDU: 80 11 00 00 [12:16:46]Write to MH i2c: E2 08 00 21 1E 80 11 00 00 00 00 00 00 B9 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:46]Read from MH i2c: E2 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 17 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: E2 17 00 21 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 14 [12:16:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:16:46]wFMCommunicate OK [12:16:46]CreateOFDProtocolMessage done [12:16:46]OFDSenderStorePacket 31744 [12:16:46]StoreOFDPacket docnum=31744 [12:16:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 0F 84 24 01 7A 68 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 3F 00 00 00 F4 03 04 00 B0 64 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 00 7C 00 00 35 04 06 00 4F 04 8D E6 56 71 33 8A E1 69 92 30 E6 4F [12:16:46]CheckFolder [12:16:46]dirname=/storage/ofd_packets [12:16:46]CheckFolder done [12:16:46]ProducePacketName [12:16:46]name=ofd_packets/00031744 [12:16:46]NVStorageSaveData ofd_packets/00031744 [12:16:46]File name is /storage/ofd_packets/00031744 [12:16:46]Write 330 bytes [12:16:46]NVStorageSaveData done [12:16:46]OFDSenderStorePacket done [12:16:46]KKMCreateOFDPacket done [12:16:46]NVStorageSaveData kkm_last_timestamp [12:16:46]File name is /storage/kkm_last_timestamp [12:16:46]Write 4 bytes [12:16:46]NVStorageSaveData done [12:16:46]ExternCall_PrintAddStr [12:16:46]wPrintStart [12:16:46]Write to MH i2c: 01 00 00 22 1E 40 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: 01 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: 01 07 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: 01 07 00 22 1E 00 00 00 00 00 FF 0F 55 [12:16:46]RasterBufferAndPrint [12:16:46]line Счет N : (3)214325 [12:16:46]line ИНН: 02508201610067 [12:16:46]line Контрольно-Кассовый Чек [12:16:46]line ПРОДАЖА [12:16:46]line Товар: 2000036210013 [12:16:46]line Кофе Капучино (GABB TRADE) [12:16:46]line 1.000 * 115.00 [12:16:46]line = 115.00 [12:16:46]line НДС 12% НСП 1% [12:16:46]line > о реализуемом товаре [12:16:46]line ИТОГО: 115.00 [12:16:46]line НСП 1% : 1.02 [12:16:46]line НДС 12% : 12.21 [12:16:46]line Наличными: 115.00 [12:16:46]line Безнал.: 0.00 [12:16:46]line Место: АЗС № 140 "Партнер Нефть" [12:16:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:16:46]line СНО: Общий режим [12:16:46]line Чек 63 16.07.2024 12:16 [12:16:46]line Смена: 371 ФФД: 1.0 [12:16:46]line ЗНМ: 0300000189 [12:16:46]line РНМ: 0000000000098025 [12:16:46]line Версия ККМ: 001 [12:16:46]line ФМ: 0000000000965389 [12:16:46]line ФД: 31744 [12:16:46]line ФПД: 86880979146353 [12:16:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T121648&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31744&fm=86880979146353&tin=02508201610067®Number=0000000000098025&sum=11500 [12:16:46]line 0 [12:16:46]written 0, free lines is 4095 [12:16:46]OFD Sender: Processing packet 31744 [packets to send 6, broken 5] [12:16:46]ProducePacketName [12:16:46]name=ofd_packets/00031744 [12:16:46]OFD Sender: To server: pG, [12:16:46]CommunicateWithHost lk.salyk.kg:30040 [12:16:46]ConnectInit lk.salyk.kg [12:16:46]Connected sock=10 [12:16:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 0F 84 24 01 7A 68 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 3F 00 00 00 F4 03 04 00 B0 64 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 00 7C 00 00 35 04 06 00 4F 04 8D E6 56 71 33 8A E1 69 92 30 E6 4F [12:16:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 BC 39 47 00 62 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 35 33 38 39 10 04 04 00 00 7C 00 00 F4 03 04 00 BD 10 96 66 B6 04 01 00 00 6B 30 4C 0A 29 6F C6 5D [12:16:46]CommunicateWithHost err = 0 [12:16:46]CheckOFDResponse [12:16:46]1017 (14) - 77093643461234 [12:16:46]1041 (16) - 0000000000965389 [12:16:46]1040 (4) - 31744 [12:16:46]1012 (4) - 16.07.2024 06:18 [12:16:46]1206 (1) - 0 [12:16:46]OFD Sender: Remove packet 31744 [12:16:46]ProducePacketName [12:16:46]name=ofd_packets/00031744 [12:16:46]NVStorageDeleteData [12:16:46]Write to MH i2c: 01 00 00 4A 1E 68 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: 01 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: 01 07 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: 01 07 00 4A 1E 00 00 00 00 00 15 0D 91 [12:16:46]RasterBufferAndPrint [12:16:46]line [12:16:46]line [12:16:46]line [12:16:46]line [12:16:46]line [12:16:46]written 0, free lines is 3357 [12:16:46]MH_Cut [12:16:46]Write to MH i2c: D1 01 00 51 1E 01 41 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: D1 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: D1 01 00 [12:16:46]MH_I2C_Read... [12:16:46]Read from MH i2c: D1 01 00 51 1E 00 40 [12:16:46]Write to MH i2c: 01 00 00 52 1E 70 [12:16:46]Write i2c OK [12:16:46]MH_I2C_Read... [12:16:47]OFD Sender: No OFD packet to send [12:16:47]*** Cut start [12:16:47]*** Partial cut [12:16:47]*** CUTSNS_PIN = 1 [12:16:47]*** CUTSNS_PIN = 0 [12:16:47]*** Brake cut motor [12:16:47]Read from MH i2c: 01 [12:16:47]MH_I2C_Read... [12:16:47]*** Stop cut motor [12:16:47]*** Cut end [12:16:47]Read from MH i2c: 01 07 00 [12:16:47]MH_I2C_Read... [12:16:47]Read from MH i2c: 01 07 00 52 1E 00 00 00 00 00 FF 0F 85 [12:16:47]process_action close_receipt done [12:16:47]requested_data is exist [12:16:47]produce_requested_data [12:16:47]requested_item fm.sn is exist - process it [12:16:47]wFMCommunicate request_size=4 [12:16:47]MH_SAM_APDU [12:16:47]CAPDU: 80 11 00 00 [12:16:47]Write to MH i2c: E2 08 00 53 1E 80 11 00 00 00 00 00 00 EB [12:16:47]Write i2c OK [12:16:47]MH_I2C_Read... [12:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:48]Read from MH i2c: E2 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 17 00 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 17 00 53 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 46 [12:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:16:48]wFMCommunicate OK [12:16:48]requested_item fd.num is exist - process it [12:16:48]SAM_PROTO_GetFieldsCounters [12:16:48]wFMCommunicate request_size=4 [12:16:48]MH_SAM_APDU [12:16:48]CAPDU: 80 13 00 00 [12:16:48]Write to MH i2c: E2 08 00 54 1E 80 13 00 00 00 00 00 00 EE [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:48]Read from MH i2c: E2 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 62 00 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 62 00 54 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 00 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [12:16: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 00 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:48]wFMCommunicate OK [12:16:48]SAM_PROTO_GetFieldsCounters done [12:16:48]requested_item shift.num is exist - process it [12:16:48]requested_item shift.opened is exist - process it [12:16:48]req_shift_opened [12:16:48]FM_GetShiftState [12:16:48]SAM_PROTO_GetShiftState [12:16:48]wFMCommunicate request_size=4 [12:16:48]MH_SAM_APDU [12:16:48]CAPDU: 80 13 01 00 [12:16:48]Write to MH i2c: E2 08 00 55 1E 80 13 01 00 00 00 00 00 F0 [12:16:48]Write i2c OK [12:16:48]MH_I2C_Read... [12:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:48]Read from MH i2c: E2 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 0E 00 [12:16:48]MH_I2C_Read... [12:16:48]Read from MH i2c: E2 0E 00 55 1E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 3F [12:16:48]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:16:48]wFMCommunicate OK [12:16:48]SAM_PROTO_GetShiftState done [12:16:48]FM_GetShiftState done [12:16:48]req_shift_opened done [12:16:48]requested_item shift.open_date is exist - process it [12:16:48]req_shift_open_date [12:16:48]req_shift_open_date done [12:16:48]produce_requested_data done [12:16:48]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31744,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:16:48]process_action_free close_receipt [12:16:48]json_value_free [12:16:48]json_value_free done [12:16:48]process_json_proto returns [12:16:48]Send response to host [12:16:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31744,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:16:48]free response buf [12:16:48]execute_script done [12:16:48]execute_script returns [12:16:48]free content buf [12:16:48]Sock 7.Close socket [12:16:48]Sock 7.Thread stoped [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:47]OFD Sender: No OFD packet to send [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:07]OFD Sender: No OFD packet to send [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:37]OFD Sender: No OFD packet to send [12:18:42]OFD Sender: No OFD packet to send [12:18:47]OFD Sender: No OFD packet to send [12:18:52]OFD Sender: No OFD packet to send [12:18:57]OFD Sender: No OFD packet to send [12:19:02]OFD Sender: No OFD packet to send [12:19:07]OFD Sender: No OFD packet to send [12:19:12]OFD Sender: No OFD packet to send [12:19:17]OFD Sender: No OFD packet to send [12:19:22]OFD Sender: No OFD packet to send [12:19:27]OFD Sender: No OFD packet to send [12:19:32]OFD Sender: No OFD packet to send [12:19:37]OFD Sender: No OFD packet to send [12:19:42]OFD Sender: No OFD packet to send [12:19:47]OFD Sender: No OFD packet to send [12:19:52]OFD Sender: No OFD packet to send [12:19:57]OFD Sender: No OFD packet to send [12:20:02]OFD Sender: No OFD packet to send [12:20:07]OFD Sender: No OFD packet to send [12:20:12]OFD Sender: No OFD packet to send [12:20:17]OFD Sender: No OFD packet to send [12:20:22]OFD Sender: No OFD packet to send [12:20:27]OFD Sender: No OFD packet to send [12:20:32]OFD Sender: No OFD packet to send [12:20:37]OFD Sender: No OFD packet to send [12:20:42]OFD Sender: No OFD packet to send [12:20:47]OFD Sender: No OFD packet to send [12:20:52]OFD Sender: No OFD packet to send [12:20:57]OFD Sender: No OFD packet to send [12:21:02]OFD Sender: No OFD packet to send [12:21:07]OFD Sender: No OFD packet to send [12:21:12]OFD Sender: No OFD packet to send [12:21:17]OFD Sender: No OFD packet to send [12:21:22]OFD Sender: No OFD packet to send [12:21:27]OFD Sender: No OFD packet to send [12:21:32]OFD Sender: No OFD packet to send [12:21:37]OFD Sender: No OFD packet to send [12:21:42]OFD Sender: No OFD packet to send [12:21:47]OFD Sender: No OFD packet to send [12:21:52]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:07]accept exits with 9 [12:22:07]New connection [12:22:07]New thread 3066965348 created [12:22:07]Thread 3066821988 joined [12:22:07]Waiting for new connection... [12:22:07] Sock 9.Parse request [12:22:07]Sock 9.Check first char [12:22:07]Sock 9.First char is OK [12:22:07]request: POST /json_proto HTTP/1.0 [12:22:07]Method: POST [12:22:07]URL: /json_proto [12:22:07]Method is POST - this is cgi request [12:22:07]url: /json_proto [12:22:07]query_string will be loaded in cgi processing [12:22:07]execute_cgi json_proto POST (null) [12:22:07]execute_cgi path=json_proto method=POST [12:22:07]POST find Content-Length [12:22:07]Host: 172.17.39.68:8080 [12:22:07]Content-Length: 718 [12:22:07]Content-Type: application/json [12:22:07] [12:22:07]POST finish read [12:22:07]Found Content-Length = 718 [12:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214326", "tax_sys" : 0, "items" : [ { "code": "9780225379418", "name": "\u041F\u043E\u0434\u0430\u0440\u043E\u0447\u043D\u0430\u044F \u0442\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430 5000\u0441", "price" : 5000.00, "quantity" : 1.000, "sum" : 5000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 5000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:07]execute_script... [12:22:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214326", "tax_sys" : 0, "items" : [ { "code": "9780225379418", "name": "\u041F\u043E\u0434\u0430\u0440\u043E\u0447\u043D\u0430\u044F \u0442\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u043A\u0430\u0440\u0442\u0430 5000\u0441", "price" : 5000.00, "quantity" : 1.000, "sum" : 5000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 5000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:07]POST & json_proto [12:22:07]process_json_proto [12:22:07]json parsed OK: [12:22:07]protocol is kg_v1.0 [12:22:07]action value=close_receipt [12:22:07]process_action close_receipt [12:22:07]cmd_close_receipt [12:22:07]MH_GetDate [12:22:07]Write to MH i2c: F0 00 00 56 1E 63 [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: F0 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: F0 09 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: F0 09 00 56 1E 00 F3 65 96 66 D6 48 95 66 D9 [12:22:07]GetLastDocTimeStamp 1721132208 [12:22:07]current date 1721132531 [12:22:07]FM_GetShiftState [12:22:07]SAM_PROTO_GetShiftState [12:22:07]wFMCommunicate request_size=4 [12:22:07]MH_SAM_APDU [12:22:07]CAPDU: 80 13 01 00 [12:22:07]Write to MH i2c: E2 08 00 57 1E 80 13 01 00 00 00 00 00 F2 [12:22:07]Write i2c OK [12:22:07]MH_I2C_Read... [12:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:07]Read from MH i2c: E2 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 0E 00 [12:22:07]MH_I2C_Read... [12:22:07]Read from MH i2c: E2 0E 00 57 1E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 41 [12:22:07]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:22:07]wFMCommunicate OK [12:22:07]SAM_PROTO_GetShiftState done [12:22:07]FM_GetShiftState done [12:22:07]opened in 1721088399 [12:22:07]opened+sec_in_day 1721174799 [12:22:07]quantity*price = 500000 [12:22:07]sum+1 = 500001 [12:22:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.00 НСП 1% : 44.25 НДС 12% : 530.97 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 64 16.07.2024 12:22 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31745 ФПД: 204206584605195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T122211&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31745&fm=204206584605195&tin=02508201610067®Number=0000000000098025&sum=500000 0 [12:22:08]StoreToDocumentArchive [12:22:08]shift 371 fd 31745 [12:22:08]save to /storage/0371/doc_00031745 [12:22:08]save last doc name /storage/0371/doc_00031745 to /storage/kkm_last_doc_name [12:22:08]save OK [12:22:08]Clear old archive folders... [12:22:08]ProcessDocumentItem done err = 0, tmpTLVsize=299 [12:22:08]tlvbuf is B6EC47E0 [12:22:08]SAM_PROTO_ClearQueue [12:22:08]wFMCommunicate request_size=4 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 09 00 00 [12:22:08]Write to MH i2c: E2 08 00 64 1E 80 09 00 00 00 00 00 00 F4 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 03 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 03 00 64 1E 00 90 00 F6 [12:22:08]RAPDU: 90 00 [12:22:08]wFMCommunicate OK [12:22:08]SAM_PROTO_ClearQueue done [12:22:08]KKMCreateOFDPacket [12:22:08]OFDProtocolAddRootSTLVToBuf [12:22:08]FM_MakeSignedData [12:22:08]FM_MakeSignedData [12:22:08]SAM_PROTO_SignData [12:22:08]wFMCommunicate request_size=4 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 0D 01 02 [12:22:08]Write to MH i2c: E2 08 00 65 1E 80 0D 01 02 00 00 00 00 FC [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 03 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 03 00 65 1E 00 90 00 F7 [12:22:08]RAPDU: 90 00 [12:22:08]wFMCommunicate OK [12:22:08]wFMCommunicate request_size=255 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F3 65 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 [12:22:08]Write to MH i2c: E2 02 01 66 1E 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F3 65 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 B6 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:08]Read from MH i2c: E2 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 03 00 [12:22:08]MH_I2C_Read... [12:22:08]Read from MH i2c: E2 03 00 66 1E 00 90 00 F8 [12:22:08]RAPDU: 90 00 [12:22:08]wFMCommunicate OK [12:22:08]wFMCommunicate request_size=58 [12:22:08]MH_SAM_APDU [12:22:08]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 01 7C 00 00 35 04 06 00 B9 B9 8C EF AA 0B [12:22:08]Write to MH i2c: E2 3D 00 67 1E 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 01 7C 00 00 35 04 06 00 B9 B9 8C EF AA 0B 00 00 14 [12:22:08]Write i2c OK [12:22:08]MH_I2C_Read... [12:22:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 03 00 67 1E 00 90 00 F9 [12:22:09]RAPDU: 90 00 [12:22:09]wFMCommunicate OK [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 0D 03 02 [12:22:09]Write to MH i2c: E2 08 00 68 1E 80 0D 03 02 00 00 00 00 01 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 0B 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 0B 00 68 1E 00 F5 23 71 FE 1F 88 5E 6F 90 00 FD [12:22:09]RAPDU: F5 23 71 FE 1F 88 5E 6F 90 00 [12:22:09]wFMCommunicate OK [12:22:09]SAM_PROTO_SignData done [12:22:09]FM_MakeSignedData done [12:22:09]CreateOFDProtocolMessage [12:22:09]wFMCommunicate request_size=4 [12:22:09]MH_SAM_APDU [12:22:09]CAPDU: 80 11 00 00 [12:22:09]Write to MH i2c: E2 08 00 69 1E 80 11 00 00 00 00 00 00 01 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:09]Read from MH i2c: E2 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 17 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: E2 17 00 69 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 5C [12:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:22:09]wFMCommunicate OK [12:22:09]CreateOFDProtocolMessage done [12:22:09]OFDSenderStorePacket 31745 [12:22:09]StoreOFDPacket docnum=31745 [12:22:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3F 01 00 00 37 03 37 01 D6 18 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F3 65 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 01 7C 00 00 35 04 06 00 B9 B9 8C EF AA 0B F5 23 71 FE 1F 88 5E 6F [12:22:09]CheckFolder [12:22:09]dirname=/storage/ofd_packets [12:22:09]CheckFolder done [12:22:09]ProducePacketName [12:22:09]name=ofd_packets/00031745 [12:22:09]NVStorageSaveData ofd_packets/00031745 [12:22:09]File name is /storage/ofd_packets/00031745 [12:22:09]Write 349 bytes [12:22:09]NVStorageSaveData done [12:22:09]OFDSenderStorePacket done [12:22:09]KKMCreateOFDPacket done [12:22:09]NVStorageSaveData kkm_last_timestamp [12:22:09]File name is /storage/kkm_last_timestamp [12:22:09]Write 4 bytes [12:22:09]NVStorageSaveData done [12:22:09]ExternCall_PrintAddStr [12:22:09]wPrintStart [12:22:09]Write to MH i2c: 01 00 00 6A 1E 88 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 07 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 07 00 6A 1E 00 00 00 00 00 FF 0F 9D [12:22:09]RasterBufferAndPrint [12:22:09]line Счет N : (3)214326 [12:22:09]line ИНН: 02508201610067 [12:22:09]line Контрольно-Кассовый Чек [12:22:09]line ПРОДАЖА [12:22:09]line Товар: 9780225379418 [12:22:09]line Подарочная топливная карта 5000с [12:22:09]line 1.000 * 5000.00 [12:22:09]line = 5000.00 [12:22:09]line НДС 12% НСП 1% [12:22:09]line > о реализуемом товаре [12:22:09]line ИТОГО: 5000.00 [12:22:09]line НСП 1% : 44.25 [12:22:09]line НДС 12% : 530.97 [12:22:09]line Наличными: 5000.00 [12:22:09]line Безнал.: 0.00 [12:22:09]line Место: АЗС № 140 "Партнер Нефть" [12:22:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:22:09]line СНО: Общий режим [12:22:09]line Чек 64 16.07.2024 12:22 [12:22:09]line Смена: 371 ФФД: 1.0 [12:22:09]line ЗНМ: 0300000189 [12:22:09]line РНМ: 0000000000098025 [12:22:09]line Версия ККМ: 001 [12:22:09]line ФМ: 0000000000965389 [12:22:09]line ФД: 31745 [12:22:09]line ФПД: 204206584605195 [12:22:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T122211&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31745&fm=204206584605195&tin=02508201610067®Number=0000000000098025&sum=500000 [12:22:09]line 0 [12:22:09]OFD Sender: Processing packet 31745 [packets to send 6, broken 5] [12:22:09]ProducePacketName [12:22:09]name=ofd_packets/00031745 [12:22:09]OFD Sender: To server: pG, [12:22:09]CommunicateWithHost lk.salyk.kg:30040 [12:22:09]ConnectInit lk.salyk.kg [12:22:09]written 0, free lines is 4095 [12:22:09]Connected sock=10 [12:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3F 01 00 00 37 03 37 01 D6 18 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 39 37 38 30 32 32 35 33 37 39 34 31 38 06 04 39 00 D0 9F D0 BE D0 B4 D0 B0 D1 80 D0 BE D1 87 D0 BD D0 B0 D1 8F 20 D1 82 D0 BE D0 BF D0 BB D0 B8 D0 B2 D0 BD D0 B0 D1 8F 20 D0 BA D0 B0 D1 80 D1 82 D0 B0 20 35 30 30 30 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 20 A1 07 00 00 00 13 04 06 00 20 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 69 CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 F3 65 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 01 7C 00 00 35 04 06 00 B9 B9 8C EF AA 0B F5 23 71 FE 1F 88 5E 6F [12:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 E8 B0 47 00 29 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 35 33 38 39 10 04 04 00 01 7C 00 00 F4 03 04 00 01 12 96 66 B6 04 01 00 00 8E 32 4C B6 52 79 31 B8 [12:22:09]CommunicateWithHost err = 0 [12:22:09]CheckOFDResponse [12:22:09]1017 (14) - 77093643461234 [12:22:09]1041 (16) - 0000000000965389 [12:22:09]1040 (4) - 31745 [12:22:09]1012 (4) - 16.07.2024 06:24 [12:22:09]1206 (1) - 0 [12:22:09]OFD Sender: Remove packet 31745 [12:22:09]ProducePacketName [12:22:09]name=ofd_packets/00031745 [12:22:09]NVStorageDeleteData [12:22:09]Write to MH i2c: 01 00 00 93 1E B1 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 07 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: 01 07 00 93 1E 00 00 00 00 00 E4 0C A8 [12:22:09]RasterBufferAndPrint [12:22:09]line [12:22:09]line [12:22:09]line [12:22:09]line [12:22:09]line [12:22:09]written 0, free lines is 3306 [12:22:09]MH_Cut [12:22:09]Write to MH i2c: D1 01 00 9A 1E 01 8A [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: D1 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: D1 01 00 [12:22:09]MH_I2C_Read... [12:22:09]Read from MH i2c: D1 01 00 9A 1E 00 89 [12:22:09]Write to MH i2c: 01 00 00 9B 1E B9 [12:22:09]Write i2c OK [12:22:09]MH_I2C_Read... [12:22:10]OFD Sender: No OFD packet to send [12:22:10]*** Cut start [12:22:10]*** Partial cut [12:22:10]*** CUTSNS_PIN = 1 [12:22:10]*** CUTSNS_PIN = 0 [12:22:10]*** Brake cut motor [12:22:11]Read from MH i2c: 01 [12:22:11]MH_I2C_Read... [12:22:11]*** Stop cut motor [12:22:11]*** Cut end [12:22:11]Read from MH i2c: 01 07 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: 01 07 00 9B 1E 00 00 00 00 00 FF 0F CE [12:22:11]process_action close_receipt done [12:22:11]requested_data is exist [12:22:11]produce_requested_data [12:22:11]requested_item fm.sn is exist - process it [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 11 00 00 [12:22:11]Write to MH i2c: E2 08 00 9C 1E 80 11 00 00 00 00 00 00 34 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 17 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 17 00 9C 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8F [12:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:22:11]wFMCommunicate OK [12:22:11]requested_item fd.num is exist - process it [12:22:11]SAM_PROTO_GetFieldsCounters [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 13 00 00 [12:22:11]Write to MH i2c: E2 08 00 9D 1E 80 13 00 00 00 00 00 00 37 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 62 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 62 00 9D 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 01 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [12:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 01 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:11]wFMCommunicate OK [12:22:11]SAM_PROTO_GetFieldsCounters done [12:22:11]requested_item shift.num is exist - process it [12:22:11]requested_item shift.opened is exist - process it [12:22:11]req_shift_opened [12:22:11]FM_GetShiftState [12:22:11]SAM_PROTO_GetShiftState [12:22:11]wFMCommunicate request_size=4 [12:22:11]MH_SAM_APDU [12:22:11]CAPDU: 80 13 01 00 [12:22:11]Write to MH i2c: E2 08 00 9E 1E 80 13 01 00 00 00 00 00 39 [12:22:11]Write i2c OK [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 [12:22:11]MH_I2C_Read... [12:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:11]Read from MH i2c: E2 0E 00 [12:22:11]MH_I2C_Read... [12:22:11]Read from MH i2c: E2 0E 00 9E 1E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 88 [12:22:11]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:22:11]wFMCommunicate OK [12:22:11]SAM_PROTO_GetShiftState done [12:22:11]FM_GetShiftState done [12:22:11]req_shift_opened done [12:22:11]requested_item shift.open_date is exist - process it [12:22:11]req_shift_open_date [12:22:11]req_shift_open_date done [12:22:11]produce_requested_data done [12:22:11]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31745,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:22:11]process_action_free close_receipt [12:22:11]json_value_free [12:22:11]json_value_free done [12:22:11]process_json_proto returns [12:22:11]Send response to host [12:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31745,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:22:11]free response buf [12:22:11]execute_script done [12:22:11]execute_script returns [12:22:11]free content buf [12:22:11]Sock 9.Close socket [12:22:11]Sock 9.Thread stoped [12:22:15]OFD Sender: No OFD packet to send [12:22:20]OFD Sender: No OFD packet to send [12:22:25]OFD Sender: No OFD packet to send [12:22:30]OFD Sender: No OFD packet to send [12:22:35]OFD Sender: No OFD packet to send [12:22:40]OFD Sender: No OFD packet to send [12:22:45]OFD Sender: No OFD packet to send [12:22:50]OFD Sender: No OFD packet to send [12:22:55]OFD Sender: No OFD packet to send [12:23:00]OFD Sender: No OFD packet to send [12:23:05]OFD Sender: No OFD packet to send [12:23:10]OFD Sender: No OFD packet to send [12:23:15]OFD Sender: No OFD packet to send [12:23:20]OFD Sender: No OFD packet to send [12:23:25]OFD Sender: No OFD packet to send [12:23:30]OFD Sender: No OFD packet to send [12:23:35]OFD Sender: No OFD packet to send [12:23:40]OFD Sender: No OFD packet to send [12:23:45]OFD Sender: No OFD packet to send [12:23:50]OFD Sender: No OFD packet to send [12:23:55]OFD Sender: No OFD packet to send [12:24:00]OFD Sender: No OFD packet to send [12:24:05]OFD Sender: No OFD packet to send [12:24:10]OFD Sender: No OFD packet to send [12:24:15]OFD Sender: No OFD packet to send [12:24:20]OFD Sender: No OFD packet to send [12:24:25]OFD Sender: No OFD packet to send [12:24:30]OFD Sender: No OFD packet to send [12:24:35]OFD Sender: No OFD packet to send [12:24:40]OFD Sender: No OFD packet to send [12:24:45]OFD Sender: No OFD packet to send [12:24:50]OFD Sender: No OFD packet to send [12:24:55]OFD Sender: No OFD packet to send [12:25:00]OFD Sender: No OFD packet to send [12:25:05]OFD Sender: No OFD packet to send [12:25:10]OFD Sender: No OFD packet to send [12:25:15]OFD Sender: No OFD packet to send [12:25:20]OFD Sender: No OFD packet to send [12:25:25]OFD Sender: No OFD packet to send [12:25:30]OFD Sender: No OFD packet to send [12:25:35]OFD Sender: No OFD packet to send [12:25:40]OFD Sender: No OFD packet to send [12:25:45]OFD Sender: No OFD packet to send [12:25:50]OFD Sender: No OFD packet to send [12:25:55]OFD Sender: No OFD packet to send [12:26:00]OFD Sender: No OFD packet to send [12:26:05]OFD Sender: No OFD packet to send [12:26:10]OFD Sender: No OFD packet to send [12:26:15]OFD Sender: No OFD packet to send [12:26:20]OFD Sender: No OFD packet to send [12:26:25]OFD Sender: No OFD packet to send [12:26:30]OFD Sender: No OFD packet to send [12:26:35]OFD Sender: No OFD packet to send [12:26:40]OFD Sender: No OFD packet to send [12:26:45]OFD Sender: No OFD packet to send [12:26:50]OFD Sender: No OFD packet to send [12:26:52]accept exits with 7 [12:26:52]New connection [12:26:52]New thread 3066821988 created [12:26:52]Thread 3066965348 joined [12:26:52]Waiting for new connection... [12:26:52] Sock 7.Parse request [12:26:52]Sock 7.Check first char [12:26:52]Sock 7.First char is OK [12:26:52]request: POST /json_proto HTTP/1.0 [12:26:52]Method: POST [12:26:52]URL: /json_proto [12:26:52]Method is POST - this is cgi request [12:26:52]url: /json_proto [12:26:52]query_string will be loaded in cgi processing [12:26:52]execute_cgi json_proto POST (null) [12:26:52]execute_cgi path=json_proto method=POST [12:26:52]POST find Content-Length [12:26:52]Host: 172.17.39.68:8080 [12:26:52]Content-Length: 983 [12:26:52]Content-Type: application/json [12:26:52] [12:26:52]POST finish read [12:26:52]Found Content-Length = 983 [12:26:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214327", "tax_sys" : 0, "items" : [ { "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 3.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 535.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:52]execute_script... [12:26:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214327", "tax_sys" : 0, "items" : [ { "code": "2000027340020", "name": "\u041F\u0430\u043A\u0435\u0442 \u0431\u0443\u043C\u0430\u0436\u043D\u044B\u0439 \u0432\u0438\u0442\u0430\u044F \u0440\u0443\u0447\u043A\u0430", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 3.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 535.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:52]POST & json_proto [12:26:52]process_json_proto [12:26:52]json parsed OK: [12:26:52]protocol is kg_v1.0 [12:26:52]action value=close_receipt [12:26:52]process_action close_receipt [12:26:52]cmd_close_receipt [12:26:52]MH_GetDate [12:26:52]Write to MH i2c: F0 00 00 9F 1E AC [12:26:52]Write i2c OK [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: F0 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: F0 09 00 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: F0 09 00 9F 1E 00 11 67 96 66 D6 48 95 66 42 [12:26:52]GetLastDocTimeStamp 1721132531 [12:26:52]current date 1721132817 [12:26:52]FM_GetShiftState [12:26:52]SAM_PROTO_GetShiftState [12:26:52]wFMCommunicate request_size=4 [12:26:52]MH_SAM_APDU [12:26:52]CAPDU: 80 13 01 00 [12:26:52]Write to MH i2c: E2 08 00 A0 1E 80 13 01 00 00 00 00 00 3B [12:26:52]Write i2c OK [12:26:52]MH_I2C_Read... [12:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:52]Read from MH i2c: E2 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: E2 0E 00 [12:26:52]MH_I2C_Read... [12:26:52]Read from MH i2c: E2 0E 00 A0 1E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 8A [12:26:52]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:26:52]wFMCommunicate OK [12:26:52]SAM_PROTO_GetShiftState done [12:26:52]FM_GetShiftState done [12:26:52]opened in 1721088399 [12:26:52]opened+sec_in_day 1721174799 [12:26:52]quantity*price = 2500 [12:26:52]sum+1 = 2501 [12:26:52]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480357 Пиво шахтерское 1л ПЭТ 3.000 * 170.00 = 510.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 535.00 НСП 1% : 4.73 НДС 12% : 56.81 Наличными: 535.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 65 16.07.2024 12:26 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31746 ФПД: 226647815732109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T122657&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31746&fm=226647815732109&tin=02508201610067®Number=0000000000098025&sum=53500 0 [12:26:53]StoreToDocumentArchive [12:26:53]shift 371 fd 31746 [12:26:53]save to /storage/0371/doc_00031746 [12:26:53]save last doc name /storage/0371/doc_00031746 to /storage/kkm_last_doc_name [12:26:53]save OK [12:26:53]Clear old archive folders... [12:26:53]ProcessDocumentItem done err = 0, tmpTLVsize=403 [12:26:53]tlvbuf is 014E6BA0 [12:26:53]SAM_PROTO_ClearQueue [12:26:53]wFMCommunicate request_size=4 [12:26:53]MH_SAM_APDU [12:26:53]CAPDU: 80 09 00 00 [12:26:53]Write to MH i2c: E2 08 00 AD 1E 80 09 00 00 00 00 00 00 3D [12:26:53]Write i2c OK [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 [12:26:53]MH_I2C_Read... [12:26:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:53]Read from MH i2c: E2 03 00 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 03 00 AD 1E 00 90 00 3F [12:26:53]RAPDU: 90 00 [12:26:53]wFMCommunicate OK [12:26:53]SAM_PROTO_ClearQueue done [12:26:53]KKMCreateOFDPacket [12:26:53]OFDProtocolAddRootSTLVToBuf [12:26:53]FM_MakeSignedData [12:26:53]FM_MakeSignedData [12:26:53]SAM_PROTO_SignData [12:26:53]wFMCommunicate request_size=4 [12:26:53]MH_SAM_APDU [12:26:53]CAPDU: 80 0D 01 02 [12:26:53]Write to MH i2c: E2 08 00 AE 1E 80 0D 01 02 00 00 00 00 45 [12:26:53]Write i2c OK [12:26:53]MH_I2C_Read... [12:26:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:53]Read from MH i2c: E2 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 03 00 [12:26:53]MH_I2C_Read... [12:26:53]Read from MH i2c: E2 03 00 AE 1E 00 90 00 40 [12:26:53]RAPDU: 90 00 [12:26:53]wFMCommunicate OK [12:26:53]wFMCommunicate request_size=255 [12:26:53]MH_SAM_APDU [12:26:53]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 [12:26:53]Write to MH i2c: E2 02 01 AF 1E 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 79 [12:26:53]Write i2c OK [12:26:53]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 AF 1E 00 90 00 41 [12:26:54]RAPDU: 90 00 [12:26:54]wFMCommunicate OK [12:26:54]wFMCommunicate request_size=162 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 0D 02 02 9D 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 16 00 00 00 00 07 04 06 00 FC D0 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 11 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 02 7C 00 00 35 04 06 00 CE 22 8E 8B BB 8D [12:26:54]Write to MH i2c: E2 A5 00 B0 1E 80 0D 02 02 9D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 16 00 00 00 00 07 04 06 00 FC D0 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 11 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 02 7C 00 00 35 04 06 00 CE 22 8E 8B BB 8D 00 00 AB [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 03 00 B0 1E 00 90 00 42 [12:26:54]RAPDU: 90 00 [12:26:54]wFMCommunicate OK [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 0D 03 02 [12:26:54]Write to MH i2c: E2 08 00 B1 1E 80 0D 03 02 00 00 00 00 4A [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 0B 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 0B 00 B1 1E 00 51 10 BD D8 9E FB 2E 58 90 00 60 [12:26:54]RAPDU: 51 10 BD D8 9E FB 2E 58 90 00 [12:26:54]wFMCommunicate OK [12:26:54]SAM_PROTO_SignData done [12:26:54]FM_MakeSignedData done [12:26:54]CreateOFDProtocolMessage [12:26:54]wFMCommunicate request_size=4 [12:26:54]MH_SAM_APDU [12:26:54]CAPDU: 80 11 00 00 [12:26:54]Write to MH i2c: E2 08 00 B2 1E 80 11 00 00 00 00 00 00 4A [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:54]Read from MH i2c: E2 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 17 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: E2 17 00 B2 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A5 [12:26:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:26:54]wFMCommunicate OK [12:26:54]CreateOFDProtocolMessage done [12:26:54]OFDSenderStorePacket 31746 [12:26:54]StoreOFDPacket docnum=31746 [12:26:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A7 01 00 00 04 51 9F 01 E4 1D 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 16 00 00 00 00 07 04 06 00 FC D0 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 11 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 02 7C 00 00 35 04 06 00 CE 22 8E 8B BB 8D 51 10 BD D8 9E FB 2E 58 [12:26:54]CheckFolder [12:26:54]dirname=/storage/ofd_packets [12:26:54]CheckFolder done [12:26:54]ProducePacketName [12:26:54]name=ofd_packets/00031746 [12:26:54]NVStorageSaveData ofd_packets/00031746 [12:26:54]File name is /storage/ofd_packets/00031746 [12:26:54]Write 453 bytes [12:26:54]NVStorageSaveData done [12:26:54]OFDSenderStorePacket done [12:26:54]KKMCreateOFDPacket done [12:26:54]NVStorageSaveData kkm_last_timestamp [12:26:54]File name is /storage/kkm_last_timestamp [12:26:54]Write 4 bytes [12:26:54]NVStorageSaveData done [12:26:54]ExternCall_PrintAddStr [12:26:54]wPrintStart [12:26:54]Write to MH i2c: 01 00 00 B3 1E D1 [12:26:54]Write i2c OK [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: 01 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: 01 07 00 [12:26:54]MH_I2C_Read... [12:26:54]Read from MH i2c: 01 07 00 B3 1E 00 00 00 00 00 FF 0F E6 [12:26:54]RasterBufferAndPrint [12:26:54]line Счет N : (3)214327 [12:26:54]line ИНН: 02508201610067 [12:26:54]line Контрольно-Кассовый Чек [12:26:54]line ПРОДАЖА [12:26:54]line Товар: 2000027340020 [12:26:54]line Пакет бумажный витая ручка [12:26:54]line 1.000 * 25.00 [12:26:54]line = 25.00 [12:26:54]line НДС 12% НСП 1% [12:26:54]line > о реализуемом товаре [12:26:54]line Товар: 4700000480357 [12:26:54]line Пиво шахтерское 1л ПЭТ [12:26:54]line 3.000 * 170.00 [12:26:54]line = 510.00 [12:26:54]line НДС 12% НСП 1% [12:26:54]line > о реализуемом товаре [12:26:54]line ИТОГО: 535.00 [12:26:54]line НСП 1% : 4.73 [12:26:54]line НДС 12% : 56.81 [12:26:54]line Наличными: 535.00 [12:26:54]line Безнал.: 0.00 [12:26:54]line Место: АЗС № 140 "Партнер Нефть" [12:26:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:26:54]line СНО: Общий режим [12:26:54]line Чек 65 16.07.2024 12:26 [12:26:54]line Смена: 371 ФФД: 1.0 [12:26:54]line ЗНМ: 0300000189 [12:26:54]line РНМ: 0000000000098025 [12:26:54]line Версия ККМ: 001 [12:26:54]line ФМ: 0000000000965389 [12:26:54]line ФД: 31746 [12:26:54]line ФПД: 226647815732109 [12:26:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T122657&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31746&fm=226647815732109&tin=02508201610067®Number=0000000000098025&sum=53500 [12:26:54]OFD Sender: Processing packet 31746 [packets to send 6, broken 5] [12:26:54]ProducePacketName [12:26:54]name=ofd_packets/00031746 [12:26:54]OFD Sender: To server: pG, [12:26:54]CommunicateWithHost lk.salyk.kg:30040 [12:26:54]ConnectInit lk.salyk.kg [12:26:54]line 0 [12:26:54]written 0, free lines is 4095 [12:26:54]Connected sock=9 [12:26:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A7 01 00 00 04 51 9F 01 E4 1D 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 32 30 30 30 30 32 37 33 34 30 30 32 30 06 04 31 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 D0 B1 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D1 82 D0 B0 D1 8F 20 D1 80 D1 83 D1 87 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC D0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D9 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 16 00 00 00 00 07 04 06 00 FC D0 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 11 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 02 7C 00 00 35 04 06 00 CE 22 8E 8B BB 8D 51 10 BD D8 9E FB 2E 58 [12:26:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 86 DE 47 00 E0 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 02 7C 00 00 F4 03 04 00 1E 13 96 66 B6 04 01 00 00 44 89 B9 E7 94 24 72 C4 [12:26:55]CommunicateWithHost err = 0 [12:26:55]CheckOFDResponse [12:26:55]1017 (14) - 77093643461234 [12:26:55]1041 (16) - 0000000000965389 [12:26:55]1040 (4) - 31746 [12:26:55]1012 (4) - 16.07.2024 06:28 [12:26:55]1206 (1) - 0 [12:26:55]OFD Sender: Remove packet 31746 [12:26:55]ProducePacketName [12:26:55]name=ofd_packets/00031746 [12:26:55]NVStorageDeleteData [12:26:55]Write to MH i2c: 01 00 00 E1 1E FF [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: 01 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: 01 07 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: 01 07 00 E1 1E 00 00 00 00 00 BA 0C CC [12:26:55]RasterBufferAndPrint [12:26:55]line [12:26:55]line [12:26:55]line [12:26:55]line [12:26:55]line [12:26:55]written 0, free lines is 3267 [12:26:55]MH_Cut [12:26:55]Write to MH i2c: D1 01 00 E8 1E 01 D8 [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: D1 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: D1 01 00 [12:26:55]MH_I2C_Read... [12:26:55]Read from MH i2c: D1 01 00 E8 1E 00 D7 [12:26:55]Write to MH i2c: 01 00 00 E9 1E 07 [12:26:55]Write i2c OK [12:26:55]MH_I2C_Read... [12:26:55]OFD Sender: No OFD packet to send [12:26:55]*** Cut start [12:26:55]*** Partial cut [12:26:55]*** CUTSNS_PIN = 1 [12:26:56]*** CUTSNS_PIN = 0 [12:26:56]*** Brake cut motor [12:26:56]Read from MH i2c: 01 [12:26:56]MH_I2C_Read... [12:26:56]*** Stop cut motor [12:26:56]*** Cut end [12:26:56]Read from MH i2c: 01 07 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: 01 07 00 E9 1E 00 00 00 00 00 FF 0F 1C [12:26:56]process_action close_receipt done [12:26:56]requested_data is exist [12:26:56]produce_requested_data [12:26:56]requested_item fm.sn is exist - process it [12:26:56]wFMCommunicate request_size=4 [12:26:56]MH_SAM_APDU [12:26:56]CAPDU: 80 11 00 00 [12:26:56]Write to MH i2c: E2 08 00 EA 1E 80 11 00 00 00 00 00 00 82 [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:56]Read from MH i2c: E2 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 17 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 17 00 EA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DD [12:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:26:56]wFMCommunicate OK [12:26:56]requested_item fd.num is exist - process it [12:26:56]SAM_PROTO_GetFieldsCounters [12:26:56]wFMCommunicate request_size=4 [12:26:56]MH_SAM_APDU [12:26:56]CAPDU: 80 13 00 00 [12:26:56]Write to MH i2c: E2 08 00 EB 1E 80 13 00 00 00 00 00 00 85 [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:56]Read from MH i2c: E2 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 62 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 62 00 EB 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 02 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [12:26: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 02 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:56]wFMCommunicate OK [12:26:56]SAM_PROTO_GetFieldsCounters done [12:26:56]requested_item shift.num is exist - process it [12:26:56]requested_item shift.opened is exist - process it [12:26:56]req_shift_opened [12:26:56]FM_GetShiftState [12:26:56]SAM_PROTO_GetShiftState [12:26:56]wFMCommunicate request_size=4 [12:26:56]MH_SAM_APDU [12:26:56]CAPDU: 80 13 01 00 [12:26:56]Write to MH i2c: E2 08 00 EC 1E 80 13 01 00 00 00 00 00 87 [12:26:56]Write i2c OK [12:26:56]MH_I2C_Read... [12:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:56]Read from MH i2c: E2 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 0E 00 [12:26:56]MH_I2C_Read... [12:26:56]Read from MH i2c: E2 0E 00 EC 1E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 D6 [12:26:56]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:26:56]wFMCommunicate OK [12:26:56]SAM_PROTO_GetShiftState done [12:26:56]FM_GetShiftState done [12:26:56]req_shift_opened done [12:26:56]requested_item shift.open_date is exist - process it [12:26:56]req_shift_open_date [12:26:56]req_shift_open_date done [12:26:56]produce_requested_data done [12:26:56]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31746,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:26:56]process_action_free close_receipt [12:26:56]json_value_free [12:26:56]json_value_free done [12:26:56]process_json_proto returns [12:26:56]Send response to host [12:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31746,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:26:56]free response buf [12:26:56]execute_script done [12:26:56]execute_script returns [12:26:56]free content buf [12:26:56]Sock 7.Close socket [12:26:56]Sock 7.Thread stoped [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:22]accept exits with 10 [12:27:22]New connection [12:27:22]New thread 3066965348 created [12:27:22]Thread 3066821988 joined [12:27:22]Waiting for new connection... [12:27:22] Sock 10.Parse request [12:27:22]Sock 10.Check first char [12:27:22]Sock 10.First char is OK [12:27:22]request: POST /json_proto HTTP/1.0 [12:27:22]Method: POST [12:27:22]URL: /json_proto [12:27:22]Method is POST - this is cgi request [12:27:22]url: /json_proto [12:27:22]query_string will be loaded in cgi processing [12:27:22]execute_cgi json_proto POST (null) [12:27:22]execute_cgi path=json_proto method=POST [12:27:22]POST find Content-Length [12:27:22]Host: 172.17.39.68:8080 [12:27:22]Content-Length: 956 [12:27:22]Content-Type: application/json [12:27:22] [12:27:22]POST finish read [12:27:22]Found Content-Length = 956 [12:27:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214328", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 219.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:22]execute_script... [12:27: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)214328", "tax_sys" : 0, "items" : [ { "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 219.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:22]POST & json_proto [12:27:22]process_json_proto [12:27:22]json parsed OK: [12:27:22]protocol is kg_v1.0 [12:27:22]action value=close_receipt [12:27:22]process_action close_receipt [12:27:22]cmd_close_receipt [12:27:22]MH_GetDate [12:27:22]Write to MH i2c: F0 00 00 ED 1E FA [12:27:22]Write i2c OK [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: F0 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: F0 09 00 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: F0 09 00 ED 1E 00 2F 67 96 66 D6 48 95 66 AE [12:27:22]GetLastDocTimeStamp 1721132817 [12:27:22]current date 1721132847 [12:27:22]FM_GetShiftState [12:27:22]SAM_PROTO_GetShiftState [12:27:22]wFMCommunicate request_size=4 [12:27:22]MH_SAM_APDU [12:27:22]CAPDU: 80 13 01 00 [12:27:22]Write to MH i2c: E2 08 00 EE 1E 80 13 01 00 00 00 00 00 89 [12:27:22]Write i2c OK [12:27:22]MH_I2C_Read... [12:27:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:22]Read from MH i2c: E2 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: E2 0E 00 [12:27:22]MH_I2C_Read... [12:27:22]Read from MH i2c: E2 0E 00 EE 1E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 D8 [12:27:22]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:27:22]wFMCommunicate OK [12:27:22]SAM_PROTO_GetShiftState done [12:27:22]FM_GetShiftState done [12:27:22]opened in 1721088399 [12:27:22]opened+sec_in_day 1721174799 [12:27:22]quantity*price = 20500 [12:27:22]sum+1 = 20501 [12:27:22]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 219.00 НСП 1% : 1.93 НДС 12% : 23.26 Наличными: 219.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 66 16.07.2024 12:27 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31747 ФПД: 52664374781927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T122727&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31747&fm=52664374781927&tin=02508201610067®Number=0000000000098025&sum=21900 0 [12:27:23]StoreToDocumentArchive [12:27:23]shift 371 fd 31747 [12:27:23]save to /storage/0371/doc_00031747 [12:27:23]save last doc name /storage/0371/doc_00031747 to /storage/kkm_last_doc_name [12:27:23]save OK [12:27:23]Clear old archive folders... [12:27:23]ProcessDocumentItem done err = 0, tmpTLVsize=397 [12:27:23]tlvbuf is 0149B460 [12:27:23]SAM_PROTO_ClearQueue [12:27:23]wFMCommunicate request_size=4 [12:27:23]MH_SAM_APDU [12:27:23]CAPDU: 80 09 00 00 [12:27:23]Write to MH i2c: E2 08 00 FB 1E 80 09 00 00 00 00 00 00 8B [12:27:23]Write i2c OK [12:27:23]MH_I2C_Read... [12:27:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:23]Read from MH i2c: E2 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 03 00 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 03 00 FB 1E 00 90 00 8D [12:27:23]RAPDU: 90 00 [12:27:23]wFMCommunicate OK [12:27:23]SAM_PROTO_ClearQueue done [12:27:23]KKMCreateOFDPacket [12:27:23]OFDProtocolAddRootSTLVToBuf [12:27:23]FM_MakeSignedData [12:27:23]FM_MakeSignedData [12:27:23]SAM_PROTO_SignData [12:27:23]wFMCommunicate request_size=4 [12:27:23]MH_SAM_APDU [12:27:23]CAPDU: 80 0D 01 02 [12:27:23]Write to MH i2c: E2 08 00 FC 1E 80 0D 01 02 00 00 00 00 93 [12:27:23]Write i2c OK [12:27:23]MH_I2C_Read... [12:27:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:23]Read from MH i2c: E2 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 03 00 [12:27:23]MH_I2C_Read... [12:27:23]Read from MH i2c: E2 03 00 FC 1E 00 90 00 8E [12:27:23]RAPDU: 90 00 [12:27:23]wFMCommunicate OK [12:27:23]wFMCommunicate request_size=255 [12:27:23]MH_SAM_APDU [12:27:23]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE 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 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 [12:27:23]Write to MH i2c: E2 02 01 FD 1E 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE 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 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 00 00 03 [12:27:23]Write i2c OK [12:27:23]MH_I2C_Read... [12:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 FD 1E 00 90 00 8F [12:27:24]RAPDU: 90 00 [12:27:24]wFMCommunicate OK [12:27:24]wFMCommunicate request_size=156 [12:27:24]MH_SAM_APDU [12:27:24]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 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 42 00 00 00 F4 03 04 00 2F 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 03 7C 00 00 35 04 06 00 2F E5 E1 59 E7 E7 [12:27:24]Write to MH i2c: E2 9F 00 FE 1E 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 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 42 00 00 00 F4 03 04 00 2F 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 03 7C 00 00 35 04 06 00 2F E5 E1 59 E7 E7 00 00 98 [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 03 00 FE 1E 00 90 00 90 [12:27:24]RAPDU: 90 00 [12:27:24]wFMCommunicate OK [12:27:24]wFMCommunicate request_size=4 [12:27:24]MH_SAM_APDU [12:27:24]CAPDU: 80 0D 03 02 [12:27:24]Write to MH i2c: E2 08 00 FF 1E 80 0D 03 02 00 00 00 00 98 [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 0B 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 0B 00 FF 1E 00 50 F5 9A B5 98 37 E4 A6 90 00 86 [12:27:24]RAPDU: 50 F5 9A B5 98 37 E4 A6 90 00 [12:27:24]wFMCommunicate OK [12:27:24]SAM_PROTO_SignData done [12:27:24]FM_MakeSignedData done [12:27:24]CreateOFDProtocolMessage [12:27:24]wFMCommunicate request_size=4 [12:27:24]MH_SAM_APDU [12:27:24]CAPDU: 80 11 00 00 [12:27:24]Write to MH i2c: E2 08 00 00 1F 80 11 00 00 00 00 00 00 99 [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:24]Read from MH i2c: E2 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 17 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: E2 17 00 00 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F4 [12:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:27:24]wFMCommunicate OK [12:27:24]CreateOFDProtocolMessage done [12:27:24]OFDSenderStorePacket 31747 [12:27:24]StoreOFDPacket docnum=31747 [12:27:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A1 01 00 00 46 73 99 01 35 4D 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE 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 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 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 42 00 00 00 F4 03 04 00 2F 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 03 7C 00 00 35 04 06 00 2F E5 E1 59 E7 E7 50 F5 9A B5 98 37 E4 A6 [12:27:24]CheckFolder [12:27:24]dirname=/storage/ofd_packets [12:27:24]CheckFolder done [12:27:24]ProducePacketName [12:27:24]name=ofd_packets/00031747 [12:27:24]NVStorageSaveData ofd_packets/00031747 [12:27:24]File name is /storage/ofd_packets/00031747 [12:27:24]Write 447 bytes [12:27:24]NVStorageSaveData done [12:27:24]OFDSenderStorePacket done [12:27:24]KKMCreateOFDPacket done [12:27:24]NVStorageSaveData kkm_last_timestamp [12:27:24]File name is /storage/kkm_last_timestamp [12:27:24]Write 4 bytes [12:27:24]NVStorageSaveData done [12:27:24]ExternCall_PrintAddStr [12:27:24]wPrintStart [12:27:24]Write to MH i2c: 01 00 00 01 1F 20 [12:27:24]Write i2c OK [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: 01 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: 01 07 00 [12:27:24]MH_I2C_Read... [12:27:24]Read from MH i2c: 01 07 00 01 1F 00 00 00 00 00 FF 0F 35 [12:27:24]RasterBufferAndPrint [12:27:24]line Счет N : (3)214328 [12:27:24]line ИНН: 02508201610067 [12:27:24]line Контрольно-Кассовый Чек [12:27:24]line ПРОДАЖА [12:27:24]line Товар: 4602441000609 [12:27:24]line Напит Дюшес 1л стекло [12:27:24]line 1.000 * 205.00 [12:27:24]line = 205.00 [12:27:24]line НДС 12% НСП 1% [12:27:24]line > о реализуемом товаре [12:27:24]line Товар: 2000053020015 [12:27:24]line Бумажные стаканы 250мл 1шт [12:27:24]line 2.000 * 7.00 [12:27:24]line = 14.00 [12:27:24]line НДС 12% НСП 1% [12:27:24]line > о реализуемом товаре [12:27:24]line ИТОГО: 219.00 [12:27:24]line НСП 1% : 1.93 [12:27:24]line НДС 12% : 23.26 [12:27:24]line Наличными: 219.00 [12:27:24]line Безнал.: 0.00 [12:27:24]line Место: АЗС № 140 "Партнер Нефть" [12:27:24]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:27:24]line СНО: Общий режим [12:27:24]line Чек 66 16.07.2024 12:27 [12:27:24]line Смена: 371 ФФД: 1.0 [12:27:24]line ЗНМ: 0300000189 [12:27:24]line РНМ: 0000000000098025 [12:27:24]line Версия ККМ: 001 [12:27:24]line ФМ: 0000000000965389 [12:27:24]line ФД: 31747 [12:27:24]line ФПД: 52664374781927 [12:27:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T122727&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31747&fm=52664374781927&tin=02508201610067®Number=0000000000098025&sum=21900 [12:27:24]line 0 [12:27:24]OFD Sender: Processing packet 31747 [packets to send 6, broken 5] [12:27:24]ProducePacketName [12:27:24]name=ofd_packets/00031747 [12:27:24]OFD Sender: To server: pG, [12:27:24]CommunicateWithHost lk.salyk.kg:30040 [12:27:24]ConnectInit lk.salyk.kg [12:27:24]written 0, free lines is 4095 [12:27:24]Connected sock=9 [12:27:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A1 01 00 00 46 73 99 01 35 4D 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE 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 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 09 00 00 00 00 07 04 06 00 8C 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 42 00 00 00 F4 03 04 00 2F 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 03 7C 00 00 35 04 06 00 2F E5 E1 59 E7 E7 50 F5 9A B5 98 37 E4 A6 [12:27:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 73 3C 47 00 30 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 03 7C 00 00 F4 03 04 00 3C 13 96 66 B6 04 01 00 00 BC 51 2D D4 81 73 21 70 [12:27:25]CommunicateWithHost err = 0 [12:27:25]CheckOFDResponse [12:27:25]1017 (14) - 77093643461234 [12:27:25]1041 (16) - 0000000000965389 [12:27:25]1040 (4) - 31747 [12:27:25]1012 (4) - 16.07.2024 06:29 [12:27:25]1206 (1) - 0 [12:27:25]OFD Sender: Remove packet 31747 [12:27:25]ProducePacketName [12:27:25]name=ofd_packets/00031747 [12:27:25]NVStorageDeleteData [12:27:25]Write to MH i2c: 01 00 00 30 1F 4F [12:27:25]Write i2c OK [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: 01 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: 01 07 00 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: 01 07 00 30 1F 00 00 00 00 00 9B 0C FD [12:27:25]RasterBufferAndPrint [12:27:25]line [12:27:25]line [12:27:25]line [12:27:25]line [12:27:25]line [12:27:25]written 0, free lines is 3233 [12:27:25]MH_Cut [12:27:25]Write to MH i2c: D1 01 00 37 1F 01 28 [12:27:25]Write i2c OK [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: D1 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: D1 01 00 [12:27:25]MH_I2C_Read... [12:27:25]Read from MH i2c: D1 01 00 37 1F 00 27 [12:27:25]Write to MH i2c: 01 00 00 38 1F 57 [12:27:25]Write i2c OK [12:27:25]MH_I2C_Read... [12:27:25]OFD Sender: No OFD packet to send [12:27:26]*** Cut start [12:27:26]*** Partial cut [12:27:26]*** CUTSNS_PIN = 1 [12:27:26]*** CUTSNS_PIN = 0 [12:27:26]*** Brake cut motor [12:27:26]Read from MH i2c: 01 [12:27:26]MH_I2C_Read... [12:27:26]*** Stop cut motor [12:27:26]*** Cut end [12:27:26]Read from MH i2c: 01 07 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: 01 07 00 38 1F 00 00 00 00 00 FF 0F 6C [12:27:26]process_action close_receipt done [12:27:26]requested_data is exist [12:27:26]produce_requested_data [12:27:26]requested_item fm.sn is exist - process it [12:27:26]wFMCommunicate request_size=4 [12:27:26]MH_SAM_APDU [12:27:26]CAPDU: 80 11 00 00 [12:27:26]Write to MH i2c: E2 08 00 39 1F 80 11 00 00 00 00 00 00 D2 [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:26]Read from MH i2c: E2 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 17 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 17 00 39 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2D [12:27:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:27:26]wFMCommunicate OK [12:27:26]requested_item fd.num is exist - process it [12:27:26]SAM_PROTO_GetFieldsCounters [12:27:26]wFMCommunicate request_size=4 [12:27:26]MH_SAM_APDU [12:27:26]CAPDU: 80 13 00 00 [12:27:26]Write to MH i2c: E2 08 00 3A 1F 80 13 00 00 00 00 00 00 D5 [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:26]Read from MH i2c: E2 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 62 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 62 00 3A 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 03 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [12:27:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 03 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:26]wFMCommunicate OK [12:27:26]SAM_PROTO_GetFieldsCounters done [12:27:26]requested_item shift.num is exist - process it [12:27:26]requested_item shift.opened is exist - process it [12:27:26]req_shift_opened [12:27:26]FM_GetShiftState [12:27:26]SAM_PROTO_GetShiftState [12:27:26]wFMCommunicate request_size=4 [12:27:26]MH_SAM_APDU [12:27:26]CAPDU: 80 13 01 00 [12:27:26]Write to MH i2c: E2 08 00 3B 1F 80 13 01 00 00 00 00 00 D7 [12:27:26]Write i2c OK [12:27:26]MH_I2C_Read... [12:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:26]Read from MH i2c: E2 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 0E 00 [12:27:26]MH_I2C_Read... [12:27:26]Read from MH i2c: E2 0E 00 3B 1F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 26 [12:27:26]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:27:26]wFMCommunicate OK [12:27:26]SAM_PROTO_GetShiftState done [12:27:26]FM_GetShiftState done [12:27:26]req_shift_opened done [12:27:26]requested_item shift.open_date is exist - process it [12:27:26]req_shift_open_date [12:27:26]req_shift_open_date done [12:27:26]produce_requested_data done [12:27:26]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31747,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:27:26]process_action_free close_receipt [12:27:26]json_value_free [12:27:26]json_value_free done [12:27:26]process_json_proto returns [12:27:26]Send response to host [12:27:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31747,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:27:26]free response buf [12:27:26]execute_script done [12:27:26]execute_script returns [12:27:26]free content buf [12:27:26]Sock 10.Close socket [12:27:26]Sock 10.Thread stoped [12:27:30]OFD Sender: No OFD packet to send [12:27:35]OFD Sender: No OFD packet to send [12:27:40]OFD Sender: No OFD packet to send [12:27:45]OFD Sender: No OFD packet to send [12:27:50]OFD Sender: No OFD packet to send [12:27:55]OFD Sender: No OFD packet to send [12:27:57]accept exits with 7 [12:27:57]New connection [12:27:57]New thread 3066821988 created [12:27:57]Thread 3066965348 joined [12:27:57]Waiting for new connection... [12:27:57] Sock 7.Parse request [12:27:57]Sock 7.Check first char [12:27:57]Sock 7.First char is OK [12:27:57]request: POST /json_proto HTTP/1.0 [12:27:57]Method: POST [12:27:57]URL: /json_proto [12:27:57]Method is POST - this is cgi request [12:27:57]url: /json_proto [12:27:57]query_string will be loaded in cgi processing [12:27:57]execute_cgi json_proto POST (null) [12:27:57]execute_cgi path=json_proto method=POST [12:27:57]POST find Content-Length [12:27:57]Host: 172.17.39.68:8080 [12:27:57]Content-Length: 601 [12:27:57]Content-Type: application/json [12:27:57] [12:27:57]POST finish read [12:27:57]Found Content-Length = 601 [12:27:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214329", "tax_sys" : 0, "items" : [ { "code": "46153715", "name": "\u0420/\u0436 Orbit XXL white bubblemint 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:57]execute_script... [12:27: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)214329", "tax_sys" : 0, "items" : [ { "code": "46153715", "name": "\u0420/\u0436 Orbit XXL white bubblemint 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:57]POST & json_proto [12:27:57]process_json_proto [12:27:57]json parsed OK: [12:27:57]protocol is kg_v1.0 [12:27:57]action value=close_receipt [12:27:57]process_action close_receipt [12:27:57]cmd_close_receipt [12:27:57]MH_GetDate [12:27:57]Write to MH i2c: F0 00 00 3C 1F 4A [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: F0 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: F0 09 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: F0 09 00 3C 1F 00 51 67 96 66 D6 48 95 66 20 [12:27:57]GetLastDocTimeStamp 1721132847 [12:27:57]current date 1721132881 [12:27:57]FM_GetShiftState [12:27:57]SAM_PROTO_GetShiftState [12:27:57]wFMCommunicate request_size=4 [12:27:57]MH_SAM_APDU [12:27:57]CAPDU: 80 13 01 00 [12:27:57]Write to MH i2c: E2 08 00 3D 1F 80 13 01 00 00 00 00 00 D9 [12:27:57]Write i2c OK [12:27:57]MH_I2C_Read... [12:27:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:57]Read from MH i2c: E2 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 0E 00 [12:27:57]MH_I2C_Read... [12:27:57]Read from MH i2c: E2 0E 00 3D 1F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 28 [12:27:57]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:27:57]wFMCommunicate OK [12:27:57]SAM_PROTO_GetShiftState done [12:27:57]FM_GetShiftState done [12:27:57]opened in 1721088399 [12:27:57]opened+sec_in_day 1721174799 [12:27:57]quantity*price = 5100 [12:27:57]sum+1 = 5101 [12:27:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 51.00 НСП 1% : 0.45 НДС 12% : 5.42 Наличными: 51.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 67 16.07.2024 12:28 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31748 ФПД: 70979747374758 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T122801&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31748&fm=70979747374758&tin=02508201610067®Number=0000000000098025&sum=5100 0 [12:27:58]StoreToDocumentArchive [12:27:58]shift 371 fd 31748 [12:27:58]save to /storage/0371/doc_00031748 [12:27:58]save last doc name /storage/0371/doc_00031748 to /storage/kkm_last_doc_name [12:27:58]save OK [12:27:58]Clear old archive folders... [12:27:58]ProcessDocumentItem done err = 0, tmpTLVsize=276 [12:27:58]tlvbuf is B6EC4B50 [12:27:58]SAM_PROTO_ClearQueue [12:27:58]wFMCommunicate request_size=4 [12:27:58]MH_SAM_APDU [12:27:58]CAPDU: 80 09 00 00 [12:27:58]Write to MH i2c: E2 08 00 4A 1F 80 09 00 00 00 00 00 00 DB [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:58]Read from MH i2c: E2 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 03 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 03 00 4A 1F 00 90 00 DD [12:27:58]RAPDU: 90 00 [12:27:58]wFMCommunicate OK [12:27:58]SAM_PROTO_ClearQueue done [12:27:58]KKMCreateOFDPacket [12:27:58]OFDProtocolAddRootSTLVToBuf [12:27:58]FM_MakeSignedData [12:27:58]FM_MakeSignedData [12:27:58]SAM_PROTO_SignData [12:27:58]wFMCommunicate request_size=4 [12:27:58]MH_SAM_APDU [12:27:58]CAPDU: 80 0D 01 02 [12:27:58]Write to MH i2c: E2 08 00 4B 1F 80 0D 01 02 00 00 00 00 E3 [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:58]Read from MH i2c: E2 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 03 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 03 00 4B 1F 00 90 00 DE [12:27:58]RAPDU: 90 00 [12:27:58]wFMCommunicate OK [12:27:58]wFMCommunicate request_size=255 [12:27:58]MH_SAM_APDU [12:27:58]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 43 00 00 00 F4 03 04 00 51 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [12:27:58]Write to MH i2c: E2 02 01 4C 1F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 43 00 00 00 F4 03 04 00 51 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 9D [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:58]Read from MH i2c: E2 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 03 00 [12:27:58]MH_I2C_Read... [12:27:58]Read from MH i2c: E2 03 00 4C 1F 00 90 00 DF [12:27:58]RAPDU: 90 00 [12:27:58]wFMCommunicate OK [12:27:58]wFMCommunicate request_size=35 [12:27:58]MH_SAM_APDU [12:27:58]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 04 7C 00 00 35 04 06 00 40 8E 42 A0 E6 A6 [12:27:58]Write to MH i2c: E2 26 00 4D 1F 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 04 7C 00 00 35 04 06 00 40 8E 42 A0 E6 A6 00 00 9D [12:27:58]Write i2c OK [12:27:58]MH_I2C_Read... [12:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:59]Read from MH i2c: E2 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 03 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 03 00 4D 1F 00 90 00 E0 [12:27:59]RAPDU: 90 00 [12:27:59]wFMCommunicate OK [12:27:59]wFMCommunicate request_size=4 [12:27:59]MH_SAM_APDU [12:27:59]CAPDU: 80 0D 03 02 [12:27:59]Write to MH i2c: E2 08 00 4E 1F 80 0D 03 02 00 00 00 00 E8 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:59]Read from MH i2c: E2 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 0B 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 0B 00 4E 1F 00 05 6A 00 F0 8A 4B 5B 59 90 00 D1 [12:27:59]RAPDU: 05 6A 00 F0 8A 4B 5B 59 90 00 [12:27:59]wFMCommunicate OK [12:27:59]SAM_PROTO_SignData done [12:27:59]FM_MakeSignedData done [12:27:59]CreateOFDProtocolMessage [12:27:59]wFMCommunicate request_size=4 [12:27:59]MH_SAM_APDU [12:27:59]CAPDU: 80 11 00 00 [12:27:59]Write to MH i2c: E2 08 00 4F 1F 80 11 00 00 00 00 00 00 E8 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:59]Read from MH i2c: E2 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 17 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: E2 17 00 4F 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 43 [12:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:27:59]wFMCommunicate OK [12:27:59]CreateOFDProtocolMessage done [12:27:59]OFDSenderStorePacket 31748 [12:27:59]StoreOFDPacket docnum=31748 [12:27:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 4E 1C 20 01 0C A8 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 43 00 00 00 F4 03 04 00 51 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 04 7C 00 00 35 04 06 00 40 8E 42 A0 E6 A6 05 6A 00 F0 8A 4B 5B 59 [12:27:59]CheckFolder [12:27:59]dirname=/storage/ofd_packets [12:27:59]CheckFolder done [12:27:59]ProducePacketName [12:27:59]name=ofd_packets/00031748 [12:27:59]NVStorageSaveData ofd_packets/00031748 [12:27:59]File name is /storage/ofd_packets/00031748 [12:27:59]Write 326 bytes [12:27:59]NVStorageSaveData done [12:27:59]OFDSenderStorePacket done [12:27:59]KKMCreateOFDPacket done [12:27:59]NVStorageSaveData kkm_last_timestamp [12:27:59]File name is /storage/kkm_last_timestamp [12:27:59]Write 4 bytes [12:27:59]NVStorageSaveData done [12:27:59]ExternCall_PrintAddStr [12:27:59]wPrintStart [12:27:59]Write to MH i2c: 01 00 00 50 1F 6F [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 07 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 07 00 50 1F 00 00 00 00 00 FF 0F 84 [12:27:59]RasterBufferAndPrint [12:27:59]line Счет N : (3)214329 [12:27:59]line ИНН: 02508201610067 [12:27:59]line Контрольно-Кассовый Чек [12:27:59]line ПРОДАЖА [12:27:59]line Товар: 46153715 [12:27:59]line Р/ж Orbit XXL white bubblemint 20,4г [12:27:59]line 1.000 * 51.00 [12:27:59]line = 51.00 [12:27:59]line НДС 12% НСП 1% [12:27:59]line > о реализуемом товаре [12:27:59]line ИТОГО: 51.00 [12:27:59]line НСП 1% : 0.45 [12:27:59]line НДС 12% : 5.42 [12:27:59]line Наличными: 51.00 [12:27:59]line Безнал.: 0.00 [12:27:59]line Место: АЗС № 140 "Партнер Нефть" [12:27:59]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:27:59]line СНО: Общий режим [12:27:59]line Чек 67 16.07.2024 12:28 [12:27:59]line Смена: 371 ФФД: 1.0 [12:27:59]line ЗНМ: 0300000189 [12:27:59]line РНМ: 0000000000098025 [12:27:59]line Версия ККМ: 001 [12:27:59]line ФМ: 0000000000965389 [12:27:59]line ФД: 31748 [12:27:59]line ФПД: 70979747374758 [12:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T122801&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31748&fm=70979747374758&tin=02508201610067®Number=0000000000098025&sum=5100 [12:27:59]line 0 [12:27:59]OFD Sender: Processing packet 31748 [packets to send 6, broken 5] [12:27:59]ProducePacketName [12:27:59]name=ofd_packets/00031748 [12:27:59]OFD Sender: To server: pG, [12:27:59]CommunicateWithHost lk.salyk.kg:30040 [12:27:59]ConnectInit lk.salyk.kg [12:27:59]written 0, free lines is 4095 [12:27:59]Connected sock=10 [12:27:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 4E 1C 20 01 0C A8 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 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 43 00 00 00 F4 03 04 00 51 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 04 7C 00 00 35 04 06 00 40 8E 42 A0 E6 A6 05 6A 00 F0 8A 4B 5B 59 [12:27:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 9E 28 47 00 7B AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 04 7C 00 00 F4 03 04 00 5F 13 96 66 B6 04 01 00 00 C2 1A B6 36 08 1F 74 A3 [12:27:59]CommunicateWithHost err = 0 [12:27:59]CheckOFDResponse [12:27:59]1017 (14) - 77093643461234 [12:27:59]1041 (16) - 0000000000965389 [12:27:59]1040 (4) - 31748 [12:27:59]1012 (4) - 16.07.2024 06:29 [12:27:59]1206 (1) - 0 [12:27:59]OFD Sender: Remove packet 31748 [12:27:59]ProducePacketName [12:27:59]name=ofd_packets/00031748 [12:27:59]NVStorageDeleteData [12:27:59]Write to MH i2c: 01 00 00 79 1F 98 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 07 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: 01 07 00 79 1F 00 00 00 00 00 EE 0C 99 [12:27:59]RasterBufferAndPrint [12:27:59]line [12:27:59]line [12:27:59]line [12:27:59]line [12:27:59]line [12:27:59]written 0, free lines is 3319 [12:27:59]MH_Cut [12:27:59]Write to MH i2c: D1 01 00 80 1F 01 71 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: D1 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: D1 01 00 [12:27:59]MH_I2C_Read... [12:27:59]Read from MH i2c: D1 01 00 80 1F 00 70 [12:27:59]Write to MH i2c: 01 00 00 81 1F A0 [12:27:59]Write i2c OK [12:27:59]MH_I2C_Read... [12:28:00]OFD Sender: No OFD packet to send [12:28:00]*** Cut start [12:28:00]*** Partial cut [12:28:00]*** CUTSNS_PIN = 1 [12:28:00]*** CUTSNS_PIN = 0 [12:28:00]*** Brake cut motor [12:28:01]Read from MH i2c: 01 [12:28:01]MH_I2C_Read... [12:28:01]*** Stop cut motor [12:28:01]*** Cut end [12:28:01]Read from MH i2c: 01 07 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: 01 07 00 81 1F 00 00 00 00 00 FF 0F B5 [12:28:01]process_action close_receipt done [12:28:01]requested_data is exist [12:28:01]produce_requested_data [12:28:01]requested_item fm.sn is exist - process it [12:28:01]wFMCommunicate request_size=4 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 11 00 00 [12:28:01]Write to MH i2c: E2 08 00 82 1F 80 11 00 00 00 00 00 00 1B [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 17 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 17 00 82 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 76 [12:28:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:28:01]wFMCommunicate OK [12:28:01]requested_item fd.num is exist - process it [12:28:01]SAM_PROTO_GetFieldsCounters [12:28:01]wFMCommunicate request_size=4 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 13 00 00 [12:28:01]Write to MH i2c: E2 08 00 83 1F 80 13 00 00 00 00 00 00 1E [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 62 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 62 00 83 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 04 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 03 [12:28:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 04 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:01]wFMCommunicate OK [12:28:01]SAM_PROTO_GetFieldsCounters done [12:28:01]requested_item shift.num is exist - process it [12:28:01]requested_item shift.opened is exist - process it [12:28:01]req_shift_opened [12:28:01]FM_GetShiftState [12:28:01]SAM_PROTO_GetShiftState [12:28:01]wFMCommunicate request_size=4 [12:28:01]MH_SAM_APDU [12:28:01]CAPDU: 80 13 01 00 [12:28:01]Write to MH i2c: E2 08 00 84 1F 80 13 01 00 00 00 00 00 20 [12:28:01]Write i2c OK [12:28:01]MH_I2C_Read... [12:28:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:01]Read from MH i2c: E2 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 0E 00 [12:28:01]MH_I2C_Read... [12:28:01]Read from MH i2c: E2 0E 00 84 1F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 6F [12:28:01]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:28:01]wFMCommunicate OK [12:28:01]SAM_PROTO_GetShiftState done [12:28:01]FM_GetShiftState done [12:28:01]req_shift_opened done [12:28:01]requested_item shift.open_date is exist - process it [12:28:01]req_shift_open_date [12:28:01]req_shift_open_date done [12:28:01]produce_requested_data done [12:28:01]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31748,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:28:01]process_action_free close_receipt [12:28:01]json_value_free [12:28:01]json_value_free done [12:28:01]process_json_proto returns [12:28:01]Send response to host [12:28:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31748,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:28:01]free response buf [12:28:01]execute_script done [12:28:01]execute_script returns [12:28:01]free content buf [12:28:01]Sock 7.Close socket [12:28:01]Sock 7.Thread stoped [12:28:02]accept exits with 9 [12:28:02]New connection [12:28:02]New thread 3066965348 created [12:28:02]Thread 3066821988 joined [12:28:02]Waiting for new connection... [12:28:02] Sock 9.Parse request [12:28:02]Sock 9.Check first char [12:28:02]Sock 9.First char is OK [12:28:02]request: POST /json_proto HTTP/1.0 [12:28:02]Method: POST [12:28:02]URL: /json_proto [12:28:02]Method is POST - this is cgi request [12:28:02]url: /json_proto [12:28:02]query_string will be loaded in cgi processing [12:28:02]execute_cgi json_proto POST (null) [12:28:02]execute_cgi path=json_proto method=POST [12:28:02]POST find Content-Length [12:28:02]Host: 172.17.39.68:8080 [12:28:02]Content-Length: 658 [12:28:02]Content-Type: application/json [12:28:02] [12:28:02]POST finish read [12:28:02]Found Content-Length = 658 [12:28:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214330", "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" ] } } [12:28:02]execute_script... [12:28: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)214330", "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" ] } } [12:28:02]POST & json_proto [12:28:02]process_json_proto [12:28:02]json parsed OK: [12:28:02]protocol is kg_v1.0 [12:28:02]action value=close_receipt [12:28:02]process_action close_receipt [12:28:02]cmd_close_receipt [12:28:02]MH_GetDate [12:28:02]Write to MH i2c: F0 00 00 85 1F 93 [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: F0 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: F0 09 00 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: F0 09 00 85 1F 00 56 67 96 66 D6 48 95 66 6E [12:28:02]GetLastDocTimeStamp 1721132881 [12:28:02]current date 1721132886 [12:28:02]FM_GetShiftState [12:28:02]SAM_PROTO_GetShiftState [12:28:02]wFMCommunicate request_size=4 [12:28:02]MH_SAM_APDU [12:28:02]CAPDU: 80 13 01 00 [12:28:02]Write to MH i2c: E2 08 00 86 1F 80 13 01 00 00 00 00 00 22 [12:28:02]Write i2c OK [12:28:02]MH_I2C_Read... [12:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:02]Read from MH i2c: E2 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: E2 0E 00 [12:28:02]MH_I2C_Read... [12:28:02]Read from MH i2c: E2 0E 00 86 1F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 71 [12:28:02]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:28:02]wFMCommunicate OK [12:28:02]SAM_PROTO_GetShiftState done [12:28:02]FM_GetShiftState done [12:28:02]opened in 1721088399 [12:28:02]opened+sec_in_day 1721174799 [12:28:02]quantity*price = 12500 [12:28:02]sum+1 = 12501 [12:28:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 68 16.07.2024 12:28 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31749 ФПД: 223383372461668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T122806&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31749&fm=223383372461668&tin=02508201610067®Number=0000000000098025&sum=12500 0 [12:28:03]StoreToDocumentArchive [12:28:03]shift 371 fd 31749 [12:28:03]save to /storage/0371/doc_00031749 [12:28:03]save last doc name /storage/0371/doc_00031749 to /storage/kkm_last_doc_name [12:28:03]save OK [12:28:03]Clear old archive folders... [12:28:03]ProcessDocumentItem done err = 0, tmpTLVsize=278 [12:28:03]tlvbuf is 01538140 [12:28:03]SAM_PROTO_ClearQueue [12:28:03]wFMCommunicate request_size=4 [12:28:03]MH_SAM_APDU [12:28:03]CAPDU: 80 09 00 00 [12:28:03]Write to MH i2c: E2 08 00 93 1F 80 09 00 00 00 00 00 00 24 [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 03 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 03 00 93 1F 00 90 00 26 [12:28:03]RAPDU: 90 00 [12:28:03]wFMCommunicate OK [12:28:03]SAM_PROTO_ClearQueue done [12:28:03]KKMCreateOFDPacket [12:28:03]OFDProtocolAddRootSTLVToBuf [12:28:03]FM_MakeSignedData [12:28:03]FM_MakeSignedData [12:28:03]SAM_PROTO_SignData [12:28:03]wFMCommunicate request_size=4 [12:28:03]MH_SAM_APDU [12:28:03]CAPDU: 80 0D 01 02 [12:28:03]Write to MH i2c: E2 08 00 94 1F 80 0D 01 02 00 00 00 00 2C [12:28:03]Write i2c OK [12:28:03]MH_I2C_Read... [12:28:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:28:03]Read from MH i2c: E2 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 03 00 [12:28:03]MH_I2C_Read... [12:28:03]Read from MH i2c: E2 03 00 94 1F 00 90 00 27 [12:28:03]RAPDU: 90 00 [12:28:03]wFMCommunicate OK [12:28:03]wFMCommunicate request_size=255 [12:28:03]MH_SAM_APDU [12:28:03]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 44 00 00 00 F4 03 04 00 56 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 [12:28:03]Write to MH i2c: E2 02 01 95 1F 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 44 00 00 00 F4 03 04 00 56 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 00 00 48 [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:04]Read from MH i2c: E2 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 03 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 03 00 95 1F 00 90 00 28 [12:28:04]RAPDU: 90 00 [12:28:04]wFMCommunicate OK [12:28:04]wFMCommunicate request_size=37 [12:28:04]MH_SAM_APDU [12:28:04]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 05 7C 00 00 35 04 06 00 CB 2A 7E 90 76 64 [12:28:04]Write to MH i2c: E2 28 00 96 1F 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 05 7C 00 00 35 04 06 00 CB 2A 7E 90 76 64 00 00 EC [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:28:04]Read from MH i2c: E2 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 03 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 03 00 96 1F 00 90 00 29 [12:28:04]RAPDU: 90 00 [12:28:04]wFMCommunicate OK [12:28:04]wFMCommunicate request_size=4 [12:28:04]MH_SAM_APDU [12:28:04]CAPDU: 80 0D 03 02 [12:28:04]Write to MH i2c: E2 08 00 97 1F 80 0D 03 02 00 00 00 00 31 [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:28:04]Read from MH i2c: E2 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 0B 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 0B 00 97 1F 00 83 9A E2 38 86 8D D8 0F 90 00 63 [12:28:04]RAPDU: 83 9A E2 38 86 8D D8 0F 90 00 [12:28:04]wFMCommunicate OK [12:28:04]SAM_PROTO_SignData done [12:28:04]FM_MakeSignedData done [12:28:04]CreateOFDProtocolMessage [12:28:04]wFMCommunicate request_size=4 [12:28:04]MH_SAM_APDU [12:28:04]CAPDU: 80 11 00 00 [12:28:04]Write to MH i2c: E2 08 00 98 1F 80 11 00 00 00 00 00 00 31 [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:04]Read from MH i2c: E2 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 17 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: E2 17 00 98 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8C [12:28:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:28:04]wFMCommunicate OK [12:28:04]CreateOFDProtocolMessage done [12:28:04]OFDSenderStorePacket 31749 [12:28:04]StoreOFDPacket docnum=31749 [12:28:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 D1 41 22 01 36 D0 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 44 00 00 00 F4 03 04 00 56 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 05 7C 00 00 35 04 06 00 CB 2A 7E 90 76 64 83 9A E2 38 86 8D D8 0F [12:28:04]CheckFolder [12:28:04]dirname=/storage/ofd_packets [12:28:04]CheckFolder done [12:28:04]ProducePacketName [12:28:04]name=ofd_packets/00031749 [12:28:04]NVStorageSaveData ofd_packets/00031749 [12:28:04]File name is /storage/ofd_packets/00031749 [12:28:04]Write 328 bytes [12:28:04]NVStorageSaveData done [12:28:04]OFDSenderStorePacket done [12:28:04]KKMCreateOFDPacket done [12:28:04]NVStorageSaveData kkm_last_timestamp [12:28:04]File name is /storage/kkm_last_timestamp [12:28:04]Write 4 bytes [12:28:04]NVStorageSaveData done [12:28:04]ExternCall_PrintAddStr [12:28:04]wPrintStart [12:28:04]Write to MH i2c: 01 00 00 99 1F B8 [12:28:04]Write i2c OK [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: 01 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: 01 07 00 [12:28:04]MH_I2C_Read... [12:28:04]Read from MH i2c: 01 07 00 99 1F 00 00 00 00 00 FF 0F CD [12:28:04]RasterBufferAndPrint [12:28:04]line Счет N : (3)214330 [12:28:04]line ИНН: 02508201610067 [12:28:04]line Контрольно-Кассовый Чек [12:28:04]line ПРОДАЖА [12:28:04]line Товар: 5449000054227 [12:28:04]line Напиток Кока-Кола 1л [12:28:04]line 1.000 * 125.00 [12:28:04]line = 125.00 [12:28:04]line НДС 12% НСП 1% [12:28:04]line > о реализуемом товаре [12:28:04]line ИТОГО: 125.00 [12:28:04]line НСП 1% : 1.11 [12:28:04]line НДС 12% : 13.27 [12:28:04]line Наличными: 125.00 [12:28:04]line Безнал.: 0.00 [12:28:04]line Место: АЗС № 140 "Партнер Нефть" [12:28:04]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:28:04]line СНО: Общий режим [12:28:04]line Чек 68 16.07.2024 12:28 [12:28:04]line Смена: 371 ФФД: 1.0 [12:28:04]line ЗНМ: 0300000189 [12:28:04]line РНМ: 0000000000098025 [12:28:04]line Версия ККМ: 001 [12:28:04]line ФМ: 0000000000965389 [12:28:04]line ФД: 31749 [12:28:04]line ФПД: 223383372461668 [12:28:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T122806&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31749&fm=223383372461668&tin=02508201610067®Number=0000000000098025&sum=12500 [12:28:04]line 0 [12:28:04]OFD Sender: Processing packet 31749 [packets to send 6, broken 5] [12:28:04]ProducePacketName [12:28:04]name=ofd_packets/00031749 [12:28:04]OFD Sender: To server: pG, [12:28:04]CommunicateWithHost lk.salyk.kg:30040 [12:28:04]ConnectInit lk.salyk.kg [12:28:04]written 0, free lines is 4095 [12:28:04]Connected sock=10 [12:28:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 D1 41 22 01 36 D0 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 44 00 00 00 F4 03 04 00 56 67 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 05 7C 00 00 35 04 06 00 CB 2A 7E 90 76 64 83 9A E2 38 86 8D D8 0F [12:28:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 77 10 47 00 EC 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 35 33 38 39 10 04 04 00 05 7C 00 00 F4 03 04 00 64 13 96 66 B6 04 01 00 00 2A 3F 7C 1B 36 51 EB 7C [12:28:05]CommunicateWithHost err = 0 [12:28:05]CheckOFDResponse [12:28:05]1017 (14) - 77093643461234 [12:28:05]1041 (16) - 0000000000965389 [12:28:05]1040 (4) - 31749 [12:28:05]1012 (4) - 16.07.2024 06:29 [12:28:05]1206 (1) - 0 [12:28:05]OFD Sender: Remove packet 31749 [12:28:05]ProducePacketName [12:28:05]name=ofd_packets/00031749 [12:28:05]NVStorageDeleteData [12:28:05]Write to MH i2c: 01 00 00 C1 1F E0 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 07 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: 01 07 00 C1 1F 00 00 00 00 00 11 0D 05 [12:28:05]RasterBufferAndPrint [12:28:05]line [12:28:05]line [12:28:05]line [12:28:05]line [12:28:05]line [12:28:05]written 0, free lines is 3358 [12:28:05]MH_Cut [12:28:05]Write to MH i2c: D1 01 00 C8 1F 01 B9 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: D1 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: D1 01 00 [12:28:05]MH_I2C_Read... [12:28:05]Read from MH i2c: D1 01 00 C8 1F 00 B8 [12:28:05]Write to MH i2c: 01 00 00 C9 1F E8 [12:28:05]Write i2c OK [12:28:05]MH_I2C_Read... [12:28:05]OFD Sender: No OFD packet to send [12:28:05]*** Cut start [12:28:05]*** Partial cut [12:28:05]*** CUTSNS_PIN = 1 [12:28:06]*** CUTSNS_PIN = 0 [12:28:06]*** Brake cut motor [12:28:06]Read from MH i2c: 01 [12:28:06]MH_I2C_Read... [12:28:06]*** Stop cut motor [12:28:06]*** Cut end [12:28:06]Read from MH i2c: 01 07 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: 01 07 00 C9 1F 00 00 00 00 00 FF 0F FD [12:28:06]process_action close_receipt done [12:28:06]requested_data is exist [12:28:06]produce_requested_data [12:28:06]requested_item fm.sn is exist - process it [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 11 00 00 [12:28:06]Write to MH i2c: E2 08 00 CA 1F 80 11 00 00 00 00 00 00 63 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 17 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 17 00 CA 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BE [12:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:28:06]wFMCommunicate OK [12:28:06]requested_item fd.num is exist - process it [12:28:06]SAM_PROTO_GetFieldsCounters [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 13 00 00 [12:28:06]Write to MH i2c: E2 08 00 CB 1F 80 13 00 00 00 00 00 00 66 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 62 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 62 00 CB 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 05 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [12:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 05 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_GetFieldsCounters done [12:28:06]requested_item shift.num is exist - process it [12:28:06]requested_item shift.opened is exist - process it [12:28:06]req_shift_opened [12:28:06]FM_GetShiftState [12:28:06]SAM_PROTO_GetShiftState [12:28:06]wFMCommunicate request_size=4 [12:28:06]MH_SAM_APDU [12:28:06]CAPDU: 80 13 01 00 [12:28:06]Write to MH i2c: E2 08 00 CC 1F 80 13 01 00 00 00 00 00 68 [12:28:06]Write i2c OK [12:28:06]MH_I2C_Read... [12:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:28:06]Read from MH i2c: E2 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0E 00 [12:28:06]MH_I2C_Read... [12:28:06]Read from MH i2c: E2 0E 00 CC 1F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B7 [12:28:06]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:28:06]wFMCommunicate OK [12:28:06]SAM_PROTO_GetShiftState done [12:28:06]FM_GetShiftState done [12:28:06]req_shift_opened done [12:28:06]requested_item shift.open_date is exist - process it [12:28:06]req_shift_open_date [12:28:06]req_shift_open_date done [12:28:06]produce_requested_data done [12:28:06]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31749,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:28:06]process_action_free close_receipt [12:28:06]json_value_free [12:28:06]json_value_free done [12:28:06]process_json_proto returns [12:28:06]Send response to host [12:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31749,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:28:06]free response buf [12:28:06]execute_script done [12:28:06]execute_script returns [12:28:06]free content buf [12:28:06]Sock 9.Close socket [12:28:06]Sock 9.Thread stoped [12:28:10]OFD Sender: No OFD packet to send [12:28:15]OFD Sender: No OFD packet to send [12:28:20]OFD Sender: No OFD packet to send [12:28:25]OFD Sender: No OFD packet to send [12:28:30]OFD Sender: No OFD packet to send [12:28:35]OFD Sender: No OFD packet to send [12:28:40]OFD Sender: No OFD packet to send [12:28:45]OFD Sender: No OFD packet to send [12:28:50]OFD Sender: No OFD packet to send [12:28:55]OFD Sender: No OFD packet to send [12:29:00]OFD Sender: No OFD packet to send [12:29:05]OFD Sender: No OFD packet to send [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:35]OFD Sender: No OFD packet to send [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:20]OFD Sender: No OFD packet to send [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:36]accept exits with 7 [12:31:36]New connection [12:31:36]New thread 3066821988 created [12:31:36]Thread 3066965348 joined [12:31:36]Waiting for new connection... [12:31:36] Sock 7.Parse request [12:31:36]Sock 7.Check first char [12:31:36]Sock 7.First char is OK [12:31:36]request: POST /json_proto HTTP/1.0 [12:31:36]Method: POST [12:31:36]URL: /json_proto [12:31:36]Method is POST - this is cgi request [12:31:36]url: /json_proto [12:31:36]query_string will be loaded in cgi processing [12:31:36]execute_cgi json_proto POST (null) [12:31:36]execute_cgi path=json_proto method=POST [12:31:36]POST find Content-Length [12:31:36]Host: 172.17.39.68:8080 [12:31:36]Content-Length: 663 [12:31:36]Content-Type: application/json [12:31:36] [12:31:36]POST finish read [12:31:36]Found Content-Length = 663 [12:31:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214331", "tax_sys" : 0, "items" : [ { "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 53.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:36]execute_script... [12:31:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214331", "tax_sys" : 0, "items" : [ { "code": "4607120854184", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 90\u0433", "price" : 53.00, "quantity" : 1.000, "sum" : 53.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 53.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:36]POST & json_proto [12:31:36]process_json_proto [12:31:36]json parsed OK: [12:31:36]protocol is kg_v1.0 [12:31:36]action value=close_receipt [12:31:36]process_action close_receipt [12:31:36]cmd_close_receipt [12:31:36]MH_GetDate [12:31:36]Write to MH i2c: F0 00 00 CD 1F DB [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: F0 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: F0 09 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: F0 09 00 CD 1F 00 2C 68 96 66 D6 48 95 66 8D [12:31:36]GetLastDocTimeStamp 1721132886 [12:31:36]current date 1721133100 [12:31:36]FM_GetShiftState [12:31:36]SAM_PROTO_GetShiftState [12:31:36]wFMCommunicate request_size=4 [12:31:36]MH_SAM_APDU [12:31:36]CAPDU: 80 13 01 00 [12:31:36]Write to MH i2c: E2 08 00 CE 1F 80 13 01 00 00 00 00 00 6A [12:31:36]Write i2c OK [12:31:36]MH_I2C_Read... [12:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:36]Read from MH i2c: E2 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 0E 00 [12:31:36]MH_I2C_Read... [12:31:36]Read from MH i2c: E2 0E 00 CE 1F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B9 [12:31:36]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:31:36]wFMCommunicate OK [12:31:36]SAM_PROTO_GetShiftState done [12:31:36]FM_GetShiftState done [12:31:36]opened in 1721088399 [12:31:36]opened+sec_in_day 1721174799 [12:31:36]quantity*price = 5300 [12:31:36]sum+1 = 5301 [12:31:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 53.00 НСП 1% : 0.47 НДС 12% : 5.63 Наличными: 53.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 69 16.07.2024 12:31 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31750 ФПД: 201057543062011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T123140&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31750&fm=201057543062011&tin=02508201610067®Number=0000000000098025&sum=5300 0 [12:31:37]StoreToDocumentArchive [12:31:37]shift 371 fd 31750 [12:31:37]save to /storage/0371/doc_00031750 [12:31:37]save last doc name /storage/0371/doc_00031750 to /storage/kkm_last_doc_name [12:31:37]save OK [12:31:37]Clear old archive folders... [12:31:37]ProcessDocumentItem done err = 0, tmpTLVsize=286 [12:31:37]tlvbuf is 0149F830 [12:31:37]SAM_PROTO_ClearQueue [12:31:37]wFMCommunicate request_size=4 [12:31:37]MH_SAM_APDU [12:31:37]CAPDU: 80 09 00 00 [12:31:37]Write to MH i2c: E2 08 00 DB 1F 80 09 00 00 00 00 00 00 6C [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:37]Read from MH i2c: E2 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 03 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 03 00 DB 1F 00 90 00 6E [12:31:37]RAPDU: 90 00 [12:31:37]wFMCommunicate OK [12:31:37]SAM_PROTO_ClearQueue done [12:31:37]KKMCreateOFDPacket [12:31:37]OFDProtocolAddRootSTLVToBuf [12:31:37]FM_MakeSignedData [12:31:37]FM_MakeSignedData [12:31:37]SAM_PROTO_SignData [12:31:37]wFMCommunicate request_size=4 [12:31:37]MH_SAM_APDU [12:31:37]CAPDU: 80 0D 01 02 [12:31:37]Write to MH i2c: E2 08 00 DC 1F 80 0D 01 02 00 00 00 00 74 [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:37]Read from MH i2c: E2 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 03 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 03 00 DC 1F 00 90 00 6F [12:31:37]RAPDU: 90 00 [12:31:37]wFMCommunicate OK [12:31:37]wFMCommunicate request_size=255 [12:31:37]MH_SAM_APDU [12:31:37]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 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 2C 68 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 [12:31:37]Write to MH i2c: E2 02 01 DD 1F 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 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 2C 68 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 00 00 96 [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:37]Read from MH i2c: E2 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 03 00 [12:31:37]MH_I2C_Read... [12:31:37]Read from MH i2c: E2 03 00 DD 1F 00 90 00 70 [12:31:37]RAPDU: 90 00 [12:31:37]wFMCommunicate OK [12:31:37]wFMCommunicate request_size=45 [12:31:37]MH_SAM_APDU [12:31:37]CAPDU: 80 0D 02 02 28 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 06 7C 00 00 35 04 06 00 B6 DC 5B 6F 01 FB [12:31:37]Write to MH i2c: E2 30 00 DE 1F 80 0D 02 02 28 00 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 06 7C 00 00 35 04 06 00 B6 DC 5B 6F 01 FB 00 00 AC [12:31:37]Write i2c OK [12:31:37]MH_I2C_Read... [12:31:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:38]Read from MH i2c: E2 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 03 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 03 00 DE 1F 00 90 00 71 [12:31:38]RAPDU: 90 00 [12:31:38]wFMCommunicate OK [12:31:38]wFMCommunicate request_size=4 [12:31:38]MH_SAM_APDU [12:31:38]CAPDU: 80 0D 03 02 [12:31:38]Write to MH i2c: E2 08 00 DF 1F 80 0D 03 02 00 00 00 00 79 [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:38]Read from MH i2c: E2 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 0B 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 0B 00 DF 1F 00 BA D2 67 90 4E 65 8F 15 90 00 54 [12:31:38]RAPDU: BA D2 67 90 4E 65 8F 15 90 00 [12:31:38]wFMCommunicate OK [12:31:38]SAM_PROTO_SignData done [12:31:38]FM_MakeSignedData done [12:31:38]CreateOFDProtocolMessage [12:31:38]wFMCommunicate request_size=4 [12:31:38]MH_SAM_APDU [12:31:38]CAPDU: 80 11 00 00 [12:31:38]Write to MH i2c: E2 08 00 E0 1F 80 11 00 00 00 00 00 00 79 [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:38]Read from MH i2c: E2 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 17 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: E2 17 00 E0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D4 [12:31:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:31:38]wFMCommunicate OK [12:31:38]CreateOFDProtocolMessage done [12:31:38]OFDSenderStorePacket 31750 [12:31:38]StoreOFDPacket docnum=31750 [12:31:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 32 01 00 00 02 E9 2A 01 78 76 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 2C 68 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 06 7C 00 00 35 04 06 00 B6 DC 5B 6F 01 FB BA D2 67 90 4E 65 8F 15 [12:31:38]CheckFolder [12:31:38]dirname=/storage/ofd_packets [12:31:38]CheckFolder done [12:31:38]ProducePacketName [12:31:38]name=ofd_packets/00031750 [12:31:38]NVStorageSaveData ofd_packets/00031750 [12:31:38]File name is /storage/ofd_packets/00031750 [12:31:38]Write 336 bytes [12:31:38]NVStorageSaveData done [12:31:38]OFDSenderStorePacket done [12:31:38]KKMCreateOFDPacket done [12:31:38]NVStorageSaveData kkm_last_timestamp [12:31:38]File name is /storage/kkm_last_timestamp [12:31:38]Write 4 bytes [12:31:38]NVStorageSaveData done [12:31:38]ExternCall_PrintAddStr [12:31:38]wPrintStart [12:31:38]Write to MH i2c: 01 00 00 E1 1F 00 [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: 01 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: 01 07 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: 01 07 00 E1 1F 00 00 00 00 00 FF 0F 15 [12:31:38]RasterBufferAndPrint [12:31:38]line Счет N : (3)214331 [12:31:38]line ИНН: 02508201610067 [12:31:38]line Контрольно-Кассовый Чек [12:31:38]line ПРОДАЖА [12:31:38]line Товар: 4607120854184 [12:31:38]line Снек Орехи BEERKa Арахис 90г [12:31:38]line 1.000 * 53.00 [12:31:38]line = 53.00 [12:31:38]line НДС 12% НСП 1% [12:31:38]line > о реализуемом товаре [12:31:38]line ИТОГО: 53.00 [12:31:38]line НСП 1% : 0.47 [12:31:38]line НДС 12% : 5.63 [12:31:38]line Наличными: 53.00 [12:31:38]line Безнал.: 0.00 [12:31:38]line Место: АЗС № 140 "Партнер Нефть" [12:31:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:31:38]line СНО: Общий режим [12:31:38]line Чек 69 16.07.2024 12:31 [12:31:38]line Смена: 371 ФФД: 1.0 [12:31:38]line ЗНМ: 0300000189 [12:31:38]line РНМ: 0000000000098025 [12:31:38]line Версия ККМ: 001 [12:31:38]line ФМ: 0000000000965389 [12:31:38]line ФД: 31750 [12:31:38]line ФПД: 201057543062011 [12:31:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T123140&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31750&fm=201057543062011&tin=02508201610067®Number=0000000000098025&sum=5300 [12:31:38]line 0 [12:31:38]OFD Sender: Processing packet 31750 [packets to send 6, broken 5] [12:31:38]ProducePacketName [12:31:38]name=ofd_packets/00031750 [12:31:38]OFD Sender: To server: pG, [12:31:38]CommunicateWithHost lk.salyk.kg:30040 [12:31:38]ConnectInit lk.salyk.kg [12:31:38]written 0, free lines is 4095 [12:31:38]Connected sock=10 [12:31:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 32 01 00 00 02 E9 2A 01 78 76 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 38 34 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 39 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B4 14 00 00 00 00 13 04 06 00 B4 14 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B4 14 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 02 00 00 00 00 07 04 06 00 B4 14 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 2C 68 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 06 7C 00 00 35 04 06 00 B6 DC 5B 6F 01 FB BA D2 67 90 4E 65 8F 15 [12:31:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B2 16 47 00 D5 08 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 06 7C 00 00 F4 03 04 00 3A 14 96 66 B6 04 01 00 00 5F B5 9A C2 E0 0D 46 C1 [12:31:38]CommunicateWithHost err = 0 [12:31:38]CheckOFDResponse [12:31:38]1017 (14) - 77093643461234 [12:31:38]1041 (16) - 0000000000965389 [12:31:38]1040 (4) - 31750 [12:31:38]1012 (4) - 16.07.2024 06:33 [12:31:38]1206 (1) - 0 [12:31:38]OFD Sender: Remove packet 31750 [12:31:38]ProducePacketName [12:31:38]name=ofd_packets/00031750 [12:31:38]NVStorageDeleteData [12:31:38]Write to MH i2c: 01 00 00 0A 20 2A [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: 01 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: 01 07 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: 01 07 00 0A 20 00 00 00 00 00 DA 0C 17 [12:31:38]RasterBufferAndPrint [12:31:38]line [12:31:38]line [12:31:38]line [12:31:38]line [12:31:38]line [12:31:38]written 0, free lines is 3296 [12:31:38]MH_Cut [12:31:38]Write to MH i2c: D1 01 00 11 20 01 03 [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: D1 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: D1 01 00 [12:31:38]MH_I2C_Read... [12:31:38]Read from MH i2c: D1 01 00 11 20 00 02 [12:31:38]Write to MH i2c: 01 00 00 12 20 32 [12:31:38]Write i2c OK [12:31:38]MH_I2C_Read... [12:31:39]OFD Sender: No OFD packet to send [12:31:39]*** Cut start [12:31:39]*** Partial cut [12:31:39]*** CUTSNS_PIN = 1 [12:31:39]*** CUTSNS_PIN = 0 [12:31:39]*** Brake cut motor [12:31:40]Read from MH i2c: 01 [12:31:40]MH_I2C_Read... [12:31:40]*** Stop cut motor [12:31:40]*** Cut end [12:31:40]Read from MH i2c: 01 07 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: 01 07 00 12 20 00 00 00 00 00 FF 0F 47 [12:31:40]process_action close_receipt done [12:31:40]requested_data is exist [12:31:40]produce_requested_data [12:31:40]requested_item fm.sn is exist - process it [12:31:40]wFMCommunicate request_size=4 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 11 00 00 [12:31:40]Write to MH i2c: E2 08 00 13 20 80 11 00 00 00 00 00 00 AD [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 17 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 17 00 13 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 08 [12:31:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:31:40]wFMCommunicate OK [12:31:40]requested_item fd.num is exist - process it [12:31:40]SAM_PROTO_GetFieldsCounters [12:31:40]wFMCommunicate request_size=4 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 13 00 00 [12:31:40]Write to MH i2c: E2 08 00 14 20 80 13 00 00 00 00 00 00 B0 [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 62 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 62 00 14 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 06 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [12:31:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 06 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:40]wFMCommunicate OK [12:31:40]SAM_PROTO_GetFieldsCounters done [12:31:40]requested_item shift.num is exist - process it [12:31:40]requested_item shift.opened is exist - process it [12:31:40]req_shift_opened [12:31:40]FM_GetShiftState [12:31:40]SAM_PROTO_GetShiftState [12:31:40]wFMCommunicate request_size=4 [12:31:40]MH_SAM_APDU [12:31:40]CAPDU: 80 13 01 00 [12:31:40]Write to MH i2c: E2 08 00 15 20 80 13 01 00 00 00 00 00 B2 [12:31:40]Write i2c OK [12:31:40]MH_I2C_Read... [12:31:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:40]Read from MH i2c: E2 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 0E 00 [12:31:40]MH_I2C_Read... [12:31:40]Read from MH i2c: E2 0E 00 15 20 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 01 [12:31:40]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:31:40]wFMCommunicate OK [12:31:40]SAM_PROTO_GetShiftState done [12:31:40]FM_GetShiftState done [12:31:40]req_shift_opened done [12:31:40]requested_item shift.open_date is exist - process it [12:31:40]req_shift_open_date [12:31:40]req_shift_open_date done [12:31:40]produce_requested_data done [12:31:40]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31750,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:31:40]process_action_free close_receipt [12:31:40]json_value_free [12:31:40]json_value_free done [12:31:40]process_json_proto returns [12:31:40]Send response to host [12:31:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31750,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:31:40]free response buf [12:31:40]execute_script done [12:31:40]execute_script returns [12:31:40]free content buf [12:31:40]Sock 7.Close socket [12:31:40]Sock 7.Thread stoped [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:17]accept exits with 9 [12:33:17]New connection [12:33:17]New thread 3066965348 created [12:33:17]Thread 3066821988 joined [12:33:17]Waiting for new connection... [12:33:17] Sock 9.Parse request [12:33:17]Sock 9.Check first char [12:33:17]Sock 9.First char is OK [12:33:17]request: POST /json_proto HTTP/1.0 [12:33:17]Method: POST [12:33:17]URL: /json_proto [12:33:17]Method is POST - this is cgi request [12:33:17]url: /json_proto [12:33:17]query_string will be loaded in cgi processing [12:33:17]execute_cgi json_proto POST (null) [12:33:17]execute_cgi path=json_proto method=POST [12:33:17]POST find Content-Length [12:33:17]Host: 172.17.39.68:8080 [12:33:17]Content-Length: 783 [12:33:17]Content-Type: application/json [12:33:17] [12:33:17]POST finish read [12:33:17]Found Content-Length = 783 [12:33:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214332", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:17]execute_script... [12:33: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)214332", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:17]POST & json_proto [12:33:17]process_json_proto [12:33:17]json parsed OK: [12:33:17]protocol is kg_v1.0 [12:33:17]action value=close_receipt [12:33:17]process_action close_receipt [12:33:17]cmd_close_receipt [12:33:17]MH_GetDate [12:33:17]Write to MH i2c: F0 00 00 16 20 25 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: F0 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: F0 09 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: F0 09 00 16 20 00 91 68 96 66 D6 48 95 66 3C [12:33:17]GetLastDocTimeStamp 1721133100 [12:33:17]current date 1721133201 [12:33:17]FM_GetShiftState [12:33:17]SAM_PROTO_GetShiftState [12:33:17]wFMCommunicate request_size=4 [12:33:17]MH_SAM_APDU [12:33:17]CAPDU: 80 13 01 00 [12:33:17]Write to MH i2c: E2 08 00 17 20 80 13 01 00 00 00 00 00 B4 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:17]Read from MH i2c: E2 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 0E 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: E2 0E 00 17 20 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 03 [12:33:17]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:33:17]wFMCommunicate OK [12:33:17]SAM_PROTO_GetShiftState done [12:33:17]FM_GetShiftState done [12:33:17]opened in 1721088399 [12:33:17]opened+sec_in_day 1721174799 [12:33:17]quantity*price = 15100 [12:33:17]sum+1 = 15101 [12:33:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 70 16.07.2024 12:33 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31751 ФПД: 151464677227666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T123321&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31751&fm=151464677227666&tin=02508201610067®Number=0000000000098025&sum=15100 0 [12:33:18]StoreToDocumentArchive [12:33:18]shift 371 fd 31751 [12:33:18]save to /storage/0371/doc_00031751 [12:33:18]save last doc name /storage/0371/doc_00031751 to /storage/kkm_last_doc_name [12:33:18]save OK [12:33:18]Clear old archive folders... [12:33:18]ProcessDocumentItem done err = 0, tmpTLVsize=274 [12:33:18]tlvbuf is B6DABB80 [12:33:18]SAM_PROTO_ClearQueue [12:33:18]wFMCommunicate request_size=4 [12:33:18]MH_SAM_APDU [12:33:18]CAPDU: 80 09 00 00 [12:33:18]Write to MH i2c: E2 08 00 24 20 80 09 00 00 00 00 00 00 B6 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 [12:33:18]MH_I2C_Read... [12:33:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:18]Read from MH i2c: E2 03 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 03 00 24 20 00 90 00 B8 [12:33:18]RAPDU: 90 00 [12:33:18]wFMCommunicate OK [12:33:18]SAM_PROTO_ClearQueue done [12:33:18]KKMCreateOFDPacket [12:33:18]OFDProtocolAddRootSTLVToBuf [12:33:18]FM_MakeSignedData [12:33:18]FM_MakeSignedData [12:33:18]SAM_PROTO_SignData [12:33:18]wFMCommunicate request_size=4 [12:33:18]MH_SAM_APDU [12:33:18]CAPDU: 80 0D 01 02 [12:33:18]Write to MH i2c: E2 08 00 25 20 80 0D 01 02 00 00 00 00 BE [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:18]Read from MH i2c: E2 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 03 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 03 00 25 20 00 90 00 B9 [12:33:18]RAPDU: 90 00 [12:33:18]wFMCommunicate OK [12:33:18]wFMCommunicate request_size=255 [12:33:18]MH_SAM_APDU [12:33:18]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 31 39 35 38 06 04 25 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 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 91 68 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 [12:33:18]Write to MH i2c: E2 02 01 26 20 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 31 39 35 38 06 04 25 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 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 91 68 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 00 00 35 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:18]Read from MH i2c: E2 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 03 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: E2 03 00 26 20 00 90 00 BA [12:33:18]RAPDU: 90 00 [12:33:18]wFMCommunicate OK [12:33:18]wFMCommunicate request_size=33 [12:33:18]MH_SAM_APDU [12:33:18]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 35 33 38 39 10 04 04 00 07 7C 00 00 35 04 06 00 89 C1 9E 48 3C 92 [12:33:18]Write to MH i2c: E2 24 00 27 20 80 0D 02 02 1C 00 30 30 30 30 39 36 35 33 38 39 10 04 04 00 07 7C 00 00 35 04 06 00 89 C1 9E 48 3C 92 00 00 D9 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 03 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 03 00 27 20 00 90 00 BB [12:33:19]RAPDU: 90 00 [12:33:19]wFMCommunicate OK [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 0D 03 02 [12:33:19]Write to MH i2c: E2 08 00 28 20 80 0D 03 02 00 00 00 00 C3 [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0B 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0B 00 28 20 00 A4 AF 42 DE EA AF 62 C1 90 00 F3 [12:33:19]RAPDU: A4 AF 42 DE EA AF 62 C1 90 00 [12:33:19]wFMCommunicate OK [12:33:19]SAM_PROTO_SignData done [12:33:19]FM_MakeSignedData done [12:33:19]CreateOFDProtocolMessage [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 11 00 00 [12:33:19]Write to MH i2c: E2 08 00 29 20 80 11 00 00 00 00 00 00 C3 [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 17 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 17 00 29 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1E [12:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:33:19]wFMCommunicate OK [12:33:19]CreateOFDProtocolMessage done [12:33:19]OFDSenderStorePacket 31751 [12:33:19]StoreOFDPacket docnum=31751 [12:33:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 26 01 00 00 64 C7 1E 01 32 33 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 31 39 35 38 06 04 25 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 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 91 68 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 07 7C 00 00 35 04 06 00 89 C1 9E 48 3C 92 A4 AF 42 DE EA AF 62 C1 [12:33:19]CheckFolder [12:33:19]dirname=/storage/ofd_packets [12:33:19]CheckFolder done [12:33:19]ProducePacketName [12:33:19]name=ofd_packets/00031751 [12:33:19]NVStorageSaveData ofd_packets/00031751 [12:33:19]File name is /storage/ofd_packets/00031751 [12:33:19]Write 324 bytes [12:33:19]NVStorageSaveData done [12:33:19]OFDSenderStorePacket done [12:33:19]KKMCreateOFDPacket done [12:33:19]NVStorageSaveData kkm_last_timestamp [12:33:19]File name is /storage/kkm_last_timestamp [12:33:19]Write 4 bytes [12:33:19]NVStorageSaveData done [12:33:19]ExternCall_PrintAddStr [12:33:19]wPrintStart [12:33:19]Write to MH i2c: 01 00 00 2A 20 4A [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: 01 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: 01 07 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: 01 07 00 2A 20 00 00 00 00 00 FF 0F 5F [12:33:19]RasterBufferAndPrint [12:33:19]line Счет N : (3)214332 [12:33:19]line ИНН: 02508201610067 [12:33:19]line Контрольно-Кассовый Чек [12:33:19]line ПРОДАЖА [12:33:19]line Товар: 48741958 [12:33:19]line Сигареты Parliament Aqua Blue [12:33:19]line 1.000 * 151.00 [12:33:19]line = 151.00 [12:33:19]line НДС 12% НСП 1% [12:33:19]line > о реализуемом товаре [12:33:19]line ИТОГО: 151.00 [12:33:19]line НСП 1% : 1.34 [12:33:19]line НДС 12% : 16.03 [12:33:19]line Наличными: 0.00 [12:33:19]line Безнал.: 151.00 [12:33:19]line Место: АЗС № 140 "Партнер Нефть" [12:33:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:33:19]line СНО: Общий режим [12:33:19]line Чек 70 16.07.2024 12:33 [12:33:19]line Смена: 371 ФФД: 1.0 [12:33:19]line ЗНМ: 0300000189 [12:33:19]line РНМ: 0000000000098025 [12:33:19]line Версия ККМ: 001 [12:33:19]line Платежная система: O! деньги [12:33:19]line ФМ: 0000000000965389 [12:33:19]line ФД: 31751 [12:33:19]line ФПД: 151464677227666 [12:33:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T123321&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31751&fm=151464677227666&tin=02508201610067®Number=0000000000098025&sum=15100 [12:33:19]line 0 [12:33:19]OFD Sender: Processing packet 31751 [packets to send 6, broken 5] [12:33:19]ProducePacketName [12:33:19]name=ofd_packets/00031751 [12:33:19]OFD Sender: To server: pG, [12:33:19]CommunicateWithHost lk.salyk.kg:30040 [12:33:19]ConnectInit lk.salyk.kg [12:33:19]written 0, free lines is 4095 [12:33:19]Connected sock=10 [12:33:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 26 01 00 00 64 C7 1E 01 32 33 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 31 39 35 38 06 04 25 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 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 91 68 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 07 7C 00 00 35 04 06 00 89 C1 9E 48 3C 92 A4 AF 42 DE EA AF 62 C1 [12:33:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 97 33 47 00 82 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 07 7C 00 00 F4 03 04 00 9F 14 96 66 B6 04 01 00 00 92 00 8C 48 99 71 40 1F [12:33:19]CommunicateWithHost err = 0 [12:33:19]CheckOFDResponse [12:33:19]1017 (14) - 77093643461234 [12:33:19]1041 (16) - 0000000000965389 [12:33:19]1040 (4) - 31751 [12:33:19]1012 (4) - 16.07.2024 06:35 [12:33:19]1206 (1) - 0 [12:33:19]OFD Sender: Remove packet 31751 [12:33:19]ProducePacketName [12:33:19]name=ofd_packets/00031751 [12:33:19]NVStorageDeleteData [12:33:19]Write to MH i2c: 01 00 00 55 20 75 [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: 01 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: 01 07 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: 01 07 00 55 20 00 00 00 00 00 BE 0C 46 [12:33:19]RasterBufferAndPrint [12:33:19]line [12:33:19]line [12:33:19]line [12:33:19]line [12:33:19]line [12:33:19]written 0, free lines is 3268 [12:33:19]MH_Cut [12:33:19]Write to MH i2c: D1 01 00 5C 20 01 4E [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: D1 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: D1 01 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: D1 01 00 5C 20 00 4D [12:33:19]Write to MH i2c: 01 00 00 5D 20 7D [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:20]OFD Sender: No OFD packet to send [12:33:20]*** Cut start [12:33:20]*** Partial cut [12:33:20]*** CUTSNS_PIN = 1 [12:33:20]*** CUTSNS_PIN = 0 [12:33:21]*** Brake cut motor [12:33:21]Read from MH i2c: 01 [12:33:21]MH_I2C_Read... [12:33:21]*** Stop cut motor [12:33:21]*** Cut end [12:33:21]Read from MH i2c: 01 07 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: 01 07 00 5D 20 00 00 00 00 00 FF 0F 92 [12:33:21]process_action close_receipt done [12:33:21]requested_data is exist [12:33:21]produce_requested_data [12:33:21]requested_item fm.sn is exist - process it [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 11 00 00 [12:33:21]Write to MH i2c: E2 08 00 5E 20 80 11 00 00 00 00 00 00 F8 [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 17 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 17 00 5E 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 53 [12:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:33:21]wFMCommunicate OK [12:33:21]requested_item fd.num is exist - process it [12:33:21]SAM_PROTO_GetFieldsCounters [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 13 00 00 [12:33:21]Write to MH i2c: E2 08 00 5F 20 80 13 00 00 00 00 00 00 FB [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 62 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 62 00 5F 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 07 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [12:33:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 07 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:21]wFMCommunicate OK [12:33:21]SAM_PROTO_GetFieldsCounters done [12:33:21]requested_item shift.num is exist - process it [12:33:21]requested_item shift.opened is exist - process it [12:33:21]req_shift_opened [12:33:21]FM_GetShiftState [12:33:21]SAM_PROTO_GetShiftState [12:33:21]wFMCommunicate request_size=4 [12:33:21]MH_SAM_APDU [12:33:21]CAPDU: 80 13 01 00 [12:33:21]Write to MH i2c: E2 08 00 60 20 80 13 01 00 00 00 00 00 FD [12:33:21]Write i2c OK [12:33:21]MH_I2C_Read... [12:33:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:21]Read from MH i2c: E2 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 0E 00 [12:33:21]MH_I2C_Read... [12:33:21]Read from MH i2c: E2 0E 00 60 20 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 4C [12:33:21]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:33:21]wFMCommunicate OK [12:33:21]SAM_PROTO_GetShiftState done [12:33:21]FM_GetShiftState done [12:33:21]req_shift_opened done [12:33:21]requested_item shift.open_date is exist - process it [12:33:21]req_shift_open_date [12:33:21]req_shift_open_date done [12:33:21]produce_requested_data done [12:33:21]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31751,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:33:21]process_action_free close_receipt [12:33:21]json_value_free [12:33:21]json_value_free done [12:33:21]process_json_proto returns [12:33:21]Send response to host [12:33:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31751,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:33:21]free response buf [12:33:21]execute_script done [12:33:21]execute_script returns [12:33:21]free content buf [12:33:21]Sock 9.Close socket [12:33:21]Sock 9.Thread stoped [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:30]OFD Sender: No OFD packet to send [12:34:35]OFD Sender: No OFD packet to send [12:34:40]OFD Sender: No OFD packet to send [12:34:45]OFD Sender: No OFD packet to send [12:34:50]OFD Sender: No OFD packet to send [12:34:55]OFD Sender: No OFD packet to send [12:35:00]OFD Sender: No OFD packet to send [12:35:05]OFD Sender: No OFD packet to send [12:35:10]OFD Sender: No OFD packet to send [12:35:15]OFD Sender: No OFD packet to send [12:35:20]OFD Sender: No OFD packet to send [12:35:25]OFD Sender: No OFD packet to send [12:35:30]OFD Sender: No OFD packet to send [12:35:35]OFD Sender: No OFD packet to send [12:35:40]OFD Sender: No OFD packet to send [12:35:45]OFD Sender: No OFD packet to send [12:35:50]OFD Sender: No OFD packet to send [12:35:55]OFD Sender: No OFD packet to send [12:36:00]OFD Sender: No OFD packet to send [12:36:05]OFD Sender: No OFD packet to send [12:36:10]OFD Sender: No OFD packet to send [12:36:15]OFD Sender: No OFD packet to send [12:36:20]OFD Sender: No OFD packet to send [12:36:25]OFD Sender: No OFD packet to send [12:36:30]OFD Sender: No OFD packet to send [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:40]OFD Sender: No OFD packet to send [12:37:45]OFD Sender: No OFD packet to send [12:37:50]OFD Sender: No OFD packet to send [12:37:55]OFD Sender: No OFD packet to send [12:38:00]OFD Sender: No OFD packet to send [12:38:05]OFD Sender: No OFD packet to send [12:38:10]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:25]accept exits with 7 [12:39:25]New connection [12:39:25]New thread 3066821988 created [12:39:25]Thread 3066965348 joined [12:39:25]Waiting for new connection... [12:39:25] Sock 7.Parse request [12:39:25]Sock 7.Check first char [12:39:25]Sock 7.First char is OK [12:39:25]request: POST /json_proto HTTP/1.0 [12:39:25]Method: POST [12:39:25]URL: /json_proto [12:39:25]Method is POST - this is cgi request [12:39:25]url: /json_proto [12:39:25]query_string will be loaded in cgi processing [12:39:25]execute_cgi json_proto POST (null) [12:39:25]execute_cgi path=json_proto method=POST [12:39:25]POST find Content-Length [12:39:25]Host: 172.17.39.68:8080 [12:39:25]Content-Length: 1235 [12:39:25]Content-Type: application/json [12:39:25] [12:39:25]POST finish read [12:39:25]Found Content-Length = 1235 [12:39:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214333", "tax_sys" : 0, "items" : [ { "code": "4870209744564", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0428\u0430\u0448\u043B\u044B\u043A 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:25]execute_script... [12:39: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)214333", "tax_sys" : 0, "items" : [ { "code": "4870209744564", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u0428\u0430\u0448\u043B\u044B\u043A 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:25]POST & json_proto [12:39:25]process_json_proto [12:39:25]json parsed OK: [12:39:25]protocol is kg_v1.0 [12:39:25]action value=close_receipt [12:39:25]process_action close_receipt [12:39:25]cmd_close_receipt [12:39:25]MH_GetDate [12:39:25]Write to MH i2c: F0 00 00 61 20 70 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: F0 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: F0 09 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: F0 09 00 61 20 00 02 6A 96 66 D6 48 95 66 FA [12:39:25]GetLastDocTimeStamp 1721133201 [12:39:25]current date 1721133570 [12:39:25]FM_GetShiftState [12:39:25]SAM_PROTO_GetShiftState [12:39:25]wFMCommunicate request_size=4 [12:39:25]MH_SAM_APDU [12:39:25]CAPDU: 80 13 01 00 [12:39:25]Write to MH i2c: E2 08 00 62 20 80 13 01 00 00 00 00 00 FF [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 0E 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 0E 00 62 20 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 4E [12:39:25]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:39:25]wFMCommunicate OK [12:39:25]SAM_PROTO_GetShiftState done [12:39:25]FM_GetShiftState done [12:39:25]opened in 1721088399 [12:39:25]opened+sec_in_day 1721174799 [12:39:25]quantity*price = 6000 [12:39:25]sum+1 = 6001 [12:39:25]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5000159390729 Шок Батончик Твикс Экстра 82г 1.000 * 89.00 = 89.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 71 16.07.2024 12:39 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31752 ФПД: 89371502080793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T123930&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31752&fm=89371502080793&tin=02508201610067®Number=0000000000098025&sum=26000 0 [12:39:26]StoreToDocumentArchive [12:39:26]shift 371 fd 31752 [12:39:26]save to /storage/0371/doc_00031752 [12:39:26]save last doc name /storage/0371/doc_00031752 to /storage/kkm_last_doc_name [12:39:26]save OK [12:39:26]Clear old archive folders... [12:39:26]ProcessDocumentItem done err = 0, tmpTLVsize=511 [12:39:26]tlvbuf is 014D6440 [12:39:26]SAM_PROTO_ClearQueue [12:39:26]wFMCommunicate request_size=4 [12:39:26]MH_SAM_APDU [12:39:26]CAPDU: 80 09 00 00 [12:39:26]Write to MH i2c: E2 08 00 6F 20 80 09 00 00 00 00 00 00 01 [12:39:26]Write i2c OK [12:39:26]MH_I2C_Read... [12:39:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:26]Read from MH i2c: E2 [12:39:26]MH_I2C_Read... [12:39:26]Read from MH i2c: E2 03 00 [12:39:26]MH_I2C_Read... [12:39:26]Read from MH i2c: E2 03 00 6F 20 00 90 00 03 [12:39:26]RAPDU: 90 00 [12:39:26]wFMCommunicate OK [12:39:26]SAM_PROTO_ClearQueue done [12:39:26]KKMCreateOFDPacket [12:39:26]OFDProtocolAddRootSTLVToBuf [12:39:26]FM_MakeSignedData [12:39:26]FM_MakeSignedData [12:39:26]SAM_PROTO_SignData [12:39:26]wFMCommunicate request_size=4 [12:39:26]MH_SAM_APDU [12:39:26]CAPDU: 80 0D 01 02 [12:39:26]Write to MH i2c: E2 08 00 70 20 80 0D 01 02 00 00 00 00 09 [12:39:26]Write i2c OK [12:39:26]MH_I2C_Read... [12:39:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:27]Read from MH i2c: E2 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 03 00 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 03 00 70 20 00 90 00 04 [12:39:27]RAPDU: 90 00 [12:39:27]wFMCommunicate OK [12:39:27]wFMCommunicate request_size=255 [12:39:27]MH_SAM_APDU [12:39:27]CAPDU: 80 0D 02 02 FA 03 00 FF 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 36 34 06 04 31 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A8 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 31 30 30 20 D0 B3 D1 80 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 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 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 [12:39:27]Write to MH i2c: E2 02 01 71 20 80 0D 02 02 FA 00 03 00 FF 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 36 34 06 04 31 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A8 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 31 30 30 20 D0 B3 D1 80 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 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 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 00 67 [12:39:27]Write i2c OK [12:39:27]MH_I2C_Read... [12:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:27]Read from MH i2c: E2 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 03 00 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 03 00 71 20 00 90 00 05 [12:39:27]RAPDU: 90 00 [12:39:27]wFMCommunicate OK [12:39:27]wFMCommunicate request_size=255 [12:39:27]MH_SAM_APDU [12:39:27]CAPDU: 80 0D 02 02 FA 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 47 00 00 00 F4 03 04 00 02 6A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 [12:39:27]Write to MH i2c: E2 02 01 72 20 80 0D 02 02 FA 00 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 47 00 00 00 F4 03 04 00 02 6A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 00 32 [12:39:27]Write i2c OK [12:39:27]MH_I2C_Read... [12:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:27]Read from MH i2c: E2 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 03 00 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 03 00 72 20 00 90 00 06 [12:39:27]RAPDU: 90 00 [12:39:27]wFMCommunicate OK [12:39:27]wFMCommunicate request_size=20 [12:39:27]MH_SAM_APDU [12:39:27]CAPDU: 80 0D 02 02 0F 00 08 7C 00 00 35 04 06 00 51 48 6C A2 73 19 [12:39:27]Write to MH i2c: E2 17 00 73 20 80 0D 02 02 0F 00 00 08 7C 00 00 35 04 06 00 51 48 6C A2 73 19 00 00 21 [12:39:27]Write i2c OK [12:39:27]MH_I2C_Read... [12:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:27]Read from MH i2c: E2 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 03 00 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 03 00 73 20 00 90 00 07 [12:39:27]RAPDU: 90 00 [12:39:27]wFMCommunicate OK [12:39:27]wFMCommunicate request_size=4 [12:39:27]MH_SAM_APDU [12:39:27]CAPDU: 80 0D 03 02 [12:39:27]Write to MH i2c: E2 08 00 74 20 80 0D 03 02 00 00 00 00 0F [12:39:27]Write i2c OK [12:39:27]MH_I2C_Read... [12:39:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:27]Read from MH i2c: E2 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 0B 00 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 0B 00 74 20 00 4B 0A 77 02 EF B0 9B D0 90 00 E8 [12:39:27]RAPDU: 4B 0A 77 02 EF B0 9B D0 90 00 [12:39:27]wFMCommunicate OK [12:39:27]SAM_PROTO_SignData done [12:39:27]FM_MakeSignedData done [12:39:27]CreateOFDProtocolMessage [12:39:27]wFMCommunicate request_size=4 [12:39:27]MH_SAM_APDU [12:39:27]CAPDU: 80 11 00 00 [12:39:27]Write to MH i2c: E2 08 00 75 20 80 11 00 00 00 00 00 00 0F [12:39:27]Write i2c OK [12:39:27]MH_I2C_Read... [12:39:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:28]Read from MH i2c: E2 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: E2 17 00 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: E2 17 00 75 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6A [12:39:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:39:28]wFMCommunicate OK [12:39:28]CreateOFDProtocolMessage done [12:39:28]OFDSenderStorePacket 31752 [12:39:28]StoreOFDPacket docnum=31752 [12:39:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 13 02 00 00 28 6F 0B 02 EE 5B 5A 03 01 00 03 00 FF 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 36 34 06 04 31 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A8 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 31 30 30 20 D0 B3 D1 80 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 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 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 47 00 00 00 F4 03 04 00 02 6A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 08 7C 00 00 35 04 06 00 51 48 6C A2 73 19 4B 0A 77 02 EF B0 9B D0 [12:39:28]CheckFolder [12:39:28]dirname=/storage/ofd_packets [12:39:28]CheckFolder done [12:39:28]ProducePacketName [12:39:28]name=ofd_packets/00031752 [12:39:28]NVStorageSaveData ofd_packets/00031752 [12:39:28]File name is /storage/ofd_packets/00031752 [12:39:28]Write 561 bytes [12:39:28]NVStorageSaveData done [12:39:28]OFDSenderStorePacket done [12:39:28]KKMCreateOFDPacket done [12:39:28]NVStorageSaveData kkm_last_timestamp [12:39:28]File name is /storage/kkm_last_timestamp [12:39:28]Write 4 bytes [12:39:28]NVStorageSaveData done [12:39:28]ExternCall_PrintAddStr [12:39:28]wPrintStart [12:39:28]Write to MH i2c: 01 00 00 76 20 96 [12:39:28]Write i2c OK [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: 01 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: 01 07 00 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: 01 07 00 76 20 00 00 00 00 00 FF 0F AB [12:39:28]RasterBufferAndPrint [12:39:28]line Счет N : (3)214333 [12:39:28]line ИНН: 02508201610067 [12:39:28]line Контрольно-Кассовый Чек [12:39:28]line ПРОДАЖА [12:39:28]line Товар: 4870209744564 [12:39:28]line Сухарики Флинт Шашлык 100 гр [12:39:28]line 1.000 * 60.00 [12:39:28]line = 60.00 [12:39:28]line НДС 12% НСП 1% [12:39:28]line > о реализуемом товаре [12:39:28]line Товар: 4870001570071 [12:39:28]line Напиток Pepsi 1л [12:39:28]line 1.000 * 111.00 [12:39:28]line = 111.00 [12:39:28]line НДС 12% НСП 1% [12:39:28]line > о реализуемом товаре [12:39:28]line Товар: 5000159390729 [12:39:28]line Шок Батончик Твикс Экстра 82г [12:39:28]line 1.000 * 89.00 [12:39:28]line = 89.00 [12:39:28]line НДС 12% НСП 1% [12:39:28]line > о реализуемом товаре [12:39:28]line ИТОГО: 260.00 [12:39:28]line НСП 1% : 2.30 [12:39:28]line НДС 12% : 27.61 [12:39:28]line Наличными: 260.00 [12:39:28]line Безнал.: 0.00 [12:39:28]line Место: АЗС № 140 "Партнер Нефть" [12:39:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:39:28]line СНО: Общий режим [12:39:28]line Чек 71 16.07.2024 12:39 [12:39:28]line Смена: 371 ФФД: 1.0 [12:39:28]line ЗНМ: 0300000189 [12:39:28]line РНМ: 0000000000098025 [12:39:28]line Версия ККМ: 001 [12:39:28]line ФМ: 0000000000965389 [12:39:28]line ФД: 31752 [12:39:28]line ФПД: 89371502080793 [12:39:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T123930&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31752&fm=89371502080793&tin=02508201610067®Number=0000000000098025&sum=26000 [12:39:28]line 0 [12:39:28]OFD Sender: Processing packet 31752 [packets to send 6, broken 5] [12:39:28]ProducePacketName [12:39:28]name=ofd_packets/00031752 [12:39:28]OFD Sender: To server: pG, [12:39:28]CommunicateWithHost lk.salyk.kg:30040 [12:39:28]ConnectInit lk.salyk.kg [12:39:28]written 0, free lines is 4095 [12:39:28]Connected sock=10 [12:39:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 13 02 00 00 28 6F 0B 02 EE 5B 5A 03 01 00 03 00 FF 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 36 34 06 04 31 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 A8 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 31 30 30 20 D0 B3 D1 80 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 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 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 47 00 00 00 F4 03 04 00 02 6A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 08 7C 00 00 35 04 06 00 51 48 6C A2 73 19 4B 0A 77 02 EF B0 9B D0 [12:39:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 DB E6 47 00 C9 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 08 7C 00 00 F4 03 04 00 10 16 96 66 B6 04 01 00 00 2D 3E 9E 9B 21 F4 86 89 [12:39:28]CommunicateWithHost err = 0 [12:39:28]CheckOFDResponse [12:39:28]1017 (14) - 77093643461234 [12:39:28]1041 (16) - 0000000000965389 [12:39:28]1040 (4) - 31752 [12:39:28]1012 (4) - 16.07.2024 06:41 [12:39:28]1206 (1) - 0 [12:39:28]OFD Sender: Remove packet 31752 [12:39:28]ProducePacketName [12:39:28]name=ofd_packets/00031752 [12:39:28]NVStorageDeleteData [12:39:28]Write to MH i2c: 01 00 00 AC 20 CC [12:39:28]Write i2c OK [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: 01 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: 01 07 00 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: 01 07 00 AC 20 00 00 00 00 00 20 0C FF [12:39:28]RasterBufferAndPrint [12:39:28]line [12:39:28]line [12:39:28]line [12:39:28]line [12:39:28]line [12:39:28]written 0, free lines is 3110 [12:39:28]MH_Cut [12:39:28]Write to MH i2c: D1 01 00 B3 20 01 A5 [12:39:28]Write i2c OK [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: D1 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: D1 01 00 [12:39:28]MH_I2C_Read... [12:39:28]Read from MH i2c: D1 01 00 B3 20 00 A4 [12:39:28]Write to MH i2c: 01 00 00 B4 20 D4 [12:39:28]Write i2c OK [12:39:28]MH_I2C_Read... [12:39:29]OFD Sender: No OFD packet to send [12:39:29]*** Cut start [12:39:29]*** Partial cut [12:39:29]*** CUTSNS_PIN = 1 [12:39:29]*** CUTSNS_PIN = 0 [12:39:30]*** Brake cut motor [12:39:30]Read from MH i2c: 01 [12:39:30]MH_I2C_Read... [12:39:30]*** Stop cut motor [12:39:30]*** Cut end [12:39:30]Read from MH i2c: 01 07 00 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: 01 07 00 B4 20 00 00 00 00 00 FF 0F E9 [12:39:30]process_action close_receipt done [12:39:30]requested_data is exist [12:39:30]produce_requested_data [12:39:30]requested_item fm.sn is exist - process it [12:39:30]wFMCommunicate request_size=4 [12:39:30]MH_SAM_APDU [12:39:30]CAPDU: 80 11 00 00 [12:39:30]Write to MH i2c: E2 08 00 B5 20 80 11 00 00 00 00 00 00 4F [12:39:30]Write i2c OK [12:39:30]MH_I2C_Read... [12:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:30]Read from MH i2c: E2 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 17 00 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 17 00 B5 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 AA [12:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:39:30]wFMCommunicate OK [12:39:30]requested_item fd.num is exist - process it [12:39:30]SAM_PROTO_GetFieldsCounters [12:39:30]wFMCommunicate request_size=4 [12:39:30]MH_SAM_APDU [12:39:30]CAPDU: 80 13 00 00 [12:39:30]Write to MH i2c: E2 08 00 B6 20 80 13 00 00 00 00 00 00 52 [12:39:30]Write i2c OK [12:39:30]MH_I2C_Read... [12:39:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:30]Read from MH i2c: E2 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 62 00 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 62 00 B6 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 08 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 47 [12:39: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 08 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:30]wFMCommunicate OK [12:39:30]SAM_PROTO_GetFieldsCounters done [12:39:30]requested_item shift.num is exist - process it [12:39:30]requested_item shift.opened is exist - process it [12:39:30]req_shift_opened [12:39:30]FM_GetShiftState [12:39:30]SAM_PROTO_GetShiftState [12:39:30]wFMCommunicate request_size=4 [12:39:30]MH_SAM_APDU [12:39:30]CAPDU: 80 13 01 00 [12:39:30]Write to MH i2c: E2 08 00 B7 20 80 13 01 00 00 00 00 00 54 [12:39:30]Write i2c OK [12:39:30]MH_I2C_Read... [12:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:30]Read from MH i2c: E2 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 0E 00 [12:39:30]MH_I2C_Read... [12:39:30]Read from MH i2c: E2 0E 00 B7 20 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A3 [12:39:30]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:39:30]wFMCommunicate OK [12:39:30]SAM_PROTO_GetShiftState done [12:39:30]FM_GetShiftState done [12:39:30]req_shift_opened done [12:39:30]requested_item shift.open_date is exist - process it [12:39:30]req_shift_open_date [12:39:30]req_shift_open_date done [12:39:30]produce_requested_data done [12:39:30]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31752,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:39:30]process_action_free close_receipt [12:39:30]json_value_free [12:39:30]json_value_free done [12:39:30]process_json_proto returns [12:39:30]Send response to host [12:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31752,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:39:30]free response buf [12:39:30]execute_script done [12:39:30]execute_script returns [12:39:30]free content buf [12:39:30]Sock 7.Close socket [12:39:30]Sock 7.Thread stoped [12:39:34]OFD Sender: No OFD packet to send [12:39:39]OFD Sender: No OFD packet to send [12:39:44]OFD Sender: No OFD packet to send [12:39:49]OFD Sender: No OFD packet to send [12:39:54]OFD Sender: No OFD packet to send [12:39:59]OFD Sender: No OFD packet to send [12:40:04]OFD Sender: No OFD packet to send [12:40:09]OFD Sender: No OFD packet to send [12:40:14]OFD Sender: No OFD packet to send [12:40:19]OFD Sender: No OFD packet to send [12:40:24]OFD Sender: No OFD packet to send [12:40:29]OFD Sender: No OFD packet to send [12:40:34]OFD Sender: No OFD packet to send [12:40:39]OFD Sender: No OFD packet to send [12:40:44]OFD Sender: No OFD packet to send [12:40:49]OFD Sender: No OFD packet to send [12:40:54]OFD Sender: No OFD packet to send [12:40:59]OFD Sender: No OFD packet to send [12:41:04]OFD Sender: No OFD packet to send [12:41:09]OFD Sender: No OFD packet to send [12:41:14]OFD Sender: No OFD packet to send [12:41:19]OFD Sender: No OFD packet to send [12:41:24]OFD Sender: No OFD packet to send [12:41:29]OFD Sender: No OFD packet to send [12:41:34]OFD Sender: No OFD packet to send [12:41:39]OFD Sender: No OFD packet to send [12:41:44]OFD Sender: No OFD packet to send [12:41:49]OFD Sender: No OFD packet to send [12:41:54]OFD Sender: No OFD packet to send [12:41:59]OFD Sender: No OFD packet to send [12:42:04]OFD Sender: No OFD packet to send [12:42:09]OFD Sender: No OFD packet to send [12:42:14]OFD Sender: No OFD packet to send [12:42:19]OFD Sender: No OFD packet to send [12:42:24]accept exits with 9 [12:42:24]New connection [12:42:24]New thread 3066965348 created [12:42:24]Thread 3066821988 joined [12:42:24]Waiting for new connection... [12:42:24] Sock 9.Parse request [12:42:24]Sock 9.Check first char [12:42:24]Sock 9.First char is OK [12:42:24]request: POST /json_proto HTTP/1.0 [12:42:24]Method: POST [12:42:24]URL: /json_proto [12:42:24]Method is POST - this is cgi request [12:42:24]url: /json_proto [12:42:24]query_string will be loaded in cgi processing [12:42:24]execute_cgi json_proto POST (null) [12:42:24]execute_cgi path=json_proto method=POST [12:42:24]POST find Content-Length [12:42:24]Host: 172.17.39.68:8080 [12:42:24]Content-Length: 1923 [12:42:24]Content-Type: application/json [12:42:24] [12:42:24]POST finish read [12:42:24]Found Content-Length = 1923 [12:42:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214334", "tax_sys" : 0, "items" : [ { "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:24]execute_script... [12:42: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)214334", "tax_sys" : 0, "items" : [ { "code": "4620016300305", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Absolut classic \u0432\u043B \u0430/\u0431\u0430\u043A\u0442 20 \u0448\u0442", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46177872", "name": "\u0416\u0435\u0432 Orbit \u043F\u043E\u0434\u0443\u0448\u043A\u0438 Citrus", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4870002325113", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A PEPSI \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0441\u0442 0,25\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:42:24]POST & json_proto [12:42:24]process_json_proto [12:42:24]json parsed OK: [12:42:24]protocol is kg_v1.0 [12:42:24]action value=close_receipt [12:42:24]process_action close_receipt [12:42:24]cmd_close_receipt [12:42:24]MH_GetDate [12:42:24]Write to MH i2c: F0 00 00 B8 20 C7 [12:42:24]OFD Sender: No OFD packet to send [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: F0 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: F0 09 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: F0 09 00 B8 20 00 B5 6A 96 66 D6 48 95 66 04 [12:42:24]GetLastDocTimeStamp 1721133570 [12:42:24]current date 1721133749 [12:42:24]FM_GetShiftState [12:42:24]SAM_PROTO_GetShiftState [12:42:24]wFMCommunicate request_size=4 [12:42:24]MH_SAM_APDU [12:42:24]CAPDU: 80 13 01 00 [12:42:24]Write to MH i2c: E2 08 00 B9 20 80 13 01 00 00 00 00 00 56 [12:42:24]Write i2c OK [12:42:24]MH_I2C_Read... [12:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:24]Read from MH i2c: E2 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 0E 00 [12:42:24]MH_I2C_Read... [12:42:24]Read from MH i2c: E2 0E 00 B9 20 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A5 [12:42:24]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:42:24]wFMCommunicate OK [12:42:24]SAM_PROTO_GetShiftState done [12:42:24]FM_GetShiftState done [12:42:24]opened in 1721088399 [12:42:24]opened+sec_in_day 1721174799 [12:42:24]quantity*price = 6500 [12:42:24]sum+1 = 6501 [12:42:24]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46177872 Жев Orbit подушки Citrus 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 110.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870002325113 Напиток PEPSI газированный ст 0,25л 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 2.000 * 55.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 415.00 НСП 1% : 3.66 НДС 12% : 44.07 Наличными: 0.00 Безнал.: 415.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 72 16.07.2024 12:42 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965389 ФД: 31753 ФПД: 105556486448472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T124229&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31753&fm=105556486448472&tin=02508201610067®Number=0000000000098025&sum=41500 0 [12:42:25]StoreToDocumentArchive [12:42:25]shift 371 fd 31753 [12:42:25]save to /storage/0371/doc_00031753 [12:42:25]save last doc name /storage/0371/doc_00031753 to /storage/kkm_last_doc_name [12:42:25]save OK [12:42:25]Clear old archive folders... [12:42:25]ProcessDocumentItem done err = 0, tmpTLVsize=757 [12:42:25]tlvbuf is 01476D60 [12:42:25]SAM_PROTO_ClearQueue [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 09 00 00 [12:42:25]Write to MH i2c: E2 08 00 C6 20 80 09 00 00 00 00 00 00 58 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 C6 20 00 90 00 5A [12:42:25]RAPDU: 90 00 [12:42:25]wFMCommunicate OK [12:42:25]SAM_PROTO_ClearQueue done [12:42:25]KKMCreateOFDPacket [12:42:25]OFDProtocolAddRootSTLVToBuf [12:42:25]FM_MakeSignedData [12:42:25]FM_MakeSignedData [12:42:25]SAM_PROTO_SignData [12:42:25]wFMCommunicate request_size=4 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 0D 01 02 [12:42:25]Write to MH i2c: E2 08 00 C7 20 80 0D 01 02 00 00 00 00 60 [12:42:25]Write i2c OK [12:42:25]MH_I2C_Read... [12:42:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:42:25]Read from MH i2c: E2 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 [12:42:25]MH_I2C_Read... [12:42:25]Read from MH i2c: E2 03 00 C7 20 00 90 00 5B [12:42:25]RAPDU: 90 00 [12:42:25]wFMCommunicate OK [12:42:25]wFMCommunicate request_size=255 [12:42:25]MH_SAM_APDU [12:42:25]CAPDU: 80 0D 02 02 FA 03 00 F5 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 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 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 77 00 8A 04 0D 00 34 38 37 [12:42:25]Write to MH i2c: E2 02 01 C8 20 80 0D 02 02 FA 00 03 00 F5 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 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 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 77 00 8A 04 0D 00 34 38 37 00 00 47 [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:26]Read from MH i2c: E2 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 03 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 03 00 C8 20 00 90 00 5C [12:42:26]RAPDU: 90 00 [12:42:26]wFMCommunicate OK [12:42:26]wFMCommunicate request_size=255 [12:42:26]MH_SAM_APDU [12:42:26]CAPDU: 80 0D 02 02 FA 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 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB 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 65 00 8A 04 0D 00 34 [12:42:26]Write to MH i2c: E2 02 01 C9 20 80 0D 02 02 FA 00 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 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB 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 65 00 8A 04 0D 00 34 00 00 A2 [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:26]Read from MH i2c: E2 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 03 00 [12:42:26]MH_I2C_Read... [12:42:26]Read from MH i2c: E2 03 00 C9 20 00 90 00 5D [12:42:26]RAPDU: 90 00 [12:42:26]wFMCommunicate OK [12:42:26]wFMCommunicate request_size=255 [12:42:26]MH_SAM_APDU [12:42:26]CAPDU: 80 0D 02 02 FA 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B5 6A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 09 7C 00 [12:42:26]Write to MH i2c: E2 02 01 CA 20 80 0D 02 02 FA 00 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B5 6A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 09 7C 00 00 00 E4 [12:42:26]Write i2c OK [12:42:26]MH_I2C_Read... [12:42:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:27]Read from MH i2c: E2 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 03 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 03 00 CA 20 00 90 00 5E [12:42:27]RAPDU: 90 00 [12:42:27]wFMCommunicate OK [12:42:27]wFMCommunicate request_size=16 [12:42:27]MH_SAM_APDU [12:42:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 60 00 C8 E0 E5 58 [12:42:27]Write to MH i2c: E2 13 00 CB 20 80 0D 02 02 0B 00 00 35 04 06 00 60 00 C8 E0 E5 58 00 00 FF [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:42:27]Read from MH i2c: E2 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 03 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 03 00 CB 20 00 90 00 5F [12:42:27]RAPDU: 90 00 [12:42:27]wFMCommunicate OK [12:42:27]wFMCommunicate request_size=4 [12:42:27]MH_SAM_APDU [12:42:27]CAPDU: 80 0D 03 02 [12:42:27]Write to MH i2c: E2 08 00 CC 20 80 0D 03 02 00 00 00 00 67 [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:42:27]Read from MH i2c: E2 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 0B 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 0B 00 CC 20 00 21 5C F5 BF FB 25 C6 58 90 00 D7 [12:42:27]RAPDU: 21 5C F5 BF FB 25 C6 58 90 00 [12:42:27]wFMCommunicate OK [12:42:27]SAM_PROTO_SignData done [12:42:27]FM_MakeSignedData done [12:42:27]CreateOFDProtocolMessage [12:42:27]wFMCommunicate request_size=4 [12:42:27]MH_SAM_APDU [12:42:27]CAPDU: 80 11 00 00 [12:42:27]Write to MH i2c: E2 08 00 CD 20 80 11 00 00 00 00 00 00 67 [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:27]Read from MH i2c: E2 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 17 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: E2 17 00 CD 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C2 [12:42:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:42:27]wFMCommunicate OK [12:42:27]CreateOFDProtocolMessage done [12:42:27]OFDSenderStorePacket 31753 [12:42:27]StoreOFDPacket docnum=31753 [12:42:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 09 03 00 00 E5 92 01 03 FC 6B 5A 03 01 00 03 00 F5 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 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 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 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 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB 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 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B5 6A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 09 7C 00 00 35 04 06 00 60 00 C8 E0 E5 58 21 5C F5 BF FB 25 C6 58 [12:42:27]CheckFolder [12:42:27]dirname=/storage/ofd_packets [12:42:27]CheckFolder done [12:42:27]ProducePacketName [12:42:27]name=ofd_packets/00031753 [12:42:27]NVStorageSaveData ofd_packets/00031753 [12:42:27]File name is /storage/ofd_packets/00031753 [12:42:27]Write 807 bytes [12:42:27]NVStorageSaveData done [12:42:27]OFDSenderStorePacket done [12:42:27]KKMCreateOFDPacket done [12:42:27]NVStorageSaveData kkm_last_timestamp [12:42:27]File name is /storage/kkm_last_timestamp [12:42:27]Write 4 bytes [12:42:27]NVStorageSaveData done [12:42:27]ExternCall_PrintAddStr [12:42:27]wPrintStart [12:42:27]Write to MH i2c: 01 00 00 CE 20 EE [12:42:27]Write i2c OK [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 07 00 [12:42:27]MH_I2C_Read... [12:42:27]Read from MH i2c: 01 07 00 CE 20 00 00 00 00 00 FF 0F 03 [12:42:27]RasterBufferAndPrint [12:42:27]line Счет N : (3)214334 [12:42:27]line ИНН: 02508201610067 [12:42:27]line Контрольно-Кассовый Чек [12:42:27]line ПРОДАЖА [12:42:27]line Товар: 4620016300305 [12:42:27]line Салфетки Absolut classic вл а/бакт 20 шт [12:42:27]line 1.000 * 65.00 [12:42:27]line = 65.00 [12:42:27]line НДС 12% НСП 1% [12:42:27]line > о реализуемом товаре [12:42:27]line Товар: 46177872 [12:42:27]line Жев Orbit подушки Citrus [12:42:27]line 1.000 * 40.00 [12:42:27]line = 40.00 [12:42:27]line НДС 12% НСП 1% [12:42:27]line > о реализуемом товаре [12:42:27]line Товар: 4870022003305 [12:42:27]line Напиток Gorilla эн нат ж/б 0,5/0,45л [12:42:27]line 1.000 * 110.00 [12:42:27]line = 110.00 [12:42:27]line НДС 12% НСП 1% [12:42:27]line > о реализуемом товаре [12:42:27]line Товар: 4870002325113 [12:42:27]line Напиток PEPSI газированный ст 0,25л [12:42:27]line 1.000 * 90.00 [12:42:27]line = 90.00 [12:42:27]line НДС 12% НСП 1% [12:42:27]line > о реализуемом товаре [12:42:27]line Товар: 4870112003925 [12:42:27]line Конд ULKER-Albeni 40gr (6*24) [12:42:27]line 2.000 * 55.00 [12:42:27]line = 110.00 [12:42:27]line НДС 12% НСП 1% [12:42:27]line > о реализуемом товаре [12:42:27]line ИТОГО: 415.00 [12:42:27]line НСП 1% : 3.66 [12:42:27]line НДС 12% : 44.07 [12:42:27]line Наличными: 0.00 [12:42:27]line Безнал.: 415.00 [12:42:27]line Место: АЗС № 140 "Партнер Нефть" [12:42:27]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [12:42:27]line СНО: Общий режим [12:42:27]line Чек 72 16.07.2024 12:42 [12:42:27]line Смена: 371 ФФД: 1.0 [12:42:27]line ЗНМ: 0300000189 [12:42:27]line РНМ: 0000000000098025 [12:42:27]line Версия ККМ: 001 [12:42:27]line Платежная система: Бакай Банк [12:42:27]line ФМ: 0000000000965389 [12:42:27]line ФД: 31753 [12:42:27]line ФПД: 105556486448472 [12:42:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T124229&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31753&fm=105556486448472&tin=02508201610067®Number=0000000000098025&sum=41500 [12:42:27]OFD Sender: Processing packet 31753 [packets to send 6, broken 5] [12:42:27]line 0 [12:42:27]ProducePacketName [12:42:27]name=ofd_packets/00031753 [12:42:27]OFD Sender: To server: pG, [12:42:27]CommunicateWithHost lk.salyk.kg:30040 [12:42:27]ConnectInit lk.salyk.kg [12:42:27]written 0, free lines is 4095 [12:42:27]Connected sock=10 [12:42:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 09 03 00 00 E5 92 01 03 FC 6B 5A 03 01 00 03 00 F5 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 32 30 30 31 36 33 30 30 33 30 35 06 04 39 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 41 62 73 6F 6C 75 74 20 63 6C 61 73 73 69 63 20 D0 B2 D0 BB 20 D0 B0 2F D0 B1 D0 B0 D0 BA D1 82 20 32 30 20 D1 88 D1 82 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 61 00 8A 04 08 00 34 36 31 37 37 38 37 32 06 04 22 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 BF D0 BE D0 B4 D1 83 D1 88 D0 BA D0 B8 20 43 69 74 72 75 73 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 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 23 04 7D 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 31 31 33 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 45 50 53 49 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D1 81 D1 82 20 30 2C 32 35 D0 BB 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 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 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 B5 6A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 09 7C 00 00 35 04 06 00 60 00 C8 E0 E5 58 21 5C F5 BF FB 25 C6 58 [12:42:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 08 7E 47 00 92 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 09 7C 00 00 F4 03 04 00 C3 16 96 66 B6 04 01 00 00 8F E2 53 31 1F 8A D9 0D [12:42:27]CommunicateWithHost err = 0 [12:42:27]CheckOFDResponse [12:42:27]1017 (14) - 77093643461234 [12:42:27]1041 (16) - 0000000000965389 [12:42:27]1040 (4) - 31753 [12:42:27]1012 (4) - 16.07.2024 06:44 [12:42:27]1206 (1) - 0 [12:42:27]OFD Sender: Remove packet 31753 [12:42:27]ProducePacketName [12:42:27]name=ofd_packets/00031753 [12:42:27]NVStorageDeleteData [12:42:28]Write to MH i2c: 01 00 00 13 21 34 [12:42:28]Write i2c OK [12:42:28]MH_I2C_Read... [12:42:28]Read from MH i2c: 01 [12:42:28]MH_I2C_Read... [12:42:28]Read from MH i2c: 01 07 00 [12:42:28]MH_I2C_Read... [12:42:28]Read from MH i2c: 01 07 00 13 21 00 00 00 00 00 48 0B 8E [12:42:28]RasterBufferAndPrint [12:42:28]line [12:42:28]line [12:42:28]line [12:42:28]line [12:42:28]line [12:42:28]written 0, free lines is 2896 [12:42:28]MH_Cut [12:42:28]Write to MH i2c: D1 01 00 1A 21 01 0D [12:42:28]Write i2c OK [12:42:28]MH_I2C_Read... [12:42:28]Read from MH i2c: D1 [12:42:28]MH_I2C_Read... [12:42:28]Read from MH i2c: D1 01 00 [12:42:28]MH_I2C_Read... [12:42:28]Read from MH i2c: D1 01 00 1A 21 00 0C [12:42:28]Write to MH i2c: 01 00 00 1B 21 3C [12:42:28]Write i2c OK [12:42:28]MH_I2C_Read... [12:42:28]OFD Sender: No OFD packet to send [12:42:29]*** Cut start [12:42:29]*** Partial cut [12:42:29]*** CUTSNS_PIN = 1 [12:42:29]*** CUTSNS_PIN = 0 [12:42:29]*** Brake cut motor [12:42:29]Read from MH i2c: 01 [12:42:29]MH_I2C_Read... [12:42:29]*** Stop cut motor [12:42:29]*** Cut end [12:42:29]Read from MH i2c: 01 07 00 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: 01 07 00 1B 21 00 00 00 00 00 FF 0F 51 [12:42:29]process_action close_receipt done [12:42:29]requested_data is exist [12:42:29]produce_requested_data [12:42:29]requested_item fm.sn is exist - process it [12:42:29]wFMCommunicate request_size=4 [12:42:29]MH_SAM_APDU [12:42:29]CAPDU: 80 11 00 00 [12:42:29]Write to MH i2c: E2 08 00 1C 21 80 11 00 00 00 00 00 00 B7 [12:42:29]Write i2c OK [12:42:29]MH_I2C_Read... [12:42:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:42:29]Read from MH i2c: E2 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 17 00 [12:42:29]MH_I2C_Read... [12:42:29]Read from MH i2c: E2 17 00 1C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 12 [12:42:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [12:42:29]wFMCommunicate OK [12:42:29]requested_item fd.num is exist - process it [12:42:29]SAM_PROTO_GetFieldsCounters [12:42:29]wFMCommunicate request_size=4 [12:42:29]MH_SAM_APDU [12:42:29]CAPDU: 80 13 00 00 [12:42:29]Write to MH i2c: E2 08 00 1D 21 80 13 00 00 00 00 00 00 BA [12:42:29]Write i2c OK [12:42:29]MH_I2C_Read... [12:42:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:42:30]Read from MH i2c: E2 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 62 00 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 62 00 1D 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 09 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [12:42: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 09 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:42:30]wFMCommunicate OK [12:42:30]SAM_PROTO_GetFieldsCounters done [12:42:30]requested_item shift.num is exist - process it [12:42:30]requested_item shift.opened is exist - process it [12:42:30]req_shift_opened [12:42:30]FM_GetShiftState [12:42:30]SAM_PROTO_GetShiftState [12:42:30]wFMCommunicate request_size=4 [12:42:30]MH_SAM_APDU [12:42:30]CAPDU: 80 13 01 00 [12:42:30]Write to MH i2c: E2 08 00 1E 21 80 13 01 00 00 00 00 00 BC [12:42:30]Write i2c OK [12:42:30]MH_I2C_Read... [12:42:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:42:30]Read from MH i2c: E2 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 0E 00 [12:42:30]MH_I2C_Read... [12:42:30]Read from MH i2c: E2 0E 00 1E 21 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 0B [12:42:30]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [12:42:30]wFMCommunicate OK [12:42:30]SAM_PROTO_GetShiftState done [12:42:30]FM_GetShiftState done [12:42:30]req_shift_opened done [12:42:30]requested_item shift.open_date is exist - process it [12:42:30]req_shift_open_date [12:42:30]req_shift_open_date done [12:42:30]produce_requested_data done [12:42:30]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31753,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [12:42:30]process_action_free close_receipt [12:42:30]json_value_free [12:42:30]json_value_free done [12:42:30]process_json_proto returns [12:42:30]Send response to host [12:42:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31753,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [12:42:30]free response buf [12:42:30]execute_script done [12:42:30]execute_script returns [12:42:30]free content buf [12:42:30]Sock 9.Close socket [12:42:30]Sock 9.Thread stoped [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:28]OFD Sender: No OFD packet to send [12:45:33]OFD Sender: No OFD packet to send [12:45:38]OFD Sender: No OFD packet to send [12:45:43]OFD Sender: No OFD packet to send [12:45:48]OFD Sender: No OFD packet to send [12:45:53]OFD Sender: No OFD packet to send [12:45:58]OFD Sender: No OFD packet to send [12:46:03]OFD Sender: No OFD packet to send [12:46:08]OFD Sender: No OFD packet to send [12:46:13]OFD Sender: No OFD packet to send [12:46:18]OFD Sender: No OFD packet to send [12:46:23]OFD Sender: No OFD packet to send [12:46:28]OFD Sender: No OFD packet to send [12:46:33]OFD Sender: No OFD packet to send [12:46:38]OFD Sender: No OFD packet to send [12:46:43]OFD Sender: No OFD packet to send [12:46:48]OFD Sender: No OFD packet to send [12:46:53]OFD Sender: No OFD packet to send [12:46:58]OFD Sender: No OFD packet to send [12:47:03]OFD Sender: No OFD packet to send [12:47:08]OFD Sender: No OFD packet to send [12:47:13]OFD Sender: No OFD packet to send [12:47:18]OFD Sender: No OFD packet to send [12:47:23]OFD Sender: No OFD packet to send [12:47:28]OFD Sender: No OFD packet to send [12:47:33]OFD Sender: No OFD packet to send [12:47:38]OFD Sender: No OFD packet to send [12:47:43]OFD Sender: No OFD packet to send [12:47:48]OFD Sender: No OFD packet to send [12:47:53]OFD Sender: No OFD packet to send [12:47:58]OFD Sender: No OFD packet to send [12:48:03]OFD Sender: No OFD packet to send [12:48:08]OFD Sender: No OFD packet to send [12:48:13]OFD Sender: No OFD packet to send [12:48:18]OFD Sender: No OFD packet to send [12:48:23]OFD Sender: No OFD packet to send [12:48:28]OFD Sender: No OFD packet to send [12:48:33]OFD Sender: No OFD packet to send [12:48:38]OFD Sender: No OFD packet to send [12:48:43]OFD Sender: No OFD packet to send [12:48:48]OFD Sender: No OFD packet to send [12:48:53]OFD Sender: No OFD packet to send [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:38]OFD Sender: No OFD packet to send [12:50:43]OFD Sender: No OFD packet to send [12:50:48]OFD Sender: No OFD packet to send [12:50:53]OFD Sender: No OFD packet to send [12:50:58]OFD Sender: No OFD packet to send [12:51:03]OFD Sender: No OFD packet to send [12:51:08]OFD Sender: No OFD packet to send [12:51:13]OFD Sender: No OFD packet to send [12:51:18]OFD Sender: No OFD packet to send [12:51:23]OFD Sender: No OFD packet to send [12:51:28]OFD Sender: No OFD packet to send [12:51:33]OFD Sender: No OFD packet to send [12:51:38]OFD Sender: No OFD packet to send [12:51:43]OFD Sender: No OFD packet to send [12:51:48]OFD Sender: No OFD packet to send [12:51:53]OFD Sender: No OFD packet to send [12:51:58]OFD Sender: No OFD packet to send [12:52:03]OFD Sender: No OFD packet to send [12:52:08]OFD Sender: No OFD packet to send [12:52:13]OFD Sender: No OFD packet to send [12:52:18]OFD Sender: No OFD packet to send [12:52:23]OFD Sender: No OFD packet to send [12:52:28]OFD Sender: No OFD packet to send [12:52:33]OFD Sender: No OFD packet to send [12:52:38]OFD Sender: No OFD packet to send [12:52:43]OFD Sender: No OFD packet to send [12:52:48]OFD Sender: No OFD packet to send [12:52:53]OFD Sender: No OFD packet to send [12:52:58]OFD Sender: No OFD packet to send [12:53:03]OFD Sender: No OFD packet to send [12:53:08]OFD Sender: No OFD packet to send [12:53:13]OFD Sender: No OFD packet to send [12:53:18]OFD Sender: No OFD packet to send [12:53:23]OFD Sender: No OFD packet to send [12:53:28]OFD Sender: No OFD packet to send [12:53:33]OFD Sender: No OFD packet to send [12:53:38]OFD Sender: No OFD packet to send [12:53:43]OFD Sender: No OFD packet to send [12:53:48]OFD Sender: No OFD packet to send [12:53:53]OFD Sender: No OFD packet to send [12:53:58]OFD Sender: No OFD packet to send [12:54:03]OFD Sender: No OFD packet to send [12:54:08]OFD Sender: No OFD packet to send [12:54:13]OFD Sender: No OFD packet to send [12:54:18]OFD Sender: No OFD packet to send [12:54:23]OFD Sender: No OFD packet to send [12:54:28]OFD Sender: No OFD packet to send [12:54:33]OFD Sender: No OFD packet to send [12:54:38]OFD Sender: No OFD packet to send [12:54:43]OFD Sender: No OFD packet to send [12:54:48]OFD Sender: No OFD packet to send [12:54:53]OFD Sender: No OFD packet to send [12:54:58]OFD Sender: No OFD packet to send [12:55:03]OFD Sender: No OFD packet to send [12:55:08]OFD Sender: No OFD packet to send [12:55:13]OFD Sender: No OFD packet to send [12:55:18]OFD Sender: No OFD packet to send [12:55:23]OFD Sender: No OFD packet to send [12:55:28]OFD Sender: No OFD packet to send [12:55:33]OFD Sender: No OFD packet to send [12:55:38]OFD Sender: No OFD packet to send [12:55:43]OFD Sender: No OFD packet to send [12:55:48]OFD Sender: No OFD packet to send [12:55:53]OFD Sender: No OFD packet to send [12:55:58]OFD Sender: No OFD packet to send [12:56:03]OFD Sender: No OFD packet to send [12:56:08]OFD Sender: No OFD packet to send [12:56:13]OFD Sender: No OFD packet to send [12:56:18]OFD Sender: No OFD packet to send [12:56:23]OFD Sender: No OFD packet to send [12:56:28]OFD Sender: No OFD packet to send [12:56:33]OFD Sender: No OFD packet to send [12:56:38]OFD Sender: No OFD packet to send [12:56:43]OFD Sender: No OFD packet to send [12:56: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:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:09]OFD Sender: No OFD packet to send [13:07:14]OFD Sender: No OFD packet to send [13:07:19]OFD Sender: No OFD packet to send [13:07:24]OFD Sender: No OFD packet to send [13:07:29]OFD Sender: No OFD packet to send [13:07:34]OFD Sender: No OFD packet to send [13:07:36]accept exits with 7 [13:07:36]New connection [13:07:36]New thread 3066821988 created [13:07:36]Thread 3066965348 joined [13:07:36]Waiting for new connection... [13:07:36] Sock 7.Parse request [13:07:36]Sock 7.Check first char [13:07:36]Sock 7.First char is OK [13:07:36]request: POST /json_proto HTTP/1.0 [13:07:36]Method: POST [13:07:36]URL: /json_proto [13:07:36]Method is POST - this is cgi request [13:07:36]url: /json_proto [13:07:36]query_string will be loaded in cgi processing [13:07:36]execute_cgi json_proto POST (null) [13:07:36]execute_cgi path=json_proto method=POST [13:07:36]POST find Content-Length [13:07:36]Host: 172.17.39.68:8080 [13:07:36]Content-Length: 623 [13:07:36]Content-Type: application/json [13:07:36] [13:07:36]POST finish read [13:07:36]Found Content-Length = 623 [13:07:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214335", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "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" ] } } [13:07:36]execute_script... [13:07: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)214335", "tax_sys" : 0, "items" : [ { "code": "48741415", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Super Slims Violet", "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" ] } } [13:07:36]POST & json_proto [13:07:36]process_json_proto [13:07:36]json parsed OK: [13:07:36]protocol is kg_v1.0 [13:07:36]action value=close_receipt [13:07:36]process_action close_receipt [13:07:36]cmd_close_receipt [13:07:36]MH_GetDate [13:07:36]Write to MH i2c: F0 00 00 1F 21 2F [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: F0 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: F0 09 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: F0 09 00 1F 21 00 9C 70 96 66 D6 48 95 66 59 [13:07:36]GetLastDocTimeStamp 1721133749 [13:07:36]current date 1721135260 [13:07:36]FM_GetShiftState [13:07:36]SAM_PROTO_GetShiftState [13:07:36]wFMCommunicate request_size=4 [13:07:36]MH_SAM_APDU [13:07:36]CAPDU: 80 13 01 00 [13:07:36]Write to MH i2c: E2 08 00 20 21 80 13 01 00 00 00 00 00 BE [13:07:36]Write i2c OK [13:07:36]MH_I2C_Read... [13:07:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:36]Read from MH i2c: E2 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 0E 00 [13:07:36]MH_I2C_Read... [13:07:36]Read from MH i2c: E2 0E 00 20 21 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 0D [13:07:36]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:07:36]wFMCommunicate OK [13:07:36]SAM_PROTO_GetShiftState done [13:07:36]FM_GetShiftState done [13:07:36]opened in 1721088399 [13:07:36]opened+sec_in_day 1721174799 [13:07:36]quantity*price = 26000 [13:07:36]sum+1 = 26001 [13:07:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 73 16.07.2024 13:07 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31754 ФПД: 84420421574851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T130740&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31754&fm=84420421574851&tin=02508201610067®Number=0000000000098025&sum=26000 0 [13:07:37]StoreToDocumentArchive [13:07:37]shift 371 fd 31754 [13:07:37]save to /storage/0371/doc_00031754 [13:07:37]save last doc name /storage/0371/doc_00031754 to /storage/kkm_last_doc_name [13:07:37]save OK [13:07:37]Clear old archive folders... [13:07:37]ProcessDocumentItem done err = 0, tmpTLVsize=275 [13:07:37]tlvbuf is 01476BD0 [13:07:37]SAM_PROTO_ClearQueue [13:07:37]wFMCommunicate request_size=4 [13:07:37]MH_SAM_APDU [13:07:37]CAPDU: 80 09 00 00 [13:07:37]Write to MH i2c: E2 08 00 2D 21 80 09 00 00 00 00 00 00 C0 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:37]Read from MH i2c: E2 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 03 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 03 00 2D 21 00 90 00 C2 [13:07:37]RAPDU: 90 00 [13:07:37]wFMCommunicate OK [13:07:37]SAM_PROTO_ClearQueue done [13:07:37]KKMCreateOFDPacket [13:07:37]OFDProtocolAddRootSTLVToBuf [13:07:37]FM_MakeSignedData [13:07:37]FM_MakeSignedData [13:07:37]SAM_PROTO_SignData [13:07:37]wFMCommunicate request_size=4 [13:07:37]MH_SAM_APDU [13:07:37]CAPDU: 80 0D 01 02 [13:07:37]Write to MH i2c: E2 08 00 2E 21 80 0D 01 02 00 00 00 00 C8 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:37]Read from MH i2c: E2 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 03 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 03 00 2E 21 00 90 00 C3 [13:07:37]RAPDU: 90 00 [13:07:37]wFMCommunicate OK [13:07:37]wFMCommunicate request_size=255 [13:07:37]MH_SAM_APDU [13:07:37]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 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 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 49 00 00 00 F4 03 04 00 9C 70 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [13:07:37]Write to MH i2c: E2 02 01 2F 21 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 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 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 49 00 00 00 F4 03 04 00 9C 70 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 10 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:37]Read from MH i2c: E2 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 03 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 03 00 2F 21 00 90 00 C4 [13:07:37]RAPDU: 90 00 [13:07:37]wFMCommunicate OK [13:07:37]wFMCommunicate request_size=34 [13:07:37]MH_SAM_APDU [13:07:37]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0A 7C 00 00 35 04 06 00 4C C7 A9 3D 60 C3 [13:07:37]Write to MH i2c: E2 25 00 30 21 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0A 7C 00 00 35 04 06 00 4C C7 A9 3D 60 C3 00 00 36 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:37]Read from MH i2c: E2 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 03 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 03 00 30 21 00 90 00 C5 [13:07:37]RAPDU: 90 00 [13:07:37]wFMCommunicate OK [13:07:37]wFMCommunicate request_size=4 [13:07:37]MH_SAM_APDU [13:07:37]CAPDU: 80 0D 03 02 [13:07:37]Write to MH i2c: E2 08 00 31 21 80 0D 03 02 00 00 00 00 CD [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:37]Read from MH i2c: E2 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 0B 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 0B 00 31 21 00 BA FC 64 F8 34 27 13 89 90 00 D7 [13:07:37]RAPDU: BA FC 64 F8 34 27 13 89 90 00 [13:07:37]wFMCommunicate OK [13:07:37]SAM_PROTO_SignData done [13:07:37]FM_MakeSignedData done [13:07:37]CreateOFDProtocolMessage [13:07:37]wFMCommunicate request_size=4 [13:07:37]MH_SAM_APDU [13:07:37]CAPDU: 80 11 00 00 [13:07:37]Write to MH i2c: E2 08 00 32 21 80 11 00 00 00 00 00 00 CD [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:37]Read from MH i2c: E2 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 17 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: E2 17 00 32 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 28 [13:07:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:07:37]wFMCommunicate OK [13:07:37]CreateOFDProtocolMessage done [13:07:37]OFDSenderStorePacket 31754 [13:07:37]StoreOFDPacket docnum=31754 [13:07:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 9D 60 1F 01 AC BD 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 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 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 49 00 00 00 F4 03 04 00 9C 70 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0A 7C 00 00 35 04 06 00 4C C7 A9 3D 60 C3 BA FC 64 F8 34 27 13 89 [13:07:37]CheckFolder [13:07:37]dirname=/storage/ofd_packets [13:07:37]CheckFolder done [13:07:37]ProducePacketName [13:07:37]name=ofd_packets/00031754 [13:07:37]NVStorageSaveData ofd_packets/00031754 [13:07:37]File name is /storage/ofd_packets/00031754 [13:07:37]Write 325 bytes [13:07:37]NVStorageSaveData done [13:07:37]OFDSenderStorePacket done [13:07:37]KKMCreateOFDPacket done [13:07:37]NVStorageSaveData kkm_last_timestamp [13:07:37]File name is /storage/kkm_last_timestamp [13:07:37]Write 4 bytes [13:07:37]NVStorageSaveData done [13:07:37]ExternCall_PrintAddStr [13:07:37]wPrintStart [13:07:37]Write to MH i2c: 01 00 00 33 21 54 [13:07:37]Write i2c OK [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 07 00 [13:07:37]MH_I2C_Read... [13:07:37]Read from MH i2c: 01 07 00 33 21 00 00 00 00 00 FF 0F 69 [13:07:37]RasterBufferAndPrint [13:07:37]line Счет N : (3)214335 [13:07:37]line ИНН: 02508201610067 [13:07:37]line Контрольно-Кассовый Чек [13:07:37]line ПРОДАЖА [13:07:37]line Товар: 48741415 [13:07:37]line Сигареты LD Super Slims Violet [13:07:37]line 2.000 * 130.00 [13:07:37]line = 260.00 [13:07:37]line НДС 12% НСП 1% [13:07:37]line > о реализуемом товаре [13:07:37]line ИТОГО: 260.00 [13:07:37]line НСП 1% : 2.30 [13:07:37]line НДС 12% : 27.61 [13:07:37]line Наличными: 260.00 [13:07:37]line Безнал.: 0.00 [13:07:37]line Место: АЗС № 140 "Партнер Нефть" [13:07:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:07:37]line СНО: Общий режим [13:07:37]line Чек 73 16.07.2024 13:07 [13:07:37]line Смена: 371 ФФД: 1.0 [13:07:37]line ЗНМ: 0300000189 [13:07:38]line РНМ: 0000000000098025 [13:07:38]line Версия ККМ: 001 [13:07:38]line ФМ: 0000000000965389 [13:07:38]line ФД: 31754 [13:07:38]line ФПД: 84420421574851 [13:07:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T130740&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31754&fm=84420421574851&tin=02508201610067®Number=0000000000098025&sum=26000 [13:07:38]line 0 [13:07:38]OFD Sender: Processing packet 31754 [packets to send 6, broken 5] [13:07:38]ProducePacketName [13:07:38]name=ofd_packets/00031754 [13:07:38]OFD Sender: To server: pG, [13:07:38]CommunicateWithHost lk.salyk.kg:30040 [13:07:38]ConnectInit lk.salyk.kg [13:07:38]written 0, free lines is 4095 [13:07:38]Connected sock=10 [13:07:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 9D 60 1F 01 AC BD 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 31 34 31 35 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 53 75 70 65 72 20 53 6C 69 6D 73 20 56 69 6F 6C 65 74 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 49 00 00 00 F4 03 04 00 9C 70 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0A 7C 00 00 35 04 06 00 4C C7 A9 3D 60 C3 BA FC 64 F8 34 27 13 89 [13:07:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 35 64 47 00 E9 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0A 7C 00 00 F4 03 04 00 AA 1C 96 66 B6 04 01 00 00 E7 CA A0 82 73 67 A4 D3 [13:07:38]CommunicateWithHost err = 0 [13:07:38]CheckOFDResponse [13:07:38]1017 (14) - 77093643461234 [13:07:38]1041 (16) - 0000000000965389 [13:07:38]1040 (4) - 31754 [13:07:38]1012 (4) - 16.07.2024 07:09 [13:07:38]1206 (1) - 0 [13:07:38]OFD Sender: Remove packet 31754 [13:07:38]ProducePacketName [13:07:38]name=ofd_packets/00031754 [13:07:38]NVStorageDeleteData [13:07:38]Write to MH i2c: 01 00 00 5C 21 7D [13:07:38]Write i2c OK [13:07:38]MH_I2C_Read... [13:07:38]Read from MH i2c: 01 [13:07:38]MH_I2C_Read... [13:07:38]Read from MH i2c: 01 07 00 [13:07:38]MH_I2C_Read... [13:07:38]Read from MH i2c: 01 07 00 5C 21 00 00 00 00 00 E3 0C 73 [13:07:38]RasterBufferAndPrint [13:07:38]line [13:07:38]line [13:07:38]line [13:07:38]line [13:07:38]line [13:07:38]written 0, free lines is 3305 [13:07:38]MH_Cut [13:07:38]Write to MH i2c: D1 01 00 63 21 01 56 [13:07:38]Write i2c OK [13:07:38]MH_I2C_Read... [13:07:38]Read from MH i2c: D1 [13:07:38]MH_I2C_Read... [13:07:38]Read from MH i2c: D1 01 00 [13:07:38]MH_I2C_Read... [13:07:38]Read from MH i2c: D1 01 00 63 21 00 55 [13:07:38]Write to MH i2c: 01 00 00 64 21 85 [13:07:38]Write i2c OK [13:07:38]MH_I2C_Read... [13:07:39]OFD Sender: No OFD packet to send [13:07:39]*** Cut start [13:07:39]*** Partial cut [13:07:39]*** CUTSNS_PIN = 1 [13:07:39]*** CUTSNS_PIN = 0 [13:07:39]*** Brake cut motor [13:07:40]Read from MH i2c: 01 [13:07:40]MH_I2C_Read... [13:07:40]*** Stop cut motor [13:07:40]*** Cut end [13:07:40]Read from MH i2c: 01 07 00 [13:07:40]MH_I2C_Read... [13:07:40]Read from MH i2c: 01 07 00 64 21 00 00 00 00 00 FF 0F 9A [13:07:40]process_action close_receipt done [13:07:40]requested_data is exist [13:07:40]produce_requested_data [13:07:40]requested_item fm.sn is exist - process it [13:07:40]wFMCommunicate request_size=4 [13:07:40]MH_SAM_APDU [13:07:40]CAPDU: 80 11 00 00 [13:07:40]Write to MH i2c: E2 08 00 65 21 80 11 00 00 00 00 00 00 00 [13:07:40]Write i2c OK [13:07:40]MH_I2C_Read... [13:07:40]Read from MH i2c: E2 [13:07:40]MH_I2C_Read... [13:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:40]Read from MH i2c: E2 17 00 [13:07:40]MH_I2C_Read... [13:07:40]Read from MH i2c: E2 17 00 65 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 5B [13:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:07:40]wFMCommunicate OK [13:07:40]requested_item fd.num is exist - process it [13:07:40]SAM_PROTO_GetFieldsCounters [13:07:40]wFMCommunicate request_size=4 [13:07:40]MH_SAM_APDU [13:07:40]CAPDU: 80 13 00 00 [13:07:40]Write to MH i2c: E2 08 00 66 21 80 13 00 00 00 00 00 00 03 [13:07:40]Write i2c OK [13:07:40]MH_I2C_Read... [13:07:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:40]Read from MH i2c: E2 [13:07:40]MH_I2C_Read... [13:07:40]Read from MH i2c: E2 62 00 [13:07:40]MH_I2C_Read... [13:07:40]Read from MH i2c: E2 62 00 66 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [13:07:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:07:40]wFMCommunicate OK [13:07:40]SAM_PROTO_GetFieldsCounters done [13:07:40]requested_item shift.num is exist - process it [13:07:40]requested_item shift.opened is exist - process it [13:07:40]req_shift_opened [13:07:40]FM_GetShiftState [13:07:40]SAM_PROTO_GetShiftState [13:07:40]wFMCommunicate request_size=4 [13:07:40]MH_SAM_APDU [13:07:40]CAPDU: 80 13 01 00 [13:07:40]Write to MH i2c: E2 08 00 67 21 80 13 01 00 00 00 00 00 05 [13:07:40]Write i2c OK [13:07:40]MH_I2C_Read... [13:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:40]Read from MH i2c: E2 [13:07:40]MH_I2C_Read... [13:07:40]Read from MH i2c: E2 0E 00 [13:07:40]MH_I2C_Read... [13:07:40]Read from MH i2c: E2 0E 00 67 21 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 54 [13:07:40]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:07:40]wFMCommunicate OK [13:07:40]SAM_PROTO_GetShiftState done [13:07:40]FM_GetShiftState done [13:07:40]req_shift_opened done [13:07:40]requested_item shift.open_date is exist - process it [13:07:40]req_shift_open_date [13:07:40]req_shift_open_date done [13:07:40]produce_requested_data done [13:07:40]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31754,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [13:07:40]process_action_free close_receipt [13:07:40]json_value_free [13:07:40]json_value_free done [13:07:40]process_json_proto returns [13:07:40]Send response to host [13:07:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31754,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [13:07:40]free response buf [13:07:40]execute_script done [13:07:40]execute_script returns [13:07:40]free content buf [13:07:40]Sock 7.Close socket [13:07:40]Sock 7.Thread stoped [13:07:44]OFD Sender: No OFD packet to send [13:07:49]OFD Sender: No OFD packet to send [13:07:54]OFD Sender: No OFD packet to send [13:07:59]OFD Sender: No OFD packet to send [13:08:04]OFD Sender: No OFD packet to send [13:08:09]OFD Sender: No OFD packet to send [13:08:14]OFD Sender: No OFD packet to send [13:08:19]OFD Sender: No OFD packet to send [13:08:24]OFD Sender: No OFD packet to send [13:08:29]OFD Sender: No OFD packet to send [13:08:34]OFD Sender: No OFD packet to send [13:08:39]OFD Sender: No OFD packet to send [13:08:44]OFD Sender: No OFD packet to send [13:08:49]OFD Sender: No OFD packet to send [13:08:54]OFD Sender: No OFD packet to send [13:08:59]OFD Sender: No OFD packet to send [13:09:04]OFD Sender: No OFD packet to send [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:34]OFD Sender: No OFD packet to send [13:09:39]OFD Sender: No OFD packet to send [13:09:44]OFD Sender: No OFD packet to send [13:09:49]OFD Sender: No OFD packet to send [13:09:54]OFD Sender: No OFD packet to send [13:09:59]OFD Sender: No OFD packet to send [13:10:04]OFD Sender: No OFD packet to send [13:10:09]OFD Sender: No OFD packet to send [13:10:14]OFD Sender: No OFD packet to send [13:10:19]OFD Sender: No OFD packet to send [13:10:24]OFD Sender: No OFD packet to send [13:10:29]OFD Sender: No OFD packet to send [13:10:34]OFD Sender: No OFD packet to send [13:10:39]OFD Sender: No OFD packet to send [13:10:44]accept exits with 9 [13:10:44]New connection [13:10:44]New thread 3066965348 created [13:10:44]Thread 3066821988 joined [13:10:44]Waiting for new connection... [13:10:44] Sock 9.Parse request [13:10:44]Sock 9.Check first char [13:10:44]Sock 9.First char is OK [13:10:44]request: POST /json_proto HTTP/1.0 [13:10:44]Method: POST [13:10:44]URL: /json_proto [13:10:44]Method is POST - this is cgi request [13:10:44]url: /json_proto [13:10:44]query_string will be loaded in cgi processing [13:10:44]execute_cgi json_proto POST (null) [13:10:44]execute_cgi path=json_proto method=POST [13:10:44]POST find Content-Length [13:10:44]Host: 172.17.39.68:8080 [13:10:44]Content-Length: 1570 [13:10:44]Content-Type: application/json [13:10:44] [13:10:44]POST finish read [13:10:44]Found Content-Length = 1570 [13:10:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214336", "tax_sys" : 0, "items" : [ { "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 462.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:44]execute_script... [13:10: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)214336", "tax_sys" : 0, "items" : [ { "code": "4870002329937", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 462.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:44]POST & json_proto [13:10:44]process_json_proto [13:10:44]json parsed OK: [13:10:44]protocol is kg_v1.0 [13:10:44]action value=close_receipt [13:10:44]process_action close_receipt [13:10:44]cmd_close_receipt [13:10:44]MH_GetDate [13:10:44]Write to MH i2c: F0 00 00 68 21 78 [13:10:44]Write i2c OK [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: F0 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: F0 09 00 [13:10:44]MH_I2C_Read... [13:10:44]OFD Sender: No OFD packet to send [13:10:44]Read from MH i2c: F0 09 00 68 21 00 58 71 96 66 D6 48 95 66 5F [13:10:44]GetLastDocTimeStamp 1721135260 [13:10:44]current date 1721135448 [13:10:44]FM_GetShiftState [13:10:44]SAM_PROTO_GetShiftState [13:10:44]wFMCommunicate request_size=4 [13:10:44]MH_SAM_APDU [13:10:44]CAPDU: 80 13 01 00 [13:10:44]Write to MH i2c: E2 08 00 69 21 80 13 01 00 00 00 00 00 07 [13:10:44]Write i2c OK [13:10:44]MH_I2C_Read... [13:10:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:44]Read from MH i2c: E2 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: E2 0E 00 [13:10:44]MH_I2C_Read... [13:10:44]Read from MH i2c: E2 0E 00 69 21 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 56 [13:10:44]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:10:44]wFMCommunicate OK [13:10:44]SAM_PROTO_GetShiftState done [13:10:44]FM_GetShiftState done [13:10:44]opened in 1721088399 [13:10:44]opened+sec_in_day 1721174799 [13:10:44]quantity*price = 13000 [13:10:44]sum+1 = 13001 [13:10:44]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002328398 Вода ASU пит н.газ мята ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870202521292 Напиток Сок березы 1,2л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000189356 Холодный чай Fuse манго ананас 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 462.00 НСП 1% : 4.09 НДС 12% : 49.05 Наличными: 462.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 74 16.07.2024 13:10 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31755 ФПД: 178115706458222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T131049&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31755&fm=178115706458222&tin=02508201610067®Number=0000000000098025&sum=46200 0 [13:10:45]StoreToDocumentArchive [13:10:45]shift 371 fd 31755 [13:10:45]save to /storage/0371/doc_00031755 [13:10:45]save last doc name /storage/0371/doc_00031755 to /storage/kkm_last_doc_name [13:10:45]save OK [13:10:45]Clear old archive folders... [13:10:45]ProcessDocumentItem done err = 0, tmpTLVsize=656 [13:10:45]tlvbuf is 014766A0 [13:10:45]SAM_PROTO_ClearQueue [13:10:45]wFMCommunicate request_size=4 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 09 00 00 [13:10:45]Write to MH i2c: E2 08 00 76 21 80 09 00 00 00 00 00 00 09 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 76 21 00 90 00 0B [13:10:45]RAPDU: 90 00 [13:10:45]wFMCommunicate OK [13:10:45]SAM_PROTO_ClearQueue done [13:10:45]KKMCreateOFDPacket [13:10:45]OFDProtocolAddRootSTLVToBuf [13:10:45]FM_MakeSignedData [13:10:45]FM_MakeSignedData [13:10:45]SAM_PROTO_SignData [13:10:45]wFMCommunicate request_size=4 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 0D 01 02 [13:10:45]Write to MH i2c: E2 08 00 77 21 80 0D 01 02 00 00 00 00 11 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 77 21 00 90 00 0C [13:10:45]RAPDU: 90 00 [13:10:45]wFMCommunicate OK [13:10:45]wFMCommunicate request_size=255 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 0D 02 02 FA 03 00 90 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [13:10:45]Write to MH i2c: E2 02 01 78 21 80 0D 02 02 FA 00 03 00 90 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 D9 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:45]Read from MH i2c: E2 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 [13:10:45]MH_I2C_Read... [13:10:45]Read from MH i2c: E2 03 00 78 21 00 90 00 0D [13:10:45]RAPDU: 90 00 [13:10:45]wFMCommunicate OK [13:10:45]wFMCommunicate request_size=255 [13:10:45]MH_SAM_APDU [13:10:45]CAPDU: 80 0D 02 02 FA BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 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 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 FC 03 06 00 78 [13:10:45]Write to MH i2c: E2 02 01 79 21 80 0D 02 02 FA 00 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 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 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 FC 03 06 00 78 00 00 99 [13:10:45]Write i2c OK [13:10:45]MH_I2C_Read... [13:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:46]Read from MH i2c: E2 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: E2 03 00 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: E2 03 00 79 21 00 90 00 0E [13:10:46]RAPDU: 90 00 [13:10:46]wFMCommunicate OK [13:10:46]wFMCommunicate request_size=165 [13:10:46]MH_SAM_APDU [13:10:46]CAPDU: 80 0D 02 02 A0 B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 13 00 00 00 00 07 04 06 00 78 B4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 59 71 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0B 7C 00 00 35 04 06 00 A1 FE CB 69 90 6E [13:10:46]Write to MH i2c: E2 A8 00 7A 21 80 0D 02 02 A0 00 B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 13 00 00 00 00 07 04 06 00 78 B4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 59 71 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0B 7C 00 00 35 04 06 00 A1 FE CB 69 90 6E 00 00 2B [13:10:46]Write i2c OK [13:10:46]MH_I2C_Read... [13:10:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:46]Read from MH i2c: E2 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: E2 03 00 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: E2 03 00 7A 21 00 90 00 0F [13:10:46]RAPDU: 90 00 [13:10:46]wFMCommunicate OK [13:10:46]wFMCommunicate request_size=4 [13:10:46]MH_SAM_APDU [13:10:46]CAPDU: 80 0D 03 02 [13:10:46]Write to MH i2c: E2 08 00 7B 21 80 0D 03 02 00 00 00 00 17 [13:10:46]Write i2c OK [13:10:46]MH_I2C_Read... [13:10:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:46]Read from MH i2c: E2 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: E2 0B 00 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: E2 0B 00 7B 21 00 7E 3A A5 1B D3 39 00 39 90 00 D5 [13:10:46]RAPDU: 7E 3A A5 1B D3 39 00 39 90 00 [13:10:46]wFMCommunicate OK [13:10:46]SAM_PROTO_SignData done [13:10:46]FM_MakeSignedData done [13:10:46]CreateOFDProtocolMessage [13:10:46]wFMCommunicate request_size=4 [13:10:46]MH_SAM_APDU [13:10:46]CAPDU: 80 11 00 00 [13:10:46]Write to MH i2c: E2 08 00 7C 21 80 11 00 00 00 00 00 00 17 [13:10:46]Write i2c OK [13:10:46]MH_I2C_Read... [13:10:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:46]Read from MH i2c: E2 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: E2 17 00 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: E2 17 00 7C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 72 [13:10:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:10:46]wFMCommunicate OK [13:10:46]CreateOFDProtocolMessage done [13:10:46]OFDSenderStorePacket 31755 [13:10:46]StoreOFDPacket docnum=31755 [13:10:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A4 02 00 00 C6 12 9C 02 D9 63 5A 03 01 00 03 00 90 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 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 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 FC 03 06 00 78 B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 13 00 00 00 00 07 04 06 00 78 B4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 59 71 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0B 7C 00 00 35 04 06 00 A1 FE CB 69 90 6E 7E 3A A5 1B D3 39 00 39 [13:10:46]CheckFolder [13:10:46]dirname=/storage/ofd_packets [13:10:46]CheckFolder done [13:10:46]ProducePacketName [13:10:46]name=ofd_packets/00031755 [13:10:46]NVStorageSaveData ofd_packets/00031755 [13:10:46]File name is /storage/ofd_packets/00031755 [13:10:46]Write 706 bytes [13:10:46]NVStorageSaveData done [13:10:46]OFDSenderStorePacket done [13:10:46]KKMCreateOFDPacket done [13:10:46]NVStorageSaveData kkm_last_timestamp [13:10:46]File name is /storage/kkm_last_timestamp [13:10:46]Write 4 bytes [13:10:46]NVStorageSaveData done [13:10:46]ExternCall_PrintAddStr [13:10:46]wPrintStart [13:10:46]Write to MH i2c: 01 00 00 7D 21 9E [13:10:46]Write i2c OK [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: 01 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: 01 07 00 [13:10:46]MH_I2C_Read... [13:10:46]Read from MH i2c: 01 07 00 7D 21 00 00 00 00 00 FF 0F B3 [13:10:46]RasterBufferAndPrint [13:10:46]line Счет N : (3)214336 [13:10:46]line ИНН: 02508201610067 [13:10:46]line Контрольно-Кассовый Чек [13:10:46]line ПРОДАЖА [13:10:46]line Товар: 4870002329937 [13:10:46]line Напиток Lipton IceTea 1л персик Regular [13:10:46]line 1.000 * 130.00 [13:10:46]line = 130.00 [13:10:46]line НДС 12% НСП 1% [13:10:46]line > о реализуемом товаре [13:10:46]line Товар: 4870002328398 [13:10:46]line Вода ASU пит н.газ мята ПЭТ 1л [13:10:46]line 1.000 * 100.00 [13:10:46]line = 100.00 [13:10:46]line НДС 12% НСП 1% [13:10:46]line > о реализуемом товаре [13:10:46]line Товар: 4870202521292 [13:10:46]line Напиток Сок березы 1,2л [13:10:46]line 1.000 * 125.00 [13:10:46]line = 125.00 [13:10:46]line НДС 12% НСП 1% [13:10:46]line > о реализуемом товаре [13:10:46]line Товар: 5449000189356 [13:10:46]line Холодный чай Fuse манго ананас 1л [13:10:46]line 1.000 * 107.00 [13:10:46]line = 107.00 [13:10:46]line НДС 12% НСП 1% [13:10:46]line > о реализуемом товаре [13:10:46]line ИТОГО: 462.00 [13:10:46]line НСП 1% : 4.09 [13:10:46]line НДС 12% : 49.05 [13:10:46]line Наличными: 462.00 [13:10:46]line Безнал.: 0.00 [13:10:46]line Место: АЗС № 140 "Партнер Нефть" [13:10:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:10:46]line СНО: Общий режим [13:10:46]line Чек 74 16.07.2024 13:10 [13:10:46]line Смена: 371 ФФД: 1.0 [13:10:46]line ЗНМ: 0300000189 [13:10:46]line РНМ: 0000000000098025 [13:10:46]line Версия ККМ: 001 [13:10:46]line ФМ: 0000000000965389 [13:10:46]line ФД: 31755 [13:10:46]line ФПД: 178115706458222 [13:10:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T131049&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31755&fm=178115706458222&tin=02508201610067®Number=0000000000098025&sum=46200 [13:10:46]line 0 [13:10:46]OFD Sender: Processing packet 31755 [packets to send 6, broken 5] [13:10:46]ProducePacketName [13:10:46]name=ofd_packets/00031755 [13:10:46]OFD Sender: To server: pG, [13:10:46]CommunicateWithHost lk.salyk.kg:30040 [13:10:46]ConnectInit lk.salyk.kg [13:10:46]written 0, free lines is 4095 [13:10:46]Connected sock=10 [13:10:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A4 02 00 00 C6 12 9C 02 D9 63 5A 03 01 00 03 00 90 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 33 37 06 04 35 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 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 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 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 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 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 FC 03 06 00 78 B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 29 13 00 00 00 00 07 04 06 00 78 B4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 59 71 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0B 7C 00 00 35 04 06 00 A1 FE CB 69 90 6E 7E 3A A5 1B D3 39 00 39 [13:10:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 3B ED 47 00 BB 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 35 33 38 39 10 04 04 00 0B 7C 00 00 F4 03 04 00 66 1D 96 66 B6 04 01 00 00 FC DC 7C A3 DE DE 44 FC [13:10:47]CommunicateWithHost err = 0 [13:10:47]CheckOFDResponse [13:10:47]1017 (14) - 77093643461234 [13:10:47]1041 (16) - 0000000000965389 [13:10:47]1040 (4) - 31755 [13:10:47]1012 (4) - 16.07.2024 07:12 [13:10:47]1206 (1) - 0 [13:10:47]OFD Sender: Remove packet 31755 [13:10:47]ProducePacketName [13:10:47]name=ofd_packets/00031755 [13:10:47]NVStorageDeleteData [13:10:47]Write to MH i2c: 01 00 00 BA 21 DB [13:10:47]Write i2c OK [13:10:47]MH_I2C_Read... [13:10:47]Read from MH i2c: 01 [13:10:47]MH_I2C_Read... [13:10:47]Read from MH i2c: 01 07 00 [13:10:47]MH_I2C_Read... [13:10:47]Read from MH i2c: 01 07 00 BA 21 00 00 00 00 00 C9 0B B6 [13:10:47]RasterBufferAndPrint [13:10:47]line [13:10:47]line [13:10:47]line [13:10:47]line [13:10:47]line [13:10:47]written 0, free lines is 3025 [13:10:47]MH_Cut [13:10:47]Write to MH i2c: D1 01 00 C1 21 01 B4 [13:10:47]Write i2c OK [13:10:47]MH_I2C_Read... [13:10:47]Read from MH i2c: D1 [13:10:47]MH_I2C_Read... [13:10:47]Read from MH i2c: D1 01 00 [13:10:47]MH_I2C_Read... [13:10:47]Read from MH i2c: D1 01 00 C1 21 00 B3 [13:10:47]Write to MH i2c: 01 00 00 C2 21 E3 [13:10:47]Write i2c OK [13:10:47]MH_I2C_Read... [13:10:47]OFD Sender: No OFD packet to send [13:10:48]*** Cut start [13:10:48]*** Partial cut [13:10:48]*** CUTSNS_PIN = 1 [13:10:48]*** CUTSNS_PIN = 0 [13:10:48]*** Brake cut motor [13:10:49]Read from MH i2c: 01 [13:10:49]MH_I2C_Read... [13:10:49]*** Stop cut motor [13:10:49]*** Cut end [13:10:49]Read from MH i2c: 01 07 00 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: 01 07 00 C2 21 00 00 00 00 00 FF 0F F8 [13:10:49]process_action close_receipt done [13:10:49]requested_data is exist [13:10:49]produce_requested_data [13:10:49]requested_item fm.sn is exist - process it [13:10:49]wFMCommunicate request_size=4 [13:10:49]MH_SAM_APDU [13:10:49]CAPDU: 80 11 00 00 [13:10:49]Write to MH i2c: E2 08 00 C3 21 80 11 00 00 00 00 00 00 5E [13:10:49]Write i2c OK [13:10:49]MH_I2C_Read... [13:10:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:49]Read from MH i2c: E2 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 17 00 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 17 00 C3 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B9 [13:10:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:10:49]wFMCommunicate OK [13:10:49]requested_item fd.num is exist - process it [13:10:49]SAM_PROTO_GetFieldsCounters [13:10:49]wFMCommunicate request_size=4 [13:10:49]MH_SAM_APDU [13:10:49]CAPDU: 80 13 00 00 [13:10:49]Write to MH i2c: E2 08 00 C4 21 80 13 00 00 00 00 00 00 61 [13:10:49]Write i2c OK [13:10:49]MH_I2C_Read... [13:10:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:49]Read from MH i2c: E2 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 62 00 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 62 00 C4 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0B 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [13:10:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0B 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:49]wFMCommunicate OK [13:10:49]SAM_PROTO_GetFieldsCounters done [13:10:49]requested_item shift.num is exist - process it [13:10:49]requested_item shift.opened is exist - process it [13:10:49]req_shift_opened [13:10:49]FM_GetShiftState [13:10:49]SAM_PROTO_GetShiftState [13:10:49]wFMCommunicate request_size=4 [13:10:49]MH_SAM_APDU [13:10:49]CAPDU: 80 13 01 00 [13:10:49]Write to MH i2c: E2 08 00 C5 21 80 13 01 00 00 00 00 00 63 [13:10:49]Write i2c OK [13:10:49]MH_I2C_Read... [13:10:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:49]Read from MH i2c: E2 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 0E 00 [13:10:49]MH_I2C_Read... [13:10:49]Read from MH i2c: E2 0E 00 C5 21 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B2 [13:10:49]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:10:49]wFMCommunicate OK [13:10:49]SAM_PROTO_GetShiftState done [13:10:49]FM_GetShiftState done [13:10:49]req_shift_opened done [13:10:49]requested_item shift.open_date is exist - process it [13:10:49]req_shift_open_date [13:10:49]req_shift_open_date done [13:10:49]produce_requested_data done [13:10:49]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31755,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [13:10:49]process_action_free close_receipt [13:10:49]json_value_free [13:10:49]json_value_free done [13:10:49]process_json_proto returns [13:10:49]Send response to host [13:10:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31755,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [13:10:49]free response buf [13:10:49]execute_script done [13:10:49]execute_script returns [13:10:49]free content buf [13:10:49]Sock 9.Close socket [13:10:49]Sock 9.Thread stoped [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:49]accept exits with 7 [13:12:49]New connection [13:12:49]New thread 3066821988 created [13:12:49]Thread 3066965348 joined [13:12:49]Waiting for new connection... [13:12:49] Sock 7.Parse request [13:12:49]Sock 7.Check first char [13:12:49]Sock 7.First char is OK [13:12:49]request: POST /json_proto HTTP/1.0 [13:12:49]Method: POST [13:12:49]URL: /json_proto [13:12:49]Method is POST - this is cgi request [13:12:49]url: /json_proto [13:12:49]query_string will be loaded in cgi processing [13:12:49]execute_cgi json_proto POST (null) [13:12:49]execute_cgi path=json_proto method=POST [13:12:49]POST find Content-Length [13:12:49]Host: 172.17.39.68:8080 [13:12:49]Content-Length: 709 [13:12:49]Content-Type: application/json [13:12:49] [13:12:49]POST finish read [13:12:49]Found Content-Length = 709 [13:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214337", "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" ] } } [13:12:49]execute_script... [13:12: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)214337", "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" ] } } [13:12:49]POST & json_proto [13:12:49]process_json_proto [13:12:49]json parsed OK: [13:12:49]protocol is kg_v1.0 [13:12:49]action value=close_receipt [13:12:49]process_action close_receipt [13:12:49]cmd_close_receipt [13:12:49]MH_GetDate [13:12:49]Write to MH i2c: F0 00 00 C6 21 D6 [13:12:49]Write i2c OK [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: F0 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: F0 09 00 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: F0 09 00 C6 21 00 D6 71 96 66 D6 48 95 66 3B [13:12:49]GetLastDocTimeStamp 1721135449 [13:12:49]current date 1721135574 [13:12:49]FM_GetShiftState [13:12:49]SAM_PROTO_GetShiftState [13:12:49]wFMCommunicate request_size=4 [13:12:49]MH_SAM_APDU [13:12:49]CAPDU: 80 13 01 00 [13:12:49]Write to MH i2c: E2 08 00 C7 21 80 13 01 00 00 00 00 00 65 [13:12:49]Write i2c OK [13:12:49]MH_I2C_Read... [13:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:49]Read from MH i2c: E2 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 0E 00 [13:12:49]MH_I2C_Read... [13:12:49]Read from MH i2c: E2 0E 00 C7 21 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B4 [13:12:49]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:12:49]wFMCommunicate OK [13:12:49]SAM_PROTO_GetShiftState done [13:12:49]FM_GetShiftState done [13:12:49]opened in 1721088399 [13:12:49]opened+sec_in_day 1721174799 [13:12:49]quantity*price = 9500 [13:12:49]sum+1 = 9501 [13:12:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 75 16.07.2024 13:12 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31756 ФПД: 268097240880765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T131254&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31756&fm=268097240880765&tin=02508201610067®Number=0000000000098025&sum=9500 0 [13:12:50]StoreToDocumentArchive [13:12:50]shift 371 fd 31756 [13:12:50]save to /storage/0371/doc_00031756 [13:12:50]save last doc name /storage/0371/doc_00031756 to /storage/kkm_last_doc_name [13:12:50]save OK [13:12:50]Clear old archive folders... [13:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=304 [13:12:50]tlvbuf is 01517FC0 [13:12:50]SAM_PROTO_ClearQueue [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 09 00 00 [13:12:50]Write to MH i2c: E2 08 00 D4 21 80 09 00 00 00 00 00 00 67 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 D4 21 00 90 00 69 [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]SAM_PROTO_ClearQueue done [13:12:50]KKMCreateOFDPacket [13:12:50]OFDProtocolAddRootSTLVToBuf [13:12:50]FM_MakeSignedData [13:12:50]FM_MakeSignedData [13:12:50]SAM_PROTO_SignData [13:12:50]wFMCommunicate request_size=4 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 0D 01 02 [13:12:50]Write to MH i2c: E2 08 00 D5 21 80 0D 01 02 00 00 00 00 6F [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 D5 21 00 90 00 6A [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]wFMCommunicate request_size=255 [13:12:50]MH_SAM_APDU [13:12:50]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 4B 00 00 00 F4 03 04 00 D6 71 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 [13:12:50]Write to MH i2c: E2 02 01 D6 21 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 4B 00 00 00 F4 03 04 00 D6 71 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 00 00 B7 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:50]Read from MH i2c: E2 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 [13:12:50]MH_I2C_Read... [13:12:50]Read from MH i2c: E2 03 00 D6 21 00 90 00 6B [13:12:50]RAPDU: 90 00 [13:12:50]wFMCommunicate OK [13:12:50]wFMCommunicate request_size=63 [13:12:50]MH_SAM_APDU [13:12:50]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0C 7C 00 00 35 04 06 00 F3 D5 40 CE D6 7D [13:12:50]Write to MH i2c: E2 42 00 D7 21 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0C 7C 00 00 35 04 06 00 F3 D5 40 CE D6 7D 00 00 74 [13:12:50]Write i2c OK [13:12:50]MH_I2C_Read... [13:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:51]Read from MH i2c: E2 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 03 00 D7 21 00 90 00 6C [13:12:51]RAPDU: 90 00 [13:12:51]wFMCommunicate OK [13:12:51]wFMCommunicate request_size=4 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 0D 03 02 [13:12:51]Write to MH i2c: E2 08 00 D8 21 80 0D 03 02 00 00 00 00 74 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:51]Read from MH i2c: E2 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 0B 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 0B 00 D8 21 00 7B 82 3C B8 7E 19 3E 1C 90 00 57 [13:12:51]RAPDU: 7B 82 3C B8 7E 19 3E 1C 90 00 [13:12:51]wFMCommunicate OK [13:12:51]SAM_PROTO_SignData done [13:12:51]FM_MakeSignedData done [13:12:51]CreateOFDProtocolMessage [13:12:51]wFMCommunicate request_size=4 [13:12:51]MH_SAM_APDU [13:12:51]CAPDU: 80 11 00 00 [13:12:51]Write to MH i2c: E2 08 00 D9 21 80 11 00 00 00 00 00 00 74 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:51]Read from MH i2c: E2 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 17 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: E2 17 00 D9 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CF [13:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:12:51]wFMCommunicate OK [13:12:51]CreateOFDProtocolMessage done [13:12:51]OFDSenderStorePacket 31756 [13:12:51]StoreOFDPacket docnum=31756 [13:12:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 21 45 3C 01 5B 7F 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 4B 00 00 00 F4 03 04 00 D6 71 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0C 7C 00 00 35 04 06 00 F3 D5 40 CE D6 7D 7B 82 3C B8 7E 19 3E 1C [13:12:51]CheckFolder [13:12:51]dirname=/storage/ofd_packets [13:12:51]CheckFolder done [13:12:51]ProducePacketName [13:12:51]name=ofd_packets/00031756 [13:12:51]NVStorageSaveData ofd_packets/00031756 [13:12:51]File name is /storage/ofd_packets/00031756 [13:12:51]Write 354 bytes [13:12:51]NVStorageSaveData done [13:12:51]OFDSenderStorePacket done [13:12:51]KKMCreateOFDPacket done [13:12:51]NVStorageSaveData kkm_last_timestamp [13:12:51]File name is /storage/kkm_last_timestamp [13:12:51]Write 4 bytes [13:12:51]NVStorageSaveData done [13:12:51]ExternCall_PrintAddStr [13:12:51]wPrintStart [13:12:51]Write to MH i2c: 01 00 00 DA 21 FB [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 07 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 07 00 DA 21 00 00 00 00 00 FF 0F 10 [13:12:51]RasterBufferAndPrint [13:12:51]line Счет N : (3)214337 [13:12:51]line ИНН: 02508201610067 [13:12:51]line Контрольно-Кассовый Чек [13:12:51]line ПРОДАЖА [13:12:51]line Товар: 4700000480302 [13:12:51]line Напиток энерг Nitro манго-клуб 0.45 ж/б [13:12:51]line 1.000 * 95.00 [13:12:51]line = 95.00 [13:12:51]line НДС 12% НСП 1% [13:12:51]line > о реализуемом товаре [13:12:51]line ИТОГО: 95.00 [13:12:51]line НСП 1% : 0.84 [13:12:51]line НДС 12% : 10.09 [13:12:51]line Наличными: 95.00 [13:12:51]line Безнал.: 0.00 [13:12:51]line Место: АЗС № 140 "Партнер Нефть" [13:12:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:12:51]line СНО: Общий режим [13:12:51]line Чек 75 16.07.2024 13:12 [13:12:51]line Смена: 371 ФФД: 1.0 [13:12:51]line ЗНМ: 0300000189 [13:12:51]line РНМ: 0000000000098025 [13:12:51]line Версия ККМ: 001 [13:12:51]line ФМ: 0000000000965389 [13:12:51]line ФД: 31756 [13:12:51]line ФПД: 268097240880765 [13:12:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T131254&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31756&fm=268097240880765&tin=02508201610067®Number=0000000000098025&sum=9500 [13:12:51]line 0 [13:12:51]OFD Sender: Processing packet 31756 [packets to send 6, broken 5] [13:12:51]ProducePacketName [13:12:51]name=ofd_packets/00031756 [13:12:51]OFD Sender: To server: pG, [13:12:51]CommunicateWithHost lk.salyk.kg:30040 [13:12:51]ConnectInit lk.salyk.kg [13:12:51]written 0, free lines is 4095 [13:12:51]Connected sock=10 [13:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 21 45 3C 01 5B 7F 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 4B 00 00 00 F4 03 04 00 D6 71 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0C 7C 00 00 35 04 06 00 F3 D5 40 CE D6 7D 7B 82 3C B8 7E 19 3E 1C [13:12:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 95 A7 47 00 6B 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0C 7C 00 00 F4 03 04 00 E3 1D 96 66 B6 04 01 00 00 5E FC 66 69 94 FE 75 77 [13:12:51]CommunicateWithHost err = 0 [13:12:51]CheckOFDResponse [13:12:51]1017 (14) - 77093643461234 [13:12:51]1041 (16) - 0000000000965389 [13:12:51]1040 (4) - 31756 [13:12:51]1012 (4) - 16.07.2024 07:14 [13:12:51]1206 (1) - 0 [13:12:51]OFD Sender: Remove packet 31756 [13:12:51]ProducePacketName [13:12:51]name=ofd_packets/00031756 [13:12:51]NVStorageDeleteData [13:12:51]Write to MH i2c: 01 00 00 03 22 25 [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 07 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: 01 07 00 03 22 00 00 00 00 00 E2 0C 1A [13:12:51]RasterBufferAndPrint [13:12:51]line [13:12:51]line [13:12:51]line [13:12:51]line [13:12:51]line [13:12:51]written 0, free lines is 3304 [13:12:51]MH_Cut [13:12:51]Write to MH i2c: D1 01 00 0A 22 01 FE [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: D1 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: D1 01 00 [13:12:51]MH_I2C_Read... [13:12:51]Read from MH i2c: D1 01 00 0A 22 00 FD [13:12:51]Write to MH i2c: 01 00 00 0B 22 2D [13:12:51]Write i2c OK [13:12:51]MH_I2C_Read... [13:12:52]OFD Sender: No OFD packet to send [13:12:52]*** Cut start [13:12:52]*** Partial cut [13:12:52]*** CUTSNS_PIN = 1 [13:12:52]*** CUTSNS_PIN = 0 [13:12:52]*** Brake cut motor [13:12:53]Read from MH i2c: 01 [13:12:53]MH_I2C_Read... [13:12:53]*** Stop cut motor [13:12:53]*** Cut end [13:12:53]Read from MH i2c: 01 07 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: 01 07 00 0B 22 00 00 00 00 00 FF 0F 42 [13:12:53]process_action close_receipt done [13:12:53]requested_data is exist [13:12:53]produce_requested_data [13:12:53]requested_item fm.sn is exist - process it [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 11 00 00 [13:12:53]Write to MH i2c: E2 08 00 0C 22 80 11 00 00 00 00 00 00 A8 [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 17 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 17 00 0C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 03 [13:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:12:53]wFMCommunicate OK [13:12:53]requested_item fd.num is exist - process it [13:12:53]SAM_PROTO_GetFieldsCounters [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 13 00 00 [13:12:53]Write to MH i2c: E2 08 00 0D 22 80 13 00 00 00 00 00 00 AB [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 62 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 62 00 0D 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0C 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [13:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0C 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_GetFieldsCounters done [13:12:53]requested_item shift.num is exist - process it [13:12:53]requested_item shift.opened is exist - process it [13:12:53]req_shift_opened [13:12:53]FM_GetShiftState [13:12:53]SAM_PROTO_GetShiftState [13:12:53]wFMCommunicate request_size=4 [13:12:53]MH_SAM_APDU [13:12:53]CAPDU: 80 13 01 00 [13:12:53]Write to MH i2c: E2 08 00 0E 22 80 13 01 00 00 00 00 00 AD [13:12:53]Write i2c OK [13:12:53]MH_I2C_Read... [13:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:53]Read from MH i2c: E2 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 [13:12:53]MH_I2C_Read... [13:12:53]Read from MH i2c: E2 0E 00 0E 22 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 FC [13:12:53]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:12:53]wFMCommunicate OK [13:12:53]SAM_PROTO_GetShiftState done [13:12:53]FM_GetShiftState done [13:12:53]req_shift_opened done [13:12:53]requested_item shift.open_date is exist - process it [13:12:53]req_shift_open_date [13:12:53]req_shift_open_date done [13:12:53]produce_requested_data done [13:12:53]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31756,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [13:12:53]process_action_free close_receipt [13:12:53]json_value_free [13:12:53]json_value_free done [13:12:53]process_json_proto returns [13:12:53]Send response to host [13:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31756,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [13:12:53]free response buf [13:12:53]execute_script done [13:12:53]execute_script returns [13:12:53]free content buf [13:12:53]Sock 7.Close socket [13:12:53]Sock 7.Thread stoped [13:12:57]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:52]OFD Sender: No OFD packet to send [13:15:57]OFD Sender: No OFD packet to send [13:16:02]OFD Sender: No OFD packet to send [13:16:07]OFD Sender: No OFD packet to send [13:16:12]OFD Sender: No OFD packet to send [13:16:17]OFD Sender: No OFD packet to send [13:16:22]OFD Sender: No OFD packet to send [13:16:27]OFD Sender: No OFD packet to send [13:16:32]OFD Sender: No OFD packet to send [13:16:37]OFD Sender: No OFD packet to send [13:16:42]OFD Sender: No OFD packet to send [13:16:47]OFD Sender: No OFD packet to send [13:16:52]OFD Sender: No OFD packet to send [13:16:57]OFD Sender: No OFD packet to send [13:17:02]OFD Sender: No OFD packet to send [13:17:07]OFD Sender: No OFD packet to send [13:17:12]OFD Sender: No OFD packet to send [13:17:17]OFD Sender: No OFD packet to send [13:17:22]OFD Sender: No OFD packet to send [13:17:27]OFD Sender: No OFD packet to send [13:17:32]OFD Sender: No OFD packet to send [13:17:34]accept exits with 9 [13:17:34]New connection [13:17:34]New thread 3066965348 created [13:17:34]Thread 3066821988 joined [13:17:34]Waiting for new connection... [13:17:34] Sock 9.Parse request [13:17:34]Sock 9.Check first char [13:17:34]Sock 9.First char is OK [13:17:34]request: POST /json_proto HTTP/1.0 [13:17:34]Method: POST [13:17:34]URL: /json_proto [13:17:34]Method is POST - this is cgi request [13:17:34]url: /json_proto [13:17:34]query_string will be loaded in cgi processing [13:17:34]execute_cgi json_proto POST (null) [13:17:34]execute_cgi path=json_proto method=POST [13:17:34]POST find Content-Length [13:17:34]Host: 172.17.39.68:8080 [13:17:34]Content-Length: 620 [13:17:34]Content-Type: application/json [13:17:34] [13:17:34]POST finish read [13:17:34]Found Content-Length = 620 [13:17:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214338", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:34]execute_script... [13:17: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)214338", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:17:34]POST & json_proto [13:17:34]process_json_proto [13:17:34]json parsed OK: [13:17:34]protocol is kg_v1.0 [13:17:34]action value=close_receipt [13:17:34]process_action close_receipt [13:17:34]cmd_close_receipt [13:17:34]MH_GetDate [13:17:34]Write to MH i2c: F0 00 00 0F 22 20 [13:17:34]Write i2c OK [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: F0 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: F0 09 00 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: F0 09 00 0F 22 00 F2 72 96 66 D6 48 95 66 A2 [13:17:34]GetLastDocTimeStamp 1721135574 [13:17:34]current date 1721135858 [13:17:34]FM_GetShiftState [13:17:34]SAM_PROTO_GetShiftState [13:17:34]wFMCommunicate request_size=4 [13:17:34]MH_SAM_APDU [13:17:34]CAPDU: 80 13 01 00 [13:17:34]Write to MH i2c: E2 08 00 10 22 80 13 01 00 00 00 00 00 AF [13:17:34]Write i2c OK [13:17:34]MH_I2C_Read... [13:17:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:34]Read from MH i2c: E2 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 0E 00 [13:17:34]MH_I2C_Read... [13:17:34]Read from MH i2c: E2 0E 00 10 22 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 FE [13:17:34]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:17:34]wFMCommunicate OK [13:17:34]SAM_PROTO_GetShiftState done [13:17:34]FM_GetShiftState done [13:17:34]opened in 1721088399 [13:17:34]opened+sec_in_day 1721174799 [13:17:34]quantity*price = 13800 [13:17:34]sum+1 = 13801 [13:17:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 76 16.07.2024 13:17 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31757 ФПД: 162826112834258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T131739&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31757&fm=162826112834258&tin=02508201610067®Number=0000000000098025&sum=13800 0 [13:17:35]StoreToDocumentArchive [13:17:35]shift 371 fd 31757 [13:17:35]save to /storage/0371/doc_00031757 [13:17:35]save last doc name /storage/0371/doc_00031757 to /storage/kkm_last_doc_name [13:17:35]save OK [13:17:35]Clear old archive folders... [13:17:35]ProcessDocumentItem done err = 0, tmpTLVsize=272 [13:17:35]tlvbuf is 014AC510 [13:17:35]SAM_PROTO_ClearQueue [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 09 00 00 [13:17:35]Write to MH i2c: E2 08 00 1D 22 80 09 00 00 00 00 00 00 B1 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 1D 22 00 90 00 B3 [13:17:35]RAPDU: 90 00 [13:17:35]wFMCommunicate OK [13:17:35]SAM_PROTO_ClearQueue done [13:17:35]KKMCreateOFDPacket [13:17:35]OFDProtocolAddRootSTLVToBuf [13:17:35]FM_MakeSignedData [13:17:35]FM_MakeSignedData [13:17:35]SAM_PROTO_SignData [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 0D 01 02 [13:17:35]Write to MH i2c: E2 08 00 1E 22 80 0D 01 02 00 00 00 00 B9 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 1E 22 00 90 00 B4 [13:17:35]RAPDU: 90 00 [13:17:35]wFMCommunicate OK [13:17:35]wFMCommunicate request_size=255 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F3 72 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 [13:17:35]Write to MH i2c: E2 02 01 1F 22 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F3 72 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 01 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 1F 22 00 90 00 B5 [13:17:35]RAPDU: 90 00 [13:17:35]wFMCommunicate OK [13:17:35]wFMCommunicate request_size=31 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 0D 02 02 1A 30 30 39 36 35 33 38 39 10 04 04 00 0D 7C 00 00 35 04 06 00 94 16 E8 9D 9A D2 [13:17:35]Write to MH i2c: E2 22 00 20 22 80 0D 02 02 1A 00 30 30 39 36 35 33 38 39 10 04 04 00 0D 7C 00 00 35 04 06 00 94 16 E8 9D 9A D2 00 00 13 [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 03 00 20 22 00 90 00 B6 [13:17:35]RAPDU: 90 00 [13:17:35]wFMCommunicate OK [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 0D 03 02 [13:17:35]Write to MH i2c: E2 08 00 21 22 80 0D 03 02 00 00 00 00 BE [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:17:35]Read from MH i2c: E2 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 0B 00 [13:17:35]MH_I2C_Read... [13:17:35]Read from MH i2c: E2 0B 00 21 22 00 8E 1E B2 0B AA F0 0E 71 90 00 41 [13:17:35]RAPDU: 8E 1E B2 0B AA F0 0E 71 90 00 [13:17:35]wFMCommunicate OK [13:17:35]SAM_PROTO_SignData done [13:17:35]FM_MakeSignedData done [13:17:35]CreateOFDProtocolMessage [13:17:35]wFMCommunicate request_size=4 [13:17:35]MH_SAM_APDU [13:17:35]CAPDU: 80 11 00 00 [13:17:35]Write to MH i2c: E2 08 00 22 22 80 11 00 00 00 00 00 00 BE [13:17:35]Write i2c OK [13:17:35]MH_I2C_Read... [13:17:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:36]Read from MH i2c: E2 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 17 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: E2 17 00 22 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 19 [13:17:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:17:36]wFMCommunicate OK [13:17:36]CreateOFDProtocolMessage done [13:17:36]OFDSenderStorePacket 31757 [13:17:36]StoreOFDPacket docnum=31757 [13:17:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 24 01 00 00 B0 6A 1C 01 73 7F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F3 72 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0D 7C 00 00 35 04 06 00 94 16 E8 9D 9A D2 8E 1E B2 0B AA F0 0E 71 [13:17:36]CheckFolder [13:17:36]dirname=/storage/ofd_packets [13:17:36]CheckFolder done [13:17:36]ProducePacketName [13:17:36]name=ofd_packets/00031757 [13:17:36]NVStorageSaveData ofd_packets/00031757 [13:17:36]File name is /storage/ofd_packets/00031757 [13:17:36]Write 322 bytes [13:17:36]NVStorageSaveData done [13:17:36]OFDSenderStorePacket done [13:17:36]KKMCreateOFDPacket done [13:17:36]NVStorageSaveData kkm_last_timestamp [13:17:36]File name is /storage/kkm_last_timestamp [13:17:36]Write 4 bytes [13:17:36]NVStorageSaveData done [13:17:36]ExternCall_PrintAddStr [13:17:36]wPrintStart [13:17:36]Write to MH i2c: 01 00 00 23 22 45 [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: 01 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: 01 07 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: 01 07 00 23 22 00 00 00 00 00 FF 0F 5A [13:17:36]RasterBufferAndPrint [13:17:36]line Счет N : (3)214338 [13:17:36]line ИНН: 02508201610067 [13:17:36]line Контрольно-Кассовый Чек [13:17:36]line ПРОДАЖА [13:17:36]line Товар: 4640030091607 [13:17:36]line Сигареты ESSE Exchange [13:17:36]line 1.000 * 138.00 [13:17:36]line = 138.00 [13:17:36]line НДС 12% НСП 1% [13:17:36]line > о реализуемом товаре [13:17:36]line ИТОГО: 138.00 [13:17:36]line НСП 1% : 1.22 [13:17:36]line НДС 12% : 14.65 [13:17:36]line Наличными: 138.00 [13:17:36]line Безнал.: 0.00 [13:17:36]line Место: АЗС № 140 "Партнер Нефть" [13:17:36]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:17:36]line СНО: Общий режим [13:17:36]line Чек 76 16.07.2024 13:17 [13:17:36]line Смена: 371 ФФД: 1.0 [13:17:36]line ЗНМ: 0300000189 [13:17:36]line РНМ: 0000000000098025 [13:17:36]line Версия ККМ: 001 [13:17:36]line ФМ: 0000000000965389 [13:17:36]line ФД: 31757 [13:17:36]line ФПД: 162826112834258 [13:17:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T131739&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31757&fm=162826112834258&tin=02508201610067®Number=0000000000098025&sum=13800 [13:17:36]line 0 [13:17:36]OFD Sender: Processing packet 31757 [packets to send 6, broken 5] [13:17:36]ProducePacketName [13:17:36]name=ofd_packets/00031757 [13:17:36]OFD Sender: To server: pG, [13:17:36]CommunicateWithHost lk.salyk.kg:30040 [13:17:36]ConnectInit lk.salyk.kg [13:17:36]written 0, free lines is 4095 [13:17:36]Connected sock=10 [13:17:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 24 01 00 00 B0 6A 1C 01 73 7F 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F3 72 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0D 7C 00 00 35 04 06 00 94 16 E8 9D 9A D2 8E 1E B2 0B AA F0 0E 71 [13:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 D8 08 47 00 4C B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0D 7C 00 00 F4 03 04 00 00 1F 96 66 B6 04 01 00 00 DB 29 1F 80 FC D3 14 25 [13:17:36]CommunicateWithHost err = 0 [13:17:36]CheckOFDResponse [13:17:36]1017 (14) - 77093643461234 [13:17:36]1041 (16) - 0000000000965389 [13:17:36]1040 (4) - 31757 [13:17:36]1012 (4) - 16.07.2024 07:19 [13:17:36]1206 (1) - 0 [13:17:36]OFD Sender: Remove packet 31757 [13:17:36]ProducePacketName [13:17:36]name=ofd_packets/00031757 [13:17:36]NVStorageDeleteData [13:17:36]Write to MH i2c: 01 00 00 4B 22 6D [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: 01 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: 01 07 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: 01 07 00 4B 22 00 00 00 00 00 04 0D 85 [13:17:36]RasterBufferAndPrint [13:17:36]line [13:17:36]line [13:17:36]line [13:17:36]line [13:17:36]line [13:17:36]written 0, free lines is 3337 [13:17:36]MH_Cut [13:17:36]Write to MH i2c: D1 01 00 52 22 01 46 [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: D1 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: D1 01 00 [13:17:36]MH_I2C_Read... [13:17:36]Read from MH i2c: D1 01 00 52 22 00 45 [13:17:36]Write to MH i2c: 01 00 00 53 22 75 [13:17:36]Write i2c OK [13:17:36]MH_I2C_Read... [13:17:37]OFD Sender: No OFD packet to send [13:17:37]*** Cut start [13:17:37]*** Partial cut [13:17:37]*** CUTSNS_PIN = 1 [13:17:37]*** CUTSNS_PIN = 0 [13:17:37]*** Brake cut motor [13:17:38]Read from MH i2c: 01 [13:17:38]MH_I2C_Read... [13:17:38]*** Stop cut motor [13:17:38]*** Cut end [13:17:38]Read from MH i2c: 01 07 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: 01 07 00 53 22 00 00 00 00 00 FF 0F 8A [13:17:38]process_action close_receipt done [13:17:38]requested_data is exist [13:17:38]produce_requested_data [13:17:38]requested_item fm.sn is exist - process it [13:17:38]wFMCommunicate request_size=4 [13:17:38]MH_SAM_APDU [13:17:38]CAPDU: 80 11 00 00 [13:17:38]Write to MH i2c: E2 08 00 54 22 80 11 00 00 00 00 00 00 F0 [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 17 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 17 00 54 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 4B [13:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:17:38]wFMCommunicate OK [13:17:38]requested_item fd.num is exist - process it [13:17:38]SAM_PROTO_GetFieldsCounters [13:17:38]wFMCommunicate request_size=4 [13:17:38]MH_SAM_APDU [13:17:38]CAPDU: 80 13 00 00 [13:17:38]Write to MH i2c: E2 08 00 55 22 80 13 00 00 00 00 00 00 F3 [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 62 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 62 00 55 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0D 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [13:17: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0D 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:17:38]wFMCommunicate OK [13:17:38]SAM_PROTO_GetFieldsCounters done [13:17:38]requested_item shift.num is exist - process it [13:17:38]requested_item shift.opened is exist - process it [13:17:38]req_shift_opened [13:17:38]FM_GetShiftState [13:17:38]SAM_PROTO_GetShiftState [13:17:38]wFMCommunicate request_size=4 [13:17:38]MH_SAM_APDU [13:17:38]CAPDU: 80 13 01 00 [13:17:38]Write to MH i2c: E2 08 00 56 22 80 13 01 00 00 00 00 00 F5 [13:17:38]Write i2c OK [13:17:38]MH_I2C_Read... [13:17:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:17:38]Read from MH i2c: E2 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 0E 00 [13:17:38]MH_I2C_Read... [13:17:38]Read from MH i2c: E2 0E 00 56 22 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 44 [13:17:38]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:17:38]wFMCommunicate OK [13:17:38]SAM_PROTO_GetShiftState done [13:17:38]FM_GetShiftState done [13:17:38]req_shift_opened done [13:17:38]requested_item shift.open_date is exist - process it [13:17:38]req_shift_open_date [13:17:38]req_shift_open_date done [13:17:38]produce_requested_data done [13:17:38]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31757,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [13:17:38]process_action_free close_receipt [13:17:38]json_value_free [13:17:38]json_value_free done [13:17:38]process_json_proto returns [13:17:38]Send response to host [13:17:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31757,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [13:17:38]free response buf [13:17:38]execute_script done [13:17:38]execute_script returns [13:17:38]free content buf [13:17:38]Sock 9.Close socket [13:17:38]Sock 9.Thread stoped [13:17:42]OFD Sender: No OFD packet to send [13:17:47]OFD Sender: No OFD packet to send [13:17:52]OFD Sender: No OFD packet to send [13:17:57]OFD Sender: No OFD packet to send [13:18:02]OFD Sender: No OFD packet to send [13:18:07]OFD Sender: No OFD packet to send [13:18:12]OFD Sender: No OFD packet to send [13:18:17]OFD Sender: No OFD packet to send [13:18:22]OFD Sender: No OFD packet to send [13:18:27]OFD Sender: No OFD packet to send [13:18:32]OFD Sender: No OFD packet to send [13:18:37]OFD Sender: No OFD packet to send [13:18:42]OFD Sender: No OFD packet to send [13:18:47]OFD Sender: No OFD packet to send [13:18:52]OFD Sender: No OFD packet to send [13:18:57]OFD Sender: No OFD packet to send [13:19:02]OFD Sender: No OFD packet to send [13:19:07]OFD Sender: No OFD packet to send [13:19:12]OFD Sender: No OFD packet to send [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]accept exits with 7 [13:23:47]New connection [13:23:47]New thread 3066821988 created [13:23:47]Thread 3066965348 joined [13:23:47]Waiting for new connection... [13:23:47] Sock 7.Parse request [13:23:47]Sock 7.Check first char [13:23:47]Sock 7.First char is OK [13:23:47]request: POST /json_proto HTTP/1.0 [13:23:47]Method: POST [13:23:47]URL: /json_proto [13:23:47]Method is POST - this is cgi request [13:23:47]url: /json_proto [13:23:47]query_string will be loaded in cgi processing [13:23:47]execute_cgi json_proto POST (null) [13:23:47]execute_cgi path=json_proto method=POST [13:23:47]POST find Content-Length [13:23:47]Host: 172.17.39.68:8080 [13:23:47]Content-Length: 783 [13:23:47]Content-Type: application/json [13:23:47] [13:23:47]POST finish read [13:23:47]Found Content-Length = 783 [13:23:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214339", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:47]execute_script... [13:23:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214339", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:47]POST & json_proto [13:23:47]process_json_proto [13:23:47]json parsed OK: [13:23:47]protocol is kg_v1.0 [13:23:47]action value=close_receipt [13:23:47]process_action close_receipt [13:23:47]cmd_close_receipt [13:23:47]MH_GetDate [13:23:47]Write to MH i2c: F0 00 00 57 22 68 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: F0 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: F0 09 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: F0 09 00 57 22 00 67 74 96 66 D6 48 95 66 61 [13:23:47]GetLastDocTimeStamp 1721135859 [13:23:47]current date 1721136231 [13:23:47]FM_GetShiftState [13:23:47]SAM_PROTO_GetShiftState [13:23:47]wFMCommunicate request_size=4 [13:23:47]MH_SAM_APDU [13:23:47]CAPDU: 80 13 01 00 [13:23:47]Write to MH i2c: E2 08 00 58 22 80 13 01 00 00 00 00 00 F7 [13:23:47]Write i2c OK [13:23:47]MH_I2C_Read... [13:23:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:47]Read from MH i2c: E2 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 0E 00 [13:23:47]MH_I2C_Read... [13:23:47]Read from MH i2c: E2 0E 00 58 22 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 46 [13:23:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:23:47]wFMCommunicate OK [13:23:47]SAM_PROTO_GetShiftState done [13:23:47]FM_GetShiftState done [13:23:47]opened in 1721088399 [13:23:47]opened+sec_in_day 1721174799 [13:23:47]quantity*price = 15000 [13:23:47]sum+1 = 15001 [13:23:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 0.00 Безнал.: 150.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 77 16.07.2024 13:23 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31758 ФПД: 32453379689687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T132351&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31758&fm=32453379689687&tin=02508201610067®Number=0000000000098025&sum=15000 0 [13:23:48]StoreToDocumentArchive [13:23:48]shift 371 fd 31758 [13:23:48]save to /storage/0371/doc_00031758 [13:23:48]save last doc name /storage/0371/doc_00031758 to /storage/kkm_last_doc_name [13:23:48]save OK [13:23:48]Clear old archive folders... [13:23:48]ProcessDocumentItem done err = 0, tmpTLVsize=274 [13:23:48]tlvbuf is 014D3F10 [13:23:48]SAM_PROTO_ClearQueue [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 09 00 00 [13:23:48]Write to MH i2c: E2 08 00 65 22 80 09 00 00 00 00 00 00 F9 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:48]Read from MH i2c: E2 03 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 65 22 00 90 00 FB [13:23:48]RAPDU: 90 00 [13:23:48]wFMCommunicate OK [13:23:48]SAM_PROTO_ClearQueue done [13:23:48]KKMCreateOFDPacket [13:23:48]OFDProtocolAddRootSTLVToBuf [13:23:48]FM_MakeSignedData [13:23:48]FM_MakeSignedData [13:23:48]SAM_PROTO_SignData [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 0D 01 02 [13:23:48]Write to MH i2c: E2 08 00 66 22 80 0D 01 02 00 00 00 00 01 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 66 22 00 90 00 FC [13:23:48]RAPDU: 90 00 [13:23:48]wFMCommunicate OK [13:23:48]wFMCommunicate request_size=255 [13:23:48]MH_SAM_APDU [13:23:48]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 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 4D 00 00 00 F4 03 04 00 67 74 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 [13:23:48]Write to MH i2c: E2 02 01 67 22 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 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 4D 00 00 00 F4 03 04 00 67 74 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 00 00 B0 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 67 22 00 90 00 FD [13:23:48]RAPDU: 90 00 [13:23:48]wFMCommunicate OK [13:23:48]wFMCommunicate request_size=33 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0E 7C 00 00 35 04 06 00 1D 84 24 2B 0C D7 [13:23:48]Write to MH i2c: E2 24 00 68 22 80 0D 02 02 1C 00 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0E 7C 00 00 35 04 06 00 1D 84 24 2B 0C D7 00 00 F8 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 03 00 68 22 00 90 00 FE [13:23:48]RAPDU: 90 00 [13:23:48]wFMCommunicate OK [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 0D 03 02 [13:23:48]Write to MH i2c: E2 08 00 69 22 80 0D 03 02 00 00 00 00 06 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 0B 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 0B 00 69 22 00 13 ED A2 8F 06 73 3C CD 90 00 BA [13:23:48]RAPDU: 13 ED A2 8F 06 73 3C CD 90 00 [13:23:48]wFMCommunicate OK [13:23:48]SAM_PROTO_SignData done [13:23:48]FM_MakeSignedData done [13:23:48]CreateOFDProtocolMessage [13:23:48]wFMCommunicate request_size=4 [13:23:48]MH_SAM_APDU [13:23:48]CAPDU: 80 11 00 00 [13:23:48]Write to MH i2c: E2 08 00 6A 22 80 11 00 00 00 00 00 00 06 [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:48]Read from MH i2c: E2 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 17 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: E2 17 00 6A 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 61 [13:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:23:48]wFMCommunicate OK [13:23:48]CreateOFDProtocolMessage done [13:23:48]OFDSenderStorePacket 31758 [13:23:48]StoreOFDPacket docnum=31758 [13:23:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 26 01 00 00 83 75 1E 01 14 41 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 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 4D 00 00 00 F4 03 04 00 67 74 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0E 7C 00 00 35 04 06 00 1D 84 24 2B 0C D7 13 ED A2 8F 06 73 3C CD [13:23:48]CheckFolder [13:23:48]dirname=/storage/ofd_packets [13:23:48]CheckFolder done [13:23:48]ProducePacketName [13:23:48]name=ofd_packets/00031758 [13:23:48]NVStorageSaveData ofd_packets/00031758 [13:23:48]File name is /storage/ofd_packets/00031758 [13:23:48]Write 324 bytes [13:23:48]NVStorageSaveData done [13:23:48]OFDSenderStorePacket done [13:23:48]KKMCreateOFDPacket done [13:23:48]NVStorageSaveData kkm_last_timestamp [13:23:48]File name is /storage/kkm_last_timestamp [13:23:48]Write 4 bytes [13:23:48]NVStorageSaveData done [13:23:48]ExternCall_PrintAddStr [13:23:48]wPrintStart [13:23:48]Write to MH i2c: 01 00 00 6B 22 8D [13:23:48]OFD Sender: Processing packet 31758 [packets to send 6, broken 5] [13:23:48]ProducePacketName [13:23:48]name=ofd_packets/00031758 [13:23:48]OFD Sender: To server: pG, [13:23:48]CommunicateWithHost lk.salyk.kg:30040 [13:23:48]ConnectInit lk.salyk.kg [13:23:48]Write i2c OK [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 07 00 [13:23:48]MH_I2C_Read... [13:23:48]Read from MH i2c: 01 07 00 6B 22 00 00 00 00 00 FF 0F A2 [13:23:48]RasterBufferAndPrint [13:23:48]line Счет N : (3)214339 [13:23:48]line ИНН: 02508201610067 [13:23:48]line Контрольно-Кассовый Чек [13:23:48]line ПРОДАЖА [13:23:48]line Товар: 46230614 [13:23:48]line Сигареты Richmond Red Edition [13:23:48]line 1.000 * 150.00 [13:23:48]line = 150.00 [13:23:48]line НДС 12% НСП 1% [13:23:48]line > о реализуемом товаре [13:23:48]line ИТОГО: 150.00 [13:23:48]line НСП 1% : 1.33 [13:23:48]line НДС 12% : 15.93 [13:23:48]line Наличными: 0.00 [13:23:48]line Безнал.: 150.00 [13:23:48]line Место: АЗС № 140 "Партнер Нефть" [13:23:48]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:23:48]line СНО: Общий режим [13:23:48]line Чек 77 16.07.2024 13:23 [13:23:48]line Смена: 371 ФФД: 1.0 [13:23:48]line ЗНМ: 0300000189 [13:23:48]line РНМ: 0000000000098025 [13:23:48]line Версия ККМ: 001 [13:23:48]line Платежная система: O! деньги [13:23:48]line ФМ: 0000000000965389 [13:23:48]line ФД: 31758 [13:23:48]line ФПД: 32453379689687 [13:23:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T132351&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31758&fm=32453379689687&tin=02508201610067®Number=0000000000098025&sum=15000 [13:23:49]line 0 [13:23:49]Connected sock=10 [13:23:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 26 01 00 00 83 75 1E 01 14 41 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 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 4D 00 00 00 F4 03 04 00 67 74 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0E 7C 00 00 35 04 06 00 1D 84 24 2B 0C D7 13 ED A2 8F 06 73 3C CD [13:23:49]written 0, free lines is 4095 [13:23:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 00 13 47 00 5A 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0E 7C 00 00 F4 03 04 00 74 20 96 66 B6 04 01 00 00 C2 5B 2A 0A F9 6A D7 AC [13:23:49]CommunicateWithHost err = 0 [13:23:49]CheckOFDResponse [13:23:49]1017 (14) - 77093643461234 [13:23:49]1041 (16) - 0000000000965389 [13:23:49]1040 (4) - 31758 [13:23:49]1012 (4) - 16.07.2024 07:25 [13:23:49]1206 (1) - 0 [13:23:49]OFD Sender: Remove packet 31758 [13:23:49]ProducePacketName [13:23:49]name=ofd_packets/00031758 [13:23:49]NVStorageDeleteData [13:23:49]Write to MH i2c: 01 00 00 96 22 B8 [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: 01 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: 01 07 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: 01 07 00 96 22 00 00 00 00 00 C6 0C 91 [13:23:49]RasterBufferAndPrint [13:23:49]line [13:23:49]line [13:23:49]line [13:23:49]line [13:23:49]line [13:23:49]written 0, free lines is 3277 [13:23:49]MH_Cut [13:23:49]Write to MH i2c: D1 01 00 9D 22 01 91 [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: D1 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: D1 01 00 [13:23:49]MH_I2C_Read... [13:23:49]Read from MH i2c: D1 01 00 9D 22 00 90 [13:23:49]Write to MH i2c: 01 00 00 9E 22 C0 [13:23:49]Write i2c OK [13:23:49]MH_I2C_Read... [13:23:50]OFD Sender: No OFD packet to send [13:23:50]*** Cut start [13:23:50]*** Partial cut [13:23:50]*** CUTSNS_PIN = 1 [13:23:50]*** CUTSNS_PIN = 0 [13:23:50]*** Brake cut motor [13:23:51]Read from MH i2c: 01 [13:23:51]MH_I2C_Read... [13:23:51]*** Stop cut motor [13:23:51]*** Cut end [13:23:51]Read from MH i2c: 01 07 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: 01 07 00 9E 22 00 00 00 00 00 FF 0F D5 [13:23:51]process_action close_receipt done [13:23:51]requested_data is exist [13:23:51]produce_requested_data [13:23:51]requested_item fm.sn is exist - process it [13:23:51]wFMCommunicate request_size=4 [13:23:51]MH_SAM_APDU [13:23:51]CAPDU: 80 11 00 00 [13:23:51]Write to MH i2c: E2 08 00 9F 22 80 11 00 00 00 00 00 00 3B [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:51]Read from MH i2c: E2 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 17 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 17 00 9F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 96 [13:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:23:51]wFMCommunicate OK [13:23:51]requested_item fd.num is exist - process it [13:23:51]SAM_PROTO_GetFieldsCounters [13:23:51]wFMCommunicate request_size=4 [13:23:51]MH_SAM_APDU [13:23:51]CAPDU: 80 13 00 00 [13:23:51]Write to MH i2c: E2 08 00 A0 22 80 13 00 00 00 00 00 00 3E [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:51]Read from MH i2c: E2 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 62 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 62 00 A0 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0E 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 4B [13:23:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0E 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:51]wFMCommunicate OK [13:23:51]SAM_PROTO_GetFieldsCounters done [13:23:51]requested_item shift.num is exist - process it [13:23:51]requested_item shift.opened is exist - process it [13:23:51]req_shift_opened [13:23:51]FM_GetShiftState [13:23:51]SAM_PROTO_GetShiftState [13:23:51]wFMCommunicate request_size=4 [13:23:51]MH_SAM_APDU [13:23:51]CAPDU: 80 13 01 00 [13:23:51]Write to MH i2c: E2 08 00 A1 22 80 13 01 00 00 00 00 00 40 [13:23:51]Write i2c OK [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 [13:23:51]MH_I2C_Read... [13:23:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:51]Read from MH i2c: E2 0E 00 [13:23:51]MH_I2C_Read... [13:23:51]Read from MH i2c: E2 0E 00 A1 22 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 8F [13:23:51]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:23:51]wFMCommunicate OK [13:23:51]SAM_PROTO_GetShiftState done [13:23:51]FM_GetShiftState done [13:23:51]req_shift_opened done [13:23:51]requested_item shift.open_date is exist - process it [13:23:51]req_shift_open_date [13:23:51]req_shift_open_date done [13:23:51]produce_requested_data done [13:23:51]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31758,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [13:23:51]process_action_free close_receipt [13:23:51]json_value_free [13:23:51]json_value_free done [13:23:51]process_json_proto returns [13:23:51]Send response to host [13:23:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31758,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [13:23:51]free response buf [13:23:51]execute_script done [13:23:51]execute_script returns [13:23:51]free content buf [13:23:51]Sock 7.Close socket [13:23:51]Sock 7.Thread stoped [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32:25]OFD Sender: No OFD packet to send [13:32:30]OFD Sender: No OFD packet to send [13:32:35]OFD Sender: No OFD packet to send [13:32:40]OFD Sender: No OFD packet to send [13:32:45]OFD Sender: No OFD packet to send [13:32:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:25]OFD Sender: No OFD packet to send [13:34:30]OFD Sender: No OFD packet to send [13:34:35]OFD Sender: No OFD packet to send [13:34:40]OFD Sender: No OFD packet to send [13:34:45]OFD Sender: No OFD packet to send [13:34:50]OFD Sender: No OFD packet to send [13:34:55]OFD Sender: No OFD packet to send [13:35:00]OFD Sender: No OFD packet to send [13:35:05]OFD Sender: No OFD packet to send [13:35:10]OFD Sender: No OFD packet to send [13:35:15]OFD Sender: No OFD packet to send [13:35:20]OFD Sender: No OFD packet to send [13:35:25]OFD Sender: No OFD packet to send [13:35:30]OFD Sender: No OFD packet to send [13:35:35]OFD Sender: No OFD packet to send [13:35:40]OFD Sender: No OFD packet to send [13:35:45]OFD Sender: No OFD packet to send [13:35:50]OFD Sender: No OFD packet to send [13:35:55]OFD Sender: No OFD packet to send [13:36:00]OFD Sender: No OFD packet to send [13:36:05]OFD Sender: No OFD packet to send [13:36:10]OFD Sender: No OFD packet to send [13:36:15]OFD Sender: No OFD packet to send [13:36:20]OFD Sender: No OFD packet to send [13:36:25]OFD Sender: No OFD packet to send [13:36:30]OFD Sender: No OFD packet to send [13:36:35]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:40:56]accept exits with 9 [13:40:56]New connection [13:40:56]New thread 3066965348 created [13:40:56]Thread 3066821988 joined [13:40:56]Waiting for new connection... [13:40:56] Sock 9.Parse request [13:40:56]Sock 9.Check first char [13:40:56]Sock 9.First char is OK [13:40:56]request: POST /json_proto HTTP/1.0 [13:40:56]Method: POST [13:40:56]URL: /json_proto [13:40:56]Method is POST - this is cgi request [13:40:56]url: /json_proto [13:40:56]query_string will be loaded in cgi processing [13:40:56]execute_cgi json_proto POST (null) [13:40:56]execute_cgi path=json_proto method=POST [13:40:56]POST find Content-Length [13:40:56]Host: 172.17.39.68:8080 [13:40:56]Content-Length: 623 [13:40:56]Content-Type: application/json [13:40:56] [13:40:56]POST finish read [13:40:56]Found Content-Length = 623 [13:40:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214340", "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:40:56]execute_script... [13:40:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214340", "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:40:56]POST & json_proto [13:40:56]process_json_proto [13:40:56]json parsed OK: [13:40:56]protocol is kg_v1.0 [13:40:56]action value=close_receipt [13:40:56]process_action close_receipt [13:40:56]cmd_close_receipt [13:40:56]MH_GetDate [13:40:56]Write to MH i2c: F0 00 00 A2 22 B3 [13:40:56]Write i2c OK [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: F0 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: F0 09 00 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: F0 09 00 A2 22 00 6D 78 96 66 D6 48 95 66 B6 [13:40:56]GetLastDocTimeStamp 1721136231 [13:40:56]current date 1721137261 [13:40:56]FM_GetShiftState [13:40:56]SAM_PROTO_GetShiftState [13:40:56]wFMCommunicate request_size=4 [13:40:56]MH_SAM_APDU [13:40:56]CAPDU: 80 13 01 00 [13:40:56]Write to MH i2c: E2 08 00 A3 22 80 13 01 00 00 00 00 00 42 [13:40:56]Write i2c OK [13:40:56]MH_I2C_Read... [13:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:40:56]Read from MH i2c: E2 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: E2 0E 00 [13:40:56]MH_I2C_Read... [13:40:56]Read from MH i2c: E2 0E 00 A3 22 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 91 [13:40:56]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:40:56]wFMCommunicate OK [13:40:56]SAM_PROTO_GetShiftState done [13:40:56]FM_GetShiftState done [13:40:56]opened in 1721088399 [13:40:56]opened+sec_in_day 1721174799 [13:40:56]quantity*price = 14000 [13:40:56]sum+1 = 14001 [13:40:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 78 16.07.2024 13:41 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31759 ФПД: 139023483360894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T134101&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31759&fm=139023483360894&tin=02508201610067®Number=0000000000098025&sum=14000 0 [13:40:57]StoreToDocumentArchive [13:40:57]shift 371 fd 31759 [13:40:57]save to /storage/0371/doc_00031759 [13:40:57]save last doc name /storage/0371/doc_00031759 to /storage/kkm_last_doc_name [13:40:57]save OK [13:40:57]Clear old archive folders... [13:40:57]ProcessDocumentItem done err = 0, tmpTLVsize=275 [13:40:57]tlvbuf is 0155CFE0 [13:40:57]SAM_PROTO_ClearQueue [13:40:57]wFMCommunicate request_size=4 [13:40:57]MH_SAM_APDU [13:40:57]CAPDU: 80 09 00 00 [13:40:57]Write to MH i2c: E2 08 00 B0 22 80 09 00 00 00 00 00 00 44 [13:40:57]Write i2c OK [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 [13:40:57]MH_I2C_Read... [13:40:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:40:57]Read from MH i2c: E2 03 00 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 03 00 B0 22 00 90 00 46 [13:40:57]RAPDU: 90 00 [13:40:57]wFMCommunicate OK [13:40:57]SAM_PROTO_ClearQueue done [13:40:57]KKMCreateOFDPacket [13:40:57]OFDProtocolAddRootSTLVToBuf [13:40:57]FM_MakeSignedData [13:40:57]FM_MakeSignedData [13:40:57]SAM_PROTO_SignData [13:40:57]wFMCommunicate request_size=4 [13:40:57]MH_SAM_APDU [13:40:57]CAPDU: 80 0D 01 02 [13:40:57]Write to MH i2c: E2 08 00 B1 22 80 0D 01 02 00 00 00 00 4C [13:40:57]Write i2c OK [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 [13:40:57]MH_I2C_Read... [13:40:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:40:57]Read from MH i2c: E2 03 00 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 03 00 B1 22 00 90 00 47 [13:40:57]RAPDU: 90 00 [13:40:57]wFMCommunicate OK [13:40:57]wFMCommunicate request_size=255 [13:40:57]MH_SAM_APDU [13:40:57]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 4E 00 00 00 F4 03 04 00 6D 78 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [13:40:57]Write to MH i2c: E2 02 01 B2 22 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 4E 00 00 00 F4 03 04 00 6D 78 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 7E [13:40:57]Write i2c OK [13:40:57]MH_I2C_Read... [13:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:57]Read from MH i2c: E2 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 03 00 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 03 00 B2 22 00 90 00 48 [13:40:57]RAPDU: 90 00 [13:40:57]wFMCommunicate OK [13:40:57]wFMCommunicate request_size=34 [13:40:57]MH_SAM_APDU [13:40:57]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0F 7C 00 00 35 04 06 00 7E 70 ED 57 56 7E [13:40:57]Write to MH i2c: E2 25 00 B3 22 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0F 7C 00 00 35 04 06 00 7E 70 ED 57 56 7E 00 00 A9 [13:40:57]Write i2c OK [13:40:57]MH_I2C_Read... [13:40:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:40:57]Read from MH i2c: E2 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 03 00 [13:40:57]MH_I2C_Read... [13:40:57]Read from MH i2c: E2 03 00 B3 22 00 90 00 49 [13:40:57]RAPDU: 90 00 [13:40:57]wFMCommunicate OK [13:40:57]wFMCommunicate request_size=4 [13:40:57]MH_SAM_APDU [13:40:57]CAPDU: 80 0D 03 02 [13:40:57]Write to MH i2c: E2 08 00 B4 22 80 0D 03 02 00 00 00 00 51 [13:40:57]Write i2c OK [13:40:57]MH_I2C_Read... [13:40:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:40:58]Read from MH i2c: E2 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 0B 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 0B 00 B4 22 00 52 EB F9 EE 37 02 4D D9 90 00 D5 [13:40:58]RAPDU: 52 EB F9 EE 37 02 4D D9 90 00 [13:40:58]wFMCommunicate OK [13:40:58]SAM_PROTO_SignData done [13:40:58]FM_MakeSignedData done [13:40:58]CreateOFDProtocolMessage [13:40:58]wFMCommunicate request_size=4 [13:40:58]MH_SAM_APDU [13:40:58]CAPDU: 80 11 00 00 [13:40:58]Write to MH i2c: E2 08 00 B5 22 80 11 00 00 00 00 00 00 51 [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:40:58]Read from MH i2c: E2 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 17 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: E2 17 00 B5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 AC [13:40:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:40:58]wFMCommunicate OK [13:40:58]CreateOFDProtocolMessage done [13:40:58]OFDSenderStorePacket 31759 [13:40:58]StoreOFDPacket docnum=31759 [13:40:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 06 31 1F 01 BD 0A 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 4E 00 00 00 F4 03 04 00 6D 78 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0F 7C 00 00 35 04 06 00 7E 70 ED 57 56 7E 52 EB F9 EE 37 02 4D D9 [13:40:58]CheckFolder [13:40:58]dirname=/storage/ofd_packets [13:40:58]CheckFolder done [13:40:58]ProducePacketName [13:40:58]name=ofd_packets/00031759 [13:40:58]NVStorageSaveData ofd_packets/00031759 [13:40:58]File name is /storage/ofd_packets/00031759 [13:40:58]Write 325 bytes [13:40:58]NVStorageSaveData done [13:40:58]OFDSenderStorePacket done [13:40:58]KKMCreateOFDPacket done [13:40:58]NVStorageSaveData kkm_last_timestamp [13:40:58]File name is /storage/kkm_last_timestamp [13:40:58]Write 4 bytes [13:40:58]NVStorageSaveData done [13:40:58]ExternCall_PrintAddStr [13:40:58]wPrintStart [13:40:58]Write to MH i2c: 01 00 00 B6 22 D8 [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: 01 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: 01 07 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: 01 07 00 B6 22 00 00 00 00 00 FF 0F ED [13:40:58]RasterBufferAndPrint [13:40:58]line Счет N : (3)214340 [13:40:58]line ИНН: 02508201610067 [13:40:58]line Контрольно-Кассовый Чек [13:40:58]line ПРОДАЖА [13:40:58]line Товар: 48743587 [13:40:58]line Сигареты Winston XStyle Silver [13:40:58]line 1.000 * 140.00 [13:40:58]line = 140.00 [13:40:58]line НДС 12% НСП 1% [13:40:58]line > о реализуемом товаре [13:40:58]line ИТОГО: 140.00 [13:40:58]line НСП 1% : 1.24 [13:40:58]line НДС 12% : 14.87 [13:40:58]line Наличными: 140.00 [13:40:58]line Безнал.: 0.00 [13:40:58]line Место: АЗС № 140 "Партнер Нефть" [13:40:58]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:40:58]line СНО: Общий режим [13:40:58]line Чек 78 16.07.2024 13:41 [13:40:58]line Смена: 371 ФФД: 1.0 [13:40:58]line ЗНМ: 0300000189 [13:40:58]line РНМ: 0000000000098025 [13:40:58]line Версия ККМ: 001 [13:40:58]line ФМ: 0000000000965389 [13:40:58]line ФД: 31759 [13:40:58]line ФПД: 139023483360894 [13:40:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T134101&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31759&fm=139023483360894&tin=02508201610067®Number=0000000000098025&sum=14000 [13:40:58]OFD Sender: Processing packet 31759 [packets to send 6, broken 5] [13:40:58]ProducePacketName [13:40:58]name=ofd_packets/00031759 [13:40:58]OFD Sender: To server: pG, [13:40:58]CommunicateWithHost lk.salyk.kg:30040 [13:40:58]ConnectInit lk.salyk.kg [13:40:58]line 0 [13:40:58]written 0, free lines is 4095 [13:40:58]Connected sock=10 [13:40:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 06 31 1F 01 BD 0A 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 4E 00 00 00 F4 03 04 00 6D 78 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0F 7C 00 00 35 04 06 00 7E 70 ED 57 56 7E 52 EB F9 EE 37 02 4D D9 [13:40:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 A2 ED 47 00 5E DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 0F 7C 00 00 F4 03 04 00 7A 24 96 66 B6 04 01 00 00 A5 4B 95 86 10 FF F2 99 [13:40:58]CommunicateWithHost err = 0 [13:40:58]CheckOFDResponse [13:40:58]1017 (14) - 77093643461234 [13:40:58]1041 (16) - 0000000000965389 [13:40:58]1040 (4) - 31759 [13:40:58]1012 (4) - 16.07.2024 07:42 [13:40:58]1206 (1) - 0 [13:40:58]OFD Sender: Remove packet 31759 [13:40:58]ProducePacketName [13:40:58]name=ofd_packets/00031759 [13:40:58]NVStorageDeleteData [13:40:58]Write to MH i2c: 01 00 00 DF 22 01 [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: 01 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: 01 07 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: 01 07 00 DF 22 00 00 00 00 00 E7 0C FB [13:40:58]RasterBufferAndPrint [13:40:58]line [13:40:58]line [13:40:58]line [13:40:58]line [13:40:58]line [13:40:58]written 0, free lines is 3310 [13:40:58]MH_Cut [13:40:58]Write to MH i2c: D1 01 00 E6 22 01 DA [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: D1 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: D1 01 00 [13:40:58]MH_I2C_Read... [13:40:58]Read from MH i2c: D1 01 00 E6 22 00 D9 [13:40:58]Write to MH i2c: 01 00 00 E7 22 09 [13:40:58]Write i2c OK [13:40:58]MH_I2C_Read... [13:40:59]OFD Sender: No OFD packet to send [13:40:59]*** Cut start [13:40:59]*** Partial cut [13:40:59]*** CUTSNS_PIN = 1 [13:40:59]*** CUTSNS_PIN = 0 [13:40:59]*** Brake cut motor [13:41:00]Read from MH i2c: 01 [13:41:00]MH_I2C_Read... [13:41:00]*** Stop cut motor [13:41:00]*** Cut end [13:41:00]Read from MH i2c: 01 07 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: 01 07 00 E7 22 00 00 00 00 00 FF 0F 1E [13:41:00]process_action close_receipt done [13:41:00]requested_data is exist [13:41:00]produce_requested_data [13:41:00]requested_item fm.sn is exist - process it [13:41:00]wFMCommunicate request_size=4 [13:41:00]MH_SAM_APDU [13:41:00]CAPDU: 80 11 00 00 [13:41:00]Write to MH i2c: E2 08 00 E8 22 80 11 00 00 00 00 00 00 84 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 17 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 17 00 E8 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DF [13:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:41:00]wFMCommunicate OK [13:41:00]requested_item fd.num is exist - process it [13:41:00]SAM_PROTO_GetFieldsCounters [13:41:00]wFMCommunicate request_size=4 [13:41:00]MH_SAM_APDU [13:41:00]CAPDU: 80 13 00 00 [13:41:00]Write to MH i2c: E2 08 00 E9 22 80 13 00 00 00 00 00 00 87 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 62 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 62 00 E9 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0F 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 98 [13:41:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 0F 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:00]wFMCommunicate OK [13:41:00]SAM_PROTO_GetFieldsCounters done [13:41:00]requested_item shift.num is exist - process it [13:41:00]requested_item shift.opened is exist - process it [13:41:00]req_shift_opened [13:41:00]FM_GetShiftState [13:41:00]SAM_PROTO_GetShiftState [13:41:00]wFMCommunicate request_size=4 [13:41:00]MH_SAM_APDU [13:41:00]CAPDU: 80 13 01 00 [13:41:00]Write to MH i2c: E2 08 00 EA 22 80 13 01 00 00 00 00 00 89 [13:41:00]Write i2c OK [13:41:00]MH_I2C_Read... [13:41:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:00]Read from MH i2c: E2 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 0E 00 [13:41:00]MH_I2C_Read... [13:41:00]Read from MH i2c: E2 0E 00 EA 22 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 D8 [13:41:00]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:41:00]wFMCommunicate OK [13:41:00]SAM_PROTO_GetShiftState done [13:41:00]FM_GetShiftState done [13:41:00]req_shift_opened done [13:41:00]requested_item shift.open_date is exist - process it [13:41:00]req_shift_open_date [13:41:00]req_shift_open_date done [13:41:00]produce_requested_data done [13:41:00]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31759,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [13:41:00]process_action_free close_receipt [13:41:00]json_value_free [13:41:00]json_value_free done [13:41:00]process_json_proto returns [13:41:00]Send response to host [13:41:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31759,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [13:41:00]free response buf [13:41:00]execute_script done [13:41:00]execute_script returns [13:41:00]free content buf [13:41:00]Sock 9.Close socket [13:41:00]Sock 9.Thread stoped [13:41:04]OFD Sender: No OFD packet to send [13:41:09]OFD Sender: No OFD packet to send [13:41:14]OFD Sender: No OFD packet to send [13:41:19]OFD Sender: No OFD packet to send [13:41:24]OFD Sender: No OFD packet to send [13:41:29]OFD Sender: No OFD packet to send [13:41:34]OFD Sender: No OFD packet to send [13:41:36]accept exits with 7 [13:41:36]New connection [13:41:36]New thread 3066821988 created [13:41:36]Thread 3066965348 joined [13:41:36]Waiting for new connection... [13:41:36] Sock 7.Parse request [13:41:36]Sock 7.Check first char [13:41:36]Sock 7.First char is OK [13:41:36]request: POST /json_proto HTTP/1.0 [13:41:36]Method: POST [13:41:36]URL: /json_proto [13:41:36]Method is POST - this is cgi request [13:41:36]url: /json_proto [13:41:36]query_string will be loaded in cgi processing [13:41:36]execute_cgi json_proto POST (null) [13:41:36]execute_cgi path=json_proto method=POST [13:41:36]POST find Content-Length [13:41:36]Host: 172.17.39.68:8080 [13:41:36]Content-Length: 598 [13:41:36]Content-Type: application/json [13:41:36] [13:41:36]POST finish read [13:41:36]Found Content-Length = 598 [13:41:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214341", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:36]execute_script... [13:41: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)214341", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 510.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:41:36]POST & json_proto [13:41:36]process_json_proto [13:41:36]json parsed OK: [13:41:36]protocol is kg_v1.0 [13:41:36]action value=close_receipt [13:41:36]process_action close_receipt [13:41:36]cmd_close_receipt [13:41:36]MH_GetDate [13:41:36]Write to MH i2c: F0 00 00 EB 22 FC [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: F0 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: F0 09 00 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: F0 09 00 EB 22 00 95 78 96 66 D6 48 95 66 27 [13:41:36]GetLastDocTimeStamp 1721137261 [13:41:36]current date 1721137301 [13:41:36]FM_GetShiftState [13:41:36]SAM_PROTO_GetShiftState [13:41:36]wFMCommunicate request_size=4 [13:41:36]MH_SAM_APDU [13:41:36]CAPDU: 80 13 01 00 [13:41:36]Write to MH i2c: E2 08 00 EC 22 80 13 01 00 00 00 00 00 8B [13:41:36]Write i2c OK [13:41:36]MH_I2C_Read... [13:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:36]Read from MH i2c: E2 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: E2 0E 00 [13:41:36]MH_I2C_Read... [13:41:36]Read from MH i2c: E2 0E 00 EC 22 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 DA [13:41:36]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:41:36]wFMCommunicate OK [13:41:36]SAM_PROTO_GetShiftState done [13:41:36]FM_GetShiftState done [13:41:36]opened in 1721088399 [13:41:36]opened+sec_in_day 1721174799 [13:41:36]quantity*price = 51000 [13:41:36]sum+1 = 51001 [13:41:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 510.00 НСП 1% : 4.51 НДС 12% : 54.16 Наличными: 510.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 79 16.07.2024 13:41 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31760 ФПД: 204204156909928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T134141&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31760&fm=204204156909928&tin=02508201610067®Number=0000000000098025&sum=51000 0 [13:41:37]StoreToDocumentArchive [13:41:37]shift 371 fd 31760 [13:41:37]save to /storage/0371/doc_00031760 [13:41:37]save last doc name /storage/0371/doc_00031760 to /storage/kkm_last_doc_name [13:41:37]save OK [13:41:37]Clear old archive folders... [13:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=262 [13:41:37]tlvbuf is B6F5B6D0 [13:41:37]SAM_PROTO_ClearQueue [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 09 00 00 [13:41:37]Write to MH i2c: E2 08 00 F9 22 80 09 00 00 00 00 00 00 8D [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 F9 22 00 90 00 8F [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]SAM_PROTO_ClearQueue done [13:41:37]KKMCreateOFDPacket [13:41:37]OFDProtocolAddRootSTLVToBuf [13:41:37]FM_MakeSignedData [13:41:37]FM_MakeSignedData [13:41:37]SAM_PROTO_SignData [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 01 02 [13:41:37]Write to MH i2c: E2 08 00 FA 22 80 0D 01 02 00 00 00 00 95 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 FA 22 00 90 00 90 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=255 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 02 02 FA 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 95 78 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 [13:41:37]Write to MH i2c: E2 02 01 FB 22 80 0D 02 02 FA 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 95 78 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 00 00 A6 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 FB 22 00 90 00 91 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=21 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 02 02 10 04 00 10 7C 00 00 35 04 06 00 B9 B8 FC 3B F9 68 [13:41:37]Write to MH i2c: E2 18 00 FC 22 80 0D 02 02 10 00 04 00 10 7C 00 00 35 04 06 00 B9 B8 FC 3B F9 68 00 00 90 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 03 00 FC 22 00 90 00 92 [13:41:37]RAPDU: 90 00 [13:41:37]wFMCommunicate OK [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 0D 03 02 [13:41:37]Write to MH i2c: E2 08 00 FD 22 80 0D 03 02 00 00 00 00 9A [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 0B 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 0B 00 FD 22 00 67 26 47 8B 33 D5 7E 32 90 00 B2 [13:41:37]RAPDU: 67 26 47 8B 33 D5 7E 32 90 00 [13:41:37]wFMCommunicate OK [13:41:37]SAM_PROTO_SignData done [13:41:37]FM_MakeSignedData done [13:41:37]CreateOFDProtocolMessage [13:41:37]wFMCommunicate request_size=4 [13:41:37]MH_SAM_APDU [13:41:37]CAPDU: 80 11 00 00 [13:41:37]Write to MH i2c: E2 08 00 FE 22 80 11 00 00 00 00 00 00 9A [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:37]Read from MH i2c: E2 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 17 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: E2 17 00 FE 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F5 [13:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:41:37]wFMCommunicate OK [13:41:37]CreateOFDProtocolMessage done [13:41:37]OFDSenderStorePacket 31760 [13:41:37]StoreOFDPacket docnum=31760 [13:41:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1A 01 00 00 2A 61 12 01 0C 6F 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 95 78 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 10 7C 00 00 35 04 06 00 B9 B8 FC 3B F9 68 67 26 47 8B 33 D5 7E 32 [13:41:37]CheckFolder [13:41:37]dirname=/storage/ofd_packets [13:41:37]CheckFolder done [13:41:37]ProducePacketName [13:41:37]name=ofd_packets/00031760 [13:41:37]NVStorageSaveData ofd_packets/00031760 [13:41:37]File name is /storage/ofd_packets/00031760 [13:41:37]Write 312 bytes [13:41:37]NVStorageSaveData done [13:41:37]OFDSenderStorePacket done [13:41:37]KKMCreateOFDPacket done [13:41:37]NVStorageSaveData kkm_last_timestamp [13:41:37]File name is /storage/kkm_last_timestamp [13:41:37]Write 4 bytes [13:41:37]NVStorageSaveData done [13:41:37]ExternCall_PrintAddStr [13:41:37]wPrintStart [13:41:37]Write to MH i2c: 01 00 00 FF 22 21 [13:41:37]Write i2c OK [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: 01 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: 01 07 00 [13:41:37]MH_I2C_Read... [13:41:37]Read from MH i2c: 01 07 00 FF 22 00 00 00 00 00 FF 0F 36 [13:41:37]RasterBufferAndPrint [13:41:37]line Счет N : (3)214341 [13:41:37]line ИНН: 02508201610067 [13:41:37]line Контрольно-Кассовый Чек [13:41:37]line ПРОДАЖА [13:41:37]line Товар: 4700002083327 [13:41:37]line Водка Level 0,5 [13:41:37]line 1.000 * 510.00 [13:41:37]line = 510.00 [13:41:37]line НДС 12% НСП 1% [13:41:37]line > о реализуемом товаре [13:41:37]line ИТОГО: 510.00 [13:41:37]line НСП 1% : 4.51 [13:41:37]line НДС 12% : 54.16 [13:41:37]line Наличными: 510.00 [13:41:37]line Безнал.: 0.00 [13:41:37]line Место: АЗС № 140 "Партнер Нефть" [13:41:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:41:37]line СНО: Общий режим [13:41:37]line Чек 79 16.07.2024 13:41 [13:41:37]line Смена: 371 ФФД: 1.0 [13:41:37]line ЗНМ: 0300000189 [13:41:37]line РНМ: 0000000000098025 [13:41:37]line Версия ККМ: 001 [13:41:37]line ФМ: 0000000000965389 [13:41:37]line ФД: 31760 [13:41:37]line ФПД: 204204156909928 [13:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T134141&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31760&fm=204204156909928&tin=02508201610067®Number=0000000000098025&sum=51000 [13:41:38]OFD Sender: Processing packet 31760 [packets to send 6, broken 5] [13:41:38]ProducePacketName [13:41:38]name=ofd_packets/00031760 [13:41:38]OFD Sender: To server: pG, [13:41:38]CommunicateWithHost lk.salyk.kg:30040 [13:41:38]ConnectInit lk.salyk.kg [13:41:38]line 0 [13:41:38]written 0, free lines is 4095 [13:41:38]Connected sock=10 [13:41:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1A 01 00 00 2A 61 12 01 0C 6F 5A 03 01 00 03 00 06 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 15 00 00 00 00 07 04 06 00 38 C7 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 95 78 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 10 7C 00 00 35 04 06 00 B9 B8 FC 3B F9 68 67 26 47 8B 33 D5 7E 32 [13:41:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 58 5A 47 00 76 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 10 7C 00 00 F4 03 04 00 A2 24 96 66 B6 04 01 00 00 DA 11 7D AF 4D 9C DD FA [13:41:38]CommunicateWithHost err = 0 [13:41:38]CheckOFDResponse [13:41:38]1017 (14) - 77093643461234 [13:41:38]1041 (16) - 0000000000965389 [13:41:38]1040 (4) - 31760 [13:41:38]1012 (4) - 16.07.2024 07:43 [13:41:38]1206 (1) - 0 [13:41:38]OFD Sender: Remove packet 31760 [13:41:38]ProducePacketName [13:41:38]name=ofd_packets/00031760 [13:41:38]NVStorageDeleteData [13:41:38]Write to MH i2c: 01 00 00 27 23 4A [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: 01 07 00 27 23 00 00 00 00 00 08 0D 66 [13:41:38]RasterBufferAndPrint [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]line [13:41:38]written 0, free lines is 3342 [13:41:38]MH_Cut [13:41:38]Write to MH i2c: D1 01 00 2E 23 01 23 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 01 00 [13:41:38]MH_I2C_Read... [13:41:38]Read from MH i2c: D1 01 00 2E 23 00 22 [13:41:38]Write to MH i2c: 01 00 00 2F 23 52 [13:41:38]Write i2c OK [13:41:38]MH_I2C_Read... [13:41:39]OFD Sender: No OFD packet to send [13:41:39]*** Cut start [13:41:39]*** Partial cut [13:41:39]*** CUTSNS_PIN = 1 [13:41:39]*** CUTSNS_PIN = 0 [13:41:39]*** Brake cut motor [13:41:40]Read from MH i2c: 01 [13:41:40]MH_I2C_Read... [13:41:40]*** Stop cut motor [13:41:40]*** Cut end [13:41:40]Read from MH i2c: 01 07 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: 01 07 00 2F 23 00 00 00 00 00 FF 0F 67 [13:41:40]process_action close_receipt done [13:41:40]requested_data is exist [13:41:40]produce_requested_data [13:41:40]requested_item fm.sn is exist - process it [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 11 00 00 [13:41:40]Write to MH i2c: E2 08 00 30 23 80 11 00 00 00 00 00 00 CD [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 17 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 17 00 30 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 28 [13:41:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:41:40]wFMCommunicate OK [13:41:40]requested_item fd.num is exist - process it [13:41:40]SAM_PROTO_GetFieldsCounters [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 13 00 00 [13:41:40]Write to MH i2c: E2 08 00 31 23 80 13 00 00 00 00 00 00 D0 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 62 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 62 00 31 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 10 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 E5 [13:41:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 10 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_GetFieldsCounters done [13:41:40]requested_item shift.num is exist - process it [13:41:40]requested_item shift.opened is exist - process it [13:41:40]req_shift_opened [13:41:40]FM_GetShiftState [13:41:40]SAM_PROTO_GetShiftState [13:41:40]wFMCommunicate request_size=4 [13:41:40]MH_SAM_APDU [13:41:40]CAPDU: 80 13 01 00 [13:41:40]Write to MH i2c: E2 08 00 32 23 80 13 01 00 00 00 00 00 D2 [13:41:40]Write i2c OK [13:41:40]MH_I2C_Read... [13:41:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:41:40]Read from MH i2c: E2 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0E 00 [13:41:40]MH_I2C_Read... [13:41:40]Read from MH i2c: E2 0E 00 32 23 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 21 [13:41:40]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:41:40]wFMCommunicate OK [13:41:40]SAM_PROTO_GetShiftState done [13:41:40]FM_GetShiftState done [13:41:40]req_shift_opened done [13:41:40]requested_item shift.open_date is exist - process it [13:41:40]req_shift_open_date [13:41:40]req_shift_open_date done [13:41:40]produce_requested_data done [13:41:40]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31760,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [13:41:40]process_action_free close_receipt [13:41:40]json_value_free [13:41:40]json_value_free done [13:41:40]process_json_proto returns [13:41:40]Send response to host [13:41:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31760,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [13:41:40]free response buf [13:41:40]execute_script done [13:41:40]execute_script returns [13:41:40]free content buf [13:41:40]Sock 7.Close socket [13:41:40]Sock 7.Thread stoped [13:41:44]OFD Sender: No OFD packet to send [13:41:49]OFD Sender: No OFD packet to send [13:41:54]OFD Sender: No OFD packet to send [13:41:59]OFD Sender: No OFD packet to send [13:42:04]OFD Sender: No OFD packet to send [13:42:09]OFD Sender: No OFD packet to send [13:42:14]OFD Sender: No OFD packet to send [13:42:19]OFD Sender: No OFD packet to send [13:42:24]OFD Sender: No OFD packet to send [13:42:29]OFD Sender: No OFD packet to send [13:42:34]OFD Sender: No OFD packet to send [13:42:39]OFD Sender: No OFD packet to send [13:42:44]OFD Sender: No OFD packet to send [13:42:49]OFD Sender: No OFD packet to send [13:42:54]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:44:04]OFD Sender: No OFD packet to send [13:44:09]OFD Sender: No OFD packet to send [13:44:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:38]accept exits with 9 [13:44:38]New connection [13:44:38]New thread 3066965348 created [13:44:38]Thread 3066821988 joined [13:44:38]Waiting for new connection... [13:44:38] Sock 9.Parse request [13:44:38]Sock 9.Check first char [13:44:38]Sock 9.First char is OK [13:44:38]request: POST /json_proto HTTP/1.0 [13:44:38]Method: POST [13:44:38]URL: /json_proto [13:44:38]Method is POST - this is cgi request [13:44:38]url: /json_proto [13:44:38]query_string will be loaded in cgi processing [13:44:38]execute_cgi json_proto POST (null) [13:44:38]execute_cgi path=json_proto method=POST [13:44:38]POST find Content-Length [13:44:38]Host: 172.17.39.68:8080 [13:44:38]Content-Length: 1114 [13:44:38]Content-Type: application/json [13:44:38] [13:44:38]POST finish read [13:44:38]Found Content-Length = 1114 [13:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214342", "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": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921207700453", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 379.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:38]execute_script... [13:44: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)214342", "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": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "6921207700453", "name": "\u041F\u0440\u0435\u0437\u0435\u0440\u0432\u0430\u0442\u0438\u0432 Vie Tex 3\u0448\u0442", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 379.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:38]POST & json_proto [13:44:38]process_json_proto [13:44:38]json parsed OK: [13:44:38]protocol is kg_v1.0 [13:44:38]action value=close_receipt [13:44:38]process_action close_receipt [13:44:38]cmd_close_receipt [13:44:38]MH_GetDate [13:44:38]Write to MH i2c: F0 00 00 33 23 45 [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: F0 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: F0 09 00 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: F0 09 00 33 23 00 4B 79 96 66 D6 48 95 66 27 [13:44:38]GetLastDocTimeStamp 1721137301 [13:44:38]current date 1721137483 [13:44:38]FM_GetShiftState [13:44:38]SAM_PROTO_GetShiftState [13:44:38]wFMCommunicate request_size=4 [13:44:38]MH_SAM_APDU [13:44:38]CAPDU: 80 13 01 00 [13:44:38]Write to MH i2c: E2 08 00 34 23 80 13 01 00 00 00 00 00 D4 [13:44:38]Write i2c OK [13:44:38]MH_I2C_Read... [13:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:38]Read from MH i2c: E2 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: E2 0E 00 [13:44:38]MH_I2C_Read... [13:44:38]Read from MH i2c: E2 0E 00 34 23 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 23 [13:44:38]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:44:38]wFMCommunicate OK [13:44:38]SAM_PROTO_GetShiftState done [13:44:38]FM_GetShiftState done [13:44:38]opened in 1721088399 [13:44:38]opened+sec_in_day 1721174799 [13:44:38]quantity*price = 11100 [13:44:38]sum+1 = 11101 [13:44:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4640030091669 Сигареты ESSE Exchange S 1.000 * 138.00 = 138.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6921207700453 Презерватив Vie Tex 3шт 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 379.00 НСП 1% : 3.35 НДС 12% : 40.24 Наличными: 379.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 80 16.07.2024 13:44 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31761 ФПД: 111159419931587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T134443&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31761&fm=111159419931587&tin=02508201610067®Number=0000000000098025&sum=37900 0 [13:44:39]StoreToDocumentArchive [13:44:39]shift 371 fd 31761 [13:44:39]save to /storage/0371/doc_00031761 [13:44:39]save last doc name /storage/0371/doc_00031761 to /storage/kkm_last_doc_name [13:44:39]save OK [13:44:39]Clear old archive folders... [13:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=478 [13:44:39]tlvbuf is 0153ED10 [13:44:39]SAM_PROTO_ClearQueue [13:44:39]wFMCommunicate request_size=4 [13:44:39]MH_SAM_APDU [13:44:39]CAPDU: 80 09 00 00 [13:44:39]Write to MH i2c: E2 08 00 41 23 80 09 00 00 00 00 00 00 D6 [13:44:39]Write i2c OK [13:44:39]MH_I2C_Read... [13:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:39]Read from MH i2c: E2 [13:44:39]MH_I2C_Read... [13:44:39]Read from MH i2c: E2 03 00 [13:44:39]MH_I2C_Read... [13:44:39]Read from MH i2c: E2 03 00 41 23 00 90 00 D8 [13:44:39]RAPDU: 90 00 [13:44:39]wFMCommunicate OK [13:44:39]SAM_PROTO_ClearQueue done [13:44:39]KKMCreateOFDPacket [13:44:39]OFDProtocolAddRootSTLVToBuf [13:44:39]FM_MakeSignedData [13:44:39]FM_MakeSignedData [13:44:39]SAM_PROTO_SignData [13:44:39]wFMCommunicate request_size=4 [13:44:39]MH_SAM_APDU [13:44:39]CAPDU: 80 0D 01 02 [13:44:39]Write to MH i2c: E2 08 00 42 23 80 0D 01 02 00 00 00 00 DE [13:44:39]Write i2c OK [13:44:39]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 03 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 03 00 42 23 00 90 00 D9 [13:44:40]RAPDU: 90 00 [13:44:40]wFMCommunicate OK [13:44:40]wFMCommunicate request_size=255 [13:44:40]MH_SAM_APDU [13:44:40]CAPDU: 80 0D 02 02 FA 03 00 DE 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 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 35 33 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 [13:44:40]Write to MH i2c: E2 02 01 43 23 80 0D 02 02 FA 00 03 00 DE 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 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 35 33 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 00 00 8C [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:40]Read from MH i2c: E2 03 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 03 00 43 23 00 90 00 DA [13:44:40]RAPDU: 90 00 [13:44:40]wFMCommunicate OK [13:44:40]wFMCommunicate request_size=237 [13:44:40]MH_SAM_APDU [13:44:40]CAPDU: 80 0D 02 02 E8 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 0F 00 00 00 00 07 04 06 00 0C 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 50 00 00 00 F4 03 04 00 4B 79 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 11 7C 00 00 35 04 06 00 65 19 51 BD 0B C3 [13:44:40]Write to MH i2c: E2 F0 00 44 23 80 0D 02 02 E8 00 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 0F 00 00 00 00 07 04 06 00 0C 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 50 00 00 00 F4 03 04 00 4B 79 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 11 7C 00 00 35 04 06 00 65 19 51 BD 0B C3 00 00 AB [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 03 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 03 00 44 23 00 90 00 DB [13:44:40]RAPDU: 90 00 [13:44:40]wFMCommunicate OK [13:44:40]wFMCommunicate request_size=4 [13:44:40]MH_SAM_APDU [13:44:40]CAPDU: 80 0D 03 02 [13:44:40]Write to MH i2c: E2 08 00 45 23 80 0D 03 02 00 00 00 00 E3 [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 0B 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 0B 00 45 23 00 83 22 0D 72 51 36 5D 72 90 00 5E [13:44:40]RAPDU: 83 22 0D 72 51 36 5D 72 90 00 [13:44:40]wFMCommunicate OK [13:44:40]SAM_PROTO_SignData done [13:44:40]FM_MakeSignedData done [13:44:40]CreateOFDProtocolMessage [13:44:40]wFMCommunicate request_size=4 [13:44:40]MH_SAM_APDU [13:44:40]CAPDU: 80 11 00 00 [13:44:40]Write to MH i2c: E2 08 00 46 23 80 11 00 00 00 00 00 00 E3 [13:44:40]Write i2c OK [13:44:40]MH_I2C_Read... [13:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:40]Read from MH i2c: E2 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 17 00 [13:44:40]MH_I2C_Read... [13:44:40]Read from MH i2c: E2 17 00 46 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3E [13:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:44:40]wFMCommunicate OK [13:44:40]CreateOFDProtocolMessage done [13:44:40]OFDSenderStorePacket 31761 [13:44:40]StoreOFDPacket docnum=31761 [13:44:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 F2 01 00 00 15 DC EA 01 9E B5 5A 03 01 00 03 00 DE 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 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 35 33 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 0F 00 00 00 00 07 04 06 00 0C 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 50 00 00 00 F4 03 04 00 4B 79 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 11 7C 00 00 35 04 06 00 65 19 51 BD 0B C3 83 22 0D 72 51 36 5D 72 [13:44:41]CheckFolder [13:44:41]dirname=/storage/ofd_packets [13:44:41]CheckFolder done [13:44:41]ProducePacketName [13:44:41]name=ofd_packets/00031761 [13:44:41]NVStorageSaveData ofd_packets/00031761 [13:44:41]File name is /storage/ofd_packets/00031761 [13:44:41]Write 528 bytes [13:44:41]NVStorageSaveData done [13:44:41]OFDSenderStorePacket done [13:44:41]KKMCreateOFDPacket done [13:44:41]NVStorageSaveData kkm_last_timestamp [13:44:41]File name is /storage/kkm_last_timestamp [13:44:41]Write 4 bytes [13:44:41]NVStorageSaveData done [13:44:41]ExternCall_PrintAddStr [13:44:41]wPrintStart [13:44:41]Write to MH i2c: 01 00 00 47 23 6A [13:44:41]Write i2c OK [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 07 00 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 07 00 47 23 00 00 00 00 00 FF 0F 7F [13:44:41]RasterBufferAndPrint [13:44:41]line Счет N : (3)214342 [13:44:41]line ИНН: 02508201610067 [13:44:41]line Контрольно-Кассовый Чек [13:44:41]line ПРОДАЖА [13:44:41]line Товар: 4870001570071 [13:44:41]line Напиток Pepsi 1л [13:44:41]line 1.000 * 111.00 [13:44:41]line = 111.00 [13:44:41]line НДС 12% НСП 1% [13:44:41]line > о реализуемом товаре [13:44:41]line Товар: 4640030091669 [13:44:41]line Сигареты ESSE Exchange S [13:44:41]line 1.000 * 138.00 [13:44:41]line = 138.00 [13:44:41]line НДС 12% НСП 1% [13:44:41]line > о реализуемом товаре [13:44:41]line Товар: 6921207700453 [13:44:41]line Презерватив Vie Tex 3шт [13:44:41]line 1.000 * 130.00 [13:44:41]line = 130.00 [13:44:41]line НДС 12% НСП 1% [13:44:41]line > о реализуемом товаре [13:44:41]line ИТОГО: 379.00 [13:44:41]line НСП 1% : 3.35 [13:44:41]line НДС 12% : 40.24 [13:44:41]line Наличными: 379.00 [13:44:41]line Безнал.: 0.00 [13:44:41]line Место: АЗС № 140 "Партнер Нефть" [13:44:41]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [13:44:41]line СНО: Общий режим [13:44:41]line Чек 80 16.07.2024 13:44 [13:44:41]line Смена: 371 ФФД: 1.0 [13:44:41]line ЗНМ: 0300000189 [13:44:41]line РНМ: 0000000000098025 [13:44:41]line Версия ККМ: 001 [13:44:41]line ФМ: 0000000000965389 [13:44:41]line ФД: 31761 [13:44:41]line ФПД: 111159419931587 [13:44:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T134443&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31761&fm=111159419931587&tin=02508201610067®Number=0000000000098025&sum=37900 [13:44:41]line 0 [13:44:41]written 0, free lines is 4095 [13:44:41]OFD Sender: Processing packet 31761 [packets to send 6, broken 5] [13:44:41]ProducePacketName [13:44:41]name=ofd_packets/00031761 [13:44:41]OFD Sender: To server: pG, [13:44:41]CommunicateWithHost lk.salyk.kg:30040 [13:44:41]ConnectInit lk.salyk.kg [13:44:41]Connected sock=10 [13:44:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 F2 01 00 00 15 DC EA 01 9E B5 5A 03 01 00 03 00 DE 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 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 36 39 32 31 32 30 37 37 30 30 34 35 33 06 04 24 00 D0 9F D1 80 D0 B5 D0 B7 D0 B5 D1 80 D0 B2 D0 B0 D1 82 D0 B8 D0 B2 20 56 69 65 20 54 65 78 20 33 D1 88 D1 82 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 0C 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B8 0F 00 00 00 00 07 04 06 00 0C 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 50 00 00 00 F4 03 04 00 4B 79 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 11 7C 00 00 35 04 06 00 65 19 51 BD 0B C3 83 22 0D 72 51 36 5D 72 [13:44:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 BE D6 47 00 B2 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 11 7C 00 00 F4 03 04 00 58 25 96 66 B6 04 01 00 00 EB 34 2C FA 6A 5F 20 0C [13:44:41]CommunicateWithHost err = 0 [13:44:41]CheckOFDResponse [13:44:41]1017 (14) - 77093643461234 [13:44:41]1041 (16) - 0000000000965389 [13:44:41]1040 (4) - 31761 [13:44:41]1012 (4) - 16.07.2024 07:46 [13:44:41]1206 (1) - 0 [13:44:41]OFD Sender: Remove packet 31761 [13:44:41]ProducePacketName [13:44:41]name=ofd_packets/00031761 [13:44:41]NVStorageDeleteData [13:44:41]Write to MH i2c: 01 00 00 7B 23 9E [13:44:41]Write i2c OK [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 07 00 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: 01 07 00 7B 23 00 00 00 00 00 4F 0C 00 [13:44:41]RasterBufferAndPrint [13:44:41]line [13:44:41]line [13:44:41]line [13:44:41]line [13:44:41]line [13:44:41]written 0, free lines is 3155 [13:44:41]MH_Cut [13:44:41]Write to MH i2c: D1 01 00 82 23 01 77 [13:44:41]Write i2c OK [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: D1 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: D1 01 00 [13:44:41]MH_I2C_Read... [13:44:41]Read from MH i2c: D1 01 00 82 23 00 76 [13:44:41]Write to MH i2c: 01 00 00 83 23 A6 [13:44:41]Write i2c OK [13:44:41]MH_I2C_Read... [13:44:41]OFD Sender: No OFD packet to send [13:44:42]*** Cut start [13:44:42]*** Partial cut [13:44:42]*** CUTSNS_PIN = 1 [13:44:42]*** CUTSNS_PIN = 0 [13:44:42]*** Brake cut motor [13:44:43]Read from MH i2c: 01 [13:44:43]MH_I2C_Read... [13:44:43]*** Stop cut motor [13:44:43]*** Cut end [13:44:43]Read from MH i2c: 01 07 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: 01 07 00 83 23 00 00 00 00 00 FF 0F BB [13:44:43]process_action close_receipt done [13:44:43]requested_data is exist [13:44:43]produce_requested_data [13:44:43]requested_item fm.sn is exist - process it [13:44:43]wFMCommunicate request_size=4 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 11 00 00 [13:44:43]Write to MH i2c: E2 08 00 84 23 80 11 00 00 00 00 00 00 21 [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 17 00 [13:44:43]MH_I2C_Read... [13:44:43]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 35 33 38 39 90 00 7C [13:44:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [13:44:43]wFMCommunicate OK [13:44:43]requested_item fd.num is exist - process it [13:44:43]SAM_PROTO_GetFieldsCounters [13:44:43]wFMCommunicate request_size=4 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 13 00 00 [13:44:43]Write to MH i2c: E2 08 00 85 23 80 13 00 00 00 00 00 00 24 [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 62 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 62 00 85 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 11 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [13:44:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 11 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:43]wFMCommunicate OK [13:44:43]SAM_PROTO_GetFieldsCounters done [13:44:43]requested_item shift.num is exist - process it [13:44:43]requested_item shift.opened is exist - process it [13:44:43]req_shift_opened [13:44:43]FM_GetShiftState [13:44:43]SAM_PROTO_GetShiftState [13:44:43]wFMCommunicate request_size=4 [13:44:43]MH_SAM_APDU [13:44:43]CAPDU: 80 13 01 00 [13:44:43]Write to MH i2c: E2 08 00 86 23 80 13 01 00 00 00 00 00 26 [13:44:43]Write i2c OK [13:44:43]MH_I2C_Read... [13:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:43]Read from MH i2c: E2 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 0E 00 [13:44:43]MH_I2C_Read... [13:44:43]Read from MH i2c: E2 0E 00 86 23 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 75 [13:44:43]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [13:44:43]wFMCommunicate OK [13:44:43]SAM_PROTO_GetShiftState done [13:44:43]FM_GetShiftState done [13:44:43]req_shift_opened done [13:44:43]requested_item shift.open_date is exist - process it [13:44:43]req_shift_open_date [13:44:43]req_shift_open_date done [13:44:43]produce_requested_data done [13:44:43]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31761,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [13:44:43]process_action_free close_receipt [13:44:43]json_value_free [13:44:43]json_value_free done [13:44:43]process_json_proto returns [13:44:43]Send response to host [13:44:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31761,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [13:44:43]free response buf [13:44:43]execute_script done [13:44:43]execute_script returns [13:44:43]free content buf [13:44:43]Sock 9.Close socket [13:44:43]Sock 9.Thread stoped [13:44:46]OFD Sender: No OFD packet to send [13:44:51]OFD Sender: No OFD packet to send [13:44:56]OFD Sender: No OFD packet to send [13:45:01]OFD Sender: No OFD packet to send [13:45:06]OFD Sender: No OFD packet to send [13:45:11]OFD Sender: No OFD packet to send [13:45:16]OFD Sender: No OFD packet to send [13:45:21]OFD Sender: No OFD packet to send [13:45:26]OFD Sender: No OFD packet to send [13:45:31]OFD Sender: No OFD packet to send [13:45:36]OFD Sender: No OFD packet to send [13:45:41]OFD Sender: No OFD packet to send [13:45:46]OFD Sender: No OFD packet to send [13:45:51]OFD Sender: No OFD packet to send [13:45:56]OFD Sender: No OFD packet to send [13:46:01]OFD Sender: No OFD packet to send [13:46:06]OFD Sender: No OFD packet to send [13:46:11]OFD Sender: No OFD packet to send [13:46:16]OFD Sender: No OFD packet to send [13:46:21]OFD Sender: No OFD packet to send [13:46:26]OFD Sender: No OFD packet to send [13:46:31]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:27]OFD Sender: No OFD packet to send [13:47:32]OFD Sender: No OFD packet to send [13:47:37]OFD Sender: No OFD packet to send [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:22]OFD Sender: No OFD packet to send [13:50:27]OFD Sender: No OFD packet to send [13:50:32]OFD Sender: No OFD packet to send [13:50:37]OFD Sender: No OFD packet to send [13:50:42]OFD Sender: No OFD packet to send [13:50:47]OFD Sender: No OFD packet to send [13:50:52]OFD Sender: No OFD packet to send [13:50:57]OFD Sender: No OFD packet to send [13:51:02]OFD Sender: No OFD packet to send [13:51:07]OFD Sender: No OFD packet to send [13:51:12]OFD Sender: No OFD packet to send [13:51:17]OFD Sender: No OFD packet to send [13:51:22]OFD Sender: No OFD packet to send [13:51:27]OFD Sender: No OFD packet to send [13:51:32]OFD Sender: No OFD packet to send [13:51:37]OFD Sender: No OFD packet to send [13:51:42]OFD Sender: No OFD packet to send [13:51:47]OFD Sender: No OFD packet to send [13:51:52]OFD Sender: No OFD packet to send [13:51:57]OFD Sender: No OFD packet to send [13:52:02]OFD Sender: No OFD packet to send [13:52:07]OFD Sender: No OFD packet to send [13:52:12]OFD Sender: No OFD packet to send [13:52:17]OFD Sender: No OFD packet to send [13:52:22]OFD Sender: No OFD packet to send [13:52:27]OFD Sender: No OFD packet to send [13:52:32]OFD Sender: No OFD packet to send [13:52:37]OFD Sender: No OFD packet to send [13:52:42]OFD Sender: No OFD packet to send [13:52:47]OFD Sender: No OFD packet to send [13:52:52]OFD Sender: No OFD packet to send [13:52:57]OFD Sender: No OFD packet to send [13:53:02]OFD Sender: No OFD packet to send [13:53:07]OFD Sender: No OFD packet to send [13:53:12]OFD Sender: No OFD packet to send [13:53:17]OFD Sender: No OFD packet to send [13:53:22]OFD Sender: No OFD packet to send [13:53:27]OFD Sender: No OFD packet to send [13:53:32]OFD Sender: No OFD packet to send [13:53:37]OFD Sender: No OFD packet to send [13:53:42]OFD Sender: No OFD packet to send [13:53:47]OFD Sender: No OFD packet to send [13:53:52]OFD Sender: No OFD packet to send [13:53:57]OFD Sender: No OFD packet to send [13:54:02]OFD Sender: No OFD packet to send [13:54:07]OFD Sender: No OFD packet to send [13:54:12]OFD Sender: No OFD packet to send [13:54:17]OFD Sender: No OFD packet to send [13:54:22]OFD Sender: No OFD packet to send [13:54:27]OFD Sender: No OFD packet to send [13:54:32]OFD Sender: No OFD packet to send [13:54:37]OFD Sender: No OFD packet to send [13:54:42]OFD Sender: No OFD packet to send [13:54:47]OFD Sender: No OFD packet to send [13:54:52]OFD Sender: No OFD packet to send [13:54:57]OFD Sender: No OFD packet to send [13:55:02]OFD Sender: No OFD packet to send [13:55:07]OFD Sender: No OFD packet to send [13:55:12]OFD Sender: No OFD packet to send [13:55:17]OFD Sender: No OFD packet to send [13:55:22]OFD Sender: No OFD packet to send [13:55:27]OFD Sender: No OFD packet to send [13:55:32]OFD Sender: No OFD packet to send [13:55:37]OFD Sender: No OFD packet to send [13:55:42]OFD Sender: No OFD packet to send [13:55:47]OFD Sender: No OFD packet to send [13:55:52]OFD Sender: No OFD packet to send [13:55:57]OFD Sender: No OFD packet to send [13:56:02]OFD Sender: No OFD packet to send [13:56:07]OFD Sender: No OFD packet to send [13:56:12]OFD Sender: No OFD packet to send [13:56:17]OFD Sender: No OFD packet to send [13:56:22]OFD Sender: No OFD packet to send [13:56:27]OFD Sender: No OFD packet to send [13:56:32]OFD Sender: No OFD packet to send [13:56:37]OFD Sender: No OFD packet to send [13:56:42]OFD Sender: No OFD packet to send [13:56:47]OFD Sender: No OFD packet to send [13:56:52]OFD Sender: No OFD packet to send [13:56:57]OFD Sender: No OFD packet to send [13:57:02]OFD Sender: No OFD packet to send [13:57:07]OFD Sender: No OFD packet to send [13:57:12]OFD Sender: No OFD packet to send [13:57:17]OFD Sender: No OFD packet to send [13:57:22]OFD Sender: No OFD packet to send [13:57:27]OFD Sender: No OFD packet to send [13:57:32]OFD Sender: No OFD packet to send [13:57:37]OFD Sender: No OFD packet to send [13:57:42]OFD Sender: No OFD packet to send [13:57:47]OFD Sender: No OFD packet to send [13:57:52]OFD Sender: No OFD packet to send [13:57:57]OFD Sender: No OFD packet to send [13:58:02]OFD Sender: No OFD packet to send [13:58:07]OFD Sender: No OFD packet to send [13:58:12]OFD Sender: No OFD packet to send [13:58:17]OFD Sender: No OFD packet to send [13:58:22]OFD Sender: No OFD packet to send [13:58:27]OFD Sender: No OFD packet to send [13:58:32]OFD Sender: No OFD packet to send [13:58:37]OFD Sender: No OFD packet to send [13:58:42]OFD Sender: No OFD packet to send [13:58:47]OFD Sender: No OFD packet to send [13:58:52]OFD Sender: No OFD packet to send [13:58:57]OFD Sender: No OFD packet to send [13:59:02]OFD Sender: No OFD packet to send [13:59:07]OFD Sender: No OFD packet to send [13:59:12]OFD Sender: No OFD packet to send [13:59:17]OFD Sender: No OFD packet to send [13:59:22]OFD Sender: No OFD packet to send [13:59:27]OFD Sender: No OFD packet to send [13:59:32]OFD Sender: No OFD packet to send [13:59:37]OFD Sender: No OFD packet to send [13:59:42]OFD Sender: No OFD packet to send [13:59:47]OFD Sender: No OFD packet to send [13:59:52]OFD Sender: No OFD packet to send [13:59:57]OFD Sender: No OFD packet to send [14:00:02]OFD Sender: No OFD packet to send [14:00:07]OFD Sender: No OFD packet to send [14:00:12]OFD Sender: No OFD packet to send [14:00:17]OFD Sender: No OFD packet to send [14:00:22]OFD Sender: No OFD packet to send [14:00:27]OFD Sender: No OFD packet to send [14:00:32]OFD Sender: No OFD packet to send [14:00:37]OFD Sender: No OFD packet to send [14:00:42]OFD Sender: No OFD packet to send [14:00:47]OFD Sender: No OFD packet to send [14:00:52]OFD Sender: No OFD packet to send [14:00:57]OFD Sender: No OFD packet to send [14:01:02]OFD Sender: No OFD packet to send [14:01:07]OFD Sender: No OFD packet to send [14:01:12]OFD Sender: No OFD packet to send [14:01:17]OFD Sender: No OFD packet to send [14:01:22]OFD Sender: No OFD packet to send [14:01:27]OFD Sender: No OFD packet to send [14:01:32]OFD Sender: No OFD packet to send [14:01:37]OFD Sender: No OFD packet to send [14:01:42]OFD Sender: No OFD packet to send [14:01:47]OFD Sender: No OFD packet to send [14:01:52]OFD Sender: No OFD packet to send [14:01:57]OFD Sender: No OFD packet to send [14:02:02]OFD Sender: No OFD packet to send [14:02:07]OFD Sender: No OFD packet to send [14:02:12]OFD Sender: No OFD packet to send [14:02:17]OFD Sender: No OFD packet to send [14:02:22]OFD Sender: No OFD packet to send [14:02:27]OFD Sender: No OFD packet to send [14:02:32]OFD Sender: No OFD packet to send [14:02:37]OFD Sender: No OFD packet to send [14:02:42]OFD Sender: No OFD packet to send [14:02:47]OFD Sender: No OFD packet to send [14:02:52]OFD Sender: No OFD packet to send [14:02:57]OFD Sender: No OFD packet to send [14:03:02]OFD Sender: No OFD packet to send [14:03:07]OFD Sender: No OFD packet to send [14:03:12]OFD Sender: No OFD packet to send [14:03:17]OFD Sender: No OFD packet to send [14:03:22]OFD Sender: No OFD packet to send [14:03:27]OFD Sender: No OFD packet to send [14:03:32]OFD Sender: No OFD packet to send [14:03:37]OFD Sender: No OFD packet to send [14:03:42]OFD Sender: No OFD packet to send [14:03:47]OFD Sender: No OFD packet to send [14:03: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:13]OFD Sender: No OFD packet to send [14:08:18]OFD Sender: No OFD packet to send [14:08:23]OFD Sender: No OFD packet to send [14:08:28]OFD Sender: No OFD packet to send [14:08:33]OFD Sender: No OFD packet to send [14:08:38]OFD Sender: No OFD packet to send [14:08:43]OFD Sender: No OFD packet to send [14:08:48]OFD Sender: No OFD packet to send [14:08:53]OFD Sender: No OFD packet to send [14:08:58]OFD Sender: No OFD packet to send [14:09:03]OFD Sender: No OFD packet to send [14:09:08]OFD Sender: No OFD packet to send [14:09:13]OFD Sender: No OFD packet to send [14:09:18]OFD Sender: No OFD packet to send [14:09:23]OFD Sender: No OFD packet to send [14:09:28]OFD Sender: No OFD packet to send [14:09:33]OFD Sender: No OFD packet to send [14:09:38]OFD Sender: No OFD packet to send [14:09:43]OFD Sender: No OFD packet to send [14:09:48]OFD Sender: No OFD packet to send [14:09:53]OFD Sender: No OFD packet to send [14:09:58]OFD Sender: No OFD packet to send [14:10:03]OFD Sender: No OFD packet to send [14:10:08]OFD Sender: No OFD packet to send [14:10:13]OFD Sender: No OFD packet to send [14:10:18]OFD Sender: No OFD packet to send [14:10:23]OFD Sender: No OFD packet to send [14:10:28]OFD Sender: No OFD packet to send [14:10:33]OFD Sender: No OFD packet to send [14:10:38]OFD Sender: No OFD packet to send [14:10:43]OFD Sender: No OFD packet to send [14:10:48]OFD Sender: No OFD packet to send [14:10:53]OFD Sender: No OFD packet to send [14:10:58]OFD Sender: No OFD packet to send [14:11:03]OFD Sender: No OFD packet to send [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:28]OFD Sender: No OFD packet to send [14:11:33]OFD Sender: No OFD packet to send [14:11:38]OFD Sender: No OFD packet to send [14:11:43]OFD Sender: No OFD packet to send [14:11:48]OFD Sender: No OFD packet to send [14:11:53]OFD Sender: No OFD packet to send [14:11:58]OFD Sender: No OFD packet to send [14:12:03]OFD Sender: No OFD packet to send [14:12:08]OFD Sender: No OFD packet to send [14:12:13]OFD Sender: No OFD packet to send [14:12:18]OFD Sender: No OFD packet to send [14:12:23]OFD Sender: No OFD packet to send [14:12:28]OFD Sender: No OFD packet to send [14:12:33]OFD Sender: No OFD packet to send [14:12:38]OFD Sender: No OFD packet to send [14:12:43]OFD Sender: No OFD packet to send [14:12:48]OFD Sender: No OFD packet to send [14:12:53]OFD Sender: No OFD packet to send [14:12:58]OFD Sender: No OFD packet to send [14:13:03]OFD Sender: No OFD packet to send [14:13:08]OFD Sender: No OFD packet to send [14:13:13]OFD Sender: No OFD packet to send [14:13:18]OFD Sender: No OFD packet to send [14:13:23]OFD Sender: No OFD packet to send [14:13:28]OFD Sender: No OFD packet to send [14:13:33]OFD Sender: No OFD packet to send [14:13:38]OFD Sender: No OFD packet to send [14:13:43]OFD Sender: No OFD packet to send [14:13:48]OFD Sender: No OFD packet to send [14:13:53]OFD Sender: No OFD packet to send [14:13:58]OFD Sender: No OFD packet to send [14:14:03]OFD Sender: No OFD packet to send [14:14:08]OFD Sender: No OFD packet to send [14:14:13]OFD Sender: No OFD packet to send [14:14:18]OFD Sender: No OFD packet to send [14:14:23]OFD Sender: No OFD packet to send [14:14:28]OFD Sender: No OFD packet to send [14:14:33]OFD Sender: No OFD packet to send [14:14:38]OFD Sender: No OFD packet to send [14:14:43]OFD Sender: No OFD packet to send [14:14:48]OFD Sender: No OFD packet to send [14:14:53]OFD Sender: No OFD packet to send [14:14:58]OFD Sender: No OFD packet to send [14:15:03]OFD Sender: No OFD packet to send [14:15:08]OFD Sender: No OFD packet to send [14:15:13]OFD Sender: No OFD packet to send [14:15:18]OFD Sender: No OFD packet to send [14:15:23]OFD Sender: No OFD packet to send [14:15:28]OFD Sender: No OFD packet to send [14:15:33]OFD Sender: No OFD packet to send [14:15:38]OFD Sender: No OFD packet to send [14:15:43]OFD Sender: No OFD packet to send [14:15:48]OFD Sender: No OFD packet to send [14:15:53]OFD Sender: No OFD packet to send [14:15:58]OFD Sender: No OFD packet to send [14:16:03]OFD Sender: No OFD packet to send [14:16:08]OFD Sender: No OFD packet to send [14:16:13]OFD Sender: No OFD packet to send [14:16:18]OFD Sender: No OFD packet to send [14:16:23]OFD Sender: No OFD packet to send [14:16:28]OFD Sender: No OFD packet to send [14:16:33]OFD Sender: No OFD packet to send [14:16:38]OFD Sender: No OFD packet to send [14:16:43]OFD Sender: No OFD packet to send [14:16:48]OFD Sender: No OFD packet to send [14:16:53]OFD Sender: No OFD packet to send [14:16:58]OFD Sender: No OFD packet to send [14:17:03]OFD Sender: No OFD packet to send [14:17:08]OFD Sender: No OFD packet to send [14:17:13]OFD Sender: No OFD packet to send [14:17:18]OFD Sender: No OFD packet to send [14:17:23]OFD Sender: No OFD packet to send [14:17:28]OFD Sender: No OFD packet to send [14:17:33]OFD Sender: No OFD packet to send [14:17:38]OFD Sender: No OFD packet to send [14:17:43]OFD Sender: No OFD packet to send [14:17:48]OFD Sender: No OFD packet to send [14:17:53]OFD Sender: No OFD packet to send [14:17:58]OFD Sender: No OFD packet to send [14:18:03]OFD Sender: No OFD packet to send [14:18:08]OFD Sender: No OFD packet to send [14:18:13]OFD Sender: No OFD packet to send [14:18:18]OFD Sender: No OFD packet to send [14:18:23]OFD Sender: No OFD packet to send [14:18:28]OFD Sender: No OFD packet to send [14:18:33]OFD Sender: No OFD packet to send [14:18:38]OFD Sender: No OFD packet to send [14:18:43]OFD Sender: No OFD packet to send [14:18:48]OFD Sender: No OFD packet to send [14:18:53]OFD Sender: No OFD packet to send [14:18:58]OFD Sender: No OFD packet to send [14:19:03]OFD Sender: No OFD packet to send [14:19:08]OFD Sender: No OFD packet to send [14:19:13]OFD Sender: No OFD packet to send [14:19:18]OFD Sender: No OFD packet to send [14:19:23]OFD Sender: No OFD packet to send [14:19:28]OFD Sender: No OFD packet to send [14:19:33]OFD Sender: No OFD packet to send [14:19:38]OFD Sender: No OFD packet to send [14:19:43]OFD Sender: No OFD packet to send [14:19:48]OFD Sender: No OFD packet to send [14:19:53]OFD Sender: No OFD packet to send [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]OFD Sender: No OFD packet to send [14:20:18]OFD Sender: No OFD packet to send [14:20:23]OFD Sender: No OFD packet to send [14:20:28]OFD Sender: No OFD packet to send [14:20:33]OFD Sender: No OFD packet to send [14:20:38]OFD Sender: No OFD packet to send [14:20:43]OFD Sender: No OFD packet to send [14:20:48]OFD Sender: No OFD packet to send [14:20:53]OFD Sender: No OFD packet to send [14:20:58]OFD Sender: No OFD packet to send [14:21:03]OFD Sender: No OFD packet to send [14:21:08]OFD Sender: No OFD packet to send [14:21:13]OFD Sender: No OFD packet to send [14:21:18]OFD Sender: No OFD packet to send [14:21:23]OFD Sender: No OFD packet to send [14:21:28]OFD Sender: No OFD packet to send [14:21:33]OFD Sender: No OFD packet to send [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:42]accept exits with 7 [14:22:42]New connection [14:22:42]New thread 3066821988 created [14:22:42]Thread 3066965348 joined [14:22:42]Waiting for new connection... [14:22:42] Sock 7.Parse request [14:22:42]Sock 7.Check first char [14:22:42]Sock 7.First char is OK [14:22:42]request: POST /json_proto HTTP/1.0 [14:22:42]Method: POST [14:22:42]URL: /json_proto [14:22:42]Method is POST - this is cgi request [14:22:42]url: /json_proto [14:22:42]query_string will be loaded in cgi processing [14:22:42]execute_cgi json_proto POST (null) [14:22:42]execute_cgi path=json_proto method=POST [14:22:42]POST find Content-Length [14:22:42]Host: 172.17.39.68:8080 [14:22:42]Content-Length: 655 [14:22:42]Content-Type: application/json [14:22:42] [14:22:42]POST finish read [14:22:42]Found Content-Length = 655 [14:22:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214343", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:42]execute_script... [14:22: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)214343", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:22:42]POST & json_proto [14:22:42]process_json_proto [14:22:42]json parsed OK: [14:22:42]protocol is kg_v1.0 [14:22:42]action value=close_receipt [14:22:42]process_action close_receipt [14:22:42]cmd_close_receipt [14:22:42]MH_GetDate [14:22:42]Write to MH i2c: F0 00 00 87 23 99 [14:22:42]Write i2c OK [14:22:42]MH_I2C_Read... [14:22:42]Read from MH i2c: F0 [14:22:42]MH_I2C_Read... [14:22:42]Read from MH i2c: F0 09 00 [14:22:42]MH_I2C_Read... [14:22:42]Read from MH i2c: F0 09 00 87 23 00 37 82 96 66 D6 48 95 66 70 [14:22:42]GetLastDocTimeStamp 1721137483 [14:22:42]current date 1721139767 [14:22:42]FM_GetShiftState [14:22:42]SAM_PROTO_GetShiftState [14:22:42]wFMCommunicate request_size=4 [14:22:42]MH_SAM_APDU [14:22:42]CAPDU: 80 13 01 00 [14:22:42]Write to MH i2c: E2 08 00 88 23 80 13 01 00 00 00 00 00 28 [14:22:42]Write i2c OK [14:22:42]MH_I2C_Read... [14:22:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:42]Read from MH i2c: E2 [14:22:42]MH_I2C_Read... [14:22:42]Read from MH i2c: E2 0E 00 [14:22:42]MH_I2C_Read... [14:22:42]Read from MH i2c: E2 0E 00 88 23 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 77 [14:22:42]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:22:42]wFMCommunicate OK [14:22:42]SAM_PROTO_GetShiftState done [14:22:42]FM_GetShiftState done [14:22:42]opened in 1721088399 [14:22:42]opened+sec_in_day 1721174799 [14:22:42]quantity*price = 8500 [14:22:42]sum+1 = 8501 [14:22:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 81 16.07.2024 14:22 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31762 ФПД: 58572287500331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T142247&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31762&fm=58572287500331&tin=02508201610067®Number=0000000000098025&sum=8500 0 [14:22:43]StoreToDocumentArchive [14:22:43]shift 371 fd 31762 [14:22:43]save to /storage/0371/doc_00031762 [14:22:43]save last doc name /storage/0371/doc_00031762 to /storage/kkm_last_doc_name [14:22:43]save OK [14:22:43]Clear old archive folders... [14:22:43]ProcessDocumentItem done err = 0, tmpTLVsize=294 [14:22:43]tlvbuf is 0153F270 [14:22:43]SAM_PROTO_ClearQueue [14:22:43]wFMCommunicate request_size=4 [14:22:43]MH_SAM_APDU [14:22:43]CAPDU: 80 09 00 00 [14:22:43]Write to MH i2c: E2 08 00 95 23 80 09 00 00 00 00 00 00 2A [14:22:43]Write i2c OK [14:22:43]MH_I2C_Read... [14:22:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:22:43]Read from MH i2c: E2 [14:22:43]MH_I2C_Read... [14:22:43]Read from MH i2c: E2 03 00 [14:22:43]MH_I2C_Read... [14:22:43]Read from MH i2c: E2 03 00 95 23 00 90 00 2C [14:22:43]RAPDU: 90 00 [14:22:43]wFMCommunicate OK [14:22:43]SAM_PROTO_ClearQueue done [14:22:43]KKMCreateOFDPacket [14:22:43]OFDProtocolAddRootSTLVToBuf [14:22:43]FM_MakeSignedData [14:22:43]FM_MakeSignedData [14:22:43]SAM_PROTO_SignData [14:22:43]wFMCommunicate request_size=4 [14:22:43]MH_SAM_APDU [14:22:43]CAPDU: 80 0D 01 02 [14:22:43]Write to MH i2c: E2 08 00 96 23 80 0D 01 02 00 00 00 00 32 [14:22:43]Write i2c OK [14:22:43]MH_I2C_Read... [14:22:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:22:43]Read from MH i2c: E2 [14:22:43]MH_I2C_Read... [14:22:43]Read from MH i2c: E2 03 00 [14:22:43]MH_I2C_Read... [14:22:43]Read from MH i2c: E2 03 00 96 23 00 90 00 2D [14:22:43]RAPDU: 90 00 [14:22:43]wFMCommunicate OK [14:22:43]wFMCommunicate request_size=255 [14:22:43]MH_SAM_APDU [14:22:43]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 37 82 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [14:22:43]Write to MH i2c: E2 02 01 97 23 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 37 82 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 90 [14:22:43]Write i2c OK [14:22:43]MH_I2C_Read... [14:22:43]OFD Sender: No OFD packet to send [14:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:43]Read from MH i2c: E2 [14:22:43]MH_I2C_Read... [14:22:43]Read from MH i2c: E2 03 00 [14:22:43]MH_I2C_Read... [14:22:43]Read from MH i2c: E2 03 00 97 23 00 90 00 2E [14:22:43]RAPDU: 90 00 [14:22:43]wFMCommunicate OK [14:22:43]wFMCommunicate request_size=53 [14:22:43]MH_SAM_APDU [14:22:43]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 12 7C 00 00 35 04 06 00 35 45 6C 63 E0 2B [14:22:43]Write to MH i2c: E2 38 00 98 23 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 12 7C 00 00 35 04 06 00 35 45 6C 63 E0 2B 00 00 13 [14:22:43]Write i2c OK [14:22:43]MH_I2C_Read... [14:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:22:43]Read from MH i2c: E2 [14:22:43]MH_I2C_Read... [14:22:43]Read from MH i2c: E2 03 00 [14:22:43]MH_I2C_Read... [14:22:43]Read from MH i2c: E2 03 00 98 23 00 90 00 2F [14:22:43]RAPDU: 90 00 [14:22:43]wFMCommunicate OK [14:22:43]wFMCommunicate request_size=4 [14:22:43]MH_SAM_APDU [14:22:43]CAPDU: 80 0D 03 02 [14:22:43]Write to MH i2c: E2 08 00 99 23 80 0D 03 02 00 00 00 00 37 [14:22:43]Write i2c OK [14:22:43]MH_I2C_Read... [14:22:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:22:44]Read from MH i2c: E2 [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: E2 0B 00 [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: E2 0B 00 99 23 00 41 A2 5F EB F5 2D CD 55 90 00 A9 [14:22:44]RAPDU: 41 A2 5F EB F5 2D CD 55 90 00 [14:22:44]wFMCommunicate OK [14:22:44]SAM_PROTO_SignData done [14:22:44]FM_MakeSignedData done [14:22:44]CreateOFDProtocolMessage [14:22:44]wFMCommunicate request_size=4 [14:22:44]MH_SAM_APDU [14:22:44]CAPDU: 80 11 00 00 [14:22:44]Write to MH i2c: E2 08 00 9A 23 80 11 00 00 00 00 00 00 37 [14:22:44]Write i2c OK [14:22:44]MH_I2C_Read... [14:22:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:44]Read from MH i2c: E2 [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: E2 17 00 [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: E2 17 00 9A 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 92 [14:22:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:22:44]wFMCommunicate OK [14:22:44]CreateOFDProtocolMessage done [14:22:44]OFDSenderStorePacket 31762 [14:22:44]StoreOFDPacket docnum=31762 [14:22:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 EC 71 32 01 76 48 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 37 82 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 12 7C 00 00 35 04 06 00 35 45 6C 63 E0 2B 41 A2 5F EB F5 2D CD 55 [14:22:44]CheckFolder [14:22:44]dirname=/storage/ofd_packets [14:22:44]CheckFolder done [14:22:44]ProducePacketName [14:22:44]name=ofd_packets/00031762 [14:22:44]NVStorageSaveData ofd_packets/00031762 [14:22:44]File name is /storage/ofd_packets/00031762 [14:22:44]Write 344 bytes [14:22:44]NVStorageSaveData done [14:22:44]OFDSenderStorePacket done [14:22:44]KKMCreateOFDPacket done [14:22:44]NVStorageSaveData kkm_last_timestamp [14:22:44]File name is /storage/kkm_last_timestamp [14:22:44]Write 4 bytes [14:22:44]NVStorageSaveData done [14:22:44]ExternCall_PrintAddStr [14:22:44]wPrintStart [14:22:44]Write to MH i2c: 01 00 00 9B 23 BE [14:22:44]Write i2c OK [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: 01 [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: 01 07 00 [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: 01 07 00 9B 23 00 00 00 00 00 FF 0F D3 [14:22:44]RasterBufferAndPrint [14:22:44]line Счет N : (3)214343 [14:22:44]line ИНН: 02508201610067 [14:22:44]line Контрольно-Кассовый Чек [14:22:44]line ПРОДАЖА [14:22:44]line Товар: 4600682557456 [14:22:44]line Напиток FLash up energy эн ж/б 0,5/0,45л [14:22:44]line 1.000 * 85.00 [14:22:44]line = 85.00 [14:22:44]line НДС 12% НСП 1% [14:22:44]line > о реализуемом товаре [14:22:44]line ИТОГО: 85.00 [14:22:44]line НСП 1% : 0.75 [14:22:44]line НДС 12% : 9.03 [14:22:44]line Наличными: 85.00 [14:22:44]line Безнал.: 0.00 [14:22:44]line Место: АЗС № 140 "Партнер Нефть" [14:22:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:22:44]line СНО: Общий режим [14:22:44]line Чек 81 16.07.2024 14:22 [14:22:44]line Смена: 371 ФФД: 1.0 [14:22:44]line ЗНМ: 0300000189 [14:22:44]line РНМ: 0000000000098025 [14:22:44]line Версия ККМ: 001 [14:22:44]line ФМ: 0000000000965389 [14:22:44]line ФД: 31762 [14:22:44]line ФПД: 58572287500331 [14:22:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T142247&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31762&fm=58572287500331&tin=02508201610067®Number=0000000000098025&sum=8500 [14:22:44]line 0 [14:22:44]OFD Sender: Processing packet 31762 [packets to send 6, broken 5] [14:22:44]ProducePacketName [14:22:44]name=ofd_packets/00031762 [14:22:44]OFD Sender: To server: pG, [14:22:44]CommunicateWithHost lk.salyk.kg:30040 [14:22:44]ConnectInit lk.salyk.kg [14:22:44]written 0, free lines is 4095 [14:22:44]Connected sock=10 [14:22:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 EC 71 32 01 76 48 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 37 82 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 12 7C 00 00 35 04 06 00 35 45 6C 63 E0 2B 41 A2 5F EB F5 2D CD 55 [14:22:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 43 B8 47 00 22 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 12 7C 00 00 F4 03 04 00 44 2E 96 66 B6 04 01 00 00 7C 07 6E 84 E1 9E 11 A3 [14:22:44]CommunicateWithHost err = 0 [14:22:44]CheckOFDResponse [14:22:44]1017 (14) - 77093643461234 [14:22:44]1041 (16) - 0000000000965389 [14:22:44]1040 (4) - 31762 [14:22:44]1012 (4) - 16.07.2024 08:24 [14:22:44]1206 (1) - 0 [14:22:44]OFD Sender: Remove packet 31762 [14:22:44]ProducePacketName [14:22:44]name=ofd_packets/00031762 [14:22:44]NVStorageDeleteData [14:22:44]Write to MH i2c: 01 00 00 C4 23 E7 [14:22:44]Write i2c OK [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: 01 [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: 01 07 00 [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: 01 07 00 C4 23 00 00 00 00 00 EB 0C E5 [14:22:44]RasterBufferAndPrint [14:22:44]line [14:22:44]line [14:22:44]line [14:22:44]line [14:22:44]line [14:22:44]written 0, free lines is 3314 [14:22:44]MH_Cut [14:22:44]Write to MH i2c: D1 01 00 CB 23 01 C0 [14:22:44]Write i2c OK [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: D1 [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: D1 01 00 [14:22:44]MH_I2C_Read... [14:22:44]Read from MH i2c: D1 01 00 CB 23 00 BF [14:22:44]Write to MH i2c: 01 00 00 CC 23 EF [14:22:44]Write i2c OK [14:22:44]MH_I2C_Read... [14:22:45]OFD Sender: No OFD packet to send [14:22:45]*** Cut start [14:22:45]*** Partial cut [14:22:45]*** CUTSNS_PIN = 1 [14:22:45]*** CUTSNS_PIN = 0 [14:22:45]*** Brake cut motor [14:22:46]Read from MH i2c: 01 [14:22:46]MH_I2C_Read... [14:22:46]*** Stop cut motor [14:22:46]*** Cut end [14:22:46]Read from MH i2c: 01 07 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: 01 07 00 CC 23 00 00 00 00 00 FF 0F 04 [14:22:46]process_action close_receipt done [14:22:46]requested_data is exist [14:22:46]produce_requested_data [14:22:46]requested_item fm.sn is exist - process it [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 11 00 00 [14:22:46]Write to MH i2c: E2 08 00 CD 23 80 11 00 00 00 00 00 00 6A [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 17 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 17 00 CD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C5 [14:22:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:22:46]wFMCommunicate OK [14:22:46]requested_item fd.num is exist - process it [14:22:46]SAM_PROTO_GetFieldsCounters [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 13 00 00 [14:22:46]Write to MH i2c: E2 08 00 CE 23 80 13 00 00 00 00 00 00 6D [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 62 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 62 00 CE 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 12 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [14:22: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 12 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:46]wFMCommunicate OK [14:22:46]SAM_PROTO_GetFieldsCounters done [14:22:46]requested_item shift.num is exist - process it [14:22:46]requested_item shift.opened is exist - process it [14:22:46]req_shift_opened [14:22:46]FM_GetShiftState [14:22:46]SAM_PROTO_GetShiftState [14:22:46]wFMCommunicate request_size=4 [14:22:46]MH_SAM_APDU [14:22:46]CAPDU: 80 13 01 00 [14:22:46]Write to MH i2c: E2 08 00 CF 23 80 13 01 00 00 00 00 00 6F [14:22:46]Write i2c OK [14:22:46]MH_I2C_Read... [14:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:46]Read from MH i2c: E2 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 0E 00 [14:22:46]MH_I2C_Read... [14:22:46]Read from MH i2c: E2 0E 00 CF 23 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 BE [14:22:46]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:22:46]wFMCommunicate OK [14:22:46]SAM_PROTO_GetShiftState done [14:22:46]FM_GetShiftState done [14:22:46]req_shift_opened done [14:22:46]requested_item shift.open_date is exist - process it [14:22:46]req_shift_open_date [14:22:46]req_shift_open_date done [14:22:46]produce_requested_data done [14:22:46]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31762,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:22:46]process_action_free close_receipt [14:22:46]json_value_free [14:22:46]json_value_free done [14:22:46]process_json_proto returns [14:22:46]Send response to host [14:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31762,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:22:46]free response buf [14:22:46]execute_script done [14:22:46]execute_script returns [14:22:46]free content buf [14:22:46]Sock 7.Close socket [14:22:46]Sock 7.Thread stoped [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:15]OFD Sender: No OFD packet to send [14:24:20]OFD Sender: No OFD packet to send [14:24:25]OFD Sender: No OFD packet to send [14:24:30]OFD Sender: No OFD packet to send [14:24:35]OFD Sender: No OFD packet to send [14:24:40]OFD Sender: No OFD packet to send [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]OFD Sender: No OFD packet to send [14:26:45]OFD Sender: No OFD packet to send [14:26:50]OFD Sender: No OFD packet to send [14:26:55]OFD Sender: No OFD packet to send [14:27:00]OFD Sender: No OFD packet to send [14:27:05]OFD Sender: No OFD packet to send [14:27:10]OFD Sender: No OFD packet to send [14:27:15]OFD Sender: No OFD packet to send [14:27:20]OFD Sender: No OFD packet to send [14:27:25]OFD Sender: No OFD packet to send [14:27:30]OFD Sender: No OFD packet to send [14:27:35]OFD Sender: No OFD packet to send [14:27:40]OFD Sender: No OFD packet to send [14:27:45]OFD Sender: No OFD packet to send [14:27:50]OFD Sender: No OFD packet to send [14:27:55]OFD Sender: No OFD packet to send [14:28:00]OFD Sender: No OFD packet to send [14:28:05]OFD Sender: No OFD packet to send [14:28:10]OFD Sender: No OFD packet to send [14:28:15]OFD Sender: No OFD packet to send [14:28:16]accept exits with 9 [14:28:16]New connection [14:28:16]New thread 3066965348 created [14:28:16]Thread 3066821988 joined [14:28:16]Waiting for new connection... [14:28:16] Sock 9.Parse request [14:28:16]Sock 9.Check first char [14:28:16]Sock 9.First char is OK [14:28:16]request: POST /json_proto HTTP/1.0 [14:28:16]Method: POST [14:28:16]URL: /json_proto [14:28:16]Method is POST - this is cgi request [14:28:16]url: /json_proto [14:28:16]query_string will be loaded in cgi processing [14:28:16]execute_cgi json_proto POST (null) [14:28:16]execute_cgi path=json_proto method=POST [14:28:16]POST find Content-Length [14:28:16]Host: 172.17.39.68:8080 [14:28:16]Content-Length: 923 [14:28:16]Content-Type: application/json [14:28:16] [14:28:16]POST finish read [14:28:16]Found Content-Length = 923 [14:28:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214344", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:16]execute_script... [14:28:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214344", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:16]POST & json_proto [14:28:16]process_json_proto [14:28:16]json parsed OK: [14:28:16]protocol is kg_v1.0 [14:28:16]action value=close_receipt [14:28:16]process_action close_receipt [14:28:16]cmd_close_receipt [14:28:16]MH_GetDate [14:28:16]Write to MH i2c: F0 00 00 D0 23 E2 [14:28:16]Write i2c OK [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: F0 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: F0 09 00 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: F0 09 00 D0 23 00 85 83 96 66 D6 48 95 66 08 [14:28:16]GetLastDocTimeStamp 1721139767 [14:28:16]current date 1721140101 [14:28:16]FM_GetShiftState [14:28:16]SAM_PROTO_GetShiftState [14:28:16]wFMCommunicate request_size=4 [14:28:16]MH_SAM_APDU [14:28:16]CAPDU: 80 13 01 00 [14:28:16]Write to MH i2c: E2 08 00 D1 23 80 13 01 00 00 00 00 00 71 [14:28:16]Write i2c OK [14:28:16]MH_I2C_Read... [14:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:16]Read from MH i2c: E2 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: E2 0E 00 [14:28:16]MH_I2C_Read... [14:28:16]Read from MH i2c: E2 0E 00 D1 23 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C0 [14:28:16]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:28:16]wFMCommunicate OK [14:28:16]SAM_PROTO_GetShiftState done [14:28:16]FM_GetShiftState done [14:28:16]opened in 1721088399 [14:28:16]opened+sec_in_day 1721174799 [14:28:16]quantity*price = 12500 [14:28:16]sum+1 = 12501 [14:28:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 2.000 * 140.00 = 280.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.59 НДС 12% : 43.00 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 82 16.07.2024 14:28 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31763 ФПД: 105441663360706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T142821&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31763&fm=105441663360706&tin=02508201610067®Number=0000000000098025&sum=40500 0 [14:28:17]StoreToDocumentArchive [14:28:17]shift 371 fd 31763 [14:28:17]save to /storage/0371/doc_00031763 [14:28:17]save last doc name /storage/0371/doc_00031763 to /storage/kkm_last_doc_name [14:28:17]save OK [14:28:17]Clear old archive folders... [14:28:17]ProcessDocumentItem done err = 0, tmpTLVsize=397 [14:28:17]tlvbuf is 01526E60 [14:28:17]SAM_PROTO_ClearQueue [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 09 00 00 [14:28:17]Write to MH i2c: E2 08 00 DE 23 80 09 00 00 00 00 00 00 73 [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 DE 23 00 90 00 75 [14:28:17]RAPDU: 90 00 [14:28:17]wFMCommunicate OK [14:28:17]SAM_PROTO_ClearQueue done [14:28:17]KKMCreateOFDPacket [14:28:17]OFDProtocolAddRootSTLVToBuf [14:28:17]FM_MakeSignedData [14:28:17]FM_MakeSignedData [14:28:17]SAM_PROTO_SignData [14:28:17]wFMCommunicate request_size=4 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 0D 01 02 [14:28:17]Write to MH i2c: E2 08 00 DF 23 80 0D 01 02 00 00 00 00 7B [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 DF 23 00 90 00 76 [14:28:17]RAPDU: 90 00 [14:28:17]wFMCommunicate OK [14:28:17]wFMCommunicate request_size=255 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 34 9E 00 00 00 00 EB 03 26 00 [14:28:17]Write to MH i2c: E2 02 01 E0 23 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 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 34 9E 00 00 00 00 EB 03 26 00 00 00 37 [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:17]Read from MH i2c: E2 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 [14:28:17]MH_I2C_Read... [14:28:17]Read from MH i2c: E2 03 00 E0 23 00 90 00 77 [14:28:17]RAPDU: 90 00 [14:28:17]wFMCommunicate OK [14:28:17]wFMCommunicate request_size=156 [14:28:17]MH_SAM_APDU [14:28:17]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 10 00 00 00 00 07 04 06 00 34 9E 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 85 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 13 7C 00 00 35 04 06 00 5F E6 0C E3 9E C2 [14:28:17]Write to MH i2c: E2 9F 00 E1 23 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 10 00 00 00 00 07 04 06 00 34 9E 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 85 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 13 7C 00 00 35 04 06 00 5F E6 0C E3 9E C2 00 00 DF [14:28:17]Write i2c OK [14:28:17]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 03 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 03 00 E1 23 00 90 00 78 [14:28:18]RAPDU: 90 00 [14:28:18]wFMCommunicate OK [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 0D 03 02 [14:28:18]Write to MH i2c: E2 08 00 E2 23 80 0D 03 02 00 00 00 00 80 [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 0B 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 0B 00 E2 23 00 AE F8 F0 95 93 B1 9F 03 90 00 92 [14:28:18]RAPDU: AE F8 F0 95 93 B1 9F 03 90 00 [14:28:18]wFMCommunicate OK [14:28:18]SAM_PROTO_SignData done [14:28:18]FM_MakeSignedData done [14:28:18]CreateOFDProtocolMessage [14:28:18]wFMCommunicate request_size=4 [14:28:18]MH_SAM_APDU [14:28:18]CAPDU: 80 11 00 00 [14:28:18]Write to MH i2c: E2 08 00 E3 23 80 11 00 00 00 00 00 00 80 [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:18]Read from MH i2c: E2 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 17 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: E2 17 00 E3 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DB [14:28:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:28:18]wFMCommunicate OK [14:28:18]CreateOFDProtocolMessage done [14:28:18]OFDSenderStorePacket 31763 [14:28:18]StoreOFDPacket docnum=31763 [14:28:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A1 01 00 00 C0 AA 99 01 40 CD 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 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 10 00 00 00 00 07 04 06 00 34 9E 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 85 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 13 7C 00 00 35 04 06 00 5F E6 0C E3 9E C2 AE F8 F0 95 93 B1 9F 03 [14:28:18]CheckFolder [14:28:18]dirname=/storage/ofd_packets [14:28:18]CheckFolder done [14:28:18]ProducePacketName [14:28:18]name=ofd_packets/00031763 [14:28:18]NVStorageSaveData ofd_packets/00031763 [14:28:18]File name is /storage/ofd_packets/00031763 [14:28:18]Write 447 bytes [14:28:18]NVStorageSaveData done [14:28:18]OFDSenderStorePacket done [14:28:18]KKMCreateOFDPacket done [14:28:18]NVStorageSaveData kkm_last_timestamp [14:28:18]File name is /storage/kkm_last_timestamp [14:28:18]Write 4 bytes [14:28:18]NVStorageSaveData done [14:28:18]ExternCall_PrintAddStr [14:28:18]wPrintStart [14:28:18]Write to MH i2c: 01 00 00 E4 23 07 [14:28:18]OFD Sender: Processing packet 31763 [packets to send 6, broken 5] [14:28:18]ProducePacketName [14:28:18]name=ofd_packets/00031763 [14:28:18]OFD Sender: To server: pG, [14:28:18]CommunicateWithHost lk.salyk.kg:30040 [14:28:18]ConnectInit lk.salyk.kg [14:28:18]Write i2c OK [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 [14:28:18]MH_I2C_Read... [14:28:18]Read from MH i2c: 01 07 00 E4 23 00 00 00 00 00 FF 0F 1C [14:28:18]RasterBufferAndPrint [14:28:18]line Счет N : (3)214344 [14:28:18]line ИНН: 02508201610067 [14:28:18]line Контрольно-Кассовый Чек [14:28:18]line ПРОДАЖА [14:28:18]line Товар: 4870202521230 [14:28:18]line Напиток MAXI чай 1,2 черн.лимон [14:28:18]line 1.000 * 125.00 [14:28:18]line = 125.00 [14:28:18]line НДС 12% НСП 1% [14:28:18]line > о реализуемом товаре [14:28:18]line Товар: 48743587 [14:28:18]line Сигареты Winston XStyle Silver [14:28:18]line 2.000 * 140.00 [14:28:18]line = 280.00 [14:28:18]line НДС 12% НСП 1% [14:28:18]line > о реализуемом товаре [14:28:18]line ИТОГО: 405.00 [14:28:18]line НСП 1% : 3.59 [14:28:18]line НДС 12% : 43.00 [14:28:18]line Наличными: 405.00 [14:28:18]line Безнал.: 0.00 [14:28:18]line Место: АЗС № 140 "Партнер Нефть" [14:28:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:28:18]line СНО: Общий режим [14:28:18]line Чек 82 16.07.2024 14:28 [14:28:18]line Смена: 371 ФФД: 1.0 [14:28:18]line ЗНМ: 0300000189 [14:28:18]line РНМ: 0000000000098025 [14:28:18]line Версия ККМ: 001 [14:28:18]line ФМ: 0000000000965389 [14:28:18]line ФД: 31763 [14:28:18]line ФПД: 105441663360706 [14:28:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T142821&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31763&fm=105441663360706&tin=02508201610067®Number=0000000000098025&sum=40500 [14:28:18]line 0 [14:28:18]written 0, free lines is 4095 [14:28:18]Connected sock=10 [14:28:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A1 01 00 00 C0 AA 99 01 40 CD 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 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 10 00 00 00 00 07 04 06 00 34 9E 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 85 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 13 7C 00 00 35 04 06 00 5F E6 0C E3 9E C2 AE F8 F0 95 93 B1 9F 03 [14:28:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 3F 40 47 00 71 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 13 7C 00 00 F4 03 04 00 92 2F 96 66 B6 04 01 00 00 2D DD 89 1C AE 8A 7F 71 [14:28:18]CommunicateWithHost err = 0 [14:28:18]CheckOFDResponse [14:28:18]1017 (14) - 77093643461234 [14:28:18]1041 (16) - 0000000000965389 [14:28:18]1040 (4) - 31763 [14:28:18]1012 (4) - 16.07.2024 08:30 [14:28:18]1206 (1) - 0 [14:28:18]OFD Sender: Remove packet 31763 [14:28:18]ProducePacketName [14:28:18]name=ofd_packets/00031763 [14:28:18]NVStorageDeleteData [14:28:19]Write to MH i2c: 01 00 00 14 24 38 [14:28:19]Write i2c OK [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: 01 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: 01 07 00 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: 01 07 00 14 24 00 00 00 00 00 7B 0C C6 [14:28:19]RasterBufferAndPrint [14:28:19]line [14:28:19]line [14:28:19]line [14:28:19]line [14:28:19]line [14:28:19]written 0, free lines is 3201 [14:28:19]MH_Cut [14:28:19]Write to MH i2c: D1 01 00 1B 24 01 11 [14:28:19]Write i2c OK [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: D1 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: D1 01 00 [14:28:19]MH_I2C_Read... [14:28:19]Read from MH i2c: D1 01 00 1B 24 00 10 [14:28:19]Write to MH i2c: 01 00 00 1C 24 40 [14:28:19]Write i2c OK [14:28:19]MH_I2C_Read... [14:28:19]OFD Sender: No OFD packet to send [14:28:19]*** Cut start [14:28:19]*** Partial cut [14:28:19]*** CUTSNS_PIN = 1 [14:28:19]*** CUTSNS_PIN = 0 [14:28:20]*** Brake cut motor [14:28:20]Read from MH i2c: 01 [14:28:20]MH_I2C_Read... [14:28:20]*** Stop cut motor [14:28:20]*** Cut end [14:28:20]Read from MH i2c: 01 07 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: 01 07 00 1C 24 00 00 00 00 00 FF 0F 55 [14:28:20]process_action close_receipt done [14:28:20]requested_data is exist [14:28:20]produce_requested_data [14:28:20]requested_item fm.sn is exist - process it [14:28:20]wFMCommunicate request_size=4 [14:28:20]MH_SAM_APDU [14:28:20]CAPDU: 80 11 00 00 [14:28:20]Write to MH i2c: E2 08 00 1D 24 80 11 00 00 00 00 00 00 BB [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:20]Read from MH i2c: E2 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 17 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 17 00 1D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 16 [14:28:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:28:20]wFMCommunicate OK [14:28:20]requested_item fd.num is exist - process it [14:28:20]SAM_PROTO_GetFieldsCounters [14:28:20]wFMCommunicate request_size=4 [14:28:20]MH_SAM_APDU [14:28:20]CAPDU: 80 13 00 00 [14:28:20]Write to MH i2c: E2 08 00 1E 24 80 13 00 00 00 00 00 00 BE [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:20]Read from MH i2c: E2 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 62 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 62 00 1E 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 13 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [14:28:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 13 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:20]wFMCommunicate OK [14:28:20]SAM_PROTO_GetFieldsCounters done [14:28:20]requested_item shift.num is exist - process it [14:28:20]requested_item shift.opened is exist - process it [14:28:20]req_shift_opened [14:28:20]FM_GetShiftState [14:28:20]SAM_PROTO_GetShiftState [14:28:20]wFMCommunicate request_size=4 [14:28:20]MH_SAM_APDU [14:28:20]CAPDU: 80 13 01 00 [14:28:20]Write to MH i2c: E2 08 00 1F 24 80 13 01 00 00 00 00 00 C0 [14:28:20]Write i2c OK [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 [14:28:20]MH_I2C_Read... [14:28:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:20]Read from MH i2c: E2 0E 00 [14:28:20]MH_I2C_Read... [14:28:20]Read from MH i2c: E2 0E 00 1F 24 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 0F [14:28:20]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:28:20]wFMCommunicate OK [14:28:20]SAM_PROTO_GetShiftState done [14:28:20]FM_GetShiftState done [14:28:20]req_shift_opened done [14:28:20]requested_item shift.open_date is exist - process it [14:28:20]req_shift_open_date [14:28:20]req_shift_open_date done [14:28:20]produce_requested_data done [14:28:20]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31763,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:28:20]process_action_free close_receipt [14:28:20]json_value_free [14:28:20]json_value_free done [14:28:20]process_json_proto returns [14:28:20]Send response to host [14:28:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31763,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:28:20]free response buf [14:28:20]execute_script done [14:28:20]execute_script returns [14:28:20]free content buf [14:28:20]Sock 9.Close socket [14:28:20]Sock 9.Thread stoped [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:11]accept exits with 7 [14:29:11]New connection [14:29:11]New thread 3066821988 created [14:29:11]Thread 3066965348 joined [14:29:11]Waiting for new connection... [14:29:11] Sock 7.Parse request [14:29:11]Sock 7.Check first char [14:29:11]Sock 7.First char is OK [14:29:11]request: POST /json_proto HTTP/1.0 [14:29:11]Method: POST [14:29:11]URL: /json_proto [14:29:11]Method is POST - this is cgi request [14:29:11]url: /json_proto [14:29:11]query_string will be loaded in cgi processing [14:29:11]execute_cgi json_proto POST (null) [14:29:11]execute_cgi path=json_proto method=POST [14:29:11]POST find Content-Length [14:29:11]Host: 172.17.39.68:8080 [14:29:11]Content-Length: 723 [14:29:11]Content-Type: application/json [14:29:11] [14:29:11]POST finish read [14:29:11]Found Content-Length = 723 [14:29:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214345", "tax_sys" : 0, "items" : [ { "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 4.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" ] } } [14:29:11]execute_script... [14:29: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)214345", "tax_sys" : 0, "items" : [ { "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 4.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" ] } } [14:29:11]POST & json_proto [14:29:11]process_json_proto [14:29:11]json parsed OK: [14:29:11]protocol is kg_v1.0 [14:29:11]action value=close_receipt [14:29:11]process_action close_receipt [14:29:11]cmd_close_receipt [14:29:11]MH_GetDate [14:29:11]Write to MH i2c: F0 00 00 20 24 33 [14:29:11]Write i2c OK [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: F0 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: F0 09 00 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: F0 09 00 20 24 00 BC 83 96 66 D6 48 95 66 90 [14:29:11]GetLastDocTimeStamp 1721140101 [14:29:11]current date 1721140156 [14:29:11]FM_GetShiftState [14:29:11]SAM_PROTO_GetShiftState [14:29:11]wFMCommunicate request_size=4 [14:29:11]MH_SAM_APDU [14:29:11]CAPDU: 80 13 01 00 [14:29:11]Write to MH i2c: E2 08 00 21 24 80 13 01 00 00 00 00 00 C2 [14:29:11]Write i2c OK [14:29:11]MH_I2C_Read... [14:29:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:11]Read from MH i2c: E2 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: E2 0E 00 [14:29:11]MH_I2C_Read... [14:29:11]Read from MH i2c: E2 0E 00 21 24 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 11 [14:29:11]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:29:11]wFMCommunicate OK [14:29:11]SAM_PROTO_GetShiftState done [14:29:11]FM_GetShiftState done [14:29:11]opened in 1721088399 [14:29:11]opened+sec_in_day 1721174799 [14:29:11]quantity*price = 28000 [14:29:11]sum+1 = 28001 [14:29:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 83 16.07.2024 14:29 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31764 ФПД: 83986368026936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T142916&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31764&fm=83986368026936&tin=02508201610067®Number=0000000000098025&sum=28000 0 [14:29:12]StoreToDocumentArchive [14:29:12]shift 371 fd 31764 [14:29:12]save to /storage/0371/doc_00031764 [14:29:12]save last doc name /storage/0371/doc_00031764 to /storage/kkm_last_doc_name [14:29:12]save OK [14:29:12]Clear old archive folders... [14:29:12]ProcessDocumentItem done err = 0, tmpTLVsize=300 [14:29:12]tlvbuf is B6F58920 [14:29:12]SAM_PROTO_ClearQueue [14:29:12]wFMCommunicate request_size=4 [14:29:12]MH_SAM_APDU [14:29:12]CAPDU: 80 09 00 00 [14:29:12]Write to MH i2c: E2 08 00 2E 24 80 09 00 00 00 00 00 00 C4 [14:29:12]Write i2c OK [14:29:12]MH_I2C_Read... [14:29:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:12]Read from MH i2c: E2 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 03 00 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 03 00 2E 24 00 90 00 C6 [14:29:12]RAPDU: 90 00 [14:29:12]wFMCommunicate OK [14:29:12]SAM_PROTO_ClearQueue done [14:29:12]KKMCreateOFDPacket [14:29:12]OFDProtocolAddRootSTLVToBuf [14:29:12]FM_MakeSignedData [14:29:12]FM_MakeSignedData [14:29:12]SAM_PROTO_SignData [14:29:12]wFMCommunicate request_size=4 [14:29:12]MH_SAM_APDU [14:29:12]CAPDU: 80 0D 01 02 [14:29:12]Write to MH i2c: E2 08 00 2F 24 80 0D 01 02 00 00 00 00 CC [14:29:12]Write i2c OK [14:29:12]MH_I2C_Read... [14:29:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:12]Read from MH i2c: E2 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 03 00 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 03 00 2F 24 00 90 00 C7 [14:29:12]RAPDU: 90 00 [14:29:12]wFMCommunicate OK [14:29:12]wFMCommunicate request_size=255 [14:29:12]MH_SAM_APDU [14:29:12]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 1B 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 53 00 00 00 F4 03 04 00 BC 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 [14:29:12]Write to MH i2c: E2 02 01 30 24 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 1B 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 53 00 00 00 F4 03 04 00 BC 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 00 00 87 [14:29:12]Write i2c OK [14:29:12]MH_I2C_Read... [14:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:12]Read from MH i2c: E2 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 03 00 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 03 00 30 24 00 90 00 C8 [14:29:12]RAPDU: 90 00 [14:29:12]wFMCommunicate OK [14:29:12]wFMCommunicate request_size=59 [14:29:12]MH_SAM_APDU [14:29:12]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 14 7C 00 00 35 04 06 00 4C 62 99 A1 D9 38 [14:29:12]Write to MH i2c: E2 3E 00 31 24 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 14 7C 00 00 35 04 06 00 4C 62 99 A1 D9 38 00 00 80 [14:29:12]Write i2c OK [14:29:12]MH_I2C_Read... [14:29:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:12]Read from MH i2c: E2 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 03 00 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 03 00 31 24 00 90 00 C9 [14:29:12]RAPDU: 90 00 [14:29:12]wFMCommunicate OK [14:29:12]wFMCommunicate request_size=4 [14:29:12]MH_SAM_APDU [14:29:12]CAPDU: 80 0D 03 02 [14:29:12]Write to MH i2c: E2 08 00 32 24 80 0D 03 02 00 00 00 00 D1 [14:29:12]Write i2c OK [14:29:12]MH_I2C_Read... [14:29:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:12]Read from MH i2c: E2 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 0B 00 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 0B 00 32 24 00 23 3A 17 76 21 32 F6 0C 90 00 11 [14:29:12]RAPDU: 23 3A 17 76 21 32 F6 0C 90 00 [14:29:12]wFMCommunicate OK [14:29:12]SAM_PROTO_SignData done [14:29:12]FM_MakeSignedData done [14:29:12]CreateOFDProtocolMessage [14:29:12]wFMCommunicate request_size=4 [14:29:12]MH_SAM_APDU [14:29:12]CAPDU: 80 11 00 00 [14:29:12]Write to MH i2c: E2 08 00 33 24 80 11 00 00 00 00 00 00 D1 [14:29:12]Write i2c OK [14:29:12]MH_I2C_Read... [14:29:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:12]Read from MH i2c: E2 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 17 00 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: E2 17 00 33 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2C [14:29:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:29:12]wFMCommunicate OK [14:29:12]CreateOFDProtocolMessage done [14:29:12]OFDSenderStorePacket 31764 [14:29:12]StoreOFDPacket docnum=31764 [14:29:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 40 01 00 00 65 C9 38 01 E3 B5 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 1B 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 53 00 00 00 F4 03 04 00 BC 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 14 7C 00 00 35 04 06 00 4C 62 99 A1 D9 38 23 3A 17 76 21 32 F6 0C [14:29:12]CheckFolder [14:29:12]dirname=/storage/ofd_packets [14:29:12]CheckFolder done [14:29:12]ProducePacketName [14:29:12]name=ofd_packets/00031764 [14:29:12]NVStorageSaveData ofd_packets/00031764 [14:29:12]File name is /storage/ofd_packets/00031764 [14:29:12]Write 350 bytes [14:29:12]NVStorageSaveData done [14:29:12]OFDSenderStorePacket done [14:29:12]KKMCreateOFDPacket done [14:29:12]NVStorageSaveData kkm_last_timestamp [14:29:12]File name is /storage/kkm_last_timestamp [14:29:12]Write 4 bytes [14:29:12]NVStorageSaveData done [14:29:12]ExternCall_PrintAddStr [14:29:12]wPrintStart [14:29:12]Write to MH i2c: 01 00 00 34 24 58 [14:29:12]Write i2c OK [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: 01 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: 01 07 00 [14:29:12]MH_I2C_Read... [14:29:12]Read from MH i2c: 01 07 00 34 24 00 00 00 00 00 FF 0F 6D [14:29:12]RasterBufferAndPrint [14:29:12]line Счет N : (3)214345 [14:29:12]line ИНН: 02508201610067 [14:29:12]line Контрольно-Кассовый Чек [14:29:12]line ПРОДАЖА [14:29:12]line Товар: 4700007110066 [14:29:12]line Сэндвич с майонезом Талас Даамы [14:29:12]line 4.000 * 70.00 [14:29:12]line = 280.00 [14:29:12]line НДС 12% НСП 1% [14:29:12]line > о реализуемом товаре [14:29:12]line ИТОГО: 280.00 [14:29:12]line НСП 1% : 2.48 [14:29:12]line НДС 12% : 29.73 [14:29:12]line Наличными: 280.00 [14:29:12]line Безнал.: 0.00 [14:29:12]line Место: АЗС № 140 "Партнер Нефть" [14:29:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:29:12]line СНО: Общий режим [14:29:12]line Чек 83 16.07.2024 14:29 [14:29:12]line Смена: 371 ФФД: 1.0 [14:29:12]line ЗНМ: 0300000189 [14:29:12]line РНМ: 0000000000098025 [14:29:12]line Версия ККМ: 001 [14:29:12]line ФМ: 0000000000965389 [14:29:12]line ФД: 31764 [14:29:12]line ФПД: 83986368026936 [14:29:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T142916&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31764&fm=83986368026936&tin=02508201610067®Number=0000000000098025&sum=28000 [14:29:13]line 0 [14:29:13]OFD Sender: Processing packet 31764 [packets to send 6, broken 5] [14:29:13]ProducePacketName [14:29:13]name=ofd_packets/00031764 [14:29:13]OFD Sender: To server: pG, [14:29:13]CommunicateWithHost lk.salyk.kg:30040 [14:29:13]ConnectInit lk.salyk.kg [14:29:13]written 0, free lines is 4095 [14:29:13]Connected sock=10 [14:29:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 40 01 00 00 65 C9 38 01 E3 B5 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 1B 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 53 00 00 00 F4 03 04 00 BC 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 14 7C 00 00 35 04 06 00 4C 62 99 A1 D9 38 23 3A 17 76 21 32 F6 0C [14:29:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 35 B6 47 00 DA 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 14 7C 00 00 F4 03 04 00 C9 2F 96 66 B6 04 01 00 00 E3 DB B1 CA 8B 18 9F C3 [14:29:13]CommunicateWithHost err = 0 [14:29:13]CheckOFDResponse [14:29:13]1017 (14) - 77093643461234 [14:29:13]1041 (16) - 0000000000965389 [14:29:13]1040 (4) - 31764 [14:29:13]1012 (4) - 16.07.2024 08:31 [14:29:13]1206 (1) - 0 [14:29:13]OFD Sender: Remove packet 31764 [14:29:13]ProducePacketName [14:29:13]name=ofd_packets/00031764 [14:29:13]NVStorageDeleteData [14:29:13]Write to MH i2c: 01 00 00 5D 24 81 [14:29:13]Write i2c OK [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 07 00 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: 01 07 00 5D 24 00 00 00 00 00 E5 0C 79 [14:29:13]RasterBufferAndPrint [14:29:13]line [14:29:13]line [14:29:13]line [14:29:13]line [14:29:13]line [14:29:13]written 0, free lines is 3307 [14:29:13]MH_Cut [14:29:13]Write to MH i2c: D1 01 00 64 24 01 5A [14:29:13]Write i2c OK [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: D1 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: D1 01 00 [14:29:13]MH_I2C_Read... [14:29:13]Read from MH i2c: D1 01 00 64 24 00 59 [14:29:13]Write to MH i2c: 01 00 00 65 24 89 [14:29:13]Write i2c OK [14:29:13]MH_I2C_Read... [14:29:14]OFD Sender: No OFD packet to send [14:29:14]*** Cut start [14:29:14]*** Partial cut [14:29:14]*** CUTSNS_PIN = 1 [14:29:14]*** CUTSNS_PIN = 0 [14:29:14]*** Brake cut motor [14:29:15]Read from MH i2c: 01 [14:29:15]MH_I2C_Read... [14:29:15]*** Stop cut motor [14:29:15]*** Cut end [14:29:15]Read from MH i2c: 01 07 00 [14:29:15]MH_I2C_Read... [14:29:15]Read from MH i2c: 01 07 00 65 24 00 00 00 00 00 FF 0F 9E [14:29:15]process_action close_receipt done [14:29:15]requested_data is exist [14:29:15]produce_requested_data [14:29:15]requested_item fm.sn is exist - process it [14:29:15]wFMCommunicate request_size=4 [14:29:15]MH_SAM_APDU [14:29:15]CAPDU: 80 11 00 00 [14:29:15]Write to MH i2c: E2 08 00 66 24 80 11 00 00 00 00 00 00 04 [14:29:15]Write i2c OK [14:29:15]MH_I2C_Read... [14:29:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:15]Read from MH i2c: E2 [14:29:15]MH_I2C_Read... [14:29:15]Read from MH i2c: E2 17 00 [14:29:15]MH_I2C_Read... [14:29:15]Read from MH i2c: E2 17 00 66 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 5F [14:29:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:29:15]wFMCommunicate OK [14:29:15]requested_item fd.num is exist - process it [14:29:15]SAM_PROTO_GetFieldsCounters [14:29:15]wFMCommunicate request_size=4 [14:29:15]MH_SAM_APDU [14:29:15]CAPDU: 80 13 00 00 [14:29:15]Write to MH i2c: E2 08 00 67 24 80 13 00 00 00 00 00 00 07 [14:29:15]Write i2c OK [14:29:15]MH_I2C_Read... [14:29:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:15]Read from MH i2c: E2 [14:29:15]MH_I2C_Read... [14:29:15]Read from MH i2c: E2 62 00 [14:29:15]MH_I2C_Read... [14:29:15]Read from MH i2c: E2 62 00 67 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 14 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [14:29:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 14 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:15]wFMCommunicate OK [14:29:15]SAM_PROTO_GetFieldsCounters done [14:29:15]requested_item shift.num is exist - process it [14:29:15]requested_item shift.opened is exist - process it [14:29:15]req_shift_opened [14:29:15]FM_GetShiftState [14:29:15]SAM_PROTO_GetShiftState [14:29:15]wFMCommunicate request_size=4 [14:29:15]MH_SAM_APDU [14:29:15]CAPDU: 80 13 01 00 [14:29:15]Write to MH i2c: E2 08 00 68 24 80 13 01 00 00 00 00 00 09 [14:29:15]Write i2c OK [14:29:15]MH_I2C_Read... [14:29:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:15]Read from MH i2c: E2 [14:29:15]MH_I2C_Read... [14:29:15]Read from MH i2c: E2 0E 00 [14:29:15]MH_I2C_Read... [14:29:15]Read from MH i2c: E2 0E 00 68 24 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 58 [14:29:15]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:29:15]wFMCommunicate OK [14:29:15]SAM_PROTO_GetShiftState done [14:29:15]FM_GetShiftState done [14:29:15]req_shift_opened done [14:29:15]requested_item shift.open_date is exist - process it [14:29:15]req_shift_open_date [14:29:15]req_shift_open_date done [14:29:15]produce_requested_data done [14:29:15]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31764,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:29:15]process_action_free close_receipt [14:29:15]json_value_free [14:29:15]json_value_free done [14:29:15]process_json_proto returns [14:29:15]Send response to host [14:29:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31764,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:29:15]free response buf [14:29:15]execute_script done [14:29:15]execute_script returns [14:29:15]free content buf [14:29:15]Sock 7.Close socket [14:29:15]Sock 7.Thread stoped [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:28]accept exits with 9 [14:29:28]New connection [14:29:28]New thread 3066965348 created [14:29:28]Thread 3066821988 joined [14:29:28]Waiting for new connection... [14:29:28] Sock 9.Parse request [14:29:28]Sock 9.Check first char [14:29:28]Sock 9.First char is OK [14:29:28]request: POST /json_proto HTTP/1.0 [14:29:28]Method: POST [14:29:28]URL: /json_proto [14:29:28]Method is POST - this is cgi request [14:29:28]url: /json_proto [14:29:28]query_string will be loaded in cgi processing [14:29:28]execute_cgi json_proto POST (null) [14:29:28]execute_cgi path=json_proto method=POST [14:29:28]POST find Content-Length [14:29:28]Host: 172.17.39.68:8080 [14:29:28]Content-Length: 787 [14:29:28]Content-Type: application/json [14:29:28] [14:29:28]POST finish read [14:29:28]Found Content-Length = 787 [14:29:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214346", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:28]execute_script... [14:29: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)214346", "tax_sys" : 0, "items" : [ { "code": "4640030092499", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE SENSE Himalaya", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:29:28]POST & json_proto [14:29:28]process_json_proto [14:29:28]json parsed OK: [14:29:28]protocol is kg_v1.0 [14:29:28]action value=close_receipt [14:29:28]process_action close_receipt [14:29:28]cmd_close_receipt [14:29:28]MH_GetDate [14:29:28]Write to MH i2c: F0 00 00 69 24 7C [14:29:28]Write i2c OK [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: F0 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: F0 09 00 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: F0 09 00 69 24 00 CD 83 96 66 D6 48 95 66 EA [14:29:28]GetLastDocTimeStamp 1721140156 [14:29:28]current date 1721140173 [14:29:28]FM_GetShiftState [14:29:28]SAM_PROTO_GetShiftState [14:29:28]wFMCommunicate request_size=4 [14:29:28]MH_SAM_APDU [14:29:28]CAPDU: 80 13 01 00 [14:29:28]Write to MH i2c: E2 08 00 6A 24 80 13 01 00 00 00 00 00 0B [14:29:28]Write i2c OK [14:29:28]MH_I2C_Read... [14:29:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:28]Read from MH i2c: E2 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: E2 0E 00 [14:29:28]MH_I2C_Read... [14:29:28]Read from MH i2c: E2 0E 00 6A 24 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 5A [14:29:28]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:29:28]wFMCommunicate OK [14:29:28]SAM_PROTO_GetShiftState done [14:29:28]FM_GetShiftState done [14:29:28]opened in 1721088399 [14:29:28]opened+sec_in_day 1721174799 [14:29:28]quantity*price = 13800 [14:29:28]sum+1 = 13801 [14:29:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 0.00 Безнал.: 138.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 84 16.07.2024 14:29 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31765 ФПД: 2318858280447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T142933&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31765&fm=2318858280447&tin=02508201610067®Number=0000000000098025&sum=13800 0 [14:29:29]StoreToDocumentArchive [14:29:29]shift 371 fd 31765 [14:29:29]save to /storage/0371/doc_00031765 [14:29:29]save last doc name /storage/0371/doc_00031765 to /storage/kkm_last_doc_name [14:29:29]save OK [14:29:29]Clear old archive folders... [14:29:29]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:29:29]tlvbuf is 0154EFD0 [14:29:29]SAM_PROTO_ClearQueue [14:29:29]wFMCommunicate request_size=4 [14:29:29]MH_SAM_APDU [14:29:29]CAPDU: 80 09 00 00 [14:29:29]Write to MH i2c: E2 08 00 77 24 80 09 00 00 00 00 00 00 0D [14:29:29]Write i2c OK [14:29:29]MH_I2C_Read... [14:29:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:29:29]Read from MH i2c: E2 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 03 00 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 03 00 77 24 00 90 00 0F [14:29:29]RAPDU: 90 00 [14:29:29]wFMCommunicate OK [14:29:29]SAM_PROTO_ClearQueue done [14:29:29]KKMCreateOFDPacket [14:29:29]OFDProtocolAddRootSTLVToBuf [14:29:29]FM_MakeSignedData [14:29:29]FM_MakeSignedData [14:29:29]SAM_PROTO_SignData [14:29:29]wFMCommunicate request_size=4 [14:29:29]MH_SAM_APDU [14:29:29]CAPDU: 80 0D 01 02 [14:29:29]Write to MH i2c: E2 08 00 78 24 80 0D 01 02 00 00 00 00 15 [14:29:29]Write i2c OK [14:29:29]MH_I2C_Read... [14:29:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:29:29]Read from MH i2c: E2 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 03 00 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 03 00 78 24 00 90 00 10 [14:29:29]RAPDU: 90 00 [14:29:29]wFMCommunicate OK [14:29:29]wFMCommunicate request_size=255 [14:29:29]MH_SAM_APDU [14:29:29]CAPDU: 80 0D 02 02 FA 03 00 16 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 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 CD 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 [14:29:29]Write to MH i2c: E2 02 01 79 24 80 0D 02 02 FA 00 03 00 16 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 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 CD 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 00 00 ED [14:29:29]Write i2c OK [14:29:29]MH_I2C_Read... [14:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:29]Read from MH i2c: E2 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 03 00 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 03 00 79 24 00 90 00 11 [14:29:29]RAPDU: 90 00 [14:29:29]wFMCommunicate OK [14:29:29]wFMCommunicate request_size=37 [14:29:29]MH_SAM_APDU [14:29:29]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 15 7C 00 00 35 04 06 00 02 1B E6 B9 5D FF [14:29:29]Write to MH i2c: E2 28 00 7A 24 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 15 7C 00 00 35 04 06 00 02 1B E6 B9 5D FF 00 00 20 [14:29:29]Write i2c OK [14:29:29]MH_I2C_Read... [14:29:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:29:29]Read from MH i2c: E2 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 03 00 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 03 00 7A 24 00 90 00 12 [14:29:29]RAPDU: 90 00 [14:29:29]wFMCommunicate OK [14:29:29]wFMCommunicate request_size=4 [14:29:29]MH_SAM_APDU [14:29:29]CAPDU: 80 0D 03 02 [14:29:29]Write to MH i2c: E2 08 00 7B 24 80 0D 03 02 00 00 00 00 1A [14:29:29]Write i2c OK [14:29:29]MH_I2C_Read... [14:29:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:29:29]Read from MH i2c: E2 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 0B 00 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 0B 00 7B 24 00 D4 3A 48 61 7C 24 8C 60 90 00 5E [14:29:29]RAPDU: D4 3A 48 61 7C 24 8C 60 90 00 [14:29:29]wFMCommunicate OK [14:29:29]SAM_PROTO_SignData done [14:29:29]FM_MakeSignedData done [14:29:29]CreateOFDProtocolMessage [14:29:29]wFMCommunicate request_size=4 [14:29:29]MH_SAM_APDU [14:29:29]CAPDU: 80 11 00 00 [14:29:29]Write to MH i2c: E2 08 00 7C 24 80 11 00 00 00 00 00 00 1A [14:29:29]Write i2c OK [14:29:29]MH_I2C_Read... [14:29:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:29]Read from MH i2c: E2 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 17 00 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: E2 17 00 7C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 75 [14:29:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:29:29]wFMCommunicate OK [14:29:29]CreateOFDProtocolMessage done [14:29:29]OFDSenderStorePacket 31765 [14:29:29]StoreOFDPacket docnum=31765 [14:29:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 79 F1 22 01 D6 5B 5A 03 01 00 03 00 16 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 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 CD 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 15 7C 00 00 35 04 06 00 02 1B E6 B9 5D FF D4 3A 48 61 7C 24 8C 60 [14:29:29]CheckFolder [14:29:29]dirname=/storage/ofd_packets [14:29:29]CheckFolder done [14:29:29]ProducePacketName [14:29:29]name=ofd_packets/00031765 [14:29:29]NVStorageSaveData ofd_packets/00031765 [14:29:29]File name is /storage/ofd_packets/00031765 [14:29:29]Write 328 bytes [14:29:29]NVStorageSaveData done [14:29:29]OFDSenderStorePacket done [14:29:29]KKMCreateOFDPacket done [14:29:29]NVStorageSaveData kkm_last_timestamp [14:29:29]File name is /storage/kkm_last_timestamp [14:29:29]Write 4 bytes [14:29:29]NVStorageSaveData done [14:29:29]ExternCall_PrintAddStr [14:29:29]wPrintStart [14:29:29]Write to MH i2c: 01 00 00 7D 24 A1 [14:29:29]Write i2c OK [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: 01 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: 01 07 00 [14:29:29]MH_I2C_Read... [14:29:29]Read from MH i2c: 01 07 00 7D 24 00 00 00 00 00 FF 0F B6 [14:29:29]RasterBufferAndPrint [14:29:29]line Счет N : (3)214346 [14:29:29]line ИНН: 02508201610067 [14:29:29]line Контрольно-Кассовый Чек [14:29:29]line ПРОДАЖА [14:29:29]line Товар: 4640030092499 [14:29:29]line Сигареты ESSE SENSE Himalaya [14:29:29]line 1.000 * 138.00 [14:29:29]line = 138.00 [14:29:29]line НДС 12% НСП 1% [14:29:29]line > о реализуемом товаре [14:29:29]line ИТОГО: 138.00 [14:29:29]line НСП 1% : 1.22 [14:29:29]line НДС 12% : 14.65 [14:29:29]line Наличными: 0.00 [14:29:29]line Безнал.: 138.00 [14:29:29]line Место: АЗС № 140 "Партнер Нефть" [14:29:29]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:29:29]line СНО: Общий режим [14:29:29]line Чек 84 16.07.2024 14:29 [14:29:29]line Смена: 371 ФФД: 1.0 [14:29:29]line ЗНМ: 0300000189 [14:29:29]line РНМ: 0000000000098025 [14:29:29]line Версия ККМ: 001 [14:29:29]line Платежная система: O! деньги [14:29:29]line ФМ: 0000000000965389 [14:29:29]line ФД: 31765 [14:29:29]line ФПД: 2318858280447 [14:29:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T142933&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31765&fm=2318858280447&tin=02508201610067®Number=0000000000098025&sum=13800 [14:29:30]line 0 [14:29:30]OFD Sender: Processing packet 31765 [packets to send 6, broken 5] [14:29:30]ProducePacketName [14:29:30]name=ofd_packets/00031765 [14:29:30]OFD Sender: To server: pG, [14:29:30]CommunicateWithHost lk.salyk.kg:30040 [14:29:30]ConnectInit lk.salyk.kg [14:29:30]written 0, free lines is 4095 [14:29:30]Connected sock=10 [14:29:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 79 F1 22 01 D6 5B 5A 03 01 00 03 00 16 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 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 35 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 CD 83 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 15 7C 00 00 35 04 06 00 02 1B E6 B9 5D FF D4 3A 48 61 7C 24 8C 60 [14:29:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 35 2C 47 00 2D B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 15 7C 00 00 F4 03 04 00 DA 2F 96 66 B6 04 01 00 00 8E 2B F5 BE 8F 89 2E B1 [14:29:30]CommunicateWithHost err = 0 [14:29:30]CheckOFDResponse [14:29:30]1017 (14) - 77093643461234 [14:29:30]1041 (16) - 0000000000965389 [14:29:30]1040 (4) - 31765 [14:29:30]1012 (4) - 16.07.2024 08:31 [14:29:30]1206 (1) - 0 [14:29:30]OFD Sender: Remove packet 31765 [14:29:30]ProducePacketName [14:29:30]name=ofd_packets/00031765 [14:29:30]NVStorageDeleteData [14:29:30]Write to MH i2c: 01 00 00 A8 24 CC [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: 01 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: 01 07 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: 01 07 00 A8 24 00 00 00 00 00 D2 0C B1 [14:29:30]RasterBufferAndPrint [14:29:30]line [14:29:30]line [14:29:30]line [14:29:30]line [14:29:30]line [14:29:30]written 0, free lines is 3288 [14:29:30]MH_Cut [14:29:30]Write to MH i2c: D1 01 00 AF 24 01 A5 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: D1 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: D1 01 00 [14:29:30]MH_I2C_Read... [14:29:30]Read from MH i2c: D1 01 00 AF 24 00 A4 [14:29:30]Write to MH i2c: 01 00 00 B0 24 D4 [14:29:30]Write i2c OK [14:29:30]MH_I2C_Read... [14:29:31]OFD Sender: No OFD packet to send [14:29:31]*** Cut start [14:29:31]*** Partial cut [14:29:31]*** CUTSNS_PIN = 1 [14:29:31]*** CUTSNS_PIN = 0 [14:29:31]*** Brake cut motor [14:29:32]Read from MH i2c: 01 [14:29:32]MH_I2C_Read... [14:29:32]*** Stop cut motor [14:29:32]*** Cut end [14:29:32]Read from MH i2c: 01 07 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: 01 07 00 B0 24 00 00 00 00 00 FF 0F E9 [14:29:32]process_action close_receipt done [14:29:32]requested_data is exist [14:29:32]produce_requested_data [14:29:32]requested_item fm.sn is exist - process it [14:29:32]wFMCommunicate request_size=4 [14:29:32]MH_SAM_APDU [14:29:32]CAPDU: 80 11 00 00 [14:29:32]Write to MH i2c: E2 08 00 B1 24 80 11 00 00 00 00 00 00 4F [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:29:32]Read from MH i2c: E2 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 17 00 [14:29:32]MH_I2C_Read... [14:29:32]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 35 33 38 39 90 00 AA [14:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:29:32]wFMCommunicate OK [14:29:32]requested_item fd.num is exist - process it [14:29:32]SAM_PROTO_GetFieldsCounters [14:29:32]wFMCommunicate request_size=4 [14:29:32]MH_SAM_APDU [14:29:32]CAPDU: 80 13 00 00 [14:29:32]Write to MH i2c: E2 08 00 B2 24 80 13 00 00 00 00 00 00 52 [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:29:32]Read from MH i2c: E2 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 62 00 [14:29:32]MH_I2C_Read... [14:29:32]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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 15 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [14:29: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 15 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:29:32]wFMCommunicate OK [14:29:32]SAM_PROTO_GetFieldsCounters done [14:29:32]requested_item shift.num is exist - process it [14:29:32]requested_item shift.opened is exist - process it [14:29:32]req_shift_opened [14:29:32]FM_GetShiftState [14:29:32]SAM_PROTO_GetShiftState [14:29:32]wFMCommunicate request_size=4 [14:29:32]MH_SAM_APDU [14:29:32]CAPDU: 80 13 01 00 [14:29:32]Write to MH i2c: E2 08 00 B3 24 80 13 01 00 00 00 00 00 54 [14:29:32]Write i2c OK [14:29:32]MH_I2C_Read... [14:29:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:29:32]Read from MH i2c: E2 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 0E 00 [14:29:32]MH_I2C_Read... [14:29:32]Read from MH i2c: E2 0E 00 B3 24 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A3 [14:29:32]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:29:32]wFMCommunicate OK [14:29:32]SAM_PROTO_GetShiftState done [14:29:32]FM_GetShiftState done [14:29:32]req_shift_opened done [14:29:32]requested_item shift.open_date is exist - process it [14:29:32]req_shift_open_date [14:29:32]req_shift_open_date done [14:29:32]produce_requested_data done [14:29:32]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31765,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:29:32]process_action_free close_receipt [14:29:32]json_value_free [14:29:32]json_value_free done [14:29:32]process_json_proto returns [14:29:32]Send response to host [14:29:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31765,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:29:32]free response buf [14:29:32]execute_script done [14:29:32]execute_script returns [14:29:32]free content buf [14:29:32]Sock 9.Close socket [14:29:32]Sock 9.Thread stoped [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:53]accept exits with 7 [14:36:53]New connection [14:36:53]New thread 3066821988 created [14:36:53]Thread 3066965348 joined [14:36:53]Waiting for new connection... [14:36:53] Sock 7.Parse request [14:36:53]Sock 7.Check first char [14:36:53]Sock 7.First char is OK [14:36:53]request: POST /json_proto HTTP/1.0 [14:36:53]Method: POST [14:36:53]URL: /json_proto [14:36:53]Method is POST - this is cgi request [14:36:53]url: /json_proto [14:36:53]query_string will be loaded in cgi processing [14:36:53]execute_cgi json_proto POST (null) [14:36:53]execute_cgi path=json_proto method=POST [14:36:53]POST find Content-Length [14:36:53]Host: 172.17.39.68:8080 [14:36:53]Content-Length: 621 [14:36:53]Content-Type: application/json [14:36:53] [14:36:53]POST finish read [14:36:53]Found Content-Length = 621 [14:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214347", "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" ] } } [14:36:53]execute_script... [14:36: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 : (3)214347", "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" ] } } [14:36:53]POST & json_proto [14:36:53]process_json_proto [14:36:53]json parsed OK: [14:36:53]protocol is kg_v1.0 [14:36:53]action value=close_receipt [14:36:53]process_action close_receipt [14:36:53]cmd_close_receipt [14:36:53]MH_GetDate [14:36:53]Write to MH i2c: F0 00 00 B4 24 C7 [14:36:53]Write i2c OK [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: F0 [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: F0 09 00 [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: F0 09 00 B4 24 00 8A 85 96 66 D6 48 95 66 F4 [14:36:53]GetLastDocTimeStamp 1721140173 [14:36:53]current date 1721140618 [14:36:53]FM_GetShiftState [14:36:53]SAM_PROTO_GetShiftState [14:36:53]wFMCommunicate request_size=4 [14:36:53]MH_SAM_APDU [14:36:53]CAPDU: 80 13 01 00 [14:36:53]Write to MH i2c: E2 08 00 B5 24 80 13 01 00 00 00 00 00 56 [14:36:53]Write i2c OK [14:36:53]MH_I2C_Read... [14:36:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:53]Read from MH i2c: E2 [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: E2 0E 00 [14:36:53]MH_I2C_Read... [14:36:53]Read from MH i2c: E2 0E 00 B5 24 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A5 [14:36:53]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:36:53]wFMCommunicate OK [14:36:53]SAM_PROTO_GetShiftState done [14:36:53]FM_GetShiftState done [14:36:53]opened in 1721088399 [14:36:53]opened+sec_in_day 1721174799 [14:36:53]quantity*price = 14000 [14:36:53]sum+1 = 14001 [14:36:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 85 16.07.2024 14:36 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31766 ФПД: 43564283796274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T143658&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31766&fm=43564283796274&tin=02508201610067®Number=0000000000098025&sum=14000 0 [14:36:54]StoreToDocumentArchive [14:36:54]shift 371 fd 31766 [14:36:54]save to /storage/0371/doc_00031766 [14:36:54]save last doc name /storage/0371/doc_00031766 to /storage/kkm_last_doc_name [14:36:54]save OK [14:36:54]Clear old archive folders... [14:36:54]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:36:54]tlvbuf is 015270D0 [14:36:54]SAM_PROTO_ClearQueue [14:36:54]wFMCommunicate request_size=4 [14:36:54]MH_SAM_APDU [14:36:54]CAPDU: 80 09 00 00 [14:36:54]Write to MH i2c: E2 08 00 C2 24 80 09 00 00 00 00 00 00 58 [14:36:54]Write i2c OK [14:36:54]MH_I2C_Read... [14:36:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:54]Read from MH i2c: E2 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 03 00 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 03 00 C2 24 00 90 00 5A [14:36:54]RAPDU: 90 00 [14:36:54]wFMCommunicate OK [14:36:54]SAM_PROTO_ClearQueue done [14:36:54]KKMCreateOFDPacket [14:36:54]OFDProtocolAddRootSTLVToBuf [14:36:54]FM_MakeSignedData [14:36:54]FM_MakeSignedData [14:36:54]SAM_PROTO_SignData [14:36:54]wFMCommunicate request_size=4 [14:36:54]MH_SAM_APDU [14:36:54]CAPDU: 80 0D 01 02 [14:36:54]Write to MH i2c: E2 08 00 C3 24 80 0D 01 02 00 00 00 00 60 [14:36:54]Write i2c OK [14:36:54]MH_I2C_Read... [14:36:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:54]Read from MH i2c: E2 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 03 00 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 03 00 C3 24 00 90 00 5B [14:36:54]RAPDU: 90 00 [14:36:54]wFMCommunicate OK [14:36:54]wFMCommunicate request_size=255 [14:36:54]MH_SAM_APDU [14:36:54]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 55 00 00 00 F4 03 04 00 8A 85 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [14:36:54]Write to MH i2c: E2 02 01 C4 24 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 55 00 00 00 F4 03 04 00 8A 85 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 14 [14:36:54]Write i2c OK [14:36:54]MH_I2C_Read... [14:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:54]Read from MH i2c: E2 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 03 00 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 03 00 C4 24 00 90 00 5C [14:36:54]RAPDU: 90 00 [14:36:54]wFMCommunicate OK [14:36:54]wFMCommunicate request_size=32 [14:36:54]MH_SAM_APDU [14:36:54]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 16 7C 00 00 35 04 06 00 27 9F 19 A9 1B 32 [14:36:54]Write to MH i2c: E2 23 00 C5 24 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 16 7C 00 00 35 04 06 00 27 9F 19 A9 1B 32 00 00 2F [14:36:54]Write i2c OK [14:36:54]MH_I2C_Read... [14:36:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:54]Read from MH i2c: E2 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 03 00 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 03 00 C5 24 00 90 00 5D [14:36:54]RAPDU: 90 00 [14:36:54]wFMCommunicate OK [14:36:54]wFMCommunicate request_size=4 [14:36:54]MH_SAM_APDU [14:36:54]CAPDU: 80 0D 03 02 [14:36:54]Write to MH i2c: E2 08 00 C6 24 80 0D 03 02 00 00 00 00 65 [14:36:54]Write i2c OK [14:36:54]MH_I2C_Read... [14:36:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:54]Read from MH i2c: E2 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 0B 00 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 0B 00 C6 24 00 E9 16 F0 97 9A 61 20 B9 90 00 C0 [14:36:54]RAPDU: E9 16 F0 97 9A 61 20 B9 90 00 [14:36:54]wFMCommunicate OK [14:36:54]SAM_PROTO_SignData done [14:36:54]FM_MakeSignedData done [14:36:54]CreateOFDProtocolMessage [14:36:54]wFMCommunicate request_size=4 [14:36:54]MH_SAM_APDU [14:36:54]CAPDU: 80 11 00 00 [14:36:54]Write to MH i2c: E2 08 00 C7 24 80 11 00 00 00 00 00 00 65 [14:36:54]Write i2c OK [14:36:54]MH_I2C_Read... [14:36:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:54]Read from MH i2c: E2 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: E2 17 00 [14:36:54]MH_I2C_Read... [14:36:54]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 35 33 38 39 90 00 C0 [14:36:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:36:54]wFMCommunicate OK [14:36:54]CreateOFDProtocolMessage done [14:36:54]OFDSenderStorePacket 31766 [14:36:54]StoreOFDPacket docnum=31766 [14:36:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 8D 93 1D 01 5C 3A 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 55 00 00 00 F4 03 04 00 8A 85 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 16 7C 00 00 35 04 06 00 27 9F 19 A9 1B 32 E9 16 F0 97 9A 61 20 B9 [14:36:54]CheckFolder [14:36:54]dirname=/storage/ofd_packets [14:36:54]CheckFolder done [14:36:54]ProducePacketName [14:36:54]name=ofd_packets/00031766 [14:36:54]NVStorageSaveData ofd_packets/00031766 [14:36:54]File name is /storage/ofd_packets/00031766 [14:36:54]Write 323 bytes [14:36:54]NVStorageSaveData done [14:36:54]OFDSenderStorePacket done [14:36:54]KKMCreateOFDPacket done [14:36:54]NVStorageSaveData kkm_last_timestamp [14:36:54]File name is /storage/kkm_last_timestamp [14:36:54]Write 4 bytes [14:36:54]NVStorageSaveData done [14:36:54]ExternCall_PrintAddStr [14:36:54]wPrintStart [14:36:54]Write to MH i2c: 01 00 00 C8 24 EC [14:36:54]Write i2c OK [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: 01 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: 01 07 00 [14:36:54]MH_I2C_Read... [14:36:54]Read from MH i2c: 01 07 00 C8 24 00 00 00 00 00 FF 0F 01 [14:36:54]RasterBufferAndPrint [14:36:54]line Счет N : (3)214347 [14:36:54]line ИНН: 02508201610067 [14:36:54]line Контрольно-Кассовый Чек [14:36:54]line ПРОДАЖА [14:36:54]line Товар: 48747059 [14:36:54]line Сигареты Winston Legend Blue [14:36:54]line 1.000 * 140.00 [14:36:54]line = 140.00 [14:36:54]line НДС 12% НСП 1% [14:36:54]line > о реализуемом товаре [14:36:54]line ИТОГО: 140.00 [14:36:54]line НСП 1% : 1.24 [14:36:54]line НДС 12% : 14.87 [14:36:54]line Наличными: 140.00 [14:36:54]line Безнал.: 0.00 [14:36:54]line Место: АЗС № 140 "Партнер Нефть" [14:36:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:36:54]line СНО: Общий режим [14:36:54]line Чек 85 16.07.2024 14:36 [14:36:54]line Смена: 371 ФФД: 1.0 [14:36:54]line ЗНМ: 0300000189 [14:36:54]line РНМ: 0000000000098025 [14:36:54]line Версия ККМ: 001 [14:36:54]line ФМ: 0000000000965389 [14:36:54]line ФД: 31766 [14:36:54]line ФПД: 43564283796274 [14:36:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T143658&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31766&fm=43564283796274&tin=02508201610067®Number=0000000000098025&sum=14000 [14:36:55]line 0 [14:36:55]OFD Sender: Processing packet 31766 [packets to send 6, broken 5] [14:36:55]ProducePacketName [14:36:55]name=ofd_packets/00031766 [14:36:55]OFD Sender: To server: pG, [14:36:55]CommunicateWithHost lk.salyk.kg:30040 [14:36:55]ConnectInit lk.salyk.kg [14:36:55]written 0, free lines is 4095 [14:36:55]Connected sock=11 [14:36:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 8D 93 1D 01 5C 3A 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 55 00 00 00 F4 03 04 00 8A 85 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 16 7C 00 00 35 04 06 00 27 9F 19 A9 1B 32 E9 16 F0 97 9A 61 20 B9 [14:36:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 65 3B 47 00 34 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 35 33 38 39 10 04 04 00 16 7C 00 00 F4 03 04 00 97 31 96 66 B6 04 01 00 00 62 10 00 CF EC 4D 38 3C [14:36:55]CommunicateWithHost err = 0 [14:36:55]CheckOFDResponse [14:36:55]1017 (14) - 77093643461234 [14:36:55]1041 (16) - 0000000000965389 [14:36:55]1040 (4) - 31766 [14:36:55]1012 (4) - 16.07.2024 08:38 [14:36:55]1206 (1) - 0 [14:36:55]OFD Sender: Remove packet 31766 [14:36:55]ProducePacketName [14:36:55]name=ofd_packets/00031766 [14:36:55]NVStorageDeleteData [14:36:55]Write to MH i2c: 01 00 00 F1 24 15 [14:36:55]Write i2c OK [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: 01 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: 01 07 00 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: 01 07 00 F1 24 00 00 00 00 00 CC 0C F4 [14:36:55]RasterBufferAndPrint [14:36:55]line [14:36:55]line [14:36:55]line [14:36:55]line [14:36:55]line [14:36:55]written 0, free lines is 3282 [14:36:55]MH_Cut [14:36:55]Write to MH i2c: D1 01 00 F8 24 01 EE [14:36:55]Write i2c OK [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: D1 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: D1 01 00 [14:36:55]MH_I2C_Read... [14:36:55]Read from MH i2c: D1 01 00 F8 24 00 ED [14:36:55]Write to MH i2c: 01 00 00 F9 24 1D [14:36:55]Write i2c OK [14:36:55]MH_I2C_Read... [14:36:55]OFD Sender: No OFD packet to send [14:36:56]*** Cut start [14:36:56]*** Partial cut [14:36:56]*** CUTSNS_PIN = 1 [14:36:56]*** CUTSNS_PIN = 0 [14:36:56]*** Brake cut motor [14:36:57]Read from MH i2c: 01 [14:36:57]MH_I2C_Read... [14:36:57]*** Stop cut motor [14:36:57]*** Cut end [14:36:57]Read from MH i2c: 01 07 00 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: 01 07 00 F9 24 00 00 00 00 00 FF 0F 32 [14:36:57]process_action close_receipt done [14:36:57]requested_data is exist [14:36:57]produce_requested_data [14:36:57]requested_item fm.sn is exist - process it [14:36:57]wFMCommunicate request_size=4 [14:36:57]MH_SAM_APDU [14:36:57]CAPDU: 80 11 00 00 [14:36:57]Write to MH i2c: E2 08 00 FA 24 80 11 00 00 00 00 00 00 98 [14:36:57]Write i2c OK [14:36:57]MH_I2C_Read... [14:36:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:57]Read from MH i2c: E2 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: E2 17 00 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: E2 17 00 FA 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F3 [14:36:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:36:57]wFMCommunicate OK [14:36:57]requested_item fd.num is exist - process it [14:36:57]SAM_PROTO_GetFieldsCounters [14:36:57]wFMCommunicate request_size=4 [14:36:57]MH_SAM_APDU [14:36:57]CAPDU: 80 13 00 00 [14:36:57]Write to MH i2c: E2 08 00 FB 24 80 13 00 00 00 00 00 00 9B [14:36:57]Write i2c OK [14:36:57]MH_I2C_Read... [14:36:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:36:57]Read from MH i2c: E2 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: E2 62 00 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: E2 62 00 FB 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 16 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [14:36: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 16 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:36:57]wFMCommunicate OK [14:36:57]SAM_PROTO_GetFieldsCounters done [14:36:57]requested_item shift.num is exist - process it [14:36:57]requested_item shift.opened is exist - process it [14:36:57]req_shift_opened [14:36:57]FM_GetShiftState [14:36:57]SAM_PROTO_GetShiftState [14:36:57]wFMCommunicate request_size=4 [14:36:57]MH_SAM_APDU [14:36:57]CAPDU: 80 13 01 00 [14:36:57]Write to MH i2c: E2 08 00 FC 24 80 13 01 00 00 00 00 00 9D [14:36:57]Write i2c OK [14:36:57]MH_I2C_Read... [14:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:57]Read from MH i2c: E2 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: E2 0E 00 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: E2 0E 00 FC 24 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 EC [14:36:57]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:36:57]wFMCommunicate OK [14:36:57]SAM_PROTO_GetShiftState done [14:36:57]FM_GetShiftState done [14:36:57]req_shift_opened done [14:36:57]requested_item shift.open_date is exist - process it [14:36:57]req_shift_open_date [14:36:57]req_shift_open_date done [14:36:57]produce_requested_data done [14:36:57]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31766,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:36:57]process_action_free close_receipt [14:36:57]json_value_free [14:36:57]json_value_free done [14:36:57]process_json_proto returns [14:36:57]Send response to host [14:36:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31766,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:36:57]free response buf [14:36:57]execute_script done [14:36:57]execute_script returns [14:36:57]free content buf [14:36:57]Sock 7.Close socket [14:36:57]Sock 7.Thread stoped [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:17]accept exits with 9 [14:37:17]New connection [14:37:17]New thread 3066965348 created [14:37:17]Thread 3066821988 joined [14:37:17]Waiting for new connection... [14:37:17] Sock 9.Parse request [14:37:17]Sock 9.Check first char [14:37:17]Sock 9.First char is OK [14:37:17]request: POST /json_proto HTTP/1.0 [14:37:17]Method: POST [14:37:17]URL: /json_proto [14:37:17]Method is POST - this is cgi request [14:37:17]url: /json_proto [14:37:17]query_string will be loaded in cgi processing [14:37:17]execute_cgi json_proto POST (null) [14:37:17]execute_cgi path=json_proto method=POST [14:37:17]POST find Content-Length [14:37:17]Host: 172.17.39.68:8080 [14:37:17]Content-Length: 670 [14:37:17]Content-Type: application/json [14:37:17] [14:37:17]POST finish read [14:37:17]Found Content-Length = 670 [14:37:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214348", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.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" ] } } [14:37:17]execute_script... [14: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)214348", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.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" ] } } [14:37:17]POST & json_proto [14:37:17]process_json_proto [14:37:17]json parsed OK: [14:37:17]protocol is kg_v1.0 [14:37:17]action value=close_receipt [14:37:17]process_action close_receipt [14:37:17]cmd_close_receipt [14:37:17]MH_GetDate [14:37:17]Write to MH i2c: F0 00 00 FD 24 10 [14:37:17]Write i2c OK [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: F0 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: F0 09 00 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: F0 09 00 FD 24 00 A2 85 96 66 D6 48 95 66 55 [14:37:17]GetLastDocTimeStamp 1721140618 [14:37:17]current date 1721140642 [14:37:17]FM_GetShiftState [14:37:17]SAM_PROTO_GetShiftState [14:37:17]wFMCommunicate request_size=4 [14:37:17]MH_SAM_APDU [14:37:17]CAPDU: 80 13 01 00 [14:37:17]Write to MH i2c: E2 08 00 FE 24 80 13 01 00 00 00 00 00 9F [14:37:17]Write i2c OK [14:37:17]MH_I2C_Read... [14:37:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:17]Read from MH i2c: E2 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: E2 0E 00 [14:37:17]MH_I2C_Read... [14:37:17]Read from MH i2c: E2 0E 00 FE 24 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 EE [14:37:17]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:37:17]wFMCommunicate OK [14:37:17]SAM_PROTO_GetShiftState done [14:37:17]FM_GetShiftState done [14:37:17]opened in 1721088399 [14:37:17]opened+sec_in_day 1721174799 [14:37:17]quantity*price = 15000 [14:37:17]sum+1 = 15001 [14:37:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 86 16.07.2024 14:37 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31767 ФПД: 123119280210975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T143722&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31767&fm=123119280210975&tin=02508201610067®Number=0000000000098025&sum=15000 0 [14:37:18]StoreToDocumentArchive [14:37:18]shift 371 fd 31767 [14:37:18]save to /storage/0371/doc_00031767 [14:37:18]save last doc name /storage/0371/doc_00031767 to /storage/kkm_last_doc_name [14:37:18]save OK [14:37:18]Clear old archive folders... [14:37:18]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:37:18]tlvbuf is 01518690 [14:37:18]SAM_PROTO_ClearQueue [14:37:18]wFMCommunicate request_size=4 [14:37:18]MH_SAM_APDU [14:37:18]CAPDU: 80 09 00 00 [14:37:18]Write to MH i2c: E2 08 00 0B 25 80 09 00 00 00 00 00 00 A2 [14:37:18]Write i2c OK [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 [14:37:18]MH_I2C_Read... [14:37:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:37:18]Read from MH i2c: E2 03 00 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 03 00 0B 25 00 90 00 A4 [14:37:18]RAPDU: 90 00 [14:37:18]wFMCommunicate OK [14:37:18]SAM_PROTO_ClearQueue done [14:37:18]KKMCreateOFDPacket [14:37:18]OFDProtocolAddRootSTLVToBuf [14:37:18]FM_MakeSignedData [14:37:18]FM_MakeSignedData [14:37:18]SAM_PROTO_SignData [14:37:18]wFMCommunicate request_size=4 [14:37:18]MH_SAM_APDU [14:37:18]CAPDU: 80 0D 01 02 [14:37:18]Write to MH i2c: E2 08 00 0C 25 80 0D 01 02 00 00 00 00 AA [14:37:18]Write i2c OK [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 [14:37:18]MH_I2C_Read... [14:37:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:37:18]Read from MH i2c: E2 03 00 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 03 00 0C 25 00 90 00 A5 [14:37:18]RAPDU: 90 00 [14:37:18]wFMCommunicate OK [14:37:18]wFMCommunicate request_size=255 [14:37:18]MH_SAM_APDU [14:37:18]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE 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 4C 1D 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 56 00 00 00 F4 03 04 00 A2 85 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [14:37:18]Write to MH i2c: E2 02 01 0D 25 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE 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 4C 1D 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 56 00 00 00 F4 03 04 00 A2 85 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 A5 [14:37:18]Write i2c OK [14:37:18]MH_I2C_Read... [14:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:18]Read from MH i2c: E2 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 03 00 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 03 00 0D 25 00 90 00 A6 [14:37:18]RAPDU: 90 00 [14:37:18]wFMCommunicate OK [14:37:18]wFMCommunicate request_size=46 [14:37:18]MH_SAM_APDU [14:37:18]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 17 7C 00 00 35 04 06 00 6F F9 F0 F6 44 1F [14:37:18]Write to MH i2c: E2 31 00 0E 25 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 17 7C 00 00 35 04 06 00 6F F9 F0 F6 44 1F 00 00 7E [14:37:18]Write i2c OK [14:37:18]MH_I2C_Read... [14:37:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:37:18]Read from MH i2c: E2 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 03 00 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 03 00 0E 25 00 90 00 A7 [14:37:18]RAPDU: 90 00 [14:37:18]wFMCommunicate OK [14:37:18]wFMCommunicate request_size=4 [14:37:18]MH_SAM_APDU [14:37:18]CAPDU: 80 0D 03 02 [14:37:18]Write to MH i2c: E2 08 00 0F 25 80 0D 03 02 00 00 00 00 AF [14:37:18]Write i2c OK [14:37:18]MH_I2C_Read... [14:37:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:37:18]Read from MH i2c: E2 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 0B 00 [14:37:18]MH_I2C_Read... [14:37:18]Read from MH i2c: E2 0B 00 0F 25 00 43 D2 ED 27 DF 40 42 B4 90 00 EE [14:37:18]RAPDU: 43 D2 ED 27 DF 40 42 B4 90 00 [14:37:18]wFMCommunicate OK [14:37:18]SAM_PROTO_SignData done [14:37:18]FM_MakeSignedData done [14:37:18]CreateOFDProtocolMessage [14:37:18]wFMCommunicate request_size=4 [14:37:18]MH_SAM_APDU [14:37:18]CAPDU: 80 11 00 00 [14:37:18]Write to MH i2c: E2 08 00 10 25 80 11 00 00 00 00 00 00 AF [14:37:18]Write i2c OK [14:37:18]MH_I2C_Read... [14:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:19]Read from MH i2c: E2 [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: E2 17 00 [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: E2 17 00 10 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0A [14:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:37:19]wFMCommunicate OK [14:37:19]CreateOFDProtocolMessage done [14:37:19]OFDSenderStorePacket 31767 [14:37:19]StoreOFDPacket docnum=31767 [14:37:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 D5 A9 2B 01 89 1A 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE 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 4C 1D 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 56 00 00 00 F4 03 04 00 A2 85 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 17 7C 00 00 35 04 06 00 6F F9 F0 F6 44 1F 43 D2 ED 27 DF 40 42 B4 [14:37:19]CheckFolder [14:37:19]dirname=/storage/ofd_packets [14:37:19]CheckFolder done [14:37:19]ProducePacketName [14:37:19]name=ofd_packets/00031767 [14:37:19]NVStorageSaveData ofd_packets/00031767 [14:37:19]File name is /storage/ofd_packets/00031767 [14:37:19]Write 337 bytes [14:37:19]NVStorageSaveData done [14:37:19]OFDSenderStorePacket done [14:37:19]KKMCreateOFDPacket done [14:37:19]NVStorageSaveData kkm_last_timestamp [14:37:19]File name is /storage/kkm_last_timestamp [14:37:19]Write 4 bytes [14:37:19]NVStorageSaveData done [14:37:19]ExternCall_PrintAddStr [14:37:19]wPrintStart [14:37:19]Write to MH i2c: 01 00 00 11 25 36 [14:37:19]OFD Sender: Processing packet 31767 [packets to send 6, broken 5] [14:37:19]ProducePacketName [14:37:19]name=ofd_packets/00031767 [14:37:19]OFD Sender: To server: pG, [14:37:19]CommunicateWithHost lk.salyk.kg:30040 [14:37:19]ConnectInit lk.salyk.kg [14:37:19]Write i2c OK [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: 01 [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: 01 07 00 [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: 01 07 00 11 25 00 00 00 00 00 FF 0F 4B [14:37:19]RasterBufferAndPrint [14:37:19]line Счет N : (3)214348 [14:37:19]line ИНН: 02508201610067 [14:37:19]line Контрольно-Кассовый Чек [14:37:19]line ПРОДАЖА [14:37:19]line Товар: 5449000189394 [14:37:19]line Холодный чай Fuse ягода 0,5л [14:37:19]line 2.000 * 75.00 [14:37:19]line = 150.00 [14:37:19]line НДС 12% НСП 1% [14:37:19]line > о реализуемом товаре [14:37:19]line ИТОГО: 150.00 [14:37:19]line НСП 1% : 1.33 [14:37:19]line НДС 12% : 15.93 [14:37:19]line Наличными: 150.00 [14:37:19]line Безнал.: 0.00 [14:37:19]line Место: АЗС № 140 "Партнер Нефть" [14:37:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:37:19]line СНО: Общий режим [14:37:19]line Чек 86 16.07.2024 14:37 [14:37:19]line Смена: 371 ФФД: 1.0 [14:37:19]line ЗНМ: 0300000189 [14:37:19]line РНМ: 0000000000098025 [14:37:19]line Версия ККМ: 001 [14:37:19]line ФМ: 0000000000965389 [14:37:19]line ФД: 31767 [14:37:19]line ФПД: 123119280210975 [14:37:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T143722&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31767&fm=123119280210975&tin=02508201610067®Number=0000000000098025&sum=15000 [14:37:19]line 0 [14:37:19]Connected sock=10 [14: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 35 33 38 39 33 01 00 00 D5 A9 2B 01 89 1A 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE 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 4C 1D 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 56 00 00 00 F4 03 04 00 A2 85 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 17 7C 00 00 35 04 06 00 6F F9 F0 F6 44 1F 43 D2 ED 27 DF 40 42 B4 [14:37:19]written 0, free lines is 4095 [14:37:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 25 9C 47 00 B5 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 17 7C 00 00 F4 03 04 00 AF 31 96 66 B6 04 01 00 00 DB 9C B9 1C 4A 61 51 D6 [14:37:19]CommunicateWithHost err = 0 [14:37:19]CheckOFDResponse [14:37:19]1017 (14) - 77093643461234 [14:37:19]1041 (16) - 0000000000965389 [14:37:19]1040 (4) - 31767 [14:37:19]1012 (4) - 16.07.2024 08:39 [14:37:19]1206 (1) - 0 [14:37:19]OFD Sender: Remove packet 31767 [14:37:19]ProducePacketName [14:37:19]name=ofd_packets/00031767 [14:37:19]NVStorageDeleteData [14:37:19]Write to MH i2c: 01 00 00 39 25 5E [14:37:19]Write i2c OK [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: 01 [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: 01 07 00 [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: 01 07 00 39 25 00 00 00 00 00 FA 0C 6B [14:37:19]RasterBufferAndPrint [14:37:19]line [14:37:19]line [14:37:19]line [14:37:19]line [14:37:19]line [14:37:19]written 0, free lines is 3328 [14:37:19]MH_Cut [14:37:19]Write to MH i2c: D1 01 00 40 25 01 37 [14:37:19]Write i2c OK [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: D1 [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: D1 01 00 [14:37:19]MH_I2C_Read... [14:37:19]Read from MH i2c: D1 01 00 40 25 00 36 [14:37:19]Write to MH i2c: 01 00 00 41 25 66 [14:37:19]Write i2c OK [14:37:19]MH_I2C_Read... [14:37:20]OFD Sender: No OFD packet to send [14:37:20]*** Cut start [14:37:20]*** Partial cut [14:37:20]*** CUTSNS_PIN = 1 [14:37:20]*** CUTSNS_PIN = 0 [14:37:20]*** Brake cut motor [14:37:21]Read from MH i2c: 01 [14:37:21]MH_I2C_Read... [14:37:21]*** Stop cut motor [14:37:21]*** Cut end [14:37:21]Read from MH i2c: 01 07 00 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: 01 07 00 41 25 00 00 00 00 00 FF 0F 7B [14:37:21]process_action close_receipt done [14:37:21]requested_data is exist [14:37:21]produce_requested_data [14:37:21]requested_item fm.sn is exist - process it [14:37:21]wFMCommunicate request_size=4 [14:37:21]MH_SAM_APDU [14:37:21]CAPDU: 80 11 00 00 [14:37:21]Write to MH i2c: E2 08 00 42 25 80 11 00 00 00 00 00 00 E1 [14:37:21]Write i2c OK [14:37:21]MH_I2C_Read... [14:37:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:21]Read from MH i2c: E2 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 17 00 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 17 00 42 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3C [14:37:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:37:21]wFMCommunicate OK [14:37:21]requested_item fd.num is exist - process it [14:37:21]SAM_PROTO_GetFieldsCounters [14:37:21]wFMCommunicate request_size=4 [14:37:21]MH_SAM_APDU [14:37:21]CAPDU: 80 13 00 00 [14:37:21]Write to MH i2c: E2 08 00 43 25 80 13 00 00 00 00 00 00 E4 [14:37:21]Write i2c OK [14:37:21]MH_I2C_Read... [14:37:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:21]Read from MH i2c: E2 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 62 00 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 62 00 43 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 17 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [14: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 17 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:21]wFMCommunicate OK [14:37:21]SAM_PROTO_GetFieldsCounters done [14:37:21]requested_item shift.num is exist - process it [14:37:21]requested_item shift.opened is exist - process it [14:37:21]req_shift_opened [14:37:21]FM_GetShiftState [14:37:21]SAM_PROTO_GetShiftState [14:37:21]wFMCommunicate request_size=4 [14:37:21]MH_SAM_APDU [14:37:21]CAPDU: 80 13 01 00 [14:37:21]Write to MH i2c: E2 08 00 44 25 80 13 01 00 00 00 00 00 E6 [14:37:21]Write i2c OK [14:37:21]MH_I2C_Read... [14:37:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:21]Read from MH i2c: E2 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 0E 00 [14:37:21]MH_I2C_Read... [14:37:21]Read from MH i2c: E2 0E 00 44 25 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 35 [14:37:21]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:37:21]wFMCommunicate OK [14:37:21]SAM_PROTO_GetShiftState done [14:37:21]FM_GetShiftState done [14:37:21]req_shift_opened done [14:37:21]requested_item shift.open_date is exist - process it [14:37:21]req_shift_open_date [14:37:21]req_shift_open_date done [14:37:21]produce_requested_data done [14:37:21]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31767,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:37:21]process_action_free close_receipt [14:37:21]json_value_free [14:37:21]json_value_free done [14:37:21]process_json_proto returns [14:37:21]Send response to host [14:37:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31767,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:37:21]free response buf [14:37:21]execute_script done [14:37:21]execute_script returns [14:37:21]free content buf [14:37:21]Sock 9.Close socket [14:37:21]Sock 9.Thread stoped [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:50]OFD Sender: No OFD packet to send [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:45]OFD Sender: No OFD packet to send [14:43:50]OFD Sender: No OFD packet to send [14:43:55]OFD Sender: No OFD packet to send [14:44:00]OFD Sender: No OFD packet to send [14:44:05]OFD Sender: No OFD packet to send [14:44:10]OFD Sender: No OFD packet to send [14:44:15]OFD Sender: No OFD packet to send [14:44:20]OFD Sender: No OFD packet to send [14:44:25]OFD Sender: No OFD packet to send [14:44:30]OFD Sender: No OFD packet to send [14:44:35]OFD Sender: No OFD packet to send [14:44:40]OFD Sender: No OFD packet to send [14:44:45]OFD Sender: No OFD packet to send [14:44:50]OFD Sender: No OFD packet to send [14:44:55]OFD Sender: No OFD packet to send [14:45:00]OFD Sender: No OFD packet to send [14:45:05]OFD Sender: No OFD packet to send [14:45:10]OFD Sender: No OFD packet to send [14:45:15]OFD Sender: No OFD packet to send [14:45:20]OFD Sender: No OFD packet to send [14:45:25]OFD Sender: No OFD packet to send [14:45:30]OFD Sender: No OFD packet to send [14:45:35]OFD Sender: No OFD packet to send [14:45:40]OFD Sender: No OFD packet to send [14:45:45]OFD Sender: No OFD packet to send [14:45:50]OFD Sender: No OFD packet to send [14:45:55]OFD Sender: No OFD packet to send [14:46:00]OFD Sender: No OFD packet to send [14:46:05]OFD Sender: No OFD packet to send [14:46:10]OFD Sender: No OFD packet to send [14:46:15]OFD Sender: No OFD packet to send [14:46:20]OFD Sender: No OFD packet to send [14:46:25]OFD Sender: No OFD packet to send [14:46:30]OFD Sender: No OFD packet to send [14:46:35]OFD Sender: No OFD packet to send [14:46:40]OFD Sender: No OFD packet to send [14:46:45]OFD Sender: No OFD packet to send [14:46:50]OFD Sender: No OFD packet to send [14:46:55]OFD Sender: No OFD packet to send [14:47:00]OFD Sender: No OFD packet to send [14:47:05]OFD Sender: No OFD packet to send [14:47:10]OFD Sender: No OFD packet to send [14:47:15]OFD Sender: No OFD packet to send [14:47:20]OFD Sender: No OFD packet to send [14:47:25]OFD Sender: No OFD packet to send [14:47:30]OFD Sender: No OFD packet to send [14:47:35]OFD Sender: No OFD packet to send [14:47:40]OFD Sender: No OFD packet to send [14:47:45]OFD Sender: No OFD packet to send [14:47:50]OFD Sender: No OFD packet to send [14:47:55]OFD Sender: No OFD packet to send [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:15]OFD Sender: No OFD packet to send [14:51:20]OFD Sender: No OFD packet to send [14:51:25]OFD Sender: No OFD packet to send [14:51:30]OFD Sender: No OFD packet to send [14:51:35]OFD Sender: No OFD packet to send [14:51:40]OFD Sender: No OFD packet to send [14:51:45]OFD Sender: No OFD packet to send [14:51:50]OFD Sender: No OFD packet to send [14:51:55]OFD Sender: No OFD packet to send [14:52:00]OFD Sender: No OFD packet to send [14:52:05]OFD Sender: No OFD packet to send [14:52:10]OFD Sender: No OFD packet to send [14:52:15]OFD Sender: No OFD packet to send [14:52:20]OFD Sender: No OFD packet to send [14:52:25]OFD Sender: No OFD packet to send [14:52:30]OFD Sender: No OFD packet to send [14:52:35]OFD Sender: No OFD packet to send [14:52:40]OFD Sender: No OFD packet to send [14:52:45]OFD Sender: No OFD packet to send [14:52:50]OFD Sender: No OFD packet to send [14:52:55]OFD Sender: No OFD packet to send [14:53:00]OFD Sender: No OFD packet to send [14:53:05]OFD Sender: No OFD packet to send [14:53:10]OFD Sender: No OFD packet to send [14:53:15]OFD Sender: No OFD packet to send [14:53:20]OFD Sender: No OFD packet to send [14:53:25]OFD Sender: No OFD packet to send [14:53:30]OFD Sender: No OFD packet to send [14:53:35]OFD Sender: No OFD packet to send [14:53:40]OFD Sender: No OFD packet to send [14:53:45]OFD Sender: No OFD packet to send [14:53:50]OFD Sender: No OFD packet to send [14:53:55]OFD Sender: No OFD packet to send [14:54:00]OFD Sender: No OFD packet to send [14:54:05]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [14:55:25]accept exits with 7 [14:55:25]New connection [14:55:25]New thread 3066821988 created [14:55:25]Thread 3066965348 joined [14:55:25]Waiting for new connection... [14:55:25] Sock 7.Parse request [14:55:25]Sock 7.Check first char [14:55:25]Sock 7.First char is OK [14:55:25]request: POST /json_proto HTTP/1.0 [14:55:25]Method: POST [14:55:25]URL: /json_proto [14:55:25]Method is POST - this is cgi request [14:55:25]url: /json_proto [14:55:25]query_string will be loaded in cgi processing [14:55:25]execute_cgi json_proto POST (null) [14:55:25]execute_cgi path=json_proto method=POST [14:55:25]POST find Content-Length [14:55:25]Host: 172.17.39.68:8080 [14:55:25]Content-Length: 673 [14:55:25]Content-Type: application/json [14:55:25] [14:55:25]POST finish read [14:55:25]Found Content-Length = 673 [14:55:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214349", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:25]execute_script... [14:55:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214349", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:25]POST & json_proto [14:55:25]process_json_proto [14:55:25]json parsed OK: [14:55:25]protocol is kg_v1.0 [14:55:25]action value=close_receipt [14:55:25]process_action close_receipt [14:55:25]cmd_close_receipt [14:55:25]MH_GetDate [14:55:25]Write to MH i2c: F0 00 00 45 25 59 [14:55:25]Write i2c OK [14:55:25]MH_I2C_Read... [14:55:25]Read from MH i2c: F0 [14:55:25]MH_I2C_Read... [14:55:25]Read from MH i2c: F0 09 00 [14:55:25]MH_I2C_Read... [14:55:25]Read from MH i2c: F0 09 00 45 25 00 E2 89 96 66 D6 48 95 66 E2 [14:55:25]GetLastDocTimeStamp 1721140642 [14:55:25]current date 1721141730 [14:55:25]FM_GetShiftState [14:55:25]SAM_PROTO_GetShiftState [14:55:25]wFMCommunicate request_size=4 [14:55:25]MH_SAM_APDU [14:55:25]CAPDU: 80 13 01 00 [14:55:25]Write to MH i2c: E2 08 00 46 25 80 13 01 00 00 00 00 00 E8 [14:55:25]Write i2c OK [14:55:25]MH_I2C_Read... [14:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:25]Read from MH i2c: E2 [14:55:25]MH_I2C_Read... [14:55:25]Read from MH i2c: E2 0E 00 [14:55:25]MH_I2C_Read... [14:55:25]Read from MH i2c: E2 0E 00 46 25 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 37 [14:55:25]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:55:25]wFMCommunicate OK [14:55:25]SAM_PROTO_GetShiftState done [14:55:25]FM_GetShiftState done [14:55:25]opened in 1721088399 [14:55:25]opened+sec_in_day 1721174799 [14:55:25]quantity*price = 700 [14:55:25]sum+1 = 701 [14:55:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 87 16.07.2024 14:55 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31768 ФПД: 232069478669401 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145530&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31768&fm=232069478669401&tin=02508201610067®Number=0000000000098025&sum=700 0 [14:55:26]StoreToDocumentArchive [14:55:26]shift 371 fd 31768 [14:55:26]save to /storage/0371/doc_00031768 [14:55:26]save last doc name /storage/0371/doc_00031768 to /storage/kkm_last_doc_name [14:55:26]save OK [14:55:26]Clear old archive folders... [14:55:26]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:55:26]tlvbuf is 0147C550 [14:55:26]SAM_PROTO_ClearQueue [14:55:26]wFMCommunicate request_size=4 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 09 00 00 [14:55:26]Write to MH i2c: E2 08 00 53 25 80 09 00 00 00 00 00 00 EA [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 53 25 00 90 00 EC [14:55:26]RAPDU: 90 00 [14:55:26]wFMCommunicate OK [14:55:26]SAM_PROTO_ClearQueue done [14:55:26]KKMCreateOFDPacket [14:55:26]OFDProtocolAddRootSTLVToBuf [14:55:26]FM_MakeSignedData [14:55:26]FM_MakeSignedData [14:55:26]SAM_PROTO_SignData [14:55:26]wFMCommunicate request_size=4 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 0D 01 02 [14:55:26]Write to MH i2c: E2 08 00 54 25 80 0D 01 02 00 00 00 00 F2 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 54 25 00 90 00 ED [14:55:26]RAPDU: 90 00 [14:55:26]wFMCommunicate OK [14:55:26]wFMCommunicate request_size=255 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 E2 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [14:55:26]Write to MH i2c: E2 02 01 55 25 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 E2 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 66 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 55 25 00 90 00 EE [14:55:26]RAPDU: 90 00 [14:55:26]wFMCommunicate OK [14:55:26]wFMCommunicate request_size=46 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 18 7C 00 00 35 04 06 00 D3 10 E2 D6 DC 59 [14:55:26]Write to MH i2c: E2 31 00 56 25 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 18 7C 00 00 35 04 06 00 D3 10 E2 D6 DC 59 00 00 E6 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 03 00 56 25 00 90 00 EF [14:55:26]RAPDU: 90 00 [14:55:26]wFMCommunicate OK [14:55:26]wFMCommunicate request_size=4 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 0D 03 02 [14:55:26]Write to MH i2c: E2 08 00 57 25 80 0D 03 02 00 00 00 00 F7 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 0B 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 0B 00 57 25 00 CD A7 69 16 0A 41 F2 D6 90 00 FE [14:55:26]RAPDU: CD A7 69 16 0A 41 F2 D6 90 00 [14:55:26]wFMCommunicate OK [14:55:26]SAM_PROTO_SignData done [14:55:26]FM_MakeSignedData done [14:55:26]CreateOFDProtocolMessage [14:55:26]wFMCommunicate request_size=4 [14:55:26]MH_SAM_APDU [14:55:26]CAPDU: 80 11 00 00 [14:55:26]Write to MH i2c: E2 08 00 58 25 80 11 00 00 00 00 00 00 F7 [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:26]Read from MH i2c: E2 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 17 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: E2 17 00 58 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 52 [14:55:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:55:26]wFMCommunicate OK [14:55:26]CreateOFDProtocolMessage done [14:55:26]OFDSenderStorePacket 31768 [14:55:26]StoreOFDPacket docnum=31768 [14:55:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 10 36 2B 01 EA 46 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 E2 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 18 7C 00 00 35 04 06 00 D3 10 E2 D6 DC 59 CD A7 69 16 0A 41 F2 D6 [14:55:26]CheckFolder [14:55:26]dirname=/storage/ofd_packets [14:55:26]CheckFolder done [14:55:26]ProducePacketName [14:55:26]name=ofd_packets/00031768 [14:55:26]NVStorageSaveData ofd_packets/00031768 [14:55:26]File name is /storage/ofd_packets/00031768 [14:55:26]Write 337 bytes [14:55:26]NVStorageSaveData done [14:55:26]OFDSenderStorePacket done [14:55:26]KKMCreateOFDPacket done [14:55:26]NVStorageSaveData kkm_last_timestamp [14:55:26]File name is /storage/kkm_last_timestamp [14:55:26]Write 4 bytes [14:55:26]NVStorageSaveData done [14:55:26]ExternCall_PrintAddStr [14:55:26]wPrintStart [14:55:26]Write to MH i2c: 01 00 00 59 25 7E [14:55:26]Write i2c OK [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: 01 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: 01 07 00 [14:55:26]MH_I2C_Read... [14:55:26]Read from MH i2c: 01 07 00 59 25 00 00 00 00 00 FF 0F 93 [14:55:26]RasterBufferAndPrint [14:55:26]line Счет N : (3)214349 [14:55:26]line ИНН: 02508201610067 [14:55:26]line Контрольно-Кассовый Чек [14:55:26]line ПРОДАЖА [14:55:26]line Товар: 2000053020015 [14:55:26]line Бумажные стаканы 250мл 1шт [14:55:26]line 1.000 * 7.00 [14:55:26]line = 7.00 [14:55:26]line НДС 12% НСП 1% [14:55:26]line > о реализуемом товаре [14:55:26]line ИТОГО: 7.00 [14:55:26]line НСП 1% : 0.06 [14:55:26]line НДС 12% : 0.74 [14:55:26]line Наличными: 7.00 [14:55:26]line Безнал.: 0.00 [14:55:26]line Место: АЗС № 140 "Партнер Нефть" [14:55:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:55:26]line СНО: Общий режим [14:55:26]line Чек 87 16.07.2024 14:55 [14:55:26]line Смена: 371 ФФД: 1.0 [14:55:26]line ЗНМ: 0300000189 [14:55:26]line РНМ: 0000000000098025 [14:55:26]line Версия ККМ: 001 [14:55:26]line ФМ: 0000000000965389 [14:55:26]line ФД: 31768 [14:55:26]line ФПД: 232069478669401 [14:55:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145530&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31768&fm=232069478669401&tin=02508201610067®Number=0000000000098025&sum=700 [14:55:27]line 0 [14:55:27]OFD Sender: Processing packet 31768 [packets to send 6, broken 5] [14:55:27]ProducePacketName [14:55:27]name=ofd_packets/00031768 [14:55:27]OFD Sender: To server: pG, [14:55:27]CommunicateWithHost lk.salyk.kg:30040 [14:55:27]ConnectInit lk.salyk.kg [14:55:27]written 0, free lines is 4095 [14:55:27]Connected sock=10 [14:55:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 10 36 2B 01 EA 46 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 E2 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 18 7C 00 00 35 04 06 00 D3 10 E2 D6 DC 59 CD A7 69 16 0A 41 F2 D6 [14:55:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 49 E8 47 00 4F 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 35 33 38 39 10 04 04 00 18 7C 00 00 F4 03 04 00 EF 35 96 66 B6 04 01 00 00 92 32 17 B2 D2 57 33 55 [14:55:27]CommunicateWithHost err = 0 [14:55:27]CheckOFDResponse [14:55:27]1017 (14) - 77093643461234 [14:55:27]1041 (16) - 0000000000965389 [14:55:27]1040 (4) - 31768 [14:55:27]1012 (4) - 16.07.2024 08:57 [14:55:27]1206 (1) - 0 [14:55:27]OFD Sender: Remove packet 31768 [14:55:27]ProducePacketName [14:55:27]name=ofd_packets/00031768 [14:55:27]NVStorageDeleteData [14:55:27]Write to MH i2c: 01 00 00 82 25 A7 [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: 01 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: 01 07 00 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: 01 07 00 82 25 00 00 00 00 00 E3 0C 9D [14:55:27]RasterBufferAndPrint [14:55:27]line [14:55:27]line [14:55:27]line [14:55:27]line [14:55:27]line [14:55:27]written 0, free lines is 3308 [14:55:27]MH_Cut [14:55:27]Write to MH i2c: D1 01 00 89 25 01 80 [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: D1 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: D1 01 00 [14:55:27]MH_I2C_Read... [14:55:27]Read from MH i2c: D1 01 00 89 25 00 7F [14:55:27]Write to MH i2c: 01 00 00 8A 25 AF [14:55:27]Write i2c OK [14:55:27]MH_I2C_Read... [14:55:28]OFD Sender: No OFD packet to send [14:55:28]*** Cut start [14:55:28]*** Partial cut [14:55:28]*** CUTSNS_PIN = 1 [14:55:28]*** CUTSNS_PIN = 0 [14:55:28]*** Brake cut motor [14:55:29]Read from MH i2c: 01 [14:55:29]MH_I2C_Read... [14:55:29]*** Stop cut motor [14:55:29]*** Cut end [14:55:29]Read from MH i2c: 01 07 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: 01 07 00 8A 25 00 00 00 00 00 FF 0F C4 [14:55:29]process_action close_receipt done [14:55:29]requested_data is exist [14:55:29]produce_requested_data [14:55:29]requested_item fm.sn is exist - process it [14:55:29]wFMCommunicate request_size=4 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 11 00 00 [14:55:29]Write to MH i2c: E2 08 00 8B 25 80 11 00 00 00 00 00 00 2A [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:29]Read from MH i2c: E2 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 17 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 17 00 8B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 85 [14:55:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:55:29]wFMCommunicate OK [14:55:29]requested_item fd.num is exist - process it [14:55:29]SAM_PROTO_GetFieldsCounters [14:55:29]wFMCommunicate request_size=4 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 13 00 00 [14:55:29]Write to MH i2c: E2 08 00 8C 25 80 13 00 00 00 00 00 00 2D [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:29]Read from MH i2c: E2 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 62 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 62 00 8C 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 18 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [14:55: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 18 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:29]wFMCommunicate OK [14:55:29]SAM_PROTO_GetFieldsCounters done [14:55:29]requested_item shift.num is exist - process it [14:55:29]requested_item shift.opened is exist - process it [14:55:29]req_shift_opened [14:55:29]FM_GetShiftState [14:55:29]SAM_PROTO_GetShiftState [14:55:29]wFMCommunicate request_size=4 [14:55:29]MH_SAM_APDU [14:55:29]CAPDU: 80 13 01 00 [14:55:29]Write to MH i2c: E2 08 00 8D 25 80 13 01 00 00 00 00 00 2F [14:55:29]Write i2c OK [14:55:29]MH_I2C_Read... [14:55:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:29]Read from MH i2c: E2 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 0E 00 [14:55:29]MH_I2C_Read... [14:55:29]Read from MH i2c: E2 0E 00 8D 25 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 7E [14:55:29]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:55:29]wFMCommunicate OK [14:55:29]SAM_PROTO_GetShiftState done [14:55:29]FM_GetShiftState done [14:55:29]req_shift_opened done [14:55:29]requested_item shift.open_date is exist - process it [14:55:29]req_shift_open_date [14:55:29]req_shift_open_date done [14:55:29]produce_requested_data done [14:55:29]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31768,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:55:29]process_action_free close_receipt [14:55:29]json_value_free [14:55:29]json_value_free done [14:55:29]process_json_proto returns [14:55:29]Send response to host [14:55:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31768,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:55:29]free response buf [14:55:29]execute_script done [14:55:29]execute_script returns [14:55:29]free content buf [14:55:29]Sock 7.Close socket [14:55:29]Sock 7.Thread stoped [14:55:30]accept exits with 9 [14:55:30]New connection [14:55:30]New thread 3066965348 created [14:55:30]Thread 3066821988 joined [14:55:30]Waiting for new connection... [14:55:30] Sock 9.Parse request [14:55:30]Sock 9.Check first char [14:55:30]Sock 9.First char is OK [14:55:30]request: POST /json_proto HTTP/1.0 [14:55:30]Method: POST [14:55:30]URL: /json_proto [14:55:30]Method is POST - this is cgi request [14:55:30]url: /json_proto [14:55:30]query_string will be loaded in cgi processing [14:55:30]execute_cgi json_proto POST (null) [14:55:30]execute_cgi path=json_proto method=POST [14:55:30]POST find Content-Length [14:55:30]Host: 172.17.39.68:8080 [14:55:30]Content-Length: 673 [14:55:30]Content-Type: application/json [14:55:30] [14:55:30]POST finish read [14:55:30]Found Content-Length = 673 [14:55:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214350", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:30]execute_script... [14:55: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)214350", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:30]POST & json_proto [14:55:30]process_json_proto [14:55:30]json parsed OK: [14:55:30]protocol is kg_v1.0 [14:55:30]action value=close_receipt [14:55:30]process_action close_receipt [14:55:30]cmd_close_receipt [14:55:30]MH_GetDate [14:55:30]Write to MH i2c: F0 00 00 8E 25 A2 [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: F0 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: F0 09 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: F0 09 00 8E 25 00 E7 89 96 66 D6 48 95 66 30 [14:55:30]GetLastDocTimeStamp 1721141730 [14:55:30]current date 1721141735 [14:55:30]FM_GetShiftState [14:55:30]SAM_PROTO_GetShiftState [14:55:30]wFMCommunicate request_size=4 [14:55:30]MH_SAM_APDU [14:55:30]CAPDU: 80 13 01 00 [14:55:30]Write to MH i2c: E2 08 00 8F 25 80 13 01 00 00 00 00 00 31 [14:55:30]Write i2c OK [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 [14:55:30]MH_I2C_Read... [14:55:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:30]Read from MH i2c: E2 0E 00 [14:55:30]MH_I2C_Read... [14:55:30]Read from MH i2c: E2 0E 00 8F 25 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 80 [14:55:30]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:55:30]wFMCommunicate OK [14:55:30]SAM_PROTO_GetShiftState done [14:55:30]FM_GetShiftState done [14:55:30]opened in 1721088399 [14:55:30]opened+sec_in_day 1721174799 [14:55:30]quantity*price = 700 [14:55:30]sum+1 = 701 [14:55:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 88 16.07.2024 14:55 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31769 ФПД: 256234524561196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145535&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31769&fm=256234524561196&tin=02508201610067®Number=0000000000098025&sum=700 0 [14:55:31]StoreToDocumentArchive [14:55:31]shift 371 fd 31769 [14:55:31]save to /storage/0371/doc_00031769 [14:55:31]save last doc name /storage/0371/doc_00031769 to /storage/kkm_last_doc_name [14:55:31]save OK [14:55:31]Clear old archive folders... [14:55:31]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:55:31]tlvbuf is 01512D70 [14:55:31]SAM_PROTO_ClearQueue [14:55:31]wFMCommunicate request_size=4 [14:55:31]MH_SAM_APDU [14:55:31]CAPDU: 80 09 00 00 [14:55:31]Write to MH i2c: E2 08 00 9C 25 80 09 00 00 00 00 00 00 33 [14:55:31]Write i2c OK [14:55:31]MH_I2C_Read... [14:55:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:31]Read from MH i2c: E2 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: E2 03 00 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: E2 03 00 9C 25 00 90 00 35 [14:55:31]RAPDU: 90 00 [14:55:31]wFMCommunicate OK [14:55:31]SAM_PROTO_ClearQueue done [14:55:31]KKMCreateOFDPacket [14:55:31]OFDProtocolAddRootSTLVToBuf [14:55:31]FM_MakeSignedData [14:55:31]FM_MakeSignedData [14:55:31]SAM_PROTO_SignData [14:55:31]wFMCommunicate request_size=4 [14:55:31]MH_SAM_APDU [14:55:31]CAPDU: 80 0D 01 02 [14:55:31]Write to MH i2c: E2 08 00 9D 25 80 0D 01 02 00 00 00 00 3B [14:55:31]Write i2c OK [14:55:31]MH_I2C_Read... [14:55:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:31]Read from MH i2c: E2 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: E2 03 00 [14:55:31]MH_I2C_Read... [14:55:31]Read from MH i2c: E2 03 00 9D 25 00 90 00 36 [14:55:31]RAPDU: 90 00 [14:55:31]wFMCommunicate OK [14:55:31]wFMCommunicate request_size=255 [14:55:31]MH_SAM_APDU [14:55:31]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 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 E7 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [14:55:31]Write to MH i2c: E2 02 01 9E 25 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 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 E7 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 B5 [14:55:31]Write i2c OK [14:55:31]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 0D 02 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 9E 25 00 90 00 37 [14:55:32]RAPDU: 90 00 [14:55:32]wFMCommunicate OK [14:55:32]wFMCommunicate request_size=46 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 19 7C 00 00 35 04 06 00 E9 0B 3F D0 CF 2C [14:55:32]Write to MH i2c: E2 31 00 9F 25 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 19 7C 00 00 35 04 06 00 E9 0B 3F D0 CF 2C 00 00 5E [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 0D 02 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 9F 25 00 90 00 38 [14:55:32]RAPDU: 90 00 [14:55:32]wFMCommunicate OK [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 0D 03 02 [14:55:32]Write to MH i2c: E2 08 00 A0 25 80 0D 03 02 00 00 00 00 40 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 0B 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 0B 00 A0 25 00 52 44 8A EE 38 0D 04 7B 90 00 13 [14:55:32]RAPDU: 52 44 8A EE 38 0D 04 7B 90 00 [14:55:32]wFMCommunicate OK [14:55:32]SAM_PROTO_SignData done [14:55:32]FM_MakeSignedData done [14:55:32]CreateOFDProtocolMessage [14:55:32]wFMCommunicate request_size=4 [14:55:32]MH_SAM_APDU [14:55:32]CAPDU: 80 11 00 00 [14:55:32]Write to MH i2c: E2 08 00 A1 25 80 11 00 00 00 00 00 00 40 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:32]Read from MH i2c: E2 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 17 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: E2 17 00 A1 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9B [14:55:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:55:32]wFMCommunicate OK [14:55:32]CreateOFDProtocolMessage done [14:55:32]OFDSenderStorePacket 31769 [14:55:32]StoreOFDPacket docnum=31769 [14:55:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 48 9D 2B 01 0F CD 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 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 E7 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 19 7C 00 00 35 04 06 00 E9 0B 3F D0 CF 2C 52 44 8A EE 38 0D 04 7B [14:55:32]CheckFolder [14:55:32]dirname=/storage/ofd_packets [14:55:32]CheckFolder done [14:55:32]ProducePacketName [14:55:32]name=ofd_packets/00031769 [14:55:32]NVStorageSaveData ofd_packets/00031769 [14:55:32]File name is /storage/ofd_packets/00031769 [14:55:32]Write 337 bytes [14:55:32]NVStorageSaveData done [14:55:32]OFDSenderStorePacket done [14:55:32]KKMCreateOFDPacket done [14:55:32]NVStorageSaveData kkm_last_timestamp [14:55:32]File name is /storage/kkm_last_timestamp [14:55:32]Write 4 bytes [14:55:32]NVStorageSaveData done [14:55:32]ExternCall_PrintAddStr [14:55:32]wPrintStart [14:55:32]Write to MH i2c: 01 00 00 A2 25 C7 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 07 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 07 00 A2 25 00 00 00 00 00 FF 0F DC [14:55:32]RasterBufferAndPrint [14:55:32]line Счет N : (3)214350 [14:55:32]line ИНН: 02508201610067 [14:55:32]line Контрольно-Кассовый Чек [14:55:32]line ПРОДАЖА [14:55:32]line Товар: 2000053020015 [14:55:32]line Бумажные стаканы 250мл 1шт [14:55:32]line 1.000 * 7.00 [14:55:32]line = 7.00 [14:55:32]line НДС 12% НСП 1% [14:55:32]line > о реализуемом товаре [14:55:32]line ИТОГО: 7.00 [14:55:32]line НСП 1% : 0.06 [14:55:32]line НДС 12% : 0.74 [14:55:32]line Наличными: 7.00 [14:55:32]line Безнал.: 0.00 [14:55:32]line Место: АЗС № 140 "Партнер Нефть" [14:55:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:55:32]line СНО: Общий режим [14:55:32]line Чек 88 16.07.2024 14:55 [14:55:32]line Смена: 371 ФФД: 1.0 [14:55:32]line ЗНМ: 0300000189 [14:55:32]line РНМ: 0000000000098025 [14:55:32]line Версия ККМ: 001 [14:55:32]line ФМ: 0000000000965389 [14:55:32]line ФД: 31769 [14:55:32]line ФПД: 256234524561196 [14:55:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145535&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31769&fm=256234524561196&tin=02508201610067®Number=0000000000098025&sum=700 [14:55:32]line 0 [14:55:32]written 0, free lines is 4095 [14:55:32]OFD Sender: Processing packet 31769 [packets to send 6, broken 5] [14:55:32]ProducePacketName [14:55:32]name=ofd_packets/00031769 [14:55:32]OFD Sender: To server: pG, [14:55:32]CommunicateWithHost lk.salyk.kg:30040 [14:55:32]ConnectInit lk.salyk.kg [14:55:32]Connected sock=10 [14:55:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 48 9D 2B 01 0F CD 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 00 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 E7 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 19 7C 00 00 35 04 06 00 E9 0B 3F D0 CF 2C 52 44 8A EE 38 0D 04 7B [14:55:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 AC B9 47 00 B5 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 19 7C 00 00 F4 03 04 00 F4 35 96 66 B6 04 01 00 00 40 03 86 15 73 11 7A 81 [14:55:32]CommunicateWithHost err = 0 [14:55:32]CheckOFDResponse [14:55:32]1017 (14) - 77093643461234 [14:55:32]1041 (16) - 0000000000965389 [14:55:32]1040 (4) - 31769 [14:55:32]1012 (4) - 16.07.2024 08:57 [14:55:32]1206 (1) - 0 [14:55:32]OFD Sender: Remove packet 31769 [14:55:32]ProducePacketName [14:55:32]name=ofd_packets/00031769 [14:55:32]NVStorageDeleteData [14:55:32]Write to MH i2c: 01 00 00 CB 25 F0 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 07 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: 01 07 00 CB 25 00 00 00 00 00 DF 0C E2 [14:55:32]RasterBufferAndPrint [14:55:32]line [14:55:32]line [14:55:32]line [14:55:32]line [14:55:32]line [14:55:32]written 0, free lines is 3310 [14:55:32]MH_Cut [14:55:32]Write to MH i2c: D1 01 00 D2 25 01 C9 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: D1 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: D1 01 00 [14:55:32]MH_I2C_Read... [14:55:32]Read from MH i2c: D1 01 00 D2 25 00 C8 [14:55:32]Write to MH i2c: 01 00 00 D3 25 F8 [14:55:32]Write i2c OK [14:55:32]MH_I2C_Read... [14:55:33]OFD Sender: No OFD packet to send [14:55:33]*** Cut start [14:55:33]*** Partial cut [14:55:33]*** CUTSNS_PIN = 1 [14:55:33]*** CUTSNS_PIN = 0 [14:55:33]*** Brake cut motor [14:55:34]Read from MH i2c: 01 [14:55:34]MH_I2C_Read... [14:55:34]*** Stop cut motor [14:55:34]*** Cut end [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 D3 25 00 00 00 00 00 FF 0F 0D [14:55:34]process_action close_receipt done [14:55:34]requested_data is exist [14:55:34]produce_requested_data [14:55:34]requested_item fm.sn is exist - process it [14:55:34]wFMCommunicate request_size=4 [14:55:34]MH_SAM_APDU [14:55:34]CAPDU: 80 11 00 00 [14:55:34]Write to MH i2c: E2 08 00 D4 25 80 11 00 00 00 00 00 00 73 [14:55:34]Write i2c OK [14:55:34]MH_I2C_Read... [14:55:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:34]Read from MH i2c: E2 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: E2 17 00 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: E2 17 00 D4 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CE [14:55:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:55:34]wFMCommunicate OK [14:55:34]requested_item fd.num is exist - process it [14:55:34]SAM_PROTO_GetFieldsCounters [14:55:34]wFMCommunicate request_size=4 [14:55:34]MH_SAM_APDU [14:55:34]CAPDU: 80 13 00 00 [14:55:34]Write to MH i2c: E2 08 00 D5 25 80 13 00 00 00 00 00 00 76 [14:55:34]Write i2c OK [14:55:34]MH_I2C_Read... [14:55:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:34]Read from MH i2c: E2 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: E2 62 00 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: E2 62 00 D5 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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 19 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [14:55:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 19 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:34]wFMCommunicate OK [14:55:34]SAM_PROTO_GetFieldsCounters done [14:55:34]requested_item shift.num is exist - process it [14:55:34]requested_item shift.opened is exist - process it [14:55:34]req_shift_opened [14:55:34]FM_GetShiftState [14:55:34]SAM_PROTO_GetShiftState [14:55:34]wFMCommunicate request_size=4 [14:55:34]MH_SAM_APDU [14:55:34]CAPDU: 80 13 01 00 [14:55:34]Write to MH i2c: E2 08 00 D6 25 80 13 01 00 00 00 00 00 78 [14:55:34]Write i2c OK [14:55:34]MH_I2C_Read... [14:55:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:34]Read from MH i2c: E2 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: E2 0E 00 [14:55:34]MH_I2C_Read... [14:55:34]Read from MH i2c: E2 0E 00 D6 25 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C7 [14:55:34]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:55:34]wFMCommunicate OK [14:55:34]SAM_PROTO_GetShiftState done [14:55:34]FM_GetShiftState done [14:55:34]req_shift_opened done [14:55:34]requested_item shift.open_date is exist - process it [14:55:34]req_shift_open_date [14:55:34]req_shift_open_date done [14:55:34]produce_requested_data done [14:55:34]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31769,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:55:34]process_action_free close_receipt [14:55:34]json_value_free [14:55:34]json_value_free done [14:55:34]process_json_proto returns [14:55:34]Send response to host [14:55:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31769,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:55:34]free response buf [14:55:34]execute_script done [14:55:34]execute_script returns [14:55:34]free content buf [14:55:34]Sock 9.Close socket [14:55:34]Sock 9.Thread stoped [14:55:36]accept exits with 7 [14:55:36]New connection [14:55:36]New thread 3066821988 created [14:55:36]Thread 3066965348 joined [14:55:36]Waiting for new connection... [14:55:36] Sock 7.Parse request [14:55:36]Sock 7.Check first char [14:55:36]Sock 7.First char is OK [14:55:36]request: POST /json_proto HTTP/1.0 [14:55:36]Method: POST [14:55:36]URL: /json_proto [14:55:36]Method is POST - this is cgi request [14:55:36]url: /json_proto [14:55:36]query_string will be loaded in cgi processing [14:55:36]execute_cgi json_proto POST (null) [14:55:36]execute_cgi path=json_proto method=POST [14:55:36]POST find Content-Length [14:55:36]Host: 172.17.39.68:8080 [14:55:36]Content-Length: 673 [14:55:36]Content-Type: application/json [14:55:36] [14:55:36]POST finish read [14:55:36]Found Content-Length = 673 [14:55:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214351", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:36]execute_script... [14:55: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)214351", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:36]POST & json_proto [14:55:36]process_json_proto [14:55:36]json parsed OK: [14:55:36]protocol is kg_v1.0 [14:55:36]action value=close_receipt [14:55:36]process_action close_receipt [14:55:36]cmd_close_receipt [14:55:36]MH_GetDate [14:55:36]Write to MH i2c: F0 00 00 D7 25 EB [14:55:36]Write i2c OK [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: F0 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: F0 09 00 [14:55:36]MH_I2C_Read... [14:55:36]Read from MH i2c: F0 09 00 D7 25 00 ED 89 96 66 D6 48 95 66 7F [14:55:36]GetLastDocTimeStamp 1721141735 [14:55:36]current date 1721141741 [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 D8 25 80 13 01 00 00 00 00 00 7A [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 D8 25 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C9 [14:55:36]RAPDU: 09 00 01 8F B9 95 66 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]opened in 1721088399 [14:55:36]opened+sec_in_day 1721174799 [14:55:36]quantity*price = 700 [14:55:36]sum+1 = 701 [14:55:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 89 16.07.2024 14:55 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31770 ФПД: 146422694312078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145541&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31770&fm=146422694312078&tin=02508201610067®Number=0000000000098025&sum=700 0 [14:55:37]StoreToDocumentArchive [14:55:37]shift 371 fd 31770 [14:55:37]save to /storage/0371/doc_00031770 [14:55:37]save last doc name /storage/0371/doc_00031770 to /storage/kkm_last_doc_name [14:55:37]save OK [14:55:37]Clear old archive folders... [14:55:37]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:55:37]tlvbuf is 01583630 [14:55:37]SAM_PROTO_ClearQueue [14:55:37]wFMCommunicate request_size=4 [14:55:37]MH_SAM_APDU [14:55:37]CAPDU: 80 09 00 00 [14:55:37]Write to MH i2c: E2 08 00 E5 25 80 09 00 00 00 00 00 00 7C [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:37]Read from MH i2c: E2 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: E2 03 00 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: E2 03 00 E5 25 00 90 00 7E [14:55:37]RAPDU: 90 00 [14:55:37]wFMCommunicate OK [14:55:37]SAM_PROTO_ClearQueue done [14:55:37]KKMCreateOFDPacket [14:55:37]OFDProtocolAddRootSTLVToBuf [14:55:37]FM_MakeSignedData [14:55:37]FM_MakeSignedData [14:55:37]SAM_PROTO_SignData [14:55:37]wFMCommunicate request_size=4 [14:55:37]MH_SAM_APDU [14:55:37]CAPDU: 80 0D 01 02 [14:55:37]Write to MH i2c: E2 08 00 E6 25 80 0D 01 02 00 00 00 00 84 [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:37]Read from MH i2c: E2 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: E2 03 00 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: E2 03 00 E6 25 00 90 00 7F [14:55:37]RAPDU: 90 00 [14:55:37]wFMCommunicate OK [14:55:37]wFMCommunicate request_size=255 [14:55:37]MH_SAM_APDU [14:55:37]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 ED 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [14:55:38]Write to MH i2c: E2 02 01 E7 25 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 ED 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 05 [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]OFD Sender: No OFD packet to send [14:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 E7 25 00 90 00 80 [14:55:38]RAPDU: 90 00 [14:55:38]wFMCommunicate OK [14:55:38]wFMCommunicate request_size=46 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1A 7C 00 00 35 04 06 00 85 2B B0 AE 78 8E [14:55:38]Write to MH i2c: E2 31 00 E8 25 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1A 7C 00 00 35 04 06 00 85 2B B0 AE 78 8E 00 00 BE [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 E8 25 00 90 00 81 [14:55:38]RAPDU: 90 00 [14:55:38]wFMCommunicate OK [14:55:38]wFMCommunicate request_size=4 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 0D 03 02 [14:55:38]Write to MH i2c: E2 08 00 E9 25 80 0D 03 02 00 00 00 00 89 [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 0B 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 0B 00 E9 25 00 11 51 1E 12 02 C4 16 A1 90 00 99 [14:55:38]RAPDU: 11 51 1E 12 02 C4 16 A1 90 00 [14:55:38]wFMCommunicate OK [14:55:38]SAM_PROTO_SignData done [14:55:38]FM_MakeSignedData done [14:55:38]CreateOFDProtocolMessage [14:55:38]wFMCommunicate request_size=4 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 11 00 00 [14:55:38]Write to MH i2c: E2 08 00 EA 25 80 11 00 00 00 00 00 00 89 [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 17 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 17 00 EA 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E4 [14:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:55:38]wFMCommunicate OK [14:55:38]CreateOFDProtocolMessage done [14:55:38]OFDSenderStorePacket 31770 [14:55:38]StoreOFDPacket docnum=31770 [14:55:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 A4 2B 2B 01 0A 32 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 ED 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1A 7C 00 00 35 04 06 00 85 2B B0 AE 78 8E 11 51 1E 12 02 C4 16 A1 [14:55:38]CheckFolder [14:55:38]dirname=/storage/ofd_packets [14:55:38]CheckFolder done [14:55:38]ProducePacketName [14:55:38]name=ofd_packets/00031770 [14:55:38]NVStorageSaveData ofd_packets/00031770 [14:55:38]File name is /storage/ofd_packets/00031770 [14:55:38]Write 337 bytes [14:55:38]NVStorageSaveData done [14:55:38]OFDSenderStorePacket done [14:55:38]KKMCreateOFDPacket done [14:55:38]NVStorageSaveData kkm_last_timestamp [14:55:38]File name is /storage/kkm_last_timestamp [14:55:38]Write 4 bytes [14:55:38]NVStorageSaveData done [14:55:38]ExternCall_PrintAddStr [14:55:38]wPrintStart [14:55:38]Write to MH i2c: 01 00 00 EB 25 10 [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: 01 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: 01 07 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: 01 07 00 EB 25 00 00 00 00 00 FF 0F 25 [14:55:38]RasterBufferAndPrint [14:55:38]line Счет N : (3)214351 [14:55:38]line ИНН: 02508201610067 [14:55:38]line Контрольно-Кассовый Чек [14:55:38]line ПРОДАЖА [14:55:38]line Товар: 2000053020015 [14:55:38]line Бумажные стаканы 250мл 1шт [14:55:38]line 1.000 * 7.00 [14:55:38]line = 7.00 [14:55:38]line НДС 12% НСП 1% [14:55:38]line > о реализуемом товаре [14:55:38]line ИТОГО: 7.00 [14:55:38]line НСП 1% : 0.06 [14:55:38]line НДС 12% : 0.74 [14:55:38]line Наличными: 7.00 [14:55:38]line Безнал.: 0.00 [14:55:38]line Место: АЗС № 140 "Партнер Нефть" [14:55:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:55:38]line СНО: Общий режим [14:55:38]line Чек 89 16.07.2024 14:55 [14:55:38]line Смена: 371 ФФД: 1.0 [14:55:38]line ЗНМ: 0300000189 [14:55:38]line РНМ: 0000000000098025 [14:55:38]line Версия ККМ: 001 [14:55:38]line ФМ: 0000000000965389 [14:55:38]line ФД: 31770 [14:55:38]line ФПД: 146422694312078 [14:55:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145541&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31770&fm=146422694312078&tin=02508201610067®Number=0000000000098025&sum=700 [14:55:38]OFD Sender: Processing packet 31770 [packets to send 6, broken 5] [14:55:38]ProducePacketName [14:55:38]name=ofd_packets/00031770 [14:55:38]OFD Sender: To server: pG, [14:55:38]CommunicateWithHost lk.salyk.kg:30040 [14:55:38]ConnectInit lk.salyk.kg [14:55:38]line 0 [14:55:38]written 0, free lines is 4095 [14:55:38]Connected sock=10 [14:55:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 A4 2B 2B 01 0A 32 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 ED 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1A 7C 00 00 35 04 06 00 85 2B B0 AE 78 8E 11 51 1E 12 02 C4 16 A1 [14:55:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 FC 0B 47 00 BD 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 35 33 38 39 10 04 04 00 1A 7C 00 00 F4 03 04 00 FA 35 96 66 B6 04 01 00 00 93 0C F0 2C 57 FA 83 BA [14:55:39]CommunicateWithHost err = 0 [14:55:39]CheckOFDResponse [14:55:39]1017 (14) - 77093643461234 [14:55:39]1041 (16) - 0000000000965389 [14:55:39]1040 (4) - 31770 [14:55:39]1012 (4) - 16.07.2024 08:57 [14:55:39]1206 (1) - 0 [14:55:39]OFD Sender: Remove packet 31770 [14:55:39]ProducePacketName [14:55:39]name=ofd_packets/00031770 [14:55:39]NVStorageDeleteData [14:55:39]Write to MH i2c: 01 00 00 14 26 3A [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 07 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 07 00 14 26 00 00 00 00 00 DA 0C 27 [14:55:39]RasterBufferAndPrint [14:55:39]line [14:55:39]line [14:55:39]line [14:55:39]line [14:55:39]line [14:55:39]written 0, free lines is 3314 [14:55:39]MH_Cut [14:55:39]Write to MH i2c: D1 01 00 1B 26 01 13 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: D1 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: D1 01 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: D1 01 00 1B 26 00 12 [14:55:39]Write to MH i2c: 01 00 00 1C 26 42 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]OFD Sender: No OFD packet to send [14:55:39]*** Cut start [14:55:39]*** Partial cut [14:55:39]*** CUTSNS_PIN = 1 [14:55:39]*** CUTSNS_PIN = 0 [14:55:40]*** Brake cut motor [14:55:40]Read from MH i2c: 01 [14:55:40]MH_I2C_Read... [14:55:40]*** Stop cut motor [14:55:40]*** Cut end [14:55:40]Read from MH i2c: 01 07 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: 01 07 00 1C 26 00 00 00 00 00 FF 0F 57 [14:55:40]process_action close_receipt done [14:55:40]requested_data is exist [14:55:40]produce_requested_data [14:55:40]requested_item fm.sn is exist - process it [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 11 00 00 [14:55:40]Write to MH i2c: E2 08 00 1D 26 80 11 00 00 00 00 00 00 BD [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 17 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 17 00 1D 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 18 [14:55:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:55:40]wFMCommunicate OK [14:55:40]requested_item fd.num is exist - process it [14:55:40]SAM_PROTO_GetFieldsCounters [14:55:40]wFMCommunicate request_size=4 [14:55:40]MH_SAM_APDU [14:55:40]CAPDU: 80 13 00 00 [14:55:40]Write to MH i2c: E2 08 00 1E 26 80 13 00 00 00 00 00 00 C0 [14:55:40]Write i2c OK [14:55:40]MH_I2C_Read... [14:55:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:40]Read from MH i2c: E2 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 62 00 [14:55:40]MH_I2C_Read... [14:55:40]Read from MH i2c: E2 62 00 1E 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [14:55:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:40]wFMCommunicate OK [14:55:40]SAM_PROTO_GetFieldsCounters done [14:55:40]requested_item shift.num is exist - process it [14:55:40]requested_item shift.opened is exist - process it [14:55:40]req_shift_opened [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 1F 26 80 13 01 00 00 00 00 00 C2 [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 1F 26 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 11 [14:55:40]RAPDU: 09 00 01 8F B9 95 66 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]req_shift_opened done [14:55:40]requested_item shift.open_date is exist - process it [14:55:40]req_shift_open_date [14:55:40]req_shift_open_date done [14:55:40]produce_requested_data done [14:55:40]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31770,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:55:40]process_action_free close_receipt [14:55:40]json_value_free [14:55:40]json_value_free done [14:55:40]process_json_proto returns [14:55:40]Send response to host [14:55:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31770,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:55:40]free response buf [14:55:40]execute_script done [14:55:40]execute_script returns [14:55:40]free content buf [14:55:40]Sock 7.Close socket [14:55:40]Sock 7.Thread stoped [14:55:44]OFD Sender: No OFD packet to send [14:55:49]accept exits with 9 [14:55:49]New connection [14:55:49]New thread 3066965348 created [14:55:49]Thread 3066821988 joined [14:55:49]Waiting for new connection... [14:55:49] Sock 9.Parse request [14:55:49]Sock 9.Check first char [14:55:49]Sock 9.First char is OK [14:55:49]request: POST /json_proto HTTP/1.0 [14:55:49]Method: POST [14:55:49]URL: /json_proto [14:55:49]Method is POST - this is cgi request [14:55:49]url: /json_proto [14:55:49]query_string will be loaded in cgi processing [14:55:49]execute_cgi json_proto POST (null) [14:55:49]execute_cgi path=json_proto method=POST [14:55:49]POST find Content-Length [14:55:49]Host: 172.17.39.68:8080 [14:55:49]Content-Length: 673 [14:55:49]Content-Type: application/json [14:55:49] [14:55:49]POST finish read [14:55:49]Found Content-Length = 673 [14:55:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214352", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:49]execute_script... [14:55: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)214352", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:49]POST & json_proto [14:55:49]process_json_proto [14:55:49]json parsed OK: [14:55:49]protocol is kg_v1.0 [14:55:49]action value=close_receipt [14:55:49]process_action close_receipt [14:55:49]cmd_close_receipt [14:55:49]MH_GetDate [14:55:49]Write to MH i2c: F0 00 00 20 26 35 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: F0 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: F0 09 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: F0 09 00 20 26 00 FA 89 96 66 D6 48 95 66 D6 [14:55:49]GetLastDocTimeStamp 1721141741 [14:55:49]current date 1721141754 [14:55:49]FM_GetShiftState [14:55:49]SAM_PROTO_GetShiftState [14:55:49]wFMCommunicate request_size=4 [14:55:49]MH_SAM_APDU [14:55:49]CAPDU: 80 13 01 00 [14:55:49]Write to MH i2c: E2 08 00 21 26 80 13 01 00 00 00 00 00 C4 [14:55:49]Write i2c OK [14:55:49]MH_I2C_Read... [14:55:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:49]Read from MH i2c: E2 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 0E 00 [14:55:49]MH_I2C_Read... [14:55:49]Read from MH i2c: E2 0E 00 21 26 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 13 [14:55:49]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:55:49]wFMCommunicate OK [14:55:49]SAM_PROTO_GetShiftState done [14:55:49]FM_GetShiftState done [14:55:49]opened in 1721088399 [14:55:49]opened+sec_in_day 1721174799 [14:55:49]quantity*price = 700 [14:55:49]sum+1 = 701 [14:55:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 90 16.07.2024 14:55 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31771 ФПД: 35723818646292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145554&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31771&fm=35723818646292&tin=02508201610067®Number=0000000000098025&sum=700 0 [14:55:50]StoreToDocumentArchive [14:55:50]shift 371 fd 31771 [14:55:50]save to /storage/0371/doc_00031771 [14:55:50]save last doc name /storage/0371/doc_00031771 to /storage/kkm_last_doc_name [14:55:50]save OK [14:55:50]Clear old archive folders... [14:55:50]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:55:50]tlvbuf is 01583230 [14:55:50]SAM_PROTO_ClearQueue [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 09 00 00 [14:55:50]Write to MH i2c: E2 08 00 2E 26 80 09 00 00 00 00 00 00 C6 [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 03 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 03 00 2E 26 00 90 00 C8 [14:55:50]RAPDU: 90 00 [14:55:50]wFMCommunicate OK [14:55:50]SAM_PROTO_ClearQueue done [14:55:50]KKMCreateOFDPacket [14:55:50]OFDProtocolAddRootSTLVToBuf [14:55:50]FM_MakeSignedData [14:55:50]FM_MakeSignedData [14:55:50]SAM_PROTO_SignData [14:55:50]wFMCommunicate request_size=4 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 0D 01 02 [14:55:50]Write to MH i2c: E2 08 00 2F 26 80 0D 01 02 00 00 00 00 CE [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 03 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 03 00 2F 26 00 90 00 C9 [14:55:50]RAPDU: 90 00 [14:55:50]wFMCommunicate OK [14:55:50]wFMCommunicate request_size=255 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 FA 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [14:55:50]Write to MH i2c: E2 02 01 30 26 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 FA 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 5D [14:55:50]Write i2c OK [14:55:50]MH_I2C_Read... [14:55:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:50]Read from MH i2c: E2 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 03 00 [14:55:50]MH_I2C_Read... [14:55:50]Read from MH i2c: E2 03 00 30 26 00 90 00 CA [14:55:50]RAPDU: 90 00 [14:55:50]wFMCommunicate OK [14:55:50]wFMCommunicate request_size=46 [14:55:50]MH_SAM_APDU [14:55:50]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1B 7C 00 00 35 04 06 00 20 7D 99 85 3B 14 [14:55:50]Write to MH i2c: E2 31 00 31 26 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1B 7C 00 00 35 04 06 00 20 7D 99 85 3B 14 00 00 FF [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 03 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 03 00 31 26 00 90 00 CB [14:55:51]RAPDU: 90 00 [14:55:51]wFMCommunicate OK [14:55:51]wFMCommunicate request_size=4 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 0D 03 02 [14:55:51]Write to MH i2c: E2 08 00 32 26 80 0D 03 02 00 00 00 00 D3 [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 0B 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 0B 00 32 26 00 67 AD 8A 1F B6 C5 15 98 90 00 B9 [14:55:51]RAPDU: 67 AD 8A 1F B6 C5 15 98 90 00 [14:55:51]wFMCommunicate OK [14:55:51]SAM_PROTO_SignData done [14:55:51]FM_MakeSignedData done [14:55:51]CreateOFDProtocolMessage [14:55:51]wFMCommunicate request_size=4 [14:55:51]MH_SAM_APDU [14:55:51]CAPDU: 80 11 00 00 [14:55:51]Write to MH i2c: E2 08 00 33 26 80 11 00 00 00 00 00 00 D3 [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 [14:55:51]MH_I2C_Read... [14:55:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:51]Read from MH i2c: E2 17 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: E2 17 00 33 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2E [14:55:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:55:51]wFMCommunicate OK [14:55:51]CreateOFDProtocolMessage done [14:55:51]OFDSenderStorePacket 31771 [14:55:51]StoreOFDPacket docnum=31771 [14:55:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 1F A0 2B 01 C9 96 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 FA 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1B 7C 00 00 35 04 06 00 20 7D 99 85 3B 14 67 AD 8A 1F B6 C5 15 98 [14:55:51]CheckFolder [14:55:51]dirname=/storage/ofd_packets [14:55:51]CheckFolder done [14:55:51]ProducePacketName [14:55:51]name=ofd_packets/00031771 [14:55:51]NVStorageSaveData ofd_packets/00031771 [14:55:51]File name is /storage/ofd_packets/00031771 [14:55:51]Write 337 bytes [14:55:51]NVStorageSaveData done [14:55:51]OFDSenderStorePacket done [14:55:51]KKMCreateOFDPacket done [14:55:51]NVStorageSaveData kkm_last_timestamp [14:55:51]File name is /storage/kkm_last_timestamp [14:55:51]Write 4 bytes [14:55:51]NVStorageSaveData done [14:55:51]ExternCall_PrintAddStr [14:55:51]wPrintStart [14:55:51]Write to MH i2c: 01 00 00 34 26 5A [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: 01 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: 01 07 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: 01 07 00 34 26 00 00 00 00 00 FF 0F 6F [14:55:51]RasterBufferAndPrint [14:55:51]line Счет N : (3)214352 [14:55:51]line ИНН: 02508201610067 [14:55:51]line Контрольно-Кассовый Чек [14:55:51]line ПРОДАЖА [14:55:51]line Товар: 2000053020015 [14:55:51]line Бумажные стаканы 250мл 1шт [14:55:51]line 1.000 * 7.00 [14:55:51]line = 7.00 [14:55:51]line НДС 12% НСП 1% [14:55:51]line > о реализуемом товаре [14:55:51]line ИТОГО: 7.00 [14:55:51]line НСП 1% : 0.06 [14:55:51]line НДС 12% : 0.74 [14:55:51]line Наличными: 7.00 [14:55:51]line Безнал.: 0.00 [14:55:51]line Место: АЗС № 140 "Партнер Нефть" [14:55:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:55:51]line СНО: Общий режим [14:55:51]line Чек 90 16.07.2024 14:55 [14:55:51]line Смена: 371 ФФД: 1.0 [14:55:51]line ЗНМ: 0300000189 [14:55:51]line РНМ: 0000000000098025 [14:55:51]line Версия ККМ: 001 [14:55:51]line ФМ: 0000000000965389 [14:55:51]line ФД: 31771 [14:55:51]line ФПД: 35723818646292 [14:55:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145554&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31771&fm=35723818646292&tin=02508201610067®Number=0000000000098025&sum=700 [14:55:51]line 0 [14:55:51]written 0, free lines is 4095 [14:55:51]OFD Sender: Processing packet 31771 [packets to send 6, broken 5] [14:55:51]ProducePacketName [14:55:51]name=ofd_packets/00031771 [14:55:51]OFD Sender: To server: pG, [14:55:51]CommunicateWithHost lk.salyk.kg:30040 [14:55:51]ConnectInit lk.salyk.kg [14:55:51]Connected sock=10 [14:55:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 1F A0 2B 01 C9 96 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 FA 89 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1B 7C 00 00 35 04 06 00 20 7D 99 85 3B 14 67 AD 8A 1F B6 C5 15 98 [14:55:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 44 97 47 00 E8 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 35 33 38 39 10 04 04 00 1B 7C 00 00 F4 03 04 00 07 36 96 66 B6 04 01 00 00 D6 DE 43 18 FC E9 24 3F [14:55:51]CommunicateWithHost err = 0 [14:55:51]CheckOFDResponse [14:55:51]1017 (14) - 77093643461234 [14:55:51]1041 (16) - 0000000000965389 [14:55:51]1040 (4) - 31771 [14:55:51]1012 (4) - 16.07.2024 08:57 [14:55:51]1206 (1) - 0 [14:55:51]OFD Sender: Remove packet 31771 [14:55:51]ProducePacketName [14:55:51]name=ofd_packets/00031771 [14:55:51]NVStorageDeleteData [14:55:51]Write to MH i2c: 01 00 00 5D 26 83 [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: 01 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: 01 07 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: 01 07 00 5D 26 00 00 00 00 00 4D 0D E4 [14:55:51]RasterBufferAndPrint [14:55:51]line [14:55:51]line [14:55:51]line [14:55:51]line [14:55:51]line [14:55:51]written 0, free lines is 3427 [14:55:51]MH_Cut [14:55:51]Write to MH i2c: D1 01 00 64 26 01 5C [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: D1 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: D1 01 00 [14:55:51]MH_I2C_Read... [14:55:51]Read from MH i2c: D1 01 00 64 26 00 5B [14:55:51]Write to MH i2c: 01 00 00 65 26 8B [14:55:51]Write i2c OK [14:55:51]MH_I2C_Read... [14:55:52]OFD Sender: No OFD packet to send [14:55:52]*** Cut start [14:55:52]*** Partial cut [14:55:52]*** CUTSNS_PIN = 1 [14:55:52]*** CUTSNS_PIN = 0 [14:55:52]*** Brake cut motor [14:55:53]Read from MH i2c: 01 [14:55:53]MH_I2C_Read... [14:55:53]*** Stop cut motor [14:55:53]*** Cut end [14:55:53]Read from MH i2c: 01 07 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: 01 07 00 65 26 00 00 00 00 00 FF 0F A0 [14:55:53]process_action close_receipt done [14:55:53]requested_data is exist [14:55:53]produce_requested_data [14:55:53]requested_item fm.sn is exist - process it [14:55:53]wFMCommunicate request_size=4 [14:55:53]MH_SAM_APDU [14:55:53]CAPDU: 80 11 00 00 [14:55:53]Write to MH i2c: E2 08 00 66 26 80 11 00 00 00 00 00 00 06 [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:53]Read from MH i2c: E2 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 17 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 17 00 66 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 61 [14:55:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:55:53]wFMCommunicate OK [14:55:53]requested_item fd.num is exist - process it [14:55:53]SAM_PROTO_GetFieldsCounters [14:55:53]wFMCommunicate request_size=4 [14:55:53]MH_SAM_APDU [14:55:53]CAPDU: 80 13 00 00 [14:55:53]Write to MH i2c: E2 08 00 67 26 80 13 00 00 00 00 00 00 09 [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:53]Read from MH i2c: E2 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 62 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 62 00 67 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1B 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [14:55:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1B 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:55:53]wFMCommunicate OK [14:55:53]SAM_PROTO_GetFieldsCounters done [14:55:53]requested_item shift.num is exist - process it [14:55:53]requested_item shift.opened is exist - process it [14:55:53]req_shift_opened [14:55:53]FM_GetShiftState [14:55:53]SAM_PROTO_GetShiftState [14:55:53]wFMCommunicate request_size=4 [14:55:53]MH_SAM_APDU [14:55:53]CAPDU: 80 13 01 00 [14:55:53]Write to MH i2c: E2 08 00 68 26 80 13 01 00 00 00 00 00 0B [14:55:53]Write i2c OK [14:55:53]MH_I2C_Read... [14:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:53]Read from MH i2c: E2 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 0E 00 [14:55:53]MH_I2C_Read... [14:55:53]Read from MH i2c: E2 0E 00 68 26 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 5A [14:55:53]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:55:53]wFMCommunicate OK [14:55:53]SAM_PROTO_GetShiftState done [14:55:53]FM_GetShiftState done [14:55:53]req_shift_opened done [14:55:53]requested_item shift.open_date is exist - process it [14:55:53]req_shift_open_date [14:55:53]req_shift_open_date done [14:55:53]produce_requested_data done [14:55:53]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31771,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:55:53]process_action_free close_receipt [14:55:53]json_value_free [14:55:53]json_value_free done [14:55:53]process_json_proto returns [14:55:53]Send response to host [14:55:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31771,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:55:53]free response buf [14:55:53]execute_script done [14:55:53]execute_script returns [14:55:53]free content buf [14:55:53]Sock 9.Close socket [14:55:53]Sock 9.Thread stoped [14:55:57]OFD Sender: No OFD packet to send [14:56:01]accept exits with 7 [14:56:01]New connection [14:56:01]New thread 3066821988 created [14:56:01]Thread 3066965348 joined [14:56:01]Waiting for new connection... [14:56:01] Sock 7.Parse request [14:56:01]Sock 7.Check first char [14:56:01]Sock 7.First char is OK [14:56:01]request: POST /json_proto HTTP/1.0 [14:56:01]Method: POST [14:56:01]URL: /json_proto [14:56:01]Method is POST - this is cgi request [14:56:01]url: /json_proto [14:56:01]query_string will be loaded in cgi processing [14:56:01]execute_cgi json_proto POST (null) [14:56:01]execute_cgi path=json_proto method=POST [14:56:01]POST find Content-Length [14:56:01]Host: 172.17.39.68:8080 [14:56:01]Content-Length: 658 [14:56:01]Content-Type: application/json [14:56:01] [14:56:01]POST finish read [14:56:01]Found Content-Length = 658 [14:56:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214353", "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" ] } } [14:56:01]execute_script... [14:56: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)214353", "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" ] } } [14:56:01]POST & json_proto [14:56:01]process_json_proto [14:56:01]json parsed OK: [14:56:01]protocol is kg_v1.0 [14:56:01]action value=close_receipt [14:56:01]process_action close_receipt [14:56:01]cmd_close_receipt [14:56:01]MH_GetDate [14:56:01]Write to MH i2c: F0 00 00 69 26 7E [14:56:01]Write i2c OK [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: F0 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: F0 09 00 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: F0 09 00 69 26 00 06 8A 96 66 D6 48 95 66 2C [14:56:01]GetLastDocTimeStamp 1721141754 [14:56:01]current date 1721141766 [14:56:01]FM_GetShiftState [14:56:01]SAM_PROTO_GetShiftState [14:56:01]wFMCommunicate request_size=4 [14:56:01]MH_SAM_APDU [14:56:01]CAPDU: 80 13 01 00 [14:56:01]Write to MH i2c: E2 08 00 6A 26 80 13 01 00 00 00 00 00 0D [14:56:01]Write i2c OK [14:56:01]MH_I2C_Read... [14:56:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:01]Read from MH i2c: E2 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 0E 00 [14:56:01]MH_I2C_Read... [14:56:01]Read from MH i2c: E2 0E 00 6A 26 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 5C [14:56:01]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:56:01]wFMCommunicate OK [14:56:01]SAM_PROTO_GetShiftState done [14:56:01]FM_GetShiftState done [14:56:01]opened in 1721088399 [14:56:01]opened+sec_in_day 1721174799 [14:56:01]quantity*price = 12500 [14:56:01]sum+1 = 12501 [14:56:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 91 16.07.2024 14:56 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31772 ФПД: 122759724681760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145606&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31772&fm=122759724681760&tin=02508201610067®Number=0000000000098025&sum=12500 0 [14:56:02]StoreToDocumentArchive [14:56:02]shift 371 fd 31772 [14:56:02]save to /storage/0371/doc_00031772 [14:56:02]save last doc name /storage/0371/doc_00031772 to /storage/kkm_last_doc_name [14:56:02]save OK [14:56:02]Clear old archive folders... [14:56:02]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:56:02]tlvbuf is 0156A1E0 [14:56:02]SAM_PROTO_ClearQueue [14:56:02]wFMCommunicate request_size=4 [14:56:02]MH_SAM_APDU [14:56:02]CAPDU: 80 09 00 00 [14:56:02]Write to MH i2c: E2 08 00 77 26 80 09 00 00 00 00 00 00 0F [14:56:02]Write i2c OK [14:56:02]MH_I2C_Read... [14:56:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:02]Read from MH i2c: E2 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 03 00 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 03 00 77 26 00 90 00 11 [14:56:02]RAPDU: 90 00 [14:56:02]wFMCommunicate OK [14:56:02]SAM_PROTO_ClearQueue done [14:56:02]KKMCreateOFDPacket [14:56:02]OFDProtocolAddRootSTLVToBuf [14:56:02]FM_MakeSignedData [14:56:02]FM_MakeSignedData [14:56:02]SAM_PROTO_SignData [14:56:02]wFMCommunicate request_size=4 [14:56:02]MH_SAM_APDU [14:56:02]CAPDU: 80 0D 01 02 [14:56:02]Write to MH i2c: E2 08 00 78 26 80 0D 01 02 00 00 00 00 17 [14:56:02]Write i2c OK [14:56:02]MH_I2C_Read... [14:56:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:02]Read from MH i2c: E2 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 03 00 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 03 00 78 26 00 90 00 12 [14:56:02]RAPDU: 90 00 [14:56:02]wFMCommunicate OK [14:56:02]wFMCommunicate request_size=255 [14:56:02]MH_SAM_APDU [14:56:02]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 5B 00 00 00 F4 03 04 00 06 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 [14:56:02]Write to MH i2c: E2 02 01 79 26 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 5B 00 00 00 F4 03 04 00 06 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 00 00 1D [14:56:02]Write i2c OK [14:56:02]MH_I2C_Read... [14:56:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:03]Read from MH i2c: E2 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 03 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 03 00 79 26 00 90 00 13 [14:56:03]RAPDU: 90 00 [14:56:03]wFMCommunicate OK [14:56:03]wFMCommunicate request_size=37 [14:56:03]MH_SAM_APDU [14:56:03]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1C 7C 00 00 35 04 06 00 6F A6 39 C8 4A 20 [14:56:03]Write to MH i2c: E2 28 00 7A 26 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1C 7C 00 00 35 04 06 00 6F A6 39 C8 4A 20 00 00 91 [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:03]Read from MH i2c: E2 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 03 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 03 00 7A 26 00 90 00 14 [14:56:03]RAPDU: 90 00 [14:56:03]wFMCommunicate OK [14:56:03]wFMCommunicate request_size=4 [14:56:03]MH_SAM_APDU [14:56:03]CAPDU: 80 0D 03 02 [14:56:03]Write to MH i2c: E2 08 00 7B 26 80 0D 03 02 00 00 00 00 1C [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:03]Read from MH i2c: E2 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 0B 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 0B 00 7B 26 00 D1 B1 8A EC E6 2F A5 03 90 00 D2 [14:56:03]RAPDU: D1 B1 8A EC E6 2F A5 03 90 00 [14:56:03]wFMCommunicate OK [14:56:03]SAM_PROTO_SignData done [14:56:03]FM_MakeSignedData done [14:56:03]CreateOFDProtocolMessage [14:56:03]wFMCommunicate request_size=4 [14:56:03]MH_SAM_APDU [14:56:03]CAPDU: 80 11 00 00 [14:56:03]Write to MH i2c: E2 08 00 7C 26 80 11 00 00 00 00 00 00 1C [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:03]Read from MH i2c: E2 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 17 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: E2 17 00 7C 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 77 [14:56:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:56:03]wFMCommunicate OK [14:56:03]CreateOFDProtocolMessage done [14:56:03]OFDSenderStorePacket 31772 [14:56:03]StoreOFDPacket docnum=31772 [14:56:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 15 61 22 01 9F 49 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 5B 00 00 00 F4 03 04 00 06 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1C 7C 00 00 35 04 06 00 6F A6 39 C8 4A 20 D1 B1 8A EC E6 2F A5 03 [14:56:03]CheckFolder [14:56:03]dirname=/storage/ofd_packets [14:56:03]CheckFolder done [14:56:03]ProducePacketName [14:56:03]name=ofd_packets/00031772 [14:56:03]NVStorageSaveData ofd_packets/00031772 [14:56:03]File name is /storage/ofd_packets/00031772 [14:56:03]Write 328 bytes [14:56:03]NVStorageSaveData done [14:56:03]OFDSenderStorePacket done [14:56:03]KKMCreateOFDPacket done [14:56:03]NVStorageSaveData kkm_last_timestamp [14:56:03]File name is /storage/kkm_last_timestamp [14:56:03]Write 4 bytes [14:56:03]NVStorageSaveData done [14:56:03]ExternCall_PrintAddStr [14:56:03]wPrintStart [14:56:03]Write to MH i2c: 01 00 00 7D 26 A3 [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: 01 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: 01 07 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: 01 07 00 7D 26 00 00 00 00 00 FF 0F B8 [14:56:03]RasterBufferAndPrint [14:56:03]line Счет N : (3)214353 [14:56:03]line ИНН: 02508201610067 [14:56:03]line Контрольно-Кассовый Чек [14:56:03]line ПРОДАЖА [14:56:03]line Товар: 5449000054227 [14:56:03]line Напиток Кока-Кола 1л [14:56:03]line 1.000 * 125.00 [14:56:03]line = 125.00 [14:56:03]line НДС 12% НСП 1% [14:56:03]line > о реализуемом товаре [14:56:03]line ИТОГО: 125.00 [14:56:03]line НСП 1% : 1.11 [14:56:03]line НДС 12% : 13.27 [14:56:03]line Наличными: 125.00 [14:56:03]line Безнал.: 0.00 [14:56:03]line Место: АЗС № 140 "Партнер Нефть" [14:56:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:56:03]line СНО: Общий режим [14:56:03]line Чек 91 16.07.2024 14:56 [14:56:03]line Смена: 371 ФФД: 1.0 [14:56:03]line ЗНМ: 0300000189 [14:56:03]line РНМ: 0000000000098025 [14:56:03]line Версия ККМ: 001 [14:56:03]line ФМ: 0000000000965389 [14:56:03]line ФД: 31772 [14:56:03]line ФПД: 122759724681760 [14:56:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145606&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31772&fm=122759724681760&tin=02508201610067®Number=0000000000098025&sum=12500 [14:56:03]line 0 [14:56:03]written 0, free lines is 4095 [14:56:03]OFD Sender: Processing packet 31772 [packets to send 6, broken 5] [14:56:03]ProducePacketName [14:56:03]name=ofd_packets/00031772 [14:56:03]OFD Sender: To server: pG, [14:56:03]CommunicateWithHost lk.salyk.kg:30040 [14:56:03]ConnectInit lk.salyk.kg [14:56:03]Connected sock=10 [14:56:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 15 61 22 01 9F 49 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 5B 00 00 00 F4 03 04 00 06 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1C 7C 00 00 35 04 06 00 6F A6 39 C8 4A 20 D1 B1 8A EC E6 2F A5 03 [14:56:03]Write to MH i2c: 01 00 00 A5 26 CB [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: 01 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: 01 07 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: 01 07 00 A5 26 00 00 00 00 00 21 0D 00 [14:56:03]RasterBufferAndPrint [14:56:03]line [14:56:03]line [14:56:03]line [14:56:03]line [14:56:03]line [14:56:03]written 0, free lines is 3390 [14:56:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 2B A8 47 00 E3 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 35 33 38 39 10 04 04 00 1C 7C 00 00 F4 03 04 00 13 36 96 66 B6 04 01 00 00 77 87 75 01 BB 9F FB 18 [14:56:03]CommunicateWithHost err = 0 [14:56:03]CheckOFDResponse [14:56:03]1017 (14) - 77093643461234 [14:56:03]1041 (16) - 0000000000965389 [14:56:03]1040 (4) - 31772 [14:56:03]1012 (4) - 16.07.2024 08:57 [14:56:03]1206 (1) - 0 [14:56:03]OFD Sender: Remove packet 31772 [14:56:03]ProducePacketName [14:56:03]name=ofd_packets/00031772 [14:56:03]NVStorageDeleteData [14:56:03]MH_Cut [14:56:03]Write to MH i2c: D1 01 00 AC 26 01 A4 [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: D1 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: D1 01 00 [14:56:03]MH_I2C_Read... [14:56:03]Read from MH i2c: D1 01 00 AC 26 00 A3 [14:56:03]Write to MH i2c: 01 00 00 AD 26 D3 [14:56:03]Write i2c OK [14:56:03]MH_I2C_Read... [14:56:04]OFD Sender: No OFD packet to send [14:56:04]*** Cut start [14:56:04]*** Partial cut [14:56:04]*** CUTSNS_PIN = 1 [14:56:04]*** CUTSNS_PIN = 0 [14:56:04]*** Brake cut motor [14:56:05]Read from MH i2c: 01 [14:56:05]MH_I2C_Read... [14:56:05]*** Stop cut motor [14:56:05]*** Cut end [14:56:05]Read from MH i2c: 01 07 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: 01 07 00 AD 26 00 00 00 00 00 FF 0F E8 [14:56:05]process_action close_receipt done [14:56:05]requested_data is exist [14:56:05]produce_requested_data [14:56:05]requested_item fm.sn is exist - process it [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 11 00 00 [14:56:05]Write to MH i2c: E2 08 00 AE 26 80 11 00 00 00 00 00 00 4E [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 17 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 17 00 AE 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A9 [14:56:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:56:05]wFMCommunicate OK [14:56:05]requested_item fd.num is exist - process it [14:56:05]SAM_PROTO_GetFieldsCounters [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 13 00 00 [14:56:05]Write to MH i2c: E2 08 00 AF 26 80 13 00 00 00 00 00 00 51 [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 62 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 62 00 AF 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1C 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 96 [14:56:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1C 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:05]wFMCommunicate OK [14:56:05]SAM_PROTO_GetFieldsCounters done [14:56:05]requested_item shift.num is exist - process it [14:56:05]requested_item shift.opened is exist - process it [14:56:05]req_shift_opened [14:56:05]FM_GetShiftState [14:56:05]SAM_PROTO_GetShiftState [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 13 01 00 [14:56:05]Write to MH i2c: E2 08 00 B0 26 80 13 01 00 00 00 00 00 53 [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 0E 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 0E 00 B0 26 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A2 [14:56:05]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:56:05]wFMCommunicate OK [14:56:05]SAM_PROTO_GetShiftState done [14:56:05]FM_GetShiftState done [14:56:05]req_shift_opened done [14:56:05]requested_item shift.open_date is exist - process it [14:56:05]req_shift_open_date [14:56:05]req_shift_open_date done [14:56:05]produce_requested_data done [14:56:05]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31772,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:56:05]process_action_free close_receipt [14:56:05]json_value_free [14:56:05]json_value_free done [14:56:05]process_json_proto returns [14:56:05]Send response to host [14:56:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31772,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:56:05]free response buf [14:56:05]execute_script done [14:56:05]execute_script returns [14:56:05]free content buf [14:56:05]Sock 7.Close socket [14:56:05]Sock 7.Thread stoped [14:56:07]accept exits with 9 [14:56:07]New connection [14:56:07]New thread 3066965348 created [14:56:07]Thread 3066821988 joined [14:56:07]Waiting for new connection... [14:56:07] Sock 9.Parse request [14:56:07]Sock 9.Check first char [14:56:07]Sock 9.First char is OK [14:56:07]request: POST /json_proto HTTP/1.0 [14:56:07]Method: POST [14:56:07]URL: /json_proto [14:56:07]Method is POST - this is cgi request [14:56:07]url: /json_proto [14:56:07]query_string will be loaded in cgi processing [14:56:07]execute_cgi json_proto POST (null) [14:56:07]execute_cgi path=json_proto method=POST [14:56:07]POST find Content-Length [14:56:07]Host: 172.17.39.68:8080 [14:56:07]Content-Length: 673 [14:56:07]Content-Type: application/json [14:56:07] [14:56:07]POST finish read [14:56:07]Found Content-Length = 673 [14:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214354", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:07]execute_script... [14:56:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214354", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:07]POST & json_proto [14:56:07]process_json_proto [14:56:07]json parsed OK: [14:56:07]protocol is kg_v1.0 [14:56:07]action value=close_receipt [14:56:07]process_action close_receipt [14:56:07]cmd_close_receipt [14:56:07]MH_GetDate [14:56:07]Write to MH i2c: F0 00 00 B1 26 C6 [14:56:07]Write i2c OK [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: F0 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: F0 09 00 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: F0 09 00 B1 26 00 0C 8A 96 66 D6 48 95 66 7A [14:56:07]GetLastDocTimeStamp 1721141766 [14:56:07]current date 1721141772 [14:56:07]FM_GetShiftState [14:56:07]SAM_PROTO_GetShiftState [14:56:07]wFMCommunicate request_size=4 [14:56:07]MH_SAM_APDU [14:56:07]CAPDU: 80 13 01 00 [14:56:07]Write to MH i2c: E2 08 00 B2 26 80 13 01 00 00 00 00 00 55 [14:56:07]Write i2c OK [14:56:07]MH_I2C_Read... [14:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:07]Read from MH i2c: E2 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 0E 00 [14:56:07]MH_I2C_Read... [14:56:07]Read from MH i2c: E2 0E 00 B2 26 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A4 [14:56:07]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:56:07]wFMCommunicate OK [14:56:07]SAM_PROTO_GetShiftState done [14:56:07]FM_GetShiftState done [14:56:07]opened in 1721088399 [14:56:07]opened+sec_in_day 1721174799 [14:56:07]quantity*price = 700 [14:56:07]sum+1 = 701 [14:56:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 92 16.07.2024 14:56 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31773 ФПД: 175556007823856 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145612&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31773&fm=175556007823856&tin=02508201610067®Number=0000000000098025&sum=700 0 [14:56:08]StoreToDocumentArchive [14:56:08]shift 371 fd 31773 [14:56:08]save to /storage/0371/doc_00031773 [14:56:08]save last doc name /storage/0371/doc_00031773 to /storage/kkm_last_doc_name [14:56:08]save OK [14:56:08]Clear old archive folders... [14:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:56:08]tlvbuf is 0158B930 [14:56:08]SAM_PROTO_ClearQueue [14:56:08]wFMCommunicate request_size=4 [14:56:08]MH_SAM_APDU [14:56:08]CAPDU: 80 09 00 00 [14:56:08]Write to MH i2c: E2 08 00 BF 26 80 09 00 00 00 00 00 00 57 [14:56:08]Write i2c OK [14:56:08]MH_I2C_Read... [14:56:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:08]Read from MH i2c: E2 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 03 00 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 03 00 BF 26 00 90 00 59 [14:56:08]RAPDU: 90 00 [14:56:08]wFMCommunicate OK [14:56:08]SAM_PROTO_ClearQueue done [14:56:08]KKMCreateOFDPacket [14:56:08]OFDProtocolAddRootSTLVToBuf [14:56:08]FM_MakeSignedData [14:56:08]FM_MakeSignedData [14:56:08]SAM_PROTO_SignData [14:56:08]wFMCommunicate request_size=4 [14:56:08]MH_SAM_APDU [14:56:08]CAPDU: 80 0D 01 02 [14:56:08]Write to MH i2c: E2 08 00 C0 26 80 0D 01 02 00 00 00 00 5F [14:56:08]Write i2c OK [14:56:08]MH_I2C_Read... [14:56:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:08]Read from MH i2c: E2 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 03 00 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 03 00 C0 26 00 90 00 5A [14:56:08]RAPDU: 90 00 [14:56:08]wFMCommunicate OK [14:56:08]wFMCommunicate request_size=255 [14:56:08]MH_SAM_APDU [14:56:08]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 0C 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [14:56:08]Write to MH i2c: E2 02 01 C1 26 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 0C 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 03 [14:56:08]Write i2c OK [14:56:08]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 C1 26 00 90 00 5B [14:56:09]RAPDU: 90 00 [14:56:09]wFMCommunicate OK [14:56:09]wFMCommunicate request_size=46 [14:56:09]MH_SAM_APDU [14:56:09]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1D 7C 00 00 35 04 06 00 9F AA D1 7C 09 F0 [14:56:09]Write to MH i2c: E2 31 00 C2 26 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1D 7C 00 00 35 04 06 00 9F AA D1 7C 09 F0 00 00 17 [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 03 00 C2 26 00 90 00 5C [14:56:09]RAPDU: 90 00 [14:56:09]wFMCommunicate OK [14:56:09]wFMCommunicate request_size=4 [14:56:09]MH_SAM_APDU [14:56:09]CAPDU: 80 0D 03 02 [14:56:09]Write to MH i2c: E2 08 00 C3 26 80 0D 03 02 00 00 00 00 64 [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 0B 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 0B 00 C3 26 00 DD BC C0 7F B8 58 7E FB 90 00 C6 [14:56:09]RAPDU: DD BC C0 7F B8 58 7E FB 90 00 [14:56:09]wFMCommunicate OK [14:56:09]SAM_PROTO_SignData done [14:56:09]FM_MakeSignedData done [14:56:09]CreateOFDProtocolMessage [14:56:09]wFMCommunicate request_size=4 [14:56:09]MH_SAM_APDU [14:56:09]CAPDU: 80 11 00 00 [14:56:09]Write to MH i2c: E2 08 00 C4 26 80 11 00 00 00 00 00 00 64 [14:56:09]OFD Sender: No OFD packet to send [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 17 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 17 00 C4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BF [14:56:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:56:09]wFMCommunicate OK [14:56:09]CreateOFDProtocolMessage done [14:56:09]OFDSenderStorePacket 31773 [14:56:09]StoreOFDPacket docnum=31773 [14:56:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 F4 EB 2B 01 56 26 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 0C 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1D 7C 00 00 35 04 06 00 9F AA D1 7C 09 F0 DD BC C0 7F B8 58 7E FB [14:56:09]CheckFolder [14:56:09]dirname=/storage/ofd_packets [14:56:09]CheckFolder done [14:56:09]ProducePacketName [14:56:09]name=ofd_packets/00031773 [14:56:09]NVStorageSaveData ofd_packets/00031773 [14:56:09]File name is /storage/ofd_packets/00031773 [14:56:09]Write 337 bytes [14:56:09]NVStorageSaveData done [14:56:09]OFDSenderStorePacket done [14:56:09]KKMCreateOFDPacket done [14:56:09]NVStorageSaveData kkm_last_timestamp [14:56:09]File name is /storage/kkm_last_timestamp [14:56:09]Write 4 bytes [14:56:09]NVStorageSaveData done [14:56:09]ExternCall_PrintAddStr [14:56:09]wPrintStart [14:56:09]Write to MH i2c: 01 00 00 C5 26 EB [14:56:09]Write i2c OK [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: 01 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: 01 07 00 [14:56:09]MH_I2C_Read... [14:56:09]OFD Sender: Processing packet 31773 [packets to send 6, broken 5] [14:56:09]ProducePacketName [14:56:09]name=ofd_packets/00031773 [14:56:09]OFD Sender: To server: pG, [14:56:09]CommunicateWithHost lk.salyk.kg:30040 [14:56:09]ConnectInit lk.salyk.kg [14:56:09]Read from MH i2c: 01 07 00 C5 26 00 00 00 00 00 FF 0F 00 [14:56:09]RasterBufferAndPrint [14:56:09]line Счет N : (3)214354 [14:56:09]line ИНН: 02508201610067 [14:56:09]line Контрольно-Кассовый Чек [14:56:09]line ПРОДАЖА [14:56:09]line Товар: 2000053020015 [14:56:09]line Бумажные стаканы 250мл 1шт [14:56:09]line 1.000 * 7.00 [14:56:09]line = 7.00 [14:56:09]line НДС 12% НСП 1% [14:56:09]line > о реализуемом товаре [14:56:09]line ИТОГО: 7.00 [14:56:09]line НСП 1% : 0.06 [14:56:09]line НДС 12% : 0.74 [14:56:09]line Наличными: 7.00 [14:56:09]line Безнал.: 0.00 [14:56:09]line Место: АЗС № 140 "Партнер Нефть" [14:56:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:56:09]line СНО: Общий режим [14:56:09]line Чек 92 16.07.2024 14:56 [14:56:09]line Смена: 371 ФФД: 1.0 [14:56:09]line ЗНМ: 0300000189 [14:56:09]line РНМ: 0000000000098025 [14:56:09]line Версия ККМ: 001 [14:56:09]line ФМ: 0000000000965389 [14:56:09]line ФД: 31773 [14:56:09]line ФПД: 175556007823856 [14:56:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145612&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31773&fm=175556007823856&tin=02508201610067®Number=0000000000098025&sum=700 [14:56:09]line 0 [14:56:09]written 0, free lines is 4095 [14:56:09]Connected sock=10 [14:56:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 F4 EB 2B 01 56 26 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 0C 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1D 7C 00 00 35 04 06 00 9F AA D1 7C 09 F0 DD BC C0 7F B8 58 7E FB [14:56:10]Write to MH i2c: 01 00 00 EE 26 14 [14:56:10]Write i2c OK [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: 01 [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: 01 07 00 [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: 01 07 00 EE 26 00 00 00 00 00 EE 0C 15 [14:56:10]RasterBufferAndPrint [14:56:10]line [14:56:10]line [14:56:10]line [14:56:10]line [14:56:10]line [14:56:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 5D D1 47 00 7F 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 35 33 38 39 10 04 04 00 1D 7C 00 00 F4 03 04 00 19 36 96 66 B6 04 01 00 00 DC written 0, free lines is 3357 [14:56:10]BF 17 03 75 A1 64 16 [14:56:10]CommunicateWithHost err = 0 [14:56:10]CheckOFDResponse [14:56:10]1017 (14) - 77093643461234 [14:56:10]1041 (16) - 0000000000965389 [14:56:10]1040 (4) - 31773 [14:56:10]1012 (4) - 16.07.2024 08:58 [14:56:10]1206 (1) - 0 [14:56:10]OFD Sender: Remove packet 31773 [14:56:10]MH_Cut [14:56:10]ProducePacketName [14:56:10]Write to MH i2c: name=ofd_packets/00031773 [14:56:10]D1 NVStorageDeleteData [14:56:10]01 00 F5 26 01 ED [14:56:10]Write i2c OK [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: D1 [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: D1 01 00 [14:56:10]MH_I2C_Read... [14:56:10]Read from MH i2c: D1 01 00 F5 26 00 EC [14:56:10]Write to MH i2c: 01 00 00 F6 26 1C [14:56:10]Write i2c OK [14:56:10]MH_I2C_Read... [14:56:10]OFD Sender: No OFD packet to send [14:56:10]*** Cut start [14:56:10]*** Partial cut [14:56:10]*** CUTSNS_PIN = 1 [14:56:10]*** CUTSNS_PIN = 0 [14:56:11]*** Brake cut motor [14:56:11]Read from MH i2c: 01 [14:56:11]MH_I2C_Read... [14:56:11]*** Stop cut motor [14:56:11]*** Cut end [14:56:11]Read from MH i2c: 01 07 00 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: 01 07 00 F6 26 00 00 00 00 00 FF 0F 31 [14:56:11]process_action close_receipt done [14:56:11]requested_data is exist [14:56:11]produce_requested_data [14:56:11]requested_item fm.sn is exist - process it [14:56:11]wFMCommunicate request_size=4 [14:56:11]MH_SAM_APDU [14:56:11]CAPDU: 80 11 00 00 [14:56:11]Write to MH i2c: E2 08 00 F7 26 80 11 00 00 00 00 00 00 97 [14:56:11]Write i2c OK [14:56:11]MH_I2C_Read... [14:56:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:11]Read from MH i2c: E2 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 17 00 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 17 00 F7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F2 [14:56:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:56:11]wFMCommunicate OK [14:56:11]requested_item fd.num is exist - process it [14:56:11]SAM_PROTO_GetFieldsCounters [14:56:11]wFMCommunicate request_size=4 [14:56:11]MH_SAM_APDU [14:56:11]CAPDU: 80 13 00 00 [14:56:11]Write to MH i2c: E2 08 00 F8 26 80 13 00 00 00 00 00 00 9A [14:56:11]Write i2c OK [14:56:11]MH_I2C_Read... [14:56:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:11]Read from MH i2c: E2 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 62 00 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 62 00 F8 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1D 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [14:56:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1D 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:11]wFMCommunicate OK [14:56:11]SAM_PROTO_GetFieldsCounters done [14:56:11]requested_item shift.num is exist - process it [14:56:11]requested_item shift.opened is exist - process it [14:56:11]req_shift_opened [14:56:11]FM_GetShiftState [14:56:11]SAM_PROTO_GetShiftState [14:56:11]wFMCommunicate request_size=4 [14:56:11]MH_SAM_APDU [14:56:11]CAPDU: 80 13 01 00 [14:56:11]Write to MH i2c: E2 08 00 F9 26 80 13 01 00 00 00 00 00 9C [14:56:11]Write i2c OK [14:56:11]MH_I2C_Read... [14:56:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:11]Read from MH i2c: E2 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 0E 00 [14:56:11]MH_I2C_Read... [14:56:11]Read from MH i2c: E2 0E 00 F9 26 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 EB [14:56:11]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:56:11]wFMCommunicate OK [14:56:11]SAM_PROTO_GetShiftState done [14:56:11]FM_GetShiftState done [14:56:11]req_shift_opened done [14:56:11]requested_item shift.open_date is exist - process it [14:56:11]req_shift_open_date [14:56:11]req_shift_open_date done [14:56:11]produce_requested_data done [14:56:11]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31773,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:56:11]process_action_free close_receipt [14:56:11]json_value_free [14:56:11]json_value_free done [14:56:11]process_json_proto returns [14:56:11]Send response to host [14:56:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31773,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:56:11]free response buf [14:56:11]execute_script done [14:56:11]execute_script returns [14:56:11]free content buf [14:56:11]Sock 9.Close socket [14:56:11]Sock 9.Thread stoped [14:56:13]accept exits with 7 [14:56:13]New connection [14:56:13]New thread 3066821988 created [14:56:13]Thread 3066965348 joined [14:56:13]Waiting for new connection... [14:56:13] Sock 7.Parse request [14:56:13]Sock 7.Check first char [14:56:13]Sock 7.First char is OK [14:56:13]request: POST /json_proto HTTP/1.0 [14:56:13]Method: POST [14:56:13]URL: /json_proto [14:56:13]Method is POST - this is cgi request [14:56:13]url: /json_proto [14:56:13]query_string will be loaded in cgi processing [14:56:13]execute_cgi json_proto POST (null) [14:56:13]execute_cgi path=json_proto method=POST [14:56:13]POST find Content-Length [14:56:13]Host: 172.17.39.68:8080 [14:56:13]Content-Length: 673 [14:56:13]Content-Type: application/json [14:56:13] [14:56:13]POST finish read [14:56:13]Found Content-Length = 673 [14:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214355", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:13]execute_script... [14:56:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214355", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:13]POST & json_proto [14:56:13]process_json_proto [14:56:13]json parsed OK: [14:56:13]protocol is kg_v1.0 [14:56:13]action value=close_receipt [14:56:13]process_action close_receipt [14:56:13]cmd_close_receipt [14:56:13]MH_GetDate [14:56:13]Write to MH i2c: F0 00 00 FA 26 0F [14:56:13]Write i2c OK [14:56:13]MH_I2C_Read... [14:56:13]Read from MH i2c: F0 [14:56:13]MH_I2C_Read... [14:56:13]Read from MH i2c: F0 09 00 [14:56:13]MH_I2C_Read... [14:56:13]Read from MH i2c: F0 09 00 FA 26 00 12 8A 96 66 D6 48 95 66 C9 [14:56:13]GetLastDocTimeStamp 1721141772 [14:56:13]current date 1721141778 [14:56:13]FM_GetShiftState [14:56:13]SAM_PROTO_GetShiftState [14:56:13]wFMCommunicate request_size=4 [14:56:13]MH_SAM_APDU [14:56:13]CAPDU: 80 13 01 00 [14:56:13]Write to MH i2c: E2 08 00 FB 26 80 13 01 00 00 00 00 00 9E [14:56:13]Write i2c OK [14:56:13]MH_I2C_Read... [14:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:13]Read from MH i2c: E2 [14:56:13]MH_I2C_Read... [14:56:13]Read from MH i2c: E2 0E 00 [14:56:13]MH_I2C_Read... [14:56:13]Read from MH i2c: E2 0E 00 FB 26 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 ED [14:56:13]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:56:13]wFMCommunicate OK [14:56:13]SAM_PROTO_GetShiftState done [14:56:13]FM_GetShiftState done [14:56:13]opened in 1721088399 [14:56:13]opened+sec_in_day 1721174799 [14:56:13]quantity*price = 700 [14:56:13]sum+1 = 701 [14:56:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 93 16.07.2024 14:56 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31774 ФПД: 119757398678744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145618&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31774&fm=119757398678744&tin=02508201610067®Number=0000000000098025&sum=700 0 [14:56:14]StoreToDocumentArchive [14:56:14]shift 371 fd 31774 [14:56:14]save to /storage/0371/doc_00031774 [14:56:14]save last doc name /storage/0371/doc_00031774 to /storage/kkm_last_doc_name [14:56:14]save OK [14:56:14]Clear old archive folders... [14:56:14]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:56:14]tlvbuf is 015DBE60 [14:56:14]SAM_PROTO_ClearQueue [14:56:14]wFMCommunicate request_size=4 [14:56:14]MH_SAM_APDU [14:56:14]CAPDU: 80 09 00 00 [14:56:14]Write to MH i2c: E2 08 00 08 27 80 09 00 00 00 00 00 00 A1 [14:56:14]Write i2c OK [14:56:14]MH_I2C_Read... [14:56:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:14]Read from MH i2c: E2 [14:56:14]MH_I2C_Read... [14:56:14]Read from MH i2c: E2 03 00 [14:56:14]MH_I2C_Read... [14:56:14]Read from MH i2c: E2 03 00 08 27 00 90 00 A3 [14:56:14]RAPDU: 90 00 [14:56:14]wFMCommunicate OK [14:56:14]SAM_PROTO_ClearQueue done [14:56:14]KKMCreateOFDPacket [14:56:14]OFDProtocolAddRootSTLVToBuf [14:56:14]FM_MakeSignedData [14:56:14]FM_MakeSignedData [14:56:14]SAM_PROTO_SignData [14:56:14]wFMCommunicate request_size=4 [14:56:14]MH_SAM_APDU [14:56:14]CAPDU: 80 0D 01 02 [14:56:14]Write to MH i2c: E2 08 00 09 27 80 0D 01 02 00 00 00 00 A9 [14:56:14]Write i2c OK [14:56:14]MH_I2C_Read... [14:56:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:14]Read from MH i2c: E2 [14:56:14]MH_I2C_Read... [14:56:14]Read from MH i2c: E2 03 00 [14:56:14]MH_I2C_Read... [14:56:14]Read from MH i2c: E2 03 00 09 27 00 90 00 A4 [14:56:14]RAPDU: 90 00 [14:56:14]wFMCommunicate OK [14:56:14]wFMCommunicate request_size=255 [14:56:14]MH_SAM_APDU [14:56:14]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 12 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [14:56:14]Write to MH i2c: E2 02 01 0A 27 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 12 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 54 [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:15]Read from MH i2c: E2 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 03 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 03 00 0A 27 00 90 00 A5 [14:56:15]RAPDU: 90 00 [14:56:15]wFMCommunicate OK [14:56:15]wFMCommunicate request_size=46 [14:56:15]MH_SAM_APDU [14:56:15]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1E 7C 00 00 35 04 06 00 6C EB 31 35 1C D8 [14:56:15]Write to MH i2c: E2 31 00 0B 27 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1E 7C 00 00 35 04 06 00 6C EB 31 35 1C D8 00 00 84 [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:15]Read from MH i2c: E2 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 03 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 03 00 0B 27 00 90 00 A6 [14:56:15]RAPDU: 90 00 [14:56:15]wFMCommunicate OK [14:56:15]wFMCommunicate request_size=4 [14:56:15]MH_SAM_APDU [14:56:15]CAPDU: 80 0D 03 02 [14:56:15]Write to MH i2c: E2 08 00 0C 27 80 0D 03 02 00 00 00 00 AE [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:15]Read from MH i2c: E2 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 0B 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 0B 00 0C 27 00 AE 4E 67 A8 34 B0 64 C4 90 00 C6 [14:56:15]RAPDU: AE 4E 67 A8 34 B0 64 C4 90 00 [14:56:15]wFMCommunicate OK [14:56:15]SAM_PROTO_SignData done [14:56:15]FM_MakeSignedData done [14:56:15]CreateOFDProtocolMessage [14:56:15]wFMCommunicate request_size=4 [14:56:15]MH_SAM_APDU [14:56:15]CAPDU: 80 11 00 00 [14:56:15]Write to MH i2c: E2 08 00 0D 27 80 11 00 00 00 00 00 00 AE [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 [14:56:15]MH_I2C_Read... [14:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:15]Read from MH i2c: E2 17 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: E2 17 00 0D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 09 [14:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:56:15]wFMCommunicate OK [14:56:15]CreateOFDProtocolMessage done [14:56:15]OFDSenderStorePacket 31774 [14:56:15]StoreOFDPacket docnum=31774 [14:56:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 EB 7A 2B 01 45 40 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 12 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1E 7C 00 00 35 04 06 00 6C EB 31 35 1C D8 AE 4E 67 A8 34 B0 64 C4 [14:56:15]CheckFolder [14:56:15]dirname=/storage/ofd_packets [14:56:15]CheckFolder done [14:56:15]ProducePacketName [14:56:15]name=ofd_packets/00031774 [14:56:15]NVStorageSaveData ofd_packets/00031774 [14:56:15]File name is /storage/ofd_packets/00031774 [14:56:15]Write 337 bytes [14:56:15]NVStorageSaveData done [14:56:15]OFDSenderStorePacket done [14:56:15]KKMCreateOFDPacket done [14:56:15]NVStorageSaveData kkm_last_timestamp [14:56:15]File name is /storage/kkm_last_timestamp [14:56:15]Write 4 bytes [14:56:15]NVStorageSaveData done [14:56:15]ExternCall_PrintAddStr [14:56:15]wPrintStart [14:56:15]Write to MH i2c: 01 00 00 0E 27 35 [14:56:15]Write i2c OK [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 07 00 [14:56:15]MH_I2C_Read... [14:56:15]Read from MH i2c: 01 07 00 0E 27 00 00 00 00 00 FF 0F 4A [14:56:15]RasterBufferAndPrint [14:56:15]line Счет N : (3)214355 [14:56:15]line ИНН: 02508201610067 [14:56:15]line Контрольно-Кассовый Чек [14:56:15]line ПРОДАЖА [14:56:15]line Товар: 2000053020015 [14:56:15]line Бумажные стаканы 250мл 1шт [14:56:15]line 1.000 * 7.00 [14:56:15]line = 7.00 [14:56:15]line НДС 12% НСП 1% [14:56:15]line > о реализуемом товаре [14:56:15]line ИТОГО: 7.00 [14:56:15]line НСП 1% : 0.06 [14:56:15]line НДС 12% : 0.74 [14:56:15]line Наличными: 7.00 [14:56:15]line Безнал.: 0.00 [14:56:15]line Место: АЗС № 140 "Партнер Нефть" [14:56:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:56:15]line СНО: Общий режим [14:56:15]line Чек 93 16.07.2024 14:56 [14:56:15]line Смена: 371 ФФД: 1.0 [14:56:15]line ЗНМ: 0300000189 [14:56:15]line РНМ: 0000000000098025 [14:56:15]line Версия ККМ: 001 [14:56:15]line ФМ: 0000000000965389 [14:56:15]line ФД: 31774 [14:56:15]line ФПД: 119757398678744 [14:56:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145618&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31774&fm=119757398678744&tin=02508201610067®Number=0000000000098025&sum=700 [14:56:15]line 0 [14:56:15]written 0, free lines is 4095 [14:56:15]OFD Sender: Processing packet 31774 [packets to send 6, broken 5] [14:56:15]ProducePacketName [14:56:15]name=ofd_packets/00031774 [14:56:15]OFD Sender: To server: pG, [14:56:15]CommunicateWithHost lk.salyk.kg:30040 [14:56:15]ConnectInit lk.salyk.kg [14:56:15]Connected sock=10 [14:56:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 EB 7A 2B 01 45 40 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 12 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1E 7C 00 00 35 04 06 00 6C EB 31 35 1C D8 AE 4E 67 A8 34 B0 64 C4 [14:56:16]Write to MH i2c: 01 00 00 37 27 5E [14:56:16]Write i2c OK [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: 01 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: 01 07 00 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: 01 07 00 37 27 00 00 00 00 00 EB 0C 5C [14:56:16]RasterBufferAndPrint [14:56:16]line [14:56:16]line [14:56:16]line [14:56:16]line [14:56:16]line [14:56:16]written 0, free lines is 3344 [14:56:16]MH_Cut [14:56:16]Write to MH i2c: D1 01 00 3E 27 01 37 [14:56:16]Write i2c OK [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: D1 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: D1 01 00 [14:56:16]MH_I2C_Read... [14:56:16]Read from MH i2c: D1 01 00 3E 27 00 36 [14:56:16]Write to MH i2c: 01 00 00 3F 27 66 [14:56:16]Write i2c OK [14:56:16]MH_I2C_Read... [14:56:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 08 1E 47 00 0C CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1E 7C 00 00 F4 03 04 00 1F 36 96 66 B6 04 01 00 00 06 A0 94 A9 DF 4E 1C 3B [14:56:16]CommunicateWithHost err = 0 [14:56:16]CheckOFDResponse [14:56:16]1017 (14) - 77093643461234 [14:56:16]1041 (16) - 0000000000965389 [14:56:16]1040 (4) - 31774 [14:56:16]1012 (4) - 16.07.2024 08:58 [14:56:16]1206 (1) - 0 [14:56:16]OFD Sender: Remove packet 31774 [14:56:16]ProducePacketName [14:56:16]name=ofd_packets/00031774 [14:56:16]NVStorageDeleteData [14:56:16]*** Cut start [14:56:16]*** Partial cut [14:56:16]*** CUTSNS_PIN = 1 [14:56:16]*** CUTSNS_PIN = 0 [14:56:16]OFD Sender: No OFD packet to send [14:56:17]*** Brake cut motor [14:56:17]Read from MH i2c: 01 [14:56:17]MH_I2C_Read... [14:56:17]*** Stop cut motor [14:56:17]*** Cut end [14:56:17]Read from MH i2c: 01 07 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: 01 07 00 3F 27 00 00 00 00 00 FF 0F 7B [14:56:17]process_action close_receipt done [14:56:17]requested_data is exist [14:56:17]produce_requested_data [14:56:17]requested_item fm.sn is exist - process it [14:56:17]wFMCommunicate request_size=4 [14:56:17]MH_SAM_APDU [14:56:17]CAPDU: 80 11 00 00 [14:56:17]Write to MH i2c: E2 08 00 40 27 80 11 00 00 00 00 00 00 E1 [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 17 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 17 00 40 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3C [14:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:56:17]wFMCommunicate OK [14:56:17]requested_item fd.num is exist - process it [14:56:17]SAM_PROTO_GetFieldsCounters [14:56:17]wFMCommunicate request_size=4 [14:56:17]MH_SAM_APDU [14:56:17]CAPDU: 80 13 00 00 [14:56:17]Write to MH i2c: E2 08 00 41 27 80 13 00 00 00 00 00 00 E4 [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:17]Read from MH i2c: E2 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 62 00 [14:56:17]MH_I2C_Read... [14:56:17]Read from MH i2c: E2 62 00 41 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1E 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 31 [14:56:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1E 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:17]wFMCommunicate OK [14:56:17]SAM_PROTO_GetFieldsCounters done [14:56:17]requested_item shift.num is exist - process it [14:56:17]requested_item shift.opened is exist - process it [14:56:17]req_shift_opened [14:56:17]FM_GetShiftState [14:56:17]SAM_PROTO_GetShiftState [14:56:17]wFMCommunicate request_size=4 [14:56:17]MH_SAM_APDU [14:56:17]CAPDU: 80 13 01 00 [14:56:17]Write to MH i2c: E2 08 00 42 27 80 13 01 00 00 00 00 00 E6 [14:56:17]Write i2c OK [14:56:17]MH_I2C_Read... [14:56:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:18]Read from MH i2c: E2 [14:56:18]MH_I2C_Read... [14:56:18]Read from MH i2c: E2 0E 00 [14:56:18]MH_I2C_Read... [14:56:18]Read from MH i2c: E2 0E 00 42 27 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 35 [14:56:18]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:56:18]wFMCommunicate OK [14:56:18]SAM_PROTO_GetShiftState done [14:56:18]FM_GetShiftState done [14:56:18]req_shift_opened done [14:56:18]requested_item shift.open_date is exist - process it [14:56:18]req_shift_open_date [14:56:18]req_shift_open_date done [14:56:18]produce_requested_data done [14:56:18]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31774,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:56:18]process_action_free close_receipt [14:56:18]json_value_free [14:56:18]json_value_free done [14:56:18]process_json_proto returns [14:56:18]Send response to host [14:56:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31774,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:56:18]free response buf [14:56:18]execute_script done [14:56:18]execute_script returns [14:56:18]free content buf [14:56:18]Sock 7.Close socket [14:56:18]Sock 7.Thread stoped [14:56:21]OFD Sender: No OFD packet to send [14:56:26]accept exits with 9 [14:56:26]New connection [14:56:26]New thread 3066965348 created [14:56:26]Thread 3066821988 joined [14:56:26]Waiting for new connection... [14:56:26] Sock 9.Parse request [14:56:26]Sock 9.Check first char [14:56:26]Sock 9.First char is OK [14:56:26]request: POST /json_proto HTTP/1.0 [14:56:26]Method: POST [14:56:26]URL: /json_proto [14:56:26]Method is POST - this is cgi request [14:56:26]url: /json_proto [14:56:26]query_string will be loaded in cgi processing [14:56:26]execute_cgi json_proto POST (null) [14:56:26]execute_cgi path=json_proto method=POST [14:56:26]POST find Content-Length [14:56:26]Host: 172.17.39.68:8080 [14:56:26]Content-Length: 673 [14:56:26]Content-Type: application/json [14:56:26] [14:56:26]POST finish read [14:56:26]Found Content-Length = 673 [14:56:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214356", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:26]execute_script... [14:56: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)214356", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:56:26]POST & json_proto [14:56:26]process_json_proto [14:56:26]json parsed OK: [14:56:26]protocol is kg_v1.0 [14:56:26]action value=close_receipt [14:56:26]process_action close_receipt [14:56:26]cmd_close_receipt [14:56:26]MH_GetDate [14:56:26]Write to MH i2c: F0 00 00 43 27 59 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: F0 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: F0 09 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: F0 09 00 43 27 00 1F 8A 96 66 D6 48 95 66 20 [14:56:26]GetLastDocTimeStamp 1721141778 [14:56:26]current date 1721141791 [14:56:26]FM_GetShiftState [14:56:26]SAM_PROTO_GetShiftState [14:56:26]wFMCommunicate request_size=4 [14:56:26]MH_SAM_APDU [14:56:26]CAPDU: 80 13 01 00 [14:56:26]Write to MH i2c: E2 08 00 44 27 80 13 01 00 00 00 00 00 E8 [14:56:26]Write i2c OK [14:56:26]MH_I2C_Read... [14:56:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:26]Read from MH i2c: E2 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0E 00 [14:56:26]MH_I2C_Read... [14:56:26]Read from MH i2c: E2 0E 00 44 27 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 37 [14:56:26]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:56:26]wFMCommunicate OK [14:56:26]SAM_PROTO_GetShiftState done [14:56:26]FM_GetShiftState done [14:56:26]opened in 1721088399 [14:56:26]opened+sec_in_day 1721174799 [14:56:26]quantity*price = 700 [14:56:26]sum+1 = 701 [14:56:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 94 16.07.2024 14:56 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31775 ФПД: 141997042399678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145631&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31775&fm=141997042399678&tin=02508201610067®Number=0000000000098025&sum=700 0 [14:56:27]StoreToDocumentArchive [14:56:27]shift 371 fd 31775 [14:56:27]save to /storage/0371/doc_00031775 [14:56:27]save last doc name /storage/0371/doc_00031775 to /storage/kkm_last_doc_name [14:56:27]save OK [14:56:27]Clear old archive folders... [14:56:27]ProcessDocumentItem done err = 0, tmpTLVsize=287 [14:56:27]tlvbuf is 014B39A0 [14:56:27]SAM_PROTO_ClearQueue [14:56:27]wFMCommunicate request_size=4 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 09 00 00 [14:56:27]Write to MH i2c: E2 08 00 51 27 80 09 00 00 00 00 00 00 EA [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 51 27 00 90 00 EC [14:56:27]RAPDU: 90 00 [14:56:27]wFMCommunicate OK [14:56:27]SAM_PROTO_ClearQueue done [14:56:27]KKMCreateOFDPacket [14:56:27]OFDProtocolAddRootSTLVToBuf [14:56:27]FM_MakeSignedData [14:56:27]FM_MakeSignedData [14:56:27]SAM_PROTO_SignData [14:56:27]wFMCommunicate request_size=4 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 0D 01 02 [14:56:27]Write to MH i2c: E2 08 00 52 27 80 0D 01 02 00 00 00 00 F2 [14:56:27]Write i2c OK [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 [14:56:27]MH_I2C_Read... [14:56:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:27]Read from MH i2c: E2 03 00 [14:56:27]MH_I2C_Read... [14:56:27]Read from MH i2c: E2 03 00 52 27 00 90 00 ED [14:56:27]RAPDU: 90 00 [14:56:27]wFMCommunicate OK [14:56:27]wFMCommunicate request_size=255 [14:56:27]MH_SAM_APDU [14:56:27]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 1F 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [14:56:28]Write to MH i2c: E2 02 01 53 27 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 1F 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 AB [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 53 27 00 90 00 EE [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]wFMCommunicate request_size=46 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1F 7C 00 00 35 04 06 00 81 25 43 45 79 BE [14:56:28]Write to MH i2c: E2 31 00 54 27 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1F 7C 00 00 35 04 06 00 81 25 43 45 79 BE 00 00 82 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 03 00 54 27 00 90 00 EF [14:56:28]RAPDU: 90 00 [14:56:28]wFMCommunicate OK [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 0D 03 02 [14:56:28]Write to MH i2c: E2 08 00 55 27 80 0D 03 02 00 00 00 00 F7 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0B 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 0B 00 55 27 00 2A 11 05 28 08 13 75 29 90 00 19 [14:56:28]RAPDU: 2A 11 05 28 08 13 75 29 90 00 [14:56:28]wFMCommunicate OK [14:56:28]SAM_PROTO_SignData done [14:56:28]FM_MakeSignedData done [14:56:28]CreateOFDProtocolMessage [14:56:28]wFMCommunicate request_size=4 [14:56:28]MH_SAM_APDU [14:56:28]CAPDU: 80 11 00 00 [14:56:28]Write to MH i2c: E2 08 00 56 27 80 11 00 00 00 00 00 00 F7 [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:28]Read from MH i2c: E2 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 17 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: E2 17 00 56 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 52 [14:56:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:56:28]wFMCommunicate OK [14:56:28]CreateOFDProtocolMessage done [14:56:28]OFDSenderStorePacket 31775 [14:56:28]StoreOFDPacket docnum=31775 [14:56:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 A6 E5 2B 01 18 39 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 1F 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1F 7C 00 00 35 04 06 00 81 25 43 45 79 BE 2A 11 05 28 08 13 75 29 [14:56:28]CheckFolder [14:56:28]dirname=/storage/ofd_packets [14:56:28]CheckFolder done [14:56:28]ProducePacketName [14:56:28]name=ofd_packets/00031775 [14:56:28]NVStorageSaveData ofd_packets/00031775 [14:56:28]File name is /storage/ofd_packets/00031775 [14:56:28]Write 337 bytes [14:56:28]NVStorageSaveData done [14:56:28]OFDSenderStorePacket done [14:56:28]KKMCreateOFDPacket done [14:56:28]NVStorageSaveData kkm_last_timestamp [14:56:28]File name is /storage/kkm_last_timestamp [14:56:28]Write 4 bytes [14:56:28]NVStorageSaveData done [14:56:28]ExternCall_PrintAddStr [14:56:28]wPrintStart [14:56:28]Write to MH i2c: 01 00 00 57 27 7E [14:56:28]Write i2c OK [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 [14:56:28]MH_I2C_Read... [14:56:28]Read from MH i2c: 01 07 00 57 27 00 00 00 00 00 FF 0F 93 [14:56:28]RasterBufferAndPrint [14:56:28]line Счет N : (3)214356 [14:56:28]line ИНН: 02508201610067 [14:56:28]line Контрольно-Кассовый Чек [14:56:28]line ПРОДАЖА [14:56:28]line Товар: 2000053020015 [14:56:28]line Бумажные стаканы 250мл 1шт [14:56:28]line 1.000 * 7.00 [14:56:28]line = 7.00 [14:56:28]line НДС 12% НСП 1% [14:56:28]line > о реализуемом товаре [14:56:28]line ИТОГО: 7.00 [14:56:28]line НСП 1% : 0.06 [14:56:28]line НДС 12% : 0.74 [14:56:28]line Наличными: 7.00 [14:56:28]line Безнал.: 0.00 [14:56:28]line Место: АЗС № 140 "Партнер Нефть" [14:56:28]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [14:56:28]line СНО: Общий режим [14:56:28]line Чек 94 16.07.2024 14:56 [14:56:28]line Смена: 371 ФФД: 1.0 [14:56:28]line ЗНМ: 0300000189 [14:56:28]line РНМ: 0000000000098025 [14:56:28]line Версия ККМ: 001 [14:56:28]line ФМ: 0000000000965389 [14:56:28]line ФД: 31775 [14:56:28]line ФПД: 141997042399678 [14:56:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T145631&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31775&fm=141997042399678&tin=02508201610067®Number=0000000000098025&sum=700 [14:56:28]line 0 [14:56:28]written 0, free lines is 4095 [14:56:28]OFD Sender: Processing packet 31775 [packets to send 6, broken 5] [14:56:28]ProducePacketName [14:56:28]name=ofd_packets/00031775 [14:56:28]OFD Sender: To server: pG, [14:56:28]CommunicateWithHost lk.salyk.kg:30040 [14:56:28]ConnectInit lk.salyk.kg [14:56:29]Connected sock=10 [14: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 35 33 38 39 33 01 00 00 A6 E5 2B 01 18 39 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 1F 8A 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 1F 7C 00 00 35 04 06 00 81 25 43 45 79 BE 2A 11 05 28 08 13 75 29 [14:56:29]Write to MH i2c: 01 00 00 80 27 A7 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: 01 07 00 80 27 00 00 00 00 00 F3 0C AD [14:56:29]RasterBufferAndPrint [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]line [14:56:29]written 0, free lines is 3353 [14:56:29]MH_Cut [14:56:29]Write to MH i2c: D1 01 00 87 27 01 80 [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 01 00 [14:56:29]MH_I2C_Read... [14:56:29]Read from MH i2c: D1 01 00 87 27 00 7F [14:56:29]Write to MH i2c: 01 00 00 88 27 AF [14:56:29]Write i2c OK [14:56:29]MH_I2C_Read... [14:56:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 F6 3B 47 00 2B 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 35 33 38 39 10 04 04 00 1F 7C 00 00 F4 03 04 00 2D 36 96 66 B6 04 01 00 00 C2 B5 2B F4 66 70 58 45 [14:56:29]CommunicateWithHost err = 0 [14:56:29]CheckOFDResponse [14:56:29]1017 (14) - 77093643461234 [14:56:29]1041 (16) - 0000000000965389 [14:56:29]1040 (4) - 31775 [14:56:29]1012 (4) - 16.07.2024 08:58 [14:56:29]1206 (1) - 0 [14:56:29]OFD Sender: Remove packet 31775 [14:56:29]ProducePacketName [14:56:29]name=ofd_packets/00031775 [14:56:29]NVStorageDeleteData [14:56:30]*** Cut start [14:56:30]*** Partial cut [14:56:30]*** CUTSNS_PIN = 1 [14:56:30]*** CUTSNS_PIN = 0 [14:56:30]OFD Sender: No OFD packet to send [14:56:30]*** Brake cut motor [14:56:30]Read from MH i2c: 01 [14:56:30]MH_I2C_Read... [14:56:30]*** Stop cut motor [14:56:30]*** Cut end [14:56:30]Read from MH i2c: 01 07 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: 01 07 00 88 27 00 00 00 00 00 FF 0F C4 [14:56:30]process_action close_receipt done [14:56:30]requested_data is exist [14:56:30]produce_requested_data [14:56:30]requested_item fm.sn is exist - process it [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 11 00 00 [14:56:30]Write to MH i2c: E2 08 00 89 27 80 11 00 00 00 00 00 00 2A [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 17 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 17 00 89 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 85 [14:56:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [14:56:30]wFMCommunicate OK [14:56:30]requested_item fd.num is exist - process it [14:56:30]SAM_PROTO_GetFieldsCounters [14:56:30]wFMCommunicate request_size=4 [14:56:30]MH_SAM_APDU [14:56:30]CAPDU: 80 13 00 00 [14:56:30]Write to MH i2c: E2 08 00 8A 27 80 13 00 00 00 00 00 00 2D [14:56:30]Write i2c OK [14:56:30]MH_I2C_Read... [14:56:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:30]Read from MH i2c: E2 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 62 00 [14:56:30]MH_I2C_Read... [14:56:30]Read from MH i2c: E2 62 00 8A 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1F 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [14: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 1F 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:31]wFMCommunicate OK [14:56:31]SAM_PROTO_GetFieldsCounters done [14:56:31]requested_item shift.num is exist - process it [14:56:31]requested_item shift.opened is exist - process it [14:56:31]req_shift_opened [14:56:31]FM_GetShiftState [14:56:31]SAM_PROTO_GetShiftState [14:56:31]wFMCommunicate request_size=4 [14:56:31]MH_SAM_APDU [14:56:31]CAPDU: 80 13 01 00 [14:56:31]Write to MH i2c: E2 08 00 8B 27 80 13 01 00 00 00 00 00 2F [14:56:31]Write i2c OK [14:56:31]MH_I2C_Read... [14:56:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:31]Read from MH i2c: E2 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 0E 00 [14:56:31]MH_I2C_Read... [14:56:31]Read from MH i2c: E2 0E 00 8B 27 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 7E [14:56:31]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [14:56:31]wFMCommunicate OK [14:56:31]SAM_PROTO_GetShiftState done [14:56:31]FM_GetShiftState done [14:56:31]req_shift_opened done [14:56:31]requested_item shift.open_date is exist - process it [14:56:31]req_shift_open_date [14:56:31]req_shift_open_date done [14:56:31]produce_requested_data done [14:56:31]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31775,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [14:56:31]process_action_free close_receipt [14:56:31]json_value_free [14:56:31]json_value_free done [14:56:31]process_json_proto returns [14:56:31]Send response to host [14:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31775,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [14:56:31]free response buf [14:56:31]execute_script done [14:56:31]execute_script returns [14:56:31]free content buf [14:56:31]Sock 9.Close socket [14:56:31]Sock 9.Thread stoped [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]OFD Sender: No OFD packet to send [14:57:50]OFD Sender: No OFD packet to send [14:57:55]OFD Sender: No OFD packet to send [14:58:00]OFD Sender: No OFD packet to send [14:58:05]OFD Sender: No OFD packet to send [14:58:10]OFD Sender: No OFD packet to send [14:58:15]OFD Sender: No OFD packet to send [14:58:20]OFD Sender: No OFD packet to send [14:58:25]OFD Sender: No OFD packet to send [14:58:30]OFD Sender: No OFD packet to send [14:58:35]OFD Sender: No OFD packet to send [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:05]OFD Sender: No OFD packet to send [15:07:10]OFD Sender: No OFD packet to send [15:07:15]OFD Sender: No OFD packet to send [15:07:20]OFD Sender: No OFD packet to send [15:07:25]OFD Sender: No OFD packet to send [15:07:30]OFD Sender: No OFD packet to send [15:07:35]OFD Sender: No OFD packet to send [15:07:40]OFD Sender: No OFD packet to send [15:07:45]OFD Sender: No OFD packet to send [15:07:50]OFD Sender: No OFD packet to send [15:07:55]OFD Sender: No OFD packet to send [15:08:00]OFD Sender: No OFD packet to send [15:08:05]OFD Sender: No OFD packet to send [15:08:10]OFD Sender: No OFD packet to send [15:08:15]OFD Sender: No OFD packet to send [15:08:20]OFD Sender: No OFD packet to send [15:08:25]OFD Sender: No OFD packet to send [15:08:30]OFD Sender: No OFD packet to send [15:08:35]OFD Sender: No OFD packet to send [15:08:40]OFD Sender: No OFD packet to send [15:08:45]OFD Sender: No OFD packet to send [15:08:50]OFD Sender: No OFD packet to send [15:08:55]OFD Sender: No OFD packet to send [15:09:00]OFD Sender: No OFD packet to send [15:09:05]OFD Sender: No OFD packet to send [15:09:10]OFD Sender: No OFD packet to send [15:09:15]OFD Sender: No OFD packet to send [15:09:20]OFD Sender: No OFD packet to send [15:09:25]OFD Sender: No OFD packet to send [15:09:30]OFD Sender: No OFD packet to send [15:09:35]OFD Sender: No OFD packet to send [15:09:40]OFD Sender: No OFD packet to send [15:09:45]OFD Sender: No OFD packet to send [15:09:50]OFD Sender: No OFD packet to send [15:09:55]OFD Sender: No OFD packet to send [15:10:00]OFD Sender: No OFD packet to send [15:10:05]OFD Sender: No OFD packet to send [15:10:10]OFD Sender: No OFD packet to send [15:10:15]OFD Sender: No OFD packet to send [15:10:20]OFD Sender: No OFD packet to send [15:10:25]OFD Sender: No OFD packet to send [15:10:30]OFD Sender: No OFD packet to send [15:10:35]OFD Sender: No OFD packet to send [15:10:40]OFD Sender: No OFD packet to send [15:10:45]OFD Sender: No OFD packet to send [15:10:50]OFD Sender: No OFD packet to send [15:10:55]OFD Sender: No OFD packet to send [15:11:00]OFD Sender: No OFD packet to send [15:11:05]OFD Sender: No OFD packet to send [15:11:10]OFD Sender: No OFD packet to send [15:11:15]OFD Sender: No OFD packet to send [15:11:20]OFD Sender: No OFD packet to send [15:11:25]OFD Sender: No OFD packet to send [15:11:30]OFD Sender: No OFD packet to send [15:11:35]OFD Sender: No OFD packet to send [15:11:40]OFD Sender: No OFD packet to send [15:11:45]OFD Sender: No OFD packet to send [15:11:50]OFD Sender: No OFD packet to send [15:11:55]OFD Sender: No OFD packet to send [15:12:00]OFD Sender: No OFD packet to send [15:12:05]OFD Sender: No OFD packet to send [15:12:10]OFD Sender: No OFD packet to send [15:12:15]OFD Sender: No OFD packet to send [15:12:20]OFD Sender: No OFD packet to send [15:12:25]OFD Sender: No OFD packet to send [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:16]OFD Sender: No OFD packet to send [15:14:21]OFD Sender: No OFD packet to send [15:14:26]OFD Sender: No OFD packet to send [15:14:31]OFD Sender: No OFD packet to send [15:14:36]OFD Sender: No OFD packet to send [15:14:41]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:16]OFD Sender: No OFD packet to send [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]OFD Sender: No OFD packet to send [15:15:36]OFD Sender: No OFD packet to send [15:15:41]OFD Sender: No OFD packet to send [15:15:46]OFD Sender: No OFD packet to send [15:15:51]OFD Sender: No OFD packet to send [15:15:56]OFD Sender: No OFD packet to send [15:16:01]OFD Sender: No OFD packet to send [15:16:06]OFD Sender: No OFD packet to send [15:16:11]OFD Sender: No OFD packet to send [15:16:16]OFD Sender: No OFD packet to send [15:16:21]OFD Sender: No OFD packet to send [15:16:26]OFD Sender: No OFD packet to send [15:16:31]OFD Sender: No OFD packet to send [15:16:36]OFD Sender: No OFD packet to send [15:16:41]OFD Sender: No OFD packet to send [15:16:46]OFD Sender: No OFD packet to send [15:16:51]OFD Sender: No OFD packet to send [15:16:56]OFD Sender: No OFD packet to send [15:17:01]OFD Sender: No OFD packet to send [15:17:06]OFD Sender: No OFD packet to send [15:17:11]OFD Sender: No OFD packet to send [15:17:16]OFD Sender: No OFD packet to send [15:17:21]OFD Sender: No OFD packet to send [15:17:26]OFD Sender: No OFD packet to send [15:17:31]OFD Sender: No OFD packet to send [15:17:36]OFD Sender: No OFD packet to send [15:17:41]OFD Sender: No OFD packet to send [15:17:46]OFD Sender: No OFD packet to send [15:17:51]OFD Sender: No OFD packet to send [15:17:56]OFD Sender: No OFD packet to send [15:18:01]OFD Sender: No OFD packet to send [15:18:06]OFD Sender: No OFD packet to send [15:18:11]OFD Sender: No OFD packet to send [15:18:16]OFD Sender: No OFD packet to send [15:18:21]OFD Sender: No OFD packet to send [15:18:26]OFD Sender: No OFD packet to send [15:18:31]OFD Sender: No OFD packet to send [15:18:36]OFD Sender: No OFD packet to send [15:18:41]OFD Sender: No OFD packet to send [15:18:46]OFD Sender: No OFD packet to send [15:18:51]OFD Sender: No OFD packet to send [15:18:56]OFD Sender: No OFD packet to send [15:19:01]OFD Sender: No OFD packet to send [15:19:06]OFD Sender: No OFD packet to send [15:19:11]OFD Sender: No OFD packet to send [15:19:16]OFD Sender: No OFD packet to send [15:19:21]OFD Sender: No OFD packet to send [15:19:26]OFD Sender: No OFD packet to send [15:19:31]OFD Sender: No OFD packet to send [15:19:36]OFD Sender: No OFD packet to send [15:19:41]OFD Sender: No OFD packet to send [15:19:46]OFD Sender: No OFD packet to send [15:19:51]OFD Sender: No OFD packet to send [15:19:56]OFD Sender: No OFD packet to send [15:20:01]OFD Sender: No OFD packet to send [15:20:06]OFD Sender: No OFD packet to send [15:20:11]OFD Sender: No OFD packet to send [15:20:16]OFD Sender: No OFD packet to send [15:20:21]OFD Sender: No OFD packet to send [15:20:26]OFD Sender: No OFD packet to send [15:20:31]OFD Sender: No OFD packet to send [15:20:36]OFD Sender: No OFD packet to send [15:20:41]OFD Sender: No OFD packet to send [15:20:46]OFD Sender: No OFD packet to send [15:20:51]OFD Sender: No OFD packet to send [15:20:56]OFD Sender: No OFD packet to send [15:21:01]OFD Sender: No OFD packet to send [15:21:06]OFD Sender: No OFD packet to send [15:21:11]OFD Sender: No OFD packet to send [15:21:16]OFD Sender: No OFD packet to send [15:21:21]OFD Sender: No OFD packet to send [15:21:26]OFD Sender: No OFD packet to send [15:21:31]OFD Sender: No OFD packet to send [15:21:36]OFD Sender: No OFD packet to send [15:21:41]OFD Sender: No OFD packet to send [15:21:46]OFD Sender: No OFD packet to send [15:21:51]OFD Sender: No OFD packet to send [15:21:56]OFD Sender: No OFD packet to send [15:22:01]OFD Sender: No OFD packet to send [15:22:06]OFD Sender: No OFD packet to send [15:22:11]OFD Sender: No OFD packet to send [15:22:16]OFD Sender: No OFD packet to send [15:22:21]OFD Sender: No OFD packet to send [15:22:26]OFD Sender: No OFD packet to send [15:22:31]OFD Sender: No OFD packet to send [15:22:33]accept exits with 7 [15:22:33]New connection [15:22:33]New thread 3066821988 created [15:22:33]Thread 3066965348 joined [15:22:33]Waiting for new connection... [15:22:33] Sock 7.Parse request [15:22:33]Sock 7.Check first char [15:22:33]Sock 7.First char is OK [15:22:33]request: POST /json_proto HTTP/1.0 [15:22:33]Method: POST [15:22:33]URL: /json_proto [15:22:33]Method is POST - this is cgi request [15:22:33]url: /json_proto [15:22:33]query_string will be loaded in cgi processing [15:22:33]execute_cgi json_proto POST (null) [15:22:33]execute_cgi path=json_proto method=POST [15:22:33]POST find Content-Length [15:22:33]Host: 172.17.39.68:8080 [15:22:33]Content-Length: 946 [15:22:33]Content-Type: application/json [15:22:33] [15:22:33]POST finish read [15:22:33]Found Content-Length = 946 [15:22:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214357", "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 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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" ] } } [15:22:33]execute_script... [15:22: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)214357", "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 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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" ] } } [15:22:33]POST & json_proto [15:22:33]process_json_proto [15:22:33]json parsed OK: [15:22:33]protocol is kg_v1.0 [15:22:33]action value=close_receipt [15:22:33]process_action close_receipt [15:22:33]cmd_close_receipt [15:22:33]MH_GetDate [15:22:33]Write to MH i2c: F0 00 00 8C 27 A2 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: F0 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: F0 09 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: F0 09 00 8C 27 00 3E 90 96 66 D6 48 95 66 8E [15:22:33]GetLastDocTimeStamp 1721141791 [15:22:33]current date 1721143358 [15:22:33]FM_GetShiftState [15:22:33]SAM_PROTO_GetShiftState [15:22:33]wFMCommunicate request_size=4 [15:22:33]MH_SAM_APDU [15:22:33]CAPDU: 80 13 01 00 [15:22:33]Write to MH i2c: E2 08 00 8D 27 80 13 01 00 00 00 00 00 31 [15:22:33]Write i2c OK [15:22:33]MH_I2C_Read... [15:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:33]Read from MH i2c: E2 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 0E 00 [15:22:33]MH_I2C_Read... [15:22:33]Read from MH i2c: E2 0E 00 8D 27 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 80 [15:22:33]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [15:22:33]wFMCommunicate OK [15:22:33]SAM_PROTO_GetShiftState done [15:22:33]FM_GetShiftState done [15:22:33]opened in 1721088399 [15:22:33]opened+sec_in_day 1721174799 [15:22:33]quantity*price = 9500 [15:22:33]sum+1 = 9501 [15:22:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.43 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 95 16.07.2024 15:22 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31776 ФПД: 154677924749780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T152238&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31776&fm=154677924749780&tin=02508201610067®Number=0000000000098025&sum=23000 0 [15:22:34]StoreToDocumentArchive [15:22:34]shift 371 fd 31776 [15:22:34]save to /storage/0371/doc_00031776 [15:22:34]save last doc name /storage/0371/doc_00031776 to /storage/kkm_last_doc_name [15:22:34]save OK [15:22:34]Clear old archive folders... [15:22:34]ProcessDocumentItem done err = 0, tmpTLVsize=406 [15:22:34]tlvbuf is 015272F0 [15:22:34]SAM_PROTO_ClearQueue [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 09 00 00 [15:22:34]Write to MH i2c: E2 08 00 9A 27 80 09 00 00 00 00 00 00 33 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 9A 27 00 90 00 35 [15:22:34]RAPDU: 90 00 [15:22:34]wFMCommunicate OK [15:22:34]SAM_PROTO_ClearQueue done [15:22:34]KKMCreateOFDPacket [15:22:34]OFDProtocolAddRootSTLVToBuf [15:22:34]FM_MakeSignedData [15:22:34]FM_MakeSignedData [15:22:34]SAM_PROTO_SignData [15:22:34]wFMCommunicate request_size=4 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 0D 01 02 [15:22:34]Write to MH i2c: E2 08 00 9B 27 80 0D 01 02 00 00 00 00 3B [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 9B 27 00 90 00 36 [15:22:34]RAPDU: 90 00 [15:22:34]wFMCommunicate OK [15:22:34]wFMCommunicate request_size=255 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 0D 02 02 FA 03 00 96 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 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 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 D8 [15:22:34]Write to MH i2c: E2 02 01 9C 27 80 0D 02 02 FA 00 03 00 96 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 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 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 D8 00 00 D9 [15:22:34]Write i2c OK [15:22:34]MH_I2C_Read... [15:22:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:34]Read from MH i2c: E2 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 [15:22:34]MH_I2C_Read... [15:22:34]Read from MH i2c: E2 03 00 9C 27 00 90 00 37 [15:22:34]RAPDU: 90 00 [15:22:34]wFMCommunicate OK [15:22:34]wFMCommunicate request_size=165 [15:22:34]MH_SAM_APDU [15:22:34]CAPDU: 80 0D 02 02 A0 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 8B 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 5F 00 00 00 F4 03 04 00 3E 90 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 20 7C 00 00 35 04 06 00 8C AD C2 C2 61 D4 [15:22:34]Write to MH i2c: E2 A8 00 9D 27 80 0D 02 02 A0 00 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 8B 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 5F 00 00 00 F4 03 04 00 3E 90 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 20 7C 00 00 35 04 06 00 8C AD C2 C2 61 D4 00 00 D6 [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:35]Read from MH i2c: E2 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 03 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 03 00 9D 27 00 90 00 38 [15:22:35]RAPDU: 90 00 [15:22:35]wFMCommunicate OK [15:22:35]wFMCommunicate request_size=4 [15:22:35]MH_SAM_APDU [15:22:35]CAPDU: 80 0D 03 02 [15:22:35]Write to MH i2c: E2 08 00 9E 27 80 0D 03 02 00 00 00 00 40 [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:35]Read from MH i2c: E2 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 0B 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 0B 00 9E 27 00 49 1D 93 17 98 24 D3 6B 90 00 4B [15:22:35]RAPDU: 49 1D 93 17 98 24 D3 6B 90 00 [15:22:35]wFMCommunicate OK [15:22:35]SAM_PROTO_SignData done [15:22:35]FM_MakeSignedData done [15:22:35]CreateOFDProtocolMessage [15:22:35]wFMCommunicate request_size=4 [15:22:35]MH_SAM_APDU [15:22:35]CAPDU: 80 11 00 00 [15:22:35]Write to MH i2c: E2 08 00 9F 27 80 11 00 00 00 00 00 00 40 [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:35]Read from MH i2c: E2 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 17 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: E2 17 00 9F 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9B [15:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:22:35]wFMCommunicate OK [15:22:35]CreateOFDProtocolMessage done [15:22:35]OFDSenderStorePacket 31776 [15:22:35]StoreOFDPacket docnum=31776 [15:22:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AA 01 00 00 17 EA A2 01 73 3E 5A 03 01 00 03 00 96 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 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 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 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 8B 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 5F 00 00 00 F4 03 04 00 3E 90 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 20 7C 00 00 35 04 06 00 8C AD C2 C2 61 D4 49 1D 93 17 98 24 D3 6B [15:22:35]CheckFolder [15:22:35]dirname=/storage/ofd_packets [15:22:35]CheckFolder done [15:22:35]ProducePacketName [15:22:35]name=ofd_packets/00031776 [15:22:35]NVStorageSaveData ofd_packets/00031776 [15:22:35]File name is /storage/ofd_packets/00031776 [15:22:35]Write 456 bytes [15:22:35]NVStorageSaveData done [15:22:35]OFDSenderStorePacket done [15:22:35]KKMCreateOFDPacket done [15:22:35]NVStorageSaveData kkm_last_timestamp [15:22:35]File name is /storage/kkm_last_timestamp [15:22:35]Write 4 bytes [15:22:35]NVStorageSaveData done [15:22:35]ExternCall_PrintAddStr [15:22:35]wPrintStart [15:22:35]Write to MH i2c: 01 00 00 A0 27 C7 [15:22:35]Write i2c OK [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: 01 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: 01 07 00 [15:22:35]MH_I2C_Read... [15:22:35]Read from MH i2c: 01 07 00 A0 27 00 00 00 00 00 FF 0F DC [15:22:35]RasterBufferAndPrint [15:22:35]line Счет N : (3)214357 [15:22:35]line ИНН: 02508201610067 [15:22:35]line Контрольно-Кассовый Чек [15:22:35]line ПРОДАЖА [15:22:35]line Товар: 4700000480302 [15:22:35]line Напиток энерг Nitro манго-клуб 0.45 ж/б [15:22:35]line 1.000 * 95.00 [15:22:35]line = 95.00 [15:22:35]line НДС 12% НСП 1% [15:22:35]line > о реализуемом товаре [15:22:35]line Товар: 48745000 [15:22:35]line Сигареты Winston Purple Mix [15:22:35]line 1.000 * 135.00 [15:22:35]line = 135.00 [15:22:35]line НДС 12% НСП 1% [15:22:35]line > о реализуемом товаре [15:22:35]line ИТОГО: 230.00 [15:22:35]line НСП 1% : 2.03 [15:22:35]line НДС 12% : 24.43 [15:22:35]line Наличными: 230.00 [15:22:35]line Безнал.: 0.00 [15:22:35]line Место: АЗС № 140 "Партнер Нефть" [15:22:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:22:35]line СНО: Общий режим [15:22:35]line Чек 95 16.07.2024 15:22 [15:22:35]line Смена: 371 ФФД: 1.0 [15:22:35]line ЗНМ: 0300000189 [15:22:35]line РНМ: 0000000000098025 [15:22:35]line Версия ККМ: 001 [15:22:35]line ФМ: 0000000000965389 [15:22:35]line ФД: 31776 [15:22:35]line ФПД: 154677924749780 [15:22:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T152238&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31776&fm=154677924749780&tin=02508201610067®Number=0000000000098025&sum=23000 [15:22:35]line 0 [15:22:35]OFD Sender: Processing packet 31776 [packets to send 6, broken 5] [15:22:35]ProducePacketName [15:22:35]name=ofd_packets/00031776 [15:22:35]OFD Sender: To server: pG, [15:22:35]CommunicateWithHost lk.salyk.kg:30040 [15:22:35]ConnectInit lk.salyk.kg [15:22:35]written 0, free lines is 4095 [15:22:35]Connected sock=10 [15:22:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AA 01 00 00 17 EA A2 01 73 3E 5A 03 01 00 03 00 96 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 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 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 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 8B 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 5F 00 00 00 F4 03 04 00 3E 90 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 20 7C 00 00 35 04 06 00 8C AD C2 C2 61 D4 49 1D 93 17 98 24 D3 6B [15:22:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B3 9A 47 00 E8 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 35 33 38 39 10 04 04 00 20 7C 00 00 F4 03 04 00 4B 3C 96 66 B6 04 01 00 00 1C 8F B5 28 2A 79 B6 7B [15:22:35]CommunicateWithHost err = 0 [15:22:35]CheckOFDResponse [15:22:35]1017 (14) - 77093643461234 [15:22:35]1041 (16) - 0000000000965389 [15:22:35]1040 (4) - 31776 [15:22:35]1012 (4) - 16.07.2024 09:24 [15:22:35]1206 (1) - 0 [15:22:35]OFD Sender: Remove packet 31776 [15:22:35]ProducePacketName [15:22:35]name=ofd_packets/00031776 [15:22:35]NVStorageDeleteData [15:22:36]Write to MH i2c: 01 00 00 CF 27 F6 [15:22:36]Write i2c OK [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: 01 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: 01 07 00 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: 01 07 00 CF 27 00 00 00 00 00 94 0C 9D [15:22:36]RasterBufferAndPrint [15:22:36]line [15:22:36]line [15:22:36]line [15:22:36]line [15:22:36]line [15:22:36]written 0, free lines is 3227 [15:22:36]MH_Cut [15:22:36]Write to MH i2c: D1 01 00 D6 27 01 CF [15:22:36]Write i2c OK [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: D1 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: D1 01 00 [15:22:36]MH_I2C_Read... [15:22:36]Read from MH i2c: D1 01 00 D6 27 00 CE [15:22:36]Write to MH i2c: 01 00 00 D7 27 FE [15:22:36]Write i2c OK [15:22:36]MH_I2C_Read... [15:22:36]OFD Sender: No OFD packet to send [15:22:36]*** Cut start [15:22:36]*** Partial cut [15:22:36]*** CUTSNS_PIN = 1 [15:22:37]*** CUTSNS_PIN = 0 [15:22:37]*** Brake cut motor [15:22:37]Read from MH i2c: 01 [15:22:37]MH_I2C_Read... [15:22:37]*** Stop cut motor [15:22:37]*** Cut end [15:22:37]Read from MH i2c: 01 07 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: 01 07 00 D7 27 00 00 00 00 00 FF 0F 13 [15:22:37]process_action close_receipt done [15:22:37]requested_data is exist [15:22:37]produce_requested_data [15:22:37]requested_item fm.sn is exist - process it [15:22:37]wFMCommunicate request_size=4 [15:22:37]MH_SAM_APDU [15:22:37]CAPDU: 80 11 00 00 [15:22:37]Write to MH i2c: E2 08 00 D8 27 80 11 00 00 00 00 00 00 79 [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 17 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 17 00 D8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D4 [15:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:22:37]wFMCommunicate OK [15:22:37]requested_item fd.num is exist - process it [15:22:37]SAM_PROTO_GetFieldsCounters [15:22:37]wFMCommunicate request_size=4 [15:22:37]MH_SAM_APDU [15:22:37]CAPDU: 80 13 00 00 [15:22:37]Write to MH i2c: E2 08 00 D9 27 80 13 00 00 00 00 00 00 7C [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 62 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 62 00 D9 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 20 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [15:22: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 20 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:22:37]wFMCommunicate OK [15:22:37]SAM_PROTO_GetFieldsCounters done [15:22:37]requested_item shift.num is exist - process it [15:22:37]requested_item shift.opened is exist - process it [15:22:37]req_shift_opened [15:22:37]FM_GetShiftState [15:22:37]SAM_PROTO_GetShiftState [15:22:37]wFMCommunicate request_size=4 [15:22:37]MH_SAM_APDU [15:22:37]CAPDU: 80 13 01 00 [15:22:37]Write to MH i2c: E2 08 00 DA 27 80 13 01 00 00 00 00 00 7E [15:22:37]Write i2c OK [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 [15:22:37]MH_I2C_Read... [15:22:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:37]Read from MH i2c: E2 0E 00 [15:22:37]MH_I2C_Read... [15:22:37]Read from MH i2c: E2 0E 00 DA 27 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 CD [15:22:37]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [15:22:37]wFMCommunicate OK [15:22:37]SAM_PROTO_GetShiftState done [15:22:37]FM_GetShiftState done [15:22:37]req_shift_opened done [15:22:37]requested_item shift.open_date is exist - process it [15:22:37]req_shift_open_date [15:22:37]req_shift_open_date done [15:22:37]produce_requested_data done [15:22:37]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31776,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [15:22:37]process_action_free close_receipt [15:22:37]json_value_free [15:22:37]json_value_free done [15:22:37]process_json_proto returns [15:22:37]Send response to host [15:22:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31776,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [15:22:37]free response buf [15:22:37]execute_script done [15:22:37]execute_script returns [15:22:37]free content buf [15:22:37]Sock 7.Close socket [15:22:37]Sock 7.Thread stoped [15:22:41]OFD Sender: No OFD packet to send [15:22:46]OFD Sender: No OFD packet to send [15:22:51]OFD Sender: No OFD packet to send [15:22:56]OFD Sender: No OFD packet to send [15:23:01]OFD Sender: No OFD packet to send [15:23:06]OFD Sender: No OFD packet to send [15:23:11]OFD Sender: No OFD packet to send [15:23:16]OFD Sender: No OFD packet to send [15:23:17]accept exits with 9 [15:23:17]New connection [15:23:17]New thread 3066965348 created [15:23:17]Thread 3066821988 joined [15:23:17]Waiting for new connection... [15:23:17] Sock 9.Parse request [15:23:17]Sock 9.Check first char [15:23:17]Sock 9.First char is OK [15:23:17]request: POST /json_proto HTTP/1.0 [15:23:17]Method: POST [15:23:17]URL: /json_proto [15:23:17]Method is POST - this is cgi request [15:23:17]url: /json_proto [15:23:17]query_string will be loaded in cgi processing [15:23:17]execute_cgi json_proto POST (null) [15:23:17]execute_cgi path=json_proto method=POST [15:23:17]POST find Content-Length [15:23:17]Host: 172.17.39.68:8080 [15:23:17]Content-Length: 809 [15:23:17]Content-Type: application/json [15:23:17] [15:23:17]POST finish read [15:23:17]Found Content-Length = 809 [15:23:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214358", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:17]execute_script... [15:23: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)214358", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:23:17]POST & json_proto [15:23:17]process_json_proto [15:23:17]json parsed OK: [15:23:17]protocol is kg_v1.0 [15:23:17]action value=close_receipt [15:23:17]process_action close_receipt [15:23:17]cmd_close_receipt [15:23:17]MH_GetDate [15:23:17]Write to MH i2c: F0 00 00 DB 27 F1 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: F0 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: F0 09 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: F0 09 00 DB 27 00 6A 90 96 66 D6 48 95 66 09 [15:23:17]GetLastDocTimeStamp 1721143358 [15:23:17]current date 1721143402 [15:23:17]FM_GetShiftState [15:23:17]SAM_PROTO_GetShiftState [15:23:17]wFMCommunicate request_size=4 [15:23:17]MH_SAM_APDU [15:23:17]CAPDU: 80 13 01 00 [15:23:17]Write to MH i2c: E2 08 00 DC 27 80 13 01 00 00 00 00 00 80 [15:23:17]Write i2c OK [15:23:17]MH_I2C_Read... [15:23:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:17]Read from MH i2c: E2 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 0E 00 [15:23:17]MH_I2C_Read... [15:23:17]Read from MH i2c: E2 0E 00 DC 27 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 CF [15:23:17]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [15:23:17]wFMCommunicate OK [15:23:17]SAM_PROTO_GetShiftState done [15:23:17]FM_GetShiftState done [15:23:17]opened in 1721088399 [15:23:17]opened+sec_in_day 1721174799 [15:23:17]quantity*price = 16000 [15:23:17]sum+1 = 16001 [15:23:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 0.00 Безнал.: 160.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 96 16.07.2024 15:23 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31777 ФПД: 11168125190707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T152322&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31777&fm=11168125190707&tin=02508201610067®Number=0000000000098025&sum=16000 0 [15:23:18]StoreToDocumentArchive [15:23:18]shift 371 fd 31777 [15:23:18]save to /storage/0371/doc_00031777 [15:23:18]save last doc name /storage/0371/doc_00031777 to /storage/kkm_last_doc_name [15:23:18]save OK [15:23:18]Clear old archive folders... [15:23:18]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:23:18]tlvbuf is 01517FC0 [15:23:18]SAM_PROTO_ClearQueue [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 09 00 00 [15:23:18]Write to MH i2c: E2 08 00 E9 27 80 09 00 00 00 00 00 00 82 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 03 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 03 00 E9 27 00 90 00 84 [15:23:18]RAPDU: 90 00 [15:23:18]wFMCommunicate OK [15:23:18]SAM_PROTO_ClearQueue done [15:23:18]KKMCreateOFDPacket [15:23:18]OFDProtocolAddRootSTLVToBuf [15:23:18]FM_MakeSignedData [15:23:18]FM_MakeSignedData [15:23:18]SAM_PROTO_SignData [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 0D 01 02 [15:23:18]Write to MH i2c: E2 08 00 EA 27 80 0D 01 02 00 00 00 00 8A [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 03 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 03 00 EA 27 00 90 00 85 [15:23:18]RAPDU: 90 00 [15:23:18]wFMCommunicate OK [15:23:18]wFMCommunicate request_size=255 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 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 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6A 90 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [15:23:18]Write to MH i2c: E2 02 01 EB 27 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 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 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6A 90 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 B5 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 03 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 03 00 EB 27 00 90 00 86 [15:23:18]RAPDU: 90 00 [15:23:18]wFMCommunicate OK [15:23:18]wFMCommunicate request_size=35 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 21 7C 00 00 35 04 06 00 0A 28 48 22 82 33 [15:23:18]Write to MH i2c: E2 26 00 EC 27 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 21 7C 00 00 35 04 06 00 0A 28 48 22 82 33 00 00 76 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 03 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 03 00 EC 27 00 90 00 87 [15:23:18]RAPDU: 90 00 [15:23:18]wFMCommunicate OK [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 0D 03 02 [15:23:18]Write to MH i2c: E2 08 00 ED 27 80 0D 03 02 00 00 00 00 8F [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 0B 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 0B 00 ED 27 00 1D 72 E2 EC A2 75 A7 F9 90 00 A4 [15:23:18]RAPDU: 1D 72 E2 EC A2 75 A7 F9 90 00 [15:23:18]wFMCommunicate OK [15:23:18]SAM_PROTO_SignData done [15:23:18]FM_MakeSignedData done [15:23:18]CreateOFDProtocolMessage [15:23:18]wFMCommunicate request_size=4 [15:23:18]MH_SAM_APDU [15:23:18]CAPDU: 80 11 00 00 [15:23:18]Write to MH i2c: E2 08 00 EE 27 80 11 00 00 00 00 00 00 8F [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:18]Read from MH i2c: E2 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 17 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: E2 17 00 EE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 EA [15:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:23:18]wFMCommunicate OK [15:23:18]CreateOFDProtocolMessage done [15:23:18]OFDSenderStorePacket 31777 [15:23:18]StoreOFDPacket docnum=31777 [15:23:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 C8 81 20 01 0B A1 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 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 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6A 90 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 21 7C 00 00 35 04 06 00 0A 28 48 22 82 33 1D 72 E2 EC A2 75 A7 F9 [15:23:18]CheckFolder [15:23:18]dirname=/storage/ofd_packets [15:23:18]CheckFolder done [15:23:18]ProducePacketName [15:23:18]name=ofd_packets/00031777 [15:23:18]NVStorageSaveData ofd_packets/00031777 [15:23:18]File name is /storage/ofd_packets/00031777 [15:23:18]Write 326 bytes [15:23:18]NVStorageSaveData done [15:23:18]OFDSenderStorePacket done [15:23:18]KKMCreateOFDPacket done [15:23:18]NVStorageSaveData kkm_last_timestamp [15:23:18]File name is /storage/kkm_last_timestamp [15:23:18]Write 4 bytes [15:23:18]NVStorageSaveData done [15:23:18]ExternCall_PrintAddStr [15:23:18]wPrintStart [15:23:18]Write to MH i2c: 01 00 00 EF 27 16 [15:23:18]Write i2c OK [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: 01 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: 01 07 00 [15:23:18]MH_I2C_Read... [15:23:18]Read from MH i2c: 01 07 00 EF 27 00 00 00 00 00 FF 0F 2B [15:23:18]RasterBufferAndPrint [15:23:18]line Счет N : (3)214358 [15:23:18]line ИНН: 02508201610067 [15:23:18]line Контрольно-Кассовый Чек [15:23:18]line ПРОДАЖА [15:23:18]line Товар: 4860019001346 [15:23:18]line Вода Боржоми 0,5л ст [15:23:18]line 1.000 * 160.00 [15:23:18]line = 160.00 [15:23:18]line НДС 12% НСП 1% [15:23:18]line > о реализуемом товаре [15:23:18]line ИТОГО: 160.00 [15:23:18]line НСП 1% : 1.42 [15:23:18]line НДС 12% : 16.99 [15:23:18]line Наличными: 0.00 [15:23:18]line Безнал.: 160.00 [15:23:18]line Место: АЗС № 140 "Партнер Нефть" [15:23:18]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:23:18]line СНО: Общий режим [15:23:18]line Чек 96 16.07.2024 15:23 [15:23:18]line Смена: 371 ФФД: 1.0 [15:23:18]line ЗНМ: 0300000189 [15:23:18]line РНМ: 0000000000098025 [15:23:18]line Версия ККМ: 001 [15:23:18]line Платежная система: O! деньги [15:23:18]line ФМ: 0000000000965389 [15:23:18]line ФД: 31777 [15:23:18]line ФПД: 11168125190707 [15:23:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T152322&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31777&fm=11168125190707&tin=02508201610067®Number=0000000000098025&sum=16000 [15:23:19]line 0 [15:23:19]OFD Sender: Processing packet 31777 [packets to send 6, broken 5] [15:23:19]ProducePacketName [15:23:19]name=ofd_packets/00031777 [15:23:19]OFD Sender: To server: pG, [15:23:19]CommunicateWithHost lk.salyk.kg:30040 [15:23:19]ConnectInit lk.salyk.kg [15:23:19]written 0, free lines is 4095 [15:23:19]Connected sock=10 [15:23:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 C8 81 20 01 0B A1 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 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 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 6A 90 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 21 7C 00 00 35 04 06 00 0A 28 48 22 82 33 1D 72 E2 EC A2 75 A7 F9 [15:23:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 50 73 47 00 04 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 35 33 38 39 10 04 04 00 21 7C 00 00 F4 03 04 00 77 3C 96 66 B6 04 01 00 00 1E 65 C6 F5 40 B3 A7 7A [15:23:19]CommunicateWithHost err = 0 [15:23:19]CheckOFDResponse [15:23:19]1017 (14) - 77093643461234 [15:23:19]1041 (16) - 0000000000965389 [15:23:19]1040 (4) - 31777 [15:23:19]1012 (4) - 16.07.2024 09:25 [15:23:19]1206 (1) - 0 [15:23:19]OFD Sender: Remove packet 31777 [15:23:19]ProducePacketName [15:23:19]name=ofd_packets/00031777 [15:23:19]NVStorageDeleteData [15:23:19]Write to MH i2c: 01 00 00 19 28 41 [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: 01 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: 01 07 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: 01 07 00 19 28 00 00 00 00 00 F7 0C 4B [15:23:19]RasterBufferAndPrint [15:23:19]line [15:23:19]line [15:23:19]line [15:23:19]line [15:23:19]line [15:23:19]written 0, free lines is 3324 [15:23:19]MH_Cut [15:23:19]Write to MH i2c: D1 01 00 20 28 01 1A [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: D1 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: D1 01 00 [15:23:19]MH_I2C_Read... [15:23:19]Read from MH i2c: D1 01 00 20 28 00 19 [15:23:19]Write to MH i2c: 01 00 00 21 28 49 [15:23:19]Write i2c OK [15:23:19]MH_I2C_Read... [15:23:19]OFD Sender: No OFD packet to send [15:23:20]*** Cut start [15:23:20]*** Partial cut [15:23:20]*** CUTSNS_PIN = 1 [15:23:20]*** CUTSNS_PIN = 0 [15:23:20]*** Brake cut motor [15:23:21]Read from MH i2c: 01 [15:23:21]MH_I2C_Read... [15:23:21]*** Stop cut motor [15:23:21]*** Cut end [15:23:21]Read from MH i2c: 01 07 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: 01 07 00 21 28 00 00 00 00 00 FF 0F 5E [15:23:21]process_action close_receipt done [15:23:21]requested_data is exist [15:23:21]produce_requested_data [15:23:21]requested_item fm.sn is exist - process it [15:23:21]wFMCommunicate request_size=4 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 11 00 00 [15:23:21]Write to MH i2c: E2 08 00 22 28 80 11 00 00 00 00 00 00 C4 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 17 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 17 00 22 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1F [15:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:23:21]wFMCommunicate OK [15:23:21]requested_item fd.num is exist - process it [15:23:21]SAM_PROTO_GetFieldsCounters [15:23:21]wFMCommunicate request_size=4 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 13 00 00 [15:23:21]Write to MH i2c: E2 08 00 23 28 80 13 00 00 00 00 00 00 C7 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 62 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 62 00 23 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 21 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [15:23:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 21 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:23:21]wFMCommunicate OK [15:23:21]SAM_PROTO_GetFieldsCounters done [15:23:21]requested_item shift.num is exist - process it [15:23:21]requested_item shift.opened is exist - process it [15:23:21]req_shift_opened [15:23:21]FM_GetShiftState [15:23:21]SAM_PROTO_GetShiftState [15:23:21]wFMCommunicate request_size=4 [15:23:21]MH_SAM_APDU [15:23:21]CAPDU: 80 13 01 00 [15:23:21]Write to MH i2c: E2 08 00 24 28 80 13 01 00 00 00 00 00 C9 [15:23:21]Write i2c OK [15:23:21]MH_I2C_Read... [15:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:23:21]Read from MH i2c: E2 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 0E 00 [15:23:21]MH_I2C_Read... [15:23:21]Read from MH i2c: E2 0E 00 24 28 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 18 [15:23:21]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [15:23:21]wFMCommunicate OK [15:23:21]SAM_PROTO_GetShiftState done [15:23:21]FM_GetShiftState done [15:23:21]req_shift_opened done [15:23:21]requested_item shift.open_date is exist - process it [15:23:21]req_shift_open_date [15:23:21]req_shift_open_date done [15:23:21]produce_requested_data done [15:23:21]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31777,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [15:23:21]process_action_free close_receipt [15:23:21]json_value_free [15:23:21]json_value_free done [15:23:21]process_json_proto returns [15:23:21]Send response to host [15:23:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31777,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [15:23:21]free response buf [15:23:21]execute_script done [15:23:21]execute_script returns [15:23:21]free content buf [15:23:21]Sock 9.Close socket [15:23:21]Sock 9.Thread stoped [15:23:24]OFD Sender: No OFD packet to send [15:23:29]OFD Sender: No OFD packet to send [15:23:34]OFD Sender: No OFD packet to send [15:23:39]OFD Sender: No OFD packet to send [15:23:44]OFD Sender: No OFD packet to send [15:23:49]OFD Sender: No OFD packet to send [15:23:54]OFD Sender: No OFD packet to send [15:23:59]OFD Sender: No OFD packet to send [15:24: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:55]OFD Sender: No OFD packet to send [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:53]accept exits with 7 [15:30:53]New connection [15:30:53]New thread 3066821988 created [15:30:53]Thread 3066965348 joined [15:30:53]Waiting for new connection... [15:30:53] Sock 7.Parse request [15:30:53]Sock 7.Check first char [15:30:53]Sock 7.First char is OK [15:30:53]request: POST /json_proto HTTP/1.0 [15:30:53]Method: POST [15:30:53]URL: /json_proto [15:30:53]Method is POST - this is cgi request [15:30:53]url: /json_proto [15:30:53]query_string will be loaded in cgi processing [15:30:53]execute_cgi json_proto POST (null) [15:30:53]execute_cgi path=json_proto method=POST [15:30:53]POST find Content-Length [15:30:53]Host: 172.17.39.68:8080 [15:30:53]Content-Length: 613 [15:30:53]Content-Type: application/json [15:30:53] [15:30:53]POST finish read [15:30:53]Found Content-Length = 613 [15:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214359", "tax_sys" : 0, "items" : [ { "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" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:53]execute_script... [15:30: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 : (3)214359", "tax_sys" : 0, "items" : [ { "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" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:53]POST & json_proto [15:30:53]process_json_proto [15:30:53]json parsed OK: [15:30:53]protocol is kg_v1.0 [15:30:53]action value=close_receipt [15:30:53]process_action close_receipt [15:30:53]cmd_close_receipt [15:30:53]MH_GetDate [15:30:53]Write to MH i2c: F0 00 00 25 28 3C [15:30:53]Write i2c OK [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: F0 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: F0 09 00 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: F0 09 00 25 28 00 32 92 96 66 D6 48 95 66 1E [15:30:53]GetLastDocTimeStamp 1721143402 [15:30:53]current date 1721143858 [15:30:53]FM_GetShiftState [15:30:53]SAM_PROTO_GetShiftState [15:30:53]wFMCommunicate request_size=4 [15:30:53]MH_SAM_APDU [15:30:53]CAPDU: 80 13 01 00 [15:30:53]Write to MH i2c: E2 08 00 26 28 80 13 01 00 00 00 00 00 CB [15:30:53]Write i2c OK [15:30:53]MH_I2C_Read... [15:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:53]Read from MH i2c: E2 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 0E 00 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 0E 00 26 28 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 1A [15:30:53]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [15:30:53]wFMCommunicate OK [15:30:53]SAM_PROTO_GetShiftState done [15:30:53]FM_GetShiftState done [15:30:53]opened in 1721088399 [15:30:53]opened+sec_in_day 1721174799 [15:30:53]quantity*price = 8000 [15:30:53]sum+1 = 8001 [15:30:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 97 16.07.2024 15:30 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31778 ФПД: 143565619253073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T153058&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31778&fm=143565619253073&tin=02508201610067®Number=0000000000098025&sum=8000 0 [15:30:54]StoreToDocumentArchive [15:30:54]shift 371 fd 31778 [15:30:54]save to /storage/0371/doc_00031778 [15:30:54]save last doc name /storage/0371/doc_00031778 to /storage/kkm_last_doc_name [15:30:54]save OK [15:30:54]Clear old archive folders... [15:30:54]ProcessDocumentItem done err = 0, tmpTLVsize=268 [15:30:54]tlvbuf is 0155CF40 [15:30:54]SAM_PROTO_ClearQueue [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 09 00 00 [15:30:54]Write to MH i2c: E2 08 00 33 28 80 09 00 00 00 00 00 00 CD [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 33 28 00 90 00 CF [15:30:54]RAPDU: 90 00 [15:30:54]wFMCommunicate OK [15:30:54]SAM_PROTO_ClearQueue done [15:30:54]KKMCreateOFDPacket [15:30:54]OFDProtocolAddRootSTLVToBuf [15:30:54]FM_MakeSignedData [15:30:54]FM_MakeSignedData [15:30:54]SAM_PROTO_SignData [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 0D 01 02 [15:30:54]Write to MH i2c: E2 08 00 34 28 80 0D 01 02 00 00 00 00 D5 [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 34 28 00 90 00 D0 [15:30:54]RAPDU: 90 00 [15:30:54]wFMCommunicate OK [15:30:54]wFMCommunicate request_size=255 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 32 92 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [15:30:54]Write to MH i2c: E2 02 01 35 28 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 32 92 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 7C [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 35 28 00 90 00 D1 [15:30:54]RAPDU: 90 00 [15:30:54]wFMCommunicate OK [15:30:54]wFMCommunicate request_size=27 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 0D 02 02 16 35 33 38 39 10 04 04 00 22 7C 00 00 35 04 06 00 82 92 79 BC CF 51 [15:30:54]Write to MH i2c: E2 1E 00 36 28 80 0D 02 02 16 00 35 33 38 39 10 04 04 00 22 7C 00 00 35 04 06 00 82 92 79 BC CF 51 00 00 3B [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:54]Read from MH i2c: E2 03 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 03 00 36 28 00 90 00 D2 [15:30:54]RAPDU: 90 00 [15:30:54]wFMCommunicate OK [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 0D 03 02 [15:30:54]Write to MH i2c: E2 08 00 37 28 80 0D 03 02 00 00 00 00 DA [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 0B 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 0B 00 37 28 00 E3 A0 7B 57 6C F1 A4 C2 90 00 F3 [15:30:54]RAPDU: E3 A0 7B 57 6C F1 A4 C2 90 00 [15:30:54]wFMCommunicate OK [15:30:54]SAM_PROTO_SignData done [15:30:54]FM_MakeSignedData done [15:30:54]CreateOFDProtocolMessage [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 11 00 00 [15:30:54]Write to MH i2c: E2 08 00 38 28 80 11 00 00 00 00 00 00 DA [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 17 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 17 00 38 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 35 [15:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:30:54]wFMCommunicate OK [15:30:54]CreateOFDProtocolMessage done [15:30:54]OFDSenderStorePacket 31778 [15:30:54]StoreOFDPacket docnum=31778 [15:30:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 20 01 00 00 ED 95 18 01 62 6D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 32 92 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 22 7C 00 00 35 04 06 00 82 92 79 BC CF 51 E3 A0 7B 57 6C F1 A4 C2 [15:30:54]CheckFolder [15:30:54]dirname=/storage/ofd_packets [15:30:54]CheckFolder done [15:30:54]ProducePacketName [15:30:54]name=ofd_packets/00031778 [15:30:54]NVStorageSaveData ofd_packets/00031778 [15:30:54]File name is /storage/ofd_packets/00031778 [15:30:54]Write 318 bytes [15:30:54]NVStorageSaveData done [15:30:54]OFDSenderStorePacket done [15:30:54]KKMCreateOFDPacket done [15:30:54]NVStorageSaveData kkm_last_timestamp [15:30:54]File name is /storage/kkm_last_timestamp [15:30:54]Write 4 bytes [15:30:54]NVStorageSaveData done [15:30:54]ExternCall_PrintAddStr [15:30:54]wPrintStart [15:30:54]Write to MH i2c: 01 00 00 39 28 61 [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: 01 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: 01 07 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: 01 07 00 39 28 00 00 00 00 00 FF 0F 76 [15:30:54]RasterBufferAndPrint [15:30:54]line Счет N : (3)214359 [15:30:54]line ИНН: 02508201610067 [15:30:54]line Контрольно-Кассовый Чек [15:30:54]line ПРОДАЖА [15:30:54]line Товар: 4870001570057 [15:30:54]line Напиток Pepsi 0,5л [15:30:54]line 1.000 * 80.00 [15:30:54]line = 80.00 [15:30:54]line НДС 12% НСП 1% [15:30:54]line > о реализуемом товаре [15:30:54]line ИТОГО: 80.00 [15:30:54]line НСП 1% : 0.71 [15:30:54]line НДС 12% : 8.50 [15:30:54]line Наличными: 80.00 [15:30:54]line Безнал.: 0.00 [15:30:54]line Место: АЗС № 140 "Партнер Нефть" [15:30:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:30:54]line СНО: Общий режим [15:30:54]line Чек 97 16.07.2024 15:30 [15:30:54]line Смена: 371 ФФД: 1.0 [15:30:54]line ЗНМ: 0300000189 [15:30:54]line РНМ: 0000000000098025 [15:30:54]line Версия ККМ: 001 [15:30:54]line ФМ: 0000000000965389 [15:30:54]line ФД: 31778 [15:30:54]line ФПД: 143565619253073 [15:30:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T153058&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31778&fm=143565619253073&tin=02508201610067®Number=0000000000098025&sum=8000 [15:30:54]line 0 [15:30:54]written 0, free lines is 4095 [15:30:54]OFD Sender: Processing packet 31778 [packets to send 6, broken 5] [15:30:54]ProducePacketName [15:30:54]name=ofd_packets/00031778 [15:30:54]OFD Sender: To server: pG, [15:30:54]CommunicateWithHost lk.salyk.kg:30040 [15:30:54]ConnectInit lk.salyk.kg [15:30:55]Connected sock=10 [15:30:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 20 01 00 00 ED 95 18 01 62 6D 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 32 92 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 22 7C 00 00 35 04 06 00 82 92 79 BC CF 51 E3 A0 7B 57 6C F1 A4 C2 [15:30:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 6E 35 47 00 74 A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 22 7C 00 00 F4 03 04 00 3E 3E 96 66 B6 04 01 00 00 8A 34 91 C7 AE 97 8D 03 [15:30:55]CommunicateWithHost err = 0 [15:30:55]CheckOFDResponse [15:30:55]1017 (14) - 77093643461234 [15:30:55]1041 (16) - 0000000000965389 [15:30:55]1040 (4) - 31778 [15:30:55]1012 (4) - 16.07.2024 09:32 [15:30:55]1206 (1) - 0 [15:30:55]OFD Sender: Remove packet 31778 [15:30:55]ProducePacketName [15:30:55]name=ofd_packets/00031778 [15:30:55]NVStorageDeleteData [15:30:55]Write to MH i2c: 01 00 00 61 28 89 [15:30:55]Write i2c OK [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: 01 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: 01 07 00 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: 01 07 00 61 28 00 00 00 00 00 13 0D B0 [15:30:55]RasterBufferAndPrint [15:30:55]line [15:30:55]line [15:30:55]line [15:30:55]line [15:30:55]line [15:30:55]written 0, free lines is 3354 [15:30:55]MH_Cut [15:30:55]Write to MH i2c: D1 01 00 68 28 01 62 [15:30:55]Write i2c OK [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: D1 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: D1 01 00 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: D1 01 00 68 28 00 61 [15:30:55]Write to MH i2c: 01 00 00 69 28 91 [15:30:55]Write i2c OK [15:30:55]MH_I2C_Read... [15:30:55]OFD Sender: No OFD packet to send [15:30:56]*** Cut start [15:30:56]*** Partial cut [15:30:56]*** CUTSNS_PIN = 1 [15:30:56]*** CUTSNS_PIN = 0 [15:30:56]*** Brake cut motor [15:30:56]Read from MH i2c: 01 [15:30:56]MH_I2C_Read... [15:30:56]*** Stop cut motor [15:30:56]*** Cut end [15:30:56]Read from MH i2c: 01 07 00 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: 01 07 00 69 28 00 00 00 00 00 FF 0F A6 [15:30:56]process_action close_receipt done [15:30:56]requested_data is exist [15:30:56]produce_requested_data [15:30:56]requested_item fm.sn is exist - process it [15:30:56]wFMCommunicate request_size=4 [15:30:56]MH_SAM_APDU [15:30:56]CAPDU: 80 11 00 00 [15:30:56]Write to MH i2c: E2 08 00 6A 28 80 11 00 00 00 00 00 00 0C [15:30:56]Write i2c OK [15:30:56]MH_I2C_Read... [15:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:56]Read from MH i2c: E2 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 17 00 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 17 00 6A 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 67 [15:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:30:56]wFMCommunicate OK [15:30:56]requested_item fd.num is exist - process it [15:30:56]SAM_PROTO_GetFieldsCounters [15:30:56]wFMCommunicate request_size=4 [15:30:56]MH_SAM_APDU [15:30:56]CAPDU: 80 13 00 00 [15:30:56]Write to MH i2c: E2 08 00 6B 28 80 13 00 00 00 00 00 00 0F [15:30:56]Write i2c OK [15:30:56]MH_I2C_Read... [15:30:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:56]Read from MH i2c: E2 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 62 00 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 62 00 6B 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 22 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [15:30: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 22 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:56]wFMCommunicate OK [15:30:56]SAM_PROTO_GetFieldsCounters done [15:30:56]requested_item shift.num is exist - process it [15:30:56]requested_item shift.opened is exist - process it [15:30:56]req_shift_opened [15:30:56]FM_GetShiftState [15:30:56]SAM_PROTO_GetShiftState [15:30:56]wFMCommunicate request_size=4 [15:30:56]MH_SAM_APDU [15:30:56]CAPDU: 80 13 01 00 [15:30:56]Write to MH i2c: E2 08 00 6C 28 80 13 01 00 00 00 00 00 11 [15:30:56]Write i2c OK [15:30:56]MH_I2C_Read... [15:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:56]Read from MH i2c: E2 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 0E 00 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 0E 00 6C 28 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 60 [15:30:56]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [15:30:56]wFMCommunicate OK [15:30:56]SAM_PROTO_GetShiftState done [15:30:56]FM_GetShiftState done [15:30:56]req_shift_opened done [15:30:56]requested_item shift.open_date is exist - process it [15:30:56]req_shift_open_date [15:30:56]req_shift_open_date done [15:30:56]produce_requested_data done [15:30:56]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31778,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [15:30:56]process_action_free close_receipt [15:30:56]json_value_free [15:30:56]json_value_free done [15:30:56]process_json_proto returns [15:30:56]Send response to host [15:30:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31778,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [15:30:56]free response buf [15:30:56]execute_script done [15:30:56]execute_script returns [15:30:56]free content buf [15:30:56]Sock 7.Close socket [15:30:56]Sock 7.Thread stoped [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:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:12]accept exits with 9 [15:39:12]New connection [15:39:12]New thread 3066965348 created [15:39:12]Thread 3066821988 joined [15:39:12]Waiting for new connection... [15:39:12] Sock 9.Parse request [15:39:12]Sock 9.Check first char [15:39:12]Sock 9.First char is OK [15:39:12]request: POST /json_proto HTTP/1.0 [15:39:12]Method: POST [15:39:12]URL: /json_proto [15:39:12]Method is POST - this is cgi request [15:39:12]url: /json_proto [15:39:12]query_string will be loaded in cgi processing [15:39:12]execute_cgi json_proto POST (null) [15:39:12]execute_cgi path=json_proto method=POST [15:39:12]POST find Content-Length [15:39:12]Host: 172.17.39.68:8080 [15:39:12]Content-Length: 616 [15:39:12]Content-Type: application/json [15:39:12] [15:39:12]POST finish read [15:39:12]Found Content-Length = 616 [15:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214360", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:12]execute_script... [15:39:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214360", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:12]POST & json_proto [15:39:12]process_json_proto [15:39:12]json parsed OK: [15:39:12]protocol is kg_v1.0 [15:39:12]action value=close_receipt [15:39:12]process_action close_receipt [15:39:12]cmd_close_receipt [15:39:12]MH_GetDate [15:39:12]Write to MH i2c: F0 00 00 6D 28 84 [15:39:12]Write i2c OK [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: F0 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: F0 09 00 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: F0 09 00 6D 28 00 25 94 96 66 D6 48 95 66 5B [15:39:12]GetLastDocTimeStamp 1721143858 [15:39:12]current date 1721144357 [15:39:12]FM_GetShiftState [15:39:12]SAM_PROTO_GetShiftState [15:39:12]wFMCommunicate request_size=4 [15:39:12]MH_SAM_APDU [15:39:12]CAPDU: 80 13 01 00 [15:39:12]Write to MH i2c: E2 08 00 6E 28 80 13 01 00 00 00 00 00 13 [15:39:12]Write i2c OK [15:39:12]MH_I2C_Read... [15:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:12]Read from MH i2c: E2 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: E2 0E 00 [15:39:12]MH_I2C_Read... [15:39:12]Read from MH i2c: E2 0E 00 6E 28 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 62 [15:39:12]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [15:39:12]wFMCommunicate OK [15:39:12]SAM_PROTO_GetShiftState done [15:39:12]FM_GetShiftState done [15:39:12]opened in 1721088399 [15:39:12]opened+sec_in_day 1721174799 [15:39:12]quantity*price = 17500 [15:39:12]sum+1 = 17501 [15:39:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 98 16.07.2024 15:39 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31779 ФПД: 155788552383942 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T153917&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31779&fm=155788552383942&tin=02508201610067®Number=0000000000098025&sum=17500 0 [15:39:13]StoreToDocumentArchive [15:39:13]shift 371 fd 31779 [15:39:13]save to /storage/0371/doc_00031779 [15:39:13]save last doc name /storage/0371/doc_00031779 to /storage/kkm_last_doc_name [15:39:13]save OK [15:39:13]Clear old archive folders... [15:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=268 [15:39:13]tlvbuf is 01518130 [15:39:13]SAM_PROTO_ClearQueue [15:39:13]wFMCommunicate request_size=4 [15:39:13]MH_SAM_APDU [15:39:13]CAPDU: 80 09 00 00 [15:39:13]Write to MH i2c: E2 08 00 7B 28 80 09 00 00 00 00 00 00 15 [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 [15:39:13]MH_I2C_Read... [15:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:13]Read from MH i2c: E2 03 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 03 00 7B 28 00 90 00 17 [15:39:13]RAPDU: 90 00 [15:39:13]wFMCommunicate OK [15:39:13]SAM_PROTO_ClearQueue done [15:39:13]KKMCreateOFDPacket [15:39:13]OFDProtocolAddRootSTLVToBuf [15:39:13]FM_MakeSignedData [15:39:13]FM_MakeSignedData [15:39:13]SAM_PROTO_SignData [15:39:13]wFMCommunicate request_size=4 [15:39:13]MH_SAM_APDU [15:39:13]CAPDU: 80 0D 01 02 [15:39:13]Write to MH i2c: E2 08 00 7C 28 80 0D 01 02 00 00 00 00 1D [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:13]Read from MH i2c: E2 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 03 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 03 00 7C 28 00 90 00 18 [15:39:13]RAPDU: 90 00 [15:39:13]wFMCommunicate OK [15:39:13]wFMCommunicate request_size=255 [15:39:13]MH_SAM_APDU [15:39:13]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 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 42 07 00 00 00 00 07 04 06 00 5C 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 62 00 00 00 F4 03 04 00 25 94 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [15:39:13]Write to MH i2c: E2 02 01 7D 28 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 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 42 07 00 00 00 00 07 04 06 00 5C 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 62 00 00 00 F4 03 04 00 25 94 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 11 [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:13]Read from MH i2c: E2 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 03 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 03 00 7D 28 00 90 00 19 [15:39:13]RAPDU: 90 00 [15:39:13]wFMCommunicate OK [15:39:13]wFMCommunicate request_size=27 [15:39:13]MH_SAM_APDU [15:39:13]CAPDU: 80 0D 02 02 16 35 33 38 39 10 04 04 00 23 7C 00 00 35 04 06 00 8D B0 59 53 2D C6 [15:39:13]Write to MH i2c: E2 1E 00 7E 28 80 0D 02 02 16 00 35 33 38 39 10 04 04 00 23 7C 00 00 35 04 06 00 8D B0 59 53 2D C6 00 00 F7 [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 [15:39:13]MH_I2C_Read... [15:39:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:13]Read from MH i2c: E2 03 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 03 00 7E 28 00 90 00 1A [15:39:13]RAPDU: 90 00 [15:39:13]wFMCommunicate OK [15:39:13]wFMCommunicate request_size=4 [15:39:13]MH_SAM_APDU [15:39:13]CAPDU: 80 0D 03 02 [15:39:13]Write to MH i2c: E2 08 00 7F 28 80 0D 03 02 00 00 00 00 22 [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:13]Read from MH i2c: E2 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 0B 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 0B 00 7F 28 00 07 BA 11 3C BD 8F 76 EB 90 00 DE [15:39:13]RAPDU: 07 BA 11 3C BD 8F 76 EB 90 00 [15:39:13]wFMCommunicate OK [15:39:13]SAM_PROTO_SignData done [15:39:13]FM_MakeSignedData done [15:39:13]CreateOFDProtocolMessage [15:39:13]wFMCommunicate request_size=4 [15:39:13]MH_SAM_APDU [15:39:13]CAPDU: 80 11 00 00 [15:39:13]Write to MH i2c: E2 08 00 80 28 80 11 00 00 00 00 00 00 22 [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:13]Read from MH i2c: E2 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 17 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 17 00 80 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7D [15:39:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:39:13]wFMCommunicate OK [15:39:13]CreateOFDProtocolMessage done [15:39:13]OFDSenderStorePacket 31779 [15:39:13]StoreOFDPacket docnum=31779 [15:39:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 20 01 00 00 73 3D 18 01 87 79 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 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 42 07 00 00 00 00 07 04 06 00 5C 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 62 00 00 00 F4 03 04 00 25 94 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 23 7C 00 00 35 04 06 00 8D B0 59 53 2D C6 07 BA 11 3C BD 8F 76 EB [15:39:13]CheckFolder [15:39:13]dirname=/storage/ofd_packets [15:39:13]CheckFolder done [15:39:13]ProducePacketName [15:39:13]name=ofd_packets/00031779 [15:39:13]NVStorageSaveData ofd_packets/00031779 [15:39:13]File name is /storage/ofd_packets/00031779 [15:39:13]Write 318 bytes [15:39:13]NVStorageSaveData done [15:39:13]OFDSenderStorePacket done [15:39:13]KKMCreateOFDPacket done [15:39:13]NVStorageSaveData kkm_last_timestamp [15:39:13]File name is /storage/kkm_last_timestamp [15:39:13]Write 4 bytes [15:39:13]NVStorageSaveData done [15:39:13]ExternCall_PrintAddStr [15:39:13]wPrintStart [15:39:13]Write to MH i2c: 01 00 00 81 28 A9 [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: 01 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: 01 07 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: 01 07 00 81 28 00 00 00 00 00 FF 0F BE [15:39:13]RasterBufferAndPrint [15:39:13]line Счет N : (3)214360 [15:39:13]line ИНН: 02508201610067 [15:39:13]line Контрольно-Кассовый Чек [15:39:13]line ПРОДАЖА [15:39:13]line Товар: 4870002329487 [15:39:13]line Напиток Pepsi 1,5л [15:39:13]line 1.000 * 175.00 [15:39:13]line = 175.00 [15:39:13]line НДС 12% НСП 1% [15:39:13]line > о реализуемом товаре [15:39:13]line ИТОГО: 175.00 [15:39:13]line НСП 1% : 1.55 [15:39:13]line НДС 12% : 18.58 [15:39:13]line Наличными: 175.00 [15:39:13]line Безнал.: 0.00 [15:39:13]line Место: АЗС № 140 "Партнер Нефть" [15:39:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:39:13]line СНО: Общий режим [15:39:13]line Чек 98 16.07.2024 15:39 [15:39:13]line Смена: 371 ФФД: 1.0 [15:39:13]line ЗНМ: 0300000189 [15:39:13]line РНМ: 0000000000098025 [15:39:13]line Версия ККМ: 001 [15:39:13]line ФМ: 0000000000965389 [15:39:13]line ФД: 31779 [15:39:13]line ФПД: 155788552383942 [15:39:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T153917&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31779&fm=155788552383942&tin=02508201610067®Number=0000000000098025&sum=17500 [15:39:13]line 0 [15:39:13]written 0, free lines is 4095 [15:39:13]OFD Sender: Processing packet 31779 [packets to send 6, broken 5] [15:39:13]ProducePacketName [15:39:13]name=ofd_packets/00031779 [15:39:13]OFD Sender: To server: pG, [15:39:13]CommunicateWithHost lk.salyk.kg:30040 [15:39:13]ConnectInit lk.salyk.kg [15:39:14]Write to MH i2c: 01 00 00 A9 28 D1 [15:39:14]Write i2c OK [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: 01 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: 01 07 00 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: 01 07 00 A9 28 00 00 00 00 00 05 0D EA [15:39:14]RasterBufferAndPrint [15:39:14]line [15:39:14]line [15:39:14]line [15:39:14]line [15:39:14]line [15:39:14]written 0, free lines is 3337 [15:39:14]MH_Cut [15:39:14]Write to MH i2c: D1 01 00 B0 28 01 AA [15:39:14]Write i2c OK [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: D1 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: D1 01 00 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: D1 01 00 B0 28 00 A9 [15:39:14]Write to MH i2c: 01 00 00 B1 28 D9 [15:39:14]Write i2c OK [15:39:14]MH_I2C_Read... [15:39:14]*** Cut start [15:39:14]*** Partial cut [15:39:14]*** CUTSNS_PIN = 1 [15:39:14]*** CUTSNS_PIN = 0 [15:39:15]*** Brake cut motor [15:39:15]Read from MH i2c: 01 [15:39:15]MH_I2C_Read... [15:39:15]*** Stop cut motor [15:39:15]*** Cut end [15:39:15]Read from MH i2c: 01 07 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: 01 07 00 B1 28 00 00 00 00 00 FF 0F EE [15:39:15]process_action close_receipt done [15:39:15]requested_data is exist [15:39:15]produce_requested_data [15:39:15]requested_item fm.sn is exist - process it [15:39:15]wFMCommunicate request_size=4 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 11 00 00 [15:39:15]Write to MH i2c: E2 08 00 B2 28 80 11 00 00 00 00 00 00 54 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 17 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 17 00 B2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 AF [15:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:39:15]wFMCommunicate OK [15:39:15]requested_item fd.num is exist - process it [15:39:15]SAM_PROTO_GetFieldsCounters [15:39:15]wFMCommunicate request_size=4 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 13 00 00 [15:39:15]Write to MH i2c: E2 08 00 B3 28 80 13 00 00 00 00 00 00 57 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 62 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 62 00 B3 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 23 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [15:39:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 23 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:39:15]wFMCommunicate OK [15:39:15]SAM_PROTO_GetFieldsCounters done [15:39:15]requested_item shift.num is exist - process it [15:39:15]requested_item shift.opened is exist - process it [15:39:15]req_shift_opened [15:39:15]FM_GetShiftState [15:39:15]SAM_PROTO_GetShiftState [15:39:15]wFMCommunicate request_size=4 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 13 01 00 [15:39:15]Write to MH i2c: E2 08 00 B4 28 80 13 01 00 00 00 00 00 59 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 0E 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 0E 00 B4 28 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A8 [15:39:15]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [15:39:15]wFMCommunicate OK [15:39:15]SAM_PROTO_GetShiftState done [15:39:15]FM_GetShiftState done [15:39:15]req_shift_opened done [15:39:15]requested_item shift.open_date is exist - process it [15:39:15]req_shift_open_date [15:39:15]req_shift_open_date done [15:39:15]produce_requested_data done [15:39:15]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31779,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [15:39:15]process_action_free close_receipt [15:39:15]json_value_free [15:39:15]json_value_free done [15:39:15]process_json_proto returns [15:39:15]Send response to host [15:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31779,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [15:39:15]free response buf [15:39:15]execute_script done [15:39:15]execute_script returns [15:39:15]free content buf [15:39:15]Sock 9.Close socket [15:39:15]Sock 9.Thread stoped [15:41:25]ConnectInit Can't connect to host [15:41:25]CommunicateWithHost connect error [15:41:25]CommunicateWithHost err = -1 [15:41:25]OFD Sender: Server communicate error [15:41:30]OFD Sender: Processing packet 31779 [packets to send 6, broken 5] [15:41:30]ProducePacketName [15:41:30]name=ofd_packets/00031779 [15:41:30]OFD Sender: To server: pG, [15:41:30]CommunicateWithHost lk.salyk.kg:30040 [15:41:30]ConnectInit lk.salyk.kg [15:41:30]Connected sock=9 [15:41:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 20 01 00 00 73 3D 18 01 87 79 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 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 42 07 00 00 00 00 07 04 06 00 5C 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 62 00 00 00 F4 03 04 00 25 94 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 23 7C 00 00 35 04 06 00 8D B0 59 53 2D C6 07 BA 11 3C BD 8F 76 EB [15:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 6B 99 47 00 C8 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 23 7C 00 00 F4 03 04 00 BA 40 96 66 B6 04 01 00 00 82 71 0B C9 ED 1F 72 3B [15:41:31]CommunicateWithHost err = 0 [15:41:31]CheckOFDResponse [15:41:31]1017 (14) - 77093643461234 [15:41:31]1041 (16) - 0000000000965389 [15:41:31]1040 (4) - 31779 [15:41:31]1012 (4) - 16.07.2024 09:43 [15:41:31]1206 (1) - 0 [15:41:31]OFD Sender: Remove packet 31779 [15:41:31]ProducePacketName [15:41:31]name=ofd_packets/00031779 [15:41:31]NVStorageDeleteData [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:51]OFD Sender: No OFD packet to send [15:41:56]OFD Sender: No OFD packet to send [15:42:01]OFD Sender: No OFD packet to send [15:42:06]OFD Sender: No OFD packet to send [15:42:11]OFD Sender: No OFD packet to send [15:42:16]OFD Sender: No OFD packet to send [15:42:21]OFD Sender: No OFD packet to send [15:42:26]OFD Sender: No OFD packet to send [15:42:31]OFD Sender: No OFD packet to send [15:42:36]OFD Sender: No OFD packet to send [15:42:41]OFD Sender: No OFD packet to send [15:42:46]OFD Sender: No OFD packet to send [15:42:51]OFD Sender: No OFD packet to send [15:42:56]OFD Sender: No OFD packet to send [15:43:01]OFD Sender: No OFD packet to send [15:43:06]OFD Sender: No OFD packet to send [15:43:11]OFD Sender: No OFD packet to send [15:43:16]OFD Sender: No OFD packet to send [15:43:21]OFD Sender: No OFD packet to send [15:43:26]OFD Sender: No OFD packet to send [15:43:31]OFD Sender: No OFD packet to send [15:43:36]OFD Sender: No OFD packet to send [15:43:41]OFD Sender: No OFD packet to send [15:43:46]OFD Sender: No OFD packet to send [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:31]OFD Sender: No OFD packet to send [15:44:36]OFD Sender: No OFD packet to send [15:44:41]OFD Sender: No OFD packet to send [15:44:46]OFD Sender: No OFD packet to send [15:44:51]OFD Sender: No OFD packet to send [15:44:56]OFD Sender: No OFD packet to send [15:45:01]OFD Sender: No OFD packet to send [15:45:06]OFD Sender: No OFD packet to send [15:45:11]OFD Sender: No OFD packet to send [15:45:16]OFD Sender: No OFD packet to send [15:45:21]OFD Sender: No OFD packet to send [15:45:26]OFD Sender: No OFD packet to send [15:45:31]OFD Sender: No OFD packet to send [15:45:36]OFD Sender: No OFD packet to send [15:45:41]OFD Sender: No OFD packet to send [15:45:46]OFD Sender: No OFD packet to send [15:45:51]OFD Sender: No OFD packet to send [15:45:56]OFD Sender: No OFD packet to send [15:46:01]OFD Sender: No OFD packet to send [15:46:06]OFD Sender: No OFD packet to send [15:46:11]OFD Sender: No OFD packet to send [15:46:16]OFD Sender: No OFD packet to send [15:46:21]OFD Sender: No OFD packet to send [15:46:26]OFD Sender: No OFD packet to send [15:46:31]OFD Sender: No OFD packet to send [15:46:36]OFD Sender: No OFD packet to send [15:46:41]OFD Sender: No OFD packet to send [15:46:46]OFD Sender: No OFD packet to send [15:46:51]OFD Sender: No OFD packet to send [15:46:56]OFD Sender: No OFD packet to send [15:47:01]OFD Sender: No OFD packet to send [15:47:06]OFD Sender: No OFD packet to send [15:47:11]OFD Sender: No OFD packet to send [15:47:16]OFD Sender: No OFD packet to send [15:47:21]OFD Sender: No OFD packet to send [15:47:26]OFD Sender: No OFD packet to send [15:47:31]OFD Sender: No OFD packet to send [15:47:36]OFD Sender: No OFD packet to send [15:47:41]OFD Sender: No OFD packet to send [15:47:46]OFD Sender: No OFD packet to send [15:47:51]OFD Sender: No OFD packet to send [15:47:56]OFD Sender: No OFD packet to send [15:48:01]OFD Sender: No OFD packet to send [15:48:06]OFD Sender: No OFD packet to send [15:48:11]OFD Sender: No OFD packet to send [15:48:16]OFD Sender: No OFD packet to send [15:48:21]OFD Sender: No OFD packet to send [15:48:26]OFD Sender: No OFD packet to send [15:48:31]OFD Sender: No OFD packet to send [15:48:36]OFD Sender: No OFD packet to send [15:48:41]OFD Sender: No OFD packet to send [15:48:46]OFD Sender: No OFD packet to send [15:48:51]OFD Sender: No OFD packet to send [15:48:56]OFD Sender: No OFD packet to send [15:49:01]OFD Sender: No OFD packet to send [15:49:06]OFD Sender: No OFD packet to send [15:49:11]OFD Sender: No OFD packet to send [15:49:16]OFD Sender: No OFD packet to send [15:49:21]OFD Sender: No OFD packet to send [15:49:26]OFD Sender: No OFD packet to send [15:49:31]OFD Sender: No OFD packet to send [15:49:36]OFD Sender: No OFD packet to send [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:57]OFD Sender: No OFD packet to send [15:50:02]OFD Sender: No OFD packet to send [15:50:07]OFD Sender: No OFD packet to send [15:50:12]OFD Sender: No OFD packet to send [15:50:17]OFD Sender: No OFD packet to send [15:50:22]OFD Sender: No OFD packet to send [15:50:27]OFD Sender: No OFD packet to send [15:50:32]OFD Sender: No OFD packet to send [15:50:37]OFD Sender: No OFD packet to send [15:50:42]OFD Sender: No OFD packet to send [15:50:47]OFD Sender: No OFD packet to send [15:50:52]OFD Sender: No OFD packet to send [15:50:57]OFD Sender: No OFD packet to send [15:51:02]OFD Sender: No OFD packet to send [15:51:07]OFD Sender: No OFD packet to send [15:51:12]OFD Sender: No OFD packet to send [15:51:17]OFD Sender: No OFD packet to send [15:51:22]OFD Sender: No OFD packet to send [15:51:27]OFD Sender: No OFD packet to send [15:51:32]OFD Sender: No OFD packet to send [15:51:37]OFD Sender: No OFD packet to send [15:51:42]OFD Sender: No OFD packet to send [15:51:47]OFD Sender: No OFD packet to send [15:51:52]OFD Sender: No OFD packet to send [15:51:57]OFD Sender: No OFD packet to send [15:52:02]OFD Sender: No OFD packet to send [15:52:07]OFD Sender: No OFD packet to send [15:52:12]OFD Sender: No OFD packet to send [15:52:17]OFD Sender: No OFD packet to send [15:52:22]OFD Sender: No OFD packet to send [15:52:27]OFD Sender: No OFD packet to send [15:52:32]OFD Sender: No OFD packet to send [15:52:37]OFD Sender: No OFD packet to send [15:52:42]OFD Sender: No OFD packet to send [15:52:47]OFD Sender: No OFD packet to send [15:52:52]OFD Sender: No OFD packet to send [15:52:57]OFD Sender: No OFD packet to send [15:53:02]OFD Sender: No OFD packet to send [15:53:07]OFD Sender: No OFD packet to send [15:53:12]OFD Sender: No OFD packet to send [15:53:17]OFD Sender: No OFD packet to send [15:53:22]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:13]accept exits with 7 [15:56:13]New connection [15:56:13]New thread 3066821988 created [15:56:13]Thread 3066965348 joined [15:56:13]Waiting for new connection... [15:56:13] Sock 7.Parse request [15:56:13]Sock 7.Check first char [15:56:13]Sock 7.First char is OK [15:56:13]request: POST /json_proto HTTP/1.0 [15:56:13]Method: POST [15:56:13]URL: /json_proto [15:56:13]Method is POST - this is cgi request [15:56:13]url: /json_proto [15:56:13]query_string will be loaded in cgi processing [15:56:13]execute_cgi json_proto POST (null) [15:56:13]execute_cgi path=json_proto method=POST [15:56:13]POST find Content-Length [15:56:13]Host: 172.17.39.68:8080 [15:56:13]Content-Length: 1182 [15:56:13]Content-Type: application/json [15:56:13] [15:56:13]POST finish read [15:56:13]Found Content-Length = 1182 [15:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214361", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:13]execute_script... [15:56:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214361", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700007110073", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043A\u0435\u0442\u0447\u0443\u043F\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:56:13]POST & json_proto [15:56:13]process_json_proto [15:56:13]json parsed OK: [15:56:13]protocol is kg_v1.0 [15:56:13]action value=close_receipt [15:56:13]process_action close_receipt [15:56:13]cmd_close_receipt [15:56:13]MH_GetDate [15:56:13]Write to MH i2c: F0 00 00 B5 28 CC [15:56:13]Write i2c OK [15:56:13]MH_I2C_Read... [15:56:13]Read from MH i2c: F0 [15:56:13]MH_I2C_Read... [15:56:13]Read from MH i2c: F0 09 00 [15:56:13]MH_I2C_Read... [15:56:13]Read from MH i2c: F0 09 00 B5 28 00 22 98 96 66 D6 48 95 66 A4 [15:56:13]GetLastDocTimeStamp 1721144357 [15:56:13]current date 1721145378 [15:56:13]FM_GetShiftState [15:56:13]SAM_PROTO_GetShiftState [15:56:13]wFMCommunicate request_size=4 [15:56:13]MH_SAM_APDU [15:56:13]CAPDU: 80 13 01 00 [15:56:13]Write to MH i2c: E2 08 00 B6 28 80 13 01 00 00 00 00 00 5B [15:56:13]Write i2c OK [15:56:13]MH_I2C_Read... [15:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:13]Read from MH i2c: E2 [15:56:13]MH_I2C_Read... [15:56:13]Read from MH i2c: E2 0E 00 [15:56:13]MH_I2C_Read... [15:56:13]Read from MH i2c: E2 0E 00 B6 28 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 AA [15:56:13]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [15:56:13]wFMCommunicate OK [15:56:13]SAM_PROTO_GetShiftState done [15:56:13]FM_GetShiftState done [15:56:13]opened in 1721088399 [15:56:13]opened+sec_in_day 1721174799 [15:56:13]quantity*price = 6500 [15:56:13]sum+1 = 6501 [15:56:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700007110073 Сэндвич с кетчупом Талас Даамы 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.33 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 99 16.07.2024 15:56 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31780 ФПД: 239582599554051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T155618&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31780&fm=239582599554051&tin=02508201610067®Number=0000000000098025&sum=13500 0 [15:56:14]StoreToDocumentArchive [15:56:14]shift 371 fd 31780 [15:56:14]save to /storage/0371/doc_00031780 [15:56:14]save last doc name /storage/0371/doc_00031780 to /storage/kkm_last_doc_name [15:56:14]save OK [15:56:14]Clear old archive folders... [15:56:14]ProcessDocumentItem done err = 0, tmpTLVsize=423 [15:56:14]tlvbuf is 0154F280 [15:56:14]SAM_PROTO_ClearQueue [15:56:14]wFMCommunicate request_size=4 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 09 00 00 [15:56:14]Write to MH i2c: E2 08 00 C3 28 80 09 00 00 00 00 00 00 5D [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:56:14]Read from MH i2c: E2 03 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 C3 28 00 90 00 5F [15:56:14]RAPDU: 90 00 [15:56:14]wFMCommunicate OK [15:56:14]SAM_PROTO_ClearQueue done [15:56:14]KKMCreateOFDPacket [15:56:14]OFDProtocolAddRootSTLVToBuf [15:56:14]FM_MakeSignedData [15:56:14]FM_MakeSignedData [15:56:14]SAM_PROTO_SignData [15:56:14]wFMCommunicate request_size=4 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 0D 01 02 [15:56:14]Write to MH i2c: E2 08 00 C4 28 80 0D 01 02 00 00 00 00 65 [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 C4 28 00 90 00 60 [15:56:14]RAPDU: 90 00 [15:56:14]wFMCommunicate OK [15:56:14]wFMCommunicate request_size=255 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 0D 02 02 FA 03 00 A7 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 [15:56:14]Write to MH i2c: E2 02 01 C5 28 80 0D 02 02 FA 00 03 00 A7 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 00 67 [15:56:14]Write i2c OK [15:56:14]MH_I2C_Read... [15:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:14]Read from MH i2c: E2 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 [15:56:14]MH_I2C_Read... [15:56:14]Read from MH i2c: E2 03 00 C5 28 00 90 00 61 [15:56:14]RAPDU: 90 00 [15:56:14]wFMCommunicate OK [15:56:14]wFMCommunicate request_size=182 [15:56:14]MH_SAM_APDU [15:56:14]CAPDU: 80 0D 02 02 B1 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 99 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 22 98 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 24 7C 00 00 35 04 06 00 D9 E6 2B BD A4 03 [15:56:14]Write to MH i2c: E2 B9 00 C6 28 80 0D 02 02 B1 00 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 99 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 22 98 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 24 7C 00 00 35 04 06 00 D9 E6 2B BD A4 03 00 00 41 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 03 00 C6 28 00 90 00 62 [15:56:15]RAPDU: 90 00 [15:56:15]wFMCommunicate OK [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 0D 03 02 [15:56:15]Write to MH i2c: E2 08 00 C7 28 80 0D 03 02 00 00 00 00 6A [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 0B 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 0B 00 C7 28 00 09 D6 5B 01 3F 34 C6 38 90 00 17 [15:56:15]RAPDU: 09 D6 5B 01 3F 34 C6 38 90 00 [15:56:15]wFMCommunicate OK [15:56:15]SAM_PROTO_SignData done [15:56:15]FM_MakeSignedData done [15:56:15]CreateOFDProtocolMessage [15:56:15]wFMCommunicate request_size=4 [15:56:15]MH_SAM_APDU [15:56:15]CAPDU: 80 11 00 00 [15:56:15]Write to MH i2c: E2 08 00 C8 28 80 11 00 00 00 00 00 00 6A [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:15]Read from MH i2c: E2 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 17 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: E2 17 00 C8 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C5 [15:56:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:56:15]wFMCommunicate OK [15:56:15]CreateOFDProtocolMessage done [15:56:15]OFDSenderStorePacket 31780 [15:56:15]StoreOFDPacket docnum=31780 [15:56:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 BB 01 00 00 BD 80 B3 01 12 8B 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 99 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 22 98 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 24 7C 00 00 35 04 06 00 D9 E6 2B BD A4 03 09 D6 5B 01 3F 34 C6 38 [15:56:15]CheckFolder [15:56:15]dirname=/storage/ofd_packets [15:56:15]CheckFolder done [15:56:15]ProducePacketName [15:56:15]name=ofd_packets/00031780 [15:56:15]NVStorageSaveData ofd_packets/00031780 [15:56:15]File name is /storage/ofd_packets/00031780 [15:56:15]Write 473 bytes [15:56:15]NVStorageSaveData done [15:56:15]OFDSenderStorePacket done [15:56:15]KKMCreateOFDPacket done [15:56:15]NVStorageSaveData kkm_last_timestamp [15:56:15]File name is /storage/kkm_last_timestamp [15:56:15]Write 4 bytes [15:56:15]NVStorageSaveData done [15:56:15]ExternCall_PrintAddStr [15:56:15]wPrintStart [15:56:15]Write to MH i2c: 01 00 00 C9 28 F1 [15:56:15]Write i2c OK [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 07 00 [15:56:15]MH_I2C_Read... [15:56:15]Read from MH i2c: 01 07 00 C9 28 00 00 00 00 00 FF 0F 06 [15:56:15]RasterBufferAndPrint [15:56:15]line Счет N : (3)214361 [15:56:15]line ИНН: 02508201610067 [15:56:15]line Контрольно-Кассовый Чек [15:56:15]line ПРОДАЖА [15:56:15]line Товар: 4870002325441 [15:56:15]line Вода ASU пит н.газ лимон ПЭТ 0,5л [15:56:15]line 1.000 * 65.00 [15:56:15]line = 65.00 [15:56:15]line НДС 12% НСП 1% [15:56:15]line > о реализуемом товаре [15:56:15]line Товар: 4700007110073 [15:56:15]line Сэндвич с кетчупом Талас Даамы [15:56:15]line 1.000 * 70.00 [15:56:15]line = 70.00 [15:56:15]line НДС 12% НСП 1% [15:56:15]line > о реализуемом товаре [15:56:15]line ИТОГО: 135.00 [15:56:15]line НСП 1% : 1.19 [15:56:15]line НДС 12% : 14.33 [15:56:15]line Наличными: 0.00 [15:56:15]line Безнал.: 135.00 [15:56:15]line Место: АЗС № 140 "Партнер Нефть" [15:56:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [15:56:15]line СНО: Общий режим [15:56:15]line Чек 99 16.07.2024 15:56 [15:56:15]line Смена: 371 ФФД: 1.0 [15:56:15]line ЗНМ: 0300000189 [15:56:15]line РНМ: 0000000000098025 [15:56:15]line Версия ККМ: 001 [15:56:15]line Платежная система: O! деньги [15:56:15]line ФМ: 0000000000965389 [15:56:15]line ФД: 31780 [15:56:15]line ФПД: 239582599554051 [15:56:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T155618&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31780&fm=239582599554051&tin=02508201610067®Number=0000000000098025&sum=13500 [15:56:15]line 0 [15:56:15]written 0, free lines is 4095 [15:56:15]OFD Sender: Processing packet 31780 [packets to send 6, broken 5] [15:56:15]ProducePacketName [15:56:15]name=ofd_packets/00031780 [15:56:15]OFD Sender: To server: pG, [15:56:15]CommunicateWithHost lk.salyk.kg:30040 [15:56:15]ConnectInit lk.salyk.kg [15:56:15]Connected sock=10 [15:56:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 BB 01 00 00 BD 80 B3 01 12 8B 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 7C 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 37 33 06 04 38 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BA D0 B5 D1 82 D1 87 D1 83 D0 BF D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 99 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 22 98 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 24 7C 00 00 35 04 06 00 D9 E6 2B BD A4 03 09 D6 5B 01 3F 34 C6 38 [15:56:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B7 2F 47 00 37 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 35 33 38 39 10 04 04 00 24 7C 00 00 F4 03 04 00 2F 44 96 66 B6 04 01 00 00 B5 5D 17 36 79 05 B8 B2 [15:56:16]CommunicateWithHost err = 0 [15:56:16]CheckOFDResponse [15:56:16]1017 (14) - 77093643461234 [15:56:16]1041 (16) - 0000000000965389 [15:56:16]1040 (4) - 31780 [15:56:16]1012 (4) - 16.07.2024 09:58 [15:56:16]1206 (1) - 0 [15:56:16]OFD Sender: Remove packet 31780 [15:56:16]ProducePacketName [15:56:16]name=ofd_packets/00031780 [15:56:16]NVStorageDeleteData [15:56:16]Write to MH i2c: 01 00 00 FB 28 23 [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 07 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: 01 07 00 FB 28 00 00 00 00 00 67 0C 9D [15:56:16]RasterBufferAndPrint [15:56:16]line [15:56:16]line [15:56:16]line [15:56:16]line [15:56:16]line [15:56:16]written 0, free lines is 3182 [15:56:16]MH_Cut [15:56:16]Write to MH i2c: D1 01 00 02 29 01 FD [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: D1 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: D1 01 00 [15:56:16]MH_I2C_Read... [15:56:16]Read from MH i2c: D1 01 00 02 29 00 FC [15:56:16]Write to MH i2c: 01 00 00 03 29 2C [15:56:16]Write i2c OK [15:56:16]MH_I2C_Read... [15:56:16]OFD Sender: No OFD packet to send [15:56:17]*** Cut start [15:56:17]*** Partial cut [15:56:17]*** CUTSNS_PIN = 1 [15:56:17]*** CUTSNS_PIN = 0 [15:56:17]*** Brake cut motor [15:56:17]Read from MH i2c: 01 [15:56:17]MH_I2C_Read... [15:56:17]*** Stop cut motor [15:56:17]*** Cut end [15:56:17]Read from MH i2c: 01 07 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: 01 07 00 03 29 00 00 00 00 00 FF 0F 41 [15:56:17]process_action close_receipt done [15:56:17]requested_data is exist [15:56:17]produce_requested_data [15:56:17]requested_item fm.sn is exist - process it [15:56:17]wFMCommunicate request_size=4 [15:56:17]MH_SAM_APDU [15:56:17]CAPDU: 80 11 00 00 [15:56:17]Write to MH i2c: E2 08 00 04 29 80 11 00 00 00 00 00 00 A7 [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:56:17]Read from MH i2c: E2 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 17 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 17 00 04 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 02 [15:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [15:56:17]wFMCommunicate OK [15:56:17]requested_item fd.num is exist - process it [15:56:17]SAM_PROTO_GetFieldsCounters [15:56:17]wFMCommunicate request_size=4 [15:56:17]MH_SAM_APDU [15:56:17]CAPDU: 80 13 00 00 [15:56:17]Write to MH i2c: E2 08 00 05 29 80 13 00 00 00 00 00 00 AA [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:56:17]Read from MH i2c: E2 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 62 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 62 00 05 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 24 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 0F [15:56:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 24 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:56:17]wFMCommunicate OK [15:56:17]SAM_PROTO_GetFieldsCounters done [15:56:17]requested_item shift.num is exist - process it [15:56:17]requested_item shift.opened is exist - process it [15:56:17]req_shift_opened [15:56:17]FM_GetShiftState [15:56:17]SAM_PROTO_GetShiftState [15:56:17]wFMCommunicate request_size=4 [15:56:17]MH_SAM_APDU [15:56:17]CAPDU: 80 13 01 00 [15:56:17]Write to MH i2c: E2 08 00 06 29 80 13 01 00 00 00 00 00 AC [15:56:17]Write i2c OK [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 [15:56:17]MH_I2C_Read... [15:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:56:17]Read from MH i2c: E2 0E 00 [15:56:17]MH_I2C_Read... [15:56:17]Read from MH i2c: E2 0E 00 06 29 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 FB [15:56:17]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [15:56:17]wFMCommunicate OK [15:56:17]SAM_PROTO_GetShiftState done [15:56:17]FM_GetShiftState done [15:56:17]req_shift_opened done [15:56:17]requested_item shift.open_date is exist - process it [15:56:17]req_shift_open_date [15:56:17]req_shift_open_date done [15:56:17]produce_requested_data done [15:56:17]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31780,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [15:56:17]process_action_free close_receipt [15:56:17]json_value_free [15:56:17]json_value_free done [15:56:17]process_json_proto returns [15:56:17]Send response to host [15:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31780,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [15:56:17]free response buf [15:56:17]execute_script done [15:56:17]execute_script returns [15:56:17]free content buf [15:56:17]Sock 7.Close socket [15:56:17]Sock 7.Thread stoped [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:11]OFD Sender: No OFD packet to send [15:57:16]OFD Sender: No OFD packet to send [15:57:21]OFD Sender: No OFD packet to send [15:57:26]OFD Sender: No OFD packet to send [15:57:31]OFD Sender: No OFD packet to send [15:57:36]OFD Sender: No OFD packet to send [15:57:41]OFD Sender: No OFD packet to send [15:57:46]OFD Sender: No OFD packet to send [15:57:51]OFD Sender: No OFD packet to send [15:57:56]OFD Sender: No OFD packet to send [15:58:01]OFD Sender: No OFD packet to send [15:58:06]OFD Sender: No OFD packet to send [15:58:11]OFD Sender: No OFD packet to send [15:58:16]OFD Sender: No OFD packet to send [15:58:21]OFD Sender: No OFD packet to send [15:58:26]OFD Sender: No OFD packet to send [15:58:31]OFD Sender: No OFD packet to send [15:58:36]OFD Sender: No OFD packet to send [15:58:41]OFD Sender: No OFD packet to send [15:58:46]OFD Sender: No OFD packet to send [15:58:51]OFD Sender: No OFD packet to send [15:58:56]OFD Sender: No OFD packet to send [15:59:01]OFD Sender: No OFD packet to send [15:59:06]OFD Sender: No OFD packet to send [15:59:11]OFD Sender: No OFD packet to send [15:59:16]OFD Sender: No OFD packet to send [15:59:21]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:07]OFD Sender: No OFD packet to send [16:06:12]OFD Sender: No OFD packet to send [16:06:17]OFD Sender: No OFD packet to send [16:06:22]OFD Sender: No OFD packet to send [16:06:27]OFD Sender: No OFD packet to send [16:06:32]OFD Sender: No OFD packet to send [16:06:37]OFD Sender: No OFD packet to send [16:06:42]OFD Sender: No OFD packet to send [16:06:47]OFD Sender: No OFD packet to send [16:06:52]OFD Sender: No OFD packet to send [16:06:57]OFD Sender: No OFD packet to send [16:07:02]OFD Sender: No OFD packet to send [16:07:07]OFD Sender: No OFD packet to send [16:07:12]OFD Sender: No OFD packet to send [16:07:17]OFD Sender: No OFD packet to send [16:07:22]OFD Sender: No OFD packet to send [16:07:27]OFD Sender: No OFD packet to send [16:07:32]OFD Sender: No OFD packet to send [16:07:37]OFD Sender: No OFD packet to send [16:07:42]OFD Sender: No OFD packet to send [16:07:47]OFD Sender: No OFD packet to send [16:07:52]OFD Sender: No OFD packet to send [16:07:57]OFD Sender: No OFD packet to send [16:08:02]OFD Sender: No OFD packet to send [16:08:07]OFD Sender: No OFD packet to send [16:08:12]OFD Sender: No OFD packet to send [16:08:17]OFD Sender: No OFD packet to send [16:08:22]OFD Sender: No OFD packet to send [16:08:27]OFD Sender: No OFD packet to send [16:08:32]OFD Sender: No OFD packet to send [16:08:37]OFD Sender: No OFD packet to send [16:08:42]OFD Sender: No OFD packet to send [16:08:47]OFD Sender: No OFD packet to send [16:08:52]OFD Sender: No OFD packet to send [16:08:57]OFD Sender: No OFD packet to send [16:09:02]OFD Sender: No OFD packet to send [16:09:07]OFD Sender: No OFD packet to send [16:09:12]OFD Sender: No OFD packet to send [16:09:17]OFD Sender: No OFD packet to send [16:09:22]OFD Sender: No OFD packet to send [16:09:27]OFD Sender: No OFD packet to send [16:09:32]OFD Sender: No OFD packet to send [16:09:37]OFD Sender: No OFD packet to send [16:09:42]OFD Sender: No OFD packet to send [16:09:47]OFD Sender: No OFD packet to send [16:09:52]OFD Sender: No OFD packet to send [16:09:57]OFD Sender: No OFD packet to send [16:10:02]OFD Sender: No OFD packet to send [16:10:07]OFD Sender: No OFD packet to send [16:10:12]OFD Sender: No OFD packet to send [16:10:17]OFD Sender: No OFD packet to send [16:10:22]OFD Sender: No OFD packet to send [16:10:27]OFD Sender: No OFD packet to send [16:10:32]OFD Sender: No OFD packet to send [16:10:37]OFD Sender: No OFD packet to send [16:10:42]OFD Sender: No OFD packet to send [16:10:47]OFD Sender: No OFD packet to send [16:10:52]OFD Sender: No OFD packet to send [16:10:57]OFD Sender: No OFD packet to send [16:11:02]OFD Sender: No OFD packet to send [16:11:07]OFD Sender: No OFD packet to send [16:11:12]OFD Sender: No OFD packet to send [16:11:17]OFD Sender: No OFD packet to send [16:11:22]OFD Sender: No OFD packet to send [16:11:27]OFD Sender: No OFD packet to send [16:11:32]OFD Sender: No OFD packet to send [16:11:37]OFD Sender: No OFD packet to send [16:11:42]OFD Sender: No OFD packet to send [16:11:47]OFD Sender: No OFD packet to send [16:11:52]OFD Sender: No OFD packet to send [16:11:57]OFD Sender: No OFD packet to send [16:12:02]OFD Sender: No OFD packet to send [16:12:07]OFD Sender: No OFD packet to send [16:12:12]OFD Sender: No OFD packet to send [16:12:17]OFD Sender: No OFD packet to send [16:12:22]OFD Sender: No OFD packet to send [16:12:27]OFD Sender: No OFD packet to send [16:12:32]OFD Sender: No OFD packet to send [16:12:37]OFD Sender: No OFD packet to send [16:12:42]OFD Sender: No OFD packet to send [16:12:47]OFD Sender: No OFD packet to send [16:12:52]OFD Sender: No OFD packet to send [16:12:57]OFD Sender: No OFD packet to send [16:13:02]OFD Sender: No OFD packet to send [16:13:07]OFD Sender: No OFD packet to send [16:13:12]OFD Sender: No OFD packet to send [16:13:17]OFD Sender: No OFD packet to send [16:13:22]OFD Sender: No OFD packet to send [16:13:27]OFD Sender: No OFD packet to send [16:13:32]OFD Sender: No OFD packet to send [16:13:37]OFD Sender: No OFD packet to send [16:13:42]OFD Sender: No OFD packet to send [16:13:47]OFD Sender: No OFD packet to send [16:13:52]OFD Sender: No OFD packet to send [16:13:57]OFD Sender: No OFD packet to send [16:14:02]OFD Sender: No OFD packet to send [16:14:07]OFD Sender: No OFD packet to send [16:14:12]OFD Sender: No OFD packet to send [16:14:17]OFD Sender: No OFD packet to send [16:14:22]OFD Sender: No OFD packet to send [16:14:27]OFD Sender: No OFD packet to send [16:14:32]OFD Sender: No OFD packet to send [16:14:37]OFD Sender: No OFD packet to send [16:14:42]OFD Sender: No OFD packet to send [16:14:47]OFD Sender: No OFD packet to send [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:57]OFD Sender: No OFD packet to send [16:19:02]OFD Sender: No OFD packet to send [16:19:07]OFD Sender: No OFD packet to send [16:19:12]OFD Sender: No OFD packet to send [16:19:17]OFD Sender: No OFD packet to send [16:19:22]OFD Sender: No OFD packet to send [16:19:27]OFD Sender: No OFD packet to send [16:19:32]OFD Sender: No OFD packet to send [16:19:37]OFD Sender: No OFD packet to send [16:19:42]OFD Sender: No OFD packet to send [16:19:47]OFD Sender: No OFD packet to send [16:19:52]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:09]accept exits with 9 [16:24:09]New connection [16:24:09]New thread 3066965348 created [16:24:09]Thread 3066821988 joined [16:24:09]Waiting for new connection... [16:24:09] Sock 9.Parse request [16:24:09]Sock 9.Check first char [16:24:09]Sock 9.First char is OK [16:24:09]request: POST /json_proto HTTP/1.0 [16:24:09]Method: POST [16:24:09]URL: /json_proto [16:24:09]Method is POST - this is cgi request [16:24:09]url: /json_proto [16:24:09]query_string will be loaded in cgi processing [16:24:09]execute_cgi json_proto POST (null) [16:24:09]execute_cgi path=json_proto method=POST [16:24:09]POST find Content-Length [16:24:09]Host: 172.17.39.68:8080 [16:24:09]Content-Length: 946 [16:24:09]Content-Type: application/json [16:24:09] [16:24:09]POST finish read [16:24:09]Found Content-Length = 946 [16:24:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214362", "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 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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" ] } } [16:24:09]execute_script... [16:24: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)214362", "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 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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" ] } } [16:24:09]POST & json_proto [16:24:09]process_json_proto [16:24:09]json parsed OK: [16:24:09]protocol is kg_v1.0 [16:24:09]action value=close_receipt [16:24:09]process_action close_receipt [16:24:09]cmd_close_receipt [16:24:09]MH_GetDate [16:24:09]Write to MH i2c: F0 00 00 07 29 1F [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: F0 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: F0 09 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: F0 09 00 07 29 00 AE 9E 96 66 D6 48 95 66 89 [16:24:09]GetLastDocTimeStamp 1721145378 [16:24:09]current date 1721147054 [16:24:09]FM_GetShiftState [16:24:09]SAM_PROTO_GetShiftState [16:24:09]wFMCommunicate request_size=4 [16:24:09]MH_SAM_APDU [16:24:09]CAPDU: 80 13 01 00 [16:24:09]Write to MH i2c: E2 08 00 08 29 80 13 01 00 00 00 00 00 AE [16:24:09]Write i2c OK [16:24:09]MH_I2C_Read... [16:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:09]Read from MH i2c: E2 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 0E 00 [16:24:09]MH_I2C_Read... [16:24:09]Read from MH i2c: E2 0E 00 08 29 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 FD [16:24:09]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [16:24:09]wFMCommunicate OK [16:24:09]SAM_PROTO_GetShiftState done [16:24:09]FM_GetShiftState done [16:24:09]opened in 1721088399 [16:24:09]opened+sec_in_day 1721174799 [16:24:09]quantity*price = 9500 [16:24:09]sum+1 = 9501 [16:24:09]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.43 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 100 16.07.2024 16:24 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31781 ФПД: 170301812718331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T162414&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31781&fm=170301812718331&tin=02508201610067®Number=0000000000098025&sum=23000 0 [16:24:10]StoreToDocumentArchive [16:24:10]shift 371 fd 31781 [16:24:10]save to /storage/0371/doc_00031781 [16:24:10]save last doc name /storage/0371/doc_00031781 to /storage/kkm_last_doc_name [16:24:10]save OK [16:24:10]Clear old archive folders... [16:24:10]ProcessDocumentItem done err = 0, tmpTLVsize=406 [16:24:10]tlvbuf is 01574410 [16:24:10]SAM_PROTO_ClearQueue [16:24:10]wFMCommunicate request_size=4 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 09 00 00 [16:24:10]Write to MH i2c: E2 08 00 15 29 80 09 00 00 00 00 00 00 B0 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 15 29 00 90 00 B2 [16:24:10]RAPDU: 90 00 [16:24:10]wFMCommunicate OK [16:24:10]SAM_PROTO_ClearQueue done [16:24:10]KKMCreateOFDPacket [16:24:10]OFDProtocolAddRootSTLVToBuf [16:24:10]FM_MakeSignedData [16:24:10]FM_MakeSignedData [16:24:10]SAM_PROTO_SignData [16:24:10]wFMCommunicate request_size=4 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 0D 01 02 [16:24:10]Write to MH i2c: E2 08 00 16 29 80 0D 01 02 00 00 00 00 B8 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 16 29 00 90 00 B3 [16:24:10]RAPDU: 90 00 [16:24:10]wFMCommunicate OK [16:24:10]wFMCommunicate request_size=255 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 0D 02 02 FA 03 00 96 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 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 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 D8 [16:24:10]Write to MH i2c: E2 02 01 17 29 80 0D 02 02 FA 00 03 00 96 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 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 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 D8 00 00 56 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:10]Read from MH i2c: E2 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 [16:24:10]MH_I2C_Read... [16:24:10]Read from MH i2c: E2 03 00 17 29 00 90 00 B4 [16:24:10]RAPDU: 90 00 [16:24:10]wFMCommunicate OK [16:24:10]wFMCommunicate request_size=165 [16:24:10]MH_SAM_APDU [16:24:10]CAPDU: 80 0D 02 02 A0 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 8B 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 64 00 00 00 F4 03 04 00 AE 9E 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 25 7C 00 00 35 04 06 00 9A E3 7B 0D 3A FB [16:24:10]Write to MH i2c: E2 A8 00 18 29 80 0D 02 02 A0 00 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 8B 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 64 00 00 00 F4 03 04 00 AE 9E 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 25 7C 00 00 35 04 06 00 9A E3 7B 0D 3A FB 00 00 23 [16:24:10]Write i2c OK [16:24:10]MH_I2C_Read... [16:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:11]Read from MH i2c: E2 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 03 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 03 00 18 29 00 90 00 B5 [16:24:11]RAPDU: 90 00 [16:24:11]wFMCommunicate OK [16:24:11]wFMCommunicate request_size=4 [16:24:11]MH_SAM_APDU [16:24:11]CAPDU: 80 0D 03 02 [16:24:11]Write to MH i2c: E2 08 00 19 29 80 0D 03 02 00 00 00 00 BD [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:11]Read from MH i2c: E2 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 0B 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 0B 00 19 29 00 C4 74 2A 23 5A 0A F6 41 90 00 DE [16:24:11]RAPDU: C4 74 2A 23 5A 0A F6 41 90 00 [16:24:11]wFMCommunicate OK [16:24:11]SAM_PROTO_SignData done [16:24:11]FM_MakeSignedData done [16:24:11]CreateOFDProtocolMessage [16:24:11]wFMCommunicate request_size=4 [16:24:11]MH_SAM_APDU [16:24:11]CAPDU: 80 11 00 00 [16:24:11]Write to MH i2c: E2 08 00 1A 29 80 11 00 00 00 00 00 00 BD [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:11]Read from MH i2c: E2 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 17 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: E2 17 00 1A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 18 [16:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:24:11]wFMCommunicate OK [16:24:11]CreateOFDProtocolMessage done [16:24:11]OFDSenderStorePacket 31781 [16:24:11]StoreOFDPacket docnum=31781 [16:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AA 01 00 00 1C 77 A2 01 FD 00 5A 03 01 00 03 00 96 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 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 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 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 8B 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 64 00 00 00 F4 03 04 00 AE 9E 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 25 7C 00 00 35 04 06 00 9A E3 7B 0D 3A FB C4 74 2A 23 5A 0A F6 41 [16:24:11]CheckFolder [16:24:11]dirname=/storage/ofd_packets [16:24:11]CheckFolder done [16:24:11]ProducePacketName [16:24:11]name=ofd_packets/00031781 [16:24:11]NVStorageSaveData ofd_packets/00031781 [16:24:11]File name is /storage/ofd_packets/00031781 [16:24:11]Write 456 bytes [16:24:11]NVStorageSaveData done [16:24:11]OFDSenderStorePacket done [16:24:11]KKMCreateOFDPacket done [16:24:11]NVStorageSaveData kkm_last_timestamp [16:24:11]File name is /storage/kkm_last_timestamp [16:24:11]Write 4 bytes [16:24:11]NVStorageSaveData done [16:24:11]ExternCall_PrintAddStr [16:24:11]wPrintStart [16:24:11]Write to MH i2c: 01 00 00 1B 29 44 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 1B 29 00 00 00 00 00 FF 0F 59 [16:24:11]RasterBufferAndPrint [16:24:11]line Счет N : (3)214362 [16:24:11]line ИНН: 02508201610067 [16:24:11]line Контрольно-Кассовый Чек [16:24:11]line ПРОДАЖА [16:24:11]line Товар: 4700000480302 [16:24:11]line Напиток энерг Nitro манго-клуб 0.45 ж/б [16:24:11]line 1.000 * 95.00 [16:24:11]line = 95.00 [16:24:11]line НДС 12% НСП 1% [16:24:11]line > о реализуемом товаре [16:24:11]line Товар: 48745000 [16:24:11]line Сигареты Winston Purple Mix [16:24:11]line 1.000 * 135.00 [16:24:11]line = 135.00 [16:24:11]line НДС 12% НСП 1% [16:24:11]line > о реализуемом товаре [16:24:11]line ИТОГО: 230.00 [16:24:11]line НСП 1% : 2.03 [16:24:11]line НДС 12% : 24.43 [16:24:11]line Наличными: 230.00 [16:24:11]line Безнал.: 0.00 [16:24:11]line Место: АЗС № 140 "Партнер Нефть" [16:24:11]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:24:11]line СНО: Общий режим [16:24:11]line Чек 100 16.07.2024 16:24 [16:24:11]line Смена: 371 ФФД: 1.0 [16:24:11]line ЗНМ: 0300000189 [16:24:11]line РНМ: 0000000000098025 [16:24:11]line Версия ККМ: 001 [16:24:11]line ФМ: 0000000000965389 [16:24:11]line ФД: 31781 [16:24:11]line ФПД: 170301812718331 [16:24:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T162414&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31781&fm=170301812718331&tin=02508201610067®Number=0000000000098025&sum=23000 [16:24:11]line 0 [16:24:11]OFD Sender: Processing packet 31781 [packets to send 6, broken 5] [16:24:11]ProducePacketName [16:24:11]name=ofd_packets/00031781 [16:24:11]OFD Sender: To server: pG, [16:24:11]CommunicateWithHost lk.salyk.kg:30040 [16:24:11]ConnectInit lk.salyk.kg [16:24:11]written 0, free lines is 4095 [16:24:11]Connected sock=10 [16:24:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 AA 01 00 00 1C 77 A2 01 FD 00 5A 03 01 00 03 00 96 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 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 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 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 8B 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 64 00 00 00 F4 03 04 00 AE 9E 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 25 7C 00 00 35 04 06 00 9A E3 7B 0D 3A FB C4 74 2A 23 5A 0A F6 41 [16:24:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 94 33 47 00 43 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 35 33 38 39 10 04 04 00 25 7C 00 00 F4 03 04 00 BB 4A 96 66 B6 04 01 00 00 7E D2 6D F2 DE 69 ED 56 [16:24:11]CommunicateWithHost err = 0 [16:24:11]CheckOFDResponse [16:24:11]1017 (14) - 77093643461234 [16:24:11]1041 (16) - 0000000000965389 [16:24:11]1040 (4) - 31781 [16:24:11]1012 (4) - 16.07.2024 10:26 [16:24:11]1206 (1) - 0 [16:24:11]OFD Sender: Remove packet 31781 [16:24:11]ProducePacketName [16:24:11]name=ofd_packets/00031781 [16:24:11]NVStorageDeleteData [16:24:11]Write to MH i2c: 01 00 00 4A 29 73 [16:24:11]Write i2c OK [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 [16:24:11]MH_I2C_Read... [16:24:11]Read from MH i2c: 01 07 00 4A 29 00 00 00 00 00 88 0C 0E [16:24:11]RasterBufferAndPrint [16:24:11]line [16:24:11]line [16:24:11]line [16:24:11]line [16:24:11]line [16:24:11]written 0, free lines is 3214 [16:24:12]MH_Cut [16:24:12]Write to MH i2c: D1 01 00 51 29 01 4C [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: D1 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: D1 01 00 [16:24:12]MH_I2C_Read... [16:24:12]Read from MH i2c: D1 01 00 51 29 00 4B [16:24:12]Write to MH i2c: 01 00 00 52 29 7B [16:24:12]Write i2c OK [16:24:12]MH_I2C_Read... [16:24:12]OFD Sender: No OFD packet to send [16:24:12]*** Cut start [16:24:12]*** Partial cut [16:24:12]*** CUTSNS_PIN = 1 [16:24:12]*** CUTSNS_PIN = 0 [16:24:13]*** Brake cut motor [16:24:13]Read from MH i2c: 01 [16:24:13]MH_I2C_Read... [16:24:13]*** Stop cut motor [16:24:13]*** Cut end [16:24:13]Read from MH i2c: 01 07 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: 01 07 00 52 29 00 00 00 00 00 FF 0F 90 [16:24:13]process_action close_receipt done [16:24:13]requested_data is exist [16:24:13]produce_requested_data [16:24:13]requested_item fm.sn is exist - process it [16:24:13]wFMCommunicate request_size=4 [16:24:13]MH_SAM_APDU [16:24:13]CAPDU: 80 11 00 00 [16:24:13]Write to MH i2c: E2 08 00 53 29 80 11 00 00 00 00 00 00 F6 [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:13]Read from MH i2c: E2 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 17 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 17 00 53 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 51 [16:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:24:13]wFMCommunicate OK [16:24:13]requested_item fd.num is exist - process it [16:24:13]SAM_PROTO_GetFieldsCounters [16:24:13]wFMCommunicate request_size=4 [16:24:13]MH_SAM_APDU [16:24:13]CAPDU: 80 13 00 00 [16:24:13]Write to MH i2c: E2 08 00 54 29 80 13 00 00 00 00 00 00 F9 [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:13]Read from MH i2c: E2 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 62 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 62 00 54 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 25 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [16:24: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 25 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:13]wFMCommunicate OK [16:24:13]SAM_PROTO_GetFieldsCounters done [16:24:13]requested_item shift.num is exist - process it [16:24:13]requested_item shift.opened is exist - process it [16:24:13]req_shift_opened [16:24:13]FM_GetShiftState [16:24:13]SAM_PROTO_GetShiftState [16:24:13]wFMCommunicate request_size=4 [16:24:13]MH_SAM_APDU [16:24:13]CAPDU: 80 13 01 00 [16:24:13]Write to MH i2c: E2 08 00 55 29 80 13 01 00 00 00 00 00 FB [16:24:13]Write i2c OK [16:24:13]MH_I2C_Read... [16:24:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:13]Read from MH i2c: E2 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 0E 00 [16:24:13]MH_I2C_Read... [16:24:13]Read from MH i2c: E2 0E 00 55 29 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 4A [16:24:13]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [16:24:13]wFMCommunicate OK [16:24:13]SAM_PROTO_GetShiftState done [16:24:13]FM_GetShiftState done [16:24:13]req_shift_opened done [16:24:13]requested_item shift.open_date is exist - process it [16:24:13]req_shift_open_date [16:24:13]req_shift_open_date done [16:24:13]produce_requested_data done [16:24:13]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31781,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [16:24:13]process_action_free close_receipt [16:24:13]json_value_free [16:24:13]json_value_free done [16:24:13]process_json_proto returns [16:24:13]Send response to host [16:24:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31781,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [16:24:13]free response buf [16:24:13]execute_script done [16:24:13]execute_script returns [16:24:13]free content buf [16:24:13]Sock 9.Close socket [16:24:13]Sock 9.Thread stoped [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:24]accept exits with 7 [16:31:24]New connection [16:31:24]New thread 3066821988 created [16:31:24]Thread 3066965348 joined [16:31:24]Waiting for new connection... [16:31:24] Sock 7.Parse request [16:31:24]Sock 7.Check first char [16:31:24]Sock 7.First char is OK [16:31:24]request: POST /json_proto HTTP/1.0 [16:31:24]Method: POST [16:31:24]URL: /json_proto [16:31:24]Method is POST - this is cgi request [16:31:24]url: /json_proto [16:31:24]query_string will be loaded in cgi processing [16:31:24]execute_cgi json_proto POST (null) [16:31:24]execute_cgi path=json_proto method=POST [16:31:24]POST find Content-Length [16:31:24]Host: 172.17.39.68:8080 [16:31:24]Content-Length: 696 [16:31:24]Content-Type: application/json [16:31:24] [16:31:24]POST finish read [16:31:24]Found Content-Length = 696 [16:31:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214363", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 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" ] } } [16:31:24]execute_script... [16:31: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)214363", "tax_sys" : 0, "items" : [ { "code": "4870202521261", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u043B\u0435\u0441\u043D\u044B\u0435 \u044F\u0433\u043E\u0434\u044B", "price" : 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" ] } } [16:31:24]POST & json_proto [16:31:24]process_json_proto [16:31:24]json parsed OK: [16:31:24]protocol is kg_v1.0 [16:31:24]action value=close_receipt [16:31:24]process_action close_receipt [16:31:24]cmd_close_receipt [16:31:24]MH_GetDate [16:31:24]Write to MH i2c: F0 00 00 56 29 6E [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: F0 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: F0 09 00 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: F0 09 00 56 29 00 61 A0 96 66 D6 48 95 66 8D [16:31:24]GetLastDocTimeStamp 1721147054 [16:31:24]current date 1721147489 [16:31:24]FM_GetShiftState [16:31:24]SAM_PROTO_GetShiftState [16:31:24]wFMCommunicate request_size=4 [16:31:24]MH_SAM_APDU [16:31:24]CAPDU: 80 13 01 00 [16:31:24]Write to MH i2c: E2 08 00 57 29 80 13 01 00 00 00 00 00 FD [16:31:24]Write i2c OK [16:31:24]MH_I2C_Read... [16:31:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:24]Read from MH i2c: E2 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: E2 0E 00 [16:31:24]MH_I2C_Read... [16:31:24]Read from MH i2c: E2 0E 00 57 29 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 4C [16:31:24]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [16:31:24]wFMCommunicate OK [16:31:24]SAM_PROTO_GetShiftState done [16:31:24]FM_GetShiftState done [16:31:24]opened in 1721088399 [16:31:24]opened+sec_in_day 1721174799 [16:31:24]quantity*price = 11000 [16:31:24]sum+1 = 11001 [16:31:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 101 16.07.2024 16:31 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31782 ФПД: 115365097885064 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T163129&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31782&fm=115365097885064&tin=02508201610067®Number=0000000000098025&sum=11000 0 [16:31:25]StoreToDocumentArchive [16:31:25]shift 371 fd 31782 [16:31:25]save to /storage/0371/doc_00031782 [16:31:25]save last doc name /storage/0371/doc_00031782 to /storage/kkm_last_doc_name [16:31:25]save OK [16:31:25]Clear old archive folders... [16:31:25]ProcessDocumentItem done err = 0, tmpTLVsize=296 [16:31:25]tlvbuf is 014A8490 [16:31:25]SAM_PROTO_ClearQueue [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 09 00 00 [16:31:25]Write to MH i2c: E2 08 00 64 29 80 09 00 00 00 00 00 00 FF [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:31:25]Read from MH i2c: E2 03 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 64 29 00 90 00 01 [16:31:25]RAPDU: 90 00 [16:31:25]wFMCommunicate OK [16:31:25]SAM_PROTO_ClearQueue done [16:31:25]KKMCreateOFDPacket [16:31:25]OFDProtocolAddRootSTLVToBuf [16:31:25]FM_MakeSignedData [16:31:25]FM_MakeSignedData [16:31:25]SAM_PROTO_SignData [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 0D 01 02 [16:31:25]Write to MH i2c: E2 08 00 65 29 80 0D 01 02 00 00 00 00 07 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 65 29 00 90 00 02 [16:31:25]RAPDU: 90 00 [16:31:25]wFMCommunicate OK [16:31:25]wFMCommunicate request_size=255 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 65 00 00 00 F4 03 04 00 61 A0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [16:31:25]Write to MH i2c: E2 02 01 66 29 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 65 00 00 00 F4 03 04 00 61 A0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 5B [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 66 29 00 90 00 03 [16:31:25]RAPDU: 90 00 [16:31:25]wFMCommunicate OK [16:31:25]wFMCommunicate request_size=55 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 26 7C 00 00 35 04 06 00 68 EC 87 AD CD 88 [16:31:25]Write to MH i2c: E2 3A 00 67 29 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 26 7C 00 00 35 04 06 00 68 EC 87 AD CD 88 00 00 E9 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 03 00 67 29 00 90 00 04 [16:31:25]RAPDU: 90 00 [16:31:25]wFMCommunicate OK [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 0D 03 02 [16:31:25]Write to MH i2c: E2 08 00 68 29 80 0D 03 02 00 00 00 00 0C [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 0B 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 0B 00 68 29 00 09 46 C9 F5 3A A2 D1 6A 90 00 31 [16:31:25]RAPDU: 09 46 C9 F5 3A A2 D1 6A 90 00 [16:31:25]wFMCommunicate OK [16:31:25]SAM_PROTO_SignData done [16:31:25]FM_MakeSignedData done [16:31:25]CreateOFDProtocolMessage [16:31:25]wFMCommunicate request_size=4 [16:31:25]MH_SAM_APDU [16:31:25]CAPDU: 80 11 00 00 [16:31:25]Write to MH i2c: E2 08 00 69 29 80 11 00 00 00 00 00 00 0C [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:25]Read from MH i2c: E2 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 17 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: E2 17 00 69 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 67 [16:31:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:31:25]wFMCommunicate OK [16:31:25]CreateOFDProtocolMessage done [16:31:25]OFDSenderStorePacket 31782 [16:31:25]StoreOFDPacket docnum=31782 [16:31:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 F8 2E 34 01 B5 ED 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 65 00 00 00 F4 03 04 00 61 A0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 26 7C 00 00 35 04 06 00 68 EC 87 AD CD 88 09 46 C9 F5 3A A2 D1 6A [16:31:25]CheckFolder [16:31:25]dirname=/storage/ofd_packets [16:31:25]CheckFolder done [16:31:25]ProducePacketName [16:31:25]name=ofd_packets/00031782 [16:31:25]NVStorageSaveData ofd_packets/00031782 [16:31:25]File name is /storage/ofd_packets/00031782 [16:31:25]Write 346 bytes [16:31:25]NVStorageSaveData done [16:31:25]OFDSenderStorePacket done [16:31:25]KKMCreateOFDPacket done [16:31:25]NVStorageSaveData kkm_last_timestamp [16:31:25]File name is /storage/kkm_last_timestamp [16:31:25]Write 4 bytes [16:31:25]NVStorageSaveData done [16:31:25]ExternCall_PrintAddStr [16:31:25]wPrintStart [16:31:25]Write to MH i2c: 01 00 00 6A 29 93 [16:31:25]Write i2c OK [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: 01 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: 01 07 00 [16:31:25]MH_I2C_Read... [16:31:25]Read from MH i2c: 01 07 00 6A 29 00 00 00 00 00 FF 0F A8 [16:31:25]RasterBufferAndPrint [16:31:25]line Счет N : (3)214363 [16:31:25]line ИНН: 02508201610067 [16:31:25]line Контрольно-Кассовый Чек [16:31:25]line ПРОДАЖА [16:31:25]line Товар: 4870202521261 [16:31:25]line Напиток MAXI чай 1,2 лесные ягоды [16:31:25]line 1.000 * 110.00 [16:31:25]line = 110.00 [16:31:25]line НДС 12% НСП 1% [16:31:25]line > о реализуемом товаре [16:31:25]line ИТОГО: 110.00 [16:31:25]line НСП 1% : 0.97 [16:31:25]line НДС 12% : 11.68 [16:31:25]line Наличными: 110.00 [16:31:25]line Безнал.: 0.00 [16:31:25]line Место: АЗС № 140 "Партнер Нефть" [16:31:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:31:25]line СНО: Общий режим [16:31:25]line Чек 101 16.07.2024 16:31 [16:31:25]line Смена: 371 ФФД: 1.0 [16:31:25]line ЗНМ: 0300000189 [16:31:25]line РНМ: 0000000000098025 [16:31:25]line Версия ККМ: 001 [16:31:25]line ФМ: 0000000000965389 [16:31:25]line ФД: 31782 [16:31:25]line ФПД: 115365097885064 [16:31:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T163129&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31782&fm=115365097885064&tin=02508201610067®Number=0000000000098025&sum=11000 [16:31:26]line 0 [16:31:26]OFD Sender: Processing packet 31782 [packets to send 6, broken 5] [16:31:26]ProducePacketName [16:31:26]name=ofd_packets/00031782 [16:31:26]OFD Sender: To server: pG, [16:31:26]CommunicateWithHost lk.salyk.kg:30040 [16:31:26]ConnectInit lk.salyk.kg [16:31:26]written 0, free lines is 4095 [16:31:26]Connected sock=10 [16:31:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 F8 2E 34 01 B5 ED 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 36 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 BB D0 B5 D1 81 D0 BD D1 8B D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 65 00 00 00 F4 03 04 00 61 A0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 26 7C 00 00 35 04 06 00 68 EC 87 AD CD 88 09 46 C9 F5 3A A2 D1 6A [16:31:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 8F 4B 47 00 85 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 26 7C 00 00 F4 03 04 00 6E 4C 96 66 B6 04 01 00 00 56 A1 EE 99 B3 E5 07 76 [16:31:26]CommunicateWithHost err = 0 [16:31:26]CheckOFDResponse [16:31:26]1017 (14) - 77093643461234 [16:31:26]1041 (16) - 0000000000965389 [16:31:26]1040 (4) - 31782 [16:31:26]1012 (4) - 16.07.2024 10:33 [16:31:26]1206 (1) - 0 [16:31:26]OFD Sender: Remove packet 31782 [16:31:26]ProducePacketName [16:31:26]name=ofd_packets/00031782 [16:31:26]NVStorageDeleteData [16:31:26]Write to MH i2c: 01 00 00 93 29 BC [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 07 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: 01 07 00 93 29 00 00 00 00 00 ED 0C BC [16:31:26]RasterBufferAndPrint [16:31:26]line [16:31:26]line [16:31:26]line [16:31:26]line [16:31:26]line [16:31:26]written 0, free lines is 3315 [16:31:26]MH_Cut [16:31:26]Write to MH i2c: D1 01 00 9A 29 01 95 [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: D1 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: D1 01 00 [16:31:26]MH_I2C_Read... [16:31:26]Read from MH i2c: D1 01 00 9A 29 00 94 [16:31:26]Write to MH i2c: 01 00 00 9B 29 C4 [16:31:26]Write i2c OK [16:31:26]MH_I2C_Read... [16:31:27]OFD Sender: No OFD packet to send [16:31:27]*** Cut start [16:31:27]*** Partial cut [16:31:27]*** CUTSNS_PIN = 1 [16:31:27]*** CUTSNS_PIN = 0 [16:31:27]*** Brake cut motor [16:31:28]Read from MH i2c: 01 [16:31:28]MH_I2C_Read... [16:31:28]*** Stop cut motor [16:31:28]*** Cut end [16:31:28]Read from MH i2c: 01 07 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: 01 07 00 9B 29 00 00 00 00 00 FF 0F D9 [16:31:28]process_action close_receipt done [16:31:28]requested_data is exist [16:31:28]produce_requested_data [16:31:28]requested_item fm.sn is exist - process it [16:31:28]wFMCommunicate request_size=4 [16:31:28]MH_SAM_APDU [16:31:28]CAPDU: 80 11 00 00 [16:31:28]Write to MH i2c: E2 08 00 9C 29 80 11 00 00 00 00 00 00 3F [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:31:28]Read from MH i2c: E2 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 17 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 17 00 9C 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9A [16:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:31:28]wFMCommunicate OK [16:31:28]requested_item fd.num is exist - process it [16:31:28]SAM_PROTO_GetFieldsCounters [16:31:28]wFMCommunicate request_size=4 [16:31:28]MH_SAM_APDU [16:31:28]CAPDU: 80 13 00 00 [16:31:28]Write to MH i2c: E2 08 00 9D 29 80 13 00 00 00 00 00 00 42 [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:31:28]Read from MH i2c: E2 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 62 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 62 00 9D 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 26 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [16:31:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 26 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:31:28]wFMCommunicate OK [16:31:28]SAM_PROTO_GetFieldsCounters done [16:31:28]requested_item shift.num is exist - process it [16:31:28]requested_item shift.opened is exist - process it [16:31:28]req_shift_opened [16:31:28]FM_GetShiftState [16:31:28]SAM_PROTO_GetShiftState [16:31:28]wFMCommunicate request_size=4 [16:31:28]MH_SAM_APDU [16:31:28]CAPDU: 80 13 01 00 [16:31:28]Write to MH i2c: E2 08 00 9E 29 80 13 01 00 00 00 00 00 44 [16:31:28]Write i2c OK [16:31:28]MH_I2C_Read... [16:31:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:31:28]Read from MH i2c: E2 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 0E 00 [16:31:28]MH_I2C_Read... [16:31:28]Read from MH i2c: E2 0E 00 9E 29 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 93 [16:31:28]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [16:31:28]wFMCommunicate OK [16:31:28]SAM_PROTO_GetShiftState done [16:31:28]FM_GetShiftState done [16:31:28]req_shift_opened done [16:31:28]requested_item shift.open_date is exist - process it [16:31:28]req_shift_open_date [16:31:28]req_shift_open_date done [16:31:28]produce_requested_data done [16:31:28]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31782,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [16:31:28]process_action_free close_receipt [16:31:28]json_value_free [16:31:28]json_value_free done [16:31:28]process_json_proto returns [16:31:28]Send response to host [16:31:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31782,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [16:31:28]free response buf [16:31:28]execute_script done [16:31:28]execute_script returns [16:31:28]free content buf [16:31:28]Sock 7.Close socket [16:31:28]Sock 7.Thread stoped [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:57]OFD Sender: No OFD packet to send [16:32:02]OFD Sender: No OFD packet to send [16:32:07]OFD Sender: No OFD packet to send [16:32:12]OFD Sender: No OFD packet to send [16:32:17]OFD Sender: No OFD packet to send [16:32:22]OFD Sender: No OFD packet to send [16:32:27]OFD Sender: No OFD packet to send [16:32:32]OFD Sender: No OFD packet to send [16:32:37]OFD Sender: No OFD packet to send [16:32:42]OFD Sender: No OFD packet to send [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:37]OFD Sender: No OFD packet to send [16:35:42]OFD Sender: No OFD packet to send [16:35:47]OFD Sender: No OFD packet to send [16:35:52]OFD Sender: No OFD packet to send [16:35:57]OFD Sender: No OFD packet to send [16:36:02]OFD Sender: No OFD packet to send [16:36:07]OFD Sender: No OFD packet to send [16:36:12]OFD Sender: No OFD packet to send [16:36:17]OFD Sender: No OFD packet to send [16:36:22]OFD Sender: No OFD packet to send [16:36:27]OFD Sender: No OFD packet to send [16:36:32]OFD Sender: No OFD packet to send [16:36:37]OFD Sender: No OFD packet to send [16:36:42]OFD Sender: No OFD packet to send [16:36:47]OFD Sender: No OFD packet to send [16:36:52]OFD Sender: No OFD packet to send [16:36:57]OFD Sender: No OFD packet to send [16:37:02]OFD Sender: No OFD packet to send [16:37:07]OFD Sender: No OFD packet to send [16:37:12]OFD Sender: No OFD packet to send [16:37:17]OFD Sender: No OFD packet to send [16:37:22]OFD Sender: No OFD packet to send [16:37:27]OFD Sender: No OFD packet to send [16:37:32]OFD Sender: No OFD packet to send [16:37:37]OFD Sender: No OFD packet to send [16:37:42]OFD Sender: No OFD packet to send [16:37:47]OFD Sender: No OFD packet to send [16:37:52]OFD Sender: No OFD packet to send [16:37:57]OFD Sender: No OFD packet to send [16:38:02]OFD Sender: No OFD packet to send [16:38:07]OFD Sender: No OFD packet to send [16:38:12]OFD Sender: No OFD packet to send [16:38:17]OFD Sender: No OFD packet to send [16:38:22]OFD Sender: No OFD packet to send [16:38:27]OFD Sender: No OFD packet to send [16:38:32]OFD Sender: No OFD packet to send [16:38:37]OFD Sender: No OFD packet to send [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:00]accept exits with 9 [16:39:00]New connection [16:39:00]New thread 3066965348 created [16:39:00]Thread 3066821988 joined [16:39:00]Waiting for new connection... [16:39:00] Sock 9.Parse request [16:39:00]Sock 9.Check first char [16:39:00]Sock 9.First char is OK [16:39:00]request: POST /json_proto HTTP/1.0 [16:39:00]Method: POST [16:39:00]URL: /json_proto [16:39:00]Method is POST - this is cgi request [16:39:00]url: /json_proto [16:39:00]query_string will be loaded in cgi processing [16:39:00]execute_cgi json_proto POST (null) [16:39:00]execute_cgi path=json_proto method=POST [16:39:00]POST find Content-Length [16:39:00]Host: 172.17.39.68:8080 [16:39:00]Content-Length: 652 [16:39:00]Content-Type: application/json [16:39:00] [16:39:00]POST finish read [16:39:00]Found Content-Length = 652 [16:39:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214364", "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 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:00]execute_script... [16:39:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214364", "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 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:00]POST & json_proto [16:39:00]process_json_proto [16:39:00]json parsed OK: [16:39:00]protocol is kg_v1.0 [16:39:00]action value=close_receipt [16:39:00]process_action close_receipt [16:39:00]cmd_close_receipt [16:39:00]MH_GetDate [16:39:00]Write to MH i2c: F0 00 00 9F 29 B7 [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: F0 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: F0 09 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: F0 09 00 9F 29 00 29 A2 96 66 D6 48 95 66 A0 [16:39:00]GetLastDocTimeStamp 1721147489 [16:39:00]current date 1721147945 [16:39:00]FM_GetShiftState [16:39:00]SAM_PROTO_GetShiftState [16:39:00]wFMCommunicate request_size=4 [16:39:00]MH_SAM_APDU [16:39:00]CAPDU: 80 13 01 00 [16:39:00]Write to MH i2c: E2 08 00 A0 29 80 13 01 00 00 00 00 00 46 [16:39:00]Write i2c OK [16:39:00]MH_I2C_Read... [16:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:00]Read from MH i2c: E2 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 0E 00 [16:39:00]MH_I2C_Read... [16:39:00]Read from MH i2c: E2 0E 00 A0 29 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 95 [16:39:00]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [16:39:00]wFMCommunicate OK [16:39:00]SAM_PROTO_GetShiftState done [16:39:00]FM_GetShiftState done [16:39:00]opened in 1721088399 [16:39:00]opened+sec_in_day 1721174799 [16:39:00]quantity*price = 7500 [16:39:00]sum+1 = 7501 [16:39:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 102 16.07.2024 16:39 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31783 ФПД: 130710722552629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T163905&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31783&fm=130710722552629&tin=02508201610067®Number=0000000000098025&sum=7500 0 [16:39:01]StoreToDocumentArchive [16:39:01]shift 371 fd 31783 [16:39:01]save to /storage/0371/doc_00031783 [16:39:01]save last doc name /storage/0371/doc_00031783 to /storage/kkm_last_doc_name [16:39:01]save OK [16:39:01]Clear old archive folders... [16:39:01]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:39:01]tlvbuf is B6EDD350 [16:39:01]SAM_PROTO_ClearQueue [16:39:01]wFMCommunicate request_size=4 [16:39:01]MH_SAM_APDU [16:39:01]CAPDU: 80 09 00 00 [16:39:01]Write to MH i2c: E2 08 00 AD 29 80 09 00 00 00 00 00 00 48 [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 [16:39:01]MH_I2C_Read... [16:39:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:01]Read from MH i2c: E2 03 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 03 00 AD 29 00 90 00 4A [16:39:01]RAPDU: 90 00 [16:39:01]wFMCommunicate OK [16:39:01]SAM_PROTO_ClearQueue done [16:39:01]KKMCreateOFDPacket [16:39:01]OFDProtocolAddRootSTLVToBuf [16:39:01]FM_MakeSignedData [16:39:01]FM_MakeSignedData [16:39:01]SAM_PROTO_SignData [16:39:01]wFMCommunicate request_size=4 [16:39:01]MH_SAM_APDU [16:39:01]CAPDU: 80 0D 01 02 [16:39:01]Write to MH i2c: E2 08 00 AE 29 80 0D 01 02 00 00 00 00 50 [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:01]Read from MH i2c: E2 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 03 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 03 00 AE 29 00 90 00 4B [16:39:01]RAPDU: 90 00 [16:39:01]wFMCommunicate OK [16:39:01]wFMCommunicate request_size=255 [16:39:01]MH_SAM_APDU [16:39:01]CAPDU: 80 0D 02 02 FA 03 00 13 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 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 29 A2 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [16:39:01]Write to MH i2c: E2 02 01 AF 29 80 0D 02 02 FA 00 03 00 13 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 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 29 A2 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 DF [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:01]Read from MH i2c: E2 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 03 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 03 00 AF 29 00 90 00 4C [16:39:01]RAPDU: 90 00 [16:39:01]wFMCommunicate OK [16:39:01]wFMCommunicate request_size=34 [16:39:01]MH_SAM_APDU [16:39:01]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 27 7C 00 00 35 04 06 00 76 E1 76 2F A3 35 [16:39:01]Write to MH i2c: E2 25 00 B0 29 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 27 7C 00 00 35 04 06 00 76 E1 76 2F A3 35 00 00 93 [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:01]Read from MH i2c: E2 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 03 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 03 00 B0 29 00 90 00 4D [16:39:01]RAPDU: 90 00 [16:39:01]wFMCommunicate OK [16:39:01]wFMCommunicate request_size=4 [16:39:01]MH_SAM_APDU [16:39:01]CAPDU: 80 0D 03 02 [16:39:01]Write to MH i2c: E2 08 00 B1 29 80 0D 03 02 00 00 00 00 55 [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:01]Read from MH i2c: E2 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 0B 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 0B 00 B1 29 00 AB CF 5A 67 76 45 1B E6 90 00 4D [16:39:01]RAPDU: AB CF 5A 67 76 45 1B E6 90 00 [16:39:01]wFMCommunicate OK [16:39:01]SAM_PROTO_SignData done [16:39:01]FM_MakeSignedData done [16:39:01]CreateOFDProtocolMessage [16:39:01]wFMCommunicate request_size=4 [16:39:01]MH_SAM_APDU [16:39:01]CAPDU: 80 11 00 00 [16:39:01]Write to MH i2c: E2 08 00 B2 29 80 11 00 00 00 00 00 00 55 [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:01]Read from MH i2c: E2 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 17 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: E2 17 00 B2 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B0 [16:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:39:01]wFMCommunicate OK [16:39:01]CreateOFDProtocolMessage done [16:39:01]OFDSenderStorePacket 31783 [16:39:01]StoreOFDPacket docnum=31783 [16:39:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 62 CC 1F 01 B7 42 5A 03 01 00 03 00 13 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 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 29 A2 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 27 7C 00 00 35 04 06 00 76 E1 76 2F A3 35 AB CF 5A 67 76 45 1B E6 [16:39:01]CheckFolder [16:39:01]dirname=/storage/ofd_packets [16:39:01]CheckFolder done [16:39:01]ProducePacketName [16:39:01]name=ofd_packets/00031783 [16:39:01]NVStorageSaveData ofd_packets/00031783 [16:39:01]File name is /storage/ofd_packets/00031783 [16:39:01]Write 325 bytes [16:39:01]NVStorageSaveData done [16:39:01]OFDSenderStorePacket done [16:39:01]KKMCreateOFDPacket done [16:39:01]NVStorageSaveData kkm_last_timestamp [16:39:01]File name is /storage/kkm_last_timestamp [16:39:01]Write 4 bytes [16:39:01]NVStorageSaveData done [16:39:01]ExternCall_PrintAddStr [16:39:01]wPrintStart [16:39:01]Write to MH i2c: 01 00 00 B3 29 DC [16:39:01]OFD Sender: Processing packet 31783 [packets to send 6, broken 5] [16:39:01]ProducePacketName [16:39:01]name=ofd_packets/00031783 [16:39:01]OFD Sender: To server: pG, [16:39:01]CommunicateWithHost lk.salyk.kg:30040 [16:39:01]ConnectInit lk.salyk.kg [16:39:01]Write i2c OK [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: 01 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: 01 07 00 [16:39:01]MH_I2C_Read... [16:39:01]Read from MH i2c: 01 07 00 B3 29 00 00 00 00 00 FF 0F F1 [16:39:01]RasterBufferAndPrint [16:39:01]line Счет N : (3)214364 [16:39:01]line ИНН: 02508201610067 [16:39:01]line Контрольно-Кассовый Чек [16:39:01]line ПРОДАЖА [16:39:01]line Товар: 54491472 [16:39:01]line Напиток Кока-Кола 0,5л [16:39:01]line 1.000 * 75.00 [16:39:01]line = 75.00 [16:39:01]line НДС 12% НСП 1% [16:39:01]line > о реализуемом товаре [16:39:01]line ИТОГО: 75.00 [16:39:01]line НСП 1% : 0.66 [16:39:01]line НДС 12% : 7.96 [16:39:01]line Наличными: 75.00 [16:39:01]line Безнал.: 0.00 [16:39:01]line Место: АЗС № 140 "Партнер Нефть" [16:39:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [16:39:01]line СНО: Общий режим [16:39:01]line Чек 102 16.07.2024 16:39 [16:39:01]line Смена: 371 ФФД: 1.0 [16:39:01]line ЗНМ: 0300000189 [16:39:01]line РНМ: 0000000000098025 [16:39:01]line Версия ККМ: 001 [16:39:01]line ФМ: 0000000000965389 [16:39:01]line ФД: 31783 [16:39:01]line ФПД: 130710722552629 [16:39:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T163905&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31783&fm=130710722552629&tin=02508201610067®Number=0000000000098025&sum=7500 [16:39:02]line 0 [16:39:02]Connected sock=10 [16:39:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 62 CC 1F 01 B7 42 5A 03 01 00 03 00 13 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 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 29 A2 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 27 7C 00 00 35 04 06 00 76 E1 76 2F A3 35 AB CF 5A 67 76 45 1B E6 [16:39:02]written 0, free lines is 4095 [16:39:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 EA B1 47 00 9E 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 27 7C 00 00 F4 03 04 00 36 4E 96 66 B6 04 01 00 00 86 98 61 71 B6 93 17 F5 [16:39:02]CommunicateWithHost err = 0 [16:39:02]CheckOFDResponse [16:39:02]1017 (14) - 77093643461234 [16:39:02]1041 (16) - 0000000000965389 [16:39:02]1040 (4) - 31783 [16:39:02]1012 (4) - 16.07.2024 10:40 [16:39:02]1206 (1) - 0 [16:39:02]OFD Sender: Remove packet 31783 [16:39:02]ProducePacketName [16:39:02]name=ofd_packets/00031783 [16:39:02]NVStorageDeleteData [16:39:02]Write to MH i2c: 01 00 00 DB 29 04 [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: 01 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: 01 07 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: 01 07 00 DB 29 00 00 00 00 00 04 0D 1C [16:39:02]RasterBufferAndPrint [16:39:02]line [16:39:02]line [16:39:02]line [16:39:02]line [16:39:02]line [16:39:02]written 0, free lines is 3339 [16:39:02]MH_Cut [16:39:02]Write to MH i2c: D1 01 00 E2 29 01 DD [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: D1 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: D1 01 00 [16:39:02]MH_I2C_Read... [16:39:02]Read from MH i2c: D1 01 00 E2 29 00 DC [16:39:02]Write to MH i2c: 01 00 00 E3 29 0C [16:39:02]Write i2c OK [16:39:02]MH_I2C_Read... [16:39:02]OFD Sender: No OFD packet to send [16:39:03]*** Cut start [16:39:03]*** Partial cut [16:39:03]*** CUTSNS_PIN = 1 [16:39:03]*** CUTSNS_PIN = 0 [16:39:03]*** Brake cut motor [16:39:03]Read from MH i2c: 01 [16:39:03]MH_I2C_Read... [16:39:03]*** Stop cut motor [16:39:03]*** Cut end [16:39:03]Read from MH i2c: 01 07 00 [16:39:03]MH_I2C_Read... [16:39:03]Read from MH i2c: 01 07 00 E3 29 00 00 00 00 00 FF 0F 21 [16:39:03]process_action close_receipt done [16:39:03]requested_data is exist [16:39:03]produce_requested_data [16:39:03]requested_item fm.sn is exist - process it [16:39:03]wFMCommunicate request_size=4 [16:39:03]MH_SAM_APDU [16:39:03]CAPDU: 80 11 00 00 [16:39:03]Write to MH i2c: E2 08 00 E4 29 80 11 00 00 00 00 00 00 87 [16:39:03]Write i2c OK [16:39:03]MH_I2C_Read... [16:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:03]Read from MH i2c: E2 [16:39:03]MH_I2C_Read... [16:39:03]Read from MH i2c: E2 17 00 [16:39:03]MH_I2C_Read... [16:39:03]Read from MH i2c: E2 17 00 E4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E2 [16:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [16:39:04]wFMCommunicate OK [16:39:04]requested_item fd.num is exist - process it [16:39:04]SAM_PROTO_GetFieldsCounters [16:39:04]wFMCommunicate request_size=4 [16:39:04]MH_SAM_APDU [16:39:04]CAPDU: 80 13 00 00 [16:39:04]Write to MH i2c: E2 08 00 E5 29 80 13 00 00 00 00 00 00 8A [16:39:04]Write i2c OK [16:39:04]MH_I2C_Read... [16:39:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:04]Read from MH i2c: E2 [16:39:04]MH_I2C_Read... [16:39:04]Read from MH i2c: E2 62 00 [16:39:04]MH_I2C_Read... [16:39:04]Read from MH i2c: E2 62 00 E5 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 27 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [16:39:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 27 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:39:04]wFMCommunicate OK [16:39:04]SAM_PROTO_GetFieldsCounters done [16:39:04]requested_item shift.num is exist - process it [16:39:04]requested_item shift.opened is exist - process it [16:39:04]req_shift_opened [16:39:04]FM_GetShiftState [16:39:04]SAM_PROTO_GetShiftState [16:39:04]wFMCommunicate request_size=4 [16:39:04]MH_SAM_APDU [16:39:04]CAPDU: 80 13 01 00 [16:39:04]Write to MH i2c: E2 08 00 E6 29 80 13 01 00 00 00 00 00 8C [16:39:04]Write i2c OK [16:39:04]MH_I2C_Read... [16:39:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:04]Read from MH i2c: E2 [16:39:04]MH_I2C_Read... [16:39:04]Read from MH i2c: E2 0E 00 [16:39:04]MH_I2C_Read... [16:39:04]Read from MH i2c: E2 0E 00 E6 29 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 DB [16:39:04]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [16:39:04]wFMCommunicate OK [16:39:04]SAM_PROTO_GetShiftState done [16:39:04]FM_GetShiftState done [16:39:04]req_shift_opened done [16:39:04]requested_item shift.open_date is exist - process it [16:39:04]req_shift_open_date [16:39:04]req_shift_open_date done [16:39:04]produce_requested_data done [16:39:04]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31783,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [16:39:04]process_action_free close_receipt [16:39:04]json_value_free [16:39:04]json_value_free done [16:39:04]process_json_proto returns [16:39:04]Send response to host [16:39:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31783,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [16:39:04]free response buf [16:39:04]execute_script done [16:39:04]execute_script returns [16:39:04]free content buf [16:39:04]Sock 9.Close socket [16:39:04]Sock 9.Thread stoped [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:52]OFD Sender: No OFD packet to send [16:39:57]OFD Sender: No OFD packet to send [16:40:02]OFD Sender: No OFD packet to send [16:40:07]OFD Sender: No OFD packet to send [16:40:12]OFD Sender: No OFD packet to send [16:40:17]OFD Sender: No OFD packet to send [16:40:22]OFD Sender: No OFD packet to send [16:40:27]OFD Sender: No OFD packet to send [16:40:32]OFD Sender: No OFD packet to send [16:40:37]OFD Sender: No OFD packet to send [16:40:42]OFD Sender: No OFD packet to send [16:40:47]OFD Sender: No OFD packet to send [16:40:52]OFD Sender: No OFD packet to send [16:40:57]OFD Sender: No OFD packet to send [16:41:02]OFD Sender: No OFD packet to send [16:41:07]OFD Sender: No OFD packet to send [16:41:12]OFD Sender: No OFD packet to send [16:41:17]OFD Sender: No OFD packet to send [16:41:22]OFD Sender: No OFD packet to send [16:41:27]OFD Sender: No OFD packet to send [16:41:32]OFD Sender: No OFD packet to send [16:41:37]OFD Sender: No OFD packet to send [16:41:42]OFD Sender: No OFD packet to send [16:41:47]OFD Sender: No OFD packet to send [16:41:52]OFD Sender: No OFD packet to send [16:41:57]OFD Sender: No OFD packet to send [16:42:02]OFD Sender: No OFD packet to send [16:42:07]OFD Sender: No OFD packet to send [16:42:12]OFD Sender: No OFD packet to send [16:42:17]OFD Sender: No OFD packet to send [16:42:22]OFD Sender: No OFD packet to send [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:03]OFD Sender: No OFD packet to send [16:43:08]OFD Sender: No OFD packet to send [16:43:13]OFD Sender: No OFD packet to send [16:43:18]OFD Sender: No OFD packet to send [16:43:23]OFD Sender: No OFD packet to send [16:43:28]OFD Sender: No OFD packet to send [16:43:33]OFD Sender: No OFD packet to send [16:43:38]OFD Sender: No OFD packet to send [16:43:43]OFD Sender: No OFD packet to send [16:43:48]OFD Sender: No OFD packet to send [16:43:53]OFD Sender: No OFD packet to send [16:43:58]OFD Sender: No OFD packet to send [16:44:03]OFD Sender: No OFD packet to send [16:44:08]OFD Sender: No OFD packet to send [16:44:13]OFD Sender: No OFD packet to send [16:44:18]OFD Sender: No OFD packet to send [16:44:23]OFD Sender: No OFD packet to send [16:44:28]OFD Sender: No OFD packet to send [16:44:33]OFD Sender: No OFD packet to send [16:44:38]OFD Sender: No OFD packet to send [16:44:43]OFD Sender: No OFD packet to send [16:44:48]OFD Sender: No OFD packet to send [16:44:53]OFD Sender: No OFD packet to send [16:44:58]OFD Sender: No OFD packet to send [16:45:03]OFD Sender: No OFD packet to send [16:45:08]OFD Sender: No OFD packet to send [16:45:13]OFD Sender: No OFD packet to send [16:45:18]OFD Sender: No OFD packet to send [16:45:23]OFD Sender: No OFD packet to send [16:45:28]OFD Sender: No OFD packet to send [16:45:33]OFD Sender: No OFD packet to send [16:45:38]OFD Sender: No OFD packet to send [16:45:43]OFD Sender: No OFD packet to send [16:45:48]OFD Sender: No OFD packet to send [16:45:53]OFD Sender: No OFD packet to send [16:45:58]OFD Sender: No OFD packet to send [16:46:03]OFD Sender: No OFD packet to send [16:46:08]OFD Sender: No OFD packet to send [16:46:13]OFD Sender: No OFD packet to send [16:46:18]OFD Sender: No OFD packet to send [16:46:23]OFD Sender: No OFD packet to send [16:46:28]OFD Sender: No OFD packet to send [16:46:33]OFD Sender: No OFD packet to send [16:46:38]OFD Sender: No OFD packet to send [16:46:43]OFD Sender: No OFD packet to send [16:46:48]OFD Sender: No OFD packet to send [16:46:53]OFD Sender: No OFD packet to send [16:46:58]OFD Sender: No OFD packet to send [16:47:03]OFD Sender: No OFD packet to send [16:47:08]OFD Sender: No OFD packet to send [16:47:13]OFD Sender: No OFD packet to send [16:47:18]OFD Sender: No OFD packet to send [16:47:23]OFD Sender: No OFD packet to send [16:47:28]OFD Sender: No OFD packet to send [16:47:33]OFD Sender: No OFD packet to send [16:47:38]OFD Sender: No OFD packet to send [16:47:43]OFD Sender: No OFD packet to send [16:47:48]OFD Sender: No OFD packet to send [16:47:53]OFD Sender: No OFD packet to send [16:47:58]OFD Sender: No OFD packet to send [16:48:03]OFD Sender: No OFD packet to send [16:48:08]OFD Sender: No OFD packet to send [16:48:13]OFD Sender: No OFD packet to send [16:48:18]OFD Sender: No OFD packet to send [16:48:23]OFD Sender: No OFD packet to send [16:48:28]OFD Sender: No OFD packet to send [16:48:33]OFD Sender: No OFD packet to send [16:48:38]OFD Sender: No OFD packet to send [16:48:43]OFD Sender: No OFD packet to send [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:58]OFD Sender: No OFD packet to send [16:51:03]OFD Sender: No OFD packet to send [16:51:08]OFD Sender: No OFD packet to send [16:51:13]OFD Sender: No OFD packet to send [16:51:18]OFD Sender: No OFD packet to send [16:51:23]OFD Sender: No OFD packet to send [16:51:28]OFD Sender: No OFD packet to send [16:51:33]OFD Sender: No OFD packet to send [16:51:38]OFD Sender: No OFD packet to send [16:51:43]OFD Sender: No OFD packet to send [16:51:48]OFD Sender: No OFD packet to send [16:51:53]OFD Sender: No OFD packet to send [16:51:58]OFD Sender: No OFD packet to send [16:52:03]OFD Sender: No OFD packet to send [16:52:08]OFD Sender: No OFD packet to send [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:13]OFD Sender: No OFD packet to send [16:55:18]OFD Sender: No OFD packet to send [16:55:23]OFD Sender: No OFD packet to send [16:55:28]OFD Sender: No OFD packet to send [16:55:33]OFD Sender: No OFD packet to send [16:55:38]OFD Sender: No OFD packet to send [16:55:43]OFD Sender: No OFD packet to send [16:55:48]OFD Sender: No OFD packet to send [16:55:53]OFD Sender: No OFD packet to send [16:55:58]OFD Sender: No OFD packet to send [16:56:03]OFD Sender: No OFD packet to send [16:56:08]OFD Sender: No OFD packet to send [16:56:13]OFD Sender: No OFD packet to send [16:56:18]OFD Sender: No OFD packet to send [16:56:23]OFD Sender: No OFD packet to send [16:56:28]OFD Sender: No OFD packet to send [16:56:33]OFD Sender: No OFD packet to send [16:56:38]OFD Sender: No OFD packet to send [16:56:43]OFD Sender: No OFD packet to send [16:56:48]OFD Sender: No OFD packet to send [16:56:53]OFD Sender: No OFD packet to send [16:56:58]OFD Sender: No OFD packet to send [16:57:03]OFD Sender: No OFD packet to send [16:57:08]OFD Sender: No OFD packet to send [16:57:13]OFD Sender: No OFD packet to send [16:57:18]OFD Sender: No OFD packet to send [16:57:23]OFD Sender: No OFD packet to send [16:57:28]OFD Sender: No OFD packet to send [16:57:33]OFD Sender: No OFD packet to send [16:57:38]OFD Sender: No OFD packet to send [16:57:43]OFD Sender: No OFD packet to send [16:57:48]OFD Sender: No OFD packet to send [16:57:53]OFD Sender: No OFD packet to send [16:57:58]OFD Sender: No OFD packet to send [16:58:03]OFD Sender: No OFD packet to send [16:58:08]OFD Sender: No OFD packet to send [16:58:13]OFD Sender: No OFD packet to send [16:58:18]OFD Sender: No OFD packet to send [16:58:23]OFD Sender: No OFD packet to send [16:58:28]OFD Sender: No OFD packet to send [16:58:33]OFD Sender: No OFD packet to send [16:58:38]OFD Sender: No OFD packet to send [16:58:43]OFD Sender: No OFD packet to send [16:58:48]OFD Sender: No OFD packet to send [16:58:53]OFD Sender: No OFD packet to send [16:58:58]OFD Sender: No OFD packet to send [16:59:03]OFD Sender: No OFD packet to send [16:59:08]OFD Sender: No OFD packet to send [16:59:13]OFD Sender: No OFD packet to send [16:59:18]OFD Sender: No OFD packet to send [16:59:23]OFD Sender: No OFD packet to send [16:59:28]OFD Sender: No OFD packet to send [16:59:33]OFD Sender: No OFD packet to send [16:59:38]OFD Sender: No OFD packet to send [16:59:43]OFD Sender: No OFD packet to send [16:59:48]OFD Sender: No OFD packet to send [16:59:53]OFD Sender: No OFD packet to send [16:59:58]OFD Sender: No OFD packet to send [17:00:03]OFD Sender: No OFD packet to send [17:00:08]OFD Sender: No OFD packet to send [17:00:13]OFD Sender: No OFD packet to send [17:00:14]accept exits with 7 [17:00:14]New connection [17:00:14]New thread 3066821988 created [17:00:14]Thread 3066965348 joined [17:00:14]Waiting for new connection... [17:00:14] Sock 7.Parse request [17:00:14]Sock 7.Check first char [17:00:14]Sock 7.First char is OK [17:00:14]request: POST /json_proto HTTP/1.0 [17:00:14]Method: POST [17:00:14]URL: /json_proto [17:00:14]Method is POST - this is cgi request [17:00:14]url: /json_proto [17:00:14]query_string will be loaded in cgi processing [17:00:14]execute_cgi json_proto POST (null) [17:00:14]execute_cgi path=json_proto method=POST [17:00:14]POST find Content-Length [17:00:14]Host: 172.17.39.68:8080 [17:00:14]Content-Length: 628 [17:00:14]Content-Type: application/json [17:00:14] [17:00:14]POST finish read [17:00:14]Found Content-Length = 628 [17:00:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214365", "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:00:14]execute_script... [17:00:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214365", "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:00:14]POST & json_proto [17:00:14]process_json_proto [17:00:14]json parsed OK: [17:00:14]protocol is kg_v1.0 [17:00:14]action value=close_receipt [17:00:14]process_action close_receipt [17:00:14]cmd_close_receipt [17:00:14]MH_GetDate [17:00:14]Write to MH i2c: F0 00 00 E7 29 FF [17:00:14]Write i2c OK [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: F0 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: F0 09 00 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: F0 09 00 E7 29 00 23 A7 96 66 D6 48 95 66 E7 [17:00:14]GetLastDocTimeStamp 1721147945 [17:00:14]current date 1721149219 [17:00:14]FM_GetShiftState [17:00:14]SAM_PROTO_GetShiftState [17:00:14]wFMCommunicate request_size=4 [17:00:14]MH_SAM_APDU [17:00:14]CAPDU: 80 13 01 00 [17:00:14]Write to MH i2c: E2 08 00 E8 29 80 13 01 00 00 00 00 00 8E [17:00:14]Write i2c OK [17:00:14]MH_I2C_Read... [17:00:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:14]Read from MH i2c: E2 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 0E 00 [17:00:14]MH_I2C_Read... [17:00:14]Read from MH i2c: E2 0E 00 E8 29 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 DD [17:00:14]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:00:14]wFMCommunicate OK [17:00:14]SAM_PROTO_GetShiftState done [17:00:14]FM_GetShiftState done [17:00:14]opened in 1721088399 [17:00:14]opened+sec_in_day 1721174799 [17:00:14]quantity*price = 13000 [17:00:14]sum+1 = 13001 [17:00:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 103 16.07.2024 17:00 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31784 ФПД: 14272213103163 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T170019&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31784&fm=14272213103163&tin=02508201610067®Number=0000000000098025&sum=13000 0 [17:00:15]StoreToDocumentArchive [17:00:15]shift 371 fd 31784 [17:00:15]save to /storage/0371/doc_00031784 [17:00:15]save last doc name /storage/0371/doc_00031784 to /storage/kkm_last_doc_name [17:00:15]save OK [17:00:15]Clear old archive folders... [17:00:15]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:00:15]tlvbuf is 014A8680 [17:00:15]SAM_PROTO_ClearQueue [17:00:15]wFMCommunicate request_size=4 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 09 00 00 [17:00:15]Write to MH i2c: E2 08 00 F5 29 80 09 00 00 00 00 00 00 90 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 F5 29 00 90 00 92 [17:00:15]RAPDU: 90 00 [17:00:15]wFMCommunicate OK [17:00:15]SAM_PROTO_ClearQueue done [17:00:15]KKMCreateOFDPacket [17:00:15]OFDProtocolAddRootSTLVToBuf [17:00:15]FM_MakeSignedData [17:00:15]FM_MakeSignedData [17:00:15]SAM_PROTO_SignData [17:00:15]wFMCommunicate request_size=4 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 0D 01 02 [17:00:15]Write to MH i2c: E2 08 00 F6 29 80 0D 01 02 00 00 00 00 98 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 F6 29 00 90 00 93 [17:00:15]RAPDU: 90 00 [17:00:15]wFMCommunicate OK [17:00:15]wFMCommunicate request_size=255 [17:00:15]MH_SAM_APDU [17:00:15]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 67 00 00 00 F4 03 04 00 23 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [17:00:15]Write to MH i2c: E2 02 01 F7 29 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 67 00 00 00 F4 03 04 00 23 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 53 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 F7 29 00 90 00 94 [17:00:15]RAPDU: 90 00 [17:00:15]wFMCommunicate OK [17:00:15]wFMCommunicate request_size=35 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 28 7C 00 00 35 04 06 00 0C FB 02 31 32 3B [17:00:15]Write to MH i2c: E2 26 00 F8 29 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 28 7C 00 00 35 04 06 00 0C FB 02 31 32 3B 00 00 E1 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 03 00 F8 29 00 90 00 95 [17:00:15]RAPDU: 90 00 [17:00:15]wFMCommunicate OK [17:00:15]wFMCommunicate request_size=4 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 0D 03 02 [17:00:15]Write to MH i2c: E2 08 00 F9 29 80 0D 03 02 00 00 00 00 9D [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 0B 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 0B 00 F9 29 00 DA 69 69 FC 54 35 01 04 90 00 D4 [17:00:15]RAPDU: DA 69 69 FC 54 35 01 04 90 00 [17:00:15]wFMCommunicate OK [17:00:15]SAM_PROTO_SignData done [17:00:15]FM_MakeSignedData done [17:00:15]CreateOFDProtocolMessage [17:00:15]wFMCommunicate request_size=4 [17:00:15]MH_SAM_APDU [17:00:15]CAPDU: 80 11 00 00 [17:00:15]Write to MH i2c: E2 08 00 FA 29 80 11 00 00 00 00 00 00 9D [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:15]Read from MH i2c: E2 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 17 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: E2 17 00 FA 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F8 [17:00:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:00:15]wFMCommunicate OK [17:00:15]CreateOFDProtocolMessage done [17:00:15]OFDSenderStorePacket 31784 [17:00:15]StoreOFDPacket docnum=31784 [17:00:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 AE ED 20 01 AE 0F 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 67 00 00 00 F4 03 04 00 23 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 28 7C 00 00 35 04 06 00 0C FB 02 31 32 3B DA 69 69 FC 54 35 01 04 [17:00:15]CheckFolder [17:00:15]dirname=/storage/ofd_packets [17:00:15]CheckFolder done [17:00:15]ProducePacketName [17:00:15]name=ofd_packets/00031784 [17:00:15]NVStorageSaveData ofd_packets/00031784 [17:00:15]File name is /storage/ofd_packets/00031784 [17:00:15]Write 326 bytes [17:00:15]NVStorageSaveData done [17:00:15]OFDSenderStorePacket done [17:00:15]KKMCreateOFDPacket done [17:00:15]NVStorageSaveData kkm_last_timestamp [17:00:15]File name is /storage/kkm_last_timestamp [17:00:15]Write 4 bytes [17:00:15]NVStorageSaveData done [17:00:15]ExternCall_PrintAddStr [17:00:15]wPrintStart [17:00:15]Write to MH i2c: 01 00 00 FB 29 24 [17:00:15]Write i2c OK [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: 01 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: 01 07 00 [17:00:15]MH_I2C_Read... [17:00:15]Read from MH i2c: 01 07 00 FB 29 00 00 00 00 00 FF 0F 39 [17:00:15]RasterBufferAndPrint [17:00:15]line Счет N : (3)214365 [17:00:15]line ИНН: 02508201610067 [17:00:15]line Контрольно-Кассовый Чек [17:00:15]line ПРОДАЖА [17:00:15]line Товар: 2000036230011 [17:00:15]line Кофе Латте XL(GABB TRADE) [17:00:15]line 1.000 * 130.00 [17:00:15]line = 130.00 [17:00:15]line НДС 12% НСП 1% [17:00:15]line > о реализуемом товаре [17:00:15]line ИТОГО: 130.00 [17:00:15]line НСП 1% : 1.15 [17:00:15]line НДС 12% : 13.80 [17:00:15]line Наличными: 130.00 [17:00:15]line Безнал.: 0.00 [17:00:15]line Место: АЗС № 140 "Партнер Нефть" [17:00:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:00:15]line СНО: Общий режим [17:00:15]line Чек 103 16.07.2024 17:00 [17:00:15]line Смена: 371 ФФД: 1.0 [17:00:15]line ЗНМ: 0300000189 [17:00:15]line РНМ: 0000000000098025 [17:00:15]line Версия ККМ: 001 [17:00:15]line ФМ: 0000000000965389 [17:00:15]line ФД: 31784 [17:00:15]line ФПД: 14272213103163 [17:00:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T170019&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31784&fm=14272213103163&tin=02508201610067®Number=0000000000098025&sum=13000 [17:00:15]line 0 [17:00:15]OFD Sender: Processing packet 31784 [packets to send 6, broken 5] [17:00:15]ProducePacketName [17:00:15]name=ofd_packets/00031784 [17:00:15]OFD Sender: To server: pG, [17:00:15]CommunicateWithHost lk.salyk.kg:30040 [17:00:15]ConnectInit lk.salyk.kg [17:00:15]written 0, free lines is 4095 [17:00:16]Connected sock=10 [17:00:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 AE ED 20 01 AE 0F 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 67 00 00 00 F4 03 04 00 23 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 28 7C 00 00 35 04 06 00 0C FB 02 31 32 3B DA 69 69 FC 54 35 01 04 [17:00:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 BA DD 47 00 DB 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 35 33 38 39 10 04 04 00 28 7C 00 00 F4 03 04 00 30 53 96 66 B6 04 01 00 00 A9 AE 1C DD 0E 75 1C 2C [17:00:16]CommunicateWithHost err = 0 [17:00:16]CheckOFDResponse [17:00:16]1017 (14) - 77093643461234 [17:00:16]1041 (16) - 0000000000965389 [17:00:16]1040 (4) - 31784 [17:00:16]1012 (4) - 16.07.2024 11:02 [17:00:16]1206 (1) - 0 [17:00:16]OFD Sender: Remove packet 31784 [17:00:16]ProducePacketName [17:00:16]name=ofd_packets/00031784 [17:00:16]NVStorageDeleteData [17:00:16]Write to MH i2c: 01 00 00 23 2A 4D [17:00:16]Write i2c OK [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: 01 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: 01 07 00 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: 01 07 00 23 2A 00 00 00 00 00 12 0D 73 [17:00:16]RasterBufferAndPrint [17:00:16]line [17:00:16]line [17:00:16]line [17:00:16]line [17:00:16]line [17:00:16]written 0, free lines is 3353 [17:00:16]MH_Cut [17:00:16]Write to MH i2c: D1 01 00 2A 2A 01 26 [17:00:16]Write i2c OK [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: D1 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: D1 01 00 [17:00:16]MH_I2C_Read... [17:00:16]Read from MH i2c: D1 01 00 2A 2A 00 25 [17:00:16]Write to MH i2c: 01 00 00 2B 2A 55 [17:00:16]Write i2c OK [17:00:16]MH_I2C_Read... [17:00:16]OFD Sender: No OFD packet to send [17:00:17]*** Cut start [17:00:17]*** Partial cut [17:00:17]*** CUTSNS_PIN = 1 [17:00:17]*** CUTSNS_PIN = 0 [17:00:17]*** Brake cut motor [17:00:17]Read from MH i2c: 01 [17:00:17]MH_I2C_Read... [17:00:17]*** Stop cut motor [17:00:17]*** Cut end [17:00:17]Read from MH i2c: 01 07 00 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: 01 07 00 2B 2A 00 00 00 00 00 FF 0F 6A [17:00:17]process_action close_receipt done [17:00:17]requested_data is exist [17:00:17]produce_requested_data [17:00:17]requested_item fm.sn is exist - process it [17:00:17]wFMCommunicate request_size=4 [17:00:17]MH_SAM_APDU [17:00:17]CAPDU: 80 11 00 00 [17:00:17]Write to MH i2c: E2 08 00 2C 2A 80 11 00 00 00 00 00 00 D0 [17:00:17]Write i2c OK [17:00:17]MH_I2C_Read... [17:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:17]Read from MH i2c: E2 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: E2 17 00 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: E2 17 00 2C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2B [17:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:00:17]wFMCommunicate OK [17:00:17]requested_item fd.num is exist - process it [17:00:17]SAM_PROTO_GetFieldsCounters [17:00:17]wFMCommunicate request_size=4 [17:00:17]MH_SAM_APDU [17:00:17]CAPDU: 80 13 00 00 [17:00:17]Write to MH i2c: E2 08 00 2D 2A 80 13 00 00 00 00 00 00 D3 [17:00:17]Write i2c OK [17:00:17]MH_I2C_Read... [17:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:17]Read from MH i2c: E2 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: E2 62 00 [17:00:17]MH_I2C_Read... [17:00:17]Read from MH i2c: E2 62 00 2D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 28 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [17:00:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 28 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:18]wFMCommunicate OK [17:00:18]SAM_PROTO_GetFieldsCounters done [17:00:18]requested_item shift.num is exist - process it [17:00:18]requested_item shift.opened is exist - process it [17:00:18]req_shift_opened [17:00:18]FM_GetShiftState [17:00:18]SAM_PROTO_GetShiftState [17:00:18]wFMCommunicate request_size=4 [17:00:18]MH_SAM_APDU [17:00:18]CAPDU: 80 13 01 00 [17:00:18]Write to MH i2c: E2 08 00 2E 2A 80 13 01 00 00 00 00 00 D5 [17:00:18]Write i2c OK [17:00:18]MH_I2C_Read... [17:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:18]Read from MH i2c: E2 [17:00:18]MH_I2C_Read... [17:00:18]Read from MH i2c: E2 0E 00 [17:00:18]MH_I2C_Read... [17:00:18]Read from MH i2c: E2 0E 00 2E 2A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 24 [17:00:18]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:00:18]wFMCommunicate OK [17:00:18]SAM_PROTO_GetShiftState done [17:00:18]FM_GetShiftState done [17:00:18]req_shift_opened done [17:00:18]requested_item shift.open_date is exist - process it [17:00:18]req_shift_open_date [17:00:18]req_shift_open_date done [17:00:18]produce_requested_data done [17:00:18]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31784,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [17:00:18]process_action_free close_receipt [17:00:18]json_value_free [17:00:18]json_value_free done [17:00:18]process_json_proto returns [17:00:18]Send response to host [17:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31784,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [17:00:18]free response buf [17:00:18]execute_script done [17:00:18]execute_script returns [17:00:18]free content buf [17:00:18]Sock 7.Close socket [17:00:18]Sock 7.Thread stoped [17:00:20]accept exits with 9 [17:00:20]New connection [17:00:20]New thread 3066965348 created [17:00:20]Thread 3066821988 joined [17:00:20]Waiting for new connection... [17:00:20] Sock 9.Parse request [17:00:20]Sock 9.Check first char [17:00:20]Sock 9.First char is OK [17:00:20]request: POST /json_proto HTTP/1.0 [17:00:20]Method: POST [17:00:20]URL: /json_proto [17:00:20]Method is POST - this is cgi request [17:00:20]url: /json_proto [17:00:20]query_string will be loaded in cgi processing [17:00:20]execute_cgi json_proto POST (null) [17:00:20]execute_cgi path=json_proto method=POST [17:00:20]POST find Content-Length [17:00:20]Host: 172.17.39.68:8080 [17:00:20]Content-Length: 644 [17:00:20]Content-Type: application/json [17:00:20] [17:00:20]POST finish read [17:00:20]Found Content-Length = 644 [17:00:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214366", "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" ] } } [17:00:20]execute_script... [17:00: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)214366", "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" ] } } [17:00:20]POST & json_proto [17:00:20]process_json_proto [17:00:20]json parsed OK: [17:00:20]protocol is kg_v1.0 [17:00:20]action value=close_receipt [17:00:20]process_action close_receipt [17:00:20]cmd_close_receipt [17:00:20]MH_GetDate [17:00:20]Write to MH i2c: F0 00 00 2F 2A 48 [17:00:20]Write i2c OK [17:00:20]MH_I2C_Read... [17:00:20]Read from MH i2c: F0 [17:00:20]MH_I2C_Read... [17:00:20]Read from MH i2c: F0 09 00 [17:00:20]MH_I2C_Read... [17:00:20]Read from MH i2c: F0 09 00 2F 2A 00 29 A7 96 66 D6 48 95 66 36 [17:00:20]GetLastDocTimeStamp 1721149219 [17:00:20]current date 1721149225 [17:00:20]FM_GetShiftState [17:00:20]SAM_PROTO_GetShiftState [17:00:20]wFMCommunicate request_size=4 [17:00:20]MH_SAM_APDU [17:00:20]CAPDU: 80 13 01 00 [17:00:20]Write to MH i2c: E2 08 00 30 2A 80 13 01 00 00 00 00 00 D7 [17:00:20]Write i2c OK [17:00:20]MH_I2C_Read... [17:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:20]Read from MH i2c: E2 [17:00:20]MH_I2C_Read... [17:00:20]Read from MH i2c: E2 0E 00 [17:00:20]MH_I2C_Read... [17:00:20]Read from MH i2c: E2 0E 00 30 2A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 26 [17:00:20]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:00:20]wFMCommunicate OK [17:00:20]SAM_PROTO_GetShiftState done [17:00:20]FM_GetShiftState done [17:00:20]opened in 1721088399 [17:00:20]opened+sec_in_day 1721174799 [17:00:20]quantity*price = 11500 [17:00:20]sum+1 = 11501 [17:00:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 104 16.07.2024 17:00 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31785 ФПД: 88278247488414 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T170025&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31785&fm=88278247488414&tin=02508201610067®Number=0000000000098025&sum=11500 0 [17:00:21]StoreToDocumentArchive [17:00:21]shift 371 fd 31785 [17:00:21]save to /storage/0371/doc_00031785 [17:00:21]save last doc name /storage/0371/doc_00031785 to /storage/kkm_last_doc_name [17:00:21]save OK [17:00:21]Clear old archive folders... [17:00:21]ProcessDocumentItem done err = 0, tmpTLVsize=280 [17:00:21]tlvbuf is 01503DD0 [17:00:21]SAM_PROTO_ClearQueue [17:00:21]wFMCommunicate request_size=4 [17:00:21]MH_SAM_APDU [17:00:21]CAPDU: 80 09 00 00 [17:00:21]Write to MH i2c: E2 08 00 3D 2A 80 09 00 00 00 00 00 00 D9 [17:00:21]Write i2c OK [17:00:21]MH_I2C_Read... [17:00:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:21]Read from MH i2c: E2 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 03 00 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 03 00 3D 2A 00 90 00 DB [17:00:21]RAPDU: 90 00 [17:00:21]wFMCommunicate OK [17:00:21]SAM_PROTO_ClearQueue done [17:00:21]KKMCreateOFDPacket [17:00:21]OFDProtocolAddRootSTLVToBuf [17:00:21]FM_MakeSignedData [17:00:21]FM_MakeSignedData [17:00:21]SAM_PROTO_SignData [17:00:21]wFMCommunicate request_size=4 [17:00:21]MH_SAM_APDU [17:00:21]CAPDU: 80 0D 01 02 [17:00:21]Write to MH i2c: E2 08 00 3E 2A 80 0D 01 02 00 00 00 00 E1 [17:00:21]Write i2c OK [17:00:21]MH_I2C_Read... [17:00:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:21]Read from MH i2c: E2 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 03 00 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 03 00 3E 2A 00 90 00 DC [17:00:21]RAPDU: 90 00 [17:00:21]wFMCommunicate OK [17:00:21]wFMCommunicate request_size=255 [17:00:21]MH_SAM_APDU [17:00:21]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 68 00 00 00 F4 03 04 00 29 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [17:00:21]Write to MH i2c: E2 02 01 3F 2A 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 68 00 00 00 F4 03 04 00 29 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 C8 [17:00:21]Write i2c OK [17:00:21]MH_I2C_Read... [17:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:21]Read from MH i2c: E2 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 03 00 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 03 00 3F 2A 00 90 00 DD [17:00:21]RAPDU: 90 00 [17:00:21]wFMCommunicate OK [17:00:21]wFMCommunicate request_size=39 [17:00:21]MH_SAM_APDU [17:00:21]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 29 7C 00 00 35 04 06 00 50 49 E1 95 3B 9E [17:00:21]Write to MH i2c: E2 2A 00 40 2A 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 29 7C 00 00 35 04 06 00 50 49 E1 95 3B 9E 00 00 34 [17:00:21]Write i2c OK [17:00:21]MH_I2C_Read... [17:00:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:21]Read from MH i2c: E2 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 03 00 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 03 00 40 2A 00 90 00 DE [17:00:21]RAPDU: 90 00 [17:00:21]wFMCommunicate OK [17:00:21]wFMCommunicate request_size=4 [17:00:21]MH_SAM_APDU [17:00:21]CAPDU: 80 0D 03 02 [17:00:21]Write to MH i2c: E2 08 00 41 2A 80 0D 03 02 00 00 00 00 E6 [17:00:21]Write i2c OK [17:00:21]MH_I2C_Read... [17:00:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:21]Read from MH i2c: E2 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 0B 00 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 0B 00 41 2A 00 D1 B5 AF 20 44 44 65 93 90 00 BC [17:00:21]RAPDU: D1 B5 AF 20 44 44 65 93 90 00 [17:00:21]wFMCommunicate OK [17:00:21]SAM_PROTO_SignData done [17:00:21]FM_MakeSignedData done [17:00:21]CreateOFDProtocolMessage [17:00:21]wFMCommunicate request_size=4 [17:00:21]MH_SAM_APDU [17:00:21]CAPDU: 80 11 00 00 [17:00:21]Write to MH i2c: E2 08 00 42 2A 80 11 00 00 00 00 00 00 E6 [17:00:21]Write i2c OK [17:00:21]MH_I2C_Read... [17:00:21]OFD Sender: No OFD packet to send [17:00:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:21]Read from MH i2c: E2 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 17 00 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: E2 17 00 42 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 41 [17:00:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:00:21]wFMCommunicate OK [17:00:21]CreateOFDProtocolMessage done [17:00:21]OFDSenderStorePacket 31785 [17:00:21]StoreOFDPacket docnum=31785 [17:00:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 EF C2 24 01 C9 4E 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 68 00 00 00 F4 03 04 00 29 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 29 7C 00 00 35 04 06 00 50 49 E1 95 3B 9E D1 B5 AF 20 44 44 65 93 [17:00:21]CheckFolder [17:00:21]dirname=/storage/ofd_packets [17:00:21]CheckFolder done [17:00:21]ProducePacketName [17:00:21]name=ofd_packets/00031785 [17:00:21]NVStorageSaveData ofd_packets/00031785 [17:00:21]File name is /storage/ofd_packets/00031785 [17:00:21]Write 330 bytes [17:00:21]NVStorageSaveData done [17:00:21]OFDSenderStorePacket done [17:00:21]KKMCreateOFDPacket done [17:00:21]NVStorageSaveData kkm_last_timestamp [17:00:21]File name is /storage/kkm_last_timestamp [17:00:21]Write 4 bytes [17:00:21]NVStorageSaveData done [17:00:21]ExternCall_PrintAddStr [17:00:21]wPrintStart [17:00:21]Write to MH i2c: 01 00 00 43 2A 6D [17:00:21]Write i2c OK [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: 01 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: 01 07 00 [17:00:21]MH_I2C_Read... [17:00:21]Read from MH i2c: 01 07 00 43 2A 00 00 00 00 00 FF 0F 82 [17:00:21]RasterBufferAndPrint [17:00:21]line Счет N : (3)214366 [17:00:21]line ИНН: 02508201610067 [17:00:21]line Контрольно-Кассовый Чек [17:00:21]line ПРОДАЖА [17:00:21]line Товар: 2000036210013 [17:00:21]line Кофе Капучино (GABB TRADE) [17:00:21]line 1.000 * 115.00 [17:00:21]line = 115.00 [17:00:21]line НДС 12% НСП 1% [17:00:21]line > о реализуемом товаре [17:00:21]line ИТОГО: 115.00 [17:00:21]line НСП 1% : 1.02 [17:00:21]line НДС 12% : 12.21 [17:00:21]line Наличными: 115.00 [17:00:21]line Безнал.: 0.00 [17:00:21]line Место: АЗС № 140 "Партнер Нефть" [17:00:21]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:00:21]line СНО: Общий режим [17:00:21]line Чек 104 16.07.2024 17:00 [17:00:21]line Смена: 371 ФФД: 1.0 [17:00:21]line ЗНМ: 0300000189 [17:00:21]line РНМ: 0000000000098025 [17:00:21]line Версия ККМ: 001 [17:00:21]line ФМ: 0000000000965389 [17:00:21]line ФД: 31785 [17:00:21]line ФПД: 88278247488414 [17:00:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T170025&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31785&fm=88278247488414&tin=02508201610067®Number=0000000000098025&sum=11500 [17:00:21]line 0 [17:00:21]written 0, free lines is 4095 [17:00:21]OFD Sender: Processing packet 31785 [packets to send 6, broken 5] [17:00:21]ProducePacketName [17:00:21]name=ofd_packets/00031785 [17:00:21]OFD Sender: To server: pG, [17:00:21]CommunicateWithHost lk.salyk.kg:30040 [17:00:21]ConnectInit lk.salyk.kg [17:00:22]Connected sock=7 [17:00:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 EF C2 24 01 C9 4E 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 68 00 00 00 F4 03 04 00 29 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 29 7C 00 00 35 04 06 00 50 49 E1 95 3B 9E D1 B5 AF 20 44 44 65 93 [17:00:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B9 A6 47 00 46 28 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 29 7C 00 00 F4 03 04 00 36 53 96 66 B6 04 01 00 00 FC DA 41 AB D5 97 08 D5 [17:00:22]CommunicateWithHost err = 0 [17:00:22]CheckOFDResponse [17:00:22]1017 (14) - 77093643461234 [17:00:22]1041 (16) - 0000000000965389 [17:00:22]1040 (4) - 31785 [17:00:22]1012 (4) - 16.07.2024 11:02 [17:00:22]1206 (1) - 0 [17:00:22]OFD Sender: Remove packet 31785 [17:00:22]ProducePacketName [17:00:22]name=ofd_packets/00031785 [17:00:22]NVStorageDeleteData [17:00:22]Write to MH i2c: 01 00 00 6B 2A 95 [17:00:22]Write i2c OK [17:00:22]MH_I2C_Read... [17:00:22]Read from MH i2c: 01 [17:00:22]MH_I2C_Read... [17:00:22]Read from MH i2c: 01 07 00 [17:00:22]MH_I2C_Read... [17:00:22]Read from MH i2c: 01 07 00 6B 2A 00 00 00 00 00 1B 0D C4 [17:00:22]RasterBufferAndPrint [17:00:22]line [17:00:22]line [17:00:22]line [17:00:22]line [17:00:22]line [17:00:22]written 0, free lines is 3367 [17:00:22]MH_Cut [17:00:22]Write to MH i2c: D1 01 00 72 2A 01 6E [17:00:22]Write i2c OK [17:00:22]MH_I2C_Read... [17:00:22]Read from MH i2c: D1 [17:00:22]MH_I2C_Read... [17:00:22]Read from MH i2c: D1 01 00 [17:00:22]MH_I2C_Read... [17:00:22]Read from MH i2c: D1 01 00 72 2A 00 6D [17:00:22]Write to MH i2c: 01 00 00 73 2A 9D [17:00:22]Write i2c OK [17:00:22]MH_I2C_Read... [17:00:22]OFD Sender: No OFD packet to send [17:00:22]*** Cut start [17:00:22]*** Partial cut [17:00:22]*** CUTSNS_PIN = 1 [17:00:23]*** CUTSNS_PIN = 0 [17:00:23]*** Brake cut motor [17:00:23]Read from MH i2c: 01 [17:00:23]MH_I2C_Read... [17:00:23]*** Stop cut motor [17:00:23]*** Cut end [17:00:23]Read from MH i2c: 01 07 00 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: 01 07 00 73 2A 00 00 00 00 00 FF 0F B2 [17:00:23]process_action close_receipt done [17:00:23]requested_data is exist [17:00:23]produce_requested_data [17:00:23]requested_item fm.sn is exist - process it [17:00:23]wFMCommunicate request_size=4 [17:00:23]MH_SAM_APDU [17:00:23]CAPDU: 80 11 00 00 [17:00:23]Write to MH i2c: E2 08 00 74 2A 80 11 00 00 00 00 00 00 18 [17:00:23]Write i2c OK [17:00:23]MH_I2C_Read... [17:00:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:23]Read from MH i2c: E2 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: E2 17 00 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: E2 17 00 74 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 73 [17:00:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:00:23]wFMCommunicate OK [17:00:23]requested_item fd.num is exist - process it [17:00:23]SAM_PROTO_GetFieldsCounters [17:00:23]wFMCommunicate request_size=4 [17:00:23]MH_SAM_APDU [17:00:23]CAPDU: 80 13 00 00 [17:00:23]Write to MH i2c: E2 08 00 75 2A 80 13 00 00 00 00 00 00 1B [17:00:23]Write i2c OK [17:00:23]MH_I2C_Read... [17:00:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:23]Read from MH i2c: E2 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: E2 62 00 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: E2 62 00 75 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 29 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [17:00:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 29 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:00:23]wFMCommunicate OK [17:00:23]SAM_PROTO_GetFieldsCounters done [17:00:23]requested_item shift.num is exist - process it [17:00:23]requested_item shift.opened is exist - process it [17:00:23]req_shift_opened [17:00:23]FM_GetShiftState [17:00:23]SAM_PROTO_GetShiftState [17:00:23]wFMCommunicate request_size=4 [17:00:23]MH_SAM_APDU [17:00:23]CAPDU: 80 13 01 00 [17:00:23]Write to MH i2c: E2 08 00 76 2A 80 13 01 00 00 00 00 00 1D [17:00:23]Write i2c OK [17:00:23]MH_I2C_Read... [17:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:23]Read from MH i2c: E2 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: E2 0E 00 [17:00:23]MH_I2C_Read... [17:00:23]Read from MH i2c: E2 0E 00 76 2A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 6C [17:00:23]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:00:23]wFMCommunicate OK [17:00:23]SAM_PROTO_GetShiftState done [17:00:23]FM_GetShiftState done [17:00:23]req_shift_opened done [17:00:23]requested_item shift.open_date is exist - process it [17:00:23]req_shift_open_date [17:00:23]req_shift_open_date done [17:00:23]produce_requested_data done [17:00:23]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31785,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [17:00:23]process_action_free close_receipt [17:00:23]json_value_free [17:00:23]json_value_free done [17:00:23]process_json_proto returns [17:00:23]Send response to host [17:00:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31785,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [17:00:23]free response buf [17:00:23]execute_script done [17:00:23]execute_script returns [17:00:23]free content buf [17:00:23]Sock 9.Close socket [17:00:23]Sock 9.Thread stoped [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:00]accept exits with 10 [17:03:00]New connection [17:03:00]New thread 3066821988 created [17:03:00]Thread 3066965348 joined [17:03:00]Waiting for new connection... [17:03:00] Sock 10.Parse request [17:03:00]Sock 10.Check first char [17:03:00]Sock 10.First char is OK [17:03:00]request: POST /json_proto HTTP/1.0 [17:03:00]Method: POST [17:03:00]URL: /json_proto [17:03:00]Method is POST - this is cgi request [17:03:00]url: /json_proto [17:03:00]query_string will be loaded in cgi processing [17:03:00]execute_cgi json_proto POST (null) [17:03:00]execute_cgi path=json_proto method=POST [17:03:00]POST find Content-Length [17:03:00]Host: 172.17.39.68:8080 [17:03:00]Content-Length: 684 [17:03:00]Content-Type: application/json [17:03:00] [17:03:00]POST finish read [17:03:00]Found Content-Length = 684 [17:03:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214367", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "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" ] } } [17:03:00]execute_script... [17:03:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214367", "tax_sys" : 0, "items" : [ { "code": "4870202521230", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043B\u0438\u043C\u043E\u043D", "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" ] } } [17:03:00]POST & json_proto [17:03:00]process_json_proto [17:03:00]json parsed OK: [17:03:00]protocol is kg_v1.0 [17:03:00]action value=close_receipt [17:03:00]process_action close_receipt [17:03:00]cmd_close_receipt [17:03:00]MH_GetDate [17:03:00]Write to MH i2c: F0 00 00 77 2A 90 [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: F0 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: F0 09 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: F0 09 00 77 2A 00 C9 A7 96 66 D6 48 95 66 1E [17:03:00]GetLastDocTimeStamp 1721149225 [17:03:00]current date 1721149385 [17:03:00]FM_GetShiftState [17:03:00]SAM_PROTO_GetShiftState [17:03:00]wFMCommunicate request_size=4 [17:03:00]MH_SAM_APDU [17:03:00]CAPDU: 80 13 01 00 [17:03:00]Write to MH i2c: E2 08 00 78 2A 80 13 01 00 00 00 00 00 1F [17:03:00]Write i2c OK [17:03:00]MH_I2C_Read... [17:03:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:00]Read from MH i2c: E2 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 0E 00 [17:03:00]MH_I2C_Read... [17:03:00]Read from MH i2c: E2 0E 00 78 2A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 6E [17:03:00]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:03:00]wFMCommunicate OK [17:03:00]SAM_PROTO_GetShiftState done [17:03:00]FM_GetShiftState done [17:03:00]opened in 1721088399 [17:03:00]opened+sec_in_day 1721174799 [17:03:00]quantity*price = 12500 [17:03:00]sum+1 = 12501 [17:03:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 105 16.07.2024 17:03 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31786 ФПД: 50129019282536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T170305&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31786&fm=50129019282536&tin=02508201610067®Number=0000000000098025&sum=12500 0 [17:03:01]StoreToDocumentArchive [17:03:01]shift 371 fd 31786 [17:03:01]save to /storage/0371/doc_00031786 [17:03:01]save last doc name /storage/0371/doc_00031786 to /storage/kkm_last_doc_name [17:03:01]save OK [17:03:01]Clear old archive folders... [17:03:01]ProcessDocumentItem done err = 0, tmpTLVsize=292 [17:03:01]tlvbuf is 014D4090 [17:03:01]SAM_PROTO_ClearQueue [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 09 00 00 [17:03:01]Write to MH i2c: E2 08 00 85 2A 80 09 00 00 00 00 00 00 21 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 85 2A 00 90 00 23 [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_ClearQueue done [17:03:01]KKMCreateOFDPacket [17:03:01]OFDProtocolAddRootSTLVToBuf [17:03:01]FM_MakeSignedData [17:03:01]FM_MakeSignedData [17:03:01]SAM_PROTO_SignData [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 01 02 [17:03:01]Write to MH i2c: E2 08 00 86 2A 80 0D 01 02 00 00 00 00 29 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 86 2A 00 90 00 24 [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]wFMCommunicate request_size=255 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 69 00 00 00 F4 03 04 00 C9 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [17:03:01]Write to MH i2c: E2 02 01 87 2A 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 69 00 00 00 F4 03 04 00 C9 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 38 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 87 2A 00 90 00 25 [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]wFMCommunicate request_size=51 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 02 02 2E 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2A 7C 00 00 35 04 06 00 2D 97 92 63 24 68 [17:03:01]Write to MH i2c: E2 36 00 88 2A 80 0D 02 02 2E 00 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2A 7C 00 00 35 04 06 00 2D 97 92 63 24 68 00 00 AF [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 03 00 88 2A 00 90 00 26 [17:03:01]RAPDU: 90 00 [17:03:01]wFMCommunicate OK [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 0D 03 02 [17:03:01]Write to MH i2c: E2 08 00 89 2A 80 0D 03 02 00 00 00 00 2E [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0B 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 0B 00 89 2A 00 D6 5F 81 4E 8A 79 7C 11 90 00 C3 [17:03:01]RAPDU: D6 5F 81 4E 8A 79 7C 11 90 00 [17:03:01]wFMCommunicate OK [17:03:01]SAM_PROTO_SignData done [17:03:01]FM_MakeSignedData done [17:03:01]CreateOFDProtocolMessage [17:03:01]wFMCommunicate request_size=4 [17:03:01]MH_SAM_APDU [17:03:01]CAPDU: 80 11 00 00 [17:03:01]Write to MH i2c: E2 08 00 8A 2A 80 11 00 00 00 00 00 00 2E [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:01]Read from MH i2c: E2 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 17 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: E2 17 00 8A 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 89 [17:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:03:01]wFMCommunicate OK [17:03:01]CreateOFDProtocolMessage done [17:03:01]OFDSenderStorePacket 31786 [17:03:01]StoreOFDPacket docnum=31786 [17:03:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 38 01 00 00 B1 AF 30 01 5C 65 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 69 00 00 00 F4 03 04 00 C9 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2A 7C 00 00 35 04 06 00 2D 97 92 63 24 68 D6 5F 81 4E 8A 79 7C 11 [17:03:01]CheckFolder [17:03:01]dirname=/storage/ofd_packets [17:03:01]CheckFolder done [17:03:01]ProducePacketName [17:03:01]name=ofd_packets/00031786 [17:03:01]NVStorageSaveData ofd_packets/00031786 [17:03:01]File name is /storage/ofd_packets/00031786 [17:03:01]Write 342 bytes [17:03:01]NVStorageSaveData done [17:03:01]OFDSenderStorePacket done [17:03:01]KKMCreateOFDPacket done [17:03:01]NVStorageSaveData kkm_last_timestamp [17:03:01]File name is /storage/kkm_last_timestamp [17:03:01]Write 4 bytes [17:03:01]NVStorageSaveData done [17:03:01]ExternCall_PrintAddStr [17:03:01]wPrintStart [17:03:01]Write to MH i2c: 01 00 00 8B 2A B5 [17:03:01]Write i2c OK [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 07 00 [17:03:01]MH_I2C_Read... [17:03:01]Read from MH i2c: 01 07 00 8B 2A 00 00 00 00 00 FF 0F CA [17:03:01]RasterBufferAndPrint [17:03:01]line Счет N : (3)214367 [17:03:01]line ИНН: 02508201610067 [17:03:01]line Контрольно-Кассовый Чек [17:03:01]line ПРОДАЖА [17:03:01]line Товар: 4870202521230 [17:03:01]line Напиток MAXI чай 1,2 черн.лимон [17:03:01]line 1.000 * 125.00 [17:03:01]line = 125.00 [17:03:01]line НДС 12% НСП 1% [17:03:01]line > о реализуемом товаре [17:03:01]line ИТОГО: 125.00 [17:03:01]line НСП 1% : 1.11 [17:03:01]line НДС 12% : 13.27 [17:03:01]line Наличными: 125.00 [17:03:01]line Безнал.: 0.00 [17:03:01]line Место: АЗС № 140 "Партнер Нефть" [17:03:01]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:03:01]line СНО: Общий режим [17:03:01]line Чек 105 16.07.2024 17:03 [17:03:01]line Смена: 371 ФФД: 1.0 [17:03:01]line ЗНМ: 0300000189 [17:03:01]line РНМ: 0000000000098025 [17:03:01]line Версия ККМ: 001 [17:03:01]line ФМ: 0000000000965389 [17:03:01]line ФД: 31786 [17:03:01]line ФПД: 50129019282536 [17:03:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T170305&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31786&fm=50129019282536&tin=02508201610067®Number=0000000000098025&sum=12500 [17:03:02]line 0 [17:03:02]OFD Sender: Processing packet 31786 [packets to send 6, broken 5] [17:03:02]ProducePacketName [17:03:02]name=ofd_packets/00031786 [17:03:02]OFD Sender: To server: pG, [17:03:02]CommunicateWithHost lk.salyk.kg:30040 [17:03:02]ConnectInit lk.salyk.kg [17:03:02]written 0, free lines is 4095 [17:03:02]Connected sock=9 [17:03:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 38 01 00 00 B1 AF 30 01 5C 65 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 33 30 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 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 69 00 00 00 F4 03 04 00 C9 A7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2A 7C 00 00 35 04 06 00 2D 97 92 63 24 68 D6 5F 81 4E 8A 79 7C 11 [17:03:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 21 76 47 00 77 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 35 33 38 39 10 04 04 00 2A 7C 00 00 F4 03 04 00 D6 53 96 66 B6 04 01 00 00 05 6B C6 FE 83 DB F9 33 [17:03:02]CommunicateWithHost err = 0 [17:03:02]CheckOFDResponse [17:03:02]1017 (14) - 77093643461234 [17:03:02]1041 (16) - 0000000000965389 [17:03:02]1040 (4) - 31786 [17:03:02]1012 (4) - 16.07.2024 11:04 [17:03:02]1206 (1) - 0 [17:03:02]OFD Sender: Remove packet 31786 [17:03:02]ProducePacketName [17:03:02]name=ofd_packets/00031786 [17:03:02]NVStorageDeleteData [17:03:02]Write to MH i2c: 01 00 00 B4 2A DE [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: 01 07 00 B4 2A 00 00 00 00 00 0E 0D 00 [17:03:02]RasterBufferAndPrint [17:03:02]line [17:03:02]line [17:03:02]line [17:03:02]line [17:03:02]line [17:03:02]written 0, free lines is 3351 [17:03:02]MH_Cut [17:03:02]Write to MH i2c: D1 01 00 BB 2A 01 B7 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: D1 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: D1 01 00 [17:03:02]MH_I2C_Read... [17:03:02]Read from MH i2c: D1 01 00 BB 2A 00 B6 [17:03:02]Write to MH i2c: 01 00 00 BC 2A E6 [17:03:02]Write i2c OK [17:03:02]MH_I2C_Read... [17:03:03]OFD Sender: No OFD packet to send [17:03:03]*** Cut start [17:03:03]*** Partial cut [17:03:03]*** CUTSNS_PIN = 1 [17:03:03]*** CUTSNS_PIN = 0 [17:03:03]*** Brake cut motor [17:03:03]Read from MH i2c: 01 [17:03:04]MH_I2C_Read... [17:03:04]*** Stop cut motor [17:03:04]*** Cut end [17:03:04]Read from MH i2c: 01 07 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: 01 07 00 BC 2A 00 00 00 00 00 FF 0F FB [17:03:04]process_action close_receipt done [17:03:04]requested_data is exist [17:03:04]produce_requested_data [17:03:04]requested_item fm.sn is exist - process it [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 11 00 00 [17:03:04]Write to MH i2c: E2 08 00 BD 2A 80 11 00 00 00 00 00 00 61 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 17 00 BD 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BC [17:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:03:04]wFMCommunicate OK [17:03:04]requested_item fd.num is exist - process it [17:03:04]SAM_PROTO_GetFieldsCounters [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 13 00 00 [17:03:04]Write to MH i2c: E2 08 00 BE 2A 80 13 00 00 00 00 00 00 64 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 62 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 62 00 BE 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [17:03:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:03:04]wFMCommunicate OK [17:03:04]SAM_PROTO_GetFieldsCounters done [17:03:04]requested_item shift.num is exist - process it [17:03:04]requested_item shift.opened is exist - process it [17:03:04]req_shift_opened [17:03:04]FM_GetShiftState [17:03:04]SAM_PROTO_GetShiftState [17:03:04]wFMCommunicate request_size=4 [17:03:04]MH_SAM_APDU [17:03:04]CAPDU: 80 13 01 00 [17:03:04]Write to MH i2c: E2 08 00 BF 2A 80 13 01 00 00 00 00 00 66 [17:03:04]Write i2c OK [17:03:04]MH_I2C_Read... [17:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:03:04]Read from MH i2c: E2 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0E 00 [17:03:04]MH_I2C_Read... [17:03:04]Read from MH i2c: E2 0E 00 BF 2A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B5 [17:03:04]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:03:04]wFMCommunicate OK [17:03:04]SAM_PROTO_GetShiftState done [17:03:04]FM_GetShiftState done [17:03:04]req_shift_opened done [17:03:04]requested_item shift.open_date is exist - process it [17:03:04]req_shift_open_date [17:03:04]req_shift_open_date done [17:03:04]produce_requested_data done [17:03:04]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31786,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [17:03:04]process_action_free close_receipt [17:03:04]json_value_free [17:03:04]json_value_free done [17:03:04]process_json_proto returns [17:03:04]Send response to host [17:03:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31786,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [17:03:04]free response buf [17:03:04]execute_script done [17:03:04]execute_script returns [17:03:04]free content buf [17:03:04]Sock 10.Close socket [17:03:04]Sock 10.Thread stoped [17:03:08]OFD Sender: No OFD packet to send [17:03:13]OFD Sender: No OFD packet to send [17:03:18]OFD Sender: No OFD packet to send [17:03:23]OFD Sender: No OFD packet to send [17:03:28]OFD Sender: No OFD packet to send [17:03:33]OFD Sender: No OFD packet to send [17:03:38]OFD Sender: No OFD packet to send [17:03:43]OFD Sender: No OFD packet to send [17:03:48]OFD Sender: No OFD packet to send [17:03:53]OFD Sender: No OFD packet to send [17:03:58]OFD Sender: No OFD packet to send [17:04:03]OFD Sender: No OFD packet to send [17:04:08]OFD Sender: No OFD packet to send [17:04:13]OFD Sender: No OFD packet to send [17:04:18]OFD Sender: No OFD packet to send [17:04:23]OFD Sender: No OFD packet to send [17:04:28]OFD Sender: No OFD packet to send [17:04:33]OFD Sender: No OFD packet to send [17:04:38]OFD Sender: No OFD packet to send [17:04:43]OFD Sender: No OFD packet to send [17:04:48]OFD Sender: No OFD packet to send [17:04:53]OFD Sender: No OFD packet to send [17:04:58]OFD Sender: No OFD packet to send [17:05:03]OFD Sender: No OFD packet to send [17:05:08]OFD Sender: No OFD packet to send [17:05:13]OFD Sender: No OFD packet to send [17:05:18]OFD Sender: No OFD packet to send [17:05:23]OFD Sender: No OFD packet to send [17:05:28]OFD Sender: No OFD packet to send [17:05:33]OFD Sender: No OFD packet to send [17:05:38]OFD Sender: No OFD packet to send [17:05:43]OFD Sender: No OFD packet to send [17:05:48]OFD Sender: No OFD packet to send [17:05:53]OFD Sender: No OFD packet to send [17:05:58]OFD Sender: No OFD packet to send [17:06:03]OFD Sender: No OFD packet to send [17:06:08]OFD Sender: No OFD packet to send [17:06:13]OFD Sender: No OFD packet to send [17:06:18]OFD Sender: No OFD packet to send [17:06:23]OFD Sender: No OFD packet to send [17:06:28]OFD Sender: No OFD packet to send [17:06:33]OFD Sender: No OFD packet to send [17:06:38]OFD Sender: No OFD packet to send [17:06:43]OFD Sender: No OFD packet to send [17:06:48]OFD Sender: No OFD packet to send [17:06:53]OFD Sender: No OFD packet to send [17:06:58]OFD Sender: No OFD packet to send [17:07:03]OFD Sender: No OFD packet to send [17:07:08]OFD Sender: No OFD packet to send [17:07:13]OFD Sender: No OFD packet to send [17:07:18]OFD Sender: No OFD packet to send [17:07:23]OFD Sender: No OFD packet to send [17:07:28]OFD Sender: No OFD packet to send [17:07:33]OFD Sender: No OFD packet to send [17:07:38]OFD Sender: No OFD packet to send [17:07:43]OFD Sender: No OFD packet to send [17:07:48]OFD Sender: No OFD packet to send [17:07:53]OFD Sender: No OFD packet to send [17:07:58]OFD Sender: No OFD packet to send [17:08:03]OFD Sender: No OFD packet to send [17:08:08]OFD Sender: No OFD packet to send [17:08:13]OFD Sender: No OFD packet to send [17:08:18]OFD Sender: No OFD packet to send [17:08:23]OFD Sender: No OFD packet to send [17:08:28]OFD Sender: No OFD packet to send [17:08:33]OFD Sender: No OFD packet to send [17:08:38]OFD Sender: No OFD packet to send [17:08:43]OFD Sender: No OFD packet to send [17:08:48]OFD Sender: No OFD packet to send [17:08:53]OFD Sender: No OFD packet to send [17:08:58]OFD Sender: No OFD packet to send [17:09:03]OFD Sender: No OFD packet to send [17:09:08]OFD Sender: No OFD packet to send [17:09:13]OFD Sender: No OFD packet to send [17:09:18]OFD Sender: No OFD packet to send [17:09:23]OFD Sender: No OFD packet to send [17:09:28]OFD Sender: No OFD packet to send [17:09:33]OFD Sender: No OFD packet to send [17:09:38]OFD Sender: No OFD packet to send [17:09:43]OFD Sender: No OFD packet to send [17:09:48]OFD Sender: No OFD packet to send [17:09:53]OFD Sender: No OFD packet to send [17:09:58]OFD Sender: No OFD packet to send [17:10:03]OFD Sender: No OFD packet to send [17:10:08]OFD Sender: No OFD packet to send [17:10:13]OFD Sender: No OFD packet to send [17:10:18]OFD Sender: No OFD packet to send [17:10:23]OFD Sender: No OFD packet to send [17:10:28]OFD Sender: No OFD packet to send [17:10:33]OFD Sender: No OFD packet to send [17:10:38]OFD Sender: No OFD packet to send [17:10:43]OFD Sender: No OFD packet to send [17:10:48]OFD Sender: No OFD packet to send [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:28]OFD Sender: No OFD packet to send [17:12:33]OFD Sender: No OFD packet to send [17:12:38]OFD Sender: No OFD packet to send [17:12:43]OFD Sender: No OFD packet to send [17:12:48]OFD Sender: No OFD packet to send [17:12:53]OFD Sender: No OFD packet to send [17:12:58]OFD Sender: No OFD packet to send [17:13:03]OFD Sender: No OFD packet to send [17:13:08]OFD Sender: No OFD packet to send [17:13:13]OFD Sender: No OFD packet to send [17:13:18]OFD Sender: No OFD packet to send [17:13:23]OFD Sender: No OFD packet to send [17:13:28]OFD Sender: No OFD packet to send [17:13:29]accept exits with 7 [17:13:29]New connection [17:13:29]New thread 3066965348 created [17:13:29]Thread 3066821988 joined [17:13:29]Waiting for new connection... [17:13:29] Sock 7.Parse request [17:13:29]Sock 7.Check first char [17:13:29]Sock 7.First char is OK [17:13:29]request: POST /json_proto HTTP/1.0 [17:13:29]Method: POST [17:13:29]URL: /json_proto [17:13:29]Method is POST - this is cgi request [17:13:29]url: /json_proto [17:13:29]query_string will be loaded in cgi processing [17:13:29]execute_cgi json_proto POST (null) [17:13:29]execute_cgi path=json_proto method=POST [17:13:29]POST find Content-Length [17:13:29]Host: 172.17.39.68:8080 [17:13:29]Content-Length: 912 [17:13:29]Content-Type: application/json [17:13:29] [17:13:29]POST finish read [17:13:29]Found Content-Length = 912 [17:13:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214368", "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 }]} ,{ "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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:13:29]execute_script... [17:13: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)214368", "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 }]} ,{ "code": "50173617", "name": "\u0416\u0435\u0432 Orbit Eucalyptus", "price" : 45.00, "quantity" : 1.000, "sum" : 45.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:13:29]POST & json_proto [17:13:29]process_json_proto [17:13:29]json parsed OK: [17:13:29]protocol is kg_v1.0 [17:13:29]action value=close_receipt [17:13:29]process_action close_receipt [17:13:29]cmd_close_receipt [17:13:29]MH_GetDate [17:13:29]Write to MH i2c: F0 00 00 C0 2A D9 [17:13:29]Write i2c OK [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: F0 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: F0 09 00 [17:13:29]MH_I2C_Read... [17:13:29]Read from MH i2c: F0 09 00 C0 2A 00 3E AA 96 66 D6 48 95 66 DF [17:13:29]GetLastDocTimeStamp 1721149385 [17:13:29]current date 1721150014 [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 C1 2A 80 13 01 00 00 00 00 00 68 [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 C1 2A 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B7 [17:13:29]RAPDU: 09 00 01 8F B9 95 66 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]opened in 1721088399 [17:13:29]opened+sec_in_day 1721174799 [17:13:29]quantity*price = 9500 [17:13:29]sum+1 = 9501 [17:13:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 50173617 Жев Orbit Eucalyptus 1.000 * 45.00 = 45.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 106 16.07.2024 17:13 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31787 ФПД: 102588814445362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T171334&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31787&fm=102588814445362&tin=02508201610067®Number=0000000000098025&sum=14000 0 [17:13:30]StoreToDocumentArchive [17:13:30]shift 371 fd 31787 [17:13:30]save to /storage/0371/doc_00031787 [17:13:30]save last doc name /storage/0371/doc_00031787 to /storage/kkm_last_doc_name [17:13:30]save OK [17:13:30]Clear old archive folders... [17:13:30]ProcessDocumentItem done err = 0, tmpTLVsize=394 [17:13:30]tlvbuf is B6DAB640 [17:13:30]SAM_PROTO_ClearQueue [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 09 00 00 [17:13:30]Write to MH i2c: E2 08 00 CE 2A 80 09 00 00 00 00 00 00 6A [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:30]Read from MH i2c: E2 03 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 03 00 CE 2A 00 90 00 6C [17:13:30]RAPDU: 90 00 [17:13:30]wFMCommunicate OK [17:13:30]SAM_PROTO_ClearQueue done [17:13:30]KKMCreateOFDPacket [17:13:30]OFDProtocolAddRootSTLVToBuf [17:13:30]FM_MakeSignedData [17:13:30]FM_MakeSignedData [17:13:30]SAM_PROTO_SignData [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 0D 01 02 [17:13:30]Write to MH i2c: E2 08 00 CF 2A 80 0D 01 02 00 00 00 00 72 [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 03 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 03 00 CF 2A 00 90 00 6D [17:13:30]RAPDU: 90 00 [17:13:30]wFMCommunicate OK [17:13:30]wFMCommunicate request_size=255 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 0D 02 02 FA 03 00 8A 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 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F [17:13:30]Write to MH i2c: E2 02 01 D0 2A 80 0D 02 02 FA 00 03 00 8A 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 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 DE [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 03 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 03 00 D0 2A 00 90 00 6E [17:13:30]RAPDU: 90 00 [17:13:30]wFMCommunicate OK [17:13:30]wFMCommunicate request_size=153 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 0D 02 02 94 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 6A 00 00 00 F4 03 04 00 3E AA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2B 7C 00 00 35 04 06 00 5D 4D D1 D7 CB 32 [17:13:30]Write to MH i2c: E2 9C 00 D1 2A 80 0D 02 02 94 00 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 6A 00 00 00 F4 03 04 00 3E AA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2B 7C 00 00 35 04 06 00 5D 4D D1 D7 CB 32 00 00 BA [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 03 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 03 00 D1 2A 00 90 00 6F [17:13:30]RAPDU: 90 00 [17:13:30]wFMCommunicate OK [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 0D 03 02 [17:13:30]Write to MH i2c: E2 08 00 D2 2A 80 0D 03 02 00 00 00 00 77 [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:30]Read from MH i2c: E2 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0B 00 [17:13:30]MH_I2C_Read... [17:13:30]Read from MH i2c: E2 0B 00 D2 2A 00 F7 38 13 D7 91 15 81 82 90 00 3A [17:13:30]RAPDU: F7 38 13 D7 91 15 81 82 90 00 [17:13:30]wFMCommunicate OK [17:13:30]SAM_PROTO_SignData done [17:13:30]FM_MakeSignedData done [17:13:30]CreateOFDProtocolMessage [17:13:30]wFMCommunicate request_size=4 [17:13:30]MH_SAM_APDU [17:13:30]CAPDU: 80 11 00 00 [17:13:30]Write to MH i2c: E2 08 00 D3 2A 80 11 00 00 00 00 00 00 77 [17:13:30]Write i2c OK [17:13:30]MH_I2C_Read... [17:13:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:31]Read from MH i2c: E2 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: E2 17 00 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: E2 17 00 D3 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D2 [17:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:13:31]wFMCommunicate OK [17:13:31]CreateOFDProtocolMessage done [17:13:31]OFDSenderStorePacket 31787 [17:13:31]StoreOFDPacket docnum=31787 [17:13:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 9E 01 00 00 92 F7 96 01 8A FB 5A 03 01 00 03 00 8A 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 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 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 6A 00 00 00 F4 03 04 00 3E AA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2B 7C 00 00 35 04 06 00 5D 4D D1 D7 CB 32 F7 38 13 D7 91 15 81 82 [17:13:31]CheckFolder [17:13:31]dirname=/storage/ofd_packets [17:13:31]CheckFolder done [17:13:31]ProducePacketName [17:13:31]name=ofd_packets/00031787 [17:13:31]NVStorageSaveData ofd_packets/00031787 [17:13:31]File name is /storage/ofd_packets/00031787 [17:13:31]Write 444 bytes [17:13:31]NVStorageSaveData done [17:13:31]OFDSenderStorePacket done [17:13:31]KKMCreateOFDPacket done [17:13:31]NVStorageSaveData kkm_last_timestamp [17:13:31]File name is /storage/kkm_last_timestamp [17:13:31]Write 4 bytes [17:13:31]NVStorageSaveData done [17:13:31]ExternCall_PrintAddStr [17:13:31]wPrintStart [17:13:31]Write to MH i2c: 01 00 00 D4 2A FE [17:13:31]Write i2c OK [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: 01 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: 01 07 00 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: 01 07 00 D4 2A 00 00 00 00 00 FF 0F 13 [17:13:31]RasterBufferAndPrint [17:13:31]line Счет N : (3)214368 [17:13:31]line ИНН: 02508201610067 [17:13:31]line Контрольно-Кассовый Чек [17:13:31]line ПРОДАЖА [17:13:31]line Товар: 4700000480302 [17:13:31]line Напиток энерг Nitro манго-клуб 0.45 ж/б [17:13:31]line 1.000 * 95.00 [17:13:31]line = 95.00 [17:13:31]line НДС 12% НСП 1% [17:13:31]line > о реализуемом товаре [17:13:31]line Товар: 50173617 [17:13:31]line Жев Orbit Eucalyptus [17:13:31]line 1.000 * 45.00 [17:13:31]line = 45.00 [17:13:31]line НДС 12% НСП 1% [17:13:31]line > о реализуемом товаре [17:13:31]line ИТОГО: 140.00 [17:13:31]line НСП 1% : 1.24 [17:13:31]line НДС 12% : 14.87 [17:13:31]line Наличными: 140.00 [17:13:31]line Безнал.: 0.00 [17:13:31]line Место: АЗС № 140 "Партнер Нефть" [17:13:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:13:31]line СНО: Общий режим [17:13:31]line Чек 106 16.07.2024 17:13 [17:13:31]line Смена: 371 ФФД: 1.0 [17:13:31]line ЗНМ: 0300000189 [17:13:31]line РНМ: 0000000000098025 [17:13:31]line Версия ККМ: 001 [17:13:31]line ФМ: 0000000000965389 [17:13:31]line ФД: 31787 [17:13:31]line ФПД: 102588814445362 [17:13:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T171334&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31787&fm=102588814445362&tin=02508201610067®Number=0000000000098025&sum=14000 [17:13:31]line 0 [17:13:31]OFD Sender: Processing packet 31787 [packets to send 6, broken 5] [17:13:31]ProducePacketName [17:13:31]name=ofd_packets/00031787 [17:13:31]OFD Sender: To server: pG, [17:13:31]CommunicateWithHost lk.salyk.kg:30040 [17:13:31]ConnectInit lk.salyk.kg [17:13:31]written 0, free lines is 4095 [17:13:31]Connected sock=10 [17:13:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 9E 01 00 00 92 F7 96 01 8A FB 5A 03 01 00 03 00 8A 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 23 04 56 00 8A 04 08 00 35 30 31 37 33 36 31 37 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 45 75 63 61 6C 79 70 74 75 73 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 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 6A 00 00 00 F4 03 04 00 3E AA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2B 7C 00 00 35 04 06 00 5D 4D D1 D7 CB 32 F7 38 13 D7 91 15 81 82 [17:13:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 1D AB 47 00 01 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 35 33 38 39 10 04 04 00 2B 7C 00 00 F4 03 04 00 4B 56 96 66 B6 04 01 00 00 1E 21 46 31 18 75 DE A9 [17:13:31]CommunicateWithHost err = 0 [17:13:31]CheckOFDResponse [17:13:31]1017 (14) - 77093643461234 [17:13:31]1041 (16) - 0000000000965389 [17:13:31]1040 (4) - 31787 [17:13:31]1012 (4) - 16.07.2024 11:15 [17:13:31]1206 (1) - 0 [17:13:31]OFD Sender: Remove packet 31787 [17:13:31]ProducePacketName [17:13:31]name=ofd_packets/00031787 [17:13:31]NVStorageDeleteData [17:13:31]Write to MH i2c: 01 00 00 03 2B 2E [17:13:31]Write i2c OK [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: 01 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: 01 07 00 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: 01 07 00 03 2B 00 00 00 00 00 9D 0C DE [17:13:31]RasterBufferAndPrint [17:13:31]line [17:13:31]line [17:13:31]line [17:13:31]line [17:13:31]line [17:13:31]written 0, free lines is 3235 [17:13:31]MH_Cut [17:13:31]Write to MH i2c: D1 01 00 0A 2B 01 07 [17:13:31]Write i2c OK [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: D1 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: D1 01 00 [17:13:31]MH_I2C_Read... [17:13:31]Read from MH i2c: D1 01 00 0A 2B 00 06 [17:13:31]Write to MH i2c: 01 00 00 0B 2B 36 [17:13:31]Write i2c OK [17:13:31]MH_I2C_Read... [17:13:32]OFD Sender: No OFD packet to send [17:13:32]*** Cut start [17:13:32]*** Partial cut [17:13:32]*** CUTSNS_PIN = 1 [17:13:32]*** CUTSNS_PIN = 0 [17:13:32]*** Brake cut motor [17:13:33]Read from MH i2c: 01 [17:13:33]MH_I2C_Read... [17:13:33]*** Stop cut motor [17:13:33]*** Cut end [17:13:33]Read from MH i2c: 01 07 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: 01 07 00 0B 2B 00 00 00 00 00 FF 0F 4B [17:13:33]process_action close_receipt done [17:13:33]requested_data is exist [17:13:33]produce_requested_data [17:13:33]requested_item fm.sn is exist - process it [17:13:33]wFMCommunicate request_size=4 [17:13:33]MH_SAM_APDU [17:13:33]CAPDU: 80 11 00 00 [17:13:33]Write to MH i2c: E2 08 00 0C 2B 80 11 00 00 00 00 00 00 B1 [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:33]Read from MH i2c: E2 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 17 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 17 00 0C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0C [17:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:13:33]wFMCommunicate OK [17:13:33]requested_item fd.num is exist - process it [17:13:33]SAM_PROTO_GetFieldsCounters [17:13:33]wFMCommunicate request_size=4 [17:13:33]MH_SAM_APDU [17:13:33]CAPDU: 80 13 00 00 [17:13:33]Write to MH i2c: E2 08 00 0D 2B 80 13 00 00 00 00 00 00 B4 [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:33]Read from MH i2c: E2 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 62 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 62 00 0D 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2B 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [17:13: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2B 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:13:33]wFMCommunicate OK [17:13:33]SAM_PROTO_GetFieldsCounters done [17:13:33]requested_item shift.num is exist - process it [17:13:33]requested_item shift.opened is exist - process it [17:13:33]req_shift_opened [17:13:33]FM_GetShiftState [17:13:33]SAM_PROTO_GetShiftState [17:13:33]wFMCommunicate request_size=4 [17:13:33]MH_SAM_APDU [17:13:33]CAPDU: 80 13 01 00 [17:13:33]Write to MH i2c: E2 08 00 0E 2B 80 13 01 00 00 00 00 00 B6 [17:13:33]Write i2c OK [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 [17:13:33]MH_I2C_Read... [17:13:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:33]Read from MH i2c: E2 0E 00 [17:13:33]MH_I2C_Read... [17:13:33]Read from MH i2c: E2 0E 00 0E 2B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 05 [17:13:33]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:13:33]wFMCommunicate OK [17:13:33]SAM_PROTO_GetShiftState done [17:13:33]FM_GetShiftState done [17:13:33]req_shift_opened done [17:13:33]requested_item shift.open_date is exist - process it [17:13:33]req_shift_open_date [17:13:33]req_shift_open_date done [17:13:33]produce_requested_data done [17:13:33]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31787,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [17:13:33]process_action_free close_receipt [17:13:33]json_value_free [17:13:33]json_value_free done [17:13:33]process_json_proto returns [17:13:33]Send response to host [17:13:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31787,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [17:13:33]free response buf [17:13:33]execute_script done [17:13:33]execute_script returns [17:13:33]free content buf [17:13:33]Sock 7.Close socket [17:13:33]Sock 7.Thread stoped [17:13:37]OFD Sender: No OFD packet to send [17:13:42]OFD Sender: No OFD packet to send [17:13:47]OFD Sender: No OFD packet to send [17:13:52]OFD Sender: No OFD packet to send [17:13:57]OFD Sender: No OFD packet to send [17:14:02]OFD Sender: No OFD packet to send [17:14:07]OFD Sender: No OFD packet to send [17:14:12]OFD Sender: No OFD packet to send [17:14:17]OFD Sender: No OFD packet to send [17:14:22]OFD Sender: No OFD packet to send [17:14:27]OFD Sender: No OFD packet to send [17:14:32]OFD Sender: No OFD packet to send [17:14:37]OFD Sender: No OFD packet to send [17:14:42]OFD Sender: No OFD packet to send [17:14:47]OFD Sender: No OFD packet to send [17:14:52]OFD Sender: No OFD packet to send [17:14:57]OFD Sender: No OFD packet to send [17:15:02]OFD Sender: No OFD packet to send [17:15:07]OFD Sender: No OFD packet to send [17:15:12]OFD Sender: No OFD packet to send [17:15:17]OFD Sender: No OFD packet to send [17:15:22]OFD Sender: No OFD packet to send [17:15:27]OFD Sender: No OFD packet to send [17:15:32]OFD Sender: No OFD packet to send [17:15:37]OFD Sender: No OFD packet to send [17:15:42]OFD Sender: No OFD packet to send [17:15:47]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:16:02]OFD Sender: No OFD packet to send [17:16:07]OFD Sender: No OFD packet to send [17:16:12]OFD Sender: No OFD packet to send [17:16:17]OFD Sender: No OFD packet to send [17:16:22]OFD Sender: No OFD packet to send [17:16:27]OFD Sender: No OFD packet to send [17:16:32]OFD Sender: No OFD packet to send [17:16:37]OFD Sender: No OFD packet to send [17:16:42]OFD Sender: No OFD packet to send [17:16:47]OFD Sender: No OFD packet to send [17:16:52]OFD Sender: No OFD packet to send [17:16:57]OFD Sender: No OFD packet to send [17:17:02]OFD Sender: No OFD packet to send [17:17:07]OFD Sender: No OFD packet to send [17:17:12]OFD Sender: No OFD packet to send [17:17:17]OFD Sender: No OFD packet to send [17:17:22]OFD Sender: No OFD packet to send [17:17:27]OFD Sender: No OFD packet to send [17:17:32]OFD Sender: No OFD packet to send [17:17:37]OFD Sender: No OFD packet to send [17:17:42]OFD Sender: No OFD packet to send [17:17: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:18:02]OFD Sender: No OFD packet to send [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:40]accept exits with 9 [17:18:40]New connection [17:18:40]New thread 3066821988 created [17:18:40]Thread 3066965348 joined [17:18:40]Waiting for new connection... [17:18:40] Sock 9.Parse request [17:18:40]Sock 9.Check first char [17:18:40]Sock 9.First char is OK [17:18:40]request: POST /json_proto HTTP/1.0 [17:18:40]Method: POST [17:18:40]URL: /json_proto [17:18:40]Method is POST - this is cgi request [17:18:40]url: /json_proto [17:18:40]query_string will be loaded in cgi processing [17:18:40]execute_cgi json_proto POST (null) [17:18:40]execute_cgi path=json_proto method=POST [17:18:40]POST find Content-Length [17:18:40]Host: 172.17.39.68:8080 [17:18:40]Content-Length: 892 [17:18:40]Content-Type: application/json [17:18:40] [17:18:40]POST finish read [17:18:40]Found Content-Length = 892 [17:18:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214369", "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 }]} ,{ "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" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:40]execute_script... [17:18: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)214369", "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 }]} ,{ "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" : 235.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:18:40]POST & json_proto [17:18:40]process_json_proto [17:18:40]json parsed OK: [17:18:40]protocol is kg_v1.0 [17:18:40]action value=close_receipt [17:18:40]process_action close_receipt [17:18:40]cmd_close_receipt [17:18:40]MH_GetDate [17:18:40]Write to MH i2c: F0 00 00 0F 2B 29 [17:18:40]Write i2c OK [17:18:40]MH_I2C_Read... [17:18:40]Read from MH i2c: F0 [17:18:40]MH_I2C_Read... [17:18:40]Read from MH i2c: F0 09 00 [17:18:40]MH_I2C_Read... [17:18:40]Read from MH i2c: F0 09 00 0F 2B 00 75 AB 96 66 D6 48 95 66 67 [17:18:40]GetLastDocTimeStamp 1721150014 [17:18:40]current date 1721150325 [17:18:40]FM_GetShiftState [17:18:40]SAM_PROTO_GetShiftState [17:18:40]wFMCommunicate request_size=4 [17:18:40]MH_SAM_APDU [17:18:40]CAPDU: 80 13 01 00 [17:18:40]Write to MH i2c: E2 08 00 10 2B 80 13 01 00 00 00 00 00 B8 [17:18:40]Write i2c OK [17:18:40]MH_I2C_Read... [17:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:40]Read from MH i2c: E2 [17:18:40]MH_I2C_Read... [17:18:40]Read from MH i2c: E2 0E 00 [17:18:40]MH_I2C_Read... [17:18:40]Read from MH i2c: E2 0E 00 10 2B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 07 [17:18:40]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:18:40]wFMCommunicate OK [17:18:40]SAM_PROTO_GetShiftState done [17:18:40]FM_GetShiftState done [17:18:40]opened in 1721088399 [17:18:40]opened+sec_in_day 1721174799 [17:18:40]quantity*price = 14000 [17:18:40]sum+1 = 14001 [17:18:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 235.00 НСП 1% : 2.08 НДС 12% : 24.96 Наличными: 235.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 107 16.07.2024 17:18 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31788 ФПД: 167416475520301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T171845&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31788&fm=167416475520301&tin=02508201610067®Number=0000000000098025&sum=23500 0 [17:18:41]StoreToDocumentArchive [17:18:41]shift 371 fd 31788 [17:18:41]save to /storage/0371/doc_00031788 [17:18:41]save last doc name /storage/0371/doc_00031788 to /storage/kkm_last_doc_name [17:18:41]save OK [17:18:41]Clear old archive folders... [17:18:41]ProcessDocumentItem done err = 0, tmpTLVsize=396 [17:18:41]tlvbuf is 0155D4A0 [17:18:41]SAM_PROTO_ClearQueue [17:18:41]wFMCommunicate request_size=4 [17:18:41]MH_SAM_APDU [17:18:41]CAPDU: 80 09 00 00 [17:18:41]Write to MH i2c: E2 08 00 1D 2B 80 09 00 00 00 00 00 00 BA [17:18:41]Write i2c OK [17:18:41]MH_I2C_Read... [17:18:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:18:41]Read from MH i2c: E2 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 03 00 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 03 00 1D 2B 00 90 00 BC [17:18:41]RAPDU: 90 00 [17:18:41]wFMCommunicate OK [17:18:41]SAM_PROTO_ClearQueue done [17:18:41]KKMCreateOFDPacket [17:18:41]OFDProtocolAddRootSTLVToBuf [17:18:41]FM_MakeSignedData [17:18:41]FM_MakeSignedData [17:18:41]SAM_PROTO_SignData [17:18:41]wFMCommunicate request_size=4 [17:18:41]MH_SAM_APDU [17:18:41]CAPDU: 80 0D 01 02 [17:18:41]Write to MH i2c: E2 08 00 1E 2B 80 0D 01 02 00 00 00 00 C2 [17:18:41]Write i2c OK [17:18:41]MH_I2C_Read... [17:18:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:18:41]Read from MH i2c: E2 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 03 00 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 03 00 1E 2B 00 90 00 BD [17:18:41]RAPDU: 90 00 [17:18:41]wFMCommunicate OK [17:18:41]wFMCommunicate request_size=255 [17:18:41]MH_SAM_APDU [17:18:41]CAPDU: 80 0D 02 02 FA 03 00 8C 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 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 CC 5B 00 00 00 00 EB 03 26 00 EF [17:18:41]Write to MH i2c: E2 02 01 1F 2B 80 0D 02 02 FA 00 03 00 8C 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 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 CC 5B 00 00 00 00 EB 03 26 00 EF 00 00 CB [17:18:41]Write i2c OK [17:18:41]MH_I2C_Read... [17:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:41]Read from MH i2c: E2 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 03 00 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 03 00 1F 2B 00 90 00 BE [17:18:41]RAPDU: 90 00 [17:18:41]wFMCommunicate OK [17:18:41]wFMCommunicate request_size=155 [17:18:41]MH_SAM_APDU [17:18:41]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 75 AB 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2C 7C 00 00 35 04 06 00 98 43 AF 8D 8D 2D [17:18:41]Write to MH i2c: E2 9E 00 20 2B 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 75 AB 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2C 7C 00 00 35 04 06 00 98 43 AF 8D 8D 2D 00 00 66 [17:18:41]Write i2c OK [17:18:41]MH_I2C_Read... [17:18:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:18:41]Read from MH i2c: E2 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 03 00 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 03 00 20 2B 00 90 00 BF [17:18:41]RAPDU: 90 00 [17:18:41]wFMCommunicate OK [17:18:41]wFMCommunicate request_size=4 [17:18:41]MH_SAM_APDU [17:18:41]CAPDU: 80 0D 03 02 [17:18:41]Write to MH i2c: E2 08 00 21 2B 80 0D 03 02 00 00 00 00 C7 [17:18:41]Write i2c OK [17:18:41]MH_I2C_Read... [17:18:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:18:41]Read from MH i2c: E2 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 0B 00 [17:18:41]MH_I2C_Read... [17:18:41]Read from MH i2c: E2 0B 00 21 2B 00 39 2B 1E 77 C7 91 18 55 90 00 86 [17:18:41]RAPDU: 39 2B 1E 77 C7 91 18 55 90 00 [17:18:41]wFMCommunicate OK [17:18:41]SAM_PROTO_SignData done [17:18:41]FM_MakeSignedData done [17:18:41]CreateOFDProtocolMessage [17:18:41]wFMCommunicate request_size=4 [17:18:41]MH_SAM_APDU [17:18:41]CAPDU: 80 11 00 00 [17:18:41]Write to MH i2c: E2 08 00 22 2B 80 11 00 00 00 00 00 00 C7 [17:18:41]Write i2c OK [17:18:41]MH_I2C_Read... [17:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:42]Read from MH i2c: E2 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: E2 17 00 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: E2 17 00 22 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 22 [17:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:18:42]wFMCommunicate OK [17:18:42]CreateOFDProtocolMessage done [17:18:42]OFDSenderStorePacket 31788 [17:18:42]StoreOFDPacket docnum=31788 [17:18:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A0 01 00 00 D0 E1 98 01 6B 77 5A 03 01 00 03 00 8C 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 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 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 75 AB 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2C 7C 00 00 35 04 06 00 98 43 AF 8D 8D 2D 39 2B 1E 77 C7 91 18 55 [17:18:42]CheckFolder [17:18:42]dirname=/storage/ofd_packets [17:18:42]CheckFolder done [17:18:42]ProducePacketName [17:18:42]name=ofd_packets/00031788 [17:18:42]NVStorageSaveData ofd_packets/00031788 [17:18:42]File name is /storage/ofd_packets/00031788 [17:18:42]Write 446 bytes [17:18:42]NVStorageSaveData done [17:18:42]OFDSenderStorePacket done [17:18:42]KKMCreateOFDPacket done [17:18:42]NVStorageSaveData kkm_last_timestamp [17:18:42]File name is /storage/kkm_last_timestamp [17:18:42]Write 4 bytes [17:18:42]NVStorageSaveData done [17:18:42]ExternCall_PrintAddStr [17:18:42]wPrintStart [17:18:42]Write to MH i2c: 01 00 00 23 2B 4E [17:18:42]Write i2c OK [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: 01 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: 01 07 00 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: 01 07 00 23 2B 00 00 00 00 00 FF 0F 63 [17:18:42]RasterBufferAndPrint [17:18:42]line Счет N : (3)214369 [17:18:42]line ИНН: 02508201610067 [17:18:42]line Контрольно-Кассовый Чек [17:18:42]line ПРОДАЖА [17:18:42]line Товар: 48747059 [17:18:42]line Сигареты Winston Legend Blue [17:18:42]line 1.000 * 140.00 [17:18:42]line = 140.00 [17:18:42]line НДС 12% НСП 1% [17:18:42]line > о реализуемом товаре [17:18:42]line Товар: 4700000480050 [17:18:42]line Напиток Nitro Energy эн green ж/б 0,45л [17:18:42]line 1.000 * 95.00 [17:18:42]line = 95.00 [17:18:42]line НДС 12% НСП 1% [17:18:42]line > о реализуемом товаре [17:18:42]line ИТОГО: 235.00 [17:18:42]line НСП 1% : 2.08 [17:18:42]line НДС 12% : 24.96 [17:18:42]line Наличными: 235.00 [17:18:42]line Безнал.: 0.00 [17:18:42]line Место: АЗС № 140 "Партнер Нефть" [17:18:42]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:18:42]line СНО: Общий режим [17:18:42]line Чек 107 16.07.2024 17:18 [17:18:42]line Смена: 371 ФФД: 1.0 [17:18:42]line ЗНМ: 0300000189 [17:18:42]line РНМ: 0000000000098025 [17:18:42]line Версия ККМ: 001 [17:18:42]line ФМ: 0000000000965389 [17:18:42]line ФД: 31788 [17:18:42]line ФПД: 167416475520301 [17:18:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T171845&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31788&fm=167416475520301&tin=02508201610067®Number=0000000000098025&sum=23500 [17:18:42]line 0 [17:18:42]OFD Sender: Processing packet 31788 [packets to send 6, broken 5] [17:18:42]ProducePacketName [17:18:42]name=ofd_packets/00031788 [17:18:42]OFD Sender: To server: pG, [17:18:42]CommunicateWithHost lk.salyk.kg:30040 [17:18:42]ConnectInit lk.salyk.kg [17:18:42]written 0, free lines is 4095 [17:18:42]Connected sock=10 [17:18:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A0 01 00 00 D0 E1 98 01 6B 77 5A 03 01 00 03 00 8C 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 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 CC 5B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C0 09 00 00 00 00 07 04 06 00 CC 5B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 75 AB 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2C 7C 00 00 35 04 06 00 98 43 AF 8D 8D 2D 39 2B 1E 77 C7 91 18 55 [17:18:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 9F C7 47 00 0F 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 35 33 38 39 10 04 04 00 2C 7C 00 00 F4 03 04 00 82 57 96 66 B6 04 01 00 00 7E 36 66 68 49 CC 8C 25 [17:18:42]CommunicateWithHost err = 0 [17:18:42]CheckOFDResponse [17:18:42]1017 (14) - 77093643461234 [17:18:42]1041 (16) - 0000000000965389 [17:18:42]1040 (4) - 31788 [17:18:42]1012 (4) - 16.07.2024 11:20 [17:18:42]1206 (1) - 0 [17:18:42]OFD Sender: Remove packet 31788 [17:18:42]ProducePacketName [17:18:42]name=ofd_packets/00031788 [17:18:42]NVStorageDeleteData [17:18:42]Write to MH i2c: 01 00 00 53 2B 7E [17:18:42]Write i2c OK [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: 01 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: 01 07 00 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: 01 07 00 53 2B 00 00 00 00 00 75 0C 06 [17:18:42]RasterBufferAndPrint [17:18:42]line [17:18:42]line [17:18:42]line [17:18:42]line [17:18:42]line [17:18:42]written 0, free lines is 3198 [17:18:42]MH_Cut [17:18:42]Write to MH i2c: D1 01 00 5A 2B 01 57 [17:18:42]Write i2c OK [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: D1 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: D1 01 00 [17:18:42]MH_I2C_Read... [17:18:42]Read from MH i2c: D1 01 00 5A 2B 00 56 [17:18:42]Write to MH i2c: 01 00 00 5B 2B 86 [17:18:42]Write i2c OK [17:18:42]MH_I2C_Read... [17:18:43]OFD Sender: No OFD packet to send [17:18:43]*** Cut start [17:18:43]*** Partial cut [17:18:43]*** CUTSNS_PIN = 1 [17:18:43]*** CUTSNS_PIN = 0 [17:18:43]*** Brake cut motor [17:18:44]Read from MH i2c: 01 [17:18:44]MH_I2C_Read... [17:18:44]*** Stop cut motor [17:18:44]*** Cut end [17:18:44]Read from MH i2c: 01 07 00 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: 01 07 00 5B 2B 00 00 00 00 00 FF 0F 9B [17:18:44]process_action close_receipt done [17:18:44]requested_data is exist [17:18:44]produce_requested_data [17:18:44]requested_item fm.sn is exist - process it [17:18:44]wFMCommunicate request_size=4 [17:18:44]MH_SAM_APDU [17:18:44]CAPDU: 80 11 00 00 [17:18:44]Write to MH i2c: E2 08 00 5C 2B 80 11 00 00 00 00 00 00 01 [17:18:44]Write i2c OK [17:18:44]MH_I2C_Read... [17:18:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:18:44]Read from MH i2c: E2 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: E2 17 00 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: E2 17 00 5C 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 5C [17:18:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:18:44]wFMCommunicate OK [17:18:44]requested_item fd.num is exist - process it [17:18:44]SAM_PROTO_GetFieldsCounters [17:18:44]wFMCommunicate request_size=4 [17:18:44]MH_SAM_APDU [17:18:44]CAPDU: 80 13 00 00 [17:18:44]Write to MH i2c: E2 08 00 5D 2B 80 13 00 00 00 00 00 00 04 [17:18:44]Write i2c OK [17:18:44]MH_I2C_Read... [17:18:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:18:44]Read from MH i2c: E2 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: E2 62 00 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: E2 62 00 5D 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2C 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [17:18: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2C 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:18:44]wFMCommunicate OK [17:18:44]SAM_PROTO_GetFieldsCounters done [17:18:44]requested_item shift.num is exist - process it [17:18:44]requested_item shift.opened is exist - process it [17:18:44]req_shift_opened [17:18:44]FM_GetShiftState [17:18:44]SAM_PROTO_GetShiftState [17:18:44]wFMCommunicate request_size=4 [17:18:44]MH_SAM_APDU [17:18:44]CAPDU: 80 13 01 00 [17:18:44]Write to MH i2c: E2 08 00 5E 2B 80 13 01 00 00 00 00 00 06 [17:18:44]Write i2c OK [17:18:44]MH_I2C_Read... [17:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:18:44]Read from MH i2c: E2 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: E2 0E 00 [17:18:44]MH_I2C_Read... [17:18:44]Read from MH i2c: E2 0E 00 5E 2B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 55 [17:18:44]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:18:44]wFMCommunicate OK [17:18:44]SAM_PROTO_GetShiftState done [17:18:44]FM_GetShiftState done [17:18:44]req_shift_opened done [17:18:44]requested_item shift.open_date is exist - process it [17:18:44]req_shift_open_date [17:18:44]req_shift_open_date done [17:18:44]produce_requested_data done [17:18:44]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31788,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [17:18:44]process_action_free close_receipt [17:18:44]json_value_free [17:18:44]json_value_free done [17:18:44]process_json_proto returns [17:18:44]Send response to host [17:18:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31788,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [17:18:44]free response buf [17:18:44]execute_script done [17:18:44]execute_script returns [17:18:44]free content buf [17:18:44]Sock 9.Close socket [17:18:44]Sock 9.Thread stoped [17:18:48]OFD Sender: No OFD packet to send [17:18:53]OFD Sender: No OFD packet to send [17:18:58]OFD Sender: No OFD packet to send [17:19:03]OFD Sender: No OFD packet to send [17:19:08]OFD Sender: No OFD packet to send [17:19:13]OFD Sender: No OFD packet to send [17:19:18]OFD Sender: No OFD packet to send [17:19:23]OFD Sender: No OFD packet to send [17:19:28]OFD Sender: No OFD packet to send [17:19:33]OFD Sender: No OFD packet to send [17:19:38]OFD Sender: No OFD packet to send [17:19:43]OFD Sender: No OFD packet to send [17:19:48]OFD Sender: No OFD packet to send [17:19:53]OFD Sender: No OFD packet to send [17:19:58]OFD Sender: No OFD packet to send [17:20:03]OFD Sender: No OFD packet to send [17:20:08]OFD Sender: No OFD packet to send [17:20:13]OFD Sender: No OFD packet to send [17:20:18]OFD Sender: No OFD packet to send [17:20:23]OFD Sender: No OFD packet to send [17:20:28]OFD Sender: No OFD packet to send [17:20:33]OFD Sender: No OFD packet to send [17:20:38]OFD Sender: No OFD packet to send [17:20:43]OFD Sender: No OFD packet to send [17:20:48]OFD Sender: No OFD packet to send [17:20:53]OFD Sender: No OFD packet to send [17:20:58]OFD Sender: No OFD packet to send [17:21:03]OFD Sender: No OFD packet to send [17:21:08]OFD Sender: No OFD packet to send [17:21:13]OFD Sender: No OFD packet to send [17:21:18]OFD Sender: No OFD packet to send [17:21:23]OFD Sender: No OFD packet to send [17:21:28]OFD Sender: No OFD packet to send [17:21:33]OFD Sender: No OFD packet to send [17:21:38]OFD Sender: No OFD packet to send [17:21:43]OFD Sender: No OFD packet to send [17:21:48]OFD Sender: No OFD packet to send [17:21:53]OFD Sender: No OFD packet to send [17:21:58]OFD Sender: No OFD packet to send [17:22:03]OFD Sender: No OFD packet to send [17:22:08]OFD Sender: No OFD packet to send [17:22:13]OFD Sender: No OFD packet to send [17:22:18]OFD Sender: No OFD packet to send [17:22:23]OFD Sender: No OFD packet to send [17:22:28]OFD Sender: No OFD packet to send [17:22:33]OFD Sender: No OFD packet to send [17:22:38]OFD Sender: No OFD packet to send [17:22:43]OFD Sender: No OFD packet to send [17:22:48]OFD Sender: No OFD packet to send [17:22:53]OFD Sender: No OFD packet to send [17:22:58]OFD Sender: No OFD packet to send [17:23:03]OFD Sender: No OFD packet to send [17:23:08]OFD Sender: No OFD packet to send [17:23:13]OFD Sender: No OFD packet to send [17:23:18]OFD Sender: No OFD packet to send [17:23:23]OFD Sender: No OFD packet to send [17:23:28]OFD Sender: No OFD packet to send [17:23:33]OFD Sender: No OFD packet to send [17:23:38]OFD Sender: No OFD packet to send [17:23:43]OFD Sender: No OFD packet to send [17:23:48]OFD Sender: No OFD packet to send [17:23:53]OFD Sender: No OFD packet to send [17:23:58]OFD Sender: No OFD packet to send [17:24:03]OFD Sender: No OFD packet to send [17:24:08]OFD Sender: No OFD packet to send [17:24:13]OFD Sender: No OFD packet to send [17:24:18]OFD Sender: No OFD packet to send [17:24:23]OFD Sender: No OFD packet to send [17:24:28]OFD Sender: No OFD packet to send [17:24:33]OFD Sender: No OFD packet to send [17:24:38]OFD Sender: No OFD packet to send [17:24:43]OFD Sender: No OFD packet to send [17:24:48]OFD Sender: No OFD packet to send [17:24:53]OFD Sender: No OFD packet to send [17:24:58]OFD Sender: No OFD packet to send [17:25:03]OFD Sender: No OFD packet to send [17:25:08]OFD Sender: No OFD packet to send [17:25:13]OFD Sender: No OFD packet to send [17:25:18]OFD Sender: No OFD packet to send [17:25:23]OFD Sender: No OFD packet to send [17:25:28]OFD Sender: No OFD packet to send [17:25:33]OFD Sender: No OFD packet to send [17:25:38]OFD Sender: No OFD packet to send [17:25:43]OFD Sender: No OFD packet to send [17:25:48]OFD Sender: No OFD packet to send [17:25:53]OFD Sender: No OFD packet to send [17:25:58]OFD Sender: No OFD packet to send [17:26:03]OFD Sender: No OFD packet to send [17:26:08]OFD Sender: No OFD packet to send [17:26:13]OFD Sender: No OFD packet to send [17:26:18]OFD Sender: No OFD packet to send [17:26:23]OFD Sender: No OFD packet to send [17:26:28]OFD Sender: No OFD packet to send [17:26:33]OFD Sender: No OFD packet to send [17:26:38]OFD Sender: No OFD packet to send [17:26:43]OFD Sender: No OFD packet to send [17:26:48]OFD Sender: No OFD packet to send [17:26:53]OFD Sender: No OFD packet to send [17:26:58]OFD Sender: No OFD packet to send [17:27:03]OFD Sender: No OFD packet to send [17:27:08]OFD Sender: No OFD packet to send [17:27:13]OFD Sender: No OFD packet to send [17:27:18]OFD Sender: No OFD packet to send [17:27:23]OFD Sender: No OFD packet to send [17:27:28]OFD Sender: No OFD packet to send [17:27:33]OFD Sender: No OFD packet to send [17:27:38]OFD Sender: No OFD packet to send [17:27:43]OFD Sender: No OFD packet to send [17:27:48]OFD Sender: No OFD packet to send [17:27:53]OFD Sender: No OFD packet to send [17:27:58]OFD Sender: No OFD packet to send [17:28:03]OFD Sender: No OFD packet to send [17:28:08]OFD Sender: No OFD packet to send [17:28:13]OFD Sender: No OFD packet to send [17:28:18]OFD Sender: No OFD packet to send [17:28:23]OFD Sender: No OFD packet to send [17:28:28]OFD Sender: No OFD packet to send [17:28:33]OFD Sender: No OFD packet to send [17:28:38]OFD Sender: No OFD packet to send [17:28:43]OFD Sender: No OFD packet to send [17:28:48]OFD Sender: No OFD packet to send [17:28:53]OFD Sender: No OFD packet to send [17:28:58]OFD Sender: No OFD packet to send [17:29:03]OFD Sender: No OFD packet to send [17:29:08]OFD Sender: No OFD packet to send [17:29:13]OFD Sender: No OFD packet to send [17:29:18]OFD Sender: No OFD packet to send [17:29:23]OFD Sender: No OFD packet to send [17:29:28]OFD Sender: No OFD packet to send [17:29:33]OFD Sender: No OFD packet to send [17:29:38]OFD Sender: No OFD packet to send [17:29:43]OFD Sender: No OFD packet to send [17:29:48]OFD Sender: No OFD packet to send [17:29:53]OFD Sender: No OFD packet to send [17:29:58]OFD Sender: No OFD packet to send [17:30:03]OFD Sender: No OFD packet to send [17:30:08]OFD Sender: No OFD packet to send [17:30:13]OFD Sender: No OFD packet to send [17:30:18]OFD Sender: No OFD packet to send [17:30:23]OFD Sender: No OFD packet to send [17:30:28]OFD Sender: No OFD packet to send [17:30:33]OFD Sender: No OFD packet to send [17:30:38]OFD Sender: No OFD packet to send [17:30:43]OFD Sender: No OFD packet to send [17:30:48]OFD Sender: No OFD packet to send [17:30:53]OFD Sender: No OFD packet to send [17:30:58]OFD Sender: No OFD packet to send [17:31:03]OFD Sender: No OFD packet to send [17:31:08]OFD Sender: No OFD packet to send [17:31:13]OFD Sender: No OFD packet to send [17:31:18]OFD Sender: No OFD packet to send [17:31:23]OFD Sender: No OFD packet to send [17:31:28]OFD Sender: No OFD packet to send [17:31:33]OFD Sender: No OFD packet to send [17:31:38]OFD Sender: No OFD packet to send [17:31:43]OFD Sender: No OFD packet to send [17:31:48]OFD Sender: No OFD packet to send [17:31:53]OFD Sender: No OFD packet to send [17:31:58]OFD Sender: No OFD packet to send [17:32:03]OFD Sender: No OFD packet to send [17:32:08]OFD Sender: No OFD packet to send [17:32:13]OFD Sender: No OFD packet to send [17:32:18]OFD Sender: No OFD packet to send [17:32:23]OFD Sender: No OFD packet to send [17:32:28]OFD Sender: No OFD packet to send [17:32:33]OFD Sender: No OFD packet to send [17:32:38]OFD Sender: No OFD packet to send [17:32:43]OFD Sender: No OFD packet to send [17:32:48]OFD Sender: No OFD packet to send [17:32:53]OFD Sender: No OFD packet to send [17:32:58]OFD Sender: No OFD packet to send [17:33:03]OFD Sender: No OFD packet to send [17:33:07]accept exits with 7 [17:33:07]New connection [17:33:07]New thread 3066965348 created [17:33:07]Thread 3066821988 joined [17:33:07]Waiting for new connection... [17:33:07] Sock 7.Parse request [17:33:07]Sock 7.Check first char [17:33:07]Sock 7.First char is OK [17:33:07]request: POST /json_proto HTTP/1.0 [17:33:07]Method: POST [17:33:07]URL: /json_proto [17:33:07]Method is POST - this is cgi request [17:33:07]url: /json_proto [17:33:07]query_string will be loaded in cgi processing [17:33:07]execute_cgi json_proto POST (null) [17:33:07]execute_cgi path=json_proto method=POST [17:33:07]POST find Content-Length [17:33:07]Host: 172.17.39.68:8080 [17:33:07]Content-Length: 689 [17:33:07]Content-Type: application/json [17:33:07] [17:33:07]POST finish read [17:33:07]Found Content-Length = 689 [17:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214370", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:07]execute_script... [17:33:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214370", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:33:07]POST & json_proto [17:33:07]process_json_proto [17:33:07]json parsed OK: [17:33:07]protocol is kg_v1.0 [17:33:07]action value=close_receipt [17:33:07]process_action close_receipt [17:33:07]cmd_close_receipt [17:33:07]MH_GetDate [17:33:07]Write to MH i2c: F0 00 00 5F 2B 79 [17:33:07]Write i2c OK [17:33:07]MH_I2C_Read... [17:33:07]Read from MH i2c: F0 [17:33:07]MH_I2C_Read... [17:33:07]Read from MH i2c: F0 09 00 [17:33:07]MH_I2C_Read... [17:33:07]Read from MH i2c: F0 09 00 5F 2B 00 D8 AE 96 66 D6 48 95 66 1D [17:33:07]GetLastDocTimeStamp 1721150325 [17:33:07]current date 1721151192 [17:33:07]FM_GetShiftState [17:33:07]SAM_PROTO_GetShiftState [17:33:07]wFMCommunicate request_size=4 [17:33:07]MH_SAM_APDU [17:33:07]CAPDU: 80 13 01 00 [17:33:07]Write to MH i2c: E2 08 00 60 2B 80 13 01 00 00 00 00 00 08 [17:33:07]Write i2c OK [17:33:07]MH_I2C_Read... [17:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:07]Read from MH i2c: E2 [17:33:07]MH_I2C_Read... [17:33:07]Read from MH i2c: E2 0E 00 [17:33:07]MH_I2C_Read... [17:33:07]Read from MH i2c: E2 0E 00 60 2B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 57 [17:33:07]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:33:07]wFMCommunicate OK [17:33:07]SAM_PROTO_GetShiftState done [17:33:07]FM_GetShiftState done [17:33:07]opened in 1721088399 [17:33:07]opened+sec_in_day 1721174799 [17:33:07]quantity*price = 10000 [17:33:07]sum+1 = 10001 [17:33:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 108 16.07.2024 17:33 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31789 ФПД: 166905853357878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T173312&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31789&fm=166905853357878&tin=02508201610067®Number=0000000000098025&sum=10000 0 [17:33:08]StoreToDocumentArchive [17:33:08]shift 371 fd 31789 [17:33:08]save to /storage/0371/doc_00031789 [17:33:08]save last doc name /storage/0371/doc_00031789 to /storage/kkm_last_doc_name [17:33:08]save OK [17:33:08]Clear old archive folders... [17:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=293 [17:33:08]tlvbuf is 015182C0 [17:33:08]SAM_PROTO_ClearQueue [17:33:08]wFMCommunicate request_size=4 [17:33:08]MH_SAM_APDU [17:33:08]CAPDU: 80 09 00 00 [17:33:08]Write to MH i2c: E2 08 00 6D 2B 80 09 00 00 00 00 00 00 0A [17:33:08]Write i2c OK [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 [17:33:08]MH_I2C_Read... [17:33:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:33:08]Read from MH i2c: E2 03 00 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 03 00 6D 2B 00 90 00 0C [17:33:08]RAPDU: 90 00 [17:33:08]wFMCommunicate OK [17:33:08]SAM_PROTO_ClearQueue done [17:33:08]KKMCreateOFDPacket [17:33:08]OFDProtocolAddRootSTLVToBuf [17:33:08]FM_MakeSignedData [17:33:08]FM_MakeSignedData [17:33:08]SAM_PROTO_SignData [17:33:08]wFMCommunicate request_size=4 [17:33:08]MH_SAM_APDU [17:33:08]CAPDU: 80 0D 01 02 [17:33:08]Write to MH i2c: E2 08 00 6E 2B 80 0D 01 02 00 00 00 00 12 [17:33:08]Write i2c OK [17:33:08]MH_I2C_Read... [17:33:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:33:08]Read from MH i2c: E2 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 03 00 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 03 00 6E 2B 00 90 00 0D [17:33:08]RAPDU: 90 00 [17:33:08]wFMCommunicate OK [17:33:08]wFMCommunicate request_size=255 [17:33:08]MH_SAM_APDU [17:33:08]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 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 D8 AE 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [17:33:08]Write to MH i2c: E2 02 01 6F 2B 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 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 D8 AE 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 2D [17:33:08]Write i2c OK [17:33:08]MH_I2C_Read... [17:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:08]Read from MH i2c: E2 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 03 00 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 03 00 6F 2B 00 90 00 0E [17:33:08]RAPDU: 90 00 [17:33:08]wFMCommunicate OK [17:33:08]wFMCommunicate request_size=52 [17:33:08]MH_SAM_APDU [17:33:08]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2D 7C 00 00 35 04 06 00 97 CC CC 19 AF 36 [17:33:08]Write to MH i2c: E2 37 00 70 2B 80 0D 02 02 2F 00 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2D 7C 00 00 35 04 06 00 97 CC CC 19 AF 36 00 00 B5 [17:33:08]Write i2c OK [17:33:08]MH_I2C_Read... [17:33:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:33:08]Read from MH i2c: E2 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 03 00 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 03 00 70 2B 00 90 00 0F [17:33:08]RAPDU: 90 00 [17:33:08]wFMCommunicate OK [17:33:08]wFMCommunicate request_size=4 [17:33:08]MH_SAM_APDU [17:33:08]CAPDU: 80 0D 03 02 [17:33:08]Write to MH i2c: E2 08 00 71 2B 80 0D 03 02 00 00 00 00 17 [17:33:08]Write i2c OK [17:33:08]MH_I2C_Read... [17:33:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:33:08]Read from MH i2c: E2 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 0B 00 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 0B 00 71 2B 00 98 E7 43 F1 4E BC E3 92 90 00 4A [17:33:08]RAPDU: 98 E7 43 F1 4E BC E3 92 90 00 [17:33:08]wFMCommunicate OK [17:33:08]SAM_PROTO_SignData done [17:33:08]FM_MakeSignedData done [17:33:08]CreateOFDProtocolMessage [17:33:08]wFMCommunicate request_size=4 [17:33:08]MH_SAM_APDU [17:33:08]CAPDU: 80 11 00 00 [17:33:08]Write to MH i2c: E2 08 00 72 2B 80 11 00 00 00 00 00 00 17 [17:33:08]Write i2c OK [17:33:08]MH_I2C_Read... [17:33:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:08]Read from MH i2c: E2 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 17 00 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: E2 17 00 72 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 72 [17:33:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:33:08]wFMCommunicate OK [17:33:08]CreateOFDProtocolMessage done [17:33:08]OFDSenderStorePacket 31789 [17:33:08]StoreOFDPacket docnum=31789 [17:33:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 8F 28 31 01 08 6A 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 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 D8 AE 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2D 7C 00 00 35 04 06 00 97 CC CC 19 AF 36 98 E7 43 F1 4E BC E3 92 [17:33:08]CheckFolder [17:33:08]dirname=/storage/ofd_packets [17:33:08]CheckFolder done [17:33:08]ProducePacketName [17:33:08]name=ofd_packets/00031789 [17:33:08]NVStorageSaveData ofd_packets/00031789 [17:33:08]File name is /storage/ofd_packets/00031789 [17:33:08]Write 343 bytes [17:33:08]NVStorageSaveData done [17:33:08]OFDSenderStorePacket done [17:33:08]KKMCreateOFDPacket done [17:33:08]NVStorageSaveData kkm_last_timestamp [17:33:08]File name is /storage/kkm_last_timestamp [17:33:08]Write 4 bytes [17:33:08]NVStorageSaveData done [17:33:08]ExternCall_PrintAddStr [17:33:08]wPrintStart [17:33:08]Write to MH i2c: 01 00 00 73 2B 9E [17:33:08]Write i2c OK [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: 01 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: 01 07 00 [17:33:08]MH_I2C_Read... [17:33:08]Read from MH i2c: 01 07 00 73 2B 00 00 00 00 00 FF 0F B3 [17:33:08]RasterBufferAndPrint [17:33:08]line Счет N : (3)214370 [17:33:08]line ИНН: 02508201610067 [17:33:08]line Контрольно-Кассовый Чек [17:33:08]line ПРОДАЖА [17:33:08]line Товар: 4870002326172 [17:33:08]line Вода ASU пит н.газ лимон ПЭТ 1л [17:33:08]line 1.000 * 100.00 [17:33:08]line = 100.00 [17:33:08]line НДС 12% НСП 1% [17:33:08]line > о реализуемом товаре [17:33:08]line ИТОГО: 100.00 [17:33:08]line НСП 1% : 0.88 [17:33:08]line НДС 12% : 10.62 [17:33:08]line Наличными: 100.00 [17:33:08]line Безнал.: 0.00 [17:33:08]line Место: АЗС № 140 "Партнер Нефть" [17:33:08]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:33:08]line СНО: Общий режим [17:33:08]line Чек 108 16.07.2024 17:33 [17:33:08]line Смена: 371 ФФД: 1.0 [17:33:08]line ЗНМ: 0300000189 [17:33:08]line РНМ: 0000000000098025 [17:33:08]line Версия ККМ: 001 [17:33:08]line ФМ: 0000000000965389 [17:33:08]line ФД: 31789 [17:33:08]line ФПД: 166905853357878 [17:33:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T173312&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31789&fm=166905853357878&tin=02508201610067®Number=0000000000098025&sum=10000 [17:33:09]line 0 [17:33:09]OFD Sender: Processing packet 31789 [packets to send 6, broken 5] [17:33:09]ProducePacketName [17:33:09]name=ofd_packets/00031789 [17:33:09]OFD Sender: To server: pG, [17:33:09]CommunicateWithHost lk.salyk.kg:30040 [17:33:09]ConnectInit lk.salyk.kg [17:33:09]written 0, free lines is 4095 [17:33:09]Connected sock=10 [17:33:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 8F 28 31 01 08 6A 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 30 32 33 32 36 31 37 32 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 D8 AE 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2D 7C 00 00 35 04 06 00 97 CC CC 19 AF 36 98 E7 43 F1 4E BC E3 92 [17:33:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 27 DA 47 00 29 C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2D 7C 00 00 F4 03 04 00 E5 5A 96 66 B6 04 01 00 00 8D 1F AA 63 9A 83 AE 43 [17:33:09]CommunicateWithHost err = 0 [17:33:09]CheckOFDResponse [17:33:09]1017 (14) - 77093643461234 [17:33:09]1041 (16) - 0000000000965389 [17:33:09]1040 (4) - 31789 [17:33:09]1012 (4) - 16.07.2024 11:35 [17:33:09]1206 (1) - 0 [17:33:09]OFD Sender: Remove packet 31789 [17:33:09]ProducePacketName [17:33:09]name=ofd_packets/00031789 [17:33:09]NVStorageDeleteData [17:33:09]Write to MH i2c: 01 00 00 9C 2B C7 [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: 01 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: 01 07 00 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: 01 07 00 9C 2B 00 00 00 00 00 02 0D DD [17:33:09]RasterBufferAndPrint [17:33:09]line [17:33:09]line [17:33:09]line [17:33:09]line [17:33:09]line [17:33:09]written 0, free lines is 3337 [17:33:09]MH_Cut [17:33:09]Write to MH i2c: D1 01 00 A3 2B 01 A0 [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: D1 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: D1 01 00 [17:33:09]MH_I2C_Read... [17:33:09]Read from MH i2c: D1 01 00 A3 2B 00 9F [17:33:09]Write to MH i2c: 01 00 00 A4 2B CF [17:33:09]Write i2c OK [17:33:09]MH_I2C_Read... [17:33:09]OFD Sender: No OFD packet to send [17:33:10]*** Cut start [17:33:10]*** Partial cut [17:33:10]*** CUTSNS_PIN = 1 [17:33:10]*** CUTSNS_PIN = 0 [17:33:10]*** Brake cut motor [17:33:10]Read from MH i2c: 01 [17:33:10]MH_I2C_Read... [17:33:10]*** Stop cut motor [17:33:10]*** Cut end [17:33:10]Read from MH i2c: 01 07 00 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: 01 07 00 A4 2B 00 00 00 00 00 FF 0F E4 [17:33:10]process_action close_receipt done [17:33:10]requested_data is exist [17:33:10]produce_requested_data [17:33:10]requested_item fm.sn is exist - process it [17:33:10]wFMCommunicate request_size=4 [17:33:10]MH_SAM_APDU [17:33:10]CAPDU: 80 11 00 00 [17:33:10]Write to MH i2c: E2 08 00 A5 2B 80 11 00 00 00 00 00 00 4A [17:33:10]Write i2c OK [17:33:10]MH_I2C_Read... [17:33:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:33:10]Read from MH i2c: E2 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: E2 17 00 [17:33:10]MH_I2C_Read... [17:33:10]Read from MH i2c: E2 17 00 A5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A5 [17:33:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:33:10]wFMCommunicate OK [17:33:10]requested_item fd.num is exist - process it [17:33:10]SAM_PROTO_GetFieldsCounters [17:33:10]wFMCommunicate request_size=4 [17:33:10]MH_SAM_APDU [17:33:10]CAPDU: 80 13 00 00 [17:33:10]Write to MH i2c: E2 08 00 A6 2B 80 13 00 00 00 00 00 00 4D [17:33:10]Write i2c OK [17:33:10]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 62 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 62 00 A6 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2D 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [17:33:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2D 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:33:11]wFMCommunicate OK [17:33:11]SAM_PROTO_GetFieldsCounters done [17:33:11]requested_item shift.num is exist - process it [17:33:11]requested_item shift.opened is exist - process it [17:33:11]req_shift_opened [17:33:11]FM_GetShiftState [17:33:11]SAM_PROTO_GetShiftState [17:33:11]wFMCommunicate request_size=4 [17:33:11]MH_SAM_APDU [17:33:11]CAPDU: 80 13 01 00 [17:33:11]Write to MH i2c: E2 08 00 A7 2B 80 13 01 00 00 00 00 00 4F [17:33:11]Write i2c OK [17:33:11]MH_I2C_Read... [17:33:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:33:11]Read from MH i2c: E2 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 0E 00 [17:33:11]MH_I2C_Read... [17:33:11]Read from MH i2c: E2 0E 00 A7 2B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 9E [17:33:11]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:33:11]wFMCommunicate OK [17:33:11]SAM_PROTO_GetShiftState done [17:33:11]FM_GetShiftState done [17:33:11]req_shift_opened done [17:33:11]requested_item shift.open_date is exist - process it [17:33:11]req_shift_open_date [17:33:11]req_shift_open_date done [17:33:11]produce_requested_data done [17:33:11]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31789,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [17:33:11]process_action_free close_receipt [17:33:11]json_value_free [17:33:11]json_value_free done [17:33:11]process_json_proto returns [17:33:11]Send response to host [17:33:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31789,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [17:33:11]free response buf [17:33:11]execute_script done [17:33:11]execute_script returns [17:33:11]free content buf [17:33:11]Sock 7.Close socket [17:33:11]Sock 7.Thread stoped [17:33:14]OFD Sender: No OFD packet to send [17:33:19]OFD Sender: No OFD packet to send [17:33:24]OFD Sender: No OFD packet to send [17:33:29]OFD Sender: No OFD packet to send [17:33:34]OFD Sender: No OFD packet to send [17:33:39]OFD Sender: No OFD packet to send [17:33:44]OFD Sender: No OFD packet to send [17:33:49]OFD Sender: No OFD packet to send [17:33:54]OFD Sender: No OFD packet to send [17:33:59]OFD Sender: No OFD packet to send [17:34:04]OFD Sender: No OFD packet to send [17:34:09]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:48]accept exits with 9 [17:34:48]New connection [17:34:48]New thread 3066821988 created [17:34:48]Thread 3066965348 joined [17:34:48]Waiting for new connection... [17:34:48] Sock 9.Parse request [17:34:48]Sock 9.Check first char [17:34:48]Sock 9.First char is OK [17:34:48]request: POST /json_proto HTTP/1.0 [17:34:48]Method: POST [17:34:48]URL: /json_proto [17:34:48]Method is POST - this is cgi request [17:34:48]url: /json_proto [17:34:48]query_string will be loaded in cgi processing [17:34:48]execute_cgi json_proto POST (null) [17:34:48]execute_cgi path=json_proto method=POST [17:34:48]POST find Content-Length [17:34:48]Host: 172.17.39.68:8080 [17:34:48]Content-Length: 932 [17:34:48]Content-Type: application/json [17:34:48] [17:34:48]POST finish read [17:34:48]Found Content-Length = 932 [17:34:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214371", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims 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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:48]execute_script... [17:34:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214371", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims 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" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:48]POST & json_proto [17:34:48]process_json_proto [17:34:48]json parsed OK: [17:34:48]protocol is kg_v1.0 [17:34:48]action value=close_receipt [17:34:48]process_action close_receipt [17:34:48]cmd_close_receipt [17:34:48]MH_GetDate [17:34:48]Write to MH i2c: F0 00 00 A8 2B C2 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: F0 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: F0 09 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: F0 09 00 A8 2B 00 3D AF 96 66 D6 48 95 66 CC [17:34:48]GetLastDocTimeStamp 1721151192 [17:34:48]current date 1721151293 [17:34:48]FM_GetShiftState [17:34:48]SAM_PROTO_GetShiftState [17:34:48]wFMCommunicate request_size=4 [17:34:48]MH_SAM_APDU [17:34:48]CAPDU: 80 13 01 00 [17:34:48]Write to MH i2c: E2 08 00 A9 2B 80 13 01 00 00 00 00 00 51 [17:34:48]Write i2c OK [17:34:48]MH_I2C_Read... [17:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:48]Read from MH i2c: E2 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 0E 00 [17:34:48]MH_I2C_Read... [17:34:48]Read from MH i2c: E2 0E 00 A9 2B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A0 [17:34:48]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:34:48]wFMCommunicate OK [17:34:48]SAM_PROTO_GetShiftState done [17:34:48]FM_GetShiftState done [17:34:48]opened in 1721088399 [17:34:48]opened+sec_in_day 1721174799 [17:34:48]quantity*price = 12500 [17:34:48]sum+1 = 12501 [17:34:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48741224 Сигареты Winston Super Slims Blue 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 109 16.07.2024 17:34 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31790 ФПД: 278345330204918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T173453&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31790&fm=278345330204918&tin=02508201610067®Number=0000000000098025&sum=26000 0 [17:34:49]StoreToDocumentArchive [17:34:49]shift 371 fd 31790 [17:34:49]save to /storage/0371/doc_00031790 [17:34:49]save last doc name /storage/0371/doc_00031790 to /storage/kkm_last_doc_name [17:34:49]save OK [17:34:49]Clear old archive folders... [17:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=402 [17:34:49]tlvbuf is B6EDD700 [17:34:49]SAM_PROTO_ClearQueue [17:34:49]wFMCommunicate request_size=4 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 09 00 00 [17:34:49]Write to MH i2c: E2 08 00 B6 2B 80 09 00 00 00 00 00 00 53 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 B6 2B 00 90 00 55 [17:34:49]RAPDU: 90 00 [17:34:49]wFMCommunicate OK [17:34:49]SAM_PROTO_ClearQueue done [17:34:49]KKMCreateOFDPacket [17:34:49]OFDProtocolAddRootSTLVToBuf [17:34:49]FM_MakeSignedData [17:34:49]FM_MakeSignedData [17:34:49]SAM_PROTO_SignData [17:34:49]wFMCommunicate request_size=4 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 0D 01 02 [17:34:49]Write to MH i2c: E2 08 00 B7 2B 80 0D 01 02 00 00 00 00 5B [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 B7 2B 00 90 00 56 [17:34:49]RAPDU: 90 00 [17:34:49]wFMCommunicate OK [17:34:49]wFMCommunicate request_size=255 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 0D 02 02 FA 03 00 92 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 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 90 65 00 00 00 [17:34:49]Write to MH i2c: E2 02 01 B8 2B 80 0D 02 02 FA 00 03 00 92 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 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 90 65 00 00 00 00 00 60 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:49]Read from MH i2c: E2 03 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 B8 2B 00 90 00 57 [17:34:49]RAPDU: 90 00 [17:34:49]wFMCommunicate OK [17:34:49]wFMCommunicate request_size=161 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 0D 02 02 9C 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 6D 00 00 00 F4 03 04 00 3D AF 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2E 7C 00 00 35 04 06 00 FD 27 52 88 20 F6 [17:34:49]Write to MH i2c: E2 A4 00 B9 2B 80 0D 02 02 9C 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 6D 00 00 00 F4 03 04 00 3D AF 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2E 7C 00 00 35 04 06 00 FD 27 52 88 20 F6 00 00 0F [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:49]Read from MH i2c: E2 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 [17:34:49]MH_I2C_Read... [17:34:49]Read from MH i2c: E2 03 00 B9 2B 00 90 00 58 [17:34:49]RAPDU: 90 00 [17:34:49]wFMCommunicate OK [17:34:49]wFMCommunicate request_size=4 [17:34:49]MH_SAM_APDU [17:34:49]CAPDU: 80 0D 03 02 [17:34:49]Write to MH i2c: E2 08 00 BA 2B 80 0D 03 02 00 00 00 00 60 [17:34:49]Write i2c OK [17:34:49]MH_I2C_Read... [17:34:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:49]OFD Sender: No OFD packet to send [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 0B 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 0B 00 BA 2B 00 98 37 1B 81 F0 8D 66 53 90 00 02 [17:34:50]RAPDU: 98 37 1B 81 F0 8D 66 53 90 00 [17:34:50]wFMCommunicate OK [17:34:50]SAM_PROTO_SignData done [17:34:50]FM_MakeSignedData done [17:34:50]CreateOFDProtocolMessage [17:34:50]wFMCommunicate request_size=4 [17:34:50]MH_SAM_APDU [17:34:50]CAPDU: 80 11 00 00 [17:34:50]Write to MH i2c: E2 08 00 BB 2B 80 11 00 00 00 00 00 00 60 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:50]Read from MH i2c: E2 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 17 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: E2 17 00 BB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BB [17:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:34:50]wFMCommunicate OK [17:34:50]CreateOFDProtocolMessage done [17:34:50]OFDSenderStorePacket 31790 [17:34:50]StoreOFDPacket docnum=31790 [17:34:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A6 01 00 00 FF F4 9E 01 D1 12 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 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 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 6D 00 00 00 F4 03 04 00 3D AF 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2E 7C 00 00 35 04 06 00 FD 27 52 88 20 F6 98 37 1B 81 F0 8D 66 53 [17:34:50]CheckFolder [17:34:50]dirname=/storage/ofd_packets [17:34:50]CheckFolder done [17:34:50]ProducePacketName [17:34:50]name=ofd_packets/00031790 [17:34:50]NVStorageSaveData ofd_packets/00031790 [17:34:50]File name is /storage/ofd_packets/00031790 [17:34:50]Write 452 bytes [17:34:50]NVStorageSaveData done [17:34:50]OFDSenderStorePacket done [17:34:50]KKMCreateOFDPacket done [17:34:50]NVStorageSaveData kkm_last_timestamp [17:34:50]File name is /storage/kkm_last_timestamp [17:34:50]Write 4 bytes [17:34:50]NVStorageSaveData done [17:34:50]ExternCall_PrintAddStr [17:34:50]wPrintStart [17:34:50]Write to MH i2c: 01 00 00 BC 2B E7 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 BC 2B 00 00 00 00 00 FF 0F FC [17:34:50]RasterBufferAndPrint [17:34:50]line Счет N : (3)214371 [17:34:50]line ИНН: 02508201610067 [17:34:50]line Контрольно-Кассовый Чек [17:34:50]line ПРОДАЖА [17:34:50]line Товар: 4870202521247 [17:34:50]line Напиток MAXI чай 1,2 черн.персик [17:34:50]line 1.000 * 125.00 [17:34:50]line = 125.00 [17:34:50]line НДС 12% НСП 1% [17:34:50]line > о реализуемом товаре [17:34:50]line Товар: 48741224 [17:34:50]line Сигареты Winston Super Slims Blue [17:34:50]line 1.000 * 135.00 [17:34:50]line = 135.00 [17:34:50]line НДС 12% НСП 1% [17:34:50]line > о реализуемом товаре [17:34:50]line ИТОГО: 260.00 [17:34:50]line НСП 1% : 2.30 [17:34:50]line НДС 12% : 27.61 [17:34:50]line Наличными: 260.00 [17:34:50]line Безнал.: 0.00 [17:34:50]line Место: АЗС № 140 "Партнер Нефть" [17:34:50]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:34:50]line СНО: Общий режим [17:34:50]line Чек 109 16.07.2024 17:34 [17:34:50]line Смена: 371 ФФД: 1.0 [17:34:50]line ЗНМ: 0300000189 [17:34:50]line РНМ: 0000000000098025 [17:34:50]line Версия ККМ: 001 [17:34:50]line ФМ: 0000000000965389 [17:34:50]line ФД: 31790 [17:34:50]line ФПД: 278345330204918 [17:34:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T173453&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31790&fm=278345330204918&tin=02508201610067®Number=0000000000098025&sum=26000 [17:34:50]line 0 [17:34:50]OFD Sender: Processing packet 31790 [packets to send 6, broken 5] [17:34:50]ProducePacketName [17:34:50]name=ofd_packets/00031790 [17:34:50]OFD Sender: To server: pG, [17:34:50]CommunicateWithHost lk.salyk.kg:30040 [17:34:50]ConnectInit lk.salyk.kg [17:34:50]written 0, free lines is 4095 [17:34:50]Connected sock=10 [17:34:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A6 01 00 00 FF F4 9E 01 D1 12 5A 03 01 00 03 00 92 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 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 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 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 6D 00 00 00 F4 03 04 00 3D AF 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2E 7C 00 00 35 04 06 00 FD 27 52 88 20 F6 98 37 1B 81 F0 8D 66 53 [17:34:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 FA 01 47 00 40 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2E 7C 00 00 F4 03 04 00 4A 5B 96 66 B6 04 01 00 00 B8 2C 06 83 C9 DA A7 08 [17:34:50]CommunicateWithHost err = 0 [17:34:50]CheckOFDResponse [17:34:50]1017 (14) - 77093643461234 [17:34:50]1041 (16) - 0000000000965389 [17:34:50]1040 (4) - 31790 [17:34:50]1012 (4) - 16.07.2024 11:36 [17:34:50]1206 (1) - 0 [17:34:50]OFD Sender: Remove packet 31790 [17:34:50]ProducePacketName [17:34:50]name=ofd_packets/00031790 [17:34:50]NVStorageDeleteData [17:34:50]Write to MH i2c: 01 00 00 EC 2B 17 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: 01 07 00 EC 2B 00 00 00 00 00 7C 0C A6 [17:34:50]RasterBufferAndPrint [17:34:50]line [17:34:50]line [17:34:50]line [17:34:50]line [17:34:50]line [17:34:50]written 0, free lines is 3203 [17:34:50]MH_Cut [17:34:50]Write to MH i2c: D1 01 00 F3 2B 01 F0 [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: D1 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: D1 01 00 [17:34:50]MH_I2C_Read... [17:34:50]Read from MH i2c: D1 01 00 F3 2B 00 EF [17:34:50]Write to MH i2c: 01 00 00 F4 2B 1F [17:34:50]Write i2c OK [17:34:50]MH_I2C_Read... [17:34:51]OFD Sender: No OFD packet to send [17:34:51]*** Cut start [17:34:51]*** Partial cut [17:34:51]*** CUTSNS_PIN = 1 [17:34:51]*** CUTSNS_PIN = 0 [17:34:52]*** Brake cut motor [17:34:52]Read from MH i2c: 01 [17:34:52]MH_I2C_Read... [17:34:52]*** Stop cut motor [17:34:52]*** Cut end [17:34:52]Read from MH i2c: 01 07 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: 01 07 00 F4 2B 00 00 00 00 00 FF 0F 34 [17:34:52]process_action close_receipt done [17:34:52]requested_data is exist [17:34:52]produce_requested_data [17:34:52]requested_item fm.sn is exist - process it [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 11 00 00 [17:34:52]Write to MH i2c: E2 08 00 F5 2B 80 11 00 00 00 00 00 00 9A [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 17 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 17 00 F5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F5 [17:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:34:52]wFMCommunicate OK [17:34:52]requested_item fd.num is exist - process it [17:34:52]SAM_PROTO_GetFieldsCounters [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 13 00 00 [17:34:52]Write to MH i2c: E2 08 00 F6 2B 80 13 00 00 00 00 00 00 9D [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 62 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 62 00 F6 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2E 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [17:34:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2E 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:52]wFMCommunicate OK [17:34:52]SAM_PROTO_GetFieldsCounters done [17:34:52]requested_item shift.num is exist - process it [17:34:52]requested_item shift.opened is exist - process it [17:34:52]req_shift_opened [17:34:52]FM_GetShiftState [17:34:52]SAM_PROTO_GetShiftState [17:34:52]wFMCommunicate request_size=4 [17:34:52]MH_SAM_APDU [17:34:52]CAPDU: 80 13 01 00 [17:34:52]Write to MH i2c: E2 08 00 F7 2B 80 13 01 00 00 00 00 00 9F [17:34:52]Write i2c OK [17:34:52]MH_I2C_Read... [17:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:52]Read from MH i2c: E2 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 0E 00 [17:34:52]MH_I2C_Read... [17:34:52]Read from MH i2c: E2 0E 00 F7 2B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 EE [17:34:52]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:34:52]wFMCommunicate OK [17:34:52]SAM_PROTO_GetShiftState done [17:34:52]FM_GetShiftState done [17:34:52]req_shift_opened done [17:34:52]requested_item shift.open_date is exist - process it [17:34:52]req_shift_open_date [17:34:52]req_shift_open_date done [17:34:52]produce_requested_data done [17:34:52]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31790,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [17:34:52]process_action_free close_receipt [17:34:52]json_value_free [17:34:52]json_value_free done [17:34:52]process_json_proto returns [17:34:52]Send response to host [17:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31790,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [17:34:52]free response buf [17:34:52]execute_script done [17:34:52]execute_script returns [17:34:52]free content buf [17:34:52]Sock 9.Close socket [17:34:52]Sock 9.Thread stoped [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [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:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:05]accept exits with 7 [17:42:05]New connection [17:42:05]New thread 3066965348 created [17:42:05]Thread 3066821988 joined [17:42:05]Waiting for new connection... [17:42:05] Sock 7.Parse request [17:42:05]Sock 7.Check first char [17:42:05]Sock 7.First char is OK [17:42:05]request: POST /json_proto HTTP/1.0 [17:42:05]Method: POST [17:42:05]URL: /json_proto [17:42:05]Method is POST - this is cgi request [17:42:05]url: /json_proto [17:42:05]query_string will be loaded in cgi processing [17:42:05]execute_cgi json_proto POST (null) [17:42:05]execute_cgi path=json_proto method=POST [17:42:05]POST find Content-Length [17:42:05]Host: 172.17.39.68:8080 [17:42:05]Content-Length: 668 [17:42:05]Content-Type: application/json [17:42:05] [17:42:05]POST finish read [17:42:05]Found Content-Length = 668 [17:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214372", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 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" ] } } [17:42:05]execute_script... [17:42:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214372", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 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" ] } } [17:42:05]POST & json_proto [17:42:05]process_json_proto [17:42:05]json parsed OK: [17:42:05]protocol is kg_v1.0 [17:42:05]action value=close_receipt [17:42:05]process_action close_receipt [17:42:05]cmd_close_receipt [17:42:05]MH_GetDate [17:42:05]Write to MH i2c: F0 00 00 F8 2B 12 [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: F0 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: F0 09 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: F0 09 00 F8 2B 00 F2 B0 96 66 D6 48 95 66 D2 [17:42:05]GetLastDocTimeStamp 1721151293 [17:42:05]current date 1721151730 [17:42:05]FM_GetShiftState [17:42:05]SAM_PROTO_GetShiftState [17:42:05]wFMCommunicate request_size=4 [17:42:05]MH_SAM_APDU [17:42:05]CAPDU: 80 13 01 00 [17:42:05]Write to MH i2c: E2 08 00 F9 2B 80 13 01 00 00 00 00 00 A1 [17:42:05]Write i2c OK [17:42:05]MH_I2C_Read... [17:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:05]Read from MH i2c: E2 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 0E 00 [17:42:05]MH_I2C_Read... [17:42:05]Read from MH i2c: E2 0E 00 F9 2B 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F0 [17:42:05]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:42:05]wFMCommunicate OK [17:42:05]SAM_PROTO_GetShiftState done [17:42:05]FM_GetShiftState done [17:42:05]opened in 1721088399 [17:42:05]opened+sec_in_day 1721174799 [17:42:05]quantity*price = 22500 [17:42:05]sum+1 = 22501 [17:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 110 16.07.2024 17:42 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31791 ФПД: 233218132682066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T174210&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31791&fm=233218132682066&tin=02508201610067®Number=0000000000098025&sum=22500 0 [17:42:06]StoreToDocumentArchive [17:42:06]shift 371 fd 31791 [17:42:06]save to /storage/0371/doc_00031791 [17:42:06]save last doc name /storage/0371/doc_00031791 to /storage/kkm_last_doc_name [17:42:06]save OK [17:42:06]Clear old archive folders... [17:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=296 [17:42:06]tlvbuf is 0147BF30 [17:42:06]SAM_PROTO_ClearQueue [17:42:06]wFMCommunicate request_size=4 [17:42:06]MH_SAM_APDU [17:42:06]CAPDU: 80 09 00 00 [17:42:06]Write to MH i2c: E2 08 00 06 2C 80 09 00 00 00 00 00 00 A4 [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:06]Read from MH i2c: E2 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 06 2C 00 90 00 A6 [17:42:06]RAPDU: 90 00 [17:42:06]wFMCommunicate OK [17:42:06]SAM_PROTO_ClearQueue done [17:42:06]KKMCreateOFDPacket [17:42:06]OFDProtocolAddRootSTLVToBuf [17:42:06]FM_MakeSignedData [17:42:06]FM_MakeSignedData [17:42:06]SAM_PROTO_SignData [17:42:06]wFMCommunicate request_size=4 [17:42:06]MH_SAM_APDU [17:42:06]CAPDU: 80 0D 01 02 [17:42:06]Write to MH i2c: E2 08 00 07 2C 80 0D 01 02 00 00 00 00 AC [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:06]Read from MH i2c: E2 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 07 2C 00 90 00 A7 [17:42:06]RAPDU: 90 00 [17:42:06]wFMCommunicate OK [17:42:06]wFMCommunicate request_size=255 [17:42:06]MH_SAM_APDU [17:42:06]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 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 2D 34 30 20 D0 B7 D0 B5 D0 BB 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 6E 00 00 00 F4 03 04 00 F2 B0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [17:42:06]Write to MH i2c: E2 02 01 08 2C 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 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 2D 34 30 20 D0 B7 D0 B5 D0 BB 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 6E 00 00 00 F4 03 04 00 F2 B0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 B4 [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:06]Read from MH i2c: E2 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 08 2C 00 90 00 A8 [17:42:06]RAPDU: 90 00 [17:42:06]wFMCommunicate OK [17:42:06]wFMCommunicate request_size=55 [17:42:06]MH_SAM_APDU [17:42:06]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2F 7C 00 00 35 04 06 00 D4 1C 53 F4 25 52 [17:42:06]Write to MH i2c: E2 3A 00 09 2C 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2F 7C 00 00 35 04 06 00 D4 1C 53 F4 25 52 00 00 68 [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]OFD Sender: No OFD packet to send [17:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:06]Read from MH i2c: E2 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 03 00 09 2C 00 90 00 A9 [17:42:06]RAPDU: 90 00 [17:42:06]wFMCommunicate OK [17:42:06]wFMCommunicate request_size=4 [17:42:06]MH_SAM_APDU [17:42:06]CAPDU: 80 0D 03 02 [17:42:06]Write to MH i2c: E2 08 00 0A 2C 80 0D 03 02 00 00 00 00 B1 [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:06]Read from MH i2c: E2 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 0B 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 0B 00 0A 2C 00 E3 7D 86 8D F4 75 77 40 90 00 45 [17:42:06]RAPDU: E3 7D 86 8D F4 75 77 40 90 00 [17:42:06]wFMCommunicate OK [17:42:06]SAM_PROTO_SignData done [17:42:06]FM_MakeSignedData done [17:42:06]CreateOFDProtocolMessage [17:42:06]wFMCommunicate request_size=4 [17:42:06]MH_SAM_APDU [17:42:06]CAPDU: 80 11 00 00 [17:42:06]Write to MH i2c: E2 08 00 0B 2C 80 11 00 00 00 00 00 00 B1 [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:06]Read from MH i2c: E2 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 17 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: E2 17 00 0B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 0C [17:42:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:42:06]wFMCommunicate OK [17:42:06]CreateOFDProtocolMessage done [17:42:06]OFDSenderStorePacket 31791 [17:42:06]StoreOFDPacket docnum=31791 [17:42:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 52 72 34 01 74 B0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 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 2D 34 30 20 D0 B7 D0 B5 D0 BB 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 6E 00 00 00 F4 03 04 00 F2 B0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2F 7C 00 00 35 04 06 00 D4 1C 53 F4 25 52 E3 7D 86 8D F4 75 77 40 [17:42:06]CheckFolder [17:42:06]dirname=/storage/ofd_packets [17:42:06]CheckFolder done [17:42:06]ProducePacketName [17:42:06]name=ofd_packets/00031791 [17:42:06]NVStorageSaveData ofd_packets/00031791 [17:42:06]File name is /storage/ofd_packets/00031791 [17:42:06]Write 346 bytes [17:42:06]NVStorageSaveData done [17:42:06]OFDSenderStorePacket done [17:42:06]KKMCreateOFDPacket done [17:42:06]NVStorageSaveData kkm_last_timestamp [17:42:06]File name is /storage/kkm_last_timestamp [17:42:06]Write 4 bytes [17:42:06]NVStorageSaveData done [17:42:06]ExternCall_PrintAddStr [17:42:06]wPrintStart [17:42:06]Write to MH i2c: 01 00 00 0C 2C 38 [17:42:06]Write i2c OK [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: 01 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: 01 07 00 [17:42:06]MH_I2C_Read... [17:42:06]Read from MH i2c: 01 07 00 0C 2C 00 00 00 00 00 FF 0F 4D [17:42:06]RasterBufferAndPrint [17:42:06]line Счет N : (3)214372 [17:42:06]line ИНН: 02508201610067 [17:42:06]line Контрольно-Кассовый Чек [17:42:06]line ПРОДАЖА [17:42:06]line Товар: 4670003190037 [17:42:06]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 1л [17:42:06]line 1.000 * 225.00 [17:42:06]line = 225.00 [17:42:06]line НДС 12% НСП 1% [17:42:06]line > о реализуемом товаре [17:42:06]line ИТОГО: 225.00 [17:42:06]line НСП 1% : 1.99 [17:42:06]line НДС 12% : 23.89 [17:42:06]line Наличными: 225.00 [17:42:06]line Безнал.: 0.00 [17:42:06]line Место: АЗС № 140 "Партнер Нефть" [17:42:06]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:42:06]line СНО: Общий режим [17:42:06]line Чек 110 16.07.2024 17:42 [17:42:06]line Смена: 371 ФФД: 1.0 [17:42:06]line ЗНМ: 0300000189 [17:42:06]line РНМ: 0000000000098025 [17:42:06]line Версия ККМ: 001 [17:42:06]line ФМ: 0000000000965389 [17:42:06]line ФД: 31791 [17:42:06]line ФПД: 233218132682066 [17:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T174210&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31791&fm=233218132682066&tin=02508201610067®Number=0000000000098025&sum=22500 [17:42:07]line 0 [17:42:07]OFD Sender: Processing packet 31791 [packets to send 6, broken 5] [17:42:07]ProducePacketName [17:42:07]name=ofd_packets/00031791 [17:42:07]OFD Sender: To server: pG, [17:42:07]CommunicateWithHost lk.salyk.kg:30040 [17:42:07]ConnectInit lk.salyk.kg [17:42:07]written 0, free lines is 4095 [17:42:07]Write to MH i2c: 01 00 00 35 2C 61 [17:42:07]Write i2c OK [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: 01 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: 01 07 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: 01 07 00 35 2C 00 00 00 00 00 FA 0C 6E [17:42:07]RasterBufferAndPrint [17:42:07]line [17:42:07]line [17:42:07]line [17:42:07]line [17:42:07]line [17:42:07]written 0, free lines is 3326 [17:42:07]MH_Cut [17:42:07]Write to MH i2c: D1 01 00 3C 2C 01 3A [17:42:07]Write i2c OK [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: D1 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: D1 01 00 [17:42:07]MH_I2C_Read... [17:42:07]Read from MH i2c: D1 01 00 3C 2C 00 39 [17:42:07]Write to MH i2c: 01 00 00 3D 2C 69 [17:42:07]Write i2c OK [17:42:07]MH_I2C_Read... [17:42:08]*** Cut start [17:42:08]*** Partial cut [17:42:08]*** CUTSNS_PIN = 1 [17:42:08]*** CUTSNS_PIN = 0 [17:42:08]*** Brake cut motor [17:42:08]Read from MH i2c: 01 [17:42:08]MH_I2C_Read... [17:42:08]*** Stop cut motor [17:42:08]*** Cut end [17:42:08]Read from MH i2c: 01 07 00 [17:42:08]MH_I2C_Read... [17:42:08]Read from MH i2c: 01 07 00 3D 2C 00 00 00 00 00 FF 0F 7E [17:42:08]process_action close_receipt done [17:42:08]requested_data is exist [17:42:08]produce_requested_data [17:42:08]requested_item fm.sn is exist - process it [17:42:08]wFMCommunicate request_size=4 [17:42:08]MH_SAM_APDU [17:42:08]CAPDU: 80 11 00 00 [17:42:08]Write to MH i2c: E2 08 00 3E 2C 80 11 00 00 00 00 00 00 E4 [17:42:08]Write i2c OK [17:42:08]MH_I2C_Read... [17:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:09]Read from MH i2c: E2 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 17 00 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 17 00 3E 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3F [17:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:42:09]wFMCommunicate OK [17:42:09]requested_item fd.num is exist - process it [17:42:09]SAM_PROTO_GetFieldsCounters [17:42:09]wFMCommunicate request_size=4 [17:42:09]MH_SAM_APDU [17:42:09]CAPDU: 80 13 00 00 [17:42:09]Write to MH i2c: E2 08 00 3F 2C 80 13 00 00 00 00 00 00 E7 [17:42:09]Write i2c OK [17:42:09]MH_I2C_Read... [17:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:09]Read from MH i2c: E2 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 62 00 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 62 00 3F 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2F 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [17:42: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 2F 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:42:09]wFMCommunicate OK [17:42:09]SAM_PROTO_GetFieldsCounters done [17:42:09]requested_item shift.num is exist - process it [17:42:09]requested_item shift.opened is exist - process it [17:42:09]req_shift_opened [17:42:09]FM_GetShiftState [17:42:09]SAM_PROTO_GetShiftState [17:42:09]wFMCommunicate request_size=4 [17:42:09]MH_SAM_APDU [17:42:09]CAPDU: 80 13 01 00 [17:42:09]Write to MH i2c: E2 08 00 40 2C 80 13 01 00 00 00 00 00 E9 [17:42:09]Write i2c OK [17:42:09]MH_I2C_Read... [17:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:09]Read from MH i2c: E2 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 0E 00 [17:42:09]MH_I2C_Read... [17:42:09]Read from MH i2c: E2 0E 00 40 2C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 38 [17:42:09]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:42:09]wFMCommunicate OK [17:42:09]SAM_PROTO_GetShiftState done [17:42:09]FM_GetShiftState done [17:42:09]req_shift_opened done [17:42:09]requested_item shift.open_date is exist - process it [17:42:09]req_shift_open_date [17:42:09]req_shift_open_date done [17:42:09]produce_requested_data done [17:42:09]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31791,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [17:42:09]process_action_free close_receipt [17:42:09]json_value_free [17:42:09]json_value_free done [17:42:09]process_json_proto returns [17:42:09]Send response to host [17:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31791,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [17:42:09]free response buf [17:42:09]execute_script done [17:42:09]execute_script returns [17:42:09]free content buf [17:42:09]Sock 7.Close socket [17:42:09]Sock 7.Thread stoped [17:44:18]ConnectInit Can't connect to host [17:44:18]CommunicateWithHost connect error [17:44:18]CommunicateWithHost err = -1 [17:44:18]OFD Sender: Server communicate error [17:44:23]OFD Sender: Processing packet 31791 [packets to send 6, broken 5] [17:44:23]ProducePacketName [17:44:23]name=ofd_packets/00031791 [17:44:23]OFD Sender: To server: pG, [17:44:23]CommunicateWithHost lk.salyk.kg:30040 [17:44:23]ConnectInit lk.salyk.kg [17:44:23]Connected sock=7 [17:44:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3C 01 00 00 52 72 34 01 74 B0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 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 2D 34 30 20 D0 B7 D0 B5 D0 BB 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 6E 00 00 00 F4 03 04 00 F2 B0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2F 7C 00 00 35 04 06 00 D4 1C 53 F4 25 52 E3 7D 86 8D F4 75 77 40 [17:44:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 09 A2 47 00 1B 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 2F 7C 00 00 F4 03 04 00 87 5D 96 66 B6 04 01 00 00 5E C8 4A 70 E6 C4 76 97 [17:44:23]CommunicateWithHost err = 0 [17:44:23]CheckOFDResponse [17:44:23]1017 (14) - 77093643461234 [17:44:23]1041 (16) - 0000000000965389 [17:44:23]1040 (4) - 31791 [17:44:23]1012 (4) - 16.07.2024 11:46 [17:44:23]1206 (1) - 0 [17:44:23]OFD Sender: Remove packet 31791 [17:44:23]ProducePacketName [17:44:23]name=ofd_packets/00031791 [17:44:23]NVStorageDeleteData [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:53]accept exits with 9 [17:44:53]New connection [17:44:53]New thread 3066821988 created [17:44:53]Thread 3066965348 joined [17:44:53]Waiting for new connection... [17:44:53] Sock 9.Parse request [17:44:53]Sock 9.Check first char [17:44:53]Sock 9.First char is OK [17:44:53]request: POST /json_proto HTTP/1.0 [17:44:53]Method: POST [17:44:53]URL: /json_proto [17:44:53]Method is POST - this is cgi request [17:44:53]url: /json_proto [17:44:53]query_string will be loaded in cgi processing [17:44:53]execute_cgi json_proto POST (null) [17:44:53]execute_cgi path=json_proto method=POST [17:44:53]POST find Content-Length [17:44:53]Host: 172.17.39.68:8080 [17:44:53]Content-Length: 620 [17:44:53]Content-Type: application/json [17:44:53] [17:44:53]POST finish read [17:44:53]Found Content-Length = 620 [17:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214373", "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 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:53]execute_script... [17:44: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 : (3)214373", "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 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:44:53]POST & json_proto [17:44:53]process_json_proto [17:44:53]json parsed OK: [17:44:53]protocol is kg_v1.0 [17:44:53]action value=close_receipt [17:44:53]process_action close_receipt [17:44:53]cmd_close_receipt [17:44:53]MH_GetDate [17:44:53]Write to MH i2c: F0 00 00 41 2C 5C [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: F0 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: F0 09 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: F0 09 00 41 2C 00 9A B1 96 66 D6 48 95 66 C5 [17:44:53]GetLastDocTimeStamp 1721151730 [17:44:53]current date 1721151898 [17:44:53]FM_GetShiftState [17:44:53]SAM_PROTO_GetShiftState [17:44:53]wFMCommunicate request_size=4 [17:44:53]MH_SAM_APDU [17:44:53]CAPDU: 80 13 01 00 [17:44:53]Write to MH i2c: E2 08 00 42 2C 80 13 01 00 00 00 00 00 EB [17:44:53]Write i2c OK [17:44:53]MH_I2C_Read... [17:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:53]Read from MH i2c: E2 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 0E 00 [17:44:53]MH_I2C_Read... [17:44:53]Read from MH i2c: E2 0E 00 42 2C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 3A [17:44:53]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:44:53]wFMCommunicate OK [17:44:53]SAM_PROTO_GetShiftState done [17:44:53]FM_GetShiftState done [17:44:53]opened in 1721088399 [17:44:53]opened+sec_in_day 1721174799 [17:44:53]quantity*price = 40500 [17:44:53]sum+1 = 40501 [17:44:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 111 16.07.2024 17:44 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31792 ФПД: 65485000782930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T174458&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31792&fm=65485000782930&tin=02508201610067®Number=0000000000098025&sum=40500 0 [17:44:54]StoreToDocumentArchive [17:44:54]shift 371 fd 31792 [17:44:54]save to /storage/0371/doc_00031792 [17:44:54]save last doc name /storage/0371/doc_00031792 to /storage/kkm_last_doc_name [17:44:54]save OK [17:44:54]Clear old archive folders... [17:44:54]ProcessDocumentItem done err = 0, tmpTLVsize=280 [17:44:54]tlvbuf is 014A8730 [17:44:54]SAM_PROTO_ClearQueue [17:44:54]wFMCommunicate request_size=4 [17:44:54]MH_SAM_APDU [17:44:54]CAPDU: 80 09 00 00 [17:44:54]Write to MH i2c: E2 08 00 4F 2C 80 09 00 00 00 00 00 00 ED [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 4F 2C 00 90 00 EF [17:44:54]RAPDU: 90 00 [17:44:54]wFMCommunicate OK [17:44:54]SAM_PROTO_ClearQueue done [17:44:54]KKMCreateOFDPacket [17:44:54]OFDProtocolAddRootSTLVToBuf [17:44:54]FM_MakeSignedData [17:44:54]FM_MakeSignedData [17:44:54]SAM_PROTO_SignData [17:44:54]wFMCommunicate request_size=4 [17:44:54]MH_SAM_APDU [17:44:54]CAPDU: 80 0D 01 02 [17:44:54]Write to MH i2c: E2 08 00 50 2C 80 0D 01 02 00 00 00 00 F5 [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 50 2C 00 90 00 F0 [17:44:54]RAPDU: 90 00 [17:44:54]wFMCommunicate OK [17:44:54]wFMCommunicate request_size=255 [17:44:54]MH_SAM_APDU [17:44:54]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 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9A B1 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [17:44:54]Write to MH i2c: E2 02 01 51 2C 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 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9A B1 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 19 [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]OFD Sender: No OFD packet to send [17:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 51 2C 00 90 00 F1 [17:44:54]RAPDU: 90 00 [17:44:54]wFMCommunicate OK [17:44:54]wFMCommunicate request_size=39 [17:44:54]MH_SAM_APDU [17:44:54]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 30 7C 00 00 35 04 06 00 3B 8E EA 35 B4 52 [17:44:54]Write to MH i2c: E2 2A 00 52 2C 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 30 7C 00 00 35 04 06 00 3B 8E EA 35 B4 52 00 00 55 [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 03 00 52 2C 00 90 00 F2 [17:44:54]RAPDU: 90 00 [17:44:54]wFMCommunicate OK [17:44:54]wFMCommunicate request_size=4 [17:44:54]MH_SAM_APDU [17:44:54]CAPDU: 80 0D 03 02 [17:44:54]Write to MH i2c: E2 08 00 53 2C 80 0D 03 02 00 00 00 00 FA [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 0B 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 0B 00 53 2C 00 B1 D8 55 8A E5 B4 74 55 90 00 C5 [17:44:54]RAPDU: B1 D8 55 8A E5 B4 74 55 90 00 [17:44:54]wFMCommunicate OK [17:44:54]SAM_PROTO_SignData done [17:44:54]FM_MakeSignedData done [17:44:54]CreateOFDProtocolMessage [17:44:54]wFMCommunicate request_size=4 [17:44:54]MH_SAM_APDU [17:44:54]CAPDU: 80 11 00 00 [17:44:54]Write to MH i2c: E2 08 00 54 2C 80 11 00 00 00 00 00 00 FA [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:54]Read from MH i2c: E2 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 17 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: E2 17 00 54 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 55 [17:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:44:54]wFMCommunicate OK [17:44:54]CreateOFDProtocolMessage done [17:44:54]OFDSenderStorePacket 31792 [17:44:54]StoreOFDPacket docnum=31792 [17:44:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 25 3E 24 01 E7 47 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 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9A B1 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 30 7C 00 00 35 04 06 00 3B 8E EA 35 B4 52 B1 D8 55 8A E5 B4 74 55 [17:44:54]CheckFolder [17:44:54]dirname=/storage/ofd_packets [17:44:54]CheckFolder done [17:44:54]ProducePacketName [17:44:54]name=ofd_packets/00031792 [17:44:54]NVStorageSaveData ofd_packets/00031792 [17:44:54]File name is /storage/ofd_packets/00031792 [17:44:54]Write 330 bytes [17:44:54]NVStorageSaveData done [17:44:54]OFDSenderStorePacket done [17:44:54]KKMCreateOFDPacket done [17:44:54]NVStorageSaveData kkm_last_timestamp [17:44:54]File name is /storage/kkm_last_timestamp [17:44:54]Write 4 bytes [17:44:54]NVStorageSaveData done [17:44:54]ExternCall_PrintAddStr [17:44:54]wPrintStart [17:44:54]Write to MH i2c: 01 00 00 55 2C 81 [17:44:54]Write i2c OK [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: 01 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: 01 07 00 [17:44:54]MH_I2C_Read... [17:44:54]Read from MH i2c: 01 07 00 55 2C 00 00 00 00 00 FF 0F 96 [17:44:54]RasterBufferAndPrint [17:44:54]line Счет N : (3)214373 [17:44:54]line ИНН: 02508201610067 [17:44:54]line Контрольно-Кассовый Чек [17:44:54]line ПРОДАЖА [17:44:54]line Товар: 4650063110756 [17:44:54]line Масло Gazpromneft Super 10w40 1л [17:44:54]line 1.000 * 405.00 [17:44:54]line = 405.00 [17:44:54]line НДС 12% НСП 1% [17:44:54]line > о реализуемом товаре [17:44:54]line ИТОГО: 405.00 [17:44:54]line НСП 1% : 3.58 [17:44:54]line НДС 12% : 43.01 [17:44:54]line Наличными: 405.00 [17:44:54]line Безнал.: 0.00 [17:44:54]line Место: АЗС № 140 "Партнер Нефть" [17:44:54]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [17:44:54]line СНО: Общий режим [17:44:54]line Чек 111 16.07.2024 17:44 [17:44:54]line Смена: 371 ФФД: 1.0 [17:44:54]line ЗНМ: 0300000189 [17:44:54]line РНМ: 0000000000098025 [17:44:54]line Версия ККМ: 001 [17:44:54]line ФМ: 0000000000965389 [17:44:54]line ФД: 31792 [17:44:54]line ФПД: 65485000782930 [17:44:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T174458&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31792&fm=65485000782930&tin=02508201610067®Number=0000000000098025&sum=40500 [17:44:55]OFD Sender: Processing packet 31792 [packets to send 6, broken 5] [17:44:55]ProducePacketName [17:44:55]name=ofd_packets/00031792 [17:44:55]OFD Sender: To server: pG, [17:44:55]CommunicateWithHost lk.salyk.kg:30040 [17:44:55]ConnectInit lk.salyk.kg [17:44:55]line 0 [17:44:55]written 0, free lines is 4095 [17:44:55]Connected sock=10 [17:44:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 25 3E 24 01 E7 47 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 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 9A B1 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 30 7C 00 00 35 04 06 00 3B 8E EA 35 B4 52 B1 D8 55 8A E5 B4 74 55 [17:44:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 87 B3 47 00 55 43 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 30 7C 00 00 F4 03 04 00 A7 5D 96 66 B6 04 01 00 00 FC B9 FC 10 3B 85 DB 58 [17:44:55]CommunicateWithHost err = 0 [17:44:55]CheckOFDResponse [17:44:55]1017 (14) - 77093643461234 [17:44:55]1041 (16) - 0000000000965389 [17:44:55]1040 (4) - 31792 [17:44:55]1012 (4) - 16.07.2024 11:46 [17:44:55]1206 (1) - 0 [17:44:55]OFD Sender: Remove packet 31792 [17:44:55]ProducePacketName [17:44:55]name=ofd_packets/00031792 [17:44:55]NVStorageDeleteData [17:44:55]Write to MH i2c: 01 00 00 7E 2C AA [17:44:55]Write i2c OK [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: 01 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: 01 07 00 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: 01 07 00 7E 2C 00 00 00 00 00 E1 0C 9E [17:44:55]RasterBufferAndPrint [17:44:55]line [17:44:55]line [17:44:55]line [17:44:55]line [17:44:55]line [17:44:55]written 0, free lines is 3302 [17:44:55]MH_Cut [17:44:55]Write to MH i2c: D1 01 00 85 2C 01 83 [17:44:55]Write i2c OK [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: D1 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: D1 01 00 [17:44:55]MH_I2C_Read... [17:44:55]Read from MH i2c: D1 01 00 85 2C 00 82 [17:44:55]Write to MH i2c: 01 00 00 86 2C B2 [17:44:55]Write i2c OK [17:44:55]MH_I2C_Read... [17:44:55]OFD Sender: No OFD packet to send [17:44:56]*** Cut start [17:44:56]*** Partial cut [17:44:56]*** CUTSNS_PIN = 1 [17:44:56]*** CUTSNS_PIN = 0 [17:44:56]*** Brake cut motor [17:44:56]Read from MH i2c: 01 [17:44:56]MH_I2C_Read... [17:44:56]*** Stop cut motor [17:44:56]*** Cut end [17:44:56]Read from MH i2c: 01 07 00 [17:44:56]MH_I2C_Read... [17:44:56]Read from MH i2c: 01 07 00 86 2C 00 00 00 00 00 FF 0F C7 [17:44:56]process_action close_receipt done [17:44:56]requested_data is exist [17:44:56]produce_requested_data [17:44:56]requested_item fm.sn is exist - process it [17:44:56]wFMCommunicate request_size=4 [17:44:56]MH_SAM_APDU [17:44:56]CAPDU: 80 11 00 00 [17:44:56]Write to MH i2c: E2 08 00 87 2C 80 11 00 00 00 00 00 00 2D [17:44:56]Write i2c OK [17:44:56]MH_I2C_Read... [17:44:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:44:57]Read from MH i2c: E2 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 17 00 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 17 00 87 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 88 [17:44:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [17:44:57]wFMCommunicate OK [17:44:57]requested_item fd.num is exist - process it [17:44:57]SAM_PROTO_GetFieldsCounters [17:44:57]wFMCommunicate request_size=4 [17:44:57]MH_SAM_APDU [17:44:57]CAPDU: 80 13 00 00 [17:44:57]Write to MH i2c: E2 08 00 88 2C 80 13 00 00 00 00 00 00 30 [17:44:57]Write i2c OK [17:44:57]MH_I2C_Read... [17:44:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:44:57]Read from MH i2c: E2 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 62 00 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 62 00 88 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 30 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [17:44: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 30 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:44:57]wFMCommunicate OK [17:44:57]SAM_PROTO_GetFieldsCounters done [17:44:57]requested_item shift.num is exist - process it [17:44:57]requested_item shift.opened is exist - process it [17:44:57]req_shift_opened [17:44:57]FM_GetShiftState [17:44:57]SAM_PROTO_GetShiftState [17:44:57]wFMCommunicate request_size=4 [17:44:57]MH_SAM_APDU [17:44:57]CAPDU: 80 13 01 00 [17:44:57]Write to MH i2c: E2 08 00 89 2C 80 13 01 00 00 00 00 00 32 [17:44:57]Write i2c OK [17:44:57]MH_I2C_Read... [17:44:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:44:57]Read from MH i2c: E2 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 0E 00 [17:44:57]MH_I2C_Read... [17:44:57]Read from MH i2c: E2 0E 00 89 2C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 81 [17:44:57]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [17:44:57]wFMCommunicate OK [17:44:57]SAM_PROTO_GetShiftState done [17:44:57]FM_GetShiftState done [17:44:57]req_shift_opened done [17:44:57]requested_item shift.open_date is exist - process it [17:44:57]req_shift_open_date [17:44:57]req_shift_open_date done [17:44:57]produce_requested_data done [17:44:57]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31792,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [17:44:57]process_action_free close_receipt [17:44:57]json_value_free [17:44:57]json_value_free done [17:44:57]process_json_proto returns [17:44:57]Send response to host [17:44:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31792,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [17:44:57]free response buf [17:44:57]execute_script done [17:44:57]execute_script returns [17:44:57]free content buf [17:44:57]Sock 9.Close socket [17:44:57]Sock 9.Thread stoped [17:45:00]OFD Sender: No OFD packet to send [17:45:05]OFD Sender: No OFD packet to send [17:45:10]OFD Sender: No OFD packet to send [17:45:15]OFD Sender: No OFD packet to send [17:45:20]OFD Sender: No OFD packet to send [17:45:25]OFD Sender: No OFD packet to send [17:45:30]OFD Sender: No OFD packet to send [17:45:35]OFD Sender: No OFD packet to send [17:45:40]OFD Sender: No OFD packet to send [17:45:45]OFD Sender: No OFD packet to send [17:45:50]OFD Sender: No OFD packet to send [17:45:55]OFD Sender: No OFD packet to send [17:46:00]OFD Sender: No OFD packet to send [17:46:05]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]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:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:06]OFD Sender: No OFD packet to send [17:51:11]OFD Sender: No OFD packet to send [17:51:16]OFD Sender: No OFD packet to send [17:51:21]OFD Sender: No OFD packet to send [17:51:26]OFD Sender: No OFD packet to send [17:51:31]OFD Sender: No OFD packet to send [17:51:36]OFD Sender: No OFD packet to send [17:51:41]OFD Sender: No OFD packet to send [17:51:46]OFD Sender: No OFD packet to send [17:51:51]OFD Sender: No OFD packet to send [17:51:56]OFD Sender: No OFD packet to send [17:52:01]OFD Sender: No OFD packet to send [17:52:06]OFD Sender: No OFD packet to send [17:52:11]OFD Sender: No OFD packet to send [17:52:16]OFD Sender: No OFD packet to send [17:52:21]OFD Sender: No OFD packet to send [17:52:26]OFD Sender: No OFD packet to send [17:52:31]OFD Sender: No OFD packet to send [17:52:36]OFD Sender: No OFD packet to send [17:52:41]OFD Sender: No OFD packet to send [17:52:46]OFD Sender: No OFD packet to send [17:52:51]OFD Sender: No OFD packet to send [17:52:56]OFD Sender: No OFD packet to send [17:53:01]OFD Sender: No OFD packet to send [17:53:06]OFD Sender: No OFD packet to send [17:53:11]OFD Sender: No OFD packet to send [17:53:16]OFD Sender: No OFD packet to send [17:53:21]OFD Sender: No OFD packet to send [17:53:26]OFD Sender: No OFD packet to send [17:53:31]OFD Sender: No OFD packet to send [17:53:36]OFD Sender: No OFD packet to send [17:53:41]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:31]OFD Sender: No OFD packet to send [17:57:36]OFD Sender: No OFD packet to send [17:57:41]OFD Sender: No OFD packet to send [17:57:46]OFD Sender: No OFD packet to send [17:57:51]OFD Sender: No OFD packet to send [17:57:56]OFD Sender: No OFD packet to send [17:58:01]OFD Sender: No OFD packet to send [17:58:06]OFD Sender: No OFD packet to send [17:58:11]OFD Sender: No OFD packet to send [17:58:16]OFD Sender: No OFD packet to send [17:58:21]OFD Sender: No OFD packet to send [17:58:26]OFD Sender: No OFD packet to send [17:58:31]OFD Sender: No OFD packet to send [17:58:36]OFD Sender: No OFD packet to send [17:58:41]OFD Sender: No OFD packet to send [17:58:46]OFD Sender: No OFD packet to send [17:58:51]OFD Sender: No OFD packet to send [17:58:56]OFD Sender: No OFD packet to send [17: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:36]OFD Sender: No OFD packet to send [18:07:41]OFD Sender: No OFD packet to send [18:07:46]OFD Sender: No OFD packet to send [18:07:51]OFD Sender: No OFD packet to send [18:07:56]OFD Sender: No OFD packet to send [18:08:01]OFD Sender: No OFD packet to send [18:08:06]OFD Sender: No OFD packet to send [18:08:11]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:14]accept exits with 7 [18:11:14]New connection [18:11:14]New thread 3066965348 created [18:11:14] Sock 7.Parse request [18:11:14]Thread 3066821988 joined [18:11:14]Sock 7.Check first char [18:11:14]Waiting for new connection... [18:11:14]Sock 7.First char is OK [18:11:14]request: POST /json_proto HTTP/1.0 [18:11:14]Method: POST [18:11:14]URL: /json_proto [18:11:14]Method is POST - this is cgi request [18:11:14]url: /json_proto [18:11:14]query_string will be loaded in cgi processing [18:11:14]execute_cgi json_proto POST (null) [18:11:14]execute_cgi path=json_proto method=POST [18:11:14]POST find Content-Length [18:11:14]Host: 172.17.39.68:8080 [18:11:14]Content-Length: 570 [18:11:14]Content-Type: application/json [18:11:14] [18:11:14]POST finish read [18:11:14]Found Content-Length = 570 [18:11:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214374", "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" ] } } [18:11:14]execute_script... [18: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 : (3)214374", "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" ] } } [18:11:14]POST & json_proto [18:11:14]process_json_proto [18:11:14]json parsed OK: [18:11:14]protocol is kg_v1.0 [18:11:14]action value=close_receipt [18:11:14]process_action close_receipt [18:11:14]cmd_close_receipt [18:11:14]MH_GetDate [18:11:14]Write to MH i2c: F0 00 00 8A 2C A5 [18:11:14]Write i2c OK [18:11:14]MH_I2C_Read... [18:11:14]Read from MH i2c: F0 [18:11:14]MH_I2C_Read... [18:11:14]Read from MH i2c: F0 09 00 [18:11:14]MH_I2C_Read... [18:11:14]Read from MH i2c: F0 09 00 8A 2C 00 C8 B7 96 66 D6 48 95 66 42 [18:11:14]GetLastDocTimeStamp 1721151898 [18:11:14]current date 1721153480 [18:11:14]FM_GetShiftState [18:11:14]SAM_PROTO_GetShiftState [18:11:14]wFMCommunicate request_size=4 [18:11:14]MH_SAM_APDU [18:11:14]CAPDU: 80 13 01 00 [18:11:14]Write to MH i2c: E2 08 00 8B 2C 80 13 01 00 00 00 00 00 34 [18:11:14]Write i2c OK [18:11:14]MH_I2C_Read... [18:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:14]Read from MH i2c: E2 [18:11:14]MH_I2C_Read... [18:11:14]Read from MH i2c: E2 0E 00 [18:11:14]MH_I2C_Read... [18:11:14]Read from MH i2c: E2 0E 00 8B 2C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 83 [18:11:14]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [18:11:14]wFMCommunicate OK [18:11:14]SAM_PROTO_GetShiftState done [18:11:14]FM_GetShiftState done [18:11:14]opened in 1721088399 [18:11:14]opened+sec_in_day 1721174799 [18:11:14]quantity*price = 13000 [18:11:14]sum+1 = 13001 [18:11:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 112 16.07.2024 18:11 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31793 ФПД: 62063833516459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T181120&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31793&fm=62063833516459&tin=02508201610067®Number=0000000000098025&sum=13000 0 [18:11:16]StoreToDocumentArchive [18:11:16]shift 371 fd 31793 [18:11:16]save to /storage/0371/doc_00031793 [18:11:16]save last doc name /storage/0371/doc_00031793 to /storage/kkm_last_doc_name [18:11:16]save OK [18:11:16]Clear old archive folders... [18:11:16]ProcessDocumentItem done err = 0, tmpTLVsize=254 [18:11:16]tlvbuf is 01518010 [18:11:16]SAM_PROTO_ClearQueue [18:11:16]wFMCommunicate request_size=4 [18:11:16]MH_SAM_APDU [18:11:16]CAPDU: 80 09 00 00 [18:11:16]Write to MH i2c: E2 08 00 98 2C 80 09 00 00 00 00 00 00 36 [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 [18:11:16]MH_I2C_Read... [18:11:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:16]Read from MH i2c: E2 03 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 98 2C 00 90 00 38 [18:11:16]RAPDU: 90 00 [18:11:16]wFMCommunicate OK [18:11:16]SAM_PROTO_ClearQueue done [18:11:16]KKMCreateOFDPacket [18:11:16]OFDProtocolAddRootSTLVToBuf [18:11:16]FM_MakeSignedData [18:11:16]FM_MakeSignedData [18:11:16]SAM_PROTO_SignData [18:11:16]wFMCommunicate request_size=4 [18:11:16]MH_SAM_APDU [18:11:16]CAPDU: 80 0D 01 02 [18:11:16]Write to MH i2c: E2 08 00 99 2C 80 0D 01 02 00 00 00 00 3E [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:16]Read from MH i2c: E2 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 99 2C 00 90 00 39 [18:11:16]RAPDU: 90 00 [18:11:16]wFMCommunicate OK [18:11:16]wFMCommunicate request_size=255 [18:11:16]MH_SAM_APDU [18:11:16]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 70 00 00 00 F4 03 04 00 C8 B7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 31 7C 00 00 35 04 [18:11:16]Write to MH i2c: E2 02 01 9A 2C 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 70 00 00 00 F4 03 04 00 C8 B7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 31 7C 00 00 35 04 00 00 55 [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:16]Read from MH i2c: E2 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 9A 2C 00 90 00 3A [18:11:16]RAPDU: 90 00 [18:11:16]wFMCommunicate OK [18:11:16]wFMCommunicate request_size=13 [18:11:16]MH_SAM_APDU [18:11:16]CAPDU: 80 0D 02 02 08 06 00 38 72 5C C0 09 AB [18:11:16]Write to MH i2c: E2 10 00 9B 2C 80 0D 02 02 08 00 06 00 38 72 5C C0 09 AB 00 00 D1 [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:16]Read from MH i2c: E2 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 03 00 9B 2C 00 90 00 3B [18:11:16]RAPDU: 90 00 [18:11:16]wFMCommunicate OK [18:11:16]wFMCommunicate request_size=4 [18:11:16]MH_SAM_APDU [18:11:16]CAPDU: 80 0D 03 02 [18:11:16]Write to MH i2c: E2 08 00 9C 2C 80 0D 03 02 00 00 00 00 43 [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:16]Read from MH i2c: E2 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 0B 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 0B 00 9C 2C 00 05 EC 31 CB 1C 81 68 A5 90 00 DB [18:11:16]RAPDU: 05 EC 31 CB 1C 81 68 A5 90 00 [18:11:16]wFMCommunicate OK [18:11:16]SAM_PROTO_SignData done [18:11:16]FM_MakeSignedData done [18:11:16]CreateOFDProtocolMessage [18:11:16]wFMCommunicate request_size=4 [18:11:16]MH_SAM_APDU [18:11:16]CAPDU: 80 11 00 00 [18:11:16]Write to MH i2c: E2 08 00 9D 2C 80 11 00 00 00 00 00 00 43 [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:16]Read from MH i2c: E2 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 17 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: E2 17 00 9D 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9E [18:11:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:11:16]wFMCommunicate OK [18:11:16]CreateOFDProtocolMessage done [18:11:16]OFDSenderStorePacket 31793 [18:11:16]StoreOFDPacket docnum=31793 [18:11:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 12 01 00 00 5F F1 0A 01 BB EA 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 70 00 00 00 F4 03 04 00 C8 B7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 31 7C 00 00 35 04 06 00 38 72 5C C0 09 AB 05 EC 31 CB 1C 81 68 A5 [18:11:16]CheckFolder [18:11:16]dirname=/storage/ofd_packets [18:11:16]CheckFolder done [18:11:16]ProducePacketName [18:11:16]name=ofd_packets/00031793 [18:11:16]NVStorageSaveData ofd_packets/00031793 [18:11:16]File name is /storage/ofd_packets/00031793 [18:11:16]Write 304 bytes [18:11:16]NVStorageSaveData done [18:11:16]OFDSenderStorePacket done [18:11:16]KKMCreateOFDPacket done [18:11:16]NVStorageSaveData kkm_last_timestamp [18:11:16]File name is /storage/kkm_last_timestamp [18:11:16]Write 4 bytes [18:11:16]NVStorageSaveData done [18:11:16]ExternCall_PrintAddStr [18:11:16]wPrintStart [18:11:16]Write to MH i2c: 01 00 00 9E 2C CA [18:11:16]Write i2c OK [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: 01 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: 01 07 00 [18:11:16]MH_I2C_Read... [18:11:16]Read from MH i2c: 01 07 00 9E 2C 00 00 00 00 00 FF 0F DF [18:11:16]RasterBufferAndPrint [18:11:16]line Счет N : (3)214374 [18:11:16]line ИНН: 02508201610067 [18:11:16]line Контрольно-Кассовый Чек [18:11:16]line ПРОДАЖА [18:11:16]line Товар: 48744546 [18:11:16]line LD Compact Silver [18:11:16]line 1.000 * 130.00 [18:11:16]line = 130.00 [18:11:16]line НДС 12% НСП 1% [18:11:16]line > о реализуемом товаре [18:11:16]line ИТОГО: 130.00 [18:11:16]line НСП 1% : 1.15 [18:11:16]line НДС 12% : 13.80 [18:11:16]line Наличными: 130.00 [18:11:16]line Безнал.: 0.00 [18:11:16]line Место: АЗС № 140 "Партнер Нефть" [18:11:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:11:16]line СНО: Общий режим [18:11:16]line Чек 112 16.07.2024 18:11 [18:11:16]line Смена: 371 ФФД: 1.0 [18:11:16]line ЗНМ: 0300000189 [18:11:16]line РНМ: 0000000000098025 [18:11:16]line Версия ККМ: 001 [18:11:16]line ФМ: 0000000000965389 [18:11:16]line ФД: 31793 [18:11:16]line ФПД: 62063833516459 [18:11:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T181120&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31793&fm=62063833516459&tin=02508201610067®Number=0000000000098025&sum=13000 [18:11:16]line 0 [18:11:16]OFD Sender: Processing packet 31793 [packets to send 6, broken 5] [18:11:16]ProducePacketName [18:11:16]name=ofd_packets/00031793 [18:11:16]OFD Sender: To server: pG, [18:11:16]CommunicateWithHost lk.salyk.kg:30040 [18:11:16]ConnectInit lk.salyk.kg [18:11:16]written 0, free lines is 4095 [18:11:17]Connected sock=10 [18:11:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 12 01 00 00 5F F1 0A 01 BB EA 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 70 00 00 00 F4 03 04 00 C8 B7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 31 7C 00 00 35 04 06 00 38 72 5C C0 09 AB 05 EC 31 CB 1C 81 68 A5 [18:11:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 69 49 47 00 DD 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 35 33 38 39 10 04 04 00 31 7C 00 00 F4 03 04 00 D5 63 96 66 B6 04 01 00 00 62 0E 6F 30 DB 49 56 B5 [18:11:17]CommunicateWithHost err = 0 [18:11:17]CheckOFDResponse [18:11:17]1017 (14) - 77093643461234 [18:11:17]1041 (16) - 0000000000965389 [18:11:17]1040 (4) - 31793 [18:11:17]1012 (4) - 16.07.2024 12:13 [18:11:17]1206 (1) - 0 [18:11:17]OFD Sender: Remove packet 31793 [18:11:17]ProducePacketName [18:11:17]name=ofd_packets/00031793 [18:11:17]NVStorageDeleteData [18:11:17]Write to MH i2c: 01 00 00 C6 2C F2 [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: 01 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: 01 07 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: 01 07 00 C6 2C 00 00 00 00 00 09 0D 0F [18:11:17]RasterBufferAndPrint [18:11:17]line [18:11:17]line [18:11:17]line [18:11:17]line [18:11:17]line [18:11:17]written 0, free lines is 3346 [18:11:17]MH_Cut [18:11:17]Write to MH i2c: D1 01 00 CD 2C 01 CB [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: D1 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: D1 01 00 [18:11:17]MH_I2C_Read... [18:11:17]Read from MH i2c: D1 01 00 CD 2C 00 CA [18:11:17]Write to MH i2c: 01 00 00 CE 2C FA [18:11:17]Write i2c OK [18:11:17]MH_I2C_Read... [18:11:17]OFD Sender: No OFD packet to send [18:11:18]*** Cut start [18:11:18]*** Partial cut [18:11:18]*** CUTSNS_PIN = 1 [18:11:18]*** CUTSNS_PIN = 0 [18:11:18]*** Brake cut motor [18:11:18]Read from MH i2c: 01 [18:11:18]MH_I2C_Read... [18:11:18]*** Stop cut motor [18:11:18]*** Cut end [18:11:18]Read from MH i2c: 01 07 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: 01 07 00 CE 2C 00 00 00 00 00 FF 0F 0F [18:11:18]process_action close_receipt done [18:11:18]requested_data is exist [18:11:18]produce_requested_data [18:11:18]requested_item fm.sn is exist - process it [18:11:18]wFMCommunicate request_size=4 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 11 00 00 [18:11:18]Write to MH i2c: E2 08 00 CF 2C 80 11 00 00 00 00 00 00 75 [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:18]Read from MH i2c: E2 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 17 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 17 00 CF 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D0 [18:11:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:11:18]wFMCommunicate OK [18:11:18]requested_item fd.num is exist - process it [18:11:18]SAM_PROTO_GetFieldsCounters [18:11:18]wFMCommunicate request_size=4 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 13 00 00 [18:11:18]Write to MH i2c: E2 08 00 D0 2C 80 13 00 00 00 00 00 00 78 [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:18]Read from MH i2c: E2 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 62 00 [18:11:18]MH_I2C_Read... [18:11:18]Read from MH i2c: E2 62 00 D0 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 31 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [18: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 31 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:18]wFMCommunicate OK [18:11:18]SAM_PROTO_GetFieldsCounters done [18:11:18]requested_item shift.num is exist - process it [18:11:18]requested_item shift.opened is exist - process it [18:11:18]req_shift_opened [18:11:18]FM_GetShiftState [18:11:18]SAM_PROTO_GetShiftState [18:11:18]wFMCommunicate request_size=4 [18:11:18]MH_SAM_APDU [18:11:18]CAPDU: 80 13 01 00 [18:11:18]Write to MH i2c: E2 08 00 D1 2C 80 13 01 00 00 00 00 00 7A [18:11:18]Write i2c OK [18:11:18]MH_I2C_Read... [18:11:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:19]Read from MH i2c: E2 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 0E 00 [18:11:19]MH_I2C_Read... [18:11:19]Read from MH i2c: E2 0E 00 D1 2C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C9 [18:11:19]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [18:11:19]wFMCommunicate OK [18:11:19]SAM_PROTO_GetShiftState done [18:11:19]FM_GetShiftState done [18:11:19]req_shift_opened done [18:11:19]requested_item shift.open_date is exist - process it [18:11:19]req_shift_open_date [18:11:19]req_shift_open_date done [18:11:19]produce_requested_data done [18:11:19]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31793,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [18:11:19]process_action_free close_receipt [18:11:19]json_value_free [18:11:19]json_value_free done [18:11:19]process_json_proto returns [18:11:19]Send response to host [18:11:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31793,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [18:11:19]free response buf [18:11:19]execute_script done [18:11:19]execute_script returns [18:11:19]free content buf [18:11:19]Sock 7.Close socket [18:11:19]Sock 7.Thread stoped [18:11:22]OFD Sender: No OFD packet to send [18:11:24]accept exits with 9 [18:11:24]New connection [18:11:24]New thread 3066821988 created [18:11:24]Thread 3066965348 joined [18:11:24]Waiting for new connection... [18:11:24] Sock 9.Parse request [18:11:24]Sock 9.Check first char [18:11:24]Sock 9.First char is OK [18:11:24]request: POST /json_proto HTTP/1.0 [18:11:24]Method: POST [18:11:24]URL: /json_proto [18:11:24]Method is POST - this is cgi request [18:11:24]url: /json_proto [18:11:24]query_string will be loaded in cgi processing [18:11:24]execute_cgi json_proto POST (null) [18:11:24]execute_cgi path=json_proto method=POST [18:11:24]POST find Content-Length [18:11:24]Host: 172.17.39.68:8080 [18:11:24]Content-Length: 668 [18:11:24]Content-Type: application/json [18:11:24] [18:11:24]POST finish read [18:11:24]Found Content-Length = 668 [18:11:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214375", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:24]execute_script... [18:11: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)214375", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:11:24]POST & json_proto [18:11:24]process_json_proto [18:11:24]json parsed OK: [18:11:24]protocol is kg_v1.0 [18:11:24]action value=close_receipt [18:11:24]process_action close_receipt [18:11:24]cmd_close_receipt [18:11:24]MH_GetDate [18:11:24]Write to MH i2c: F0 00 00 D2 2C ED [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: F0 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: F0 09 00 [18:11:24]MH_I2C_Read... [18:11:24]Read from MH i2c: F0 09 00 D2 2C 00 D2 B7 96 66 D6 48 95 66 94 [18:11:24]GetLastDocTimeStamp 1721153480 [18:11:24]current date 1721153490 [18:11:24]FM_GetShiftState [18:11:24]SAM_PROTO_GetShiftState [18:11:24]wFMCommunicate request_size=4 [18:11:24]MH_SAM_APDU [18:11:24]CAPDU: 80 13 01 00 [18:11:24]Write to MH i2c: E2 08 00 D3 2C 80 13 01 00 00 00 00 00 7C [18:11:24]Write i2c OK [18:11:24]MH_I2C_Read... [18:11:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:25]Read from MH i2c: E2 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: E2 0E 00 [18:11:25]MH_I2C_Read... [18:11:25]Read from MH i2c: E2 0E 00 D3 2C 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 CB [18:11:25]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [18:11:25]wFMCommunicate OK [18:11:25]SAM_PROTO_GetShiftState done [18:11:25]FM_GetShiftState done [18:11:25]opened in 1721088399 [18:11:25]opened+sec_in_day 1721174799 [18:11:25]quantity*price = 7500 [18:11:25]sum+1 = 7501 [18:11:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 113 16.07.2024 18:11 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31794 ФПД: 9717324785192 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T181130&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31794&fm=9717324785192&tin=02508201610067®Number=0000000000098025&sum=7500 0 [18:11:26]StoreToDocumentArchive [18:11:26]shift 371 fd 31794 [18:11:26]save to /storage/0371/doc_00031794 [18:11:26]save last doc name /storage/0371/doc_00031794 to /storage/kkm_last_doc_name [18:11:26]save OK [18:11:26]Clear old archive folders... [18:11:26]ProcessDocumentItem done err = 0, tmpTLVsize=287 [18:11:26]tlvbuf is 014E6E70 [18:11:26]SAM_PROTO_ClearQueue [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 09 00 00 [18:11:26]Write to MH i2c: E2 08 00 E0 2C 80 09 00 00 00 00 00 00 7E [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 E0 2C 00 90 00 80 [18:11:26]RAPDU: 90 00 [18:11:26]wFMCommunicate OK [18:11:26]SAM_PROTO_ClearQueue done [18:11:26]KKMCreateOFDPacket [18:11:26]OFDProtocolAddRootSTLVToBuf [18:11:26]FM_MakeSignedData [18:11:26]FM_MakeSignedData [18:11:26]SAM_PROTO_SignData [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 0D 01 02 [18:11:26]Write to MH i2c: E2 08 00 E1 2C 80 0D 01 02 00 00 00 00 86 [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 E1 2C 00 90 00 81 [18:11:26]RAPDU: 90 00 [18:11:26]wFMCommunicate OK [18:11:26]wFMCommunicate request_size=255 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D2 B7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [18:11:26]Write to MH i2c: E2 02 01 E2 2C 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D2 B7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 74 [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 E2 2C 00 90 00 82 [18:11:26]RAPDU: 90 00 [18:11:26]wFMCommunicate OK [18:11:26]wFMCommunicate request_size=46 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 32 7C 00 00 35 04 06 00 08 D6 7D B1 26 28 [18:11:26]Write to MH i2c: E2 31 00 E3 2C 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 32 7C 00 00 35 04 06 00 08 D6 7D B1 26 28 00 00 1E [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 03 00 E3 2C 00 90 00 83 [18:11:26]RAPDU: 90 00 [18:11:26]wFMCommunicate OK [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 0D 03 02 [18:11:26]Write to MH i2c: E2 08 00 E4 2C 80 0D 03 02 00 00 00 00 8B [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 0B 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 0B 00 E4 2C 00 73 19 F5 D3 77 7C B0 E0 90 00 63 [18:11:26]RAPDU: 73 19 F5 D3 77 7C B0 E0 90 00 [18:11:26]wFMCommunicate OK [18:11:26]SAM_PROTO_SignData done [18:11:26]FM_MakeSignedData done [18:11:26]CreateOFDProtocolMessage [18:11:26]wFMCommunicate request_size=4 [18:11:26]MH_SAM_APDU [18:11:26]CAPDU: 80 11 00 00 [18:11:26]Write to MH i2c: E2 08 00 E5 2C 80 11 00 00 00 00 00 00 8B [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:26]Read from MH i2c: E2 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 17 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: E2 17 00 E5 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E6 [18:11:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:11:26]wFMCommunicate OK [18:11:26]CreateOFDProtocolMessage done [18:11:26]OFDSenderStorePacket 31794 [18:11:26]StoreOFDPacket docnum=31794 [18:11:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 DC 3C 2B 01 65 95 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D2 B7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 32 7C 00 00 35 04 06 00 08 D6 7D B1 26 28 73 19 F5 D3 77 7C B0 E0 [18:11:26]CheckFolder [18:11:26]dirname=/storage/ofd_packets [18:11:26]CheckFolder done [18:11:26]ProducePacketName [18:11:26]name=ofd_packets/00031794 [18:11:26]NVStorageSaveData ofd_packets/00031794 [18:11:26]File name is /storage/ofd_packets/00031794 [18:11:26]Write 337 bytes [18:11:26]NVStorageSaveData done [18:11:26]OFDSenderStorePacket done [18:11:26]KKMCreateOFDPacket done [18:11:26]NVStorageSaveData kkm_last_timestamp [18:11:26]File name is /storage/kkm_last_timestamp [18:11:26]Write 4 bytes [18:11:26]NVStorageSaveData done [18:11:26]ExternCall_PrintAddStr [18:11:26]wPrintStart [18:11:26]Write to MH i2c: 01 00 00 E6 2C 12 [18:11:26]Write i2c OK [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: 01 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: 01 07 00 [18:11:26]MH_I2C_Read... [18:11:26]Read from MH i2c: 01 07 00 E6 2C 00 00 00 00 00 FF 0F 27 [18:11:26]RasterBufferAndPrint [18:11:26]line Счет N : (3)214375 [18:11:26]line ИНН: 02508201610067 [18:11:26]line Контрольно-Кассовый Чек [18:11:26]line ПРОДАЖА [18:11:26]line Товар: 5449000189394 [18:11:26]line Холодный чай Fuse ягода 0,5л [18:11:26]line 1.000 * 75.00 [18:11:26]line = 75.00 [18:11:26]line НДС 12% НСП 1% [18:11:26]line > о реализуемом товаре [18:11:26]line ИТОГО: 75.00 [18:11:26]line НСП 1% : 0.66 [18:11:26]line НДС 12% : 7.96 [18:11:26]line Наличными: 75.00 [18:11:26]line Безнал.: 0.00 [18:11:26]line Место: АЗС № 140 "Партнер Нефть" [18:11:26]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:11:26]line СНО: Общий режим [18:11:26]line Чек 113 16.07.2024 18:11 [18:11:26]line Смена: 371 ФФД: 1.0 [18:11:26]line ЗНМ: 0300000189 [18:11:26]line РНМ: 0000000000098025 [18:11:26]line Версия ККМ: 001 [18:11:26]line ФМ: 0000000000965389 [18:11:26]line ФД: 31794 [18:11:26]line ФПД: 9717324785192 [18:11:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T181130&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31794&fm=9717324785192&tin=02508201610067®Number=0000000000098025&sum=7500 [18:11:26]line 0 [18:11:26]written 0, free lines is 4095 [18:11:26]OFD Sender: Processing packet 31794 [packets to send 6, broken 5] [18:11:26]ProducePacketName [18:11:26]name=ofd_packets/00031794 [18:11:26]OFD Sender: To server: pG, [18:11:26]CommunicateWithHost lk.salyk.kg:30040 [18:11:26]ConnectInit lk.salyk.kg [18:11:26]Connected sock=10 [18:11:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 DC 3C 2B 01 65 95 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 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 D1 8F D0 B3 D0 BE 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 D2 B7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 32 7C 00 00 35 04 06 00 08 D6 7D B1 26 28 73 19 F5 D3 77 7C B0 E0 [18:11:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 2B F4 47 00 4C 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 32 7C 00 00 F4 03 04 00 DE 63 96 66 B6 04 01 00 00 9D 45 22 BE 4B 1C FD 61 [18:11:27]CommunicateWithHost err = 0 [18:11:27]CheckOFDResponse [18:11:27]1017 (14) - 77093643461234 [18:11:27]1041 (16) - 0000000000965389 [18:11:27]1040 (4) - 31794 [18:11:27]1012 (4) - 16.07.2024 12:13 [18:11:27]1206 (1) - 0 [18:11:27]OFD Sender: Remove packet 31794 [18:11:27]ProducePacketName [18:11:27]name=ofd_packets/00031794 [18:11:27]NVStorageDeleteData [18:11:27]Write to MH i2c: 01 00 00 0E 2D 3B [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 07 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: 01 07 00 0E 2D 00 00 00 00 00 0F 0D 5E [18:11:27]RasterBufferAndPrint [18:11:27]line [18:11:27]line [18:11:27]line [18:11:27]line [18:11:27]line [18:11:27]written 0, free lines is 3357 [18:11:27]MH_Cut [18:11:27]Write to MH i2c: D1 01 00 15 2D 01 14 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: D1 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: D1 01 00 [18:11:27]MH_I2C_Read... [18:11:27]Read from MH i2c: D1 01 00 15 2D 00 13 [18:11:27]Write to MH i2c: 01 00 00 16 2D 43 [18:11:27]Write i2c OK [18:11:27]MH_I2C_Read... [18:11:27]OFD Sender: No OFD packet to send [18:11:27]*** Cut start [18:11:27]*** Partial cut [18:11:27]*** CUTSNS_PIN = 1 [18:11:27]*** CUTSNS_PIN = 0 [18:11:28]*** Brake cut motor [18:11:28]Read from MH i2c: 01 [18:11:28]MH_I2C_Read... [18:11:28]*** Stop cut motor [18:11:28]*** Cut end [18:11:28]Read from MH i2c: 01 07 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: 01 07 00 16 2D 00 00 00 00 00 FF 0F 58 [18:11:28]process_action close_receipt done [18:11:28]requested_data is exist [18:11:28]produce_requested_data [18:11:28]requested_item fm.sn is exist - process it [18:11:28]wFMCommunicate request_size=4 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 11 00 00 [18:11:28]Write to MH i2c: E2 08 00 17 2D 80 11 00 00 00 00 00 00 BE [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 17 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 17 00 17 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 19 [18:11:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:11:28]wFMCommunicate OK [18:11:28]requested_item fd.num is exist - process it [18:11:28]SAM_PROTO_GetFieldsCounters [18:11:28]wFMCommunicate request_size=4 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 13 00 00 [18:11:28]Write to MH i2c: E2 08 00 18 2D 80 13 00 00 00 00 00 00 C1 [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 62 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 62 00 18 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 32 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 5E [18:11:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 32 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:28]wFMCommunicate OK [18:11:28]SAM_PROTO_GetFieldsCounters done [18:11:28]requested_item shift.num is exist - process it [18:11:28]requested_item shift.opened is exist - process it [18:11:28]req_shift_opened [18:11:28]FM_GetShiftState [18:11:28]SAM_PROTO_GetShiftState [18:11:28]wFMCommunicate request_size=4 [18:11:28]MH_SAM_APDU [18:11:28]CAPDU: 80 13 01 00 [18:11:28]Write to MH i2c: E2 08 00 19 2D 80 13 01 00 00 00 00 00 C3 [18:11:28]Write i2c OK [18:11:28]MH_I2C_Read... [18:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:28]Read from MH i2c: E2 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 0E 00 [18:11:28]MH_I2C_Read... [18:11:28]Read from MH i2c: E2 0E 00 19 2D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 12 [18:11:28]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [18:11:28]wFMCommunicate OK [18:11:28]SAM_PROTO_GetShiftState done [18:11:28]FM_GetShiftState done [18:11:28]req_shift_opened done [18:11:28]requested_item shift.open_date is exist - process it [18:11:28]req_shift_open_date [18:11:28]req_shift_open_date done [18:11:28]produce_requested_data done [18:11:28]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31794,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [18:11:28]process_action_free close_receipt [18:11:28]json_value_free [18:11:28]json_value_free done [18:11:28]process_json_proto returns [18:11:28]Send response to host [18:11:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31794,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [18:11:28]free response buf [18:11:28]execute_script done [18:11:28]execute_script returns [18:11:28]free content buf [18:11:28]Sock 9.Close socket [18:11:28]Sock 9.Thread stoped [18:11:32]OFD Sender: No OFD packet to send [18:11:37]OFD Sender: No OFD packet to send [18:11:42]OFD Sender: No OFD packet to send [18:11:47]OFD Sender: No OFD packet to send [18:11:52]OFD Sender: No OFD packet to send [18:11:57]OFD Sender: No OFD packet to send [18:12:02]OFD Sender: No OFD packet to send [18:12:07]OFD Sender: No OFD packet to send [18:12:12]OFD Sender: No OFD packet to send [18:12:17]OFD Sender: No OFD packet to send [18:12:22]OFD Sender: No OFD packet to send [18:12:27]OFD Sender: No OFD packet to send [18:12:32]OFD Sender: No OFD packet to send [18:12:37]OFD Sender: No OFD packet to send [18:12:42]OFD Sender: No OFD packet to send [18:12:47]OFD Sender: No OFD packet to send [18:12:52]OFD Sender: No OFD packet to send [18:12:57]OFD Sender: No OFD packet to send [18:13:02]OFD Sender: No OFD packet to send [18:13:07]OFD Sender: No OFD packet to send [18:13:12]OFD Sender: No OFD packet to send [18:13:17]OFD Sender: No OFD packet to send [18:13:22]OFD Sender: No OFD packet to send [18:13:27]OFD Sender: No OFD packet to send [18:13:32]OFD Sender: No OFD packet to send [18:13:37]OFD Sender: No OFD packet to send [18:13:42]OFD Sender: No OFD packet to send [18:13:47]OFD Sender: No OFD packet to send [18:13:52]OFD Sender: No OFD packet to send [18:13:57]OFD Sender: No OFD packet to send [18:14:02]OFD Sender: No OFD packet to send [18:14:07]OFD Sender: No OFD packet to send [18:14:12]OFD Sender: No OFD packet to send [18:14:17]OFD Sender: No OFD packet to send [18:14:22]OFD Sender: No OFD packet to send [18:14:27]OFD Sender: No OFD packet to send [18:14:32]OFD Sender: No OFD packet to send [18:14:37]OFD Sender: No OFD packet to send [18:14:42]OFD Sender: No OFD packet to send [18:14:47]OFD Sender: No OFD packet to send [18:14:52]OFD Sender: No OFD packet to send [18:14:57]OFD Sender: No OFD packet to send [18:15:02]OFD Sender: No OFD packet to send [18:15:07]OFD Sender: No OFD packet to send [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:07]OFD Sender: No OFD packet to send [18:17:12]OFD Sender: No OFD packet to send [18:17:17]OFD Sender: No OFD packet to send [18:17:20]accept exits with 7 [18:17:20]New connection [18:17:20]New thread 3066965348 created [18:17:20]Thread 3066821988 joined [18:17:20]Waiting for new connection... [18:17:20] Sock 7.Parse request [18:17:20]Sock 7.Check first char [18:17:20]Sock 7.First char is OK [18:17:20]request: POST /json_proto HTTP/1.0 [18:17:20]Method: POST [18:17:20]URL: /json_proto [18:17:20]Method is POST - this is cgi request [18:17:20]url: /json_proto [18:17:20]query_string will be loaded in cgi processing [18:17:20]execute_cgi json_proto POST (null) [18:17:20]execute_cgi path=json_proto method=POST [18:17:20]POST find Content-Length [18:17:20]Host: 172.17.39.68:8080 [18:17:20]Content-Length: 906 [18:17:20]Content-Type: application/json [18:17:20] [18:17:20]POST finish read [18:17:20]Found Content-Length = 906 [18:17:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214376", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 231.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:20]execute_script... [18:17:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214376", "tax_sys" : 0, "items" : [ { "code": "4870001570095", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 231.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:20]POST & json_proto [18:17:20]process_json_proto [18:17:20]json parsed OK: [18:17:20]protocol is kg_v1.0 [18:17:20]action value=close_receipt [18:17:20]process_action close_receipt [18:17:20]cmd_close_receipt [18:17:20]MH_GetDate [18:17:20]Write to MH i2c: F0 00 00 1A 2D 36 [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: F0 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: F0 09 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: F0 09 00 1A 2D 00 35 B9 96 66 D6 48 95 66 42 [18:17:20]GetLastDocTimeStamp 1721153490 [18:17:20]current date 1721153845 [18:17:20]FM_GetShiftState [18:17:20]SAM_PROTO_GetShiftState [18:17:20]wFMCommunicate request_size=4 [18:17:20]MH_SAM_APDU [18:17:20]CAPDU: 80 13 01 00 [18:17:20]Write to MH i2c: E2 08 00 1B 2D 80 13 01 00 00 00 00 00 C5 [18:17:20]Write i2c OK [18:17:20]MH_I2C_Read... [18:17:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:20]Read from MH i2c: E2 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 0E 00 [18:17:20]MH_I2C_Read... [18:17:20]Read from MH i2c: E2 0E 00 1B 2D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 14 [18:17:20]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [18:17:20]wFMCommunicate OK [18:17:20]SAM_PROTO_GetShiftState done [18:17:20]FM_GetShiftState done [18:17:20]opened in 1721088399 [18:17:20]opened+sec_in_day 1721174799 [18:17:20]quantity*price = 21000 [18:17:20]sum+1 = 21001 [18:17:20]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 231.00 НСП 1% : 2.05 НДС 12% : 24.53 Наличными: 231.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 114 16.07.2024 18:17 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31795 ФПД: 233878451461081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T181725&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31795&fm=233878451461081&tin=02508201610067®Number=0000000000098025&sum=23100 0 [18:17:21]StoreToDocumentArchive [18:17:21]shift 371 fd 31795 [18:17:21]save to /storage/0371/doc_00031795 [18:17:21]save last doc name /storage/0371/doc_00031795 to /storage/kkm_last_doc_name [18:17:21]save OK [18:17:21]Clear old archive folders... [18:17:21]ProcessDocumentItem done err = 0, tmpTLVsize=383 [18:17:21]tlvbuf is 014E6C00 [18:17:21]SAM_PROTO_ClearQueue [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 09 00 00 [18:17:21]Write to MH i2c: E2 08 00 28 2D 80 09 00 00 00 00 00 00 C7 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:21]Read from MH i2c: E2 03 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 03 00 28 2D 00 90 00 C9 [18:17:21]RAPDU: 90 00 [18:17:21]wFMCommunicate OK [18:17:21]SAM_PROTO_ClearQueue done [18:17:21]KKMCreateOFDPacket [18:17:21]OFDProtocolAddRootSTLVToBuf [18:17:21]FM_MakeSignedData [18:17:21]FM_MakeSignedData [18:17:21]SAM_PROTO_SignData [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 0D 01 02 [18:17:21]Write to MH i2c: E2 08 00 29 2D 80 0D 01 02 00 00 00 00 CF [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 03 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 03 00 29 2D 00 90 00 CA [18:17:21]RAPDU: 90 00 [18:17:21]wFMCommunicate OK [18:17:21]wFMCommunicate request_size=255 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 0D 02 02 FA 03 00 7F 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 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 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 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD [18:17:21]Write to MH i2c: E2 02 01 2A 2D 80 0D 02 02 FA 00 03 00 7F 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 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 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 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 6E [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 03 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 03 00 2A 2D 00 90 00 CB [18:17:21]RAPDU: 90 00 [18:17:21]wFMCommunicate OK [18:17:21]wFMCommunicate request_size=142 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 09 00 00 00 00 07 04 06 00 3C 5A 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 35 B9 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 33 7C 00 00 35 04 06 00 D4 B6 12 05 1B D9 [18:17:21]Write to MH i2c: E2 91 00 2B 2D 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 09 00 00 00 00 07 04 06 00 3C 5A 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 35 B9 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 33 7C 00 00 35 04 06 00 D4 B6 12 05 1B D9 00 00 60 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 03 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 03 00 2B 2D 00 90 00 CC [18:17:21]RAPDU: 90 00 [18:17:21]wFMCommunicate OK [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 0D 03 02 [18:17:21]Write to MH i2c: E2 08 00 2C 2D 80 0D 03 02 00 00 00 00 D4 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 0B 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 0B 00 2C 2D 00 38 EF E6 5C 6D 4D 19 41 90 00 52 [18:17:21]RAPDU: 38 EF E6 5C 6D 4D 19 41 90 00 [18:17:21]wFMCommunicate OK [18:17:21]SAM_PROTO_SignData done [18:17:21]FM_MakeSignedData done [18:17:21]CreateOFDProtocolMessage [18:17:21]wFMCommunicate request_size=4 [18:17:21]MH_SAM_APDU [18:17:21]CAPDU: 80 11 00 00 [18:17:21]Write to MH i2c: E2 08 00 2D 2D 80 11 00 00 00 00 00 00 D4 [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:21]Read from MH i2c: E2 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 17 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: E2 17 00 2D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2F [18:17:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:17:21]wFMCommunicate OK [18:17:21]CreateOFDProtocolMessage done [18:17:21]OFDSenderStorePacket 31795 [18:17:21]StoreOFDPacket docnum=31795 [18:17:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 93 01 00 00 0C 13 8B 01 2C 99 5A 03 01 00 03 00 7F 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 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 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 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 09 00 00 00 00 07 04 06 00 3C 5A 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 35 B9 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 33 7C 00 00 35 04 06 00 D4 B6 12 05 1B D9 38 EF E6 5C 6D 4D 19 41 [18:17:21]CheckFolder [18:17:21]dirname=/storage/ofd_packets [18:17:21]CheckFolder done [18:17:21]ProducePacketName [18:17:21]name=ofd_packets/00031795 [18:17:21]NVStorageSaveData ofd_packets/00031795 [18:17:21]File name is /storage/ofd_packets/00031795 [18:17:21]Write 433 bytes [18:17:21]NVStorageSaveData done [18:17:21]OFDSenderStorePacket done [18:17:21]KKMCreateOFDPacket done [18:17:21]NVStorageSaveData kkm_last_timestamp [18:17:21]File name is /storage/kkm_last_timestamp [18:17:21]Write 4 bytes [18:17:21]NVStorageSaveData done [18:17:21]ExternCall_PrintAddStr [18:17:21]wPrintStart [18:17:21]Write to MH i2c: 01 00 00 2E 2D 5B [18:17:21]Write i2c OK [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: 01 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: 01 07 00 [18:17:21]MH_I2C_Read... [18:17:21]Read from MH i2c: 01 07 00 2E 2D 00 00 00 00 00 FF 0F 70 [18:17:21]RasterBufferAndPrint [18:17:21]line Счет N : (3)214376 [18:17:21]line ИНН: 02508201610067 [18:17:21]line Контрольно-Кассовый Чек [18:17:21]line ПРОДАЖА [18:17:21]line Товар: 4870001570095 [18:17:21]line Напиток Pepsi 2л [18:17:21]line 1.000 * 210.00 [18:17:21]line = 210.00 [18:17:21]line НДС 12% НСП 1% [18:17:21]line > о реализуемом товаре [18:17:21]line Товар: 2000053020015 [18:17:21]line Бумажные стаканы 250мл 1шт [18:17:21]line 3.000 * 7.00 [18:17:21]line = 21.00 [18:17:21]line НДС 12% НСП 1% [18:17:22]line > о реализуемом товаре [18:17:22]line ИТОГО: 231.00 [18:17:22]line НСП 1% : 2.05 [18:17:22]line НДС 12% : 24.53 [18:17:22]line Наличными: 231.00 [18:17:22]line Безнал.: 0.00 [18:17:22]line Место: АЗС № 140 "Партнер Нефть" [18:17:22]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:17:22]line СНО: Общий режим [18:17:22]line Чек 114 16.07.2024 18:17 [18:17:22]line Смена: 371 ФФД: 1.0 [18:17:22]line ЗНМ: 0300000189 [18:17:22]line РНМ: 0000000000098025 [18:17:22]line Версия ККМ: 001 [18:17:22]line ФМ: 0000000000965389 [18:17:22]line ФД: 31795 [18:17:22]line ФПД: 233878451461081 [18:17:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T181725&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31795&fm=233878451461081&tin=02508201610067®Number=0000000000098025&sum=23100 [18:17:22]line 0 [18:17:22]OFD Sender: Processing packet 31795 [packets to send 6, broken 5] [18:17:22]ProducePacketName [18:17:22]name=ofd_packets/00031795 [18:17:22]OFD Sender: To server: pG, [18:17:22]CommunicateWithHost lk.salyk.kg:30040 [18:17:22]ConnectInit lk.salyk.kg [18:17:22]written 0, free lines is 4095 [18:17:22]Connected sock=10 [18:17:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 93 01 00 00 0C 13 8B 01 2C 99 5A 03 01 00 03 00 7F 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 39 35 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 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 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 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 95 09 00 00 00 00 07 04 06 00 3C 5A 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 35 B9 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 33 7C 00 00 35 04 06 00 D4 B6 12 05 1B D9 38 EF E6 5C 6D 4D 19 41 [18:17:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 2A 53 47 00 FC 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 35 33 38 39 10 04 04 00 33 7C 00 00 F4 03 04 00 42 65 96 66 B6 04 01 00 00 D0 4A 57 8B 06 3F F7 70 [18:17:22]CommunicateWithHost err = 0 [18:17:22]CheckOFDResponse [18:17:22]1017 (14) - 77093643461234 [18:17:22]1041 (16) - 0000000000965389 [18:17:22]1040 (4) - 31795 [18:17:22]1012 (4) - 16.07.2024 12:19 [18:17:22]1206 (1) - 0 [18:17:22]OFD Sender: Remove packet 31795 [18:17:22]ProducePacketName [18:17:22]name=ofd_packets/00031795 [18:17:22]NVStorageDeleteData [18:17:22]Write to MH i2c: 01 00 00 5D 2D 8A [18:17:22]Write i2c OK [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: 01 [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: 01 07 00 [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: 01 07 00 5D 2D 00 00 00 00 00 92 0C 2F [18:17:22]RasterBufferAndPrint [18:17:22]line [18:17:22]line [18:17:22]line [18:17:22]line [18:17:22]line [18:17:22]written 0, free lines is 3223 [18:17:22]MH_Cut [18:17:22]Write to MH i2c: D1 01 00 64 2D 01 63 [18:17:22]Write i2c OK [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: D1 [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: D1 01 00 [18:17:22]MH_I2C_Read... [18:17:22]Read from MH i2c: D1 01 00 64 2D 00 62 [18:17:22]Write to MH i2c: 01 00 00 65 2D 92 [18:17:22]Write i2c OK [18:17:22]MH_I2C_Read... [18:17:23]OFD Sender: No OFD packet to send [18:17:23]*** Cut start [18:17:23]*** Partial cut [18:17:23]*** CUTSNS_PIN = 1 [18:17:23]*** CUTSNS_PIN = 0 [18:17:23]*** Brake cut motor [18:17:24]Read from MH i2c: 01 [18:17:24]MH_I2C_Read... [18:17:24]*** Stop cut motor [18:17:24]*** Cut end [18:17:24]Read from MH i2c: 01 07 00 [18:17:24]MH_I2C_Read... [18:17:24]Read from MH i2c: 01 07 00 65 2D 00 00 00 00 00 FF 0F A7 [18:17:24]process_action close_receipt done [18:17:24]requested_data is exist [18:17:24]produce_requested_data [18:17:24]requested_item fm.sn is exist - process it [18:17:24]wFMCommunicate request_size=4 [18:17:24]MH_SAM_APDU [18:17:24]CAPDU: 80 11 00 00 [18:17:24]Write to MH i2c: E2 08 00 66 2D 80 11 00 00 00 00 00 00 0D [18:17:24]Write i2c OK [18:17:24]MH_I2C_Read... [18:17:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:24]Read from MH i2c: E2 [18:17:24]MH_I2C_Read... [18:17:24]Read from MH i2c: E2 17 00 [18:17:24]MH_I2C_Read... [18:17:24]Read from MH i2c: E2 17 00 66 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 68 [18:17:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:17:24]wFMCommunicate OK [18:17:24]requested_item fd.num is exist - process it [18:17:24]SAM_PROTO_GetFieldsCounters [18:17:24]wFMCommunicate request_size=4 [18:17:24]MH_SAM_APDU [18:17:24]CAPDU: 80 13 00 00 [18:17:24]Write to MH i2c: E2 08 00 67 2D 80 13 00 00 00 00 00 00 10 [18:17:24]Write i2c OK [18:17:24]MH_I2C_Read... [18:17:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:24]Read from MH i2c: E2 [18:17:24]MH_I2C_Read... [18:17:24]Read from MH i2c: E2 62 00 [18:17:24]MH_I2C_Read... [18:17:24]Read from MH i2c: E2 62 00 67 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 33 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [18:17:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 33 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:17:24]wFMCommunicate OK [18:17:24]SAM_PROTO_GetFieldsCounters done [18:17:24]requested_item shift.num is exist - process it [18:17:24]requested_item shift.opened is exist - process it [18:17:24]req_shift_opened [18:17:24]FM_GetShiftState [18:17:24]SAM_PROTO_GetShiftState [18:17:24]wFMCommunicate request_size=4 [18:17:24]MH_SAM_APDU [18:17:24]CAPDU: 80 13 01 00 [18:17:24]Write to MH i2c: E2 08 00 68 2D 80 13 01 00 00 00 00 00 12 [18:17:24]Write i2c OK [18:17:24]MH_I2C_Read... [18:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:24]Read from MH i2c: E2 [18:17:24]MH_I2C_Read... [18:17:24]Read from MH i2c: E2 0E 00 [18:17:24]MH_I2C_Read... [18:17:24]Read from MH i2c: E2 0E 00 68 2D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 61 [18:17:24]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [18:17:24]wFMCommunicate OK [18:17:24]SAM_PROTO_GetShiftState done [18:17:24]FM_GetShiftState done [18:17:24]req_shift_opened done [18:17:24]requested_item shift.open_date is exist - process it [18:17:24]req_shift_open_date [18:17:24]req_shift_open_date done [18:17:24]produce_requested_data done [18:17:24]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31795,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [18:17:24]process_action_free close_receipt [18:17:24]json_value_free [18:17:24]json_value_free done [18:17:24]process_json_proto returns [18:17:24]Send response to host [18:17:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31795,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [18:17:24]free response buf [18:17:24]execute_script done [18:17:24]execute_script returns [18:17:24]free content buf [18:17:24]Sock 7.Close socket [18:17:24]Sock 7.Thread stoped [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30:08]OFD Sender: No OFD packet to send [18:30:13]OFD Sender: No OFD packet to send [18:30:18]OFD Sender: No OFD packet to send [18:30:23]OFD Sender: No OFD packet to send [18:30:28]OFD Sender: No OFD packet to send [18:30:33]OFD Sender: No OFD packet to send [18:30:38]OFD Sender: No OFD packet to send [18:30:43]OFD Sender: No OFD packet to send [18:30:48]OFD Sender: No OFD packet to send [18:30:53]OFD Sender: No OFD packet to send [18:30:53]accept exits with 9 [18:30:53]New connection [18:30:53]New thread 3066821988 created [18:30:53]Thread 3066965348 joined [18:30:53]Waiting for new connection... [18:30:53] Sock 9.Parse request [18:30:53]Sock 9.Check first char [18:30:53]Sock 9.First char is OK [18:30:53]request: POST /json_proto HTTP/1.0 [18:30:53]Method: POST [18:30:53]URL: /json_proto [18:30:53]Method is POST - this is cgi request [18:30:53]url: /json_proto [18:30:53]query_string will be loaded in cgi processing [18:30:53]execute_cgi json_proto POST (null) [18:30:53]execute_cgi path=json_proto method=POST [18:30:53]POST find Content-Length [18:30:53]Host: 172.17.39.68:8080 [18:30:53]Content-Length: 617 [18:30:53]Content-Type: application/json [18:30:53] [18:30:53]POST finish read [18:30:53]Found Content-Length = 617 [18:30:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214377", "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 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:53]execute_script... [18:30: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 : (3)214377", "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 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:53]POST & json_proto [18:30:53]process_json_proto [18:30:53]json parsed OK: [18:30:53]protocol is kg_v1.0 [18:30:53]action value=close_receipt [18:30:53]process_action close_receipt [18:30:53]cmd_close_receipt [18:30:53]MH_GetDate [18:30:53]Write to MH i2c: F0 00 00 69 2D 85 [18:30:53]Write i2c OK [18:30:53]MH_I2C_Read... [18:30:53]Read from MH i2c: F0 [18:30:53]MH_I2C_Read... [18:30:53]Read from MH i2c: F0 09 00 [18:30:53]MH_I2C_Read... [18:30:53]Read from MH i2c: F0 09 00 69 2D 00 63 BC 96 66 D6 48 95 66 C2 [18:30:53]GetLastDocTimeStamp 1721153845 [18:30:53]current date 1721154659 [18:30:53]FM_GetShiftState [18:30:53]SAM_PROTO_GetShiftState [18:30:53]wFMCommunicate request_size=4 [18:30:53]MH_SAM_APDU [18:30:53]CAPDU: 80 13 01 00 [18:30:53]Write to MH i2c: E2 08 00 6A 2D 80 13 01 00 00 00 00 00 14 [18:30:53]Write i2c OK [18:30:53]MH_I2C_Read... [18:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:54]Read from MH i2c: E2 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: E2 0E 00 [18:30:54]MH_I2C_Read... [18:30:54]Read from MH i2c: E2 0E 00 6A 2D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 63 [18:30:54]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [18:30:54]wFMCommunicate OK [18:30:54]SAM_PROTO_GetShiftState done [18:30:54]FM_GetShiftState done [18:30:54]opened in 1721088399 [18:30:54]opened+sec_in_day 1721174799 [18:30:54]quantity*price = 14000 [18:30:54]sum+1 = 14001 [18:30:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 115 16.07.2024 18:30 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31796 ФПД: 203291807330016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T183059&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31796&fm=203291807330016&tin=02508201610067®Number=0000000000098025&sum=14000 0 [18:30:55]StoreToDocumentArchive [18:30:55]shift 371 fd 31796 [18:30:55]save to /storage/0371/doc_00031796 [18:30:55]save last doc name /storage/0371/doc_00031796 to /storage/kkm_last_doc_name [18:30:55]save OK [18:30:55]Clear old archive folders... [18:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:30:55]tlvbuf is B6EDD440 [18:30:55]SAM_PROTO_ClearQueue [18:30:55]wFMCommunicate request_size=4 [18:30:55]MH_SAM_APDU [18:30:55]CAPDU: 80 09 00 00 [18:30:55]Write to MH i2c: E2 08 00 77 2D 80 09 00 00 00 00 00 00 16 [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:55]Read from MH i2c: E2 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 03 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 03 00 77 2D 00 90 00 18 [18:30:55]RAPDU: 90 00 [18:30:55]wFMCommunicate OK [18:30:55]SAM_PROTO_ClearQueue done [18:30:55]KKMCreateOFDPacket [18:30:55]OFDProtocolAddRootSTLVToBuf [18:30:55]FM_MakeSignedData [18:30:55]FM_MakeSignedData [18:30:55]SAM_PROTO_SignData [18:30:55]wFMCommunicate request_size=4 [18:30:55]MH_SAM_APDU [18:30:55]CAPDU: 80 0D 01 02 [18:30:55]Write to MH i2c: E2 08 00 78 2D 80 0D 01 02 00 00 00 00 1E [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:55]Read from MH i2c: E2 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 03 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 03 00 78 2D 00 90 00 19 [18:30:55]RAPDU: 90 00 [18:30:55]wFMCommunicate OK [18:30:55]wFMCommunicate request_size=255 [18:30:55]MH_SAM_APDU [18:30:55]CAPDU: 80 0D 02 02 FA 03 00 0D 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 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 73 00 00 00 F4 03 04 00 63 BC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [18:30:55]Write to MH i2c: E2 02 01 79 2D 80 0D 02 02 FA 00 03 00 0D 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 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 73 00 00 00 F4 03 04 00 63 BC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 0B [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:55]Read from MH i2c: E2 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 03 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 03 00 79 2D 00 90 00 1A [18:30:55]RAPDU: 90 00 [18:30:55]wFMCommunicate OK [18:30:55]wFMCommunicate request_size=28 [18:30:55]MH_SAM_APDU [18:30:55]CAPDU: 80 0D 02 02 17 36 35 33 38 39 10 04 04 00 34 7C 00 00 35 04 06 00 B8 E4 8F F6 2E E0 [18:30:55]Write to MH i2c: E2 1F 00 7A 2D 80 0D 02 02 17 00 36 35 33 38 39 10 04 04 00 34 7C 00 00 35 04 06 00 B8 E4 8F F6 2E E0 00 00 94 [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:55]Read from MH i2c: E2 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 03 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 03 00 7A 2D 00 90 00 1B [18:30:55]RAPDU: 90 00 [18:30:55]wFMCommunicate OK [18:30:55]wFMCommunicate request_size=4 [18:30:55]MH_SAM_APDU [18:30:55]CAPDU: 80 0D 03 02 [18:30:55]Write to MH i2c: E2 08 00 7B 2D 80 0D 03 02 00 00 00 00 23 [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:55]Read from MH i2c: E2 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 0B 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 0B 00 7B 2D 00 2E 0F 62 A5 56 23 C6 56 90 00 FD [18:30:55]RAPDU: 2E 0F 62 A5 56 23 C6 56 90 00 [18:30:55]wFMCommunicate OK [18:30:55]SAM_PROTO_SignData done [18:30:55]FM_MakeSignedData done [18:30:55]CreateOFDProtocolMessage [18:30:55]wFMCommunicate request_size=4 [18:30:55]MH_SAM_APDU [18:30:55]CAPDU: 80 11 00 00 [18:30:55]Write to MH i2c: E2 08 00 7C 2D 80 11 00 00 00 00 00 00 23 [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:55]Read from MH i2c: E2 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 17 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: E2 17 00 7C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7E [18:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:30:55]wFMCommunicate OK [18:30:55]CreateOFDProtocolMessage done [18:30:55]OFDSenderStorePacket 31796 [18:30:55]StoreOFDPacket docnum=31796 [18:30:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 21 01 00 00 4E DA 19 01 D4 19 5A 03 01 00 03 00 0D 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 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 73 00 00 00 F4 03 04 00 63 BC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 34 7C 00 00 35 04 06 00 B8 E4 8F F6 2E E0 2E 0F 62 A5 56 23 C6 56 [18:30:55]CheckFolder [18:30:55]dirname=/storage/ofd_packets [18:30:55]CheckFolder done [18:30:55]ProducePacketName [18:30:55]name=ofd_packets/00031796 [18:30:55]NVStorageSaveData ofd_packets/00031796 [18:30:55]File name is /storage/ofd_packets/00031796 [18:30:55]Write 319 bytes [18:30:55]NVStorageSaveData done [18:30:55]OFDSenderStorePacket done [18:30:55]KKMCreateOFDPacket done [18:30:55]NVStorageSaveData kkm_last_timestamp [18:30:55]File name is /storage/kkm_last_timestamp [18:30:55]Write 4 bytes [18:30:55]NVStorageSaveData done [18:30:55]ExternCall_PrintAddStr [18:30:55]wPrintStart [18:30:55]Write to MH i2c: 01 00 00 7D 2D AA [18:30:55]Write i2c OK [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: 01 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: 01 07 00 [18:30:55]MH_I2C_Read... [18:30:55]Read from MH i2c: 01 07 00 7D 2D 00 00 00 00 00 FF 0F BF [18:30:55]RasterBufferAndPrint [18:30:55]line Счет N : (3)214377 [18:30:55]line ИНН: 02508201610067 [18:30:55]line Контрольно-Кассовый Чек [18:30:55]line ПРОДАЖА [18:30:55]line Товар: 47803008 [18:30:55]line Сигареты Winston XS Blue [18:30:55]line 1.000 * 140.00 [18:30:55]line = 140.00 [18:30:55]line НДС 12% НСП 1% [18:30:55]line > о реализуемом товаре [18:30:55]line ИТОГО: 140.00 [18:30:55]line НСП 1% : 1.24 [18:30:55]line НДС 12% : 14.87 [18:30:55]line Наличными: 140.00 [18:30:55]line Безнал.: 0.00 [18:30:55]line Место: АЗС № 140 "Партнер Нефть" [18:30:55]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:30:55]line СНО: Общий режим [18:30:55]line Чек 115 16.07.2024 18:30 [18:30:55]line Смена: 371 ФФД: 1.0 [18:30:55]line ЗНМ: 0300000189 [18:30:55]line РНМ: 0000000000098025 [18:30:55]line Версия ККМ: 001 [18:30:55]line ФМ: 0000000000965389 [18:30:55]line ФД: 31796 [18:30:55]line ФПД: 203291807330016 [18:30:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T183059&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31796&fm=203291807330016&tin=02508201610067®Number=0000000000098025&sum=14000 [18:30:55]line 0 [18:30:55]written 0, free lines is 4095 [18:30:55]OFD Sender: Processing packet 31796 [packets to send 6, broken 5] [18:30:55]ProducePacketName [18:30:55]name=ofd_packets/00031796 [18:30:55]OFD Sender: To server: pG, [18:30:55]CommunicateWithHost lk.salyk.kg:30040 [18:30:55]ConnectInit lk.salyk.kg [18:30:55]Connected sock=10 [18:30:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 21 01 00 00 4E DA 19 01 D4 19 5A 03 01 00 03 00 0D 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 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 73 00 00 00 F4 03 04 00 63 BC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 34 7C 00 00 35 04 06 00 B8 E4 8F F6 2E E0 2E 0F 62 A5 56 23 C6 56 [18:30:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 D0 A0 47 00 6E 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 34 7C 00 00 F4 03 04 00 6F 68 96 66 B6 04 01 00 00 9D D0 3F A5 EE 70 BB 2B [18:30:56]CommunicateWithHost err = 0 [18:30:56]CheckOFDResponse [18:30:56]1017 (14) - 77093643461234 [18:30:56]1041 (16) - 0000000000965389 [18:30:56]1040 (4) - 31796 [18:30:56]1012 (4) - 16.07.2024 12:32 [18:30:56]1206 (1) - 0 [18:30:56]OFD Sender: Remove packet 31796 [18:30:56]ProducePacketName [18:30:56]name=ofd_packets/00031796 [18:30:56]NVStorageDeleteData [18:30:56]Write to MH i2c: 01 00 00 A5 2D D2 [18:30:56]Write i2c OK [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: 01 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: 01 07 00 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: 01 07 00 A5 2D 00 00 00 00 00 1C 0D 02 [18:30:56]RasterBufferAndPrint [18:30:56]line [18:30:56]line [18:30:56]line [18:30:56]line [18:30:56]line [18:30:56]written 0, free lines is 3364 [18:30:56]MH_Cut [18:30:56]Write to MH i2c: D1 01 00 AC 2D 01 AB [18:30:56]Write i2c OK [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: D1 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: D1 01 00 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: D1 01 00 AC 2D 00 AA [18:30:56]Write to MH i2c: 01 00 00 AD 2D DA [18:30:56]Write i2c OK [18:30:56]MH_I2C_Read... [18:30:56]OFD Sender: No OFD packet to send [18:30:56]*** Cut start [18:30:56]*** Partial cut [18:30:56]*** CUTSNS_PIN = 1 [18:30:56]*** CUTSNS_PIN = 0 [18:30:57]*** Brake cut motor [18:30:57]Read from MH i2c: 01 [18:30:57]MH_I2C_Read... [18:30:57]*** Stop cut motor [18:30:57]*** Cut end [18:30:57]Read from MH i2c: 01 07 00 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: 01 07 00 AD 2D 00 00 00 00 00 FF 0F EF [18:30:57]process_action close_receipt done [18:30:57]requested_data is exist [18:30:57]produce_requested_data [18:30:57]requested_item fm.sn is exist - process it [18:30:57]wFMCommunicate request_size=4 [18:30:57]MH_SAM_APDU [18:30:57]CAPDU: 80 11 00 00 [18:30:57]Write to MH i2c: E2 08 00 AE 2D 80 11 00 00 00 00 00 00 55 [18:30:57]Write i2c OK [18:30:57]MH_I2C_Read... [18:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:57]Read from MH i2c: E2 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: E2 17 00 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: E2 17 00 AE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B0 [18:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:30:57]wFMCommunicate OK [18:30:57]requested_item fd.num is exist - process it [18:30:57]SAM_PROTO_GetFieldsCounters [18:30:57]wFMCommunicate request_size=4 [18:30:57]MH_SAM_APDU [18:30:57]CAPDU: 80 13 00 00 [18:30:57]Write to MH i2c: E2 08 00 AF 2D 80 13 00 00 00 00 00 00 58 [18:30:57]Write i2c OK [18:30:57]MH_I2C_Read... [18:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:30:57]Read from MH i2c: E2 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: E2 62 00 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: E2 62 00 AF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 34 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [18:30: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 34 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:30:57]wFMCommunicate OK [18:30:57]SAM_PROTO_GetFieldsCounters done [18:30:57]requested_item shift.num is exist - process it [18:30:57]requested_item shift.opened is exist - process it [18:30:57]req_shift_opened [18:30:57]FM_GetShiftState [18:30:57]SAM_PROTO_GetShiftState [18:30:57]wFMCommunicate request_size=4 [18:30:57]MH_SAM_APDU [18:30:57]CAPDU: 80 13 01 00 [18:30:57]Write to MH i2c: E2 08 00 B0 2D 80 13 01 00 00 00 00 00 5A [18:30:57]Write i2c OK [18:30:57]MH_I2C_Read... [18:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:57]Read from MH i2c: E2 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: E2 0E 00 [18:30:57]MH_I2C_Read... [18:30:57]Read from MH i2c: E2 0E 00 B0 2D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A9 [18:30:57]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [18:30:57]wFMCommunicate OK [18:30:57]SAM_PROTO_GetShiftState done [18:30:57]FM_GetShiftState done [18:30:57]req_shift_opened done [18:30:57]requested_item shift.open_date is exist - process it [18:30:57]req_shift_open_date [18:30:57]req_shift_open_date done [18:30:57]produce_requested_data done [18:30:57]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31796,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [18:30:57]process_action_free close_receipt [18:30:57]json_value_free [18:30:57]json_value_free done [18:30:57]process_json_proto returns [18:30:57]Send response to host [18:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31796,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [18:30:57]free response buf [18:30:57]execute_script done [18:30:57]execute_script returns [18:30:57]free content buf [18:30:57]Sock 9.Close socket [18:30:57]Sock 9.Thread stoped [18:31:01]OFD Sender: No OFD packet to send [18:31:06]OFD Sender: No OFD packet to send [18:31:11]OFD Sender: No OFD packet to send [18:31:16]OFD Sender: No OFD packet to send [18:31:21]OFD Sender: No OFD packet to send [18:31:26]OFD Sender: No OFD packet to send [18:31:31]OFD Sender: No OFD packet to send [18:31:36]OFD Sender: No OFD packet to send [18:31:41]OFD Sender: No OFD packet to send [18:31:46]OFD Sender: No OFD packet to send [18:31:51]OFD Sender: No OFD packet to send [18:31:56]OFD Sender: No OFD packet to send [18:32:01]OFD Sender: No OFD packet to send [18:32:06]OFD Sender: No OFD packet to send [18:32:11]OFD Sender: No OFD packet to send [18:32:16]OFD Sender: No OFD packet to send [18:32:21]OFD Sender: No OFD packet to send [18:32:26]OFD Sender: No OFD packet to send [18:32:31]OFD Sender: No OFD packet to send [18:32:36]OFD Sender: No OFD packet to send [18:32:41]OFD Sender: No OFD packet to send [18:32:46]OFD Sender: No OFD packet to send [18:32:51]OFD Sender: No OFD packet to send [18:32:56]OFD Sender: No OFD packet to send [18:33:01]OFD Sender: No OFD packet to send [18:33:06]OFD Sender: No OFD packet to send [18:33:11]OFD Sender: No OFD packet to send [18:33:16]OFD Sender: No OFD packet to send [18:33:21]OFD Sender: No OFD packet to send [18:33:26]OFD Sender: No OFD packet to send [18:33:31]OFD Sender: No OFD packet to send [18:33:36]OFD Sender: No OFD packet to send [18:33:41]OFD Sender: No OFD packet to send [18:33:46]OFD Sender: No OFD packet to send [18:33:51]OFD Sender: No OFD packet to send [18:33:56]OFD Sender: No OFD packet to send [18:34:01]OFD Sender: No OFD packet to send [18:34:06]OFD Sender: No OFD packet to send [18:34:11]OFD Sender: No OFD packet to send [18:34:16]OFD Sender: No OFD packet to send [18:34:21]OFD Sender: No OFD packet to send [18:34:26]OFD Sender: No OFD packet to send [18:34:31]OFD Sender: No OFD packet to send [18:34:36]OFD Sender: No OFD packet to send [18:34:41]OFD Sender: No OFD packet to send [18:34:46]OFD Sender: No OFD packet to send [18:34:51]OFD Sender: No OFD packet to send [18:34:56]OFD Sender: No OFD packet to send [18:35:01]OFD Sender: No OFD packet to send [18:35:06]OFD Sender: No OFD packet to send [18:35:11]OFD Sender: No OFD packet to send [18:35:16]OFD Sender: No OFD packet to send [18:35:21]OFD Sender: No OFD packet to send [18:35:26]OFD Sender: No OFD packet to send [18:35:31]OFD Sender: No OFD packet to send [18:35:36]OFD Sender: No OFD packet to send [18:35:41]OFD Sender: No OFD packet to send [18:35:46]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:26]OFD Sender: No OFD packet to send [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:56]OFD Sender: No OFD packet to send [18:38:01]OFD Sender: No OFD packet to send [18:38:06]OFD Sender: No OFD packet to send [18:38:11]OFD Sender: No OFD packet to send [18:38:16]OFD Sender: No OFD packet to send [18:38:21]OFD Sender: No OFD packet to send [18:38:26]OFD Sender: No OFD packet to send [18:38:31]OFD Sender: No OFD packet to send [18:38:36]OFD Sender: No OFD packet to send [18:38:37]accept exits with 7 [18:38:37]New connection [18:38:37]New thread 3066965348 created [18:38:37]Thread 3066821988 joined [18:38:37]Waiting for new connection... [18:38:37] Sock 7.Parse request [18:38:37]Sock 7.Check first char [18:38:37]Sock 7.First char is OK [18:38:37]request: POST /json_proto HTTP/1.0 [18:38:37]Method: POST [18:38:37]URL: /json_proto [18:38:37]Method is POST - this is cgi request [18:38:37]url: /json_proto [18:38:37]query_string will be loaded in cgi processing [18:38:37]execute_cgi json_proto POST (null) [18:38:37]execute_cgi path=json_proto method=POST [18:38:37]POST find Content-Length [18:38:37]Host: 172.17.39.68:8080 [18:38:37]Content-Length: 646 [18:38:37]Content-Type: application/json [18:38:37] [18:38:37]POST finish read [18:38:37]Found Content-Length = 646 [18:38:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214378", "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:38:37]execute_script... [18:38: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)214378", "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:38:37]POST & json_proto [18:38:37]process_json_proto [18:38:37]json parsed OK: [18:38:37]protocol is kg_v1.0 [18:38:37]action value=close_receipt [18:38:37]process_action close_receipt [18:38:37]cmd_close_receipt [18:38:37]MH_GetDate [18:38:37]Write to MH i2c: F0 00 00 B1 2D CD [18:38:37]Write i2c OK [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: F0 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: F0 09 00 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: F0 09 00 B1 2D 00 33 BE 96 66 D6 48 95 66 DC [18:38:37]GetLastDocTimeStamp 1721154659 [18:38:37]current date 1721155123 [18:38:37]FM_GetShiftState [18:38:37]SAM_PROTO_GetShiftState [18:38:37]wFMCommunicate request_size=4 [18:38:37]MH_SAM_APDU [18:38:37]CAPDU: 80 13 01 00 [18:38:37]Write to MH i2c: E2 08 00 B2 2D 80 13 01 00 00 00 00 00 5C [18:38:37]Write i2c OK [18:38:37]MH_I2C_Read... [18:38:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:37]Read from MH i2c: E2 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: E2 0E 00 [18:38:37]MH_I2C_Read... [18:38:37]Read from MH i2c: E2 0E 00 B2 2D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 AB [18:38:37]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [18:38:37]wFMCommunicate OK [18:38:37]SAM_PROTO_GetShiftState done [18:38:37]FM_GetShiftState done [18:38:37]opened in 1721088399 [18:38:37]opened+sec_in_day 1721174799 [18:38:37]quantity*price = 13000 [18:38:37]sum+1 = 13001 [18:38:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 116 16.07.2024 18:38 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31797 ФПД: 259115256678045 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T183843&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31797&fm=259115256678045&tin=02508201610067®Number=0000000000098025&sum=13000 0 [18:38:38]StoreToDocumentArchive [18:38:38]shift 371 fd 31797 [18:38:38]save to /storage/0371/doc_00031797 [18:38:38]save last doc name /storage/0371/doc_00031797 to /storage/kkm_last_doc_name [18:38:38]save OK [18:38:38]Clear old archive folders... [18:38:38]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:38:38]tlvbuf is B6DAB240 [18:38:38]SAM_PROTO_ClearQueue [18:38:38]wFMCommunicate request_size=4 [18:38:38]MH_SAM_APDU [18:38:38]CAPDU: 80 09 00 00 [18:38:38]Write to MH i2c: E2 08 00 BF 2D 80 09 00 00 00 00 00 00 5E [18:38:38]Write i2c OK [18:38:38]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 [18:38:39]MH_I2C_Read... [18:38:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:39]Read from MH i2c: E2 03 00 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 03 00 BF 2D 00 90 00 60 [18:38:39]RAPDU: 90 00 [18:38:39]wFMCommunicate OK [18:38:39]SAM_PROTO_ClearQueue done [18:38:39]KKMCreateOFDPacket [18:38:39]OFDProtocolAddRootSTLVToBuf [18:38:39]FM_MakeSignedData [18:38:39]FM_MakeSignedData [18:38:39]SAM_PROTO_SignData [18:38:39]wFMCommunicate request_size=4 [18:38:39]MH_SAM_APDU [18:38:39]CAPDU: 80 0D 01 02 [18:38:39]Write to MH i2c: E2 08 00 C0 2D 80 0D 01 02 00 00 00 00 66 [18:38:39]Write i2c OK [18:38:39]MH_I2C_Read... [18:38:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:39]Read from MH i2c: E2 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 03 00 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 03 00 C0 2D 00 90 00 61 [18:38:39]RAPDU: 90 00 [18:38:39]wFMCommunicate OK [18:38:39]wFMCommunicate request_size=255 [18:38:39]MH_SAM_APDU [18:38:39]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 74 00 00 00 F4 03 04 00 33 BE 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 [18:38:39]Write to MH i2c: E2 02 01 C1 2D 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 74 00 00 00 F4 03 04 00 33 BE 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 00 00 49 [18:38:39]Write i2c OK [18:38:39]MH_I2C_Read... [18:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:39]Read from MH i2c: E2 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 03 00 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 03 00 C1 2D 00 90 00 62 [18:38:39]RAPDU: 90 00 [18:38:39]wFMCommunicate OK [18:38:39]wFMCommunicate request_size=41 [18:38:39]MH_SAM_APDU [18:38:39]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 35 7C 00 00 35 04 06 00 EB A9 F8 D4 86 9D [18:38:39]Write to MH i2c: E2 2C 00 C2 2D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 35 7C 00 00 35 04 06 00 EB A9 F8 D4 86 9D 00 00 74 [18:38:39]Write i2c OK [18:38:39]MH_I2C_Read... [18:38:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:39]Read from MH i2c: E2 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 03 00 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 03 00 C2 2D 00 90 00 63 [18:38:39]RAPDU: 90 00 [18:38:39]wFMCommunicate OK [18:38:39]wFMCommunicate request_size=4 [18:38:39]MH_SAM_APDU [18:38:39]CAPDU: 80 0D 03 02 [18:38:39]Write to MH i2c: E2 08 00 C3 2D 80 0D 03 02 00 00 00 00 6B [18:38:39]Write i2c OK [18:38:39]MH_I2C_Read... [18:38:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:39]Read from MH i2c: E2 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 0B 00 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 0B 00 C3 2D 00 1E 88 89 3E 4F 4B A4 F5 90 00 0C [18:38:39]RAPDU: 1E 88 89 3E 4F 4B A4 F5 90 00 [18:38:39]wFMCommunicate OK [18:38:39]SAM_PROTO_SignData done [18:38:39]FM_MakeSignedData done [18:38:39]CreateOFDProtocolMessage [18:38:39]wFMCommunicate request_size=4 [18:38:39]MH_SAM_APDU [18:38:39]CAPDU: 80 11 00 00 [18:38:39]Write to MH i2c: E2 08 00 C4 2D 80 11 00 00 00 00 00 00 6B [18:38:39]Write i2c OK [18:38:39]MH_I2C_Read... [18:38:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:39]Read from MH i2c: E2 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 17 00 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: E2 17 00 C4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 C6 [18:38:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:38:39]wFMCommunicate OK [18:38:39]CreateOFDProtocolMessage done [18:38:39]OFDSenderStorePacket 31797 [18:38:39]StoreOFDPacket docnum=31797 [18:38:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 83 3C 26 01 3A 7A 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 74 00 00 00 F4 03 04 00 33 BE 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 35 7C 00 00 35 04 06 00 EB A9 F8 D4 86 9D 1E 88 89 3E 4F 4B A4 F5 [18:38:39]CheckFolder [18:38:39]dirname=/storage/ofd_packets [18:38:39]CheckFolder done [18:38:39]ProducePacketName [18:38:39]name=ofd_packets/00031797 [18:38:39]NVStorageSaveData ofd_packets/00031797 [18:38:39]File name is /storage/ofd_packets/00031797 [18:38:39]Write 332 bytes [18:38:39]NVStorageSaveData done [18:38:39]OFDSenderStorePacket done [18:38:39]KKMCreateOFDPacket done [18:38:39]NVStorageSaveData kkm_last_timestamp [18:38:39]File name is /storage/kkm_last_timestamp [18:38:39]Write 4 bytes [18:38:39]NVStorageSaveData done [18:38:39]ExternCall_PrintAddStr [18:38:39]wPrintStart [18:38:39]Write to MH i2c: 01 00 00 C5 2D F2 [18:38:39]Write i2c OK [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: 01 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: 01 07 00 [18:38:39]MH_I2C_Read... [18:38:39]Read from MH i2c: 01 07 00 C5 2D 00 00 00 00 00 FF 0F 07 [18:38:39]RasterBufferAndPrint [18:38:39]line Счет N : (3)214378 [18:38:39]line ИНН: 02508201610067 [18:38:39]line Контрольно-Кассовый Чек [18:38:39]line ПРОДАЖА [18:38:39]line Товар: 2000036220012 [18:38:39]line Кофе Капучино XL(GABB TRADE) [18:38:39]line 1.000 * 130.00 [18:38:39]line = 130.00 [18:38:39]line НДС 12% НСП 1% [18:38:39]line > о реализуемом товаре [18:38:39]line ИТОГО: 130.00 [18:38:39]line НСП 1% : 1.15 [18:38:39]line НДС 12% : 13.80 [18:38:39]line Наличными: 130.00 [18:38:39]line Безнал.: 0.00 [18:38:39]line Место: АЗС № 140 "Партнер Нефть" [18:38:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [18:38:39]line СНО: Общий режим [18:38:39]line Чек 116 16.07.2024 18:38 [18:38:39]line Смена: 371 ФФД: 1.0 [18:38:39]line ЗНМ: 0300000189 [18:38:39]line РНМ: 0000000000098025 [18:38:39]line Версия ККМ: 001 [18:38:39]line ФМ: 0000000000965389 [18:38:39]line ФД: 31797 [18:38:39]line ФПД: 259115256678045 [18:38:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T183843&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31797&fm=259115256678045&tin=02508201610067®Number=0000000000098025&sum=13000 [18:38:39]line 0 [18:38:39]OFD Sender: Processing packet 31797 [packets to send 6, broken 5] [18:38:39]ProducePacketName [18:38:39]name=ofd_packets/00031797 [18:38:39]OFD Sender: To server: pG, [18:38:39]CommunicateWithHost lk.salyk.kg:30040 [18:38:39]ConnectInit lk.salyk.kg [18:38:39]written 0, free lines is 4095 [18:38:39]Connected sock=10 [18:38:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2E 01 00 00 83 3C 26 01 3A 7A 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 74 00 00 00 F4 03 04 00 33 BE 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 35 7C 00 00 35 04 06 00 EB A9 F8 D4 86 9D 1E 88 89 3E 4F 4B A4 F5 [18:38:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 E2 FB 47 00 A5 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 35 33 38 39 10 04 04 00 35 7C 00 00 F4 03 04 00 40 6A 96 66 B6 04 01 00 00 0A 7E 9E 2A 1B F7 CA 46 [18:38:40]CommunicateWithHost err = 0 [18:38:40]CheckOFDResponse [18:38:40]1017 (14) - 77093643461234 [18:38:40]1041 (16) - 0000000000965389 [18:38:40]1040 (4) - 31797 [18:38:40]1012 (4) - 16.07.2024 12:40 [18:38:40]1206 (1) - 0 [18:38:40]OFD Sender: Remove packet 31797 [18:38:40]ProducePacketName [18:38:40]name=ofd_packets/00031797 [18:38:40]NVStorageDeleteData [18:38:40]Write to MH i2c: 01 00 00 EE 2D 1B [18:38:40]Write i2c OK [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: 01 [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: 01 07 00 [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: 01 07 00 EE 2D 00 00 00 00 00 06 0D 35 [18:38:40]RasterBufferAndPrint [18:38:40]line [18:38:40]line [18:38:40]line [18:38:40]line [18:38:40]line [18:38:40]written 0, free lines is 3340 [18:38:40]MH_Cut [18:38:40]Write to MH i2c: D1 01 00 F5 2D 01 F4 [18:38:40]Write i2c OK [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: D1 [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: D1 01 00 [18:38:40]MH_I2C_Read... [18:38:40]Read from MH i2c: D1 01 00 F5 2D 00 F3 [18:38:40]Write to MH i2c: 01 00 00 F6 2D 23 [18:38:40]Write i2c OK [18:38:40]MH_I2C_Read... [18:38:40]OFD Sender: No OFD packet to send [18:38:41]*** Cut start [18:38:41]*** Partial cut [18:38:41]*** CUTSNS_PIN = 1 [18:38:41]*** CUTSNS_PIN = 0 [18:38:41]*** Brake cut motor [18:38:41]Read from MH i2c: 01 [18:38:41]MH_I2C_Read... [18:38:41]*** Stop cut motor [18:38:41]*** Cut end [18:38:41]Read from MH i2c: 01 07 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: 01 07 00 F6 2D 00 00 00 00 00 FF 0F 38 [18:38:41]process_action close_receipt done [18:38:41]requested_data is exist [18:38:41]produce_requested_data [18:38:41]requested_item fm.sn is exist - process it [18:38:41]wFMCommunicate request_size=4 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 11 00 00 [18:38:41]Write to MH i2c: E2 08 00 F7 2D 80 11 00 00 00 00 00 00 9E [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:41]Read from MH i2c: E2 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 17 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 17 00 F7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F9 [18:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [18:38:41]wFMCommunicate OK [18:38:41]requested_item fd.num is exist - process it [18:38:41]SAM_PROTO_GetFieldsCounters [18:38:41]wFMCommunicate request_size=4 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 13 00 00 [18:38:41]Write to MH i2c: E2 08 00 F8 2D 80 13 00 00 00 00 00 00 A1 [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:41]Read from MH i2c: E2 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 62 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 62 00 F8 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 35 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [18:38: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 35 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:38:41]wFMCommunicate OK [18:38:41]SAM_PROTO_GetFieldsCounters done [18:38:41]requested_item shift.num is exist - process it [18:38:41]requested_item shift.opened is exist - process it [18:38:41]req_shift_opened [18:38:41]FM_GetShiftState [18:38:41]SAM_PROTO_GetShiftState [18:38:41]wFMCommunicate request_size=4 [18:38:41]MH_SAM_APDU [18:38:41]CAPDU: 80 13 01 00 [18:38:41]Write to MH i2c: E2 08 00 F9 2D 80 13 01 00 00 00 00 00 A3 [18:38:41]Write i2c OK [18:38:41]MH_I2C_Read... [18:38:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:41]Read from MH i2c: E2 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 0E 00 [18:38:41]MH_I2C_Read... [18:38:41]Read from MH i2c: E2 0E 00 F9 2D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F2 [18:38:41]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [18:38:41]wFMCommunicate OK [18:38:41]SAM_PROTO_GetShiftState done [18:38:41]FM_GetShiftState done [18:38:41]req_shift_opened done [18:38:41]requested_item shift.open_date is exist - process it [18:38:41]req_shift_open_date [18:38:41]req_shift_open_date done [18:38:41]produce_requested_data done [18:38:41]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31797,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [18:38:41]process_action_free close_receipt [18:38:41]json_value_free [18:38:41]json_value_free done [18:38:41]process_json_proto returns [18:38:41]Send response to host [18:38:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31797,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [18:38:41]free response buf [18:38:41]execute_script done [18:38:41]execute_script returns [18:38:41]free content buf [18:38:41]Sock 7.Close socket [18:38:41]Sock 7.Thread stoped [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]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:10]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:55]OFD Sender: No OFD packet to send [18:45:00]OFD Sender: No OFD packet to send [18:45:05]OFD Sender: No OFD packet to send [18:45:10]OFD Sender: No OFD packet to send [18:45:15]OFD Sender: No OFD packet to send [18:45:20]OFD Sender: No OFD packet to send [18:45:25]OFD Sender: No OFD packet to send [18:45:30]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:31]OFD Sender: No OFD packet to send [18:57:36]OFD Sender: No OFD packet to send [18:57:41]OFD Sender: No OFD packet to send [18:57:46]OFD Sender: No OFD packet to send [18:57:51]OFD Sender: No OFD packet to send [18:57:56]OFD Sender: No OFD packet to send [18:58:01]OFD Sender: No OFD packet to send [18:58:06]OFD Sender: No OFD packet to send [18:58:11]OFD Sender: No OFD packet to send [18:58:16]OFD Sender: No OFD packet to send [18:58:21]OFD Sender: No OFD packet to send [18:58:26]OFD Sender: No OFD packet to send [18:58:31]OFD Sender: No OFD packet to send [18:58:36]OFD Sender: No OFD packet to send [18:58:41]OFD Sender: No OFD packet to send [18:58:46]OFD Sender: No OFD packet to send [18:58:51]OFD Sender: No OFD packet to send [18:58:56]OFD Sender: No OFD packet to send [18:59:01]OFD Sender: No OFD packet to send [18:59:06]OFD Sender: No OFD packet to send [18:59:11]OFD Sender: No OFD packet to send [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 [19:00:01]OFD Sender: No OFD packet to send [19:00:06]OFD Sender: No OFD packet to send [19:00:11]OFD Sender: No OFD packet to send [19:00:16]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:26]OFD Sender: No OFD packet to send [19:01:31]OFD Sender: No OFD packet to send [19:01:36]OFD Sender: No OFD packet to send [19:01:41]OFD Sender: No OFD packet to send [19:01:46]OFD Sender: No OFD packet to send [19:01:51]OFD Sender: No OFD packet to send [19:01:56]OFD Sender: No OFD packet to send [19:02:01]OFD Sender: No OFD packet to send [19:02:06]OFD Sender: No OFD packet to send [19:02:11]OFD Sender: No OFD packet to send [19:02:16]OFD Sender: No OFD packet to send [19:02:21]OFD Sender: No OFD packet to send [19:02:26]OFD Sender: No OFD packet to send [19:02:31]OFD Sender: No OFD packet to send [19:02:36]OFD Sender: No OFD packet to send [19:02:41]OFD Sender: No OFD packet to send [19:02:46]OFD Sender: No OFD packet to send [19:02:51]OFD Sender: No OFD packet to send [19:02:56]OFD Sender: No OFD packet to send [19:03:01]OFD Sender: No OFD packet to send [19:03:06]OFD Sender: No OFD packet to send [19:03:11]OFD Sender: No OFD packet to send [19:03:16]OFD Sender: No OFD packet to send [19:03:21]OFD Sender: No OFD packet to send [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]OFD Sender: No OFD packet to send [19:05:46]OFD Sender: No OFD packet to send [19:05:51]OFD Sender: No OFD packet to send [19:05:56]OFD Sender: No OFD packet to send [19:06:01]OFD Sender: No OFD packet to send [19:06:06]OFD Sender: No OFD packet to send [19:06:11]OFD Sender: No OFD packet to send [19:06:16]OFD Sender: No OFD packet to send [19:06:21]OFD Sender: No OFD packet to send [19:06:26]OFD Sender: No OFD packet to send [19:06:31]OFD Sender: No OFD packet to send [19:06:36]OFD Sender: No OFD packet to send [19:06:41]OFD Sender: No OFD packet to send [19:06:46]OFD Sender: No OFD packet to send [19:06:51]OFD Sender: No OFD packet to send [19:06:56]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [19:07:27]OFD Sender: No OFD packet to send [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:47]accept exits with 9 [19:09:47]New connection [19:09:47]New thread 3066821988 created [19:09:47]Thread 3066965348 joined [19:09:47]Waiting for new connection... [19:09:47] Sock 9.Parse request [19:09:47]Sock 9.Check first char [19:09:47]Sock 9.First char is OK [19:09:47]request: POST /json_proto HTTP/1.0 [19:09:47]Method: POST [19:09:47]URL: /json_proto [19:09:47]Method is POST - this is cgi request [19:09:47]url: /json_proto [19:09:47]query_string will be loaded in cgi processing [19:09:47]execute_cgi json_proto POST (null) [19:09:47]execute_cgi path=json_proto method=POST [19:09:47]POST find Content-Length [19:09:47]Host: 172.17.39.68:8080 [19:09:47]Content-Length: 575 [19:09:47]Content-Type: application/json [19:09:47] [19:09:47]POST finish read [19:09:47]Found Content-Length = 575 [19:09:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214379", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s 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" ] } } [19:09:47]execute_script... [19:09: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)214379", "tax_sys" : 0, "items" : [ { "code": "46233820", "name": "LD Compact 100s 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" ] } } [19:09:47]POST & json_proto [19:09:47]process_json_proto [19:09:47]json parsed OK: [19:09:47]protocol is kg_v1.0 [19:09:47]action value=close_receipt [19:09:47]process_action close_receipt [19:09:47]cmd_close_receipt [19:09:47]MH_GetDate [19:09:47]Write to MH i2c: F0 00 00 FA 2D 16 [19:09:47]Write i2c OK [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: F0 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: F0 09 00 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: F0 09 00 FA 2D 00 81 C5 96 66 D6 48 95 66 7A [19:09:47]GetLastDocTimeStamp 1721155123 [19:09:47]current date 1721156993 [19:09:47]FM_GetShiftState [19:09:47]SAM_PROTO_GetShiftState [19:09:47]wFMCommunicate request_size=4 [19:09:47]MH_SAM_APDU [19:09:47]CAPDU: 80 13 01 00 [19:09:47]Write to MH i2c: E2 08 00 FB 2D 80 13 01 00 00 00 00 00 A5 [19:09:47]Write i2c OK [19:09:47]MH_I2C_Read... [19:09:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:47]Read from MH i2c: E2 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 0E 00 [19:09:47]MH_I2C_Read... [19:09:47]Read from MH i2c: E2 0E 00 FB 2D 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 F4 [19:09:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:09:47]wFMCommunicate OK [19:09:47]SAM_PROTO_GetShiftState done [19:09:47]FM_GetShiftState done [19:09:47]opened in 1721088399 [19:09:47]opened+sec_in_day 1721174799 [19:09:47]quantity*price = 13000 [19:09:47]sum+1 = 13001 [19:09:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 117 16.07.2024 19:09 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31798 ФПД: 54829827001963 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T190953&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31798&fm=54829827001963&tin=02508201610067®Number=0000000000098025&sum=13000 0 [19:09:49]StoreToDocumentArchive [19:09:49]shift 371 fd 31798 [19:09:49]save to /storage/0371/doc_00031798 [19:09:49]save last doc name /storage/0371/doc_00031798 to /storage/kkm_last_doc_name [19:09:49]save OK [19:09:49]Clear old archive folders... [19:09:49]ProcessDocumentItem done err = 0, tmpTLVsize=259 [19:09:49]tlvbuf is B6DABBB0 [19:09:49]SAM_PROTO_ClearQueue [19:09:49]wFMCommunicate request_size=4 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 09 00 00 [19:09:49]Write to MH i2c: E2 08 00 08 2E 80 09 00 00 00 00 00 00 A8 [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:49]Read from MH i2c: E2 03 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 08 2E 00 90 00 AA [19:09:49]RAPDU: 90 00 [19:09:49]wFMCommunicate OK [19:09:49]SAM_PROTO_ClearQueue done [19:09:49]KKMCreateOFDPacket [19:09:49]OFDProtocolAddRootSTLVToBuf [19:09:49]FM_MakeSignedData [19:09:49]FM_MakeSignedData [19:09:49]SAM_PROTO_SignData [19:09:49]wFMCommunicate request_size=4 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 0D 01 02 [19:09:49]Write to MH i2c: E2 08 00 09 2E 80 0D 01 02 00 00 00 00 B0 [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 09 2E 00 90 00 AB [19:09:49]RAPDU: 90 00 [19:09:49]wFMCommunicate OK [19:09:49]wFMCommunicate request_size=255 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 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 75 00 00 00 F4 03 04 00 81 C5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 36 [19:09:49]Write to MH i2c: E2 02 01 0A 2E 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 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 75 00 00 00 F4 03 04 00 81 C5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 36 00 00 09 [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 0A 2E 00 90 00 AC [19:09:49]RAPDU: 90 00 [19:09:49]wFMCommunicate OK [19:09:49]wFMCommunicate request_size=18 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 0D 02 02 0D 7C 00 00 35 04 06 00 31 DE 10 5C 8E 6B [19:09:49]Write to MH i2c: E2 15 00 0B 2E 80 0D 02 02 0D 00 7C 00 00 35 04 06 00 31 DE 10 5C 8E 6B 00 00 FC [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 03 00 0B 2E 00 90 00 AD [19:09:49]RAPDU: 90 00 [19:09:49]wFMCommunicate OK [19:09:49]wFMCommunicate request_size=4 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 0D 03 02 [19:09:49]Write to MH i2c: E2 08 00 0C 2E 80 0D 03 02 00 00 00 00 B5 [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 0B 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 0B 00 0C 2E 00 10 F5 97 45 FF 3E 8C 06 90 00 66 [19:09:49]RAPDU: 10 F5 97 45 FF 3E 8C 06 90 00 [19:09:49]wFMCommunicate OK [19:09:49]SAM_PROTO_SignData done [19:09:49]FM_MakeSignedData done [19:09:49]CreateOFDProtocolMessage [19:09:49]wFMCommunicate request_size=4 [19:09:49]MH_SAM_APDU [19:09:49]CAPDU: 80 11 00 00 [19:09:49]Write to MH i2c: E2 08 00 0D 2E 80 11 00 00 00 00 00 00 B5 [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:49]Read from MH i2c: E2 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 17 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: E2 17 00 0D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 10 [19:09:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:09:49]wFMCommunicate OK [19:09:49]CreateOFDProtocolMessage done [19:09:49]OFDSenderStorePacket 31798 [19:09:49]StoreOFDPacket docnum=31798 [19:09:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 17 01 00 00 45 B2 0F 01 53 CF 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 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 75 00 00 00 F4 03 04 00 81 C5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 36 7C 00 00 35 04 06 00 31 DE 10 5C 8E 6B 10 F5 97 45 FF 3E 8C 06 [19:09:49]CheckFolder [19:09:49]dirname=/storage/ofd_packets [19:09:49]CheckFolder done [19:09:49]ProducePacketName [19:09:49]name=ofd_packets/00031798 [19:09:49]NVStorageSaveData ofd_packets/00031798 [19:09:49]File name is /storage/ofd_packets/00031798 [19:09:49]Write 309 bytes [19:09:49]NVStorageSaveData done [19:09:49]OFDSenderStorePacket done [19:09:49]KKMCreateOFDPacket done [19:09:49]NVStorageSaveData kkm_last_timestamp [19:09:49]File name is /storage/kkm_last_timestamp [19:09:49]Write 4 bytes [19:09:49]NVStorageSaveData done [19:09:49]ExternCall_PrintAddStr [19:09:49]wPrintStart [19:09:49]Write to MH i2c: 01 00 00 0E 2E 3C [19:09:49]Write i2c OK [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: 01 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: 01 07 00 [19:09:49]MH_I2C_Read... [19:09:49]Read from MH i2c: 01 07 00 0E 2E 00 00 00 00 00 FF 0F 51 [19:09:49]RasterBufferAndPrint [19:09:49]line Счет N : (3)214379 [19:09:49]line ИНН: 02508201610067 [19:09:49]line Контрольно-Кассовый Чек [19:09:49]line ПРОДАЖА [19:09:49]line Товар: 46233820 [19:09:49]line LD Compact 100s Silver [19:09:49]line 1.000 * 130.00 [19:09:49]line = 130.00 [19:09:49]line НДС 12% НСП 1% [19:09:49]line > о реализуемом товаре [19:09:49]line ИТОГО: 130.00 [19:09:49]line НСП 1% : 1.15 [19:09:49]line НДС 12% : 13.80 [19:09:49]line Наличными: 130.00 [19:09:49]line Безнал.: 0.00 [19:09:49]line Место: АЗС № 140 "Партнер Нефть" [19:09:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:09:49]line СНО: Общий режим [19:09:49]line Чек 117 16.07.2024 19:09 [19:09:49]line Смена: 371 ФФД: 1.0 [19:09:49]line ЗНМ: 0300000189 [19:09:49]line РНМ: 0000000000098025 [19:09:49]line Версия ККМ: 001 [19:09:49]line ФМ: 0000000000965389 [19:09:49]line ФД: 31798 [19:09:49]line ФПД: 54829827001963 [19:09:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T190953&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31798&fm=54829827001963&tin=02508201610067®Number=0000000000098025&sum=13000 [19:09:49]OFD Sender: Processing packet 31798 [packets to send 6, broken 5] [19:09:49]ProducePacketName [19:09:49]name=ofd_packets/00031798 [19:09:49]OFD Sender: To server: pG, [19:09:49]CommunicateWithHost lk.salyk.kg:30040 [19:09:49]ConnectInit lk.salyk.kg [19:09:49]line 0 [19:09:49]written 0, free lines is 4095 [19:09:50]Connected sock=10 [19:09:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 17 01 00 00 45 B2 0F 01 53 CF 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 36 32 33 33 38 32 30 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 31 30 30 73 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 75 00 00 00 F4 03 04 00 81 C5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 36 7C 00 00 35 04 06 00 31 DE 10 5C 8E 6B 10 F5 97 45 FF 3E 8C 06 [19:09:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 F4 6A 47 00 0B 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 35 33 38 39 10 04 04 00 36 7C 00 00 F4 03 04 00 8E 71 96 66 B6 04 01 00 00 5F 6B 4D A7 5E 80 EB 0C [19:09:50]CommunicateWithHost err = 0 [19:09:50]CheckOFDResponse [19:09:50]1017 (14) - 77093643461234 [19:09:50]1041 (16) - 0000000000965389 [19:09:50]1040 (4) - 31798 [19:09:50]1012 (4) - 16.07.2024 13:11 [19:09:50]1206 (1) - 0 [19:09:50]OFD Sender: Remove packet 31798 [19:09:50]ProducePacketName [19:09:50]name=ofd_packets/00031798 [19:09:50]NVStorageDeleteData [19:09:50]Write to MH i2c: 01 00 00 36 2E 64 [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: 01 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: 01 07 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: 01 07 00 36 2E 00 00 00 00 00 10 0D 88 [19:09:50]RasterBufferAndPrint [19:09:50]line [19:09:50]line [19:09:50]line [19:09:50]line [19:09:50]line [19:09:50]written 0, free lines is 3351 [19:09:50]MH_Cut [19:09:50]Write to MH i2c: D1 01 00 3D 2E 01 3D [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: D1 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: D1 01 00 [19:09:50]MH_I2C_Read... [19:09:50]Read from MH i2c: D1 01 00 3D 2E 00 3C [19:09:50]Write to MH i2c: 01 00 00 3E 2E 6C [19:09:50]Write i2c OK [19:09:50]MH_I2C_Read... [19:09:50]OFD Sender: No OFD packet to send [19:09:51]*** Cut start [19:09:51]*** Partial cut [19:09:51]*** CUTSNS_PIN = 1 [19:09:51]*** CUTSNS_PIN = 0 [19:09:51]*** Brake cut motor [19:09:51]Read from MH i2c: 01 [19:09:51]MH_I2C_Read... [19:09:51]*** Stop cut motor [19:09:51]*** Cut end [19:09:51]Read from MH i2c: 01 07 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: 01 07 00 3E 2E 00 00 00 00 00 FF 0F 81 [19:09:51]process_action close_receipt done [19:09:51]requested_data is exist [19:09:51]produce_requested_data [19:09:51]requested_item fm.sn is exist - process it [19:09:51]wFMCommunicate request_size=4 [19:09:51]MH_SAM_APDU [19:09:51]CAPDU: 80 11 00 00 [19:09:51]Write to MH i2c: E2 08 00 3F 2E 80 11 00 00 00 00 00 00 E7 [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:51]Read from MH i2c: E2 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 17 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 17 00 3F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 42 [19:09:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:09:51]wFMCommunicate OK [19:09:51]requested_item fd.num is exist - process it [19:09:51]SAM_PROTO_GetFieldsCounters [19:09:51]wFMCommunicate request_size=4 [19:09:51]MH_SAM_APDU [19:09:51]CAPDU: 80 13 00 00 [19:09:51]Write to MH i2c: E2 08 00 40 2E 80 13 00 00 00 00 00 00 EA [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:51]Read from MH i2c: E2 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 62 00 [19:09:51]MH_I2C_Read... [19:09:51]Read from MH i2c: E2 62 00 40 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 36 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [19:09:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 36 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:51]wFMCommunicate OK [19:09:51]SAM_PROTO_GetFieldsCounters done [19:09:51]requested_item shift.num is exist - process it [19:09:51]requested_item shift.opened is exist - process it [19:09:51]req_shift_opened [19:09:51]FM_GetShiftState [19:09:51]SAM_PROTO_GetShiftState [19:09:51]wFMCommunicate request_size=4 [19:09:51]MH_SAM_APDU [19:09:51]CAPDU: 80 13 01 00 [19:09:51]Write to MH i2c: E2 08 00 41 2E 80 13 01 00 00 00 00 00 EC [19:09:51]Write i2c OK [19:09:51]MH_I2C_Read... [19:09:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:52]Read from MH i2c: E2 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 0E 00 [19:09:52]MH_I2C_Read... [19:09:52]Read from MH i2c: E2 0E 00 41 2E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 3B [19:09:52]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:09:52]wFMCommunicate OK [19:09:52]SAM_PROTO_GetShiftState done [19:09:52]FM_GetShiftState done [19:09:52]req_shift_opened done [19:09:52]requested_item shift.open_date is exist - process it [19:09:52]req_shift_open_date [19:09:52]req_shift_open_date done [19:09:52]produce_requested_data done [19:09:52]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31798,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [19:09:52]process_action_free close_receipt [19:09:52]json_value_free [19:09:52]json_value_free done [19:09:52]process_json_proto returns [19:09:52]Send response to host [19:09:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31798,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [19:09:52]free response buf [19:09:52]execute_script done [19:09:52]execute_script returns [19:09:52]free content buf [19:09:52]Sock 9.Close socket [19:09:52]Sock 9.Thread stoped [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:11]accept exits with 7 [19:10:11]New connection [19:10:11]New thread 3066965348 created [19:10:11]Thread 3066821988 joined [19:10:11]Waiting for new connection... [19:10:11] Sock 7.Parse request [19:10:11]Sock 7.Check first char [19:10:11]Sock 7.First char is OK [19:10:11]request: POST /json_proto HTTP/1.0 [19:10:11]Method: POST [19:10:11]URL: /json_proto [19:10:11]Method is POST - this is cgi request [19:10:11]url: /json_proto [19:10:11]query_string will be loaded in cgi processing [19:10:11]execute_cgi json_proto POST (null) [19:10:11]execute_cgi path=json_proto method=POST [19:10:11]POST find Content-Length [19:10:11]Host: 172.17.39.68:8080 [19:10:11]Content-Length: 709 [19:10:11]Content-Type: application/json [19:10:11] [19:10:11]POST finish read [19:10:11]Found Content-Length = 709 [19:10:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214380", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:11]execute_script... [19:10: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)214380", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:11]POST & json_proto [19:10:11]process_json_proto [19:10:11]json parsed OK: [19:10:11]protocol is kg_v1.0 [19:10:11]action value=close_receipt [19:10:11]process_action close_receipt [19:10:11]cmd_close_receipt [19:10:11]MH_GetDate [19:10:11]Write to MH i2c: F0 00 00 42 2E 5F [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: F0 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: F0 09 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: F0 09 00 42 2E 00 99 C5 96 66 D6 48 95 66 DB [19:10:11]GetLastDocTimeStamp 1721156993 [19:10:11]current date 1721157017 [19:10:11]FM_GetShiftState [19:10:11]SAM_PROTO_GetShiftState [19:10:11]wFMCommunicate request_size=4 [19:10:11]MH_SAM_APDU [19:10:11]CAPDU: 80 13 01 00 [19:10:11]Write to MH i2c: E2 08 00 43 2E 80 13 01 00 00 00 00 00 EE [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:11]Read from MH i2c: E2 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 0E 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 0E 00 43 2E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 3D [19:10:11]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:10:11]wFMCommunicate OK [19:10:11]SAM_PROTO_GetShiftState done [19:10:11]FM_GetShiftState done [19:10:11]opened in 1721088399 [19:10:11]opened+sec_in_day 1721174799 [19:10:11]quantity*price = 9500 [19:10:11]sum+1 = 9501 [19:10:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 118 16.07.2024 19:10 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31799 ФПД: 89685993272186 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T191017&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31799&fm=89685993272186&tin=02508201610067®Number=0000000000098025&sum=9500 0 [19:10:13]StoreToDocumentArchive [19:10:13]shift 371 fd 31799 [19:10:13]save to /storage/0371/doc_00031799 [19:10:13]save last doc name /storage/0371/doc_00031799 to /storage/kkm_last_doc_name [19:10:13]save OK [19:10:13]Clear old archive folders... [19:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=304 [19:10:13]tlvbuf is 014D37D0 [19:10:13]SAM_PROTO_ClearQueue [19:10:13]wFMCommunicate request_size=4 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 09 00 00 [19:10:13]Write to MH i2c: E2 08 00 50 2E 80 09 00 00 00 00 00 00 F0 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 50 2E 00 90 00 F2 [19:10:13]RAPDU: 90 00 [19:10:13]wFMCommunicate OK [19:10:13]SAM_PROTO_ClearQueue done [19:10:13]KKMCreateOFDPacket [19:10:13]OFDProtocolAddRootSTLVToBuf [19:10:13]FM_MakeSignedData [19:10:13]FM_MakeSignedData [19:10:13]SAM_PROTO_SignData [19:10:13]wFMCommunicate request_size=4 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 0D 01 02 [19:10:13]Write to MH i2c: E2 08 00 51 2E 80 0D 01 02 00 00 00 00 F8 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 51 2E 00 90 00 F3 [19:10:13]RAPDU: 90 00 [19:10:13]wFMCommunicate OK [19:10:13]wFMCommunicate request_size=255 [19:10:13]MH_SAM_APDU [19:10:13]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 76 00 00 00 F4 03 04 00 99 C5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 [19:10:13]Write to MH i2c: E2 02 01 52 2E 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 76 00 00 00 F4 03 04 00 99 C5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 00 00 82 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 52 2E 00 90 00 F4 [19:10:13]RAPDU: 90 00 [19:10:13]wFMCommunicate OK [19:10:13]wFMCommunicate request_size=63 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 37 7C 00 00 35 04 06 00 51 91 A5 C5 33 7A [19:10:13]Write to MH i2c: E2 42 00 53 2E 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 37 7C 00 00 35 04 06 00 51 91 A5 C5 33 7A 00 00 F8 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 03 00 53 2E 00 90 00 F5 [19:10:13]RAPDU: 90 00 [19:10:13]wFMCommunicate OK [19:10:13]wFMCommunicate request_size=4 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 0D 03 02 [19:10:13]Write to MH i2c: E2 08 00 54 2E 80 0D 03 02 00 00 00 00 FD [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 0B 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 0B 00 54 2E 00 D0 68 0C 0F F8 DC BB 7E 90 00 5E [19:10:13]RAPDU: D0 68 0C 0F F8 DC BB 7E 90 00 [19:10:13]wFMCommunicate OK [19:10:13]SAM_PROTO_SignData done [19:10:13]FM_MakeSignedData done [19:10:13]CreateOFDProtocolMessage [19:10:13]wFMCommunicate request_size=4 [19:10:13]MH_SAM_APDU [19:10:13]CAPDU: 80 11 00 00 [19:10:13]Write to MH i2c: E2 08 00 55 2E 80 11 00 00 00 00 00 00 FD [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:13]Read from MH i2c: E2 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 17 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: E2 17 00 55 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 58 [19:10:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:10:13]wFMCommunicate OK [19:10:13]CreateOFDProtocolMessage done [19:10:13]OFDSenderStorePacket 31799 [19:10:13]StoreOFDPacket docnum=31799 [19:10:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 D8 CD 3C 01 7C 78 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 76 00 00 00 F4 03 04 00 99 C5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 37 7C 00 00 35 04 06 00 51 91 A5 C5 33 7A D0 68 0C 0F F8 DC BB 7E [19:10:13]CheckFolder [19:10:13]dirname=/storage/ofd_packets [19:10:13]CheckFolder done [19:10:13]ProducePacketName [19:10:13]name=ofd_packets/00031799 [19:10:13]NVStorageSaveData ofd_packets/00031799 [19:10:13]File name is /storage/ofd_packets/00031799 [19:10:13]Write 354 bytes [19:10:13]NVStorageSaveData done [19:10:13]OFDSenderStorePacket done [19:10:13]KKMCreateOFDPacket done [19:10:13]NVStorageSaveData kkm_last_timestamp [19:10:13]File name is /storage/kkm_last_timestamp [19:10:13]Write 4 bytes [19:10:13]NVStorageSaveData done [19:10:13]ExternCall_PrintAddStr [19:10:13]wPrintStart [19:10:13]Write to MH i2c: 01 00 00 56 2E 84 [19:10:13]Write i2c OK [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: 01 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: 01 07 00 [19:10:13]MH_I2C_Read... [19:10:13]Read from MH i2c: 01 07 00 56 2E 00 00 00 00 00 FF 0F 99 [19:10:13]RasterBufferAndPrint [19:10:13]line Счет N : (3)214380 [19:10:13]line ИНН: 02508201610067 [19:10:13]line Контрольно-Кассовый Чек [19:10:13]line ПРОДАЖА [19:10:13]line Товар: 4700000480302 [19:10:13]line Напиток энерг Nitro манго-клуб 0.45 ж/б [19:10:13]line 1.000 * 95.00 [19:10:13]line = 95.00 [19:10:13]line НДС 12% НСП 1% [19:10:13]line > о реализуемом товаре [19:10:13]line ИТОГО: 95.00 [19:10:13]line НСП 1% : 0.84 [19:10:13]line НДС 12% : 10.09 [19:10:13]line Наличными: 95.00 [19:10:13]line Безнал.: 0.00 [19:10:13]line Место: АЗС № 140 "Партнер Нефть" [19:10:13]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:10:13]line СНО: Общий режим [19:10:13]line Чек 118 16.07.2024 19:10 [19:10:13]line Смена: 371 ФФД: 1.0 [19:10:13]line ЗНМ: 0300000189 [19:10:13]line РНМ: 0000000000098025 [19:10:13]line Версия ККМ: 001 [19:10:13]line ФМ: 0000000000965389 [19:10:13]line ФД: 31799 [19:10:13]line ФПД: 89685993272186 [19:10:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T191017&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31799&fm=89685993272186&tin=02508201610067®Number=0000000000098025&sum=9500 [19:10:13]OFD Sender: Processing packet 31799 [packets to send 6, broken 5] [19:10:13]ProducePacketName [19:10:13]name=ofd_packets/00031799 [19:10:13]OFD Sender: To server: pG, [19:10:13]CommunicateWithHost lk.salyk.kg:30040 [19:10:13]ConnectInit lk.salyk.kg [19:10:13]line 0 [19:10:13]written 0, free lines is 4095 [19:10:14]Connected sock=9 [19: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 35 33 38 39 44 01 00 00 D8 CD 3C 01 7C 78 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 76 00 00 00 F4 03 04 00 99 C5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 37 7C 00 00 35 04 06 00 51 91 A5 C5 33 7A D0 68 0C 0F F8 DC BB 7E [19:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 44 62 47 00 6E 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 35 33 38 39 10 04 04 00 37 7C 00 00 F4 03 04 00 A6 71 96 66 B6 04 01 00 00 C7 CF 5F 4F BA 21 10 00 [19:10:14]CommunicateWithHost err = 0 [19:10:14]CheckOFDResponse [19:10:14]1017 (14) - 77093643461234 [19:10:14]1041 (16) - 0000000000965389 [19:10:14]1040 (4) - 31799 [19:10:14]1012 (4) - 16.07.2024 13:12 [19:10:14]1206 (1) - 0 [19:10:14]OFD Sender: Remove packet 31799 [19:10:14]ProducePacketName [19:10:14]name=ofd_packets/00031799 [19:10:14]NVStorageDeleteData [19:10:14]Write to MH i2c: 01 00 00 7F 2E AD [19:10:14]Write i2c OK [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: 01 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: 01 07 00 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: 01 07 00 7F 2E 00 00 00 00 00 F2 0C B2 [19:10:14]RasterBufferAndPrint [19:10:14]line [19:10:14]line [19:10:14]line [19:10:14]line [19:10:14]line [19:10:14]written 0, free lines is 3324 [19:10:14]MH_Cut [19:10:14]Write to MH i2c: D1 01 00 86 2E 01 86 [19:10:14]Write i2c OK [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: D1 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: D1 01 00 [19:10:14]MH_I2C_Read... [19:10:14]Read from MH i2c: D1 01 00 86 2E 00 85 [19:10:14]Write to MH i2c: 01 00 00 87 2E B5 [19:10:14]Write i2c OK [19:10:14]MH_I2C_Read... [19:10:14]OFD Sender: No OFD packet to send [19:10:15]*** Cut start [19:10:15]*** Partial cut [19:10:15]*** CUTSNS_PIN = 1 [19:10:15]*** CUTSNS_PIN = 0 [19:10:15]*** Brake cut motor [19:10:15]Read from MH i2c: 01 [19:10:15]MH_I2C_Read... [19:10:15]*** Stop cut motor [19:10:15]*** Cut end [19:10:15]Read from MH i2c: 01 07 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: 01 07 00 87 2E 00 00 00 00 00 FF 0F CA [19:10:15]process_action close_receipt done [19:10:15]requested_data is exist [19:10:15]produce_requested_data [19:10:15]requested_item fm.sn is exist - process it [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 11 00 00 [19:10:15]Write to MH i2c: E2 08 00 88 2E 80 11 00 00 00 00 00 00 30 [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 17 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 17 00 88 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8B [19:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:10:15]wFMCommunicate OK [19:10:15]requested_item fd.num is exist - process it [19:10:15]SAM_PROTO_GetFieldsCounters [19:10:15]wFMCommunicate request_size=4 [19:10:15]MH_SAM_APDU [19:10:15]CAPDU: 80 13 00 00 [19:10:15]Write to MH i2c: E2 08 00 89 2E 80 13 00 00 00 00 00 00 33 [19:10:15]Write i2c OK [19:10:15]MH_I2C_Read... [19:10:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:15]Read from MH i2c: E2 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 62 00 [19:10:15]MH_I2C_Read... [19:10:15]Read from MH i2c: E2 62 00 89 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 37 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 E4 [19:10:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 37 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:15]wFMCommunicate OK [19:10:15]SAM_PROTO_GetFieldsCounters done [19:10:15]requested_item shift.num is exist - process it [19:10:15]requested_item shift.opened is exist - process it [19:10:15]req_shift_opened [19:10:15]FM_GetShiftState [19:10:15]SAM_PROTO_GetShiftState [19:10:16]wFMCommunicate request_size=4 [19:10:16]MH_SAM_APDU [19:10:16]CAPDU: 80 13 01 00 [19:10:16]Write to MH i2c: E2 08 00 8A 2E 80 13 01 00 00 00 00 00 35 [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:16]Read from MH i2c: E2 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: E2 0E 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: E2 0E 00 8A 2E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 84 [19:10:16]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:10:16]wFMCommunicate OK [19:10:16]SAM_PROTO_GetShiftState done [19:10:16]FM_GetShiftState done [19:10:16]req_shift_opened done [19:10:16]requested_item shift.open_date is exist - process it [19:10:16]req_shift_open_date [19:10:16]req_shift_open_date done [19:10:16]produce_requested_data done [19:10:16]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31799,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [19:10:16]process_action_free close_receipt [19:10:16]json_value_free [19:10:16]json_value_free done [19:10:16]process_json_proto returns [19:10:16]Send response to host [19:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31799,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [19:10:16]free response buf [19:10:16]execute_script done [19:10:16]execute_script returns [19:10:16]free content buf [19:10:16]Sock 7.Close socket [19:10:16]Sock 7.Thread stoped [19:10:19]OFD Sender: No OFD packet to send [19:10:24]OFD Sender: No OFD packet to send [19:10:29]OFD Sender: No OFD packet to send [19:10:34]OFD Sender: No OFD packet to send [19:10:39]OFD Sender: No OFD packet to send [19:10:44]OFD Sender: No OFD packet to send [19:10:49]OFD Sender: No OFD packet to send [19:10:54]OFD Sender: No OFD packet to send [19:10:59]OFD Sender: No OFD packet to send [19:11:04]OFD Sender: No OFD packet to send [19:11:09]OFD Sender: No OFD packet to send [19:11:14]OFD Sender: No OFD packet to send [19:11:19]OFD Sender: No OFD packet to send [19:11:24]OFD Sender: No OFD packet to send [19:11:29]OFD Sender: No OFD packet to send [19:11:34]OFD Sender: No OFD packet to send [19:11:39]OFD Sender: No OFD packet to send [19:11:44]OFD Sender: No OFD packet to send [19:11:49]OFD Sender: No OFD packet to send [19:11:54]OFD Sender: No OFD packet to send [19:11:59]OFD Sender: No OFD packet to send [19:12:04]OFD Sender: No OFD packet to send [19:12:09]OFD Sender: No OFD packet to send [19:12:14]OFD Sender: No OFD packet to send [19:12:19]OFD Sender: No OFD packet to send [19:12:24]OFD Sender: No OFD packet to send [19:12:29]OFD Sender: No OFD packet to send [19:12:34]OFD Sender: No OFD packet to send [19:12:39]OFD Sender: No OFD packet to send [19:12:44]OFD Sender: No OFD packet to send [19:12:49]OFD Sender: No OFD packet to send [19:12:54]OFD Sender: No OFD packet to send [19:12:59]OFD Sender: No OFD packet to send [19:13:04]OFD Sender: No OFD packet to send [19:13:09]OFD Sender: No OFD packet to send [19:13:14]OFD Sender: No OFD packet to send [19:13:19]OFD Sender: No OFD packet to send [19:13:24]OFD Sender: No OFD packet to send [19:13:29]OFD Sender: No OFD packet to send [19:13:34]OFD Sender: No OFD packet to send [19:13:39]OFD Sender: No OFD packet to send [19:13:44]OFD Sender: No OFD packet to send [19:13:49]OFD Sender: No OFD packet to send [19:13:54]OFD Sender: No OFD packet to send [19:13:59]OFD Sender: No OFD packet to send [19:14:04]OFD Sender: No OFD packet to send [19:14:09]OFD Sender: No OFD packet to send [19:14:14]OFD Sender: No OFD packet to send [19:14:19]OFD Sender: No OFD packet to send [19:14:24]OFD Sender: No OFD packet to send [19:14:29]OFD Sender: No OFD packet to send [19:14:34]OFD Sender: No OFD packet to send [19:14:39]OFD Sender: No OFD packet to send [19:14:44]OFD Sender: No OFD packet to send [19:14:49]OFD Sender: No OFD packet to send [19:14:54]OFD Sender: No OFD packet to send [19:14:59]OFD Sender: No OFD packet to send [19:15:04]OFD Sender: No OFD packet to send [19:15:09]OFD Sender: No OFD packet to send [19:15:14]OFD Sender: No OFD packet to send [19:15:19]OFD Sender: No OFD packet to send [19:15:24]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:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]OFD Sender: No OFD packet to send [19:18:30]OFD Sender: No OFD packet to send [19:18:35]OFD Sender: No OFD packet to send [19:18:40]OFD Sender: No OFD packet to send [19:18:45]OFD Sender: No OFD packet to send [19:18:50]OFD Sender: No OFD packet to send [19:18:55]OFD Sender: No OFD packet to send [19:19:00]OFD Sender: No OFD packet to send [19:19:05]OFD Sender: No OFD packet to send [19:19:10]OFD Sender: No OFD packet to send [19:19:15]OFD Sender: No OFD packet to send [19:19:20]OFD Sender: No OFD packet to send [19:19:25]OFD Sender: No OFD packet to send [19:19:30]OFD Sender: No OFD packet to send [19:19:35]OFD Sender: No OFD packet to send [19:19:40]OFD Sender: No OFD packet to send [19:19:45]OFD Sender: No OFD packet to send [19:19:50]OFD Sender: No OFD packet to send [19:19:55]OFD Sender: No OFD packet to send [19:20:00]OFD Sender: No OFD packet to send [19:20:05]OFD Sender: No OFD packet to send [19:20:10]OFD Sender: No OFD packet to send [19:20:15]OFD Sender: No OFD packet to send [19:20:20]OFD Sender: No OFD packet to send [19:20:25]OFD Sender: No OFD packet to send [19:20:30]OFD Sender: No OFD packet to send [19:20:35]OFD Sender: No OFD packet to send [19:20:40]OFD Sender: No OFD packet to send [19:20:45]OFD Sender: No OFD packet to send [19:20:50]OFD Sender: No OFD packet to send [19:20:55]OFD Sender: No OFD packet to send [19:21:00]OFD Sender: No OFD packet to send [19:21:05]OFD Sender: No OFD packet to send [19:21:10]OFD Sender: No OFD packet to send [19:21:15]OFD Sender: No OFD packet to send [19:21:20]OFD Sender: No OFD packet to send [19:21:25]OFD Sender: No OFD packet to send [19:21:30]OFD Sender: No OFD packet to send [19:21:35]OFD Sender: No OFD packet to send [19:21:40]OFD Sender: No OFD packet to send [19:21:45]OFD Sender: No OFD packet to send [19:21:50]OFD Sender: No OFD packet to send [19:21:55]OFD Sender: No OFD packet to send [19:22:00]OFD Sender: No OFD packet to send [19:22:05]OFD Sender: No OFD packet to send [19:22:10]OFD Sender: No OFD packet to send [19:22:15]OFD Sender: No OFD packet to send [19:22:20]OFD Sender: No OFD packet to send [19:22:25]OFD Sender: No OFD packet to send [19:22:30]OFD Sender: No OFD packet to send [19:22:35]OFD Sender: No OFD packet to send [19:22:40]OFD Sender: No OFD packet to send [19:22:45]OFD Sender: No OFD packet to send [19:22:50]OFD Sender: No OFD packet to send [19:22:55]OFD Sender: No OFD packet to send [19:23:00]OFD Sender: No OFD packet to send [19:23:05]OFD Sender: No OFD packet to send [19:23:10]OFD Sender: No OFD packet to send [19:23:15]OFD Sender: No OFD packet to send [19:23:20]OFD Sender: No OFD packet to send [19:23:25]OFD Sender: No OFD packet to send [19:23:30]OFD Sender: No OFD packet to send [19:23:35]OFD Sender: No OFD packet to send [19:23:40]OFD Sender: No OFD packet to send [19:23:45]OFD Sender: No OFD packet to send [19:23:50]OFD Sender: No OFD packet to send [19:23:55]OFD Sender: No OFD packet to send [19:24:00]OFD Sender: No OFD packet to send [19:24:05]OFD Sender: No OFD packet to send [19:24:10]OFD Sender: No OFD packet to send [19:24:15]OFD Sender: No OFD packet to send [19:24:20]OFD Sender: No OFD packet to send [19:24:25]OFD Sender: No OFD packet to send [19:24:30]OFD Sender: No OFD packet to send [19:24:35]OFD Sender: No OFD packet to send [19:24:40]OFD Sender: No OFD packet to send [19:24:45]OFD Sender: No OFD packet to send [19:24:50]OFD Sender: No OFD packet to send [19:24:55]OFD Sender: No OFD packet to send [19:25:00]OFD Sender: No OFD packet to send [19:25:05]OFD Sender: No OFD packet to send [19:25:10]OFD Sender: No OFD packet to send [19:25:15]OFD Sender: No OFD packet to send [19:25:20]OFD Sender: No OFD packet to send [19:25:25]OFD Sender: No OFD packet to send [19:25:30]OFD Sender: No OFD packet to send [19:25:35]OFD Sender: No OFD packet to send [19:25:40]OFD Sender: No OFD packet to send [19:25:45]OFD Sender: No OFD packet to send [19:25:50]OFD Sender: No OFD packet to send [19:25:55]OFD Sender: No OFD packet to send [19:26:00]OFD Sender: No OFD packet to send [19:26:05]OFD Sender: No OFD packet to send [19:26:10]OFD Sender: No OFD packet to send [19:26:15]OFD Sender: No OFD packet to send [19:26:20]OFD Sender: No OFD packet to send [19:26:25]OFD Sender: No OFD packet to send [19:26:30]OFD Sender: No OFD packet to send [19:26:35]OFD Sender: No OFD packet to send [19:26:40]OFD Sender: No OFD packet to send [19:26:45]OFD Sender: No OFD packet to send [19:26:50]OFD Sender: No OFD packet to send [19:26:55]OFD Sender: No OFD packet to send [19:27:00]OFD Sender: No OFD packet to send [19:27:05]OFD Sender: No OFD packet to send [19:27:10]OFD Sender: No OFD packet to send [19:27:15]OFD Sender: No OFD packet to send [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:51]accept exits with 10 [19:29:51]New connection [19:29:51]New thread 3066821988 created [19:29:51]Thread 3066965348 joined [19:29:51]Waiting for new connection... [19:29:51] Sock 10.Parse request [19:29:51]Sock 10.Check first char [19:29:51]Sock 10.First char is OK [19:29:51]request: POST /json_proto HTTP/1.0 [19:29:51]Method: POST [19:29:51]URL: /json_proto [19:29:51]Method is POST - this is cgi request [19:29:51]url: /json_proto [19:29:51]query_string will be loaded in cgi processing [19:29:51]execute_cgi json_proto POST (null) [19:29:51]execute_cgi path=json_proto method=POST [19:29:51]POST find Content-Length [19:29:51]Host: 172.17.39.68:8080 [19:29:51]Content-Length: 943 [19:29:51]Content-Type: application/json [19:29:51] [19:29:51]POST finish read [19:29:51]Found Content-Length = 943 [19:29:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214381", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 232.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:51]execute_script... [19:29: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)214381", "tax_sys" : 0, "items" : [ { "code": "5449000189318", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 232.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:51]POST & json_proto [19:29:51]process_json_proto [19:29:51]json parsed OK: [19:29:51]protocol is kg_v1.0 [19:29:51]action value=close_receipt [19:29:51]process_action close_receipt [19:29:51]cmd_close_receipt [19:29:51]MH_GetDate [19:29:51]Write to MH i2c: F0 00 00 8B 2E A8 [19:29:51]Write i2c OK [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: F0 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: F0 09 00 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: F0 09 00 8B 2E 00 35 CA 96 66 D6 48 95 66 C5 [19:29:51]GetLastDocTimeStamp 1721157017 [19:29:51]current date 1721158197 [19:29:51]FM_GetShiftState [19:29:51]SAM_PROTO_GetShiftState [19:29:51]wFMCommunicate request_size=4 [19:29:51]MH_SAM_APDU [19:29:51]CAPDU: 80 13 01 00 [19:29:51]Write to MH i2c: E2 08 00 8C 2E 80 13 01 00 00 00 00 00 37 [19:29:51]Write i2c OK [19:29:51]MH_I2C_Read... [19:29:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:51]Read from MH i2c: E2 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 0E 00 [19:29:51]MH_I2C_Read... [19:29:51]Read from MH i2c: E2 0E 00 8C 2E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 86 [19:29:51]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:29:51]wFMCommunicate OK [19:29:51]SAM_PROTO_GetShiftState done [19:29:51]FM_GetShiftState done [19:29:51]opened in 1721088399 [19:29:51]opened+sec_in_day 1721174799 [19:29:51]quantity*price = 10700 [19:29:51]sum+1 = 10701 [19:29:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 232.00 НСП 1% : 2.06 НДС 12% : 24.63 Наличными: 232.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 119 16.07.2024 19:29 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31800 ФПД: 199721881932506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T192957&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31800&fm=199721881932506&tin=02508201610067®Number=0000000000098025&sum=23200 0 [19:29:52]StoreToDocumentArchive [19:29:52]shift 371 fd 31800 [19:29:52]save to /storage/0371/doc_00031800 [19:29:52]save last doc name /storage/0371/doc_00031800 to /storage/kkm_last_doc_name [19:29:52]save OK [19:29:52]Clear old archive folders... [19:29:52]ProcessDocumentItem done err = 0, tmpTLVsize=393 [19:29:52]tlvbuf is 0147BE80 [19:29:52]SAM_PROTO_ClearQueue [19:29:52]wFMCommunicate request_size=4 [19:29:52]MH_SAM_APDU [19:29:52]CAPDU: 80 09 00 00 [19:29:52]Write to MH i2c: E2 08 00 99 2E 80 09 00 00 00 00 00 00 39 [19:29:52]Write i2c OK [19:29:52]MH_I2C_Read... [19:29:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:52]Read from MH i2c: E2 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 03 00 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 03 00 99 2E 00 90 00 3B [19:29:52]RAPDU: 90 00 [19:29:52]wFMCommunicate OK [19:29:52]SAM_PROTO_ClearQueue done [19:29:52]KKMCreateOFDPacket [19:29:52]OFDProtocolAddRootSTLVToBuf [19:29:52]FM_MakeSignedData [19:29:52]FM_MakeSignedData [19:29:52]SAM_PROTO_SignData [19:29:52]wFMCommunicate request_size=4 [19:29:52]MH_SAM_APDU [19:29:52]CAPDU: 80 0D 01 02 [19:29:52]Write to MH i2c: E2 08 00 9A 2E 80 0D 01 02 00 00 00 00 41 [19:29:52]Write i2c OK [19:29:52]MH_I2C_Read... [19:29:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:52]Read from MH i2c: E2 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 03 00 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 03 00 9A 2E 00 90 00 3C [19:29:52]RAPDU: 90 00 [19:29:52]wFMCommunicate OK [19:29:52]wFMCommunicate request_size=255 [19:29:52]MH_SAM_APDU [19:29:52]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 A0 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 [19:29:52]Write to MH i2c: E2 02 01 9B 2E 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 A0 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 98 [19:29:52]Write i2c OK [19:29:52]MH_I2C_Read... [19:29:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:52]Read from MH i2c: E2 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 03 00 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 03 00 9B 2E 00 90 00 3D [19:29:52]RAPDU: 90 00 [19:29:52]wFMCommunicate OK [19:29:52]wFMCommunicate request_size=152 [19:29:52]MH_SAM_APDU [19:29:52]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 09 00 00 00 00 07 04 06 00 A0 5A 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 35 CA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 38 7C 00 00 35 04 06 00 B5 A5 5F D3 92 DA [19:29:52]Write to MH i2c: E2 9B 00 9C 2E 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 09 00 00 00 00 07 04 06 00 A0 5A 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 35 CA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 38 7C 00 00 35 04 06 00 B5 A5 5F D3 92 DA 00 00 9B [19:29:52]Write i2c OK [19:29:52]MH_I2C_Read... [19:29:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:52]Read from MH i2c: E2 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 03 00 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 03 00 9C 2E 00 90 00 3E [19:29:52]RAPDU: 90 00 [19:29:52]wFMCommunicate OK [19:29:52]wFMCommunicate request_size=4 [19:29:52]MH_SAM_APDU [19:29:52]CAPDU: 80 0D 03 02 [19:29:52]Write to MH i2c: E2 08 00 9D 2E 80 0D 03 02 00 00 00 00 46 [19:29:52]Write i2c OK [19:29:52]MH_I2C_Read... [19:29:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:52]Read from MH i2c: E2 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 0B 00 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 0B 00 9D 2E 00 54 98 63 7C E8 57 35 0D 90 00 93 [19:29:52]RAPDU: 54 98 63 7C E8 57 35 0D 90 00 [19:29:52]wFMCommunicate OK [19:29:52]SAM_PROTO_SignData done [19:29:52]FM_MakeSignedData done [19:29:52]CreateOFDProtocolMessage [19:29:52]wFMCommunicate request_size=4 [19:29:52]MH_SAM_APDU [19:29:52]CAPDU: 80 11 00 00 [19:29:52]Write to MH i2c: E2 08 00 9E 2E 80 11 00 00 00 00 00 00 46 [19:29:52]Write i2c OK [19:29:52]MH_I2C_Read... [19:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:52]Read from MH i2c: E2 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 17 00 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: E2 17 00 9E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A1 [19:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:29:52]wFMCommunicate OK [19:29:52]CreateOFDProtocolMessage done [19:29:52]OFDSenderStorePacket 31800 [19:29:52]StoreOFDPacket docnum=31800 [19:29:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 9D 01 00 00 10 D6 95 01 D7 47 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 A0 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 09 00 00 00 00 07 04 06 00 A0 5A 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 35 CA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 38 7C 00 00 35 04 06 00 B5 A5 5F D3 92 DA 54 98 63 7C E8 57 35 0D [19:29:52]CheckFolder [19:29:52]dirname=/storage/ofd_packets [19:29:52]CheckFolder done [19:29:52]ProducePacketName [19:29:52]name=ofd_packets/00031800 [19:29:52]NVStorageSaveData ofd_packets/00031800 [19:29:52]File name is /storage/ofd_packets/00031800 [19:29:52]Write 443 bytes [19:29:52]NVStorageSaveData done [19:29:52]OFDSenderStorePacket done [19:29:52]KKMCreateOFDPacket done [19:29:52]NVStorageSaveData kkm_last_timestamp [19:29:52]File name is /storage/kkm_last_timestamp [19:29:52]Write 4 bytes [19:29:52]NVStorageSaveData done [19:29:52]ExternCall_PrintAddStr [19:29:52]wPrintStart [19:29:52]Write to MH i2c: 01 00 00 9F 2E CD [19:29:52]Write i2c OK [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: 01 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: 01 07 00 [19:29:52]MH_I2C_Read... [19:29:52]Read from MH i2c: 01 07 00 9F 2E 00 00 00 00 00 FF 0F E2 [19:29:52]RasterBufferAndPrint [19:29:52]line Счет N : (3)214381 [19:29:52]line ИНН: 02508201610067 [19:29:53]line Контрольно-Кассовый Чек [19:29:53]line ПРОДАЖА [19:29:53]line Товар: 5449000189318 [19:29:53]line Холодный чай Fuse лимон 1л [19:29:53]line 1.000 * 107.00 [19:29:53]line = 107.00 [19:29:53]line НДС 12% НСП 1% [19:29:53]line > о реализуемом товаре [19:29:53]line Товар: 5449000054227 [19:29:53]line Напиток Кока-Кола 1л [19:29:53]line 1.000 * 125.00 [19:29:53]line = 125.00 [19:29:53]line НДС 12% НСП 1% [19:29:53]line > о реализуемом товаре [19:29:53]line ИТОГО: 232.00 [19:29:53]line НСП 1% : 2.06 [19:29:53]line НДС 12% : 24.63 [19:29:53]line Наличными: 232.00 [19:29:53]line Безнал.: 0.00 [19:29:53]line Место: АЗС № 140 "Партнер Нефть" [19:29:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:29:53]line СНО: Общий режим [19:29:53]line Чек 119 16.07.2024 19:29 [19:29:53]line Смена: 371 ФФД: 1.0 [19:29:53]line ЗНМ: 0300000189 [19:29:53]line РНМ: 0000000000098025 [19:29:53]line Версия ККМ: 001 [19:29:53]line ФМ: 0000000000965389 [19:29:53]line ФД: 31800 [19:29:53]line ФПД: 199721881932506 [19:29:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T192957&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31800&fm=199721881932506&tin=02508201610067®Number=0000000000098025&sum=23200 [19:29:53]line 0 [19:29:53]OFD Sender: Processing packet 31800 [packets to send 6, broken 5] [19:29:53]ProducePacketName [19:29:53]name=ofd_packets/00031800 [19:29:53]OFD Sender: To server: pG, [19:29:53]CommunicateWithHost lk.salyk.kg:30040 [19:29:53]ConnectInit lk.salyk.kg [19:29:53]written 0, free lines is 4095 [19:29:53]Connected sock=9 [19:29:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 9D 01 00 00 10 D6 95 01 D7 47 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 31 38 06 04 2B 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 A0 5A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 09 00 00 00 00 07 04 06 00 A0 5A 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 35 CA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 38 7C 00 00 35 04 06 00 B5 A5 5F D3 92 DA 54 98 63 7C E8 57 35 0D [19:29:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 C2 90 47 00 32 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 35 33 38 39 10 04 04 00 38 7C 00 00 F4 03 04 00 41 76 96 66 B6 04 01 00 00 E7 35 7B 4D 2D 4B 5C AB [19:29:53]CommunicateWithHost err = 0 [19:29:53]CheckOFDResponse [19:29:53]1017 (14) - 77093643461234 [19:29:53]1041 (16) - 0000000000965389 [19:29:53]1040 (4) - 31800 [19:29:53]1012 (4) - 16.07.2024 13:31 [19:29:53]1206 (1) - 0 [19:29:53]OFD Sender: Remove packet 31800 [19:29:53]ProducePacketName [19:29:53]name=ofd_packets/00031800 [19:29:53]NVStorageDeleteData [19:29:53]Write to MH i2c: 01 00 00 CD 2E FB [19:29:53]Write i2c OK [19:29:53]MH_I2C_Read... [19:29:53]Read from MH i2c: 01 [19:29:53]MH_I2C_Read... [19:29:53]Read from MH i2c: 01 07 00 [19:29:53]MH_I2C_Read... [19:29:53]Read from MH i2c: 01 07 00 CD 2E 00 00 00 00 00 B2 0C C0 [19:29:53]RasterBufferAndPrint [19:29:53]line [19:29:53]line [19:29:53]line [19:29:53]line [19:29:53]line [19:29:53]written 0, free lines is 3257 [19:29:53]MH_Cut [19:29:53]Write to MH i2c: D1 01 00 D4 2E 01 D4 [19:29:53]Write i2c OK [19:29:53]MH_I2C_Read... [19:29:53]Read from MH i2c: D1 [19:29:53]MH_I2C_Read... [19:29:53]Read from MH i2c: D1 01 00 [19:29:53]MH_I2C_Read... [19:29:53]Read from MH i2c: D1 01 00 D4 2E 00 D3 [19:29:53]Write to MH i2c: 01 00 00 D5 2E 03 [19:29:53]Write i2c OK [19:29:53]MH_I2C_Read... [19:29:54]OFD Sender: No OFD packet to send [19:29:54]*** Cut start [19:29:54]*** Partial cut [19:29:54]*** CUTSNS_PIN = 1 [19:29:54]*** CUTSNS_PIN = 0 [19:29:54]*** Brake cut motor [19:29:55]Read from MH i2c: 01 [19:29:55]MH_I2C_Read... [19:29:55]*** Stop cut motor [19:29:55]*** Cut end [19:29:55]Read from MH i2c: 01 07 00 [19:29:55]MH_I2C_Read... [19:29:55]Read from MH i2c: 01 07 00 D5 2E 00 00 00 00 00 FF 0F 18 [19:29:55]process_action close_receipt done [19:29:55]requested_data is exist [19:29:55]produce_requested_data [19:29:55]requested_item fm.sn is exist - process it [19:29:55]wFMCommunicate request_size=4 [19:29:55]MH_SAM_APDU [19:29:55]CAPDU: 80 11 00 00 [19:29:55]Write to MH i2c: E2 08 00 D6 2E 80 11 00 00 00 00 00 00 7E [19:29:55]Write i2c OK [19:29:55]MH_I2C_Read... [19:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:55]Read from MH i2c: E2 [19:29:55]MH_I2C_Read... [19:29:55]Read from MH i2c: E2 17 00 [19:29:55]MH_I2C_Read... [19:29:55]Read from MH i2c: E2 17 00 D6 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D9 [19:29:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:29:55]wFMCommunicate OK [19:29:55]requested_item fd.num is exist - process it [19:29:55]SAM_PROTO_GetFieldsCounters [19:29:55]wFMCommunicate request_size=4 [19:29:55]MH_SAM_APDU [19:29:55]CAPDU: 80 13 00 00 [19:29:55]Write to MH i2c: E2 08 00 D7 2E 80 13 00 00 00 00 00 00 81 [19:29:55]Write i2c OK [19:29:55]MH_I2C_Read... [19:29:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:55]Read from MH i2c: E2 [19:29:55]MH_I2C_Read... [19:29:55]Read from MH i2c: E2 62 00 [19:29:55]MH_I2C_Read... [19:29:55]Read from MH i2c: E2 62 00 D7 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 38 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [19:29:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 38 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:29:55]wFMCommunicate OK [19:29:55]SAM_PROTO_GetFieldsCounters done [19:29:55]requested_item shift.num is exist - process it [19:29:55]requested_item shift.opened is exist - process it [19:29:55]req_shift_opened [19:29:55]FM_GetShiftState [19:29:55]SAM_PROTO_GetShiftState [19:29:55]wFMCommunicate request_size=4 [19:29:55]MH_SAM_APDU [19:29:55]CAPDU: 80 13 01 00 [19:29:55]Write to MH i2c: E2 08 00 D8 2E 80 13 01 00 00 00 00 00 83 [19:29:55]Write i2c OK [19:29:55]MH_I2C_Read... [19:29:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:55]Read from MH i2c: E2 [19:29:55]MH_I2C_Read... [19:29:55]Read from MH i2c: E2 0E 00 [19:29:55]MH_I2C_Read... [19:29:55]Read from MH i2c: E2 0E 00 D8 2E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 D2 [19:29:55]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:29:55]wFMCommunicate OK [19:29:55]SAM_PROTO_GetShiftState done [19:29:55]FM_GetShiftState done [19:29:55]req_shift_opened done [19:29:55]requested_item shift.open_date is exist - process it [19:29:55]req_shift_open_date [19:29:55]req_shift_open_date done [19:29:55]produce_requested_data done [19:29:55]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31800,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [19:29:55]process_action_free close_receipt [19:29:55]json_value_free [19:29:55]json_value_free done [19:29:55]process_json_proto returns [19:29:55]Send response to host [19:29:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31800,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [19:29:55]free response buf [19:29:55]execute_script done [19:29:55]execute_script returns [19:29:55]free content buf [19:29:55]Sock 10.Close socket [19:29:55]Sock 10.Thread stoped [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]accept exits with 7 [19:30:29]New connection [19:30:29]New thread 3066965348 created [19:30:29]Thread 3066821988 joined [19:30:29]Waiting for new connection... [19:30:29] Sock 7.Parse request [19:30:29]Sock 7.Check first char [19:30:29]Sock 7.First char is OK [19:30:29]request: POST /json_proto HTTP/1.0 [19:30:29]Method: POST [19:30:29]URL: /json_proto [19:30:29]Method is POST - this is cgi request [19:30:29]url: /json_proto [19:30:29]query_string will be loaded in cgi processing [19:30:29]execute_cgi json_proto POST (null) [19:30:29]execute_cgi path=json_proto method=POST [19:30:29]POST find Content-Length [19:30:29]Host: 172.17.39.68:8080 [19:30:29]Content-Length: 921 [19:30:29]Content-Type: application/json [19:30:29] [19:30:29]POST finish read [19:30:29]Found Content-Length = 921 [19:30:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214382", "tax_sys" : 0, "items" : [ { "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 1.000, "sum" : 115.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:30:29]execute_script... [19:30: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)214382", "tax_sys" : 0, "items" : [ { "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 1.000, "sum" : 115.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:30:29]POST & json_proto [19:30:29]process_json_proto [19:30:29]json parsed OK: [19:30:29]protocol is kg_v1.0 [19:30:29]action value=close_receipt [19:30:29]process_action close_receipt [19:30:29]cmd_close_receipt [19:30:29]MH_GetDate [19:30:29]Write to MH i2c: F0 00 00 D9 2E F6 [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: F0 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: F0 09 00 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: F0 09 00 D9 2E 00 5B CA 96 66 D6 48 95 66 39 [19:30:29]GetLastDocTimeStamp 1721158197 [19:30:29]current date 1721158235 [19:30:29]FM_GetShiftState [19:30:29]SAM_PROTO_GetShiftState [19:30:29]wFMCommunicate request_size=4 [19:30:29]MH_SAM_APDU [19:30:29]CAPDU: 80 13 01 00 [19:30:29]Write to MH i2c: E2 08 00 DA 2E 80 13 01 00 00 00 00 00 85 [19:30:29]Write i2c OK [19:30:29]MH_I2C_Read... [19:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:29]Read from MH i2c: E2 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 0E 00 [19:30:29]MH_I2C_Read... [19:30:29]Read from MH i2c: E2 0E 00 DA 2E 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 D4 [19:30:29]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:30:29]wFMCommunicate OK [19:30:29]SAM_PROTO_GetShiftState done [19:30:29]FM_GetShiftState done [19:30:29]opened in 1721088399 [19:30:29]opened+sec_in_day 1721174799 [19:30:29]quantity*price = 13000 [19:30:29]sum+1 = 13001 [19:30:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 245.00 НСП 1% : 2.17 НДС 12% : 26.01 Наличными: 245.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 120 16.07.2024 19:30 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31801 ФПД: 136808796215046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T193035&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31801&fm=136808796215046&tin=02508201610067®Number=0000000000098025&sum=24500 0 [19:30:30]StoreToDocumentArchive [19:30:30]shift 371 fd 31801 [19:30:30]save to /storage/0371/doc_00031801 [19:30:30]save last doc name /storage/0371/doc_00031801 to /storage/kkm_last_doc_name [19:30:30]save OK [19:30:30]Clear old archive folders... [19:30:30]ProcessDocumentItem done err = 0, tmpTLVsize=403 [19:30:30]tlvbuf is 01526D60 [19:30:30]SAM_PROTO_ClearQueue [19:30:30]wFMCommunicate request_size=4 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 09 00 00 [19:30:30]Write to MH i2c: E2 08 00 E7 2E 80 09 00 00 00 00 00 00 87 [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:30:30]Read from MH i2c: E2 03 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 03 00 E7 2E 00 90 00 89 [19:30:30]RAPDU: 90 00 [19:30:30]wFMCommunicate OK [19:30:30]SAM_PROTO_ClearQueue done [19:30:30]KKMCreateOFDPacket [19:30:30]OFDProtocolAddRootSTLVToBuf [19:30:30]FM_MakeSignedData [19:30:30]FM_MakeSignedData [19:30:30]SAM_PROTO_SignData [19:30:30]wFMCommunicate request_size=4 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 0D 01 02 [19:30:30]Write to MH i2c: E2 08 00 E8 2E 80 0D 01 02 00 00 00 00 8F [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:30:30]Read from MH i2c: E2 03 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 03 00 E8 2E 00 90 00 8A [19:30:30]RAPDU: 90 00 [19:30:30]wFMCommunicate OK [19:30:30]wFMCommunicate request_size=255 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 0D 02 02 FA 03 00 93 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 B4 5F 00 00 [19:30:30]Write to MH i2c: E2 02 01 E9 2E 80 0D 02 02 FA 00 03 00 93 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 B4 5F 00 00 00 00 52 [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 03 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 03 00 E9 2E 00 90 00 8B [19:30:30]RAPDU: 90 00 [19:30:30]wFMCommunicate OK [19:30:30]wFMCommunicate request_size=162 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 0D 02 02 9D 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 78 00 00 00 F4 03 04 00 5B CA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 39 7C 00 00 35 04 06 00 7C 6D 47 B3 57 06 [19:30:30]Write to MH i2c: E2 A5 00 EA 2E 80 0D 02 02 9D 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 78 00 00 00 F4 03 04 00 5B CA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 39 7C 00 00 35 04 06 00 7C 6D 47 B3 57 06 00 00 31 [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:30:30]Read from MH i2c: E2 03 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 03 00 EA 2E 00 90 00 8C [19:30:30]RAPDU: 90 00 [19:30:30]wFMCommunicate OK [19:30:30]wFMCommunicate request_size=4 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 0D 03 02 [19:30:30]Write to MH i2c: E2 08 00 EB 2E 80 0D 03 02 00 00 00 00 94 [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 0B 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 0B 00 EB 2E 00 C6 6A 65 A3 BE 85 9E 61 90 00 0F [19:30:30]RAPDU: C6 6A 65 A3 BE 85 9E 61 90 00 [19:30:30]wFMCommunicate OK [19:30:30]SAM_PROTO_SignData done [19:30:30]FM_MakeSignedData done [19:30:30]CreateOFDProtocolMessage [19:30:30]wFMCommunicate request_size=4 [19:30:30]MH_SAM_APDU [19:30:30]CAPDU: 80 11 00 00 [19:30:30]Write to MH i2c: E2 08 00 EC 2E 80 11 00 00 00 00 00 00 94 [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:30]Read from MH i2c: E2 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 17 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: E2 17 00 EC 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 EF [19:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:30:30]wFMCommunicate OK [19:30:30]CreateOFDProtocolMessage done [19:30:30]OFDSenderStorePacket 31801 [19:30:30]StoreOFDPacket docnum=31801 [19:30:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A7 01 00 00 A6 AA 9F 01 20 89 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 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 78 00 00 00 F4 03 04 00 5B CA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 39 7C 00 00 35 04 06 00 7C 6D 47 B3 57 06 C6 6A 65 A3 BE 85 9E 61 [19:30:30]CheckFolder [19:30:30]dirname=/storage/ofd_packets [19:30:30]CheckFolder done [19:30:30]ProducePacketName [19:30:30]name=ofd_packets/00031801 [19:30:30]NVStorageSaveData ofd_packets/00031801 [19:30:30]File name is /storage/ofd_packets/00031801 [19:30:30]Write 453 bytes [19:30:30]NVStorageSaveData done [19:30:30]OFDSenderStorePacket done [19:30:30]KKMCreateOFDPacket done [19:30:30]NVStorageSaveData kkm_last_timestamp [19:30:30]File name is /storage/kkm_last_timestamp [19:30:30]Write 4 bytes [19:30:30]NVStorageSaveData done [19:30:30]ExternCall_PrintAddStr [19:30:30]wPrintStart [19:30:30]Write to MH i2c: 01 00 00 ED 2E 1B [19:30:30]Write i2c OK [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: 01 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: 01 07 00 [19:30:30]MH_I2C_Read... [19:30:30]Read from MH i2c: 01 07 00 ED 2E 00 00 00 00 00 FF 0F 30 [19:30:30]RasterBufferAndPrint [19:30:30]line Счет N : (3)214382 [19:30:30]line ИНН: 02508201610067 [19:30:30]line Контрольно-Кассовый Чек [19:30:30]line ПРОДАЖА [19:30:31]line Товар: 4870002329999 [19:30:31]line Напиток Lipton IceTea 1л лимон Regular [19:30:31]line 1.000 * 130.00 [19:30:31]line = 130.00 [19:30:31]line НДС 12% НСП 1% [19:30:31]line > о реализуемом товаре [19:30:31]line Товар: 2000036210013 [19:30:31]line Кофе Капучино (GABB TRADE) [19:30:31]line 1.000 * 115.00 [19:30:31]line = 115.00 [19:30:31]line НДС 12% НСП 1% [19:30:31]line > о реализуемом товаре [19:30:31]line ИТОГО: 245.00 [19:30:31]line НСП 1% : 2.17 [19:30:31]line НДС 12% : 26.01 [19:30:31]line Наличными: 245.00 [19:30:31]line Безнал.: 0.00 [19:30:31]line Место: АЗС № 140 "Партнер Нефть" [19:30:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:30:31]line СНО: Общий режим [19:30:31]line Чек 120 16.07.2024 19:30 [19:30:31]line Смена: 371 ФФД: 1.0 [19:30:31]line ЗНМ: 0300000189 [19:30:31]line РНМ: 0000000000098025 [19:30:31]line Версия ККМ: 001 [19:30:31]line ФМ: 0000000000965389 [19:30:31]line ФД: 31801 [19:30:31]line ФПД: 136808796215046 [19:30:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T193035&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31801&fm=136808796215046&tin=02508201610067®Number=0000000000098025&sum=24500 [19:30:31]line 0 [19:30:31]OFD Sender: Processing packet 31801 [packets to send 6, broken 5] [19:30:31]ProducePacketName [19:30:31]name=ofd_packets/00031801 [19:30:31]OFD Sender: To server: pG, [19:30:31]CommunicateWithHost lk.salyk.kg:30040 [19:30:31]ConnectInit lk.salyk.kg [19:30:31]written 0, free lines is 4095 [19:30:31]Connected sock=10 [19:30:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 A7 01 00 00 A6 AA 9F 01 20 89 5A 03 01 00 03 00 93 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 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 BB D0 B8 D0 BC D0 BE D0 BD 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 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 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 78 00 00 00 F4 03 04 00 5B CA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 39 7C 00 00 35 04 06 00 7C 6D 47 B3 57 06 C6 6A 65 A3 BE 85 9E 61 [19:30:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 70 A5 47 00 F2 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 35 33 38 39 10 04 04 00 39 7C 00 00 F4 03 04 00 67 76 96 66 B6 04 01 00 00 78 4E CD B0 15 41 5C 80 [19:30:31]CommunicateWithHost err = 0 [19:30:31]CheckOFDResponse [19:30:31]1017 (14) - 77093643461234 [19:30:31]1041 (16) - 0000000000965389 [19:30:31]1040 (4) - 31801 [19:30:31]1012 (4) - 16.07.2024 13:32 [19:30:31]1206 (1) - 0 [19:30:31]OFD Sender: Remove packet 31801 [19:30:31]ProducePacketName [19:30:31]name=ofd_packets/00031801 [19:30:31]NVStorageDeleteData [19:30:31]Write to MH i2c: 01 00 00 1C 2F 4B [19:30:31]Write i2c OK [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: 01 [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: 01 07 00 [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: 01 07 00 1C 2F 00 00 00 00 00 A5 0C 03 [19:30:31]RasterBufferAndPrint [19:30:31]line [19:30:31]line [19:30:31]line [19:30:31]line [19:30:31]line [19:30:31]written 0, free lines is 3242 [19:30:31]MH_Cut [19:30:31]Write to MH i2c: D1 01 00 23 2F 01 24 [19:30:31]Write i2c OK [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: D1 [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: D1 01 00 [19:30:31]MH_I2C_Read... [19:30:31]Read from MH i2c: D1 01 00 23 2F 00 23 [19:30:31]Write to MH i2c: 01 00 00 24 2F 53 [19:30:31]Write i2c OK [19:30:31]MH_I2C_Read... [19:30:32]OFD Sender: No OFD packet to send [19:30:32]*** Cut start [19:30:32]*** Partial cut [19:30:32]*** CUTSNS_PIN = 1 [19:30:32]*** CUTSNS_PIN = 0 [19:30:32]*** Brake cut motor [19:30:33]Read from MH i2c: 01 [19:30:33]MH_I2C_Read... [19:30:33]*** Stop cut motor [19:30:33]*** Cut end [19:30:33]Read from MH i2c: 01 07 00 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: 01 07 00 24 2F 00 00 00 00 00 FF 0F 68 [19:30:33]process_action close_receipt done [19:30:33]requested_data is exist [19:30:33]produce_requested_data [19:30:33]requested_item fm.sn is exist - process it [19:30:33]wFMCommunicate request_size=4 [19:30:33]MH_SAM_APDU [19:30:33]CAPDU: 80 11 00 00 [19:30:33]Write to MH i2c: E2 08 00 25 2F 80 11 00 00 00 00 00 00 CE [19:30:33]Write i2c OK [19:30:33]MH_I2C_Read... [19:30:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:30:33]Read from MH i2c: E2 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: E2 17 00 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: E2 17 00 25 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 29 [19:30:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:30:33]wFMCommunicate OK [19:30:33]requested_item fd.num is exist - process it [19:30:33]SAM_PROTO_GetFieldsCounters [19:30:33]wFMCommunicate request_size=4 [19:30:33]MH_SAM_APDU [19:30:33]CAPDU: 80 13 00 00 [19:30:33]Write to MH i2c: E2 08 00 26 2F 80 13 00 00 00 00 00 00 D1 [19:30:33]Write i2c OK [19:30:33]MH_I2C_Read... [19:30:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:30:33]Read from MH i2c: E2 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: E2 62 00 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: E2 62 00 26 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 39 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [19:30: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 39 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:30:33]wFMCommunicate OK [19:30:33]SAM_PROTO_GetFieldsCounters done [19:30:33]requested_item shift.num is exist - process it [19:30:33]requested_item shift.opened is exist - process it [19:30:33]req_shift_opened [19:30:33]FM_GetShiftState [19:30:33]SAM_PROTO_GetShiftState [19:30:33]wFMCommunicate request_size=4 [19:30:33]MH_SAM_APDU [19:30:33]CAPDU: 80 13 01 00 [19:30:33]Write to MH i2c: E2 08 00 27 2F 80 13 01 00 00 00 00 00 D3 [19:30:33]Write i2c OK [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: E2 [19:30:33]MH_I2C_Read... [19:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:30:33]Read from MH i2c: E2 0E 00 [19:30:33]MH_I2C_Read... [19:30:33]Read from MH i2c: E2 0E 00 27 2F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 22 [19:30:33]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:30:33]wFMCommunicate OK [19:30:33]SAM_PROTO_GetShiftState done [19:30:33]FM_GetShiftState done [19:30:33]req_shift_opened done [19:30:33]requested_item shift.open_date is exist - process it [19:30:33]req_shift_open_date [19:30:33]req_shift_open_date done [19:30:33]produce_requested_data done [19:30:33]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31801,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [19:30:33]process_action_free close_receipt [19:30:33]json_value_free [19:30:33]json_value_free done [19:30:33]process_json_proto returns [19:30:33]Send response to host [19:30:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31801,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [19:30:33]free response buf [19:30:33]execute_script done [19:30:33]execute_script returns [19:30:33]free content buf [19:30:33]Sock 7.Close socket [19:30:33]Sock 7.Thread stoped [19:30:37]OFD Sender: No OFD packet to send [19:30:42]OFD Sender: No OFD packet to send [19:30:47]OFD Sender: No OFD packet to send [19:30:52]OFD Sender: No OFD packet to send [19:30:57]OFD Sender: No OFD packet to send [19:31:02]OFD Sender: No OFD packet to send [19:31:07]OFD Sender: No OFD packet to send [19:31:12]OFD Sender: No OFD packet to send [19:31:17]OFD Sender: No OFD packet to send [19:31:22]OFD Sender: No OFD packet to send [19:31:27]OFD Sender: No OFD packet to send [19:31:32]OFD Sender: No OFD packet to send [19:31:37]OFD Sender: No OFD packet to send [19:31:42]OFD Sender: No OFD packet to send [19:31:47]OFD Sender: No OFD packet to send [19:31:52]OFD Sender: No OFD packet to send [19:31:57]OFD Sender: No OFD packet to send [19:32:02]OFD Sender: No OFD packet to send [19:32:07]OFD Sender: No OFD packet to send [19:32:12]OFD Sender: No OFD packet to send [19:32:17]OFD Sender: No OFD packet to send [19:32:22]OFD Sender: No OFD packet to send [19:32:27]OFD Sender: No OFD packet to send [19:32:32]OFD Sender: No OFD packet to send [19:32:37]OFD Sender: No OFD packet to send [19:32:42]OFD Sender: No OFD packet to send [19:32:47]OFD Sender: No OFD packet to send [19:32:52]OFD Sender: No OFD packet to send [19:32:57]OFD Sender: No OFD packet to send [19:33:02]OFD Sender: No OFD packet to send [19:33:07]OFD Sender: No OFD packet to send [19:33:12]OFD Sender: No OFD packet to send [19:33:17]OFD Sender: No OFD packet to send [19:33:22]OFD Sender: No OFD packet to send [19:33:27]OFD Sender: No OFD packet to send [19:33:32]OFD Sender: No OFD packet to send [19:33:37]OFD Sender: No OFD packet to send [19:33:42]OFD Sender: No OFD packet to send [19:33:47]OFD Sender: No OFD packet to send [19:33:52]OFD Sender: No OFD packet to send [19:33:57]OFD Sender: No OFD packet to send [19:34:02]OFD Sender: No OFD packet to send [19:34:07]OFD Sender: No OFD packet to send [19:34:12]OFD Sender: No OFD packet to send [19:34:17]OFD Sender: No OFD packet to send [19:34:22]OFD Sender: No OFD packet to send [19:34:27]OFD Sender: No OFD packet to send [19:34:32]OFD Sender: No OFD packet to send [19:34:37]OFD Sender: No OFD packet to send [19:34:42]OFD Sender: No OFD packet to send [19:34:47]OFD Sender: No OFD packet to send [19:34:52]OFD Sender: No OFD packet to send [19:34:57]OFD Sender: No OFD packet to send [19:35:02]OFD Sender: No OFD packet to send [19:35:07]OFD Sender: No OFD packet to send [19:35:12]OFD Sender: No OFD packet to send [19:35:17]OFD Sender: No OFD packet to send [19:35:22]OFD Sender: No OFD packet to send [19:35:27]OFD Sender: No OFD packet to send [19:35:32]OFD Sender: No OFD packet to send [19:35:37]OFD Sender: No OFD packet to send [19:35:42]OFD Sender: No OFD packet to send [19:35:47]OFD Sender: No OFD packet to send [19:35:52]OFD Sender: No OFD packet to send [19:35:57]OFD Sender: No OFD packet to send [19:36:02]OFD Sender: No OFD packet to send [19:36:07]OFD Sender: No OFD packet to send [19:36:12]OFD Sender: No OFD packet to send [19:36:17]OFD Sender: No OFD packet to send [19:36:22]OFD Sender: No OFD packet to send [19:36:27]OFD Sender: No OFD packet to send [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:52]OFD Sender: No OFD packet to send [19:37:53]accept exits with 9 [19:37:53]New connection [19:37:53]New thread 3066821988 created [19:37:53]Thread 3066965348 joined [19:37:53]Waiting for new connection... [19:37:53] Sock 9.Parse request [19:37:53]Sock 9.Check first char [19:37:53]Sock 9.First char is OK [19:37:53]request: POST /json_proto HTTP/1.0 [19:37:53]Method: POST [19:37:53]URL: /json_proto [19:37:53]Method is POST - this is cgi request [19:37:53]url: /json_proto [19:37:53]query_string will be loaded in cgi processing [19:37:53]execute_cgi json_proto POST (null) [19:37:53]execute_cgi path=json_proto method=POST [19:37:53]POST find Content-Length [19:37:53]Host: 172.17.39.68:8080 [19:37:53]Content-Length: 646 [19:37:53]Content-Type: application/json [19:37:53] [19:37:53]POST finish read [19:37:53]Found Content-Length = 646 [19:37:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214383", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:53]execute_script... [19:37: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 : (3)214383", "tax_sys" : 0, "items" : [ { "code": "4700000483259", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fresh \u041C\u043E\u0445\u0438\u0442\u043E", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:37:53]POST & json_proto [19:37:53]process_json_proto [19:37:53]json parsed OK: [19:37:53]protocol is kg_v1.0 [19:37:53]action value=close_receipt [19:37:53]process_action close_receipt [19:37:53]cmd_close_receipt [19:37:53]MH_GetDate [19:37:53]Write to MH i2c: F0 00 00 28 2F 46 [19:37:53]Write i2c OK [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: F0 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: F0 09 00 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: F0 09 00 28 2F 00 17 CC 96 66 D6 48 95 66 47 [19:37:53]GetLastDocTimeStamp 1721158235 [19:37:53]current date 1721158679 [19:37:53]FM_GetShiftState [19:37:53]SAM_PROTO_GetShiftState [19:37:53]wFMCommunicate request_size=4 [19:37:53]MH_SAM_APDU [19:37:53]CAPDU: 80 13 01 00 [19:37:53]Write to MH i2c: E2 08 00 29 2F 80 13 01 00 00 00 00 00 D5 [19:37:53]Write i2c OK [19:37:53]MH_I2C_Read... [19:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:53]Read from MH i2c: E2 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 0E 00 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 0E 00 29 2F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 24 [19:37:53]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:37:53]wFMCommunicate OK [19:37:53]SAM_PROTO_GetShiftState done [19:37:53]FM_GetShiftState done [19:37:53]opened in 1721088399 [19:37:53]opened+sec_in_day 1721174799 [19:37:53]quantity*price = 9500 [19:37:53]sum+1 = 9501 [19:37:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 121 16.07.2024 19:37 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31802 ФПД: 217653987017345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T193759&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31802&fm=217653987017345&tin=02508201610067®Number=0000000000098025&sum=9500 0 [19:37:55]StoreToDocumentArchive [19:37:55]shift 371 fd 31802 [19:37:55]save to /storage/0371/doc_00031802 [19:37:55]save last doc name /storage/0371/doc_00031802 to /storage/kkm_last_doc_name [19:37:55]save OK [19:37:55]Clear old archive folders... [19:37:55]ProcessDocumentItem done err = 0, tmpTLVsize=281 [19:37:55]tlvbuf is 015269C0 [19:37:55]SAM_PROTO_ClearQueue [19:37:55]wFMCommunicate request_size=4 [19:37:55]MH_SAM_APDU [19:37:55]CAPDU: 80 09 00 00 [19:37:55]Write to MH i2c: E2 08 00 36 2F 80 09 00 00 00 00 00 00 D7 [19:37:55]Write i2c OK [19:37:55]MH_I2C_Read... [19:37:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:55]Read from MH i2c: E2 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 03 00 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 03 00 36 2F 00 90 00 D9 [19:37:55]RAPDU: 90 00 [19:37:55]wFMCommunicate OK [19:37:55]SAM_PROTO_ClearQueue done [19:37:55]KKMCreateOFDPacket [19:37:55]OFDProtocolAddRootSTLVToBuf [19:37:55]FM_MakeSignedData [19:37:55]FM_MakeSignedData [19:37:55]SAM_PROTO_SignData [19:37:55]wFMCommunicate request_size=4 [19:37:55]MH_SAM_APDU [19:37:55]CAPDU: 80 0D 01 02 [19:37:55]Write to MH i2c: E2 08 00 37 2F 80 0D 01 02 00 00 00 00 DF [19:37:55]Write i2c OK [19:37:55]MH_I2C_Read... [19:37:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:55]Read from MH i2c: E2 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 03 00 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 03 00 37 2F 00 90 00 DA [19:37:55]RAPDU: 90 00 [19:37:55]wFMCommunicate OK [19:37:55]wFMCommunicate request_size=255 [19:37:55]MH_SAM_APDU [19:37: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 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 79 00 00 00 F4 03 04 00 17 CC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 [19:37:55]Write to MH i2c: E2 02 01 38 2F 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 79 00 00 00 F4 03 04 00 17 CC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 87 [19:37:55]Write i2c OK [19:37:55]MH_I2C_Read... [19:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:55]Read from MH i2c: E2 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 03 00 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 03 00 38 2F 00 90 00 DB [19:37:55]RAPDU: 90 00 [19:37:55]wFMCommunicate OK [19:37:55]wFMCommunicate request_size=40 [19:37:55]MH_SAM_APDU [19:37:55]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3A 7C 00 00 35 04 06 00 C5 F4 84 94 82 81 [19:37:55]Write to MH i2c: E2 2B 00 39 2F 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3A 7C 00 00 35 04 06 00 C5 F4 84 94 82 81 00 00 31 [19:37:55]Write i2c OK [19:37:55]MH_I2C_Read... [19:37:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:55]Read from MH i2c: E2 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 03 00 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 03 00 39 2F 00 90 00 DC [19:37:55]RAPDU: 90 00 [19:37:55]wFMCommunicate OK [19:37:55]wFMCommunicate request_size=4 [19:37:55]MH_SAM_APDU [19:37:55]CAPDU: 80 0D 03 02 [19:37:55]Write to MH i2c: E2 08 00 3A 2F 80 0D 03 02 00 00 00 00 E4 [19:37:55]Write i2c OK [19:37:55]MH_I2C_Read... [19:37:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:55]Read from MH i2c: E2 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 0B 00 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 0B 00 3A 2F 00 17 47 CB FB 5B 86 AB 75 90 00 0A [19:37:55]RAPDU: 17 47 CB FB 5B 86 AB 75 90 00 [19:37:55]wFMCommunicate OK [19:37:55]SAM_PROTO_SignData done [19:37:55]FM_MakeSignedData done [19:37:55]CreateOFDProtocolMessage [19:37:55]wFMCommunicate request_size=4 [19:37:55]MH_SAM_APDU [19:37:55]CAPDU: 80 11 00 00 [19:37:55]Write to MH i2c: E2 08 00 3B 2F 80 11 00 00 00 00 00 00 E4 [19:37:55]Write i2c OK [19:37:55]MH_I2C_Read... [19:37:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:55]Read from MH i2c: E2 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 17 00 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: E2 17 00 3B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3F [19:37:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:37:55]wFMCommunicate OK [19:37:55]CreateOFDProtocolMessage done [19:37:55]OFDSenderStorePacket 31802 [19:37:55]StoreOFDPacket docnum=31802 [19:37:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2D 01 00 00 94 4E 25 01 7C 8E 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 79 00 00 00 F4 03 04 00 17 CC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3A 7C 00 00 35 04 06 00 C5 F4 84 94 82 81 17 47 CB FB 5B 86 AB 75 [19:37:55]CheckFolder [19:37:55]dirname=/storage/ofd_packets [19:37:55]CheckFolder done [19:37:55]ProducePacketName [19:37:55]name=ofd_packets/00031802 [19:37:55]NVStorageSaveData ofd_packets/00031802 [19:37:55]File name is /storage/ofd_packets/00031802 [19:37:55]Write 331 bytes [19:37:55]NVStorageSaveData done [19:37:55]OFDSenderStorePacket done [19:37:55]KKMCreateOFDPacket done [19:37:55]NVStorageSaveData kkm_last_timestamp [19:37:55]File name is /storage/kkm_last_timestamp [19:37:55]Write 4 bytes [19:37:55]NVStorageSaveData done [19:37:55]ExternCall_PrintAddStr [19:37:55]wPrintStart [19:37:55]Write to MH i2c: 01 00 00 3C 2F 6B [19:37:55]Write i2c OK [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: 01 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: 01 07 00 [19:37:55]MH_I2C_Read... [19:37:55]Read from MH i2c: 01 07 00 3C 2F 00 00 00 00 00 FF 0F 80 [19:37:55]RasterBufferAndPrint [19:37:55]line Счет N : (3)214383 [19:37:55]line ИНН: 02508201610067 [19:37:55]line Контрольно-Кассовый Чек [19:37:55]line ПРОДАЖА [19:37:55]line Товар: 4700000483259 [19:37:55]line Напиток Nitro Fresh Мохито [19:37:55]line 1.000 * 95.00 [19:37:55]line = 95.00 [19:37:55]line НДС 12% НСП 1% [19:37:55]line > о реализуемом товаре [19:37:55]line ИТОГО: 95.00 [19:37:55]line НСП 1% : 0.84 [19:37:55]line НДС 12% : 10.09 [19:37:55]line Наличными: 95.00 [19:37:55]line Безнал.: 0.00 [19:37:55]line Место: АЗС № 140 "Партнер Нефть" [19:37:55]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [19:37:55]line СНО: Общий режим [19:37:55]line Чек 121 16.07.2024 19:37 [19:37:55]line Смена: 371 ФФД: 1.0 [19:37:55]line ЗНМ: 0300000189 [19:37:55]line РНМ: 0000000000098025 [19:37:55]line Версия ККМ: 001 [19:37:55]line ФМ: 0000000000965389 [19:37:55]line ФД: 31802 [19:37:55]line ФПД: 217653987017345 [19:37:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T193759&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31802&fm=217653987017345&tin=02508201610067®Number=0000000000098025&sum=9500 [19:37:55]line 0 [19:37:55]OFD Sender: Processing packet 31802 [packets to send 6, broken 5] [19:37:55]ProducePacketName [19:37:55]name=ofd_packets/00031802 [19:37:55]OFD Sender: To server: pG, [19:37:55]CommunicateWithHost lk.salyk.kg:30040 [19:37:55]ConnectInit lk.salyk.kg [19:37:55]written 0, free lines is 4095 [19:37:55]Connected sock=10 [19:37:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2D 01 00 00 94 4E 25 01 7C 8E 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 35 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 46 72 65 73 68 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 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 79 00 00 00 F4 03 04 00 17 CC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3A 7C 00 00 35 04 06 00 C5 F4 84 94 82 81 17 47 CB FB 5B 86 AB 75 [19:37:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 30 E0 47 00 49 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 35 33 38 39 10 04 04 00 3A 7C 00 00 F4 03 04 00 24 78 96 66 B6 04 01 00 00 24 4B B3 92 55 13 DB FD [19:37:56]CommunicateWithHost err = 0 [19:37:56]CheckOFDResponse [19:37:56]1017 (14) - 77093643461234 [19:37:56]1041 (16) - 0000000000965389 [19:37:56]1040 (4) - 31802 [19:37:56]1012 (4) - 16.07.2024 13:39 [19:37:56]1206 (1) - 0 [19:37:56]OFD Sender: Remove packet 31802 [19:37:56]ProducePacketName [19:37:56]name=ofd_packets/00031802 [19:37:56]NVStorageDeleteData [19:37:56]Write to MH i2c: 01 00 00 64 2F 93 [19:37:56]Write i2c OK [19:37:56]MH_I2C_Read... [19:37:56]Read from MH i2c: 01 [19:37:56]MH_I2C_Read... [19:37:56]Read from MH i2c: 01 07 00 [19:37:56]MH_I2C_Read... [19:37:56]Read from MH i2c: 01 07 00 64 2F 00 00 00 00 00 F9 0C 9F [19:37:56]RasterBufferAndPrint [19:37:56]line [19:37:56]line [19:37:56]line [19:37:56]line [19:37:56]line [19:37:56]written 0, free lines is 3328 [19:37:56]MH_Cut [19:37:56]Write to MH i2c: D1 01 00 6B 2F 01 6C [19:37:56]Write i2c OK [19:37:56]MH_I2C_Read... [19:37:56]Read from MH i2c: D1 [19:37:56]MH_I2C_Read... [19:37:56]Read from MH i2c: D1 01 00 [19:37:56]MH_I2C_Read... [19:37:56]Read from MH i2c: D1 01 00 6B 2F 00 6B [19:37:56]Write to MH i2c: 01 00 00 6C 2F 9B [19:37:56]Write i2c OK [19:37:56]MH_I2C_Read... [19:37:56]OFD Sender: No OFD packet to send [19:37:57]*** Cut start [19:37:57]*** Partial cut [19:37:57]*** CUTSNS_PIN = 1 [19:37:57]*** CUTSNS_PIN = 0 [19:37:57]*** Brake cut motor [19:37:57]Read from MH i2c: 01 [19:37:57]MH_I2C_Read... [19:37:57]*** Stop cut motor [19:37:57]*** Cut end [19:37:57]Read from MH i2c: 01 07 00 [19:37:57]MH_I2C_Read... [19:37:57]Read from MH i2c: 01 07 00 6C 2F 00 00 00 00 00 FF 0F B0 [19:37:57]process_action close_receipt done [19:37:57]requested_data is exist [19:37:57]produce_requested_data [19:37:57]requested_item fm.sn is exist - process it [19:37:57]wFMCommunicate request_size=4 [19:37:57]MH_SAM_APDU [19:37:57]CAPDU: 80 11 00 00 [19:37:57]Write to MH i2c: E2 08 00 6D 2F 80 11 00 00 00 00 00 00 16 [19:37:57]Write i2c OK [19:37:57]MH_I2C_Read... [19:37:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:57]Read from MH i2c: E2 [19:37:57]MH_I2C_Read... [19:37:57]Read from MH i2c: E2 17 00 [19:37:57]MH_I2C_Read... [19:37:57]Read from MH i2c: E2 17 00 6D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 71 [19:37:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:37:57]wFMCommunicate OK [19:37:57]requested_item fd.num is exist - process it [19:37:57]SAM_PROTO_GetFieldsCounters [19:37:57]wFMCommunicate request_size=4 [19:37:57]MH_SAM_APDU [19:37:57]CAPDU: 80 13 00 00 [19:37:57]Write to MH i2c: E2 08 00 6E 2F 80 13 00 00 00 00 00 00 19 [19:37:57]Write i2c OK [19:37:57]MH_I2C_Read... [19:37:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:57]Read from MH i2c: E2 [19:37:57]MH_I2C_Read... [19:37:57]Read from MH i2c: E2 62 00 [19:37:57]MH_I2C_Read... [19:37:57]Read from MH i2c: E2 62 00 6E 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [19:37: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:57]wFMCommunicate OK [19:37:57]SAM_PROTO_GetFieldsCounters done [19:37:57]requested_item shift.num is exist - process it [19:37:57]requested_item shift.opened is exist - process it [19:37:57]req_shift_opened [19:37:57]FM_GetShiftState [19:37:57]SAM_PROTO_GetShiftState [19:37:57]wFMCommunicate request_size=4 [19:37:57]MH_SAM_APDU [19:37:57]CAPDU: 80 13 01 00 [19:37:57]Write to MH i2c: E2 08 00 6F 2F 80 13 01 00 00 00 00 00 1B [19:37:57]Write i2c OK [19:37:57]MH_I2C_Read... [19:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:57]Read from MH i2c: E2 [19:37:57]MH_I2C_Read... [19:37:57]Read from MH i2c: E2 0E 00 [19:37:57]MH_I2C_Read... [19:37:57]Read from MH i2c: E2 0E 00 6F 2F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 6A [19:37:57]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:37:57]wFMCommunicate OK [19:37:57]SAM_PROTO_GetShiftState done [19:37:57]FM_GetShiftState done [19:37:57]req_shift_opened done [19:37:57]requested_item shift.open_date is exist - process it [19:37:57]req_shift_open_date [19:37:57]req_shift_open_date done [19:37:57]produce_requested_data done [19:37:57]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31802,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [19:37:57]process_action_free close_receipt [19:37:57]json_value_free [19:37:57]json_value_free done [19:37:57]process_json_proto returns [19:37:57]Send response to host [19:37:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31802,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [19:37:57]free response buf [19:37:57]execute_script done [19:37:57]execute_script returns [19:37:57]free content buf [19:37:57]Sock 9.Close socket [19:37:57]Sock 9.Thread stoped [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:08]int [19:38:08]Write to MH i2c: 01 00 00 70 2F 9F [19:38:08]*** FLAG_PRN_PAP1 set [19:38:08]Write i2c OK [19:38:08]MH_I2C_Read... [19:38:08]Read from MH i2c: 01 [19:38:08]MH_I2C_Read... [19:38:08]Read from MH i2c: 01 07 00 [19:38:08]MH_I2C_Read... [19:38:08]Read from MH i2c: 01 07 00 70 2F 00 01 00 00 00 FF 0F B5 [19:38:08]state=0 [19:38:08]No paper [19:38:08]int [19:38:08]Write to MH i2c: 01 00 00 71 2F A0 [19:38:08]*** FLAG_PRN_PAP2 set [19:38:08]Write i2c OK [19:38:08]MH_I2C_Read... [19:38:08]Read from MH i2c: 01 [19:38:08]MH_I2C_Read... [19:38:08]Read from MH i2c: 01 07 00 [19:38:08]MH_I2C_Read... [19:38:08]Read from MH i2c: 01 07 00 71 2F 00 03 00 00 00 FF 0F B8 [19:38:08]state=0 [19:38:08]No paper [19:38:08]Cover opened [19:38:11]OFD Sender: No OFD packet to send [19:38:13]Write to MH i2c: 01 00 00 72 2F A1 [19:38:13]Write i2c OK [19:38:13]MH_I2C_Read... [19:38:13]Read from MH i2c: 01 [19:38:13]MH_I2C_Read... [19:38:13]Read from MH i2c: 01 07 00 [19:38:13]MH_I2C_Read... [19:38:13]Read from MH i2c: 01 07 00 72 2F 00 03 00 00 00 FF 0F B9 [19:38:13]state=3 [19:38:13]No paper [19:38:13]Cover opened [19:38:16]OFD Sender: No OFD packet to send [19:38:18]Write to MH i2c: 01 00 00 73 2F A2 [19:38:18]Write i2c OK [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 07 00 [19:38:18]MH_I2C_Read... [19:38:18]Read from MH i2c: 01 07 00 73 2F 00 03 00 00 00 FF 0F BA [19:38:18]state=3 [19:38:18]No paper [19:38:18]Cover opened [19:38:21]OFD Sender: No OFD packet to send [19:38:23]Write to MH i2c: 01 00 00 74 2F A3 [19:38:23]Write i2c OK [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 [19:38:23]MH_I2C_Read... [19:38:23]Read from MH i2c: 01 07 00 74 2F 00 03 00 00 00 FF 0F BB [19:38:23]state=3 [19:38:23]No paper [19:38:23]Cover opened [19:38:25]int [19:38:25]Write to MH i2c: 01 00 00 75 2F A4 [19:38:25]*** FLAG_PRN_PAP2 reset [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: 01 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: 01 07 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: 01 07 00 75 2F 00 01 00 00 00 FF 0F BA [19:38:25]state=3 [19:38:25]No paper [19:38:25]Cover closed [19:38:25]int [19:38:25]Write to MH i2c: 01 00 00 76 2F A5 [19:38:25]*** FLAG_PRN_PAP1 reset [19:38:25]Write i2c OK [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: 01 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: 01 07 00 [19:38:25]MH_I2C_Read... [19:38:25]Read from MH i2c: 01 07 00 76 2F 00 00 00 00 00 FF 0F BA [19:38:25]state=0 [19:38:26]OFD Sender: No OFD packet to send [19:38:30]accept exits with 7 [19:38:30]New connection [19:38:30]New thread 3066965348 created [19:38:30]Thread 3066821988 joined [19:38:30]Waiting for new connection... [19:38:30] Sock 7.Parse request [19:38:30]Sock 7.Check first char [19:38:30]Sock 7.First char is OK [19:38:30]request: POST /json_proto HTTP/1.0 [19:38:30]Method: POST [19:38:30]URL: /json_proto [19:38:30]Method is POST - this is cgi request [19:38:30]url: /json_proto [19:38:30]query_string will be loaded in cgi processing [19:38:30]execute_cgi json_proto POST (null) [19:38:30]execute_cgi path=json_proto method=POST [19:38:30]POST find Content-Length [19:38:30]Host: 172.17.39.68:8080 [19:38:30]Content-Length: 215 [19:38:30]Content-Type: application/json [19:38:30] [19:38:30]POST finish read [19:38:30]Found Content-Length = 215 [19:38:30]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" ] } } [19:38:30]execute_script... [19:38:30]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" ] } } [19:38:30]POST & json_proto [19:38:30]process_json_proto [19:38:30]json parsed OK: [19:38:30]protocol is kg_v1.0 [19:38:30]action value=get_value [19:38:30]process_action get_value [19:38:30]cmd_get_value [19:38:30]process_action get_value done [19:38:30]requested_data is exist [19:38:30]produce_requested_data [19:38:30]requested_item kkm.sn is exist - process it [19:38:30]requested_item kkm.ver is exist - process it [19:38:30]requested_item fm.sn is exist - process it [19:38:30]wFMCommunicate request_size=4 [19:38:30]MH_SAM_APDU [19:38:30]CAPDU: 80 11 00 00 [19:38:30]Write to MH i2c: E2 08 00 77 2F 80 11 00 00 00 00 00 00 20 [19:38:30]Write i2c OK [19:38:30]MH_I2C_Read... [19:38:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:30]Read from MH i2c: E2 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: E2 17 00 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: E2 17 00 77 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7B [19:38:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [19:38:30]wFMCommunicate OK [19:38:30]requested_item fd.num is exist - process it [19:38:30]SAM_PROTO_GetFieldsCounters [19:38:30]wFMCommunicate request_size=4 [19:38:30]MH_SAM_APDU [19:38:30]CAPDU: 80 13 00 00 [19:38:30]Write to MH i2c: E2 08 00 78 2F 80 13 00 00 00 00 00 00 23 [19:38:30]Write i2c OK [19:38:30]MH_I2C_Read... [19:38:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:30]Read from MH i2c: E2 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: E2 62 00 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: E2 62 00 78 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 E0 [19:38: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:30]wFMCommunicate OK [19:38:30]SAM_PROTO_GetFieldsCounters done [19:38:30]requested_item shift.num is exist - process it [19:38:30]requested_item shift.opened is exist - process it [19:38:30]req_shift_opened [19:38:30]FM_GetShiftState [19:38:30]SAM_PROTO_GetShiftState [19:38:30]wFMCommunicate request_size=4 [19:38:30]MH_SAM_APDU [19:38:30]CAPDU: 80 13 01 00 [19:38:30]Write to MH i2c: E2 08 00 79 2F 80 13 01 00 00 00 00 00 25 [19:38:30]Write i2c OK [19:38:30]MH_I2C_Read... [19:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:30]Read from MH i2c: E2 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: E2 0E 00 [19:38:30]MH_I2C_Read... [19:38:30]Read from MH i2c: E2 0E 00 79 2F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 74 [19:38:30]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [19:38:30]wFMCommunicate OK [19:38:30]SAM_PROTO_GetShiftState done [19:38:30]FM_GetShiftState done [19:38:30]req_shift_opened done [19:38:30]requested_item shift.open_date is exist - process it [19:38:30]req_shift_open_date [19:38:30]req_shift_open_date done [19:38:30]produce_requested_data done [19:38:30]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31802,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [19:38:30]process_action_free get_value [19:38:30]json_value_free [19:38:30]json_value_free done [19:38:30]process_json_proto returns [19:38:30]Send response to host [19:38:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31802,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [19:38:30]free response buf [19:38:30]execute_script done [19:38:30]execute_script returns [19:38:30]free content buf [19:38:30]Sock 7.Close socket [19:38:30]Sock 7.Thread stoped [19:38:30]accept exits with 9 [19:38:30]New connection [19:38:30]New thread 3066821988 created [19:38:30]Thread 3066965348 joined [19:38:30]Waiting for new connection... [19:38:30] Sock 9.Parse request [19:38:30]Sock 9.Check first char [19:38:30]Sock 9.First char is OK [19:38:30]request: POST /json_proto HTTP/1.0 [19:38:30]Method: POST [19:38:30]URL: /json_proto [19:38:30]Method is POST - this is cgi request [19:38:30]url: /json_proto [19:38:30]query_string will be loaded in cgi processing [19:38:30]execute_cgi json_proto POST (null) [19:38:30]execute_cgi path=json_proto method=POST [19:38:30]POST find Content-Length [19:38:30]Host: 172.17.39.68:8080 [19:38:30]Content-Length: 331 [19:38:30]Content-Type: application/json [19:38:30] [19:38:30]POST finish read [19:38:30]Found Content-Length = 331 [19:38:30]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" ] } } [19:38:30]execute_script... [19:38:30]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" ] } } [19:38:30]POST & json_proto [19:38:30]process_json_proto [19:38:30]json parsed OK: [19:38:30]protocol is kg_v1.0 [19:38:30]action value=get_value [19:38:30]process_action get_value [19:38:30]cmd_get_value [19:38:30]process_action get_value done [19:38:30]requested_data is exist [19:38:30]produce_requested_data [19:38:30]requested_item fm.sale.total is exist - process it [19:38:30]SAM_PROTO_GetFMData [19:38:30]wFMCommunicate request_size=4 [19:38:30]MH_SAM_APDU [19:38:30]CAPDU: 80 13 03 00 [19:38:30]Write to MH i2c: E2 08 00 7A 2F 80 13 03 00 00 00 00 00 28 [19:38:30]Write i2c OK [19:38:30]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 FD 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 FD 00 7A 2F 00 B7 04 85 04 B3 04 6E 04 04 00 53 79 00 00 69 04 A0 00 6F 04 04 00 51 79 00 00 B1 04 04 00 C8 8F 31 25 70 04 04 00 04 0B 4C 22 72 04 04 00 C4 84 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5D 14 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 76 33 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 ED [19:38:31]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 53 79 00 00 69 04 A0 00 6F 04 04 00 51 79 00 00 B1 04 04 00 C8 8F 31 25 70 04 04 00 04 0B 4C 22 72 04 04 00 C4 84 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 5D 14 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 76 33 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [19:38:31]wFMCommunicate OK [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 17 00 00 [19:38:31]Write to MH i2c: E2 08 00 7B 2F 80 17 00 00 00 00 00 00 2A [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 FD 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 FD 00 7B 2F 00 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 5B [19:38:31]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 [19:38:31]wFMCommunicate OK [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 17 00 00 [19:38:31]Write to MH i2c: E2 08 00 7C 2F 80 17 00 00 00 00 00 00 2B [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 FD 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 FD 00 7C 2F 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D0 [19:38:31]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:38:31]wFMCommunicate OK [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 17 00 00 [19:38:31]Write to MH i2c: E2 08 00 7D 2F 80 17 00 00 00 00 00 00 2C [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]OFD Sender: No OFD packet to send [19:38:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 FD 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 FD 00 7D 2F 00 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 90 00 A1 [19:38:31]RAPDU: 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 90 00 [19:38:31]wFMCommunicate OK [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 17 00 00 [19:38:31]Write to MH i2c: E2 08 00 7E 2F 80 17 00 00 00 00 00 00 2D [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [19:38:32]Read from MH i2c: E2 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 D4 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 D4 00 7E 2F 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 1E [19:38:32]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:38:32]wFMCommunicate OK [19:38:32]SAM_PROTO_GetFMData done [19:38:32]requested_item fm.sale_refund.total is exist - process it [19:38:32]requested_item fm.buy.total is exist - process it [19:38:32]requested_item shift.sale.total is exist - process it [19:38:32]SAM_PROTO_GetShiftData [19:38:32]wFMCommunicate request_size=4 [19:38:32]MH_SAM_APDU [19:38:32]CAPDU: 80 13 02 00 [19:38:32]Write to MH i2c: E2 08 00 7F 2F 80 13 02 00 00 00 00 00 2C [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 [19:38:32]MH_I2C_Read... [19:38:32]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:38:32]Read from MH i2c: E2 FD 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 FD 00 7F 2F 00 AE 04 AA 04 AA 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 90 8E 27 70 04 03 00 C4 25 25 72 04 03 00 CC 68 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 33 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 95 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 E1 [19:38:32]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 90 8E 27 70 04 03 00 C4 25 25 72 04 03 00 CC 68 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 54 33 04 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 95 59 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:38:32]wFMCommunicate OK [19:38:32]wFMCommunicate request_size=4 [19:38:32]MH_SAM_APDU [19:38:32]CAPDU: 80 17 00 00 [19:38:32]Write to MH i2c: E2 08 00 80 2F 80 17 00 00 00 00 00 00 2F [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:38:32]Read from MH i2c: E2 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 FD 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: E2 FD 00 80 2F 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 51 [19:38:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:38:32]wFMCommunicate OK [19:38:32]wFMCommunicate request_size=4 [19:38:32]MH_SAM_APDU [19:38:32]CAPDU: 80 17 00 00 [19:38:32]Write to MH i2c: E2 08 00 81 2F 80 17 00 00 00 00 00 00 30 [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:38:33]Read from MH i2c: E2 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 FD 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 FD 00 81 2F 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E7 [19:38:33]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [19:38:33]wFMCommunicate OK [19:38:33]wFMCommunicate request_size=4 [19:38:33]MH_SAM_APDU [19:38:33]CAPDU: 80 17 00 00 [19:38:33]Write to MH i2c: E2 08 00 82 2F 80 17 00 00 00 00 00 00 31 [19:38:33]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:38:33]Read from MH i2c: E2 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 FD 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 FD 00 82 2F 00 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 90 00 A3 [19:38:33]RAPDU: 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 90 00 [19:38:33]wFMCommunicate OK [19:38:33]wFMCommunicate request_size=4 [19:38:33]MH_SAM_APDU [19:38:33]CAPDU: 80 17 00 00 [19:38:33]Write to MH i2c: E2 08 00 83 2F 80 17 00 00 00 00 00 00 32 [19:38:33]Write i2c OK [19:38:33]MH_I2C_Read... [19:38:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:38:33]Read from MH i2c: E2 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 CB 00 [19:38:33]MH_I2C_Read... [19:38:33]Read from MH i2c: E2 CB 00 83 2F 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1B [19:38:33]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:38:33]wFMCommunicate OK [19:38:33]SAM_PROTO_GetShiftData done [19:38:33]requested_item shift.sale.total_cash is exist - process it [19:38:33]requested_item shift.sale_refund.total is exist - process it [19:38:33]requested_item shift.sale_refund.total_cash is exist - process it [19:38:33]requested_item shift.buy.total is exist - process it [19:38:33]requested_item shift.buy.total_cash is exist - process it [19:38:33]produce_requested_data done [19:38:33]produce_requested_data return {"fm.sale.total":6240050.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":25924.00,"shift.sale.total_cash":24345.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} [19:38:33]process_action_free get_value [19:38:33]json_value_free [19:38:33]json_value_free done [19:38:33]process_json_proto returns [19:38:33]Send response to host [19:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6240050.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":25924.00,"shift.sale.total_cash":24345.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}}} [19:38:33]free response buf [19:38:33]execute_script done [19:38:33]execute_script returns [19:38:33]free content buf [19:38:33]Sock 9.Close socket [19:38:33]Sock 9.Thread stoped [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42: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:17]OFD Sender: No OFD packet to send [20:01:22]OFD Sender: No OFD packet to send [20:01:27]OFD Sender: No OFD packet to send [20:01:32]OFD Sender: No OFD packet to send [20:01:37]OFD Sender: No OFD packet to send [20:01:42]OFD Sender: No OFD packet to send [20:01:47]OFD Sender: No OFD packet to send [20:01:52]OFD Sender: No OFD packet to send [20:01:57]OFD Sender: No OFD packet to send [20:02:02]OFD Sender: No OFD packet to send [20:02:07]OFD Sender: No OFD packet to send [20:02:12]OFD Sender: No OFD packet to send [20:02:17]OFD Sender: No OFD packet to send [20:02:22]OFD Sender: No OFD packet to send [20:02:27]OFD Sender: No OFD packet to send [20:02:32]OFD Sender: No OFD packet to send [20:02:37]OFD Sender: No OFD packet to send [20:02:42]OFD Sender: No OFD packet to send [20:02:47]OFD Sender: No OFD packet to send [20:02:52]OFD Sender: No OFD packet to send [20:02:57]OFD Sender: No OFD packet to send [20:03:02]OFD Sender: No OFD packet to send [20:03:07]OFD Sender: No OFD packet to send [20:03:12]OFD Sender: No OFD packet to send [20:03:17]OFD Sender: No OFD packet to send [20:03:22]OFD Sender: No OFD packet to send [20:03:27]OFD Sender: No OFD packet to send [20:03:32]OFD Sender: No OFD packet to send [20:03:37]OFD Sender: No OFD packet to send [20:03:42]OFD Sender: No OFD packet to send [20:03:47]OFD Sender: No OFD packet to send [20:03:52]OFD Sender: No OFD packet to send [20:03:57]OFD Sender: No OFD packet to send [20:04:02]OFD Sender: No OFD packet to send [20:04:07]OFD Sender: No OFD packet to send [20:04:12]OFD Sender: No OFD packet to send [20:04:17]OFD Sender: No OFD packet to send [20:04: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:43]accept exits with 7 [20:07:43]New connection [20:07:43]New thread 3066965348 created [20:07:43]Thread 3066821988 joined [20:07:43]Waiting for new connection... [20:07:43] Sock 7.Parse request [20:07:43]Sock 7.Check first char [20:07:43]Sock 7.First char is OK [20:07:43]request: POST /json_proto HTTP/1.0 [20:07:43]Method: POST [20:07:43]URL: /json_proto [20:07:43]Method is POST - this is cgi request [20:07:43]url: /json_proto [20:07:43]query_string will be loaded in cgi processing [20:07:43]execute_cgi json_proto POST (null) [20:07:43]execute_cgi path=json_proto method=POST [20:07:43]POST find Content-Length [20:07:43]Host: 172.17.39.68:8080 [20:07:43]Content-Length: 905 [20:07:43]Content-Type: application/json [20:07:43] [20:07:43]POST finish read [20:07:43]Found Content-Length = 905 [20:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214384", "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": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.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" ] } } [20:07:43]execute_script... [20:07: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)214384", "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": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.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" ] } } [20:07:43]POST & json_proto [20:07:43]process_json_proto [20:07:43]json parsed OK: [20:07:43]protocol is kg_v1.0 [20:07:43]action value=close_receipt [20:07:43]process_action close_receipt [20:07:43]cmd_close_receipt [20:07:43]MH_GetDate [20:07:43]Write to MH i2c: F0 00 00 84 2F A2 [20:07:43]Write i2c OK [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: F0 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: F0 09 00 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: F0 09 00 84 2F 00 16 D3 96 66 D6 48 95 66 A9 [20:07:43]GetLastDocTimeStamp 1721158679 [20:07:43]current date 1721160470 [20:07:43]FM_GetShiftState [20:07:43]SAM_PROTO_GetShiftState [20:07:43]wFMCommunicate request_size=4 [20:07:43]MH_SAM_APDU [20:07:43]CAPDU: 80 13 01 00 [20:07:43]Write to MH i2c: E2 08 00 85 2F 80 13 01 00 00 00 00 00 31 [20:07:43]Write i2c OK [20:07:43]MH_I2C_Read... [20:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:43]Read from MH i2c: E2 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: E2 0E 00 [20:07:43]MH_I2C_Read... [20:07:43]Read from MH i2c: E2 0E 00 85 2F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 80 [20:07:43]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:07:43]wFMCommunicate OK [20:07:43]SAM_PROTO_GetShiftState done [20:07:43]FM_GetShiftState done [20:07:43]opened in 1721088399 [20:07:43]opened+sec_in_day 1721174799 [20:07:43]quantity*price = 11100 [20:07:43]sum+1 = 11101 [20:07:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 1.000 * 7.00 = 7.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 118.00 НСП 1% : 1.04 НДС 12% : 12.53 Наличными: 118.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 122 16.07.2024 20:07 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31803 ФПД: 252641881218345 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T200750&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31803&fm=252641881218345&tin=02508201610067®Number=0000000000098025&sum=11800 0 [20:07:45]StoreToDocumentArchive [20:07:45]shift 371 fd 31803 [20:07:45]save to /storage/0371/doc_00031803 [20:07:45]save last doc name /storage/0371/doc_00031803 to /storage/kkm_last_doc_name [20:07:45]save OK [20:07:45]Clear old archive folders... [20:07:45]ProcessDocumentItem done err = 0, tmpTLVsize=383 [20:07:45]tlvbuf is B6DAB6F0 [20:07:45]SAM_PROTO_ClearQueue [20:07:45]wFMCommunicate request_size=4 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 09 00 00 [20:07:45]Write to MH i2c: E2 08 00 92 2F 80 09 00 00 00 00 00 00 33 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:07:45]Read from MH i2c: E2 03 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 92 2F 00 90 00 35 [20:07:45]RAPDU: 90 00 [20:07:45]wFMCommunicate OK [20:07:45]SAM_PROTO_ClearQueue done [20:07:45]KKMCreateOFDPacket [20:07:45]OFDProtocolAddRootSTLVToBuf [20:07:45]FM_MakeSignedData [20:07:45]FM_MakeSignedData [20:07:45]SAM_PROTO_SignData [20:07:45]wFMCommunicate request_size=4 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 0D 01 02 [20:07:45]Write to MH i2c: E2 08 00 93 2F 80 0D 01 02 00 00 00 00 3B [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:07:45]Read from MH i2c: E2 03 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 93 2F 00 90 00 36 [20:07:45]RAPDU: 90 00 [20:07:45]wFMCommunicate OK [20:07:45]wFMCommunicate request_size=255 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 0D 02 02 FA 03 00 7F 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 [20:07:45]Write to MH i2c: E2 02 01 94 2F 80 0D 02 02 FA 00 03 00 7F 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 22 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 94 2F 00 90 00 37 [20:07:45]RAPDU: 90 00 [20:07:45]wFMCommunicate OK [20:07:45]wFMCommunicate request_size=142 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 0D 02 02 89 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 7A 00 00 00 F4 03 04 00 16 D3 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3B 7C 00 00 35 04 06 00 E5 C6 C5 95 DD 29 [20:07:45]Write to MH i2c: E2 91 00 95 2F 80 0D 02 02 89 00 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 7A 00 00 00 F4 03 04 00 16 D3 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3B 7C 00 00 35 04 06 00 E5 C6 C5 95 DD 29 00 00 48 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 03 00 95 2F 00 90 00 38 [20:07:45]RAPDU: 90 00 [20:07:45]wFMCommunicate OK [20:07:45]wFMCommunicate request_size=4 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 0D 03 02 [20:07:45]Write to MH i2c: E2 08 00 96 2F 80 0D 03 02 00 00 00 00 40 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 0B 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 0B 00 96 2F 00 1D 04 FC E1 FE 0D 9E 20 90 00 08 [20:07:45]RAPDU: 1D 04 FC E1 FE 0D 9E 20 90 00 [20:07:45]wFMCommunicate OK [20:07:45]SAM_PROTO_SignData done [20:07:45]FM_MakeSignedData done [20:07:45]CreateOFDProtocolMessage [20:07:45]wFMCommunicate request_size=4 [20:07:45]MH_SAM_APDU [20:07:45]CAPDU: 80 11 00 00 [20:07:45]Write to MH i2c: E2 08 00 97 2F 80 11 00 00 00 00 00 00 40 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:45]Read from MH i2c: E2 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 17 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: E2 17 00 97 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9B [20:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:07:45]wFMCommunicate OK [20:07:45]CreateOFDProtocolMessage done [20:07:45]OFDSenderStorePacket 31803 [20:07:45]StoreOFDPacket docnum=31803 [20:07:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 93 01 00 00 91 CC 8B 01 40 35 5A 03 01 00 03 00 7F 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 7A 00 00 00 F4 03 04 00 16 D3 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3B 7C 00 00 35 04 06 00 E5 C6 C5 95 DD 29 1D 04 FC E1 FE 0D 9E 20 [20:07:45]CheckFolder [20:07:45]dirname=/storage/ofd_packets [20:07:45]CheckFolder done [20:07:45]ProducePacketName [20:07:45]name=ofd_packets/00031803 [20:07:45]NVStorageSaveData ofd_packets/00031803 [20:07:45]File name is /storage/ofd_packets/00031803 [20:07:45]Write 433 bytes [20:07:45]NVStorageSaveData done [20:07:45]OFDSenderStorePacket done [20:07:45]KKMCreateOFDPacket done [20:07:45]NVStorageSaveData kkm_last_timestamp [20:07:45]File name is /storage/kkm_last_timestamp [20:07:45]Write 4 bytes [20:07:45]NVStorageSaveData done [20:07:45]ExternCall_PrintAddStr [20:07:45]wPrintStart [20:07:45]Write to MH i2c: 01 00 00 98 2F C7 [20:07:45]Write i2c OK [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: 01 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: 01 07 00 [20:07:45]MH_I2C_Read... [20:07:45]Read from MH i2c: 01 07 00 98 2F 00 00 00 00 00 FF 0F DC [20:07:45]RasterBufferAndPrint [20:07:45]line Счет N : (3)214384 [20:07:45]line ИНН: 02508201610067 [20:07:45]line Контрольно-Кассовый Чек [20:07:45]line ПРОДАЖА [20:07:45]line Товар: 4870001570071 [20:07:45]line Напиток Pepsi 1л [20:07:45]line 1.000 * 111.00 [20:07:45]line = 111.00 [20:07:45]line НДС 12% НСП 1% [20:07:45]line > о реализуемом товаре [20:07:46]line Товар: 2000053020015 [20:07:46]line Бумажные стаканы 250мл 1шт [20:07:46]line 1.000 * 7.00 [20:07:46]line = 7.00 [20:07:46]line НДС 12% НСП 1% [20:07:46]line > о реализуемом товаре [20:07:46]line ИТОГО: 118.00 [20:07:46]line НСП 1% : 1.04 [20:07:46]line НДС 12% : 12.53 [20:07:46]line Наличными: 118.00 [20:07:46]line Безнал.: 0.00 [20:07:46]line Место: АЗС № 140 "Партнер Нефть" [20:07:46]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:07:46]line СНО: Общий режим [20:07:46]line Чек 122 16.07.2024 20:07 [20:07:46]line Смена: 371 ФФД: 1.0 [20:07:46]line ЗНМ: 0300000189 [20:07:46]line РНМ: 0000000000098025 [20:07:46]line Версия ККМ: 001 [20:07:46]line ФМ: 0000000000965389 [20:07:46]line ФД: 31803 [20:07:46]line ФПД: 252641881218345 [20:07:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T200750&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31803&fm=252641881218345&tin=02508201610067®Number=0000000000098025&sum=11800 [20:07:46]line 0 [20:07:46]OFD Sender: Processing packet 31803 [packets to send 6, broken 5] [20:07:46]ProducePacketName [20:07:46]name=ofd_packets/00031803 [20:07:46]OFD Sender: To server: pG, [20:07:46]CommunicateWithHost lk.salyk.kg:30040 [20:07:46]ConnectInit lk.salyk.kg [20:07:46]written 0, free lines is 4095 [20:07:46]Connected sock=10 [20:07:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 93 01 00 00 91 CC 8B 01 40 35 5A 03 01 00 03 00 7F 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 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 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 7A 00 00 00 F4 03 04 00 16 D3 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3B 7C 00 00 35 04 06 00 E5 C6 C5 95 DD 29 1D 04 FC E1 FE 0D 9E 20 [20:07:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 AE 9F 47 00 B7 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3B 7C 00 00 F4 03 04 00 22 7F 96 66 B6 04 01 00 00 1D 2C 02 E2 09 8F 7D CF [20:07:46]CommunicateWithHost err = 0 [20:07:46]CheckOFDResponse [20:07:46]1017 (14) - 77093643461234 [20:07:46]1041 (16) - 0000000000965389 [20:07:46]1040 (4) - 31803 [20:07:46]1012 (4) - 16.07.2024 14:09 [20:07:46]1206 (1) - 0 [20:07:46]OFD Sender: Remove packet 31803 [20:07:46]ProducePacketName [20:07:46]name=ofd_packets/00031803 [20:07:46]NVStorageDeleteData [20:07:46]Write to MH i2c: 01 00 00 C7 2F F6 [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: 01 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: 01 07 00 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: 01 07 00 C7 2F 00 00 00 00 00 92 0C 9B [20:07:46]RasterBufferAndPrint [20:07:46]line [20:07:46]line [20:07:46]line [20:07:46]line [20:07:46]line [20:07:46]written 0, free lines is 3225 [20:07:46]MH_Cut [20:07:46]Write to MH i2c: D1 01 00 CE 2F 01 CF [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: D1 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: D1 01 00 [20:07:46]MH_I2C_Read... [20:07:46]Read from MH i2c: D1 01 00 CE 2F 00 CE [20:07:46]Write to MH i2c: 01 00 00 CF 2F FE [20:07:46]Write i2c OK [20:07:46]MH_I2C_Read... [20:07:46]OFD Sender: No OFD packet to send [20:07:47]*** Cut start [20:07:47]*** Partial cut [20:07:47]*** CUTSNS_PIN = 1 [20:07:47]*** CUTSNS_PIN = 0 [20:07:47]*** Brake cut motor [20:07:48]Read from MH i2c: 01 [20:07:48]MH_I2C_Read... [20:07:48]*** Stop cut motor [20:07:48]*** Cut end [20:07:48]Read from MH i2c: 01 07 00 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: 01 07 00 CF 2F 00 00 00 00 00 FF 0F 13 [20:07:48]process_action close_receipt done [20:07:48]requested_data is exist [20:07:48]produce_requested_data [20:07:48]requested_item fm.sn is exist - process it [20:07:48]wFMCommunicate request_size=4 [20:07:48]MH_SAM_APDU [20:07:48]CAPDU: 80 11 00 00 [20:07:48]Write to MH i2c: E2 08 00 D0 2F 80 11 00 00 00 00 00 00 79 [20:07:48]Write i2c OK [20:07:48]MH_I2C_Read... [20:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:07:48]Read from MH i2c: E2 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 17 00 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 17 00 D0 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D4 [20:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:07:48]wFMCommunicate OK [20:07:48]requested_item fd.num is exist - process it [20:07:48]SAM_PROTO_GetFieldsCounters [20:07:48]wFMCommunicate request_size=4 [20:07:48]MH_SAM_APDU [20:07:48]CAPDU: 80 13 00 00 [20:07:48]Write to MH i2c: E2 08 00 D1 2F 80 13 00 00 00 00 00 00 7C [20:07:48]Write i2c OK [20:07:48]MH_I2C_Read... [20:07:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:07:48]Read from MH i2c: E2 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 62 00 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 62 00 D1 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3B 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [20:07: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3B 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:07:48]wFMCommunicate OK [20:07:48]SAM_PROTO_GetFieldsCounters done [20:07:48]requested_item shift.num is exist - process it [20:07:48]requested_item shift.opened is exist - process it [20:07:48]req_shift_opened [20:07:48]FM_GetShiftState [20:07:48]SAM_PROTO_GetShiftState [20:07:48]wFMCommunicate request_size=4 [20:07:48]MH_SAM_APDU [20:07:48]CAPDU: 80 13 01 00 [20:07:48]Write to MH i2c: E2 08 00 D2 2F 80 13 01 00 00 00 00 00 7E [20:07:48]Write i2c OK [20:07:48]MH_I2C_Read... [20:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:07:48]Read from MH i2c: E2 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 0E 00 [20:07:48]MH_I2C_Read... [20:07:48]Read from MH i2c: E2 0E 00 D2 2F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 CD [20:07:48]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:07:48]wFMCommunicate OK [20:07:48]SAM_PROTO_GetShiftState done [20:07:48]FM_GetShiftState done [20:07:48]req_shift_opened done [20:07:48]requested_item shift.open_date is exist - process it [20:07:48]req_shift_open_date [20:07:48]req_shift_open_date done [20:07:48]produce_requested_data done [20:07:48]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31803,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [20:07:48]process_action_free close_receipt [20:07:48]json_value_free [20:07:48]json_value_free done [20:07:48]process_json_proto returns [20:07:48]Send response to host [20:07:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31803,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [20:07:48]free response buf [20:07:48]execute_script done [20:07:48]execute_script returns [20:07:48]free content buf [20:07:48]Sock 7.Close socket [20:07:48]Sock 7.Thread stoped [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08:31]OFD Sender: No OFD packet to send [20:08:36]OFD Sender: No OFD packet to send [20:08:41]OFD Sender: No OFD packet to send [20:08:46]OFD Sender: No OFD packet to send [20:08:51]OFD Sender: No OFD packet to send [20:08:56]OFD Sender: No OFD packet to send [20:09:01]OFD Sender: No OFD packet to send [20:09:06]OFD Sender: No OFD packet to send [20:09:11]OFD Sender: No OFD packet to send [20:09:16]OFD Sender: No OFD packet to send [20:09:21]OFD Sender: No OFD packet to send [20:09:26]OFD Sender: No OFD packet to send [20:09:31]OFD Sender: No OFD packet to send [20:09:36]OFD Sender: No OFD packet to send [20:09:41]OFD Sender: No OFD packet to send [20:09:46]OFD Sender: No OFD packet to send [20:09:51]OFD Sender: No OFD packet to send [20:09:56]OFD Sender: No OFD packet to send [20:10:02]OFD Sender: No OFD packet to send [20:10:07]OFD Sender: No OFD packet to send [20:10:12]OFD Sender: No OFD packet to send [20:10:17]OFD Sender: No OFD packet to send [20:10:22]OFD Sender: No OFD packet to send [20:10:27]OFD Sender: No OFD packet to send [20:10:32]OFD Sender: No OFD packet to send [20:10:37]OFD Sender: No OFD packet to send [20:10:42]OFD Sender: No OFD packet to send [20:10:47]OFD Sender: No OFD packet to send [20:10:52]OFD Sender: No OFD packet to send [20:10:57]OFD Sender: No OFD packet to send [20:11:02]OFD Sender: No OFD packet to send [20:11:07]OFD Sender: No OFD packet to send [20:11:12]OFD Sender: No OFD packet to send [20:11:17]OFD Sender: No OFD packet to send [20:11:22]OFD Sender: No OFD packet to send [20:11:27]OFD Sender: No OFD packet to send [20:11:32]OFD Sender: No OFD packet to send [20:11:37]OFD Sender: No OFD packet to send [20:11:42]OFD Sender: No OFD packet to send [20:11:47]OFD Sender: No OFD packet to send [20:11:52]OFD Sender: No OFD packet to send [20:11:57]OFD Sender: No OFD packet to send [20:12:02]OFD Sender: No OFD packet to send [20:12:07]OFD Sender: No OFD packet to send [20:12:12]OFD Sender: No OFD packet to send [20:12:17]OFD Sender: No OFD packet to send [20:12:22]OFD Sender: No OFD packet to send [20:12:27]OFD Sender: No OFD packet to send [20:12:32]OFD Sender: No OFD packet to send [20:12:37]OFD Sender: No OFD packet to send [20:12:42]OFD Sender: No OFD packet to send [20:12:47]OFD Sender: No OFD packet to send [20:12:52]OFD Sender: No OFD packet to send [20:12:57]OFD Sender: No OFD packet to send [20:13:02]OFD Sender: No OFD packet to send [20:13:07]OFD Sender: No OFD packet to send [20:13:12]OFD Sender: No OFD packet to send [20:13:17]OFD Sender: No OFD packet to send [20:13:22]OFD Sender: No OFD packet to send [20:13:27]OFD Sender: No OFD packet to send [20:13:32]OFD Sender: No OFD packet to send [20:13:37]OFD Sender: No OFD packet to send [20:13:42]OFD Sender: No OFD packet to send [20:13:47]OFD Sender: No OFD packet to send [20:13:52]OFD Sender: No OFD packet to send [20:13:57]OFD Sender: No OFD packet to send [20:14:02]OFD Sender: No OFD packet to send [20:14:07]OFD Sender: No OFD packet to send [20:14:12]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:37]OFD Sender: No OFD packet to send [20:14:42]OFD Sender: No OFD packet to send [20:14:47]OFD Sender: No OFD packet to send [20:14:52]OFD Sender: No OFD packet to send [20:14:57]OFD Sender: No OFD packet to send [20:15:02]OFD Sender: No OFD packet to send [20:15:07]OFD Sender: No OFD packet to send [20:15:12]OFD Sender: No OFD packet to send [20:15:17]OFD Sender: No OFD packet to send [20:15:22]OFD Sender: No OFD packet to send [20:15:27]OFD Sender: No OFD packet to send [20:15:32]OFD Sender: No OFD packet to send [20:15:37]OFD Sender: No OFD packet to send [20:15:42]OFD Sender: No OFD packet to send [20:15:47]OFD Sender: No OFD packet to send [20:15:52]OFD Sender: No OFD packet to send [20:15:57]OFD Sender: No OFD packet to send [20:16:02]OFD Sender: No OFD packet to send [20:16:07]OFD Sender: No OFD packet to send [20:16:12]OFD Sender: No OFD packet to send [20:16:15]accept exits with 9 [20:16:15]New connection [20:16:15]New thread 3066821988 created [20:16:15]Thread 3066965348 joined [20:16:15]Waiting for new connection... [20:16:15] Sock 9.Parse request [20:16:15]Sock 9.Check first char [20:16:15]Sock 9.First char is OK [20:16:15]request: POST /json_proto HTTP/1.0 [20:16:15]Method: POST [20:16:15]URL: /json_proto [20:16:15]Method is POST - this is cgi request [20:16:15]url: /json_proto [20:16:15]query_string will be loaded in cgi processing [20:16:15]execute_cgi json_proto POST (null) [20:16:15]execute_cgi path=json_proto method=POST [20:16:15]POST find Content-Length [20:16:15]Host: 172.17.39.68:8080 [20:16:15]Content-Length: 1470 [20:16:15]Content-Type: application/json [20:16:15] [20:16:15]POST finish read [20:16:15]Found Content-Length = 1470 [20:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214385", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4610080727818", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Pamperino kids 8\u0448\u0442", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 213.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:15]execute_script... [20:16: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)214385", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4610080727818", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 Pamperino kids 8\u0448\u0442", "price" : 25.00, "quantity" : 1.000, "sum" : 25.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607015232592", "name": "\u0412\u0430\u0444\u043B\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0441 \u0432\u0430\u0440\u0435\u043D\u043E\u0439 \u0441\u0433\u0443\u0449\u0435\u043D\u043A\u043E\u0439 200\u0433", "price" : 81.00, "quantity" : 1.000, "sum" : 81.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 213.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:16:15]POST & json_proto [20:16:15]process_json_proto [20:16:15]json parsed OK: [20:16:15]protocol is kg_v1.0 [20:16:15]action value=close_receipt [20:16:15]process_action close_receipt [20:16:15]cmd_close_receipt [20:16:15]MH_GetDate [20:16:15]Write to MH i2c: F0 00 00 D3 2F F1 [20:16:15]Write i2c OK [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: F0 [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: F0 09 00 [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: F0 09 00 D3 2F 00 15 D5 96 66 D6 48 95 66 F9 [20:16:15]GetLastDocTimeStamp 1721160470 [20:16:15]current date 1721160981 [20:16:15]FM_GetShiftState [20:16:15]SAM_PROTO_GetShiftState [20:16:15]wFMCommunicate request_size=4 [20:16:15]MH_SAM_APDU [20:16:15]CAPDU: 80 13 01 00 [20:16:15]Write to MH i2c: E2 08 00 D4 2F 80 13 01 00 00 00 00 00 80 [20:16:15]Write i2c OK [20:16:15]MH_I2C_Read... [20:16:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:15]Read from MH i2c: E2 [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: E2 0E 00 [20:16:15]MH_I2C_Read... [20:16:15]Read from MH i2c: E2 0E 00 D4 2F 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 CF [20:16:15]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:16:15]wFMCommunicate OK [20:16:15]SAM_PROTO_GetShiftState done [20:16:15]FM_GetShiftState done [20:16:15]opened in 1721088399 [20:16:15]opened+sec_in_day 1721174799 [20:16:15]quantity*price = 10700 [20:16:15]sum+1 = 10701 [20:16:15]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4610080727818 Салфетки Pamperino kids 8шт 1.000 * 25.00 = 25.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015232592 Вафли Яшкино с вареной сгущенкой 200г 1.000 * 81.00 = 81.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 213.00 НСП 1% : 1.89 НДС 12% : 22.61 Наличными: 0.00 Безнал.: 213.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 123 16.07.2024 20:16 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965389 ФД: 31804 ФПД: 30754889463160 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T201621&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31804&fm=30754889463160&tin=02508201610067®Number=0000000000098025&sum=21300 0 [20:16:16]StoreToDocumentArchive [20:16:16]shift 371 fd 31804 [20:16:16]save to /storage/0371/doc_00031804 [20:16:16]save last doc name /storage/0371/doc_00031804 to /storage/kkm_last_doc_name [20:16:16]save OK [20:16:16]Clear old archive folders... [20:16:16]ProcessDocumentItem done err = 0, tmpTLVsize=545 [20:16:16]tlvbuf is 0147C610 [20:16:16]SAM_PROTO_ClearQueue [20:16:16]wFMCommunicate request_size=4 [20:16:16]MH_SAM_APDU [20:16:16]CAPDU: 80 09 00 00 [20:16:16]Write to MH i2c: E2 08 00 E1 2F 80 09 00 00 00 00 00 00 82 [20:16:16]Write i2c OK [20:16:16]MH_I2C_Read... [20:16:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:16:16]Read from MH i2c: E2 [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: E2 03 00 [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: E2 03 00 E1 2F 00 90 00 84 [20:16:16]RAPDU: 90 00 [20:16:16]wFMCommunicate OK [20:16:16]SAM_PROTO_ClearQueue done [20:16:16]KKMCreateOFDPacket [20:16:16]OFDProtocolAddRootSTLVToBuf [20:16:16]FM_MakeSignedData [20:16:16]FM_MakeSignedData [20:16:16]SAM_PROTO_SignData [20:16:16]wFMCommunicate request_size=4 [20:16:16]MH_SAM_APDU [20:16:16]CAPDU: 80 0D 01 02 [20:16:16]Write to MH i2c: E2 08 00 E2 2F 80 0D 01 02 00 00 00 00 8A [20:16:16]Write i2c OK [20:16:16]MH_I2C_Read... [20:16:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:16:16]Read from MH i2c: E2 [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: E2 03 00 [20:16:16]MH_I2C_Read... [20:16:16]Read from MH i2c: E2 03 00 E2 2F 00 90 00 85 [20:16:16]RAPDU: 90 00 [20:16:16]wFMCommunicate OK [20:16:16]wFMCommunicate request_size=255 [20:16:16]MH_SAM_APDU [20:16:16]CAPDU: 80 0D 02 02 FA 03 00 21 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 [20:16:16]Write to MH i2c: E2 02 01 E3 2F 80 0D 02 02 FA 00 03 00 21 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 00 00 81 [20:16:16]Write i2c OK [20:16:16]MH_I2C_Read... [20:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:17]Read from MH i2c: E2 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 03 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 03 00 E3 2F 00 90 00 86 [20:16:17]RAPDU: 90 00 [20:16:17]wFMCommunicate OK [20:16:17]wFMCommunicate request_size=255 [20:16:17]MH_SAM_APDU [20:16:17]CAPDU: 80 0D 02 02 FA 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 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 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 15 D5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [20:16:17]Write to MH i2c: E2 02 01 E4 2F 80 0D 02 02 FA 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 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 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 15 D5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 99 [20:16:17]Write i2c OK [20:16:17]MH_I2C_Read... [20:16:17]OFD Sender: No OFD packet to send [20:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:17]Read from MH i2c: E2 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 03 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 03 00 E4 2F 00 90 00 87 [20:16:17]RAPDU: 90 00 [20:16:17]wFMCommunicate OK [20:16:17]wFMCommunicate request_size=54 [20:16:17]MH_SAM_APDU [20:16:17]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3C 7C 00 00 35 04 06 00 1B F8 AE 42 F5 78 [20:16:17]Write to MH i2c: E2 39 00 E5 2F 80 0D 02 02 31 00 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3C 7C 00 00 35 04 06 00 1B F8 AE 42 F5 78 00 00 E4 [20:16:17]Write i2c OK [20:16:17]MH_I2C_Read... [20:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:16:17]Read from MH i2c: E2 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 03 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 03 00 E5 2F 00 90 00 88 [20:16:17]RAPDU: 90 00 [20:16:17]wFMCommunicate OK [20:16:17]wFMCommunicate request_size=4 [20:16:17]MH_SAM_APDU [20:16:17]CAPDU: 80 0D 03 02 [20:16:17]Write to MH i2c: E2 08 00 E6 2F 80 0D 03 02 00 00 00 00 90 [20:16:17]Write i2c OK [20:16:17]MH_I2C_Read... [20:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:16:17]Read from MH i2c: E2 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 0B 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 0B 00 E6 2F 00 37 E8 53 A8 8D 57 C4 FF 90 00 52 [20:16:17]RAPDU: 37 E8 53 A8 8D 57 C4 FF 90 00 [20:16:17]wFMCommunicate OK [20:16:17]SAM_PROTO_SignData done [20:16:17]FM_MakeSignedData done [20:16:17]CreateOFDProtocolMessage [20:16:17]wFMCommunicate request_size=4 [20:16:17]MH_SAM_APDU [20:16:17]CAPDU: 80 11 00 00 [20:16:17]Write to MH i2c: E2 08 00 E7 2F 80 11 00 00 00 00 00 00 90 [20:16:17]Write i2c OK [20:16:17]MH_I2C_Read... [20:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:17]Read from MH i2c: E2 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 17 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: E2 17 00 E7 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 EB [20:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:16:17]wFMCommunicate OK [20:16:17]CreateOFDProtocolMessage done [20:16:17]OFDSenderStorePacket 31804 [20:16:17]StoreOFDPacket docnum=31804 [20:16:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 02 00 00 69 43 2D 02 AB 5A 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 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 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 15 D5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3C 7C 00 00 35 04 06 00 1B F8 AE 42 F5 78 37 E8 53 A8 8D 57 C4 FF [20:16:17]CheckFolder [20:16:17]dirname=/storage/ofd_packets [20:16:17]CheckFolder done [20:16:17]ProducePacketName [20:16:17]name=ofd_packets/00031804 [20:16:17]NVStorageSaveData ofd_packets/00031804 [20:16:17]File name is /storage/ofd_packets/00031804 [20:16:17]Write 595 bytes [20:16:17]NVStorageSaveData done [20:16:17]OFDSenderStorePacket done [20:16:17]KKMCreateOFDPacket done [20:16:17]NVStorageSaveData kkm_last_timestamp [20:16:17]File name is /storage/kkm_last_timestamp [20:16:17]Write 4 bytes [20:16:17]NVStorageSaveData done [20:16:17]ExternCall_PrintAddStr [20:16:17]wPrintStart [20:16:17]Write to MH i2c: 01 00 00 E8 2F 17 [20:16:17]Write i2c OK [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: 01 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: 01 07 00 [20:16:17]MH_I2C_Read... [20:16:17]Read from MH i2c: 01 07 00 E8 2F 00 00 00 00 00 FF 0F 2C [20:16:17]RasterBufferAndPrint [20:16:17]line Счет N : (3)214385 [20:16:17]line ИНН: 02508201610067 [20:16:17]line Контрольно-Кассовый Чек [20:16:17]line ПРОДАЖА [20:16:17]line Товар: 5449000189356 [20:16:17]line Холодный чай Fuse манго ананас 1л [20:16:17]line 1.000 * 107.00 [20:16:17]line = 107.00 [20:16:17]line НДС 12% НСП 1% [20:16:17]line > о реализуемом товаре [20:16:17]line Товар: 4610080727818 [20:16:17]line Салфетки Pamperino kids 8шт [20:16:17]line 1.000 * 25.00 [20:16:17]line = 25.00 [20:16:17]line НДС 12% НСП 1% [20:16:17]line > о реализуемом товаре [20:16:17]line Товар: 4607015232592 [20:16:17]line Вафли Яшкино с вареной сгущенкой 200г [20:16:17]line 1.000 * 81.00 [20:16:17]line = 81.00 [20:16:17]line НДС 12% НСП 1% [20:16:17]line > о реализуемом товаре [20:16:17]line ИТОГО: 213.00 [20:16:17]line НСП 1% : 1.89 [20:16:17]line НДС 12% : 22.61 [20:16:17]line Наличными: 0.00 [20:16:17]line Безнал.: 213.00 [20:16:17]line Место: АЗС № 140 "Партнер Нефть" [20:16:17]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:16:17]line СНО: Общий режим [20:16:17]line Чек 123 16.07.2024 20:16 [20:16:17]line Смена: 371 ФФД: 1.0 [20:16:17]line ЗНМ: 0300000189 [20:16:17]line РНМ: 0000000000098025 [20:16:17]line Версия ККМ: 001 [20:16:17]line Платежная система: O! деньги [20:16:17]line ФМ: 0000000000965389 [20:16:17]line ФД: 31804 [20:16:17]line ФПД: 30754889463160 [20:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T201621&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31804&fm=30754889463160&tin=02508201610067®Number=0000000000098025&sum=21300 [20:16:17]line 0 [20:16:17]OFD Sender: Processing packet 31804 [packets to send 6, broken 5] [20:16:17]ProducePacketName [20:16:17]name=ofd_packets/00031804 [20:16:17]OFD Sender: To server: pG, [20:16:17]CommunicateWithHost lk.salyk.kg:30040 [20:16:17]ConnectInit lk.salyk.kg [20:16:17]written 0, free lines is 4095 [20:16:17]Connected sock=10 [20:16:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 02 00 00 69 43 2D 02 AB 5A 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 69 00 8A 04 0D 00 34 36 31 30 30 38 30 37 32 37 38 31 38 06 04 25 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 50 61 6D 70 65 72 69 6E 6F 20 6B 69 64 73 20 38 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 09 00 00 00 00 13 04 06 00 C4 09 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 86 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 32 35 39 32 06 04 42 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 D1 81 20 D0 B2 D0 B0 D1 80 D0 B5 D0 BD D0 BE D0 B9 20 D1 81 D0 B3 D1 83 D1 89 D0 B5 D0 BD D0 BA D0 BE D0 B9 20 32 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 1F 00 00 00 00 13 04 06 00 A4 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D5 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 53 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 15 D5 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3C 7C 00 00 35 04 06 00 1B F8 AE 42 F5 78 37 E8 53 A8 8D 57 C4 FF [20:16:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 98 E4 47 00 98 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3C 7C 00 00 F4 03 04 00 22 81 96 66 B6 04 01 00 00 26 EB F2 03 F0 73 9B CA [20:16:18]CommunicateWithHost err = 0 [20:16:18]CheckOFDResponse [20:16:18]1017 (14) - 77093643461234 [20:16:18]1041 (16) - 0000000000965389 [20:16:18]1040 (4) - 31804 [20:16:18]1012 (4) - 16.07.2024 14:18 [20:16:18]1206 (1) - 0 [20:16:18]OFD Sender: Remove packet 31804 [20:16:18]ProducePacketName [20:16:18]name=ofd_packets/00031804 [20:16:18]NVStorageDeleteData [20:16:18]Write to MH i2c: 01 00 00 20 30 50 [20:16:18]Write i2c OK [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: 01 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: 01 07 00 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: 01 07 00 20 30 00 00 00 00 00 E7 0B 49 [20:16:18]RasterBufferAndPrint [20:16:18]line [20:16:18]line [20:16:18]line [20:16:18]line [20:16:18]line [20:16:18]written 0, free lines is 3054 [20:16:18]MH_Cut [20:16:18]Write to MH i2c: D1 01 00 27 30 01 29 [20:16:18]Write i2c OK [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: D1 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: D1 01 00 [20:16:18]MH_I2C_Read... [20:16:18]Read from MH i2c: D1 01 00 27 30 00 28 [20:16:18]Write to MH i2c: 01 00 00 28 30 58 [20:16:18]Write i2c OK [20:16:18]MH_I2C_Read... [20:16:18]OFD Sender: No OFD packet to send [20:16:19]*** Cut start [20:16:19]*** Partial cut [20:16:19]*** CUTSNS_PIN = 1 [20:16:19]*** CUTSNS_PIN = 0 [20:16:19]*** Brake cut motor [20:16:20]Read from MH i2c: 01 [20:16:20]MH_I2C_Read... [20:16:20]*** Stop cut motor [20:16:20]*** Cut end [20:16:20]Read from MH i2c: 01 07 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: 01 07 00 28 30 00 00 00 00 00 FF 0F 6D [20:16:20]process_action close_receipt done [20:16:20]requested_data is exist [20:16:20]produce_requested_data [20:16:20]requested_item fm.sn is exist - process it [20:16:20]wFMCommunicate request_size=4 [20:16:20]MH_SAM_APDU [20:16:20]CAPDU: 80 11 00 00 [20:16:20]Write to MH i2c: E2 08 00 29 30 80 11 00 00 00 00 00 00 D3 [20:16:20]Write i2c OK [20:16:20]MH_I2C_Read... [20:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:16:20]Read from MH i2c: E2 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 17 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 17 00 29 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2E [20:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:16:20]wFMCommunicate OK [20:16:20]requested_item fd.num is exist - process it [20:16:20]SAM_PROTO_GetFieldsCounters [20:16:20]wFMCommunicate request_size=4 [20:16:20]MH_SAM_APDU [20:16:20]CAPDU: 80 13 00 00 [20:16:20]Write to MH i2c: E2 08 00 2A 30 80 13 00 00 00 00 00 00 D6 [20:16:20]Write i2c OK [20:16:20]MH_I2C_Read... [20:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:16:20]Read from MH i2c: E2 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 62 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 62 00 2A 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3C 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [20:16:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3C 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:16:20]wFMCommunicate OK [20:16:20]SAM_PROTO_GetFieldsCounters done [20:16:20]requested_item shift.num is exist - process it [20:16:20]requested_item shift.opened is exist - process it [20:16:20]req_shift_opened [20:16:20]FM_GetShiftState [20:16:20]SAM_PROTO_GetShiftState [20:16:20]wFMCommunicate request_size=4 [20:16:20]MH_SAM_APDU [20:16:20]CAPDU: 80 13 01 00 [20:16:20]Write to MH i2c: E2 08 00 2B 30 80 13 01 00 00 00 00 00 D8 [20:16:20]Write i2c OK [20:16:20]MH_I2C_Read... [20:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:16:20]Read from MH i2c: E2 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 0E 00 [20:16:20]MH_I2C_Read... [20:16:20]Read from MH i2c: E2 0E 00 2B 30 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 27 [20:16:20]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:16:20]wFMCommunicate OK [20:16:20]SAM_PROTO_GetShiftState done [20:16:20]FM_GetShiftState done [20:16:20]req_shift_opened done [20:16:20]requested_item shift.open_date is exist - process it [20:16:20]req_shift_open_date [20:16:20]req_shift_open_date done [20:16:20]produce_requested_data done [20:16:20]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31804,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [20:16:20]process_action_free close_receipt [20:16:20]json_value_free [20:16:20]json_value_free done [20:16:20]process_json_proto returns [20:16:20]Send response to host [20:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31804,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [20:16:20]free response buf [20:16:20]execute_script done [20:16:20]execute_script returns [20:16:20]free content buf [20:16:20]Sock 9.Close socket [20:16:20]Sock 9.Thread stoped [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:58]OFD Sender: No OFD packet to send [20:18:03]OFD Sender: No OFD packet to send [20:18:08]OFD Sender: No OFD packet to send [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:48]OFD Sender: No OFD packet to send [20:20:53]OFD Sender: No OFD packet to send [20:20:58]OFD Sender: No OFD packet to send [20:21:03]OFD Sender: No OFD packet to send [20:21:08]OFD Sender: No OFD packet to send [20:21:13]OFD Sender: No OFD packet to send [20:21:18]OFD Sender: No OFD packet to send [20:21:23]OFD Sender: No OFD packet to send [20:21:28]OFD Sender: No OFD packet to send [20:21:33]OFD Sender: No OFD packet to send [20:21:38]OFD Sender: No OFD packet to send [20:21:43]OFD Sender: No OFD packet to send [20:21:48]OFD Sender: No OFD packet to send [20:21:53]OFD Sender: No OFD packet to send [20:21:58]OFD Sender: No OFD packet to send [20:22:03]OFD Sender: No OFD packet to send [20:22:08]OFD Sender: No OFD packet to send [20:22:13]OFD Sender: No OFD packet to send [20:22:18]OFD Sender: No OFD packet to send [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:49]OFD Sender: No OFD packet to send [20:22:54]OFD Sender: No OFD packet to send [20:22:59]OFD Sender: No OFD packet to send [20:23:04]OFD Sender: No OFD packet to send [20:23:09]OFD Sender: No OFD packet to send [20:23:14]OFD Sender: No OFD packet to send [20:23:19]OFD Sender: No OFD packet to send [20:23:24]OFD Sender: No OFD packet to send [20:23:29]OFD Sender: No OFD packet to send [20:23:34]OFD Sender: No OFD packet to send [20:23:39]OFD Sender: No OFD packet to send [20:23:44]OFD Sender: No OFD packet to send [20:23:49]OFD Sender: No OFD packet to send [20:23:54]OFD Sender: No OFD packet to send [20:23:59]OFD Sender: No OFD packet to send [20:24:04]OFD Sender: No OFD packet to send [20:24:09]OFD Sender: No OFD packet to send [20:24:14]OFD Sender: No OFD packet to send [20:24:19]OFD Sender: No OFD packet to send [20:24:24]OFD Sender: No OFD packet to send [20:24:29]OFD Sender: No OFD packet to send [20:24:34]OFD Sender: No OFD packet to send [20:24:39]OFD Sender: No OFD packet to send [20:24:44]OFD Sender: No OFD packet to send [20:24:49]OFD Sender: No OFD packet to send [20:24:54]OFD Sender: No OFD packet to send [20:24:59]OFD Sender: No OFD packet to send [20:25:04]OFD Sender: No OFD packet to send [20:25:09]OFD Sender: No OFD packet to send [20:25:14]OFD Sender: No OFD packet to send [20:25:19]OFD Sender: No OFD packet to send [20:25:24]OFD Sender: No OFD packet to send [20:25:29]OFD Sender: No OFD packet to send [20:25:34]OFD Sender: No OFD packet to send [20:25:39]OFD Sender: No OFD packet to send [20:25:44]OFD Sender: No OFD packet to send [20:25:49]OFD Sender: No OFD packet to send [20:25:54]OFD Sender: No OFD packet to send [20:25:59]OFD Sender: No OFD packet to send [20:26:04]OFD Sender: No OFD packet to send [20:26:09]OFD Sender: No OFD packet to send [20:26:14]OFD Sender: No OFD packet to send [20:26:19]OFD Sender: No OFD packet to send [20:26:24]OFD Sender: No OFD packet to send [20:26:29]OFD Sender: No OFD packet to send [20:26:34]OFD Sender: No OFD packet to send [20:26:39]OFD Sender: No OFD packet to send [20:26:44]OFD Sender: No OFD packet to send [20:26:49]OFD Sender: No OFD packet to send [20:26:54]OFD Sender: No OFD packet to send [20:26:59]OFD Sender: No OFD packet to send [20:27:04]OFD Sender: No OFD packet to send [20:27:09]OFD Sender: No OFD packet to send [20:27:14]OFD Sender: No OFD packet to send [20:27:19]OFD Sender: No OFD packet to send [20:27:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:47]accept exits with 7 [20:36:47]New connection [20:36:47]New thread 3066965348 created [20:36:47]Thread 3066821988 joined [20:36:47]Waiting for new connection... [20:36:47] Sock 7.Parse request [20:36:47]Sock 7.Check first char [20:36:47]Sock 7.First char is OK [20:36:47]request: POST /json_proto HTTP/1.0 [20:36:47]Method: POST [20:36:47]URL: /json_proto [20:36:47]Method is POST - this is cgi request [20:36:47]url: /json_proto [20:36:47]query_string will be loaded in cgi processing [20:36:47]execute_cgi json_proto POST (null) [20:36:47]execute_cgi path=json_proto method=POST [20:36:47]POST find Content-Length [20:36:47]Host: 172.17.39.68:8080 [20:36:47]Content-Length: 690 [20:36:47]Content-Type: application/json [20:36:47] [20:36:47]POST finish read [20:36:47]Found Content-Length = 690 [20:36:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214386", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "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" ] } } [20:36:47]execute_script... [20:36:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214386", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "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" ] } } [20:36:47]POST & json_proto [20:36:47]process_json_proto [20:36:47]json parsed OK: [20:36:47]protocol is kg_v1.0 [20:36:47]action value=close_receipt [20:36:47]process_action close_receipt [20:36:47]cmd_close_receipt [20:36:47]MH_GetDate [20:36:47]Write to MH i2c: F0 00 00 2C 30 4B [20:36:47]Write i2c OK [20:36:47]MH_I2C_Read... [20:36:47]Read from MH i2c: F0 [20:36:47]MH_I2C_Read... [20:36:47]Read from MH i2c: F0 09 00 [20:36:47]MH_I2C_Read... [20:36:47]Read from MH i2c: F0 09 00 2C 30 00 E6 D9 96 66 D6 48 95 66 28 [20:36:47]GetLastDocTimeStamp 1721160981 [20:36:47]current date 1721162214 [20:36:47]FM_GetShiftState [20:36:47]SAM_PROTO_GetShiftState [20:36:47]wFMCommunicate request_size=4 [20:36:47]MH_SAM_APDU [20:36:47]CAPDU: 80 13 01 00 [20:36:47]Write to MH i2c: E2 08 00 2D 30 80 13 01 00 00 00 00 00 DA [20:36:47]Write i2c OK [20:36:47]MH_I2C_Read... [20:36:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:47]Read from MH i2c: E2 [20:36:47]MH_I2C_Read... [20:36:47]Read from MH i2c: E2 0E 00 [20:36:47]MH_I2C_Read... [20:36:47]Read from MH i2c: E2 0E 00 2D 30 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 29 [20:36:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:36:47]wFMCommunicate OK [20:36:47]SAM_PROTO_GetShiftState done [20:36:47]FM_GetShiftState done [20:36:47]opened in 1721088399 [20:36:47]opened+sec_in_day 1721174799 [20:36:47]quantity*price = 12500 [20:36:47]sum+1 = 12501 [20:36:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 124 16.07.2024 20:36 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31805 ФПД: 67502839521594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T203654&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31805&fm=67502839521594&tin=02508201610067®Number=0000000000098025&sum=12500 0 [20:36:49]StoreToDocumentArchive [20:36:49]shift 371 fd 31805 [20:36:49]save to /storage/0371/doc_00031805 [20:36:49]save last doc name /storage/0371/doc_00031805 to /storage/kkm_last_doc_name [20:36:49]save OK [20:36:49]Clear old archive folders... [20:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=294 [20:36:49]tlvbuf is 015ED070 [20:36:49]SAM_PROTO_ClearQueue [20:36:49]wFMCommunicate request_size=4 [20:36:49]MH_SAM_APDU [20:36:49]CAPDU: 80 09 00 00 [20:36:49]Write to MH i2c: E2 08 00 3A 30 80 09 00 00 00 00 00 00 DC [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 3A 30 00 90 00 DE [20:36:49]RAPDU: 90 00 [20:36:49]wFMCommunicate OK [20:36:49]SAM_PROTO_ClearQueue done [20:36:49]KKMCreateOFDPacket [20:36:49]OFDProtocolAddRootSTLVToBuf [20:36:49]FM_MakeSignedData [20:36:49]FM_MakeSignedData [20:36:49]SAM_PROTO_SignData [20:36:49]wFMCommunicate request_size=4 [20:36:49]MH_SAM_APDU [20:36:49]CAPDU: 80 0D 01 02 [20:36:49]Write to MH i2c: E2 08 00 3B 30 80 0D 01 02 00 00 00 00 E4 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 3B 30 00 90 00 DF [20:36:49]RAPDU: 90 00 [20:36:49]wFMCommunicate OK [20:36:49]wFMCommunicate request_size=255 [20:36:49]MH_SAM_APDU [20:36:49]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 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 7C 00 00 00 F4 03 04 00 E6 D9 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [20:36:49]Write to MH i2c: E2 02 01 3C 30 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 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 7C 00 00 00 F4 03 04 00 E6 D9 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 12 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 3C 30 00 90 00 E0 [20:36:49]RAPDU: 90 00 [20:36:49]wFMCommunicate OK [20:36:49]wFMCommunicate request_size=53 [20:36:49]MH_SAM_APDU [20:36:49]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3D 7C 00 00 35 04 06 00 3D 64 BA C5 61 3A [20:36:49]Write to MH i2c: E2 38 00 3D 30 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3D 7C 00 00 35 04 06 00 3D 64 BA C5 61 3A 00 00 57 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 03 00 3D 30 00 90 00 E1 [20:36:49]RAPDU: 90 00 [20:36:49]wFMCommunicate OK [20:36:49]wFMCommunicate request_size=4 [20:36:49]MH_SAM_APDU [20:36:49]CAPDU: 80 0D 03 02 [20:36:49]Write to MH i2c: E2 08 00 3E 30 80 0D 03 02 00 00 00 00 E9 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 0B 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 0B 00 3E 30 00 EE AE 35 3F 8D B6 66 88 90 00 2B [20:36:49]RAPDU: EE AE 35 3F 8D B6 66 88 90 00 [20:36:49]wFMCommunicate OK [20:36:49]SAM_PROTO_SignData done [20:36:49]FM_MakeSignedData done [20:36:49]CreateOFDProtocolMessage [20:36:49]wFMCommunicate request_size=4 [20:36:49]MH_SAM_APDU [20:36:49]CAPDU: 80 11 00 00 [20:36:49]Write to MH i2c: E2 08 00 3F 30 80 11 00 00 00 00 00 00 E9 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:49]Read from MH i2c: E2 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 17 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: E2 17 00 3F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 44 [20:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:36:49]wFMCommunicate OK [20:36:49]CreateOFDProtocolMessage done [20:36:49]OFDSenderStorePacket 31805 [20:36:49]StoreOFDPacket docnum=31805 [20:36:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 F1 84 32 01 DB 24 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 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 7C 00 00 00 F4 03 04 00 E6 D9 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3D 7C 00 00 35 04 06 00 3D 64 BA C5 61 3A EE AE 35 3F 8D B6 66 88 [20:36:49]CheckFolder [20:36:49]dirname=/storage/ofd_packets [20:36:49]CheckFolder done [20:36:49]ProducePacketName [20:36:49]name=ofd_packets/00031805 [20:36:49]NVStorageSaveData ofd_packets/00031805 [20:36:49]File name is /storage/ofd_packets/00031805 [20:36:49]Write 344 bytes [20:36:49]NVStorageSaveData done [20:36:49]OFDSenderStorePacket done [20:36:49]KKMCreateOFDPacket done [20:36:49]NVStorageSaveData kkm_last_timestamp [20:36:49]File name is /storage/kkm_last_timestamp [20:36:49]Write 4 bytes [20:36:49]NVStorageSaveData done [20:36:49]ExternCall_PrintAddStr [20:36:49]wPrintStart [20:36:49]Write to MH i2c: 01 00 00 40 30 70 [20:36:49]Write i2c OK [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: 01 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: 01 07 00 [20:36:49]MH_I2C_Read... [20:36:49]Read from MH i2c: 01 07 00 40 30 00 00 00 00 00 FF 0F 85 [20:36:49]RasterBufferAndPrint [20:36:49]line Счет N : (3)214386 [20:36:49]line ИНН: 02508201610067 [20:36:49]line Контрольно-Кассовый Чек [20:36:49]line ПРОДАЖА [20:36:49]line Товар: 4870202521247 [20:36:49]line Напиток MAXI чай 1,2 черн.персик [20:36:49]line 1.000 * 125.00 [20:36:49]line = 125.00 [20:36:49]line НДС 12% НСП 1% [20:36:49]line > о реализуемом товаре [20:36:49]line ИТОГО: 125.00 [20:36:49]line НСП 1% : 1.11 [20:36:49]line НДС 12% : 13.27 [20:36:49]line Наличными: 125.00 [20:36:49]line Безнал.: 0.00 [20:36:49]line Место: АЗС № 140 "Партнер Нефть" [20:36:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:36:49]line СНО: Общий режим [20:36:49]line Чек 124 16.07.2024 20:36 [20:36:49]line Смена: 371 ФФД: 1.0 [20:36:49]line ЗНМ: 0300000189 [20:36:49]line РНМ: 0000000000098025 [20:36:49]line Версия ККМ: 001 [20:36:49]line ФМ: 0000000000965389 [20:36:49]line ФД: 31805 [20:36:49]line ФПД: 67502839521594 [20:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T203654&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31805&fm=67502839521594&tin=02508201610067®Number=0000000000098025&sum=12500 [20:36:49]OFD Sender: Processing packet 31805 [packets to send 6, broken 5] [20:36:49]ProducePacketName [20:36:49]name=ofd_packets/00031805 [20:36:49]OFD Sender: To server: pG, [20:36:49]CommunicateWithHost lk.salyk.kg:30040 [20:36:49]ConnectInit lk.salyk.kg [20:36:49]line 0 [20:36:49]written 0, free lines is 4095 [20:36:50]Connected sock=9 [20:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 F1 84 32 01 DB 24 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 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E 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 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 7C 00 00 00 F4 03 04 00 E6 D9 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3D 7C 00 00 35 04 06 00 3D 64 BA C5 61 3A EE AE 35 3F 8D B6 66 88 [20:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 F4 8B 47 00 E6 AB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3D 7C 00 00 F4 03 04 00 F2 85 96 66 B6 04 01 00 00 DE 4D 1D 41 32 96 A3 69 [20:36:50]CommunicateWithHost err = 0 [20:36:50]CheckOFDResponse [20:36:50]1017 (14) - 77093643461234 [20:36:50]1041 (16) - 0000000000965389 [20:36:50]1040 (4) - 31805 [20:36:50]1012 (4) - 16.07.2024 14:38 [20:36:50]1206 (1) - 0 [20:36:50]OFD Sender: Remove packet 31805 [20:36:50]ProducePacketName [20:36:50]name=ofd_packets/00031805 [20:36:50]NVStorageDeleteData [20:36:50]Write to MH i2c: 01 00 00 69 30 99 [20:36:50]Write i2c OK [20:36:50]MH_I2C_Read... [20:36:50]Read from MH i2c: 01 [20:36:50]MH_I2C_Read... [20:36:50]Read from MH i2c: 01 07 00 [20:36:50]MH_I2C_Read... [20:36:50]Read from MH i2c: 01 07 00 69 30 00 00 00 00 00 FC 0C A8 [20:36:50]RasterBufferAndPrint [20:36:50]line [20:36:50]line [20:36:50]line [20:36:50]line [20:36:50]line [20:36:50]written 0, free lines is 3331 [20:36:50]MH_Cut [20:36:50]Write to MH i2c: D1 01 00 70 30 01 72 [20:36:50]Write i2c OK [20:36:50]MH_I2C_Read... [20:36:50]Read from MH i2c: D1 [20:36:50]MH_I2C_Read... [20:36:50]Read from MH i2c: D1 01 00 [20:36:50]MH_I2C_Read... [20:36:50]Read from MH i2c: D1 01 00 70 30 00 71 [20:36:50]Write to MH i2c: 01 00 00 71 30 A1 [20:36:50]Write i2c OK [20:36:50]MH_I2C_Read... [20:36:50]OFD Sender: No OFD packet to send [20:36:51]*** Cut start [20:36:51]*** Partial cut [20:36:51]*** CUTSNS_PIN = 1 [20:36:51]*** CUTSNS_PIN = 0 [20:36:51]*** Brake cut motor [20:36:51]Read from MH i2c: 01 [20:36:51]MH_I2C_Read... [20:36:51]*** Stop cut motor [20:36:51]*** Cut end [20:36:51]Read from MH i2c: 01 07 00 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: 01 07 00 71 30 00 00 00 00 00 FF 0F B6 [20:36:51]process_action close_receipt done [20:36:51]requested_data is exist [20:36:51]produce_requested_data [20:36:51]requested_item fm.sn is exist - process it [20:36:51]wFMCommunicate request_size=4 [20:36:51]MH_SAM_APDU [20:36:51]CAPDU: 80 11 00 00 [20:36:51]Write to MH i2c: E2 08 00 72 30 80 11 00 00 00 00 00 00 1C [20:36:51]Write i2c OK [20:36:51]MH_I2C_Read... [20:36:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:51]Read from MH i2c: E2 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 17 00 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 17 00 72 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 77 [20:36:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:36:51]wFMCommunicate OK [20:36:51]requested_item fd.num is exist - process it [20:36:51]SAM_PROTO_GetFieldsCounters [20:36:51]wFMCommunicate request_size=4 [20:36:51]MH_SAM_APDU [20:36:51]CAPDU: 80 13 00 00 [20:36:51]Write to MH i2c: E2 08 00 73 30 80 13 00 00 00 00 00 00 1F [20:36:51]Write i2c OK [20:36:51]MH_I2C_Read... [20:36:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:51]Read from MH i2c: E2 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 62 00 [20:36:51]MH_I2C_Read... [20:36:51]Read from MH i2c: E2 62 00 73 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3D 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [20:36:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3D 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7C 00 00 00 5E 04 04 00 7C 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:36:51]wFMCommunicate OK [20:36:51]SAM_PROTO_GetFieldsCounters done [20:36:51]requested_item shift.num is exist - process it [20:36:51]requested_item shift.opened is exist - process it [20:36:51]req_shift_opened [20:36:51]FM_GetShiftState [20:36:51]SAM_PROTO_GetShiftState [20:36:51]wFMCommunicate request_size=4 [20:36:51]MH_SAM_APDU [20:36:51]CAPDU: 80 13 01 00 [20:36:51]Write to MH i2c: E2 08 00 74 30 80 13 01 00 00 00 00 00 21 [20:36:51]Write i2c OK [20:36:51]MH_I2C_Read... [20:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:52]Read from MH i2c: E2 [20:36:52]MH_I2C_Read... [20:36:52]Read from MH i2c: E2 0E 00 [20:36:52]MH_I2C_Read... [20:36:52]Read from MH i2c: E2 0E 00 74 30 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 70 [20:36:52]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:36:52]wFMCommunicate OK [20:36:52]SAM_PROTO_GetShiftState done [20:36:52]FM_GetShiftState done [20:36:52]req_shift_opened done [20:36:52]requested_item shift.open_date is exist - process it [20:36:52]req_shift_open_date [20:36:52]req_shift_open_date done [20:36:52]produce_requested_data done [20:36:52]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31805,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [20:36:52]process_action_free close_receipt [20:36:52]json_value_free [20:36:52]json_value_free done [20:36:52]process_json_proto returns [20:36:52]Send response to host [20:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31805,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [20:36:52]free response buf [20:36:52]execute_script done [20:36:52]execute_script returns [20:36:52]free content buf [20:36:52]Sock 7.Close socket [20:36:52]Sock 7.Thread stoped [20:36:55]OFD Sender: No OFD packet to send [20:37:00]OFD Sender: No OFD packet to send [20:37:05]OFD Sender: No OFD packet to send [20:37:10]OFD Sender: No OFD packet to send [20:37:15]OFD Sender: No OFD packet to send [20:37:20]OFD Sender: No OFD packet to send [20:37:25]OFD Sender: No OFD packet to send [20:37:30]OFD Sender: No OFD packet to send [20:37:35]OFD Sender: No OFD packet to send [20:37:40]OFD Sender: No OFD packet to send [20:37:45]OFD Sender: No OFD packet to send [20:37:47]accept exits with 10 [20:37:47]New connection [20:37:47]New thread 3066821988 created [20:37:47]Thread 3066965348 joined [20:37:47]Waiting for new connection... [20:37:47] Sock 10.Parse request [20:37:47]Sock 10.Check first char [20:37:47]Sock 10.First char is OK [20:37:47]request: POST /json_proto HTTP/1.0 [20:37:47]Method: POST [20:37:47]URL: /json_proto [20:37:47]Method is POST - this is cgi request [20:37:47]url: /json_proto [20:37:47]query_string will be loaded in cgi processing [20:37:47]execute_cgi json_proto POST (null) [20:37:47]execute_cgi path=json_proto method=POST [20:37:47]POST find Content-Length [20:37:47]Host: 172.17.39.68:8080 [20:37:47]Content-Length: 1416 [20:37:47]Content-Type: application/json [20:37:47] [20:37:47]POST finish read [20:37:47]Found Content-Length = 1416 [20:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214387", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 105.00, "quantity" : 3.000, "sum" : 315.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004975", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 5 \u043C\u044F\u0433\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 105.00, "quantity" : 3.000, "sum" : 315.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004968", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 9 \u043A\u0440\u0435\u043F\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 840.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:47]execute_script... [20:37:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214387", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 105.00, "quantity" : 3.000, "sum" : 315.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004975", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 5 \u043C\u044F\u0433\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 105.00, "quantity" : 3.000, "sum" : 315.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870145004968", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 9 \u043A\u0440\u0435\u043F\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 840.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:37:47]POST & json_proto [20:37:47]process_json_proto [20:37:47]json parsed OK: [20:37:47]protocol is kg_v1.0 [20:37:47]action value=close_receipt [20:37:47]process_action close_receipt [20:37:47]cmd_close_receipt [20:37:47]MH_GetDate [20:37:47]Write to MH i2c: F0 00 00 75 30 94 [20:37:47]Write i2c OK [20:37:47]MH_I2C_Read... [20:37:47]Read from MH i2c: F0 [20:37:47]MH_I2C_Read... [20:37:47]Read from MH i2c: F0 09 00 [20:37:47]MH_I2C_Read... [20:37:47]Read from MH i2c: F0 09 00 75 30 00 21 DA 96 66 D6 48 95 66 AD [20:37:47]GetLastDocTimeStamp 1721162214 [20:37:47]current date 1721162273 [20:37:47]FM_GetShiftState [20:37:47]SAM_PROTO_GetShiftState [20:37:47]wFMCommunicate request_size=4 [20:37:47]MH_SAM_APDU [20:37:47]CAPDU: 80 13 01 00 [20:37:47]Write to MH i2c: E2 08 00 76 30 80 13 01 00 00 00 00 00 23 [20:37:47]Write i2c OK [20:37:47]MH_I2C_Read... [20:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:47]Read from MH i2c: E2 [20:37:47]MH_I2C_Read... [20:37:47]Read from MH i2c: E2 0E 00 [20:37:47]MH_I2C_Read... [20:37:47]Read from MH i2c: E2 0E 00 76 30 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 72 [20:37:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:37:47]wFMCommunicate OK [20:37:47]SAM_PROTO_GetShiftState done [20:37:47]FM_GetShiftState done [20:37:47]opened in 1721088399 [20:37:47]opened+sec_in_day 1721174799 [20:37:47]quantity*price = 31500 [20:37:47]sum+1 = 31501 [20:37:47]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870145004975 Пиво Жатецкий Гусь 5 мягкое 0,43л ж/б 3.000 * 105.00 = 315.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870145004968 Пиво Жатецкий Гусь 9 крепкое 0,43л ж/б 2.000 * 105.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 840.00 НСП 1% : 7.44 НДС 12% : 89.20 Наличными: 840.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 125 16.07.2024 20:37 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31806 ФПД: 216587421603578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T203753&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31806&fm=216587421603578&tin=02508201610067®Number=0000000000098025&sum=84000 0 [20:37:48]StoreToDocumentArchive [20:37:48]shift 371 fd 31806 [20:37:48]save to /storage/0371/doc_00031806 [20:37:48]save last doc name /storage/0371/doc_00031806 to /storage/kkm_last_doc_name [20:37:48]save OK [20:37:48]Clear old archive folders... [20:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=580 [20:37:48]tlvbuf is B6F58190 [20:37:48]SAM_PROTO_ClearQueue [20:37:48]wFMCommunicate request_size=4 [20:37:48]MH_SAM_APDU [20:37:48]CAPDU: 80 09 00 00 [20:37:48]Write to MH i2c: E2 08 00 83 30 80 09 00 00 00 00 00 00 25 [20:37:48]Write i2c OK [20:37:48]MH_I2C_Read... [20:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:37:48]Read from MH i2c: E2 [20:37:48]MH_I2C_Read... [20:37:48]Read from MH i2c: E2 03 00 [20:37:48]MH_I2C_Read... [20:37:48]Read from MH i2c: E2 03 00 83 30 00 90 00 27 [20:37:48]RAPDU: 90 00 [20:37:48]wFMCommunicate OK [20:37:48]SAM_PROTO_ClearQueue done [20:37:48]KKMCreateOFDPacket [20:37:48]OFDProtocolAddRootSTLVToBuf [20:37:48]FM_MakeSignedData [20:37:48]FM_MakeSignedData [20:37:48]SAM_PROTO_SignData [20:37:48]wFMCommunicate request_size=4 [20:37:48]MH_SAM_APDU [20:37:48]CAPDU: 80 0D 01 02 [20:37:48]Write to MH i2c: E2 08 00 84 30 80 0D 01 02 00 00 00 00 2D [20:37:48]Write i2c OK [20:37:48]MH_I2C_Read... [20:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:37:48]Read from MH i2c: E2 [20:37:48]MH_I2C_Read... [20:37:48]Read from MH i2c: E2 03 00 [20:37:48]MH_I2C_Read... [20:37:48]Read from MH i2c: E2 03 00 84 30 00 90 00 28 [20:37:48]RAPDU: 90 00 [20:37:48]wFMCommunicate OK [20:37:48]wFMCommunicate request_size=255 [20:37:48]MH_SAM_APDU [20:37:48]CAPDU: 80 0D 02 02 FA 03 00 44 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 [20:37:48]Write to MH i2c: E2 02 01 85 30 80 0D 02 02 FA 00 03 00 44 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 00 00 F4 [20:37:48]Write i2c OK [20:37:48]MH_I2C_Read... [20:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:49]Read from MH i2c: E2 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 03 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 03 00 85 30 00 90 00 29 [20:37:49]RAPDU: 90 00 [20:37:49]wFMCommunicate OK [20:37:49]wFMCommunicate request_size=255 [20:37:49]MH_SAM_APDU [20:37:49]CAPDU: 80 0D 02 02 FA 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 [20:37:49]Write to MH i2c: E2 02 01 86 30 80 0D 02 02 FA 00 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 22 00 00 00 00 07 04 06 00 20 48 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 DD [20:37:49]Write i2c OK [20:37:49]MH_I2C_Read... [20:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:49]Read from MH i2c: E2 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 03 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 03 00 86 30 00 90 00 2A [20:37:49]RAPDU: 90 00 [20:37:49]wFMCommunicate OK [20:37:49]wFMCommunicate request_size=89 [20:37:49]MH_SAM_APDU [20:37:49]CAPDU: 80 0D 02 02 54 00 7D 00 00 00 F4 03 04 00 21 DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3E 7C 00 00 35 04 06 00 C4 FC 30 53 D6 FA [20:37:49]Write to MH i2c: E2 5C 00 87 30 80 0D 02 02 54 00 00 7D 00 00 00 F4 03 04 00 21 DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3E 7C 00 00 35 04 06 00 C4 FC 30 53 D6 FA 00 00 3B [20:37:49]Write i2c OK [20:37:49]MH_I2C_Read... [20:37:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:37:49]Read from MH i2c: E2 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 03 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 03 00 87 30 00 90 00 2B [20:37:49]RAPDU: 90 00 [20:37:49]wFMCommunicate OK [20:37:49]wFMCommunicate request_size=4 [20:37:49]MH_SAM_APDU [20:37:49]CAPDU: 80 0D 03 02 [20:37:49]Write to MH i2c: E2 08 00 88 30 80 0D 03 02 00 00 00 00 33 [20:37:49]Write i2c OK [20:37:49]MH_I2C_Read... [20:37:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:37:49]Read from MH i2c: E2 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 0B 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 0B 00 88 30 00 CB F0 16 77 15 AC F1 90 90 00 BE [20:37:49]RAPDU: CB F0 16 77 15 AC F1 90 90 00 [20:37:49]wFMCommunicate OK [20:37:49]SAM_PROTO_SignData done [20:37:49]FM_MakeSignedData done [20:37:49]CreateOFDProtocolMessage [20:37:49]wFMCommunicate request_size=4 [20:37:49]MH_SAM_APDU [20:37:49]CAPDU: 80 11 00 00 [20:37:49]Write to MH i2c: E2 08 00 89 30 80 11 00 00 00 00 00 00 33 [20:37:49]Write i2c OK [20:37:49]MH_I2C_Read... [20:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:49]Read from MH i2c: E2 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 17 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: E2 17 00 89 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 8E [20:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:37:49]wFMCommunicate OK [20:37:49]CreateOFDProtocolMessage done [20:37:49]OFDSenderStorePacket 31806 [20:37:49]StoreOFDPacket docnum=31806 [20:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 58 02 00 00 38 EC 50 02 8A E1 5A 03 01 00 03 00 44 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 22 00 00 00 00 07 04 06 00 20 48 01 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 21 DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3E 7C 00 00 35 04 06 00 C4 FC 30 53 D6 FA CB F0 16 77 15 AC F1 90 [20:37:49]CheckFolder [20:37:49]dirname=/storage/ofd_packets [20:37:49]CheckFolder done [20:37:49]ProducePacketName [20:37:49]name=ofd_packets/00031806 [20:37:49]NVStorageSaveData ofd_packets/00031806 [20:37:49]File name is /storage/ofd_packets/00031806 [20:37:49]Write 630 bytes [20:37:49]NVStorageSaveData done [20:37:49]OFDSenderStorePacket done [20:37:49]KKMCreateOFDPacket done [20:37:49]NVStorageSaveData kkm_last_timestamp [20:37:49]File name is /storage/kkm_last_timestamp [20:37:49]Write 4 bytes [20:37:49]NVStorageSaveData done [20:37:49]ExternCall_PrintAddStr [20:37:49]wPrintStart [20:37:49]Write to MH i2c: 01 00 00 8A 30 BA [20:37:49]Write i2c OK [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: 01 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: 01 07 00 [20:37:49]MH_I2C_Read... [20:37:49]Read from MH i2c: 01 07 00 8A 30 00 00 00 00 00 FF 0F CF [20:37:49]RasterBufferAndPrint [20:37:49]line Счет N : (3)214387 [20:37:49]line ИНН: 02508201610067 [20:37:49]line Контрольно-Кассовый Чек [20:37:49]line ПРОДАЖА [20:37:49]line Товар: 4870145004982 [20:37:49]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [20:37:49]line 3.000 * 105.00 [20:37:49]line = 315.00 [20:37:49]line НДС 12% НСП 1% [20:37:49]line > о реализуемом товаре [20:37:49]line Товар: 4870145004975 [20:37:49]line Пиво Жатецкий Гусь 5 мягкое 0,43л ж/б [20:37:49]line 3.000 * 105.00 [20:37:49]line = 315.00 [20:37:49]line НДС 12% НСП 1% [20:37:49]line > о реализуемом товаре [20:37:49]line Товар: 4870145004968 [20:37:49]line Пиво Жатецкий Гусь 9 крепкое 0,43л ж/б [20:37:49]line 2.000 * 105.00 [20:37:49]line = 210.00 [20:37:49]line НДС 12% НСП 1% [20:37:49]line > о реализуемом товаре [20:37:49]line ИТОГО: 840.00 [20:37:49]line НСП 1% : 7.44 [20:37:49]line НДС 12% : 89.20 [20:37:49]line Наличными: 840.00 [20:37:49]line Безнал.: 0.00 [20:37:49]line Место: АЗС № 140 "Партнер Нефть" [20:37:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:37:49]line СНО: Общий режим [20:37:49]line Чек 125 16.07.2024 20:37 [20:37:49]line Смена: 371 ФФД: 1.0 [20:37:49]line ЗНМ: 0300000189 [20:37:49]line РНМ: 0000000000098025 [20:37:49]line Версия ККМ: 001 [20:37:49]line ФМ: 0000000000965389 [20:37:49]line ФД: 31806 [20:37:49]line ФПД: 216587421603578 [20:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T203753&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31806&fm=216587421603578&tin=02508201610067®Number=0000000000098025&sum=84000 [20:37:49]line 0 [20:37:49]OFD Sender: Processing packet 31806 [packets to send 6, broken 5] [20:37:49]ProducePacketName [20:37:49]name=ofd_packets/00031806 [20:37:49]OFD Sender: To server: pG, [20:37:49]CommunicateWithHost lk.salyk.kg:30040 [20:37:49]ConnectInit lk.salyk.kg [20:37:50]written 0, free lines is 4095 [20:37:50]Connected sock=9 [20:37:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 58 02 00 00 38 EC 50 02 8A E1 5A 03 01 00 03 00 44 02 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 34 38 37 30 31 34 35 30 30 34 39 37 35 06 04 3E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 35 20 D0 BC D1 8F D0 B3 D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 0C 7B 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 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 48 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 22 00 00 00 00 07 04 06 00 20 48 01 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 21 DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3E 7C 00 00 35 04 06 00 C4 FC 30 53 D6 FA CB F0 16 77 15 AC F1 90 [20:37:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 2B 7A 47 00 B5 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 35 33 38 39 10 04 04 00 3E 7C 00 00 F4 03 04 00 2E 86 96 66 B6 04 01 00 00 C2 20 F4 0A 32 10 65 4A [20:37:50]CommunicateWithHost err = 0 [20:37:50]CheckOFDResponse [20:37:50]1017 (14) - 77093643461234 [20:37:50]1041 (16) - 0000000000965389 [20:37:50]1040 (4) - 31806 [20:37:50]1012 (4) - 16.07.2024 14:39 [20:37:50]1206 (1) - 0 [20:37:50]OFD Sender: Remove packet 31806 [20:37:50]ProducePacketName [20:37:50]name=ofd_packets/00031806 [20:37:50]NVStorageDeleteData [20:37:50]Write to MH i2c: 01 00 00 C1 30 F1 [20:37:50]Write i2c OK [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: 01 [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: 01 07 00 [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: 01 07 00 C1 30 00 00 00 00 00 26 0C 2A [20:37:50]RasterBufferAndPrint [20:37:50]line [20:37:50]line [20:37:50]line [20:37:50]line [20:37:50]line [20:37:50]written 0, free lines is 3117 [20:37:50]MH_Cut [20:37:50]Write to MH i2c: D1 01 00 C8 30 01 CA [20:37:50]Write i2c OK [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: D1 [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: D1 01 00 [20:37:50]MH_I2C_Read... [20:37:50]Read from MH i2c: D1 01 00 C8 30 00 C9 [20:37:50]Write to MH i2c: 01 00 00 C9 30 F9 [20:37:50]Write i2c OK [20:37:50]MH_I2C_Read... [20:37:50]OFD Sender: No OFD packet to send [20:37:51]*** Cut start [20:37:51]*** Partial cut [20:37:51]*** CUTSNS_PIN = 1 [20:37:51]*** CUTSNS_PIN = 0 [20:37:51]*** Brake cut motor [20:37:52]Read from MH i2c: 01 [20:37:52]MH_I2C_Read... [20:37:52]*** Stop cut motor [20:37:52]*** Cut end [20:37:52]Read from MH i2c: 01 07 00 [20:37:52]MH_I2C_Read... [20:37:52]Read from MH i2c: 01 07 00 C9 30 00 00 00 00 00 FF 0F 0E [20:37:52]process_action close_receipt done [20:37:52]requested_data is exist [20:37:52]produce_requested_data [20:37:52]requested_item fm.sn is exist - process it [20:37:52]wFMCommunicate request_size=4 [20:37:52]MH_SAM_APDU [20:37:52]CAPDU: 80 11 00 00 [20:37:52]Write to MH i2c: E2 08 00 CA 30 80 11 00 00 00 00 00 00 74 [20:37:52]Write i2c OK [20:37:52]MH_I2C_Read... [20:37:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:52]Read from MH i2c: E2 [20:37:52]MH_I2C_Read... [20:37:52]Read from MH i2c: E2 17 00 [20:37:52]MH_I2C_Read... [20:37:52]Read from MH i2c: E2 17 00 CA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CF [20:37:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:37:52]wFMCommunicate OK [20:37:52]requested_item fd.num is exist - process it [20:37:52]SAM_PROTO_GetFieldsCounters [20:37:52]wFMCommunicate request_size=4 [20:37:52]MH_SAM_APDU [20:37:52]CAPDU: 80 13 00 00 [20:37:52]Write to MH i2c: E2 08 00 CB 30 80 13 00 00 00 00 00 00 77 [20:37:52]Write i2c OK [20:37:52]MH_I2C_Read... [20:37:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:52]Read from MH i2c: E2 [20:37:52]MH_I2C_Read... [20:37:52]Read from MH i2c: E2 62 00 [20:37:52]MH_I2C_Read... [20:37:52]Read from MH i2c: E2 62 00 CB 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3E 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [20:37:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3E 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7D 00 00 00 5E 04 04 00 7D 00 00 00 57 04 04 00 7E 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:52]wFMCommunicate OK [20:37:52]SAM_PROTO_GetFieldsCounters done [20:37:52]requested_item shift.num is exist - process it [20:37:52]requested_item shift.opened is exist - process it [20:37:52]req_shift_opened [20:37:52]FM_GetShiftState [20:37:52]SAM_PROTO_GetShiftState [20:37:52]wFMCommunicate request_size=4 [20:37:52]MH_SAM_APDU [20:37:52]CAPDU: 80 13 01 00 [20:37:52]Write to MH i2c: E2 08 00 CC 30 80 13 01 00 00 00 00 00 79 [20:37:52]Write i2c OK [20:37:52]MH_I2C_Read... [20:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:52]Read from MH i2c: E2 [20:37:52]MH_I2C_Read... [20:37:52]Read from MH i2c: E2 0E 00 [20:37:52]MH_I2C_Read... [20:37:52]Read from MH i2c: E2 0E 00 CC 30 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C8 [20:37:52]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:37:52]wFMCommunicate OK [20:37:52]SAM_PROTO_GetShiftState done [20:37:52]FM_GetShiftState done [20:37:52]req_shift_opened done [20:37:52]requested_item shift.open_date is exist - process it [20:37:52]req_shift_open_date [20:37:52]req_shift_open_date done [20:37:52]produce_requested_data done [20:37:52]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31806,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [20:37:52]process_action_free close_receipt [20:37:52]json_value_free [20:37:52]json_value_free done [20:37:52]process_json_proto returns [20:37:52]Send response to host [20:37:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31806,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [20:37:52]free response buf [20:37:52]execute_script done [20:37:52]execute_script returns [20:37:52]free content buf [20:37:52]Sock 10.Close socket [20:37:52]Sock 10.Thread stoped [20:37:55]OFD Sender: No OFD packet to send [20:38:00]OFD Sender: No OFD packet to send [20:38:05]OFD Sender: No OFD packet to send [20:38:10]OFD Sender: No OFD packet to send [20:38:15]OFD Sender: No OFD packet to send [20:38:20]OFD Sender: No OFD packet to send [20:38:25]OFD Sender: No OFD packet to send [20:38:30]OFD Sender: No OFD packet to send [20:38:31]accept exits with 7 [20:38:31]New connection [20:38:31]New thread 3066965348 created [20:38:31]Thread 3066821988 joined [20:38:31]Waiting for new connection... [20:38:31] Sock 7.Parse request [20:38:31]Sock 7.Check first char [20:38:31]Sock 7.First char is OK [20:38:31]request: POST /json_proto HTTP/1.0 [20:38:31]Method: POST [20:38:31]URL: /json_proto [20:38:31]Method is POST - this is cgi request [20:38:31]url: /json_proto [20:38:31]query_string will be loaded in cgi processing [20:38:31]execute_cgi json_proto POST (null) [20:38:31]execute_cgi path=json_proto method=POST [20:38:31]POST find Content-Length [20:38:31]Host: 172.17.39.68:8080 [20:38:31]Content-Length: 622 [20:38:31]Content-Type: application/json [20:38:31] [20:38:31]POST finish read [20:38:31]Found Content-Length = 622 [20:38:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214388", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:31]execute_script... [20:38: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)214388", "tax_sys" : 0, "items" : [ { "code": "4640030091669", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange S", "price" : 138.00, "quantity" : 1.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:38:31]POST & json_proto [20:38:31]process_json_proto [20:38:31]json parsed OK: [20:38:31]protocol is kg_v1.0 [20:38:31]action value=close_receipt [20:38:31]process_action close_receipt [20:38:31]cmd_close_receipt [20:38:31]MH_GetDate [20:38:31]Write to MH i2c: F0 00 00 CD 30 EC [20:38:31]Write i2c OK [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: F0 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: F0 09 00 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: F0 09 00 CD 30 00 4E DA 96 66 D6 48 95 66 32 [20:38:31]GetLastDocTimeStamp 1721162273 [20:38:31]current date 1721162318 [20:38:31]FM_GetShiftState [20:38:31]SAM_PROTO_GetShiftState [20:38:31]wFMCommunicate request_size=4 [20:38:31]MH_SAM_APDU [20:38:31]CAPDU: 80 13 01 00 [20:38:31]Write to MH i2c: E2 08 00 CE 30 80 13 01 00 00 00 00 00 7B [20:38:31]Write i2c OK [20:38:31]MH_I2C_Read... [20:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:31]Read from MH i2c: E2 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 0E 00 [20:38:31]MH_I2C_Read... [20:38:31]Read from MH i2c: E2 0E 00 CE 30 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 CA [20:38:31]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:38:31]wFMCommunicate OK [20:38:31]SAM_PROTO_GetShiftState done [20:38:31]FM_GetShiftState done [20:38:31]opened in 1721088399 [20:38:31]opened+sec_in_day 1721174799 [20:38:31]quantity*price = 13800 [20:38:31]sum+1 = 13801 [20:38:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 126 16.07.2024 20:38 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31807 ФПД: 116612083911686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T203838&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31807&fm=116612083911686&tin=02508201610067®Number=0000000000098025&sum=13800 0 [20:38:32]StoreToDocumentArchive [20:38:32]shift 371 fd 31807 [20:38:32]save to /storage/0371/doc_00031807 [20:38:32]save last doc name /storage/0371/doc_00031807 to /storage/kkm_last_doc_name [20:38:32]save OK [20:38:32]Clear old archive folders... [20:38:32]ProcessDocumentItem done err = 0, tmpTLVsize=274 [20:38:32]tlvbuf is B6F58010 [20:38:32]SAM_PROTO_ClearQueue [20:38:32]wFMCommunicate request_size=4 [20:38:32]MH_SAM_APDU [20:38:32]CAPDU: 80 09 00 00 [20:38:32]Write to MH i2c: E2 08 00 DB 30 80 09 00 00 00 00 00 00 7D [20:38:32]Write i2c OK [20:38:32]MH_I2C_Read... [20:38:32]Read from MH i2c: E2 [20:38:32]MH_I2C_Read... [20:38:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:38:32]Read from MH i2c: E2 03 00 [20:38:32]MH_I2C_Read... [20:38:32]Read from MH i2c: E2 03 00 DB 30 00 90 00 7F [20:38:32]RAPDU: 90 00 [20:38:32]wFMCommunicate OK [20:38:32]SAM_PROTO_ClearQueue done [20:38:32]KKMCreateOFDPacket [20:38:32]OFDProtocolAddRootSTLVToBuf [20:38:32]FM_MakeSignedData [20:38:32]FM_MakeSignedData [20:38:32]SAM_PROTO_SignData [20:38:32]wFMCommunicate request_size=4 [20:38:32]MH_SAM_APDU [20:38:32]CAPDU: 80 0D 01 02 [20:38:32]Write to MH i2c: E2 08 00 DC 30 80 0D 01 02 00 00 00 00 85 [20:38:32]Write i2c OK [20:38:32]MH_I2C_Read... [20:38:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:38:33]Read from MH i2c: E2 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: E2 03 00 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: E2 03 00 DC 30 00 90 00 80 [20:38:33]RAPDU: 90 00 [20:38:33]wFMCommunicate OK [20:38:33]wFMCommunicate request_size=255 [20:38:33]MH_SAM_APDU [20:38:33]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 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4E DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 [20:38:33]Write to MH i2c: E2 02 01 DD 30 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 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4E DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 00 00 E3 [20:38:33]Write i2c OK [20:38:33]MH_I2C_Read... [20:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:33]Read from MH i2c: E2 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: E2 03 00 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: E2 03 00 DD 30 00 90 00 81 [20:38:33]RAPDU: 90 00 [20:38:33]wFMCommunicate OK [20:38:33]wFMCommunicate request_size=33 [20:38:33]MH_SAM_APDU [20:38:33]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3F 7C 00 00 35 04 06 00 6A 0E DD D6 8C 06 [20:38:33]Write to MH i2c: E2 24 00 DE 30 80 0D 02 02 1C 00 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3F 7C 00 00 35 04 06 00 6A 0E DD D6 8C 06 00 00 97 [20:38:33]Write i2c OK [20:38:33]MH_I2C_Read... [20:38:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:38:33]Read from MH i2c: E2 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: E2 03 00 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: E2 03 00 DE 30 00 90 00 82 [20:38:33]RAPDU: 90 00 [20:38:33]wFMCommunicate OK [20:38:33]wFMCommunicate request_size=4 [20:38:33]MH_SAM_APDU [20:38:33]CAPDU: 80 0D 03 02 [20:38:33]Write to MH i2c: E2 08 00 DF 30 80 0D 03 02 00 00 00 00 8A [20:38:33]Write i2c OK [20:38:33]MH_I2C_Read... [20:38:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:38:33]Read from MH i2c: E2 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: E2 0B 00 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: E2 0B 00 DF 30 00 1F 08 BC 57 E3 91 99 54 90 00 26 [20:38:33]RAPDU: 1F 08 BC 57 E3 91 99 54 90 00 [20:38:33]wFMCommunicate OK [20:38:33]SAM_PROTO_SignData done [20:38:33]FM_MakeSignedData done [20:38:33]CreateOFDProtocolMessage [20:38:33]wFMCommunicate request_size=4 [20:38:33]MH_SAM_APDU [20:38:33]CAPDU: 80 11 00 00 [20:38:33]Write to MH i2c: E2 08 00 E0 30 80 11 00 00 00 00 00 00 8A [20:38:33]Write i2c OK [20:38:33]MH_I2C_Read... [20:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:33]Read from MH i2c: E2 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: E2 17 00 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: E2 17 00 E0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E5 [20:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:38:33]wFMCommunicate OK [20:38:33]CreateOFDProtocolMessage done [20:38:33]OFDSenderStorePacket 31807 [20:38:33]StoreOFDPacket docnum=31807 [20:38:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 26 01 00 00 8F 4F 1E 01 41 BC 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 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4E DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3F 7C 00 00 35 04 06 00 6A 0E DD D6 8C 06 1F 08 BC 57 E3 91 99 54 [20:38:33]CheckFolder [20:38:33]dirname=/storage/ofd_packets [20:38:33]CheckFolder done [20:38:33]ProducePacketName [20:38:33]name=ofd_packets/00031807 [20:38:33]NVStorageSaveData ofd_packets/00031807 [20:38:33]File name is /storage/ofd_packets/00031807 [20:38:33]Write 324 bytes [20:38:33]NVStorageSaveData done [20:38:33]OFDSenderStorePacket done [20:38:33]KKMCreateOFDPacket done [20:38:33]NVStorageSaveData kkm_last_timestamp [20:38:33]File name is /storage/kkm_last_timestamp [20:38:33]Write 4 bytes [20:38:33]NVStorageSaveData done [20:38:33]ExternCall_PrintAddStr [20:38:33]wPrintStart [20:38:33]Write to MH i2c: 01 00 00 E1 30 11 [20:38:33]Write i2c OK [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: 01 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: 01 07 00 [20:38:33]MH_I2C_Read... [20:38:33]Read from MH i2c: 01 07 00 E1 30 00 00 00 00 00 FF 0F 26 [20:38:33]RasterBufferAndPrint [20:38:33]line Счет N : (3)214388 [20:38:33]line ИНН: 02508201610067 [20:38:33]line Контрольно-Кассовый Чек [20:38:33]line ПРОДАЖА [20:38:33]line Товар: 4640030091669 [20:38:33]line Сигареты ESSE Exchange S [20:38:33]line 1.000 * 138.00 [20:38:33]line = 138.00 [20:38:33]line НДС 12% НСП 1% [20:38:33]line > о реализуемом товаре [20:38:33]line ИТОГО: 138.00 [20:38:33]line НСП 1% : 1.22 [20:38:33]line НДС 12% : 14.65 [20:38:33]line Наличными: 138.00 [20:38:33]line Безнал.: 0.00 [20:38:33]line Место: АЗС № 140 "Партнер Нефть" [20:38:33]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:38:33]line СНО: Общий режим [20:38:33]line Чек 126 16.07.2024 20:38 [20:38:33]line Смена: 371 ФФД: 1.0 [20:38:33]line ЗНМ: 0300000189 [20:38:33]line РНМ: 0000000000098025 [20:38:33]line Версия ККМ: 001 [20:38:33]line ФМ: 0000000000965389 [20:38:33]line ФД: 31807 [20:38:33]line ФПД: 116612083911686 [20:38:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T203838&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31807&fm=116612083911686&tin=02508201610067®Number=0000000000098025&sum=13800 [20:38:33]line 0 [20:38:33]OFD Sender: Processing packet 31807 [packets to send 6, broken 5] [20:38:33]ProducePacketName [20:38:33]name=ofd_packets/00031807 [20:38:33]OFD Sender: To server: pG, [20:38:33]CommunicateWithHost lk.salyk.kg:30040 [20:38:33]ConnectInit lk.salyk.kg [20:38:33]written 0, free lines is 4095 [20:38:33]Connected sock=10 [20:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 26 01 00 00 8F 4F 1E 01 41 BC 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 36 39 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 53 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 35 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 4E DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3F 7C 00 00 35 04 06 00 6A 0E DD D6 8C 06 1F 08 BC 57 E3 91 99 54 [20:38:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 D4 26 47 00 4C 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 3F 7C 00 00 F4 03 04 00 5A 86 96 66 B6 04 01 00 00 E6 11 1B B8 8B B1 56 0F [20:38:34]CommunicateWithHost err = 0 [20:38:34]CheckOFDResponse [20:38:34]1017 (14) - 77093643461234 [20:38:34]1041 (16) - 0000000000965389 [20:38:34]1040 (4) - 31807 [20:38:34]1012 (4) - 16.07.2024 14:40 [20:38:34]1206 (1) - 0 [20:38:34]OFD Sender: Remove packet 31807 [20:38:34]ProducePacketName [20:38:34]name=ofd_packets/00031807 [20:38:34]NVStorageDeleteData [20:38:34]Write to MH i2c: 01 00 00 09 31 3A [20:38:34]Write i2c OK [20:38:34]MH_I2C_Read... [20:38:34]Read from MH i2c: 01 [20:38:34]MH_I2C_Read... [20:38:34]Read from MH i2c: 01 07 00 [20:38:34]MH_I2C_Read... [20:38:34]Read from MH i2c: 01 07 00 09 31 00 00 00 00 00 FD 0C 4A [20:38:34]RasterBufferAndPrint [20:38:34]line [20:38:34]line [20:38:34]line [20:38:34]line [20:38:34]line [20:38:34]written 0, free lines is 3332 [20:38:34]MH_Cut [20:38:34]Write to MH i2c: D1 01 00 10 31 01 13 [20:38:34]Write i2c OK [20:38:34]MH_I2C_Read... [20:38:34]Read from MH i2c: D1 [20:38:34]MH_I2C_Read... [20:38:34]Read from MH i2c: D1 01 00 [20:38:34]MH_I2C_Read... [20:38:34]Read from MH i2c: D1 01 00 10 31 00 12 [20:38:34]Write to MH i2c: 01 00 00 11 31 42 [20:38:34]Write i2c OK [20:38:34]MH_I2C_Read... [20:38:34]OFD Sender: No OFD packet to send [20:38:34]*** Cut start [20:38:34]*** Partial cut [20:38:34]*** CUTSNS_PIN = 1 [20:38:35]*** CUTSNS_PIN = 0 [20:38:35]*** Brake cut motor [20:38:35]Read from MH i2c: 01 [20:38:35]MH_I2C_Read... [20:38:35]*** Stop cut motor [20:38:35]*** Cut end [20:38:35]Read from MH i2c: 01 07 00 [20:38:35]MH_I2C_Read... [20:38:35]Read from MH i2c: 01 07 00 11 31 00 00 00 00 00 FF 0F 57 [20:38:35]process_action close_receipt done [20:38:35]requested_data is exist [20:38:35]produce_requested_data [20:38:35]requested_item fm.sn is exist - process it [20:38:35]wFMCommunicate request_size=4 [20:38:35]MH_SAM_APDU [20:38:35]CAPDU: 80 11 00 00 [20:38:35]Write to MH i2c: E2 08 00 12 31 80 11 00 00 00 00 00 00 BD [20:38:35]Write i2c OK [20:38:35]MH_I2C_Read... [20:38:35]Read from MH i2c: E2 [20:38:35]MH_I2C_Read... [20:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:38:35]Read from MH i2c: E2 17 00 [20:38:35]MH_I2C_Read... [20:38:35]Read from MH i2c: E2 17 00 12 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 18 [20:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:38:35]wFMCommunicate OK [20:38:35]requested_item fd.num is exist - process it [20:38:35]SAM_PROTO_GetFieldsCounters [20:38:35]wFMCommunicate request_size=4 [20:38:35]MH_SAM_APDU [20:38:35]CAPDU: 80 13 00 00 [20:38:35]Write to MH i2c: E2 08 00 13 31 80 13 00 00 00 00 00 00 C0 [20:38:35]Write i2c OK [20:38:35]MH_I2C_Read... [20:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:38:35]Read from MH i2c: E2 [20:38:35]MH_I2C_Read... [20:38:35]Read from MH i2c: E2 62 00 [20:38:35]MH_I2C_Read... [20:38:35]Read from MH i2c: E2 62 00 13 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3F 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [20:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 3F 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:38:35]wFMCommunicate OK [20:38:35]SAM_PROTO_GetFieldsCounters done [20:38:35]requested_item shift.num is exist - process it [20:38:35]requested_item shift.opened is exist - process it [20:38:35]req_shift_opened [20:38:35]FM_GetShiftState [20:38:35]SAM_PROTO_GetShiftState [20:38:35]wFMCommunicate request_size=4 [20:38:35]MH_SAM_APDU [20:38:35]CAPDU: 80 13 01 00 [20:38:35]Write to MH i2c: E2 08 00 14 31 80 13 01 00 00 00 00 00 C2 [20:38:35]Write i2c OK [20:38:35]MH_I2C_Read... [20:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:38:35]Read from MH i2c: E2 [20:38:35]MH_I2C_Read... [20:38:35]Read from MH i2c: E2 0E 00 [20:38:35]MH_I2C_Read... [20:38:35]Read from MH i2c: E2 0E 00 14 31 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 11 [20:38:35]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:38:35]wFMCommunicate OK [20:38:35]SAM_PROTO_GetShiftState done [20:38:35]FM_GetShiftState done [20:38:35]req_shift_opened done [20:38:35]requested_item shift.open_date is exist - process it [20:38:35]req_shift_open_date [20:38:35]req_shift_open_date done [20:38:35]produce_requested_data done [20:38:35]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31807,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [20:38:35]process_action_free close_receipt [20:38:35]json_value_free [20:38:35]json_value_free done [20:38:35]process_json_proto returns [20:38:35]Send response to host [20:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31807,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [20:38:35]free response buf [20:38:35]execute_script done [20:38:35]execute_script returns [20:38:35]free content buf [20:38:35]Sock 7.Close socket [20:38:35]Sock 7.Thread stoped [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:10]accept exits with 9 [20:40:10]New connection [20:40:10]New thread 3066821988 created [20:40:10]Thread 3066965348 joined [20:40:10]Waiting for new connection... [20:40:10] Sock 9.Parse request [20:40:10]Sock 9.Check first char [20:40:10]Sock 9.First char is OK [20:40:10]request: POST /json_proto HTTP/1.0 [20:40:10]Method: POST [20:40:10]URL: /json_proto [20:40:10]Method is POST - this is cgi request [20:40:10]url: /json_proto [20:40:10]query_string will be loaded in cgi processing [20:40:10]execute_cgi json_proto POST (null) [20:40:10]execute_cgi path=json_proto method=POST [20:40:10]POST find Content-Length [20:40:10]Host: 172.17.39.68:8080 [20:40:10]Content-Length: 640 [20:40:10]Content-Type: application/json [20:40:10] [20:40:10]POST finish read [20:40:10]Found Content-Length = 640 [20:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214389", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:10]execute_script... [20:40: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)214389", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:10]POST & json_proto [20:40:10]process_json_proto [20:40:10]json parsed OK: [20:40:10]protocol is kg_v1.0 [20:40:10]action value=close_receipt [20:40:10]process_action close_receipt [20:40:10]cmd_close_receipt [20:40:10]MH_GetDate [20:40:10]Write to MH i2c: F0 00 00 15 31 35 [20:40:10]Write i2c OK [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: F0 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: F0 09 00 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: F0 09 00 15 31 00 B0 DA 96 66 D6 48 95 66 DD [20:40:10]GetLastDocTimeStamp 1721162318 [20:40:10]current date 1721162416 [20:40:10]FM_GetShiftState [20:40:10]SAM_PROTO_GetShiftState [20:40:10]wFMCommunicate request_size=4 [20:40:10]MH_SAM_APDU [20:40:10]CAPDU: 80 13 01 00 [20:40:10]Write to MH i2c: E2 08 00 16 31 80 13 01 00 00 00 00 00 C4 [20:40:10]Write i2c OK [20:40:10]MH_I2C_Read... [20:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:10]Read from MH i2c: E2 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: E2 0E 00 [20:40:10]MH_I2C_Read... [20:40:10]Read from MH i2c: E2 0E 00 16 31 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 13 [20:40:10]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:40:10]wFMCommunicate OK [20:40:10]SAM_PROTO_GetShiftState done [20:40:10]FM_GetShiftState done [20:40:10]opened in 1721088399 [20:40:10]opened+sec_in_day 1721174799 [20:40:10]quantity*price = 14000 [20:40:10]sum+1 = 14001 [20:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 127 16.07.2024 20:40 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31808 ФПД: 85957066995722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T204016&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31808&fm=85957066995722&tin=02508201610067®Number=0000000000098025&sum=14000 0 [20:40:11]StoreToDocumentArchive [20:40:11]shift 371 fd 31808 [20:40:11]save to /storage/0371/doc_00031808 [20:40:11]save last doc name /storage/0371/doc_00031808 to /storage/kkm_last_doc_name [20:40:11]save OK [20:40:11]Clear old archive folders... [20:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:40:11]tlvbuf is 014A8CB0 [20:40:11]SAM_PROTO_ClearQueue [20:40:11]wFMCommunicate request_size=4 [20:40:11]MH_SAM_APDU [20:40:11]CAPDU: 80 09 00 00 [20:40:11]Write to MH i2c: E2 08 00 23 31 80 09 00 00 00 00 00 00 C6 [20:40:11]Write i2c OK [20:40:11]MH_I2C_Read... [20:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:11]Read from MH i2c: E2 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: E2 03 00 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: E2 03 00 23 31 00 90 00 C8 [20:40:11]RAPDU: 90 00 [20:40:11]wFMCommunicate OK [20:40:11]SAM_PROTO_ClearQueue done [20:40:11]KKMCreateOFDPacket [20:40:11]OFDProtocolAddRootSTLVToBuf [20:40:11]FM_MakeSignedData [20:40:11]FM_MakeSignedData [20:40:11]SAM_PROTO_SignData [20:40:11]wFMCommunicate request_size=4 [20:40:11]MH_SAM_APDU [20:40:11]CAPDU: 80 0D 01 02 [20:40:11]Write to MH i2c: E2 08 00 24 31 80 0D 01 02 00 00 00 00 CE [20:40:11]Write i2c OK [20:40:11]MH_I2C_Read... [20:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:11]Read from MH i2c: E2 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: E2 03 00 [20:40:11]MH_I2C_Read... [20:40:11]Read from MH i2c: E2 03 00 24 31 00 90 00 C9 [20:40:11]RAPDU: 90 00 [20:40:11]wFMCommunicate OK [20:40:11]wFMCommunicate request_size=255 [20:40:11]MH_SAM_APDU [20:40:11]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B0 DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [20:40:11]Write to MH i2c: E2 02 01 25 31 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B0 DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 CF [20:40:11]Write i2c OK [20:40:11]MH_I2C_Read... [20:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:12]Read from MH i2c: E2 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: E2 03 00 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: E2 03 00 25 31 00 90 00 CA [20:40:12]RAPDU: 90 00 [20:40:12]wFMCommunicate OK [20:40:12]wFMCommunicate request_size=32 [20:40:12]MH_SAM_APDU [20:40:12]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 40 7C 00 00 35 04 06 00 4E 2D 70 71 B8 0A [20:40:12]Write to MH i2c: E2 23 00 26 31 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 40 7C 00 00 35 04 06 00 4E 2D 70 71 B8 0A 00 00 10 [20:40:12]Write i2c OK [20:40:12]MH_I2C_Read... [20:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:12]Read from MH i2c: E2 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: E2 03 00 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: E2 03 00 26 31 00 90 00 CB [20:40:12]RAPDU: 90 00 [20:40:12]wFMCommunicate OK [20:40:12]wFMCommunicate request_size=4 [20:40:12]MH_SAM_APDU [20:40:12]CAPDU: 80 0D 03 02 [20:40:12]Write to MH i2c: E2 08 00 27 31 80 0D 03 02 00 00 00 00 D3 [20:40:12]Write i2c OK [20:40:12]MH_I2C_Read... [20:40:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:12]Read from MH i2c: E2 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: E2 0B 00 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: E2 0B 00 27 31 00 59 CE 6D A2 6B C8 79 5F 90 00 15 [20:40:12]RAPDU: 59 CE 6D A2 6B C8 79 5F 90 00 [20:40:12]wFMCommunicate OK [20:40:12]SAM_PROTO_SignData done [20:40:12]FM_MakeSignedData done [20:40:12]CreateOFDProtocolMessage [20:40:12]wFMCommunicate request_size=4 [20:40:12]MH_SAM_APDU [20:40:12]CAPDU: 80 11 00 00 [20:40:12]Write to MH i2c: E2 08 00 28 31 80 11 00 00 00 00 00 00 D3 [20:40:12]Write i2c OK [20:40:12]MH_I2C_Read... [20:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:12]Read from MH i2c: E2 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: E2 17 00 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: E2 17 00 28 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2E [20:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:40:12]wFMCommunicate OK [20:40:12]CreateOFDProtocolMessage done [20:40:12]OFDSenderStorePacket 31808 [20:40:12]StoreOFDPacket docnum=31808 [20:40:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 92 51 1D 01 A4 EC 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B0 DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 40 7C 00 00 35 04 06 00 4E 2D 70 71 B8 0A 59 CE 6D A2 6B C8 79 5F [20:40:12]CheckFolder [20:40:12]dirname=/storage/ofd_packets [20:40:12]CheckFolder done [20:40:12]ProducePacketName [20:40:12]name=ofd_packets/00031808 [20:40:12]NVStorageSaveData ofd_packets/00031808 [20:40:12]File name is /storage/ofd_packets/00031808 [20:40:12]Write 323 bytes [20:40:12]NVStorageSaveData done [20:40:12]OFDSenderStorePacket done [20:40:12]KKMCreateOFDPacket done [20:40:12]NVStorageSaveData kkm_last_timestamp [20:40:12]File name is /storage/kkm_last_timestamp [20:40:12]Write 4 bytes [20:40:12]NVStorageSaveData done [20:40:12]ExternCall_PrintAddStr [20:40:12]wPrintStart [20:40:12]Write to MH i2c: 01 00 00 29 31 5A [20:40:12]OFD Sender: Processing packet 31808 [packets to send 6, broken 5] [20:40:12]ProducePacketName [20:40:12]name=ofd_packets/00031808 [20:40:12]OFD Sender: To server: pG, [20:40:12]CommunicateWithHost lk.salyk.kg:30040 [20:40:12]ConnectInit lk.salyk.kg [20:40:12]Write i2c OK [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: 01 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: 01 07 00 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: 01 07 00 29 31 00 00 00 00 00 FF 0F 6F [20:40:12]RasterBufferAndPrint [20:40:12]line Счет N : (3)214389 [20:40:12]line ИНН: 02508201610067 [20:40:12]line Контрольно-Кассовый Чек [20:40:12]line ПРОДАЖА [20:40:12]line Товар: 4700002082931 [20:40:12]line Водка Хорошая 0,1л [20:40:12]line 2.000 * 70.00 [20:40:12]line = 140.00 [20:40:12]line НДС 12% НСП 1% [20:40:12]line > о реализуемом товаре [20:40:12]line ИТОГО: 140.00 [20:40:12]line НСП 1% : 1.24 [20:40:12]line НДС 12% : 14.87 [20:40:12]line Наличными: 140.00 [20:40:12]line Безнал.: 0.00 [20:40:12]line Место: АЗС № 140 "Партнер Нефть" [20:40:12]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [20:40:12]line СНО: Общий режим [20:40:12]line Чек 127 16.07.2024 20:40 [20:40:12]line Смена: 371 ФФД: 1.0 [20:40:12]line ЗНМ: 0300000189 [20:40:12]line РНМ: 0000000000098025 [20:40:12]line Версия ККМ: 001 [20:40:12]line ФМ: 0000000000965389 [20:40:12]line ФД: 31808 [20:40:12]line ФПД: 85957066995722 [20:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T204016&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31808&fm=85957066995722&tin=02508201610067®Number=0000000000098025&sum=14000 [20:40:12]line 0 [20:40:12]written 0, free lines is 4095 [20:40:12]Connected sock=10 [20:40:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 92 51 1D 01 A4 EC 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 B0 DA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 40 7C 00 00 35 04 06 00 4E 2D 70 71 B8 0A 59 CE 6D A2 6B C8 79 5F [20:40:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 84 26 47 00 AF 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 40 7C 00 00 F4 03 04 00 BC 86 96 66 B6 04 01 00 00 4D D6 29 E0 D7 FB F4 66 [20:40:12]CommunicateWithHost err = 0 [20:40:12]CheckOFDResponse [20:40:12]1017 (14) - 77093643461234 [20:40:12]1041 (16) - 0000000000965389 [20:40:12]1040 (4) - 31808 [20:40:12]1012 (4) - 16.07.2024 14:42 [20:40:12]1206 (1) - 0 [20:40:12]OFD Sender: Remove packet 31808 [20:40:12]ProducePacketName [20:40:12]name=ofd_packets/00031808 [20:40:12]NVStorageDeleteData [20:40:12]Write to MH i2c: 01 00 00 51 31 82 [20:40:12]Write i2c OK [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: 01 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: 01 07 00 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: 01 07 00 51 31 00 00 00 00 00 FE 0C 93 [20:40:12]RasterBufferAndPrint [20:40:12]line [20:40:12]line [20:40:12]line [20:40:12]line [20:40:12]line [20:40:12]written 0, free lines is 3332 [20:40:12]MH_Cut [20:40:12]Write to MH i2c: D1 01 00 58 31 01 5B [20:40:12]Write i2c OK [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: D1 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: D1 01 00 [20:40:12]MH_I2C_Read... [20:40:12]Read from MH i2c: D1 01 00 58 31 00 5A [20:40:12]Write to MH i2c: 01 00 00 59 31 8A [20:40:12]Write i2c OK [20:40:12]MH_I2C_Read... [20:40:13]OFD Sender: No OFD packet to send [20:40:13]*** Cut start [20:40:13]*** Partial cut [20:40:13]*** CUTSNS_PIN = 1 [20:40:13]*** CUTSNS_PIN = 0 [20:40:13]*** Brake cut motor [20:40:14]Read from MH i2c: 01 [20:40:14]MH_I2C_Read... [20:40:14]*** Stop cut motor [20:40:14]*** Cut end [20:40:14]Read from MH i2c: 01 07 00 [20:40:14]MH_I2C_Read... [20:40:14]Read from MH i2c: 01 07 00 59 31 00 00 00 00 00 FF 0F 9F [20:40:14]process_action close_receipt done [20:40:14]requested_data is exist [20:40:14]produce_requested_data [20:40:14]requested_item fm.sn is exist - process it [20:40:14]wFMCommunicate request_size=4 [20:40:14]MH_SAM_APDU [20:40:14]CAPDU: 80 11 00 00 [20:40:14]Write to MH i2c: E2 08 00 5A 31 80 11 00 00 00 00 00 00 05 [20:40:14]Write i2c OK [20:40:14]MH_I2C_Read... [20:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:14]Read from MH i2c: E2 [20:40:14]MH_I2C_Read... [20:40:14]Read from MH i2c: E2 17 00 [20:40:14]MH_I2C_Read... [20:40:14]Read from MH i2c: E2 17 00 5A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 60 [20:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [20:40:14]wFMCommunicate OK [20:40:14]requested_item fd.num is exist - process it [20:40:14]SAM_PROTO_GetFieldsCounters [20:40:14]wFMCommunicate request_size=4 [20:40:14]MH_SAM_APDU [20:40:14]CAPDU: 80 13 00 00 [20:40:14]Write to MH i2c: E2 08 00 5B 31 80 13 00 00 00 00 00 00 08 [20:40:14]Write i2c OK [20:40:14]MH_I2C_Read... [20:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:14]Read from MH i2c: E2 [20:40:14]MH_I2C_Read... [20:40:14]Read from MH i2c: E2 62 00 [20:40:14]MH_I2C_Read... [20:40:14]Read from MH i2c: E2 62 00 5B 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 40 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [20:40:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 40 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 7F 00 00 00 5E 04 04 00 7F 00 00 00 57 04 04 00 80 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:14]wFMCommunicate OK [20:40:14]SAM_PROTO_GetFieldsCounters done [20:40:14]requested_item shift.num is exist - process it [20:40:14]requested_item shift.opened is exist - process it [20:40:14]req_shift_opened [20:40:14]FM_GetShiftState [20:40:14]SAM_PROTO_GetShiftState [20:40:14]wFMCommunicate request_size=4 [20:40:14]MH_SAM_APDU [20:40:14]CAPDU: 80 13 01 00 [20:40:14]Write to MH i2c: E2 08 00 5C 31 80 13 01 00 00 00 00 00 0A [20:40:14]Write i2c OK [20:40:14]MH_I2C_Read... [20:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:14]Read from MH i2c: E2 [20:40:14]MH_I2C_Read... [20:40:14]Read from MH i2c: E2 0E 00 [20:40:14]MH_I2C_Read... [20:40:14]Read from MH i2c: E2 0E 00 5C 31 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 59 [20:40:14]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [20:40:14]wFMCommunicate OK [20:40:14]SAM_PROTO_GetShiftState done [20:40:14]FM_GetShiftState done [20:40:14]req_shift_opened done [20:40:14]requested_item shift.open_date is exist - process it [20:40:14]req_shift_open_date [20:40:14]req_shift_open_date done [20:40:14]produce_requested_data done [20:40:14]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31808,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [20:40:14]process_action_free close_receipt [20:40:14]json_value_free [20:40:14]json_value_free done [20:40:14]process_json_proto returns [20:40:14]Send response to host [20:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31808,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [20:40:14]free response buf [20:40:14]execute_script done [20:40:14]execute_script returns [20:40:14]free content buf [20:40:14]Sock 9.Close socket [20:40:14]Sock 9.Thread stoped [20:40:18]OFD Sender: No OFD packet to send [20:40:23]OFD Sender: No OFD packet to send [20:40:28]OFD Sender: No OFD packet to send [20:40:33]OFD Sender: No OFD packet to send [20:40:38]OFD Sender: No OFD packet to send [20:40:43]OFD Sender: No OFD packet to send [20:40:48]OFD Sender: No OFD packet to send [20:40:53]OFD Sender: No OFD packet to send [20:40:58]OFD Sender: No OFD packet to send [20:41:03]OFD Sender: No OFD packet to send [20:41:08]OFD Sender: No OFD packet to send [20:41:13]OFD Sender: No OFD packet to send [20:41:18]OFD Sender: No OFD packet to send [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:03]OFD Sender: No OFD packet to send [20:43:08]OFD Sender: No OFD packet to send [20:43:13]OFD Sender: No OFD packet to send [20:43:18]OFD Sender: No OFD packet to send [20:43:23]OFD Sender: No OFD packet to send [20:43:28]OFD Sender: No OFD packet to send [20:43:33]OFD Sender: No OFD packet to send [20:43:38]OFD Sender: No OFD packet to send [20:43:43]OFD Sender: No OFD packet to send [20:43:48]OFD Sender: No OFD packet to send [20:43:53]OFD Sender: No OFD packet to send [20:43:58]OFD Sender: No OFD packet to send [20:44:03]OFD Sender: No OFD packet to send [20:44:08]OFD Sender: No OFD packet to send [20:44:13]OFD Sender: No OFD packet to send [20:44:18]OFD Sender: No OFD packet to send [20:44:23]OFD Sender: No OFD packet to send [20:44:28]OFD Sender: No OFD packet to send [20:44:33]OFD Sender: No OFD packet to send [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:53]OFD Sender: No OFD packet to send [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]OFD Sender: No OFD packet to send [20:46:08]OFD Sender: No OFD packet to send [20:46:13]OFD Sender: No OFD packet to send [20:46:18]OFD Sender: No OFD packet to send [20:46:23]OFD Sender: No OFD packet to send [20:46:28]OFD Sender: No OFD packet to send [20:46:33]OFD Sender: No OFD packet to send [20:46:38]OFD Sender: No OFD packet to send [20:46:43]OFD Sender: No OFD packet to send [20:46:48]OFD Sender: No OFD packet to send [20:46:53]OFD Sender: No OFD packet to send [20:46:58]OFD Sender: No OFD packet to send [20:47:03]OFD Sender: No OFD packet to send [20:47:08]OFD Sender: No OFD packet to send [20:47:13]OFD Sender: No OFD packet to send [20:47:18]OFD Sender: No OFD packet to send [20:47:23]OFD Sender: No OFD packet to send [20:47:28]OFD Sender: No OFD packet to send [20:47:33]OFD Sender: No OFD packet to send [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:43]OFD Sender: No OFD packet to send [20:48:48]OFD Sender: No OFD packet to send [20:48:53]OFD Sender: No OFD packet to send [20:48:58]OFD Sender: No OFD packet to send [20:49:03]OFD Sender: No OFD packet to send [20:49:08]OFD Sender: No OFD packet to send [20:49:13]OFD Sender: No OFD packet to send [20:49:18]OFD Sender: No OFD packet to send [20:49:23]OFD Sender: No OFD packet to send [20:49:28]OFD Sender: No OFD packet to send [20:49:33]OFD Sender: No OFD packet to send [20:49:38]OFD Sender: No OFD packet to send [20:49:43]OFD Sender: No OFD packet to send [20:49:48]OFD Sender: No OFD packet to send [20:49:53]OFD Sender: No OFD packet to send [20:49:58]OFD Sender: No OFD packet to send [20:50:03]OFD Sender: No OFD packet to send [20:50:08]OFD Sender: No OFD packet to send [20:50:13]OFD Sender: No OFD packet to send [20:50:18]OFD Sender: No OFD packet to send [20:50:23]OFD Sender: No OFD packet to send [20:50:28]OFD Sender: No OFD packet to send [20:50:33]OFD Sender: No OFD packet to send [20:50:38]OFD Sender: No OFD packet to send [20:50:43]OFD Sender: No OFD packet to send [20:50:48]OFD Sender: No OFD packet to send [20:50:53]OFD Sender: No OFD packet to send [20:50:58]OFD Sender: No OFD packet to send [20:51:03]OFD Sender: No OFD packet to send [20:51:08]OFD Sender: No OFD packet to send [20:51:13]OFD Sender: No OFD packet to send [20:51:18]OFD Sender: No OFD packet to send [20:51:23]OFD Sender: No OFD packet to send [20:51:28]OFD Sender: No OFD packet to send [20:51:33]OFD Sender: No OFD packet to send [20:51:38]OFD Sender: No OFD packet to send [20:51:43]OFD Sender: No OFD packet to send [20:51:48]OFD Sender: No OFD packet to send [20:51:53]OFD Sender: No OFD packet to send [20:51:58]OFD Sender: No OFD packet to send [20:52:03]OFD Sender: No OFD packet to send [20:52:08]OFD Sender: No OFD packet to send [20:52:13]OFD Sender: No OFD packet to send [20:52:18]OFD Sender: No OFD packet to send [20:52:23]OFD Sender: No OFD packet to send [20:52:28]OFD Sender: No OFD packet to send [20:52:33]OFD Sender: No OFD packet to send [20:52:38]OFD Sender: No OFD packet to send [20:52:43]OFD Sender: No OFD packet to send [20:52:48]OFD Sender: No OFD packet to send [20:52:53]OFD Sender: No OFD packet to send [20:52:58]OFD Sender: No OFD packet to send [20:53:03]OFD Sender: No OFD packet to send [20:53:08]OFD Sender: No OFD packet to send [20:53:13]OFD Sender: No OFD packet to send [20:53:18]OFD Sender: No OFD packet to send [20:53:23]OFD Sender: No OFD packet to send [20:53:28]OFD Sender: No OFD packet to send [20:53:33]OFD Sender: No OFD packet to send [20:53:38]OFD Sender: No OFD packet to send [20:53:43]OFD Sender: No OFD packet to send [20:53:48]OFD Sender: No OFD packet to send [20:53:53]OFD Sender: No OFD packet to send [20:53:58]OFD Sender: No OFD packet to send [20:54:03]OFD Sender: No OFD packet to send [20:54:08]OFD Sender: No OFD packet to send [20:54:13]OFD Sender: No OFD packet to send [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56: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:39]OFD Sender: No OFD packet to send [21:01:44]OFD Sender: No OFD packet to send [21:01:49]OFD Sender: No OFD packet to send [21:01:54]OFD Sender: No OFD packet to send [21:01:59]OFD Sender: No OFD packet to send [21:02:04]OFD Sender: No OFD packet to send [21:02:09]OFD Sender: No OFD packet to send [21:02:14]OFD Sender: No OFD packet to send [21:02:19]OFD Sender: No OFD packet to send [21:02:24]OFD Sender: No OFD packet to send [21:02:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:49]OFD Sender: No OFD packet to send [21:03:54]OFD Sender: No OFD packet to send [21:03:59]OFD Sender: No OFD packet to send [21:04:04]OFD Sender: No OFD packet to send [21:04:09]OFD Sender: No OFD packet to send [21:04:14]OFD Sender: No OFD packet to send [21:04:19]OFD Sender: No OFD packet to send [21:04:24]OFD Sender: No OFD packet to send [21:04:29]OFD Sender: No OFD packet to send [21:04:34]OFD Sender: No OFD packet to send [21:04:39]OFD Sender: No OFD packet to send [21:04:44]OFD Sender: No OFD packet to send [21:04:49]OFD Sender: No OFD packet to send [21:04:54]OFD Sender: No OFD packet to send [21:04:59]OFD Sender: No OFD packet to send [21:05:04]OFD Sender: No OFD packet to send [21:05:09]OFD Sender: No OFD packet to send [21:05:14]OFD Sender: No OFD packet to send [21:05:19]OFD Sender: No OFD packet to send [21:05:24]OFD Sender: No OFD packet to send [21:05:29]OFD Sender: No OFD packet to send [21:05:34]OFD Sender: No OFD packet to send [21:05:39]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:24]OFD Sender: No OFD packet to send [21:10:29]OFD Sender: No OFD packet to send [21:10:34]OFD Sender: No OFD packet to send [21:10:39]OFD Sender: No OFD packet to send [21:10:44]OFD Sender: No OFD packet to send [21:10:49]OFD Sender: No OFD packet to send [21:10:54]OFD Sender: No OFD packet to send [21:10:59]OFD Sender: No OFD packet to send [21:11:04]OFD Sender: No OFD packet to send [21:11:09]OFD Sender: No OFD packet to send [21:11:14]OFD Sender: No OFD packet to send [21:11:19]OFD Sender: No OFD packet to send [21:11:24]OFD Sender: No OFD packet to send [21:11:29]OFD Sender: No OFD packet to send [21:11:34]OFD Sender: No OFD packet to send [21:11:39]OFD Sender: No OFD packet to send [21:11:44]OFD Sender: No OFD packet to send [21:11:49]OFD Sender: No OFD packet to send [21:11:54]OFD Sender: No OFD packet to send [21:11:59]OFD Sender: No OFD packet to send [21:12:04]OFD Sender: No OFD packet to send [21:12:09]OFD Sender: No OFD packet to send [21:12:14]OFD Sender: No OFD packet to send [21:12:19]OFD Sender: No OFD packet to send [21:12:24]OFD Sender: No OFD packet to send [21:12:29]OFD Sender: No OFD packet to send [21:12:34]OFD Sender: No OFD packet to send [21:12:39]OFD Sender: No OFD packet to send [21:12:44]OFD Sender: No OFD packet to send [21:12:49]OFD Sender: No OFD packet to send [21:12:54]OFD Sender: No OFD packet to send [21:12:59]OFD Sender: No OFD packet to send [21:13:04]OFD Sender: No OFD packet to send [21:13:09]OFD Sender: No OFD packet to send [21:13:14]OFD Sender: No OFD packet to send [21:13:19]OFD Sender: No OFD packet to send [21:13:24]OFD Sender: No OFD packet to send [21:13:29]OFD Sender: No OFD packet to send [21:13:34]OFD Sender: No OFD packet to send [21:13:39]OFD Sender: No OFD packet to send [21:13:44]OFD Sender: No OFD packet to send [21:13:49]OFD Sender: No OFD packet to send [21:13:54]OFD Sender: No OFD packet to send [21:13:59]OFD Sender: No OFD packet to send [21:14:04]OFD Sender: No OFD packet to send [21:14:09]OFD Sender: No OFD packet to send [21:14:14]OFD Sender: No OFD packet to send [21:14:19]OFD Sender: No OFD packet to send [21:14:24]OFD Sender: No OFD packet to send [21:14:29]OFD Sender: No OFD packet to send [21:14:34]OFD Sender: No OFD packet to send [21:14:39]OFD Sender: No OFD packet to send [21:14:42]accept exits with 7 [21:14:42]New connection [21:14:42]New thread 3066965348 created [21:14:42]Thread 3066821988 joined [21:14:42]Waiting for new connection... [21:14:42] Sock 7.Parse request [21:14:42]Sock 7.Check first char [21:14:42]Sock 7.First char is OK [21:14:42]request: POST /json_proto HTTP/1.0 [21:14:42]Method: POST [21:14:42]URL: /json_proto [21:14:42]Method is POST - this is cgi request [21:14:42]url: /json_proto [21:14:42]query_string will be loaded in cgi processing [21:14:42]execute_cgi json_proto POST (null) [21:14:42]execute_cgi path=json_proto method=POST [21:14:42]POST find Content-Length [21:14:42]Host: 172.17.39.68:8080 [21:14:42]Content-Length: 637 [21:14:42]Content-Type: application/json [21:14:42] [21:14:42]POST finish read [21:14:42]Found Content-Length = 637 [21:14:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214390", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:42]execute_script... [21:14: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)214390", "tax_sys" : 0, "items" : [ { "code": "4700003610546", "name": "\u0412\u043E\u0434\u0430 \u0421orona Ice \u043D\u0435\u0433\u0430\u0437 6\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:14:42]POST & json_proto [21:14:42]process_json_proto [21:14:42]json parsed OK: [21:14:42]protocol is kg_v1.0 [21:14:42]action value=close_receipt [21:14:42]process_action close_receipt [21:14:42]cmd_close_receipt [21:14:42]MH_GetDate [21:14:42]Write to MH i2c: F0 00 00 5D 31 7D [21:14:42]Write i2c OK [21:14:42]MH_I2C_Read... [21:14:42]Read from MH i2c: F0 [21:14:42]MH_I2C_Read... [21:14:42]Read from MH i2c: F0 09 00 [21:14:42]MH_I2C_Read... [21:14:42]Read from MH i2c: F0 09 00 5D 31 00 C9 E2 96 66 D6 48 95 66 46 [21:14:42]GetLastDocTimeStamp 1721162416 [21:14:42]current date 1721164489 [21:14:42]FM_GetShiftState [21:14:42]SAM_PROTO_GetShiftState [21:14:42]wFMCommunicate request_size=4 [21:14:42]MH_SAM_APDU [21:14:42]CAPDU: 80 13 01 00 [21:14:42]Write to MH i2c: E2 08 00 5E 31 80 13 01 00 00 00 00 00 0C [21:14:42]Write i2c OK [21:14:42]MH_I2C_Read... [21:14:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:42]Read from MH i2c: E2 [21:14:42]MH_I2C_Read... [21:14:42]Read from MH i2c: E2 0E 00 [21:14:42]MH_I2C_Read... [21:14:42]Read from MH i2c: E2 0E 00 5E 31 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 5B [21:14:42]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [21:14:42]wFMCommunicate OK [21:14:42]SAM_PROTO_GetShiftState done [21:14:42]FM_GetShiftState done [21:14:42]opened in 1721088399 [21:14:42]opened+sec_in_day 1721174799 [21:14:42]quantity*price = 10000 [21:14:42]sum+1 = 10001 [21:14:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 128 16.07.2024 21:14 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31809 ФПД: 46148580440845 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T211449&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31809&fm=46148580440845&tin=02508201610067®Number=0000000000098025&sum=10000 0 [21:14:43]StoreToDocumentArchive [21:14:43]shift 371 fd 31809 [21:14:43]save to /storage/0371/doc_00031809 [21:14:43]save last doc name /storage/0371/doc_00031809 to /storage/kkm_last_doc_name [21:14:43]save OK [21:14:43]Clear old archive folders... [21:14:43]ProcessDocumentItem done err = 0, tmpTLVsize=277 [21:14:43]tlvbuf is 015ED050 [21:14:43]SAM_PROTO_ClearQueue [21:14:43]wFMCommunicate request_size=4 [21:14:43]MH_SAM_APDU [21:14:43]CAPDU: 80 09 00 00 [21:14:43]Write to MH i2c: E2 08 00 6B 31 80 09 00 00 00 00 00 00 0E [21:14:43]Write i2c OK [21:14:43]MH_I2C_Read... [21:14:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:14:43]Read from MH i2c: E2 [21:14:43]MH_I2C_Read... [21:14:43]Read from MH i2c: E2 03 00 [21:14:43]MH_I2C_Read... [21:14:43]Read from MH i2c: E2 03 00 6B 31 00 90 00 10 [21:14:43]RAPDU: 90 00 [21:14:43]wFMCommunicate OK [21:14:43]SAM_PROTO_ClearQueue done [21:14:43]KKMCreateOFDPacket [21:14:43]OFDProtocolAddRootSTLVToBuf [21:14:43]FM_MakeSignedData [21:14:43]FM_MakeSignedData [21:14:43]SAM_PROTO_SignData [21:14:43]wFMCommunicate request_size=4 [21:14:43]MH_SAM_APDU [21:14:43]CAPDU: 80 0D 01 02 [21:14:43]Write to MH i2c: E2 08 00 6C 31 80 0D 01 02 00 00 00 00 16 [21:14:44]Write i2c OK [21:14:44]MH_I2C_Read... [21:14:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:14:44]Read from MH i2c: E2 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 03 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 03 00 6C 31 00 90 00 11 [21:14:44]RAPDU: 90 00 [21:14:44]wFMCommunicate OK [21:14:44]wFMCommunicate request_size=255 [21:14:44]MH_SAM_APDU [21:14:44]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C9 E2 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 [21:14:44]Write to MH i2c: E2 02 01 6D 31 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C9 E2 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 00 00 03 [21:14:44]Write i2c OK [21:14:44]MH_I2C_Read... [21:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:44]Read from MH i2c: E2 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 03 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 03 00 6D 31 00 90 00 12 [21:14:44]RAPDU: 90 00 [21:14:44]wFMCommunicate OK [21:14:44]wFMCommunicate request_size=36 [21:14:44]MH_SAM_APDU [21:14:44]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 41 7C 00 00 35 04 06 00 29 F8 CD BE 7B 0D [21:14:44]Write to MH i2c: E2 27 00 6E 31 80 0D 02 02 1F 00 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 41 7C 00 00 35 04 06 00 29 F8 CD BE 7B 0D 00 00 37 [21:14:44]Write i2c OK [21:14:44]MH_I2C_Read... [21:14:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:14:44]Read from MH i2c: E2 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 03 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 03 00 6E 31 00 90 00 13 [21:14:44]RAPDU: 90 00 [21:14:44]wFMCommunicate OK [21:14:44]wFMCommunicate request_size=4 [21:14:44]MH_SAM_APDU [21:14:44]CAPDU: 80 0D 03 02 [21:14:44]Write to MH i2c: E2 08 00 6F 31 80 0D 03 02 00 00 00 00 1B [21:14:44]Write i2c OK [21:14:44]MH_I2C_Read... [21:14:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:14:44]Read from MH i2c: E2 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 0B 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 0B 00 6F 31 00 56 E6 20 85 EC 7E F1 B9 90 00 11 [21:14:44]RAPDU: 56 E6 20 85 EC 7E F1 B9 90 00 [21:14:44]wFMCommunicate OK [21:14:44]SAM_PROTO_SignData done [21:14:44]FM_MakeSignedData done [21:14:44]CreateOFDProtocolMessage [21:14:44]wFMCommunicate request_size=4 [21:14:44]MH_SAM_APDU [21:14:44]CAPDU: 80 11 00 00 [21:14:44]Write to MH i2c: E2 08 00 70 31 80 11 00 00 00 00 00 00 1B [21:14:44]Write i2c OK [21:14:44]MH_I2C_Read... [21:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:44]Read from MH i2c: E2 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 17 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: E2 17 00 70 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 76 [21:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:14:44]wFMCommunicate OK [21:14:44]CreateOFDProtocolMessage done [21:14:44]OFDSenderStorePacket 31809 [21:14:44]StoreOFDPacket docnum=31809 [21:14:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 29 01 00 00 53 A9 21 01 CD DA 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C9 E2 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 41 7C 00 00 35 04 06 00 29 F8 CD BE 7B 0D 56 E6 20 85 EC 7E F1 B9 [21:14:44]CheckFolder [21:14:44]dirname=/storage/ofd_packets [21:14:44]CheckFolder done [21:14:44]ProducePacketName [21:14:44]name=ofd_packets/00031809 [21:14:44]NVStorageSaveData ofd_packets/00031809 [21:14:44]File name is /storage/ofd_packets/00031809 [21:14:44]Write 327 bytes [21:14:44]NVStorageSaveData done [21:14:44]OFDSenderStorePacket done [21:14:44]KKMCreateOFDPacket done [21:14:44]NVStorageSaveData kkm_last_timestamp [21:14:44]File name is /storage/kkm_last_timestamp [21:14:44]Write 4 bytes [21:14:44]NVStorageSaveData done [21:14:44]ExternCall_PrintAddStr [21:14:44]wPrintStart [21:14:44]Write to MH i2c: 01 00 00 71 31 A2 [21:14:44]Write i2c OK [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: 01 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: 01 07 00 [21:14:44]MH_I2C_Read... [21:14:44]Read from MH i2c: 01 07 00 71 31 00 00 00 00 00 FF 0F B7 [21:14:44]RasterBufferAndPrint [21:14:44]line Счет N : (3)214390 [21:14:44]line ИНН: 02508201610067 [21:14:44]line Контрольно-Кассовый Чек [21:14:44]line ПРОДАЖА [21:14:44]line Товар: 4700003610546 [21:14:44]line Вода Сorona Ice негаз 6л [21:14:44]line 1.000 * 100.00 [21:14:44]line = 100.00 [21:14:44]line НДС 12% НСП 1% [21:14:44]line > о реализуемом товаре [21:14:44]line ИТОГО: 100.00 [21:14:44]line НСП 1% : 0.88 [21:14:44]line НДС 12% : 10.62 [21:14:44]line Наличными: 100.00 [21:14:44]line Безнал.: 0.00 [21:14:44]line Место: АЗС № 140 "Партнер Нефть" [21:14:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:14:44]line СНО: Общий режим [21:14:44]line Чек 128 16.07.2024 21:14 [21:14:44]line Смена: 371 ФФД: 1.0 [21:14:44]line ЗНМ: 0300000189 [21:14:44]line РНМ: 0000000000098025 [21:14:44]line Версия ККМ: 001 [21:14:44]line ФМ: 0000000000965389 [21:14:44]line ФД: 31809 [21:14:44]line ФПД: 46148580440845 [21:14:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T211449&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31809&fm=46148580440845&tin=02508201610067®Number=0000000000098025&sum=10000 [21:14:44]OFD Sender: Processing packet 31809 [packets to send 6, broken 5] [21:14:44]ProducePacketName [21:14:44]name=ofd_packets/00031809 [21:14:44]OFD Sender: To server: pG, [21:14:44]CommunicateWithHost lk.salyk.kg:30040 [21:14:44]ConnectInit lk.salyk.kg [21:14:44]line 0 [21:14:44]written 0, free lines is 4095 [21:14:44]Connected sock=9 [21:14:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 29 01 00 00 53 A9 21 01 CD DA 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 34 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 A1 6F 72 6F 6E 61 20 49 63 65 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 36 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 C9 E2 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 41 7C 00 00 35 04 06 00 29 F8 CD BE 7B 0D 56 E6 20 85 EC 7E F1 B9 [21:14:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 C7 D1 47 00 1D 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 41 7C 00 00 F4 03 04 00 D5 8E 96 66 B6 04 01 00 00 EE 4A 1D A9 E0 CA 20 C5 [21:14:45]CommunicateWithHost err = 0 [21:14:45]CheckOFDResponse [21:14:45]1017 (14) - 77093643461234 [21:14:45]1041 (16) - 0000000000965389 [21:14:45]1040 (4) - 31809 [21:14:45]1012 (4) - 16.07.2024 15:16 [21:14:45]1206 (1) - 0 [21:14:45]OFD Sender: Remove packet 31809 [21:14:45]ProducePacketName [21:14:45]name=ofd_packets/00031809 [21:14:45]NVStorageDeleteData [21:14:45]Write to MH i2c: 01 00 00 99 31 CA [21:14:45]Write i2c OK [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: 01 [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: 01 07 00 [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: 01 07 00 99 31 00 00 00 00 00 16 0D F4 [21:14:45]RasterBufferAndPrint [21:14:45]line [21:14:45]line [21:14:45]line [21:14:45]line [21:14:45]line [21:14:45]written 0, free lines is 3358 [21:14:45]MH_Cut [21:14:45]Write to MH i2c: D1 01 00 A0 31 01 A3 [21:14:45]Write i2c OK [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: D1 [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: D1 01 00 [21:14:45]MH_I2C_Read... [21:14:45]Read from MH i2c: D1 01 00 A0 31 00 A2 [21:14:45]Write to MH i2c: 01 00 00 A1 31 D2 [21:14:45]Write i2c OK [21:14:45]MH_I2C_Read... [21:14:45]OFD Sender: No OFD packet to send [21:14:45]*** Cut start [21:14:45]*** Partial cut [21:14:45]*** CUTSNS_PIN = 1 [21:14:46]*** CUTSNS_PIN = 0 [21:14:46]*** Brake cut motor [21:14:46]Read from MH i2c: 01 [21:14:46]MH_I2C_Read... [21:14:46]*** Stop cut motor [21:14:46]*** Cut end [21:14:46]Read from MH i2c: 01 07 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: 01 07 00 A1 31 00 00 00 00 00 FF 0F E7 [21:14:46]process_action close_receipt done [21:14:46]requested_data is exist [21:14:46]produce_requested_data [21:14:46]requested_item fm.sn is exist - process it [21:14:46]wFMCommunicate request_size=4 [21:14:46]MH_SAM_APDU [21:14:46]CAPDU: 80 11 00 00 [21:14:46]Write to MH i2c: E2 08 00 A2 31 80 11 00 00 00 00 00 00 4D [21:14:46]Write i2c OK [21:14:46]MH_I2C_Read... [21:14:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:14:46]Read from MH i2c: E2 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 17 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 17 00 A2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A8 [21:14:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:14:46]wFMCommunicate OK [21:14:46]requested_item fd.num is exist - process it [21:14:46]SAM_PROTO_GetFieldsCounters [21:14:46]wFMCommunicate request_size=4 [21:14:46]MH_SAM_APDU [21:14:46]CAPDU: 80 13 00 00 [21:14:46]Write to MH i2c: E2 08 00 A3 31 80 13 00 00 00 00 00 00 50 [21:14:46]Write i2c OK [21:14:46]MH_I2C_Read... [21:14:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:14:46]Read from MH i2c: E2 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 62 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 62 00 A3 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 41 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [21:14: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 41 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 80 00 00 00 5E 04 04 00 80 00 00 00 57 04 04 00 81 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:14:46]wFMCommunicate OK [21:14:46]SAM_PROTO_GetFieldsCounters done [21:14:46]requested_item shift.num is exist - process it [21:14:46]requested_item shift.opened is exist - process it [21:14:46]req_shift_opened [21:14:46]FM_GetShiftState [21:14:46]SAM_PROTO_GetShiftState [21:14:46]wFMCommunicate request_size=4 [21:14:46]MH_SAM_APDU [21:14:46]CAPDU: 80 13 01 00 [21:14:46]Write to MH i2c: E2 08 00 A4 31 80 13 01 00 00 00 00 00 52 [21:14:46]Write i2c OK [21:14:46]MH_I2C_Read... [21:14:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:14:46]Read from MH i2c: E2 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 0E 00 [21:14:46]MH_I2C_Read... [21:14:46]Read from MH i2c: E2 0E 00 A4 31 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A1 [21:14:46]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [21:14:46]wFMCommunicate OK [21:14:46]SAM_PROTO_GetShiftState done [21:14:46]FM_GetShiftState done [21:14:46]req_shift_opened done [21:14:46]requested_item shift.open_date is exist - process it [21:14:46]req_shift_open_date [21:14:46]req_shift_open_date done [21:14:46]produce_requested_data done [21:14:46]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31809,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [21:14:46]process_action_free close_receipt [21:14:46]json_value_free [21:14:46]json_value_free done [21:14:46]process_json_proto returns [21:14:46]Send response to host [21:14:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31809,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [21:14:46]free response buf [21:14:46]execute_script done [21:14:46]execute_script returns [21:14:46]free content buf [21:14:46]Sock 7.Close socket [21:14:46]Sock 7.Thread stoped [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:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:51]OFD Sender: No OFD packet to send [21:28:56]OFD Sender: No OFD packet to send [21:29:01]OFD Sender: No OFD packet to send [21:29:06]OFD Sender: No OFD packet to send [21:29:11]OFD Sender: No OFD packet to send [21:29:16]OFD Sender: No OFD packet to send [21:29:21]OFD Sender: No OFD packet to send [21:29:26]OFD Sender: No OFD packet to send [21:29:31]OFD Sender: No OFD packet to send [21:29:36]OFD Sender: No OFD packet to send [21:29:41]OFD Sender: No OFD packet to send [21:29:46]OFD Sender: No OFD packet to send [21:29:51]OFD Sender: No OFD packet to send [21:29:56]OFD Sender: No OFD packet to send [21:30:01]OFD Sender: No OFD packet to send [21:30:06]OFD Sender: No OFD packet to send [21:30:11]OFD Sender: No OFD packet to send [21:30:16]OFD Sender: No OFD packet to send [21:30:21]OFD Sender: No OFD packet to send [21:30:26]OFD Sender: No OFD packet to send [21:30:31]OFD Sender: No OFD packet to send [21:30:36]OFD Sender: No OFD packet to send [21:30:41]OFD Sender: No OFD packet to send [21:30:46]OFD Sender: No OFD packet to send [21:30:51]OFD Sender: No OFD packet to send [21:30:56]OFD Sender: No OFD packet to send [21:31:01]OFD Sender: No OFD packet to send [21:31:06]OFD Sender: No OFD packet to send [21:31:11]OFD Sender: No OFD packet to send [21:31:16]OFD Sender: No OFD packet to send [21:31:21]OFD Sender: No OFD packet to send [21:31:26]OFD Sender: No OFD packet to send [21:31:31]OFD Sender: No OFD packet to send [21:31:36]OFD Sender: No OFD packet to send [21:31:41]OFD Sender: No OFD packet to send [21:31:46]OFD Sender: No OFD packet to send [21:31:51]OFD Sender: No OFD packet to send [21:31:56]OFD Sender: No OFD packet to send [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:56]OFD Sender: No OFD packet to send [21:34:01]OFD Sender: No OFD packet to send [21:34:06]OFD Sender: No OFD packet to send [21:34:11]OFD Sender: No OFD packet to send [21:34:16]OFD Sender: No OFD packet to send [21:34:21]OFD Sender: No OFD packet to send [21:34:26]OFD Sender: No OFD packet to send [21:34:31]OFD Sender: No OFD packet to send [21:34:36]OFD Sender: No OFD packet to send [21:34:41]OFD Sender: No OFD packet to send [21:34:46]OFD Sender: No OFD packet to send [21:34:51]OFD Sender: No OFD packet to send [21:34:56]OFD Sender: No OFD packet to send [21:35:01]OFD Sender: No OFD packet to send [21:35:06]OFD Sender: No OFD packet to send [21:35:11]OFD Sender: No OFD packet to send [21:35:16]OFD Sender: No OFD packet to send [21:35:21]OFD Sender: No OFD packet to send [21:35:26]OFD Sender: No OFD packet to send [21:35:31]OFD Sender: No OFD packet to send [21:35:36]OFD Sender: No OFD packet to send [21:35:41]OFD Sender: No OFD packet to send [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:56]OFD Sender: No OFD packet to send [21:37:01]OFD Sender: No OFD packet to send [21:37:06]OFD Sender: No OFD packet to send [21:37:11]OFD Sender: No OFD packet to send [21:37:16]OFD Sender: No OFD packet to send [21:37:21]OFD Sender: No OFD packet to send [21:37:26]OFD Sender: No OFD packet to send [21:37:31]OFD Sender: No OFD packet to send [21:37:36]OFD Sender: No OFD packet to send [21:37:41]OFD Sender: No OFD packet to send [21:37:46]OFD Sender: No OFD packet to send [21:37:51]OFD Sender: No OFD packet to send [21:37:56]OFD Sender: No OFD packet to send [21:38:01]OFD Sender: No OFD packet to send [21:38:06]OFD Sender: No OFD packet to send [21:38:11]OFD Sender: No OFD packet to send [21:38:16]OFD Sender: No OFD packet to send [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:21]OFD Sender: No OFD packet to send [21:41:26]OFD Sender: No OFD packet to send [21:41:31]OFD Sender: No OFD packet to send [21:41:36]OFD Sender: No OFD packet to send [21:41:41]OFD Sender: No OFD packet to send [21:41:46]OFD Sender: No OFD packet to send [21:41:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:52]OFD Sender: No OFD packet to send [21:45:57]OFD Sender: No OFD packet to send [21:46:02]OFD Sender: No OFD packet to send [21:46:07]OFD Sender: No OFD packet to send [21:46:12]OFD Sender: No OFD packet to send [21:46:17]OFD Sender: No OFD packet to send [21:46:22]OFD Sender: No OFD packet to send [21:46:27]OFD Sender: No OFD packet to send [21:46:32]OFD Sender: No OFD packet to send [21:46:37]OFD Sender: No OFD packet to send [21:46:42]OFD Sender: No OFD packet to send [21:46:47]OFD Sender: No OFD packet to send [21:46:52]OFD Sender: No OFD packet to send [21:46:57]OFD Sender: No OFD packet to send [21:47:02]OFD Sender: No OFD packet to send [21:47:07]OFD Sender: No OFD packet to send [21:47:12]OFD Sender: No OFD packet to send [21:47:17]OFD Sender: No OFD packet to send [21:47:22]OFD Sender: No OFD packet to send [21:47:27]OFD Sender: No OFD packet to send [21:47:32]OFD Sender: No OFD packet to send [21:47:37]OFD Sender: No OFD packet to send [21:47:42]OFD Sender: No OFD packet to send [21:47:47]OFD Sender: No OFD packet to send [21:47:52]OFD Sender: No OFD packet to send [21:47:57]OFD Sender: No OFD packet to send [21:48:02]OFD Sender: No OFD packet to send [21:48:07]OFD Sender: No OFD packet to send [21:48:12]OFD Sender: No OFD packet to send [21:48:17]OFD Sender: No OFD packet to send [21:48:22]OFD Sender: No OFD packet to send [21:48:27]OFD Sender: No OFD packet to send [21:48:32]OFD Sender: No OFD packet to send [21:48:37]OFD Sender: No OFD packet to send [21:48:42]OFD Sender: No OFD packet to send [21:48:47]OFD Sender: No OFD packet to send [21:48:52]OFD Sender: No OFD packet to send [21:48:57]OFD Sender: No OFD packet to send [21:49:00]accept exits with 10 [21:49:00]New connection [21:49:00]New thread 3066821988 created [21:49:00]Thread 3066965348 joined [21:49:00]Waiting for new connection... [21:49:00] Sock 10.Parse request [21:49:00]Sock 10.Check first char [21:49:00]Sock 10.First char is OK [21:49:00]request: POST /json_proto HTTP/1.0 [21:49:00]Method: POST [21:49:00]URL: /json_proto [21:49:00]Method is POST - this is cgi request [21:49:00]url: /json_proto [21:49:00]query_string will be loaded in cgi processing [21:49:00]execute_cgi json_proto POST (null) [21:49:00]execute_cgi path=json_proto method=POST [21:49:00]POST find Content-Length [21:49:00]Host: 172.17.39.68:8080 [21:49:00]Content-Length: 633 [21:49:00]Content-Type: application/json [21:49:00] [21:49:00]POST finish read [21:49:00]Found Content-Length = 633 [21:49:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214391", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "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:49:00]execute_script... [21:49:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214391", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "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:49:00]POST & json_proto [21:49:00]process_json_proto [21:49:00]json parsed OK: [21:49:00]protocol is kg_v1.0 [21:49:00]action value=close_receipt [21:49:00]process_action close_receipt [21:49:00]cmd_close_receipt [21:49:00]MH_GetDate [21:49:00]Write to MH i2c: F0 00 00 A5 31 C5 [21:49:00]Write i2c OK [21:49:00]MH_I2C_Read... [21:49:00]Read from MH i2c: F0 [21:49:00]MH_I2C_Read... [21:49:00]Read from MH i2c: F0 09 00 [21:49:00]MH_I2C_Read... [21:49:00]Read from MH i2c: F0 09 00 A5 31 00 D3 EA 96 66 D6 48 95 66 A0 [21:49:00]GetLastDocTimeStamp 1721164489 [21:49:00]current date 1721166547 [21:49:00]FM_GetShiftState [21:49:00]SAM_PROTO_GetShiftState [21:49:00]wFMCommunicate request_size=4 [21:49:00]MH_SAM_APDU [21:49:00]CAPDU: 80 13 01 00 [21:49:00]Write to MH i2c: E2 08 00 A6 31 80 13 01 00 00 00 00 00 54 [21:49:00]Write i2c OK [21:49:00]MH_I2C_Read... [21:49:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:00]Read from MH i2c: E2 [21:49:00]MH_I2C_Read... [21:49:00]Read from MH i2c: E2 0E 00 [21:49:00]MH_I2C_Read... [21:49:00]Read from MH i2c: E2 0E 00 A6 31 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 A3 [21:49:00]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [21:49:00]wFMCommunicate OK [21:49:00]SAM_PROTO_GetShiftState done [21:49:00]FM_GetShiftState done [21:49:00]opened in 1721088399 [21:49:00]opened+sec_in_day 1721174799 [21:49:00]quantity*price = 14000 [21:49:00]sum+1 = 14001 [21:49:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 129 16.07.2024 21:49 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31810 ФПД: 25952672853427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T214907&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31810&fm=25952672853427&tin=02508201610067®Number=0000000000098025&sum=14000 0 [21:49:01]StoreToDocumentArchive [21:49:01]shift 371 fd 31810 [21:49:01]save to /storage/0371/doc_00031810 [21:49:01]save last doc name /storage/0371/doc_00031810 to /storage/kkm_last_doc_name [21:49:01]save OK [21:49:01]Clear old archive folders... [21:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=285 [21:49:01]tlvbuf is 0154F120 [21:49:01]SAM_PROTO_ClearQueue [21:49:01]wFMCommunicate request_size=4 [21:49:01]MH_SAM_APDU [21:49:01]CAPDU: 80 09 00 00 [21:49:01]Write to MH i2c: E2 08 00 B3 31 80 09 00 00 00 00 00 00 56 [21:49:01]Write i2c OK [21:49:01]MH_I2C_Read... [21:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:49:01]Read from MH i2c: E2 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 B3 31 00 90 00 58 [21:49:01]RAPDU: 90 00 [21:49:01]wFMCommunicate OK [21:49:01]SAM_PROTO_ClearQueue done [21:49:01]KKMCreateOFDPacket [21:49:01]OFDProtocolAddRootSTLVToBuf [21:49:01]FM_MakeSignedData [21:49:01]FM_MakeSignedData [21:49:01]SAM_PROTO_SignData [21:49:01]wFMCommunicate request_size=4 [21:49:01]MH_SAM_APDU [21:49:01]CAPDU: 80 0D 01 02 [21:49:01]Write to MH i2c: E2 08 00 B4 31 80 0D 01 02 00 00 00 00 5E [21:49:01]Write i2c OK [21:49:01]MH_I2C_Read... [21:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:49:01]Read from MH i2c: E2 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 [21:49:01]MH_I2C_Read... [21:49:01]Read from MH i2c: E2 03 00 B4 31 00 90 00 59 [21:49:01]RAPDU: 90 00 [21:49:01]wFMCommunicate OK [21:49:01]wFMCommunicate request_size=255 [21:49:01]MH_SAM_APDU [21:49:01]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 35 30 32 34 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 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 81 00 00 00 F4 03 04 00 D3 EA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 [21:49:01]Write to MH i2c: E2 02 01 B5 31 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 30 32 34 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 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 81 00 00 00 F4 03 04 00 D3 EA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 00 00 4F [21:49:01]Write i2c OK [21:49:01]MH_I2C_Read... [21:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:02]Read from MH i2c: E2 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: E2 03 00 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: E2 03 00 B5 31 00 90 00 5A [21:49:02]RAPDU: 90 00 [21:49:02]wFMCommunicate OK [21:49:02]wFMCommunicate request_size=44 [21:49:02]MH_SAM_APDU [21:49:02]CAPDU: 80 0D 02 02 27 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 42 7C 00 00 35 04 06 00 17 9A 93 D8 AD B3 [21:49:02]Write to MH i2c: E2 2F 00 B6 31 80 0D 02 02 27 00 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 42 7C 00 00 35 04 06 00 17 9A 93 D8 AD B3 00 00 C2 [21:49:02]Write i2c OK [21:49:02]MH_I2C_Read... [21:49:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:49:02]Read from MH i2c: E2 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: E2 03 00 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: E2 03 00 B6 31 00 90 00 5B [21:49:02]RAPDU: 90 00 [21:49:02]wFMCommunicate OK [21:49:02]wFMCommunicate request_size=4 [21:49:02]MH_SAM_APDU [21:49:02]CAPDU: 80 0D 03 02 [21:49:02]Write to MH i2c: E2 08 00 B7 31 80 0D 03 02 00 00 00 00 63 [21:49:02]Write i2c OK [21:49:02]MH_I2C_Read... [21:49:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:49:02]Read from MH i2c: E2 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: E2 0B 00 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: E2 0B 00 B7 31 00 CC F1 F6 22 BC FF 89 1C 90 00 99 [21:49:02]RAPDU: CC F1 F6 22 BC FF 89 1C 90 00 [21:49:02]wFMCommunicate OK [21:49:02]SAM_PROTO_SignData done [21:49:02]FM_MakeSignedData done [21:49:02]CreateOFDProtocolMessage [21:49:02]wFMCommunicate request_size=4 [21:49:02]MH_SAM_APDU [21:49:02]CAPDU: 80 11 00 00 [21:49:02]Write to MH i2c: E2 08 00 B8 31 80 11 00 00 00 00 00 00 63 [21:49:02]OFD Sender: No OFD packet to send [21:49:02]Write i2c OK [21:49:02]MH_I2C_Read... [21:49:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:02]Read from MH i2c: E2 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: E2 17 00 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: E2 17 00 B8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BE [21:49:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:49:02]wFMCommunicate OK [21:49:02]CreateOFDProtocolMessage done [21:49:02]OFDSenderStorePacket 31810 [21:49:02]StoreOFDPacket docnum=31810 [21:49:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 31 01 00 00 A7 2F 29 01 91 00 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 35 30 32 34 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 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 81 00 00 00 F4 03 04 00 D3 EA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 42 7C 00 00 35 04 06 00 17 9A 93 D8 AD B3 CC F1 F6 22 BC FF 89 1C [21:49:02]CheckFolder [21:49:02]dirname=/storage/ofd_packets [21:49:02]CheckFolder done [21:49:02]ProducePacketName [21:49:02]name=ofd_packets/00031810 [21:49:02]NVStorageSaveData ofd_packets/00031810 [21:49:02]File name is /storage/ofd_packets/00031810 [21:49:02]Write 335 bytes [21:49:02]NVStorageSaveData done [21:49:02]OFDSenderStorePacket done [21:49:02]KKMCreateOFDPacket done [21:49:02]NVStorageSaveData kkm_last_timestamp [21:49:02]File name is /storage/kkm_last_timestamp [21:49:02]Write 4 bytes [21:49:02]NVStorageSaveData done [21:49:02]ExternCall_PrintAddStr [21:49:02]wPrintStart [21:49:02]Write to MH i2c: 01 00 00 B9 31 EA [21:49:02]Write i2c OK [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: 01 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: 01 07 00 [21:49:02]MH_I2C_Read... [21:49:02]Read from MH i2c: 01 07 00 B9 31 00 00 00 00 00 FF 0F FF [21:49:02]RasterBufferAndPrint [21:49:02]line Счет N : (3)214391 [21:49:02]line ИНН: 02508201610067 [21:49:02]line Контрольно-Кассовый Чек [21:49:02]line ПРОДАЖА [21:49:02]line Товар: 48745024 [21:49:02]line Сигареты Winston Superslims Expand Purpl [21:49:02]line 1.000 * 140.00 [21:49:02]line = 140.00 [21:49:02]line НДС 12% НСП 1% [21:49:02]line > о реализуемом товаре [21:49:02]line ИТОГО: 140.00 [21:49:02]line НСП 1% : 1.24 [21:49:02]line НДС 12% : 14.87 [21:49:02]line Наличными: 140.00 [21:49:02]line Безнал.: 0.00 [21:49:02]line Место: АЗС № 140 "Партнер Нефть" [21:49:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:49:02]line СНО: Общий режим [21:49:02]line Чек 129 16.07.2024 21:49 [21:49:02]line Смена: 371 ФФД: 1.0 [21:49:02]line ЗНМ: 0300000189 [21:49:02]line РНМ: 0000000000098025 [21:49:02]line Версия ККМ: 001 [21:49:02]line ФМ: 0000000000965389 [21:49:02]line ФД: 31810 [21:49:02]line ФПД: 25952672853427 [21:49:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T214907&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31810&fm=25952672853427&tin=02508201610067®Number=0000000000098025&sum=14000 [21:49:02]line 0 [21:49:02]OFD Sender: Processing packet 31810 [packets to send 6, broken 5] [21:49:02]ProducePacketName [21:49:02]name=ofd_packets/00031810 [21:49:02]OFD Sender: To server: pG, [21:49:02]CommunicateWithHost lk.salyk.kg:30040 [21:49:02]ConnectInit lk.salyk.kg [21:49:02]written 0, free lines is 4095 [21:49:02]Connected sock=7 [21:49:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 31 01 00 00 A7 2F 29 01 91 00 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 35 30 32 34 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 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 81 00 00 00 F4 03 04 00 D3 EA 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 42 7C 00 00 35 04 06 00 17 9A 93 D8 AD B3 CC F1 F6 22 BC FF 89 1C [21:49:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 0F 94 47 00 91 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 42 7C 00 00 F4 03 04 00 DF 96 96 66 B6 04 01 00 00 1F D2 9E 39 52 4A C5 D0 [21:49:02]CommunicateWithHost err = 0 [21:49:02]CheckOFDResponse [21:49:02]1017 (14) - 77093643461234 [21:49:02]1041 (16) - 0000000000965389 [21:49:02]1040 (4) - 31810 [21:49:02]1012 (4) - 16.07.2024 15:50 [21:49:02]1206 (1) - 0 [21:49:02]OFD Sender: Remove packet 31810 [21:49:02]ProducePacketName [21:49:02]name=ofd_packets/00031810 [21:49:02]NVStorageDeleteData [21:49:03]Write to MH i2c: 01 00 00 E2 31 13 [21:49:03]Write i2c OK [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: 01 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: 01 07 00 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: 01 07 00 E2 31 00 00 00 00 00 E4 0C 0A [21:49:03]RasterBufferAndPrint [21:49:03]line [21:49:03]line [21:49:03]line [21:49:03]line [21:49:03]line [21:49:03]written 0, free lines is 3307 [21:49:03]MH_Cut [21:49:03]Write to MH i2c: D1 01 00 E9 31 01 EC [21:49:03]Write i2c OK [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: D1 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: D1 01 00 [21:49:03]MH_I2C_Read... [21:49:03]Read from MH i2c: D1 01 00 E9 31 00 EB [21:49:03]Write to MH i2c: 01 00 00 EA 31 1B [21:49:03]Write i2c OK [21:49:03]MH_I2C_Read... [21:49:03]OFD Sender: No OFD packet to send [21:49:03]*** Cut start [21:49:03]*** Partial cut [21:49:03]*** CUTSNS_PIN = 1 [21:49:03]*** CUTSNS_PIN = 0 [21:49:04]*** Brake cut motor [21:49:04]Read from MH i2c: 01 [21:49:04]MH_I2C_Read... [21:49:04]*** Stop cut motor [21:49:04]*** Cut end [21:49:04]Read from MH i2c: 01 07 00 [21:49:04]MH_I2C_Read... [21:49:04]Read from MH i2c: 01 07 00 EA 31 00 00 00 00 00 FF 0F 30 [21:49:04]process_action close_receipt done [21:49:04]requested_data is exist [21:49:04]produce_requested_data [21:49:04]requested_item fm.sn is exist - process it [21:49:04]wFMCommunicate request_size=4 [21:49:04]MH_SAM_APDU [21:49:04]CAPDU: 80 11 00 00 [21:49:04]Write to MH i2c: E2 08 00 EB 31 80 11 00 00 00 00 00 00 96 [21:49:04]Write i2c OK [21:49:04]MH_I2C_Read... [21:49:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:49:04]Read from MH i2c: E2 [21:49:04]MH_I2C_Read... [21:49:04]Read from MH i2c: E2 17 00 [21:49:04]MH_I2C_Read... [21:49:04]Read from MH i2c: E2 17 00 EB 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F1 [21:49:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:49:04]wFMCommunicate OK [21:49:04]requested_item fd.num is exist - process it [21:49:04]SAM_PROTO_GetFieldsCounters [21:49:04]wFMCommunicate request_size=4 [21:49:04]MH_SAM_APDU [21:49:04]CAPDU: 80 13 00 00 [21:49:04]Write to MH i2c: E2 08 00 EC 31 80 13 00 00 00 00 00 00 99 [21:49:04]Write i2c OK [21:49:04]MH_I2C_Read... [21:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:49:04]Read from MH i2c: E2 [21:49:04]MH_I2C_Read... [21:49:04]Read from MH i2c: E2 62 00 [21:49:04]MH_I2C_Read... [21:49:04]Read from MH i2c: E2 62 00 EC 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 42 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [21:49:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 42 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 81 00 00 00 5E 04 04 00 81 00 00 00 57 04 04 00 82 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:49:04]wFMCommunicate OK [21:49:04]SAM_PROTO_GetFieldsCounters done [21:49:04]requested_item shift.num is exist - process it [21:49:04]requested_item shift.opened is exist - process it [21:49:04]req_shift_opened [21:49:04]FM_GetShiftState [21:49:04]SAM_PROTO_GetShiftState [21:49:04]wFMCommunicate request_size=4 [21:49:04]MH_SAM_APDU [21:49:04]CAPDU: 80 13 01 00 [21:49:04]Write to MH i2c: E2 08 00 ED 31 80 13 01 00 00 00 00 00 9B [21:49:04]Write i2c OK [21:49:04]MH_I2C_Read... [21:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:49:04]Read from MH i2c: E2 [21:49:04]MH_I2C_Read... [21:49:04]Read from MH i2c: E2 0E 00 [21:49:04]MH_I2C_Read... [21:49:04]Read from MH i2c: E2 0E 00 ED 31 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 EA [21:49:04]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [21:49:04]wFMCommunicate OK [21:49:04]SAM_PROTO_GetShiftState done [21:49:04]FM_GetShiftState done [21:49:04]req_shift_opened done [21:49:04]requested_item shift.open_date is exist - process it [21:49:04]req_shift_open_date [21:49:04]req_shift_open_date done [21:49:04]produce_requested_data done [21:49:04]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31810,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [21:49:04]process_action_free close_receipt [21:49:04]json_value_free [21:49:04]json_value_free done [21:49:04]process_json_proto returns [21:49:04]Send response to host [21:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31810,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [21:49:04]free response buf [21:49:04]execute_script done [21:49:04]execute_script returns [21:49:04]free content buf [21:49:04]Sock 10.Close socket [21:49:04]Sock 10.Thread stoped [21:49:08]OFD Sender: No OFD packet to send [21:49:13]OFD Sender: No OFD packet to send [21:49:18]OFD Sender: No OFD packet to send [21:49:23]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [21:52:28]OFD Sender: No OFD packet to send [21:52:33]OFD Sender: No OFD packet to send [21:52:37]accept exits with 9 [21:52:37]New connection [21:52:37]New thread 3066965348 created [21:52:37]Thread 3066821988 joined [21:52:37]Waiting for new connection... [21:52:37] Sock 9.Parse request [21:52:37]Sock 9.Check first char [21:52:37]Sock 9.First char is OK [21:52:37]request: POST /json_proto HTTP/1.0 [21:52:37]Method: POST [21:52:37]URL: /json_proto [21:52:37]Method is POST - this is cgi request [21:52:37]url: /json_proto [21:52:37]query_string will be loaded in cgi processing [21:52:37]execute_cgi json_proto POST (null) [21:52:37]execute_cgi path=json_proto method=POST [21:52:37]POST find Content-Length [21:52:37]Host: 172.17.39.68:8080 [21:52:37]Content-Length: 620 [21:52:37]Content-Type: application/json [21:52:37] [21:52:37]POST finish read [21:52:37]Found Content-Length = 620 [21:52:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214392", "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 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:37]execute_script... [21:52: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)214392", "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 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:37]POST & json_proto [21:52:37]process_json_proto [21:52:37]json parsed OK: [21:52:37]protocol is kg_v1.0 [21:52:37]action value=close_receipt [21:52:37]process_action close_receipt [21:52:37]cmd_close_receipt [21:52:37]MH_GetDate [21:52:37]Write to MH i2c: F0 00 00 EE 31 0E [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: F0 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: F0 09 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: F0 09 00 EE 31 00 AC EB 96 66 D6 48 95 66 C3 [21:52:37]GetLastDocTimeStamp 1721166547 [21:52:37]current date 1721166764 [21:52:37]FM_GetShiftState [21:52:37]SAM_PROTO_GetShiftState [21:52:37]wFMCommunicate request_size=4 [21:52:37]MH_SAM_APDU [21:52:37]CAPDU: 80 13 01 00 [21:52:37]Write to MH i2c: E2 08 00 EF 31 80 13 01 00 00 00 00 00 9D [21:52:37]Write i2c OK [21:52:37]MH_I2C_Read... [21:52:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:37]Read from MH i2c: E2 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: E2 0E 00 [21:52:37]MH_I2C_Read... [21:52:37]Read from MH i2c: E2 0E 00 EF 31 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 EC [21:52:37]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [21:52:37]wFMCommunicate OK [21:52:37]SAM_PROTO_GetShiftState done [21:52:37]FM_GetShiftState done [21:52:37]opened in 1721088399 [21:52:37]opened+sec_in_day 1721174799 [21:52:37]quantity*price = 40500 [21:52:37]sum+1 = 40501 [21:52:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 130 16.07.2024 21:52 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31811 ФПД: 255348587463281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T215244&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31811&fm=255348587463281&tin=02508201610067®Number=0000000000098025&sum=40500 0 [21:52:38]StoreToDocumentArchive [21:52:38]shift 371 fd 31811 [21:52:38]save to /storage/0371/doc_00031811 [21:52:38]save last doc name /storage/0371/doc_00031811 to /storage/kkm_last_doc_name [21:52:38]save OK [21:52:38]Clear old archive folders... [21:52:38]ProcessDocumentItem done err = 0, tmpTLVsize=280 [21:52:38]tlvbuf is 0154ED20 [21:52:38]SAM_PROTO_ClearQueue [21:52:38]wFMCommunicate request_size=4 [21:52:38]MH_SAM_APDU [21:52:38]CAPDU: 80 09 00 00 [21:52:38]Write to MH i2c: E2 08 00 FC 31 80 09 00 00 00 00 00 00 9F [21:52:38]Write i2c OK [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: E2 [21:52:38]MH_I2C_Read... [21:52:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:38]Read from MH i2c: E2 03 00 [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: E2 03 00 FC 31 00 90 00 A1 [21:52:38]RAPDU: 90 00 [21:52:38]wFMCommunicate OK [21:52:38]SAM_PROTO_ClearQueue done [21:52:38]KKMCreateOFDPacket [21:52:38]OFDProtocolAddRootSTLVToBuf [21:52:38]FM_MakeSignedData [21:52:38]FM_MakeSignedData [21:52:38]SAM_PROTO_SignData [21:52:38]wFMCommunicate request_size=4 [21:52:38]MH_SAM_APDU [21:52:38]CAPDU: 80 0D 01 02 [21:52:38]Write to MH i2c: E2 08 00 FD 31 80 0D 01 02 00 00 00 00 A7 [21:52:38]Write i2c OK [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: E2 [21:52:38]MH_I2C_Read... [21:52:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:38]Read from MH i2c: E2 03 00 [21:52:38]MH_I2C_Read... [21:52:38]Read from MH i2c: E2 03 00 FD 31 00 90 00 A2 [21:52:38]RAPDU: 90 00 [21:52:38]wFMCommunicate OK [21:52:38]wFMCommunicate request_size=255 [21:52:38]MH_SAM_APDU [21:52:38]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 34 9E 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 AC EB 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [21:52:38]Write to MH i2c: E2 02 01 FE 31 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 34 9E 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 AC EB 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 2A [21:52:38]Write i2c OK [21:52:38]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 [21:52:39]MH_I2C_Read... [21:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:39]Read from MH i2c: E2 03 00 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 03 00 FE 31 00 90 00 A3 [21:52:39]RAPDU: 90 00 [21:52:39]wFMCommunicate OK [21:52:39]wFMCommunicate request_size=39 [21:52:39]MH_SAM_APDU [21:52:39]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 43 7C 00 00 35 04 06 00 E8 3C F9 D9 82 71 [21:52:39]Write to MH i2c: E2 2A 00 FF 31 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 43 7C 00 00 35 04 06 00 E8 3C F9 D9 82 71 00 00 15 [21:52:39]Write i2c OK [21:52:39]MH_I2C_Read... [21:52:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:39]Read from MH i2c: E2 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 03 00 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 03 00 FF 31 00 90 00 A4 [21:52:39]RAPDU: 90 00 [21:52:39]wFMCommunicate OK [21:52:39]wFMCommunicate request_size=4 [21:52:39]MH_SAM_APDU [21:52:39]CAPDU: 80 0D 03 02 [21:52:39]Write to MH i2c: E2 08 00 00 32 80 0D 03 02 00 00 00 00 AD [21:52:39]Write i2c OK [21:52:39]MH_I2C_Read... [21:52:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:39]Read from MH i2c: E2 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 0B 00 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 0B 00 00 32 00 7B 29 C1 2A D8 36 34 F8 90 00 77 [21:52:39]RAPDU: 7B 29 C1 2A D8 36 34 F8 90 00 [21:52:39]wFMCommunicate OK [21:52:39]SAM_PROTO_SignData done [21:52:39]FM_MakeSignedData done [21:52:39]CreateOFDProtocolMessage [21:52:39]wFMCommunicate request_size=4 [21:52:39]MH_SAM_APDU [21:52:39]CAPDU: 80 11 00 00 [21:52:39]Write to MH i2c: E2 08 00 01 32 80 11 00 00 00 00 00 00 AD [21:52:39]Write i2c OK [21:52:39]MH_I2C_Read... [21:52:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:39]Read from MH i2c: E2 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 17 00 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 17 00 01 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 08 [21:52:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:52:39]wFMCommunicate OK [21:52:39]CreateOFDProtocolMessage done [21:52:39]OFDSenderStorePacket 31811 [21:52:39]StoreOFDPacket docnum=31811 [21:52:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 E2 36 24 01 51 62 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 34 9E 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 AC EB 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 43 7C 00 00 35 04 06 00 E8 3C F9 D9 82 71 7B 29 C1 2A D8 36 34 F8 [21:52:39]CheckFolder [21:52:39]dirname=/storage/ofd_packets [21:52:39]CheckFolder done [21:52:39]ProducePacketName [21:52:39]name=ofd_packets/00031811 [21:52:39]NVStorageSaveData ofd_packets/00031811 [21:52:39]File name is /storage/ofd_packets/00031811 [21:52:39]Write 330 bytes [21:52:39]NVStorageSaveData done [21:52:39]OFDSenderStorePacket done [21:52:39]KKMCreateOFDPacket done [21:52:39]NVStorageSaveData kkm_last_timestamp [21:52:39]File name is /storage/kkm_last_timestamp [21:52:39]Write 4 bytes [21:52:39]NVStorageSaveData done [21:52:39]ExternCall_PrintAddStr [21:52:39]wPrintStart [21:52:39]Write to MH i2c: 01 00 00 02 32 34 [21:52:39]Write i2c OK [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: 01 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: 01 07 00 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: 01 07 00 02 32 00 00 00 00 00 FF 0F 49 [21:52:39]RasterBufferAndPrint [21:52:39]line Счет N : (3)214392 [21:52:39]line ИНН: 02508201610067 [21:52:39]line Контрольно-Кассовый Чек [21:52:39]line ПРОДАЖА [21:52:39]line Товар: 4650063110756 [21:52:39]line Масло Gazpromneft Super 10w40 1л [21:52:39]line 1.000 * 405.00 [21:52:39]line = 405.00 [21:52:39]line НДС 12% НСП 1% [21:52:39]line > о реализуемом товаре [21:52:39]line ИТОГО: 405.00 [21:52:39]line НСП 1% : 3.58 [21:52:39]line НДС 12% : 43.01 [21:52:39]line Наличными: 405.00 [21:52:39]line Безнал.: 0.00 [21:52:39]line Место: АЗС № 140 "Партнер Нефть" [21:52:39]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [21:52:39]line СНО: Общий режим [21:52:39]line Чек 130 16.07.2024 21:52 [21:52:39]line Смена: 371 ФФД: 1.0 [21:52:39]line ЗНМ: 0300000189 [21:52:39]line РНМ: 0000000000098025 [21:52:39]line Версия ККМ: 001 [21:52:39]line ФМ: 0000000000965389 [21:52:39]line ФД: 31811 [21:52:39]line ФПД: 255348587463281 [21:52:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T215244&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31811&fm=255348587463281&tin=02508201610067®Number=0000000000098025&sum=40500 [21:52:39]OFD Sender: Processing packet 31811 [packets to send 6, broken 5] [21:52:39]ProducePacketName [21:52:39]name=ofd_packets/00031811 [21:52:39]OFD Sender: To server: pG, [21:52:39]CommunicateWithHost lk.salyk.kg:30040 [21:52:39]ConnectInit lk.salyk.kg [21:52:39]line 0 [21:52:39]written 0, free lines is 4095 [21:52:39]Connected sock=10 [21:52:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 E2 36 24 01 51 62 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 34 9E 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 AC EB 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 43 7C 00 00 35 04 06 00 E8 3C F9 D9 82 71 7B 29 C1 2A D8 36 34 F8 [21:52:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 A9 02 47 00 F3 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 35 33 38 39 10 04 04 00 43 7C 00 00 F4 03 04 00 B8 97 96 66 B6 04 01 00 00 0B 76 2F CF B9 67 24 2B [21:52:40]CommunicateWithHost err = 0 [21:52:40]CheckOFDResponse [21:52:40]1017 (14) - 77093643461234 [21:52:40]1041 (16) - 0000000000965389 [21:52:40]1040 (4) - 31811 [21:52:40]1012 (4) - 16.07.2024 15:54 [21:52:40]1206 (1) - 0 [21:52:40]OFD Sender: Remove packet 31811 [21:52:40]ProducePacketName [21:52:40]name=ofd_packets/00031811 [21:52:40]NVStorageDeleteData [21:52:40]Write to MH i2c: 01 00 00 2B 32 5D [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 07 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: 01 07 00 2B 32 00 00 00 00 00 DA 0C 4A [21:52:40]RasterBufferAndPrint [21:52:40]line [21:52:40]line [21:52:40]line [21:52:40]line [21:52:40]line [21:52:40]written 0, free lines is 3300 [21:52:40]MH_Cut [21:52:40]Write to MH i2c: D1 01 00 32 32 01 36 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: D1 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: D1 01 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: D1 01 00 32 32 00 35 [21:52:40]Write to MH i2c: 01 00 00 33 32 65 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]OFD Sender: No OFD packet to send [21:52:40]*** Cut start [21:52:40]*** Partial cut [21:52:40]*** CUTSNS_PIN = 1 [21:52:41]*** CUTSNS_PIN = 0 [21:52:41]*** Brake cut motor [21:52:41]Read from MH i2c: 01 [21:52:41]MH_I2C_Read... [21:52:41]*** Stop cut motor [21:52:41]*** Cut end [21:52:41]Read from MH i2c: 01 07 00 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: 01 07 00 33 32 00 00 00 00 00 FF 0F 7A [21:52:41]process_action close_receipt done [21:52:41]requested_data is exist [21:52:41]produce_requested_data [21:52:41]requested_item fm.sn is exist - process it [21:52:41]wFMCommunicate request_size=4 [21:52:41]MH_SAM_APDU [21:52:41]CAPDU: 80 11 00 00 [21:52:41]Write to MH i2c: E2 08 00 34 32 80 11 00 00 00 00 00 00 E0 [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:41]Read from MH i2c: E2 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: E2 17 00 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: E2 17 00 34 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3B [21:52:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [21:52:41]wFMCommunicate OK [21:52:41]requested_item fd.num is exist - process it [21:52:41]SAM_PROTO_GetFieldsCounters [21:52:41]wFMCommunicate request_size=4 [21:52:41]MH_SAM_APDU [21:52:41]CAPDU: 80 13 00 00 [21:52:41]Write to MH i2c: E2 08 00 35 32 80 13 00 00 00 00 00 00 E3 [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:41]Read from MH i2c: E2 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: E2 62 00 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: E2 62 00 35 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 43 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [21:52: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 43 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:41]wFMCommunicate OK [21:52:41]SAM_PROTO_GetFieldsCounters done [21:52:41]requested_item shift.num is exist - process it [21:52:41]requested_item shift.opened is exist - process it [21:52:41]req_shift_opened [21:52:41]FM_GetShiftState [21:52:41]SAM_PROTO_GetShiftState [21:52:41]wFMCommunicate request_size=4 [21:52:41]MH_SAM_APDU [21:52:41]CAPDU: 80 13 01 00 [21:52:41]Write to MH i2c: E2 08 00 36 32 80 13 01 00 00 00 00 00 E5 [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:41]Read from MH i2c: E2 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: E2 0E 00 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: E2 0E 00 36 32 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 34 [21:52:41]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [21:52:41]wFMCommunicate OK [21:52:41]SAM_PROTO_GetShiftState done [21:52:41]FM_GetShiftState done [21:52:41]req_shift_opened done [21:52:41]requested_item shift.open_date is exist - process it [21:52:41]req_shift_open_date [21:52:41]req_shift_open_date done [21:52:41]produce_requested_data done [21:52:41]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31811,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [21:52:41]process_action_free close_receipt [21:52:41]json_value_free [21:52:41]json_value_free done [21:52:41]process_json_proto returns [21:52:41]Send response to host [21:52:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31811,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [21:52:41]free response buf [21:52:41]execute_script done [21:52:41]execute_script returns [21:52:41]free content buf [21:52:41]Sock 9.Close socket [21:52:41]Sock 9.Thread stoped [21:52:45]OFD Sender: No OFD packet to send [21:52:50]OFD Sender: No OFD packet to send [21:52:55]OFD Sender: No OFD packet to send [21:53:00]OFD Sender: No OFD packet to send [21:53:05]OFD Sender: No OFD packet to send [21:53:10]OFD Sender: No OFD packet to send [21:53:15]OFD Sender: No OFD packet to send [21:53:20]OFD Sender: No OFD packet to send [21:53:25]OFD Sender: No OFD packet to send [21:53:30]OFD Sender: No OFD packet to send [21:53:35]OFD Sender: No OFD packet to send [21:53:40]OFD Sender: No OFD packet to send [21:53:45]OFD Sender: No OFD packet to send [21:53:50]OFD Sender: No OFD packet to send [21:53:55]OFD Sender: No OFD packet to send [21:54:00]OFD Sender: No OFD packet to send [21:54:05]OFD Sender: No OFD packet to send [21:54:10]OFD Sender: No OFD packet to send [21:54:15]OFD Sender: No OFD packet to send [21:54:20]OFD Sender: No OFD packet to send [21:54:25]OFD Sender: No OFD packet to send [21:54:30]OFD Sender: No OFD packet to send [21:54:35]OFD Sender: No OFD packet to send [21:54:40]OFD Sender: No OFD packet to send [21:54:45]OFD Sender: No OFD packet to send [21:54:50]OFD Sender: No OFD packet to send [21:54:55]OFD Sender: No OFD packet to send [21:55:00]OFD Sender: No OFD packet to send [21:55:05]OFD Sender: No OFD packet to send [21:55:10]OFD Sender: No OFD packet to send [21:55:15]OFD Sender: No OFD packet to send [21:55:20]OFD Sender: No OFD packet to send [21:55:25]OFD Sender: No OFD packet to send [21:55:30]OFD Sender: No OFD packet to send [21:55:35]OFD Sender: No OFD packet to send [21:55:40]OFD Sender: No OFD packet to send [21:55:45]OFD Sender: No OFD packet to send [21:55:50]OFD Sender: No OFD packet to send [21:55:55]OFD Sender: No OFD packet to send [21:56:00]OFD Sender: No OFD packet to send [21:56:05]OFD Sender: No OFD packet to send [21:56:10]OFD Sender: No OFD packet to send [21:56:15]OFD Sender: No OFD packet to send [21:56:20]OFD Sender: No OFD packet to send [21:56:25]OFD Sender: No OFD packet to send [21:56:30]OFD Sender: No OFD packet to send [21:56:35]OFD Sender: No OFD packet to send [21:56:40]OFD Sender: No OFD packet to send [21:56:45]OFD Sender: No OFD packet to send [21:56:50]OFD Sender: No OFD packet to send [21:56:55]OFD Sender: No OFD packet to send [21:57:00]OFD Sender: No OFD packet to send [21:57:05]OFD Sender: No OFD packet to send [21:57:10]OFD Sender: No OFD packet to send [21:57:15]OFD Sender: No OFD packet to send [21:57:20]OFD Sender: No OFD packet to send [21:57:25]OFD Sender: No OFD packet to send [21:57:30]OFD Sender: No OFD packet to send [21:57:35]OFD Sender: No OFD packet to send [21:57:40]OFD Sender: No OFD packet to send [21:57:45]OFD Sender: No OFD packet to send [21:57:50]OFD Sender: No OFD packet to send [21:57:55]OFD Sender: No OFD packet to send [21:58:00]OFD Sender: No OFD packet to send [21:58:05]OFD Sender: No OFD packet to send [21:58:10]OFD Sender: No OFD packet to send [21:58:15]OFD Sender: No OFD packet to send [21:58:20]OFD Sender: No OFD packet to send [21:58:25]OFD Sender: No OFD packet to send [21:58:30]OFD Sender: No OFD packet to send [21:58:35]OFD Sender: No OFD packet to send [21:58:40]OFD Sender: No OFD packet to send [21:58:45]OFD Sender: No OFD packet to send [21:58:50]OFD Sender: No OFD packet to send [21:58:55]OFD Sender: No OFD packet to send [21:59:00]OFD Sender: No OFD packet to send [21:59:05]OFD Sender: No OFD packet to send [21:59:10]OFD Sender: No OFD packet to send [21:59:15]OFD Sender: No OFD packet to send [21:59:20]OFD Sender: No OFD packet to send [21:59:25]OFD Sender: No OFD packet to send [21:59:30]OFD Sender: No OFD packet to send [21:59:35]OFD Sender: No OFD packet to send [21:59:40]OFD Sender: No OFD packet to send [21:59:45]OFD Sender: No OFD packet to send [21:59:50]OFD Sender: No OFD packet to send [21:59:55]OFD Sender: No OFD packet to send [22:00:00]OFD Sender: No OFD packet to send [22:00:05]OFD Sender: No OFD packet to send [22:00:10]OFD Sender: No OFD packet to send [22:00:15]OFD Sender: No OFD packet to send [22:00:20]OFD Sender: No OFD packet to send [22:00:25]OFD Sender: No OFD packet to send [22:00:30]OFD Sender: No OFD packet to send [22:00:35]OFD Sender: No OFD packet to send [22:00:40]OFD Sender: No OFD packet to send [22:00:45]OFD Sender: No OFD packet to send [22:00:50]OFD Sender: No OFD packet to send [22:00:55]OFD Sender: No OFD packet to send [22:01:00]OFD Sender: No OFD packet to send [22:01:05]OFD Sender: No OFD packet to send [22:01:10]OFD Sender: No OFD packet to send [22:01:15]OFD Sender: No OFD packet to send [22:01:20]OFD Sender: No OFD packet to send [22:01:25]OFD Sender: No OFD packet to send [22:01:31]OFD Sender: No OFD packet to send [22:01:36]OFD Sender: No OFD packet to send [22:01:41]OFD Sender: No OFD packet to send [22:01:46]OFD Sender: No OFD packet to send [22:01:51]OFD Sender: No OFD packet to send [22:01:56]OFD Sender: No OFD packet to send [22:02:01]OFD Sender: No OFD packet to send [22:02:06]OFD Sender: No OFD packet to send [22:02:11]OFD Sender: No OFD packet to send [22:02:16]OFD Sender: No OFD packet to send [22:02:21]OFD Sender: No OFD packet to send [22:02:26]OFD Sender: No OFD packet to send [22:02:31]OFD Sender: No OFD packet to send [22:02:36]OFD Sender: No OFD packet to send [22:02:41]OFD Sender: No OFD packet to send [22:02:46]OFD Sender: No OFD packet to send [22:02:51]OFD Sender: No OFD packet to send [22:02:56]OFD Sender: No OFD packet to send [22:03:01]OFD Sender: No OFD packet to send [22:03:06]OFD Sender: No OFD packet to send [22:03:11]OFD Sender: No OFD packet to send [22:03:16]OFD Sender: No OFD packet to send [22:03:21]OFD Sender: No OFD packet to send [22:03:26]OFD Sender: No OFD packet to send [22:03:31]OFD Sender: No OFD packet to send [22:03:36]OFD Sender: No OFD packet to send [22:03:41]OFD Sender: No OFD packet to send [22:03:46]OFD Sender: No OFD packet to send [22:03:51]OFD Sender: No OFD packet to send [22:03:56]OFD Sender: No OFD packet to send [22:04:01]OFD Sender: No OFD packet to send [22:04:06]OFD Sender: No OFD packet to send [22:04:11]OFD Sender: No OFD packet to send [22:04:16]OFD Sender: No OFD packet to send [22:04:21]OFD Sender: No OFD packet to send [22:04:26]OFD Sender: No OFD packet to send [22:04:31]OFD Sender: No OFD packet to send [22:04:36]OFD Sender: No OFD packet to send [22:04:41]OFD Sender: No OFD packet to send [22:04:46]OFD Sender: No OFD packet to send [22:04:51]OFD Sender: No OFD packet to send [22:04:56]OFD Sender: No OFD packet to send [22:05:01]OFD Sender: No OFD packet to send [22:05:06]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:26]OFD Sender: No OFD packet to send [22:05:31]OFD Sender: No OFD packet to send [22:05:36]OFD Sender: No OFD packet to send [22:05:41]OFD Sender: No OFD packet to send [22:05:46]OFD Sender: No OFD packet to send [22:05:51]OFD Sender: No OFD packet to send [22:05:56]OFD Sender: No OFD packet to send [22:06:01]OFD Sender: No OFD packet to send [22:06:06]OFD Sender: No OFD packet to send [22:06:11]OFD Sender: No OFD packet to send [22:06:16]OFD Sender: No OFD packet to send [22:06:21]OFD Sender: No OFD packet to send [22:06:26]OFD Sender: No OFD packet to send [22:06:31]OFD Sender: No OFD packet to send [22:06:36]OFD Sender: No OFD packet to send [22:06:41]OFD Sender: No OFD packet to send [22:06:46]OFD Sender: No OFD packet to send [22:06:51]OFD Sender: No OFD packet to send [22:06:56]OFD Sender: No OFD packet to send [22:07:01]OFD Sender: No OFD packet to send [22:07:06]OFD Sender: No OFD packet to send [22:07:11]OFD Sender: No OFD packet to send [22:07:16]OFD Sender: No OFD packet to send [22:07:21]OFD Sender: No OFD packet to send [22:07:26]OFD Sender: No OFD packet to send [22:07:31]OFD Sender: No OFD packet to send [22:07:36]OFD Sender: No OFD packet to send [22:07:41]OFD Sender: No OFD packet to send [22:07:43]accept exits with 7 [22:07:43]New connection [22:07:43]New thread 3066821988 created [22:07:43]Thread 3066965348 joined [22:07:43]Waiting for new connection... [22:07:43] Sock 7.Parse request [22:07:43]Sock 7.Check first char [22:07:43]Sock 7.First char is OK [22:07:43]request: POST /json_proto HTTP/1.0 [22:07:43]Method: POST [22:07:43]URL: /json_proto [22:07:43]Method is POST - this is cgi request [22:07:43]url: /json_proto [22:07:43]query_string will be loaded in cgi processing [22:07:43]execute_cgi json_proto POST (null) [22:07:43]execute_cgi path=json_proto method=POST [22:07:43]POST find Content-Length [22:07:43]Host: 172.17.39.68:8080 [22:07:43]Content-Length: 621 [22:07:43]Content-Type: application/json [22:07:43] [22:07:43]POST finish read [22:07:43]Found Content-Length = 621 [22:07:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214393", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True 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" ] } } [22:07:43]execute_script... [22:07: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)214393", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True 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" ] } } [22:07:43]POST & json_proto [22:07:43]process_json_proto [22:07:43]json parsed OK: [22:07:43]protocol is kg_v1.0 [22:07:43]action value=close_receipt [22:07:43]process_action close_receipt [22:07:43]cmd_close_receipt [22:07:43]MH_GetDate [22:07:43]Write to MH i2c: F0 00 00 37 32 58 [22:07:43]Write i2c OK [22:07:43]MH_I2C_Read... [22:07:43]Read from MH i2c: F0 [22:07:43]MH_I2C_Read... [22:07:43]Read from MH i2c: F0 09 00 [22:07:43]MH_I2C_Read... [22:07:43]Read from MH i2c: F0 09 00 37 32 00 36 EF 96 66 D6 48 95 66 9B [22:07:43]GetLastDocTimeStamp 1721166764 [22:07:43]current date 1721167670 [22:07:43]FM_GetShiftState [22:07:43]SAM_PROTO_GetShiftState [22:07:43]wFMCommunicate request_size=4 [22:07:43]MH_SAM_APDU [22:07:43]CAPDU: 80 13 01 00 [22:07:43]Write to MH i2c: E2 08 00 38 32 80 13 01 00 00 00 00 00 E7 [22:07:43]Write i2c OK [22:07:43]MH_I2C_Read... [22:07:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:43]Read from MH i2c: E2 [22:07:43]MH_I2C_Read... [22:07:43]Read from MH i2c: E2 0E 00 [22:07:43]MH_I2C_Read... [22:07:43]Read from MH i2c: E2 0E 00 38 32 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 36 [22:07:43]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:07:43]wFMCommunicate OK [22:07:43]SAM_PROTO_GetShiftState done [22:07:43]FM_GetShiftState done [22:07:43]opened in 1721088399 [22:07:43]opened+sec_in_day 1721174799 [22:07:43]quantity*price = 14000 [22:07:43]sum+1 = 14001 [22:07:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 131 16.07.2024 22:07 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31812 ФПД: 110986739517824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T220750&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31812&fm=110986739517824&tin=02508201610067®Number=0000000000098025&sum=14000 0 [22:07:44]StoreToDocumentArchive [22:07:44]shift 371 fd 31812 [22:07:44]save to /storage/0371/doc_00031812 [22:07:44]save last doc name /storage/0371/doc_00031812 to /storage/kkm_last_doc_name [22:07:44]save OK [22:07:44]Clear old archive folders... [22:07:44]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:07:44]tlvbuf is 014C7970 [22:07:44]SAM_PROTO_ClearQueue [22:07:44]wFMCommunicate request_size=4 [22:07:44]MH_SAM_APDU [22:07:44]CAPDU: 80 09 00 00 [22:07:44]Write to MH i2c: E2 08 00 45 32 80 09 00 00 00 00 00 00 E9 [22:07:44]Write i2c OK [22:07:44]MH_I2C_Read... [22:07:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:07:44]Read from MH i2c: E2 [22:07:44]MH_I2C_Read... [22:07:44]Read from MH i2c: E2 03 00 [22:07:44]MH_I2C_Read... [22:07:44]Read from MH i2c: E2 03 00 45 32 00 90 00 EB [22:07:44]RAPDU: 90 00 [22:07:44]wFMCommunicate OK [22:07:44]SAM_PROTO_ClearQueue done [22:07:44]KKMCreateOFDPacket [22:07:44]OFDProtocolAddRootSTLVToBuf [22:07:44]FM_MakeSignedData [22:07:44]FM_MakeSignedData [22:07:44]SAM_PROTO_SignData [22:07:44]wFMCommunicate request_size=4 [22:07:44]MH_SAM_APDU [22:07:44]CAPDU: 80 0D 01 02 [22:07:44]Write to MH i2c: E2 08 00 46 32 80 0D 01 02 00 00 00 00 F1 [22:07:44]Write i2c OK [22:07:44]MH_I2C_Read... [22:07:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:07:44]Read from MH i2c: E2 [22:07:44]MH_I2C_Read... [22:07:44]Read from MH i2c: E2 03 00 [22:07:44]MH_I2C_Read... [22:07:44]Read from MH i2c: E2 03 00 46 32 00 90 00 EC [22:07:44]RAPDU: 90 00 [22:07:44]wFMCommunicate OK [22:07:44]wFMCommunicate request_size=255 [22:07:44]MH_SAM_APDU [22:07: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 37 30 36 36 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 54 72 75 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 83 00 00 00 F4 03 04 00 36 EF 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 [22:07:44]Write to MH i2c: E2 02 01 47 32 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 36 36 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 54 72 75 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 83 00 00 00 F4 03 04 00 36 EF 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 00 00 25 [22:07:44]Write i2c OK [22:07:44]MH_I2C_Read... [22:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:45]Read from MH i2c: E2 [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: E2 03 00 [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: E2 03 00 47 32 00 90 00 ED [22:07:45]RAPDU: 90 00 [22:07:45]wFMCommunicate OK [22:07:45]wFMCommunicate request_size=32 [22:07:45]MH_SAM_APDU [22:07:45]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 35 33 38 39 10 04 04 00 44 7C 00 00 35 04 06 00 64 F1 1D 2F 09 80 [22:07:45]Write to MH i2c: E2 23 00 48 32 80 0D 02 02 1B 00 30 30 30 39 36 35 33 38 39 10 04 04 00 44 7C 00 00 35 04 06 00 64 F1 1D 2F 09 80 00 00 43 [22:07:45]Write i2c OK [22:07:45]MH_I2C_Read... [22:07:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:07:45]Read from MH i2c: E2 [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: E2 03 00 [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: E2 03 00 48 32 00 90 00 EE [22:07:45]RAPDU: 90 00 [22:07:45]wFMCommunicate OK [22:07:45]wFMCommunicate request_size=4 [22:07:45]MH_SAM_APDU [22:07:45]CAPDU: 80 0D 03 02 [22:07:45]Write to MH i2c: E2 08 00 49 32 80 0D 03 02 00 00 00 00 F6 [22:07:45]Write i2c OK [22:07:45]MH_I2C_Read... [22:07:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:07:45]Read from MH i2c: E2 [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: E2 0B 00 [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: E2 0B 00 49 32 00 DC 9B 42 5F 4A 01 6C 17 90 00 DD [22:07:45]RAPDU: DC 9B 42 5F 4A 01 6C 17 90 00 [22:07:45]wFMCommunicate OK [22:07:45]SAM_PROTO_SignData done [22:07:45]FM_MakeSignedData done [22:07:45]CreateOFDProtocolMessage [22:07:45]wFMCommunicate request_size=4 [22:07:45]MH_SAM_APDU [22:07:45]CAPDU: 80 11 00 00 [22:07:45]Write to MH i2c: E2 08 00 4A 32 80 11 00 00 00 00 00 00 F6 [22:07:45]Write i2c OK [22:07:45]MH_I2C_Read... [22:07:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:45]Read from MH i2c: E2 [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: E2 17 00 [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: E2 17 00 4A 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 51 [22:07:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:07:45]wFMCommunicate OK [22:07:45]CreateOFDProtocolMessage done [22:07:45]OFDSenderStorePacket 31812 [22:07:45]StoreOFDPacket docnum=31812 [22:07:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 99 A5 1D 01 8B 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 37 30 36 36 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 54 72 75 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 83 00 00 00 F4 03 04 00 36 EF 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 44 7C 00 00 35 04 06 00 64 F1 1D 2F 09 80 DC 9B 42 5F 4A 01 6C 17 [22:07:45]CheckFolder [22:07:45]dirname=/storage/ofd_packets [22:07:45]CheckFolder done [22:07:45]ProducePacketName [22:07:45]name=ofd_packets/00031812 [22:07:45]NVStorageSaveData ofd_packets/00031812 [22:07:45]File name is /storage/ofd_packets/00031812 [22:07:45]Write 323 bytes [22:07:45]NVStorageSaveData done [22:07:45]OFDSenderStorePacket done [22:07:45]KKMCreateOFDPacket done [22:07:45]NVStorageSaveData kkm_last_timestamp [22:07:45]File name is /storage/kkm_last_timestamp [22:07:45]Write 4 bytes [22:07:45]NVStorageSaveData done [22:07:45]ExternCall_PrintAddStr [22:07:45]wPrintStart [22:07:45]Write to MH i2c: 01 00 00 4B 32 7D [22:07:45]Write i2c OK [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: 01 [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: 01 07 00 [22:07:45]MH_I2C_Read... [22:07:45]Read from MH i2c: 01 07 00 4B 32 00 00 00 00 00 FF 0F 92 [22:07:45]RasterBufferAndPrint [22:07:45]line Счет N : (3)214393 [22:07:45]line ИНН: 02508201610067 [22:07:45]line Контрольно-Кассовый Чек [22:07:45]line ПРОДАЖА [22:07:45]line Товар: 48747066 [22:07:45]line Сигареты Winston True Silver [22:07:45]line 1.000 * 140.00 [22:07:45]line = 140.00 [22:07:45]line НДС 12% НСП 1% [22:07:45]line > о реализуемом товаре [22:07:45]line ИТОГО: 140.00 [22:07:45]line НСП 1% : 1.24 [22:07:45]line НДС 12% : 14.87 [22:07:45]line Наличными: 140.00 [22:07:45]line Безнал.: 0.00 [22:07:45]line Место: АЗС № 140 "Партнер Нефть" [22:07:45]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:07:45]line СНО: Общий режим [22:07:45]line Чек 131 16.07.2024 22:07 [22:07:45]line Смена: 371 ФФД: 1.0 [22:07:45]line ЗНМ: 0300000189 [22:07:45]line РНМ: 0000000000098025 [22:07:45]line Версия ККМ: 001 [22:07:45]line ФМ: 0000000000965389 [22:07:45]line ФД: 31812 [22:07:45]line ФПД: 110986739517824 [22:07:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T220750&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31812&fm=110986739517824&tin=02508201610067®Number=0000000000098025&sum=14000 [22:07:45]line 0 [22:07:45]OFD Sender: Processing packet 31812 [packets to send 6, broken 5] [22:07:45]ProducePacketName [22:07:45]name=ofd_packets/00031812 [22:07:45]OFD Sender: To server: pG, [22:07:45]CommunicateWithHost lk.salyk.kg:30040 [22:07:45]ConnectInit lk.salyk.kg [22:07:45]written 0, free lines is 4095 [22:07:45]Connected sock=10 [22:07:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 25 01 00 00 99 A5 1D 01 8B 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 37 30 36 36 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 54 72 75 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 83 00 00 00 F4 03 04 00 36 EF 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 44 7C 00 00 35 04 06 00 64 F1 1D 2F 09 80 DC 9B 42 5F 4A 01 6C 17 [22:07:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 DB D5 47 00 34 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 35 33 38 39 10 04 04 00 44 7C 00 00 F4 03 04 00 42 9B 96 66 B6 04 01 00 00 AC 35 83 BC D2 CF 6A D1 [22:07:45]CommunicateWithHost err = 0 [22:07:45]CheckOFDResponse [22:07:45]1017 (14) - 77093643461234 [22:07:45]1041 (16) - 0000000000965389 [22:07:45]1040 (4) - 31812 [22:07:45]1012 (4) - 16.07.2024 16:09 [22:07:45]1206 (1) - 0 [22:07:45]OFD Sender: Remove packet 31812 [22:07:45]ProducePacketName [22:07:45]name=ofd_packets/00031812 [22:07:45]NVStorageDeleteData [22:07:46]Write to MH i2c: 01 00 00 73 32 A5 [22:07:46]Write i2c OK [22:07:46]MH_I2C_Read... [22:07:46]Read from MH i2c: 01 [22:07:46]MH_I2C_Read... [22:07:46]Read from MH i2c: 01 07 00 [22:07:46]MH_I2C_Read... [22:07:46]Read from MH i2c: 01 07 00 73 32 00 00 00 00 00 F3 0C AB [22:07:46]RasterBufferAndPrint [22:07:46]line [22:07:46]line [22:07:46]line [22:07:46]line [22:07:46]line [22:07:46]written 0, free lines is 3323 [22:07:46]MH_Cut [22:07:46]Write to MH i2c: D1 01 00 7A 32 01 7E [22:07:46]Write i2c OK [22:07:46]MH_I2C_Read... [22:07:46]Read from MH i2c: D1 [22:07:46]MH_I2C_Read... [22:07:46]Read from MH i2c: D1 01 00 [22:07:46]MH_I2C_Read... [22:07:46]Read from MH i2c: D1 01 00 7A 32 00 7D [22:07:46]Write to MH i2c: 01 00 00 7B 32 AD [22:07:46]Write i2c OK [22:07:46]MH_I2C_Read... [22:07:46]OFD Sender: No OFD packet to send [22:07:46]*** Cut start [22:07:46]*** Partial cut [22:07:46]*** CUTSNS_PIN = 1 [22:07:46]*** CUTSNS_PIN = 0 [22:07:47]*** Brake cut motor [22:07:47]Read from MH i2c: 01 [22:07:47]MH_I2C_Read... [22:07:47]*** Stop cut motor [22:07:47]*** Cut end [22:07:47]Read from MH i2c: 01 07 00 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: 01 07 00 7B 32 00 00 00 00 00 FF 0F C2 [22:07:47]process_action close_receipt done [22:07:47]requested_data is exist [22:07:47]produce_requested_data [22:07:47]requested_item fm.sn is exist - process it [22:07:47]wFMCommunicate request_size=4 [22:07:47]MH_SAM_APDU [22:07:47]CAPDU: 80 11 00 00 [22:07:47]Write to MH i2c: E2 08 00 7C 32 80 11 00 00 00 00 00 00 28 [22:07:47]Write i2c OK [22:07:47]MH_I2C_Read... [22:07:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:47]Read from MH i2c: E2 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: E2 17 00 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: E2 17 00 7C 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 83 [22:07:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:07:47]wFMCommunicate OK [22:07:47]requested_item fd.num is exist - process it [22:07:47]SAM_PROTO_GetFieldsCounters [22:07:47]wFMCommunicate request_size=4 [22:07:47]MH_SAM_APDU [22:07:47]CAPDU: 80 13 00 00 [22:07:47]Write to MH i2c: E2 08 00 7D 32 80 13 00 00 00 00 00 00 2B [22:07:47]Write i2c OK [22:07:47]MH_I2C_Read... [22:07:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:47]Read from MH i2c: E2 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: E2 62 00 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: E2 62 00 7D 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 44 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [22:07: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 44 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:47]wFMCommunicate OK [22:07:47]SAM_PROTO_GetFieldsCounters done [22:07:47]requested_item shift.num is exist - process it [22:07:47]requested_item shift.opened is exist - process it [22:07:47]req_shift_opened [22:07:47]FM_GetShiftState [22:07:47]SAM_PROTO_GetShiftState [22:07:47]wFMCommunicate request_size=4 [22:07:47]MH_SAM_APDU [22:07:47]CAPDU: 80 13 01 00 [22:07:47]Write to MH i2c: E2 08 00 7E 32 80 13 01 00 00 00 00 00 2D [22:07:47]Write i2c OK [22:07:47]MH_I2C_Read... [22:07:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:47]Read from MH i2c: E2 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: E2 0E 00 [22:07:47]MH_I2C_Read... [22:07:47]Read from MH i2c: E2 0E 00 7E 32 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 7C [22:07:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:07:47]wFMCommunicate OK [22:07:47]SAM_PROTO_GetShiftState done [22:07:47]FM_GetShiftState done [22:07:47]req_shift_opened done [22:07:47]requested_item shift.open_date is exist - process it [22:07:47]req_shift_open_date [22:07:47]req_shift_open_date done [22:07:47]produce_requested_data done [22:07:47]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31812,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [22:07:47]process_action_free close_receipt [22:07:47]json_value_free [22:07:47]json_value_free done [22:07:47]process_json_proto returns [22:07:47]Send response to host [22:07:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31812,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [22:07:47]free response buf [22:07:47]execute_script done [22:07:47]execute_script returns [22:07:47]free content buf [22:07:47]Sock 7.Close socket [22:07:47]Sock 7.Thread stoped [22:07:51]OFD Sender: No OFD packet to send [22:07:56]OFD Sender: No OFD packet to send [22:08:01]OFD Sender: No OFD packet to send [22:08:06]OFD Sender: No OFD packet to send [22:08:11]OFD Sender: No OFD packet to send [22:08:16]OFD Sender: No OFD packet to send [22:08:21]OFD Sender: No OFD packet to send [22:08:26]OFD Sender: No OFD packet to send [22:08:31]OFD Sender: No OFD packet to send [22:08:36]OFD Sender: No OFD packet to send [22:08:41]OFD Sender: No OFD packet to send [22:08:46]OFD Sender: No OFD packet to send [22:08:51]OFD Sender: No OFD packet to send [22:08:56]OFD Sender: No OFD packet to send [22:09:01]OFD Sender: No OFD packet to send [22:09:06]OFD Sender: No OFD packet to send [22:09:11]OFD Sender: No OFD packet to send [22:09:16]OFD Sender: No OFD packet to send [22:09:21]OFD Sender: No OFD packet to send [22:09:26]OFD Sender: No OFD packet to send [22:09:31]OFD Sender: No OFD packet to send [22:09:36]OFD Sender: No OFD packet to send [22:09:41]OFD Sender: No OFD packet to send [22:09:46]OFD Sender: No OFD packet to send [22:09:51]OFD Sender: No OFD packet to send [22:09:56]OFD Sender: No OFD packet to send [22:10:01]OFD Sender: No OFD packet to send [22:10:06]OFD Sender: No OFD packet to send [22:10:11]OFD Sender: No OFD packet to send [22:10:16]OFD Sender: No OFD packet to send [22:10:21]OFD Sender: No OFD packet to send [22:10:26]OFD Sender: No OFD packet to send [22:10:31]OFD Sender: No OFD packet to send [22:10:36]OFD Sender: No OFD packet to send [22:10:41]OFD Sender: No OFD packet to send [22:10:46]OFD Sender: No OFD packet to send [22:10:51]OFD Sender: No OFD packet to send [22:10:56]OFD Sender: No OFD packet to send [22:11:01]OFD Sender: No OFD packet to send [22:11:06]OFD Sender: No OFD packet to send [22:11:11]OFD Sender: No OFD packet to send [22:11:16]OFD Sender: No OFD packet to send [22:11:21]OFD Sender: No OFD packet to send [22:11:26]OFD Sender: No OFD packet to send [22:11:31]OFD Sender: No OFD packet to send [22:11:36]OFD Sender: No OFD packet to send [22:11:41]OFD Sender: No OFD packet to send [22:11:46]OFD Sender: No OFD packet to send [22:11:51]OFD Sender: No OFD packet to send [22:11:56]OFD Sender: No OFD packet to send [22:12:01]OFD Sender: No OFD packet to send [22:12:06]OFD Sender: No OFD packet to send [22:12:11]OFD Sender: No OFD packet to send [22:12:16]OFD Sender: No OFD packet to send [22:12:21]OFD Sender: No OFD packet to send [22:12:26]OFD Sender: No OFD packet to send [22:12:31]OFD Sender: No OFD packet to send [22:12:36]OFD Sender: No OFD packet to send [22:12:41]OFD Sender: No OFD packet to send [22:12:46]OFD Sender: No OFD packet to send [22:12:51]OFD Sender: No OFD packet to send [22:12:56]OFD Sender: No OFD packet to send [22:13:01]OFD Sender: No OFD packet to send [22:13:06]OFD Sender: No OFD packet to send [22:13:11]OFD Sender: No OFD packet to send [22:13:13]accept exits with 9 [22:13:13]New connection [22:13:13]New thread 3066965348 created [22:13:13]Thread 3066821988 joined [22:13:13]Waiting for new connection... [22:13:13] Sock 9.Parse request [22:13:13]Sock 9.Check first char [22:13:13]Sock 9.First char is OK [22:13:13]request: POST /json_proto HTTP/1.0 [22:13:13]Method: POST [22:13:13]URL: /json_proto [22:13:13]Method is POST - this is cgi request [22:13:13]url: /json_proto [22:13:13]query_string will be loaded in cgi processing [22:13:13]execute_cgi json_proto POST (null) [22:13:13]execute_cgi path=json_proto method=POST [22:13:13]POST find Content-Length [22:13:13]Host: 172.17.39.68:8080 [22:13:13]Content-Length: 662 [22:13:13]Content-Type: application/json [22:13:13] [22:13:13]POST finish read [22:13:13]Found Content-Length = 662 [22:13:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214394", "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 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:13]execute_script... [22:13:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214394", "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 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:13]POST & json_proto [22:13:13]process_json_proto [22:13:13]json parsed OK: [22:13:13]protocol is kg_v1.0 [22:13:13]action value=close_receipt [22:13:13]process_action close_receipt [22:13:13]cmd_close_receipt [22:13:13]MH_GetDate [22:13:13]Write to MH i2c: F0 00 00 7F 32 A0 [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: F0 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: F0 09 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: F0 09 00 7F 32 00 80 F0 96 66 D6 48 95 66 2E [22:13:13]GetLastDocTimeStamp 1721167670 [22:13:13]current date 1721168000 [22:13:13]FM_GetShiftState [22:13:13]SAM_PROTO_GetShiftState [22:13:13]wFMCommunicate request_size=4 [22:13:13]MH_SAM_APDU [22:13:13]CAPDU: 80 13 01 00 [22:13:13]Write to MH i2c: E2 08 00 80 32 80 13 01 00 00 00 00 00 2F [22:13:13]Write i2c OK [22:13:13]MH_I2C_Read... [22:13:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:13]Read from MH i2c: E2 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 0E 00 [22:13:13]MH_I2C_Read... [22:13:13]Read from MH i2c: E2 0E 00 80 32 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 7E [22:13:13]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:13:13]wFMCommunicate OK [22:13:13]SAM_PROTO_GetShiftState done [22:13:13]FM_GetShiftState done [22:13:13]opened in 1721088399 [22:13:13]opened+sec_in_day 1721174799 [22:13:13]quantity*price = 9500 [22:13:13]sum+1 = 9501 [22:13:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 132 16.07.2024 22:13 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31813 ФПД: 173127062910072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T221320&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31813&fm=173127062910072&tin=02508201610067®Number=0000000000098025&sum=9500 0 [22:13:14]StoreToDocumentArchive [22:13:14]shift 371 fd 31813 [22:13:14]save to /storage/0371/doc_00031813 [22:13:14]save last doc name /storage/0371/doc_00031813 to /storage/kkm_last_doc_name [22:13:14]save OK [22:13:14]Clear old archive folders... [22:13:14]ProcessDocumentItem done err = 0, tmpTLVsize=289 [22:13:14]tlvbuf is 0148D710 [22:13:14]SAM_PROTO_ClearQueue [22:13:14]wFMCommunicate request_size=4 [22:13:14]MH_SAM_APDU [22:13:14]CAPDU: 80 09 00 00 [22:13:14]Write to MH i2c: E2 08 00 8D 32 80 09 00 00 00 00 00 00 31 [22:13:14]Write i2c OK [22:13:14]MH_I2C_Read... [22:13:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:14]Read from MH i2c: E2 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: E2 03 00 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: E2 03 00 8D 32 00 90 00 33 [22:13:14]RAPDU: 90 00 [22:13:14]wFMCommunicate OK [22:13:14]SAM_PROTO_ClearQueue done [22:13:14]KKMCreateOFDPacket [22:13:14]OFDProtocolAddRootSTLVToBuf [22:13:14]FM_MakeSignedData [22:13:14]FM_MakeSignedData [22:13:14]SAM_PROTO_SignData [22:13:14]wFMCommunicate request_size=4 [22:13:14]MH_SAM_APDU [22:13:14]CAPDU: 80 0D 01 02 [22:13:14]Write to MH i2c: E2 08 00 8E 32 80 0D 01 02 00 00 00 00 39 [22:13:14]Write i2c OK [22:13:14]MH_I2C_Read... [22:13:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:14]Read from MH i2c: E2 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: E2 03 00 [22:13:14]MH_I2C_Read... [22:13:14]Read from MH i2c: E2 03 00 8E 32 00 90 00 34 [22:13:14]RAPDU: 90 00 [22:13:14]wFMCommunicate OK [22:13:14]wFMCommunicate request_size=255 [22:13:14]MH_SAM_APDU [22:13:14]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 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 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 84 00 00 00 F4 03 04 00 80 F0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [22:13:14]Write to MH i2c: E2 02 01 8F 32 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 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 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 84 00 00 00 F4 03 04 00 80 F0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 0D [22:13:14]Write i2c OK [22:13:14]MH_I2C_Read... [22:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:15]Read from MH i2c: E2 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 03 00 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 03 00 8F 32 00 90 00 35 [22:13:15]RAPDU: 90 00 [22:13:15]wFMCommunicate OK [22:13:15]wFMCommunicate request_size=48 [22:13:15]MH_SAM_APDU [22:13:15]CAPDU: 80 0D 02 02 2B 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 45 7C 00 00 35 04 06 00 9D 75 49 15 F4 78 [22:13:15]Write to MH i2c: E2 33 00 90 32 80 0D 02 02 2B 00 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 45 7C 00 00 35 04 06 00 9D 75 49 15 F4 78 00 00 DB [22:13:15]Write i2c OK [22:13:15]MH_I2C_Read... [22:13:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:15]Read from MH i2c: E2 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 03 00 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 03 00 90 32 00 90 00 36 [22:13:15]RAPDU: 90 00 [22:13:15]wFMCommunicate OK [22:13:15]wFMCommunicate request_size=4 [22:13:15]MH_SAM_APDU [22:13:15]CAPDU: 80 0D 03 02 [22:13:15]Write to MH i2c: E2 08 00 91 32 80 0D 03 02 00 00 00 00 3E [22:13:15]Write i2c OK [22:13:15]MH_I2C_Read... [22:13:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:15]Read from MH i2c: E2 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 0B 00 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 0B 00 91 32 00 1C 59 8D 6E C9 69 9C 46 90 00 C3 [22:13:15]RAPDU: 1C 59 8D 6E C9 69 9C 46 90 00 [22:13:15]wFMCommunicate OK [22:13:15]SAM_PROTO_SignData done [22:13:15]FM_MakeSignedData done [22:13:15]CreateOFDProtocolMessage [22:13:15]wFMCommunicate request_size=4 [22:13:15]MH_SAM_APDU [22:13:15]CAPDU: 80 11 00 00 [22:13:15]Write to MH i2c: E2 08 00 92 32 80 11 00 00 00 00 00 00 3E [22:13:15]Write i2c OK [22:13:15]MH_I2C_Read... [22:13:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:15]Read from MH i2c: E2 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 17 00 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: E2 17 00 92 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 99 [22:13:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:13:15]wFMCommunicate OK [22:13:15]CreateOFDProtocolMessage done [22:13:15]OFDSenderStorePacket 31813 [22:13:15]StoreOFDPacket docnum=31813 [22:13:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 01 00 00 8A B7 2D 01 D5 6E 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 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 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 84 00 00 00 F4 03 04 00 80 F0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 45 7C 00 00 35 04 06 00 9D 75 49 15 F4 78 1C 59 8D 6E C9 69 9C 46 [22:13:15]CheckFolder [22:13:15]dirname=/storage/ofd_packets [22:13:15]CheckFolder done [22:13:15]ProducePacketName [22:13:15]name=ofd_packets/00031813 [22:13:15]NVStorageSaveData ofd_packets/00031813 [22:13:15]File name is /storage/ofd_packets/00031813 [22:13:15]Write 339 bytes [22:13:15]NVStorageSaveData done [22:13:15]OFDSenderStorePacket done [22:13:15]KKMCreateOFDPacket done [22:13:15]NVStorageSaveData kkm_last_timestamp [22:13:15]File name is /storage/kkm_last_timestamp [22:13:15]Write 4 bytes [22:13:15]NVStorageSaveData done [22:13:15]ExternCall_PrintAddStr [22:13:15]wPrintStart [22:13:15]Write to MH i2c: 01 00 00 93 32 C5 [22:13:15]Write i2c OK [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: 01 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: 01 07 00 [22:13:15]MH_I2C_Read... [22:13:15]Read from MH i2c: 01 07 00 93 32 00 00 00 00 00 FF 0F DA [22:13:15]RasterBufferAndPrint [22:13:15]line Счет N : (3)214394 [22:13:15]line ИНН: 02508201610067 [22:13:15]line Контрольно-Кассовый Чек [22:13:15]line ПРОДАЖА [22:13:15]line Товар: 5449000176431 [22:13:15]line Сок Piko Pulpy апельсин ПЭТ 0,5л [22:13:15]line 1.000 * 95.00 [22:13:15]line = 95.00 [22:13:15]line НДС 12% НСП 1% [22:13:15]line > о реализуемом товаре [22:13:15]line ИТОГО: 95.00 [22:13:15]line НСП 1% : 0.84 [22:13:15]line НДС 12% : 10.09 [22:13:15]line Наличными: 95.00 [22:13:15]line Безнал.: 0.00 [22:13:15]line Место: АЗС № 140 "Партнер Нефть" [22:13:15]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:13:15]line СНО: Общий режим [22:13:15]line Чек 132 16.07.2024 22:13 [22:13:15]line Смена: 371 ФФД: 1.0 [22:13:15]line ЗНМ: 0300000189 [22:13:15]line РНМ: 0000000000098025 [22:13:15]line Версия ККМ: 001 [22:13:15]line ФМ: 0000000000965389 [22:13:15]line ФД: 31813 [22:13:15]line ФПД: 173127062910072 [22:13:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T221320&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31813&fm=173127062910072&tin=02508201610067®Number=0000000000098025&sum=9500 [22:13:15]OFD Sender: Processing packet 31813 [packets to send 6, broken 5] [22:13:15]ProducePacketName [22:13:15]name=ofd_packets/00031813 [22:13:15]OFD Sender: To server: pG, [22:13:15]CommunicateWithHost lk.salyk.kg:30040 [22:13:15]ConnectInit lk.salyk.kg [22:13:15]line 0 [22:13:15]written 0, free lines is 4095 [22:13:15]Connected sock=10 [22: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 35 33 38 39 35 01 00 00 8A B7 2D 01 D5 6E 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 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 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 84 00 00 00 F4 03 04 00 80 F0 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 45 7C 00 00 35 04 06 00 9D 75 49 15 F4 78 1C 59 8D 6E C9 69 9C 46 [22:13:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 53 5B 47 00 FA 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 35 33 38 39 10 04 04 00 45 7C 00 00 F4 03 04 00 8C 9C 96 66 B6 04 01 00 00 36 DE F5 2D 23 88 CE 37 [22:13:16]CommunicateWithHost err = 0 [22:13:16]CheckOFDResponse [22:13:16]1017 (14) - 77093643461234 [22:13:16]1041 (16) - 0000000000965389 [22:13:16]1040 (4) - 31813 [22:13:16]1012 (4) - 16.07.2024 16:15 [22:13:16]1206 (1) - 0 [22:13:16]OFD Sender: Remove packet 31813 [22:13:16]ProducePacketName [22:13:16]name=ofd_packets/00031813 [22:13:16]NVStorageDeleteData [22:13:16]Write to MH i2c: 01 00 00 BC 32 EE [22:13:16]Write i2c OK [22:13:16]MH_I2C_Read... [22:13:16]Read from MH i2c: 01 [22:13:16]MH_I2C_Read... [22:13:16]Read from MH i2c: 01 07 00 [22:13:16]MH_I2C_Read... [22:13:16]Read from MH i2c: 01 07 00 BC 32 00 00 00 00 00 EB 0C EC [22:13:16]RasterBufferAndPrint [22:13:16]line [22:13:16]line [22:13:16]line [22:13:16]line [22:13:16]line [22:13:16]written 0, free lines is 3313 [22:13:16]MH_Cut [22:13:16]Write to MH i2c: D1 01 00 C3 32 01 C7 [22:13:16]Write i2c OK [22:13:16]MH_I2C_Read... [22:13:16]Read from MH i2c: D1 [22:13:16]MH_I2C_Read... [22:13:16]Read from MH i2c: D1 01 00 [22:13:16]MH_I2C_Read... [22:13:16]Read from MH i2c: D1 01 00 C3 32 00 C6 [22:13:16]Write to MH i2c: 01 00 00 C4 32 F6 [22:13:16]Write i2c OK [22:13:16]MH_I2C_Read... [22:13:16]OFD Sender: No OFD packet to send [22:13:16]*** Cut start [22:13:16]*** Partial cut [22:13:16]*** CUTSNS_PIN = 1 [22:13:16]*** CUTSNS_PIN = 0 [22:13:17]*** Brake cut motor [22:13:17]Read from MH i2c: 01 [22:13:17]MH_I2C_Read... [22:13:17]*** Stop cut motor [22:13:17]*** Cut end [22:13:17]Read from MH i2c: 01 07 00 [22:13:17]MH_I2C_Read... [22:13:17]Read from MH i2c: 01 07 00 C4 32 00 00 00 00 00 FF 0F 0B [22:13:17]process_action close_receipt done [22:13:17]requested_data is exist [22:13:17]produce_requested_data [22:13:17]requested_item fm.sn is exist - process it [22:13:17]wFMCommunicate request_size=4 [22:13:17]MH_SAM_APDU [22:13:17]CAPDU: 80 11 00 00 [22:13:17]Write to MH i2c: E2 08 00 C5 32 80 11 00 00 00 00 00 00 71 [22:13:17]Write i2c OK [22:13:17]MH_I2C_Read... [22:13:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:17]Read from MH i2c: E2 [22:13:17]MH_I2C_Read... [22:13:17]Read from MH i2c: E2 17 00 [22:13:17]MH_I2C_Read... [22:13:17]Read from MH i2c: E2 17 00 C5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CC [22:13:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:13:17]wFMCommunicate OK [22:13:17]requested_item fd.num is exist - process it [22:13:17]SAM_PROTO_GetFieldsCounters [22:13:17]wFMCommunicate request_size=4 [22:13:17]MH_SAM_APDU [22:13:17]CAPDU: 80 13 00 00 [22:13:17]Write to MH i2c: E2 08 00 C6 32 80 13 00 00 00 00 00 00 74 [22:13:17]Write i2c OK [22:13:17]MH_I2C_Read... [22:13:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:17]Read from MH i2c: E2 [22:13:17]MH_I2C_Read... [22:13:17]Read from MH i2c: E2 62 00 [22:13:17]MH_I2C_Read... [22:13:17]Read from MH i2c: E2 62 00 C6 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 45 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 5D [22: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 45 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:17]wFMCommunicate OK [22:13:17]SAM_PROTO_GetFieldsCounters done [22:13:17]requested_item shift.num is exist - process it [22:13:17]requested_item shift.opened is exist - process it [22:13:17]req_shift_opened [22:13:17]FM_GetShiftState [22:13:17]SAM_PROTO_GetShiftState [22:13:17]wFMCommunicate request_size=4 [22:13:17]MH_SAM_APDU [22:13:17]CAPDU: 80 13 01 00 [22:13:17]Write to MH i2c: E2 08 00 C7 32 80 13 01 00 00 00 00 00 76 [22:13:17]Write i2c OK [22:13:17]MH_I2C_Read... [22:13:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:17]Read from MH i2c: E2 [22:13:17]MH_I2C_Read... [22:13:17]Read from MH i2c: E2 0E 00 [22:13:17]MH_I2C_Read... [22:13:17]Read from MH i2c: E2 0E 00 C7 32 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C5 [22:13:17]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:13:17]wFMCommunicate OK [22:13:17]SAM_PROTO_GetShiftState done [22:13:17]FM_GetShiftState done [22:13:17]req_shift_opened done [22:13:17]requested_item shift.open_date is exist - process it [22:13:17]req_shift_open_date [22:13:17]req_shift_open_date done [22:13:17]produce_requested_data done [22:13:17]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31813,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [22:13:17]process_action_free close_receipt [22:13:17]json_value_free [22:13:17]json_value_free done [22:13:17]process_json_proto returns [22:13:17]Send response to host [22:13:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31813,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [22:13:17]free response buf [22:13:17]execute_script done [22:13:17]execute_script returns [22:13:17]free content buf [22:13:17]Sock 9.Close socket [22:13:17]Sock 9.Thread stoped [22:13:21]OFD Sender: No OFD packet to send [22:13:26]OFD Sender: No OFD packet to send [22:13:31]OFD Sender: No OFD packet to send [22:13:36]OFD Sender: No OFD packet to send [22:13:41]OFD Sender: No OFD packet to send [22:13:46]OFD Sender: No OFD packet to send [22:13:51]OFD Sender: No OFD packet to send [22:13:56]OFD Sender: No OFD packet to send [22:14:01]OFD Sender: No OFD packet to send [22:14:06]OFD Sender: No OFD packet to send [22:14:11]OFD Sender: No OFD packet to send [22:14:16]OFD Sender: No OFD packet to send [22:14:21]OFD Sender: No OFD packet to send [22:14:26]OFD Sender: No OFD packet to send [22:14:31]OFD Sender: No OFD packet to send [22:14:36]OFD Sender: No OFD packet to send [22:14:41]OFD Sender: No OFD packet to send [22:14:46]OFD Sender: No OFD packet to send [22:14:51]OFD Sender: No OFD packet to send [22:14:56]OFD Sender: No OFD packet to send [22:15:01]OFD Sender: No OFD packet to send [22:15:06]OFD Sender: No OFD packet to send [22:15:11]OFD Sender: No OFD packet to send [22:15:16]OFD Sender: No OFD packet to send [22:15:21]OFD Sender: No OFD packet to send [22:15:26]OFD Sender: No OFD packet to send [22:15:31]OFD Sender: No OFD packet to send [22:15:36]OFD Sender: No OFD packet to send [22:15:41]OFD Sender: No OFD packet to send [22:15:46]OFD Sender: No OFD packet to send [22:15:51]OFD Sender: No OFD packet to send [22:15:56]OFD Sender: No OFD packet to send [22:16:01]OFD Sender: No OFD packet to send [22:16:06]OFD Sender: No OFD packet to send [22:16:11]OFD Sender: No OFD packet to send [22:16:16]OFD Sender: No OFD packet to send [22:16:21]OFD Sender: No OFD packet to send [22:16:26]OFD Sender: No OFD packet to send [22:16:31]OFD Sender: No OFD packet to send [22:16:36]OFD Sender: No OFD packet to send [22:16:41]OFD Sender: No OFD packet to send [22:16:46]OFD Sender: No OFD packet to send [22:16:51]OFD Sender: No OFD packet to send [22:16:56]OFD Sender: No OFD packet to send [22:17:01]OFD Sender: No OFD packet to send [22:17:06]OFD Sender: No OFD packet to send [22:17:11]OFD Sender: No OFD packet to send [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:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]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:30]accept exits with 7 [22:38:30]New connection [22:38:30]New thread 3066821988 created [22:38:30]Thread 3066965348 joined [22:38:30]Waiting for new connection... [22:38:30] Sock 7.Parse request [22:38:30]Sock 7.Check first char [22:38:30]Sock 7.First char is OK [22:38:30]request: POST /json_proto HTTP/1.0 [22:38:30]Method: POST [22:38:30]URL: /json_proto [22:38:30]Method is POST - this is cgi request [22:38:30]url: /json_proto [22:38:30]query_string will be loaded in cgi processing [22:38:30]execute_cgi json_proto POST (null) [22:38:30]execute_cgi path=json_proto method=POST [22:38:30]POST find Content-Length [22:38:30]Host: 172.17.39.68:8080 [22:38:30]Content-Length: 1455 [22:38:30]Content-Type: application/json [22:38:30] [22:38:30]POST finish read [22:38:30]Found Content-Length = 1455 [22:38:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214395", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 2.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 113.00, "quantity" : 2.000, "sum" : 226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 846.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:30]execute_script... [22:38: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)214395", "tax_sys" : 0, "items" : [ { "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 }]} ,{ "code": "4607120854177", "name": "\u0421\u043D\u0435\u043A \u041E\u0440\u0435\u0445\u0438 BEERKa \u0410\u0440\u0430\u0445\u0438\u0441 30\u0433", "price" : 25.00, "quantity" : 2.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 113.00, "quantity" : 2.000, "sum" : 226.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 846.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:30]POST & json_proto [22:38:30]process_json_proto [22:38:30]json parsed OK: [22:38:30]protocol is kg_v1.0 [22:38:30]action value=close_receipt [22:38:30]process_action close_receipt [22:38:30]cmd_close_receipt [22:38:30]MH_GetDate [22:38:30]Write to MH i2c: F0 00 00 C8 32 E9 [22:38:30]Write i2c OK [22:38:30]MH_I2C_Read... [22:38:30]Read from MH i2c: F0 [22:38:30]MH_I2C_Read... [22:38:30]Read from MH i2c: F0 09 00 [22:38:30]MH_I2C_Read... [22:38:30]Read from MH i2c: F0 09 00 C8 32 00 6C F6 96 66 D6 48 95 66 69 [22:38:30]GetLastDocTimeStamp 1721168000 [22:38:30]current date 1721169516 [22:38:30]FM_GetShiftState [22:38:30]SAM_PROTO_GetShiftState [22:38:30]wFMCommunicate request_size=4 [22:38:30]MH_SAM_APDU [22:38:30]CAPDU: 80 13 01 00 [22:38:30]Write to MH i2c: E2 08 00 C9 32 80 13 01 00 00 00 00 00 78 [22:38:30]Write i2c OK [22:38:30]MH_I2C_Read... [22:38:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:30]Read from MH i2c: E2 [22:38:30]MH_I2C_Read... [22:38:30]Read from MH i2c: E2 0E 00 [22:38:30]MH_I2C_Read... [22:38:30]Read from MH i2c: E2 0E 00 C9 32 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 C7 [22:38:30]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:38:30]wFMCommunicate OK [22:38:30]SAM_PROTO_GetShiftState done [22:38:30]FM_GetShiftState done [22:38:30]opened in 1721088399 [22:38:30]opened+sec_in_day 1721174799 [22:38:30]quantity*price = 6000 [22:38:30]sum+1 = 6001 [22:38:30]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607120854177 Снек Орехи BEERKa Арахис 30г 2.000 * 25.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607015232868 Вафли Яшкино в шоколадной глазури 200г 2.000 * 113.00 = 226.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700002083327 Водка Level 0,5 1.000 * 510.00 = 510.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 846.00 НСП 1% : 7.48 НДС 12% : 89.84 Наличными: 846.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 133 16.07.2024 22:38 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31814 ФПД: 130999195198678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T223837&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31814&fm=130999195198678&tin=02508201610067®Number=0000000000098025&sum=84600 0 [22:38:31]StoreToDocumentArchive [22:38:31]shift 371 fd 31814 [22:38:31]save to /storage/0371/doc_00031814 [22:38:31]save last doc name /storage/0371/doc_00031814 to /storage/kkm_last_doc_name [22:38:31]save OK [22:38:31]Clear old archive folders... [22:38:31]ProcessDocumentItem done err = 0, tmpTLVsize=609 [22:38:31]tlvbuf is 015ED0E0 [22:38:31]SAM_PROTO_ClearQueue [22:38:31]wFMCommunicate request_size=4 [22:38:31]MH_SAM_APDU [22:38:31]CAPDU: 80 09 00 00 [22:38:31]Write to MH i2c: E2 08 00 D6 32 80 09 00 00 00 00 00 00 7A [22:38:31]Write i2c OK [22:38:31]MH_I2C_Read... [22:38:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:31]Read from MH i2c: E2 [22:38:31]MH_I2C_Read... [22:38:31]Read from MH i2c: E2 03 00 [22:38:31]MH_I2C_Read... [22:38:31]Read from MH i2c: E2 03 00 D6 32 00 90 00 7C [22:38:31]RAPDU: 90 00 [22:38:31]wFMCommunicate OK [22:38:31]SAM_PROTO_ClearQueue done [22:38:31]KKMCreateOFDPacket [22:38:31]OFDProtocolAddRootSTLVToBuf [22:38:31]FM_MakeSignedData [22:38:31]FM_MakeSignedData [22:38:31]SAM_PROTO_SignData [22:38:31]wFMCommunicate request_size=4 [22:38:31]MH_SAM_APDU [22:38:31]CAPDU: 80 0D 01 02 [22:38:31]Write to MH i2c: E2 08 00 D7 32 80 0D 01 02 00 00 00 00 82 [22:38:31]Write i2c OK [22:38:31]MH_I2C_Read... [22:38:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:31]Read from MH i2c: E2 [22:38:31]MH_I2C_Read... [22:38:31]Read from MH i2c: E2 03 00 [22:38:31]MH_I2C_Read... [22:38:31]Read from MH i2c: E2 03 00 D7 32 00 90 00 7D [22:38:31]RAPDU: 90 00 [22:38:31]wFMCommunicate OK [22:38:31]wFMCommunicate request_size=255 [22:38:31]MH_SAM_APDU [22:38:31]CAPDU: 80 0D 02 02 FA 03 00 61 02 1E 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 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 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 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 [22:38:31]Write to MH i2c: E2 02 01 D8 32 80 0D 02 02 FA 00 03 00 61 02 1E 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 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 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 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 00 00 93 [22:38:31]Write i2c OK [22:38:31]MH_I2C_Read... [22:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:32]Read from MH i2c: E2 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 D8 32 00 90 00 7E [22:38:32]RAPDU: 90 00 [22:38:32]wFMCommunicate OK [22:38:32]wFMCommunicate request_size=255 [22:38:32]MH_SAM_APDU [22:38:32]CAPDU: 80 0D 02 02 FA 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 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 23 00 00 00 00 [22:38:32]Write to MH i2c: E2 02 01 D9 32 80 0D 02 02 FA 00 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 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 23 00 00 00 00 00 00 D7 [22:38:32]Write i2c OK [22:38:32]MH_I2C_Read... [22:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:32]Read from MH i2c: E2 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 D9 32 00 90 00 7F [22:38:32]RAPDU: 90 00 [22:38:32]wFMCommunicate OK [22:38:32]wFMCommunicate request_size=118 [22:38:32]MH_SAM_APDU [22:38:32]CAPDU: 80 0D 02 02 71 07 04 06 00 78 4A 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 6D F6 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 46 7C 00 00 35 04 06 00 77 24 A0 7E E4 D6 [22:38:32]Write to MH i2c: E2 79 00 DA 32 80 0D 02 02 71 00 07 04 06 00 78 4A 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 6D F6 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 46 7C 00 00 35 04 06 00 77 24 A0 7E E4 D6 00 00 F9 [22:38:32]Write i2c OK [22:38:32]MH_I2C_Read... [22:38:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:32]Read from MH i2c: E2 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 03 00 DA 32 00 90 00 80 [22:38:32]RAPDU: 90 00 [22:38:32]wFMCommunicate OK [22:38:32]wFMCommunicate request_size=4 [22:38:32]MH_SAM_APDU [22:38:32]CAPDU: 80 0D 03 02 [22:38:32]Write to MH i2c: E2 08 00 DB 32 80 0D 03 02 00 00 00 00 88 [22:38:32]Write i2c OK [22:38:32]MH_I2C_Read... [22:38:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:32]Read from MH i2c: E2 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 0B 00 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 0B 00 DB 32 00 10 1A 3C 56 FE 91 46 D4 90 00 EE [22:38:32]RAPDU: 10 1A 3C 56 FE 91 46 D4 90 00 [22:38:32]wFMCommunicate OK [22:38:32]SAM_PROTO_SignData done [22:38:32]FM_MakeSignedData done [22:38:32]CreateOFDProtocolMessage [22:38:32]wFMCommunicate request_size=4 [22:38:32]MH_SAM_APDU [22:38:32]CAPDU: 80 11 00 00 [22:38:32]Write to MH i2c: E2 08 00 DC 32 80 11 00 00 00 00 00 00 88 [22:38:32]Write i2c OK [22:38:32]MH_I2C_Read... [22:38:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:32]Read from MH i2c: E2 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 17 00 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: E2 17 00 DC 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E3 [22:38:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:38:32]wFMCommunicate OK [22:38:32]CreateOFDProtocolMessage done [22:38:32]OFDSenderStorePacket 31814 [22:38:32]StoreOFDPacket docnum=31814 [22:38:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 75 02 00 00 E0 9D 6D 02 B0 33 5A 03 01 00 03 00 61 02 1E 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 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 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 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 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 23 00 00 00 00 07 04 06 00 78 4A 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 6D F6 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 46 7C 00 00 35 04 06 00 77 24 A0 7E E4 D6 10 1A 3C 56 FE 91 46 D4 [22:38:32]CheckFolder [22:38:32]dirname=/storage/ofd_packets [22:38:32]CheckFolder done [22:38:32]ProducePacketName [22:38:32]name=ofd_packets/00031814 [22:38:32]NVStorageSaveData ofd_packets/00031814 [22:38:32]File name is /storage/ofd_packets/00031814 [22:38:32]Write 659 bytes [22:38:32]NVStorageSaveData done [22:38:32]OFDSenderStorePacket done [22:38:32]KKMCreateOFDPacket done [22:38:32]NVStorageSaveData kkm_last_timestamp [22:38:32]File name is /storage/kkm_last_timestamp [22:38:32]Write 4 bytes [22:38:32]NVStorageSaveData done [22:38:32]ExternCall_PrintAddStr [22:38:32]wPrintStart [22:38:32]Write to MH i2c: 01 00 00 DD 32 0F [22:38:32]Write i2c OK [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: 01 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: 01 07 00 [22:38:32]MH_I2C_Read... [22:38:32]Read from MH i2c: 01 07 00 DD 32 00 00 00 00 00 FF 0F 24 [22:38:32]RasterBufferAndPrint [22:38:32]line Счет N : (3)214395 [22:38:32]line ИНН: 02508201610067 [22:38:32]line Контрольно-Кассовый Чек [22:38:32]line ПРОДАЖА [22:38:32]line Товар: 42203223 [22:38:32]line Драже Skittles 2в1 [22:38:32]line 1.000 * 60.00 [22:38:32]line = 60.00 [22:38:32]line НДС 12% НСП 1% [22:38:32]line > о реализуемом товаре [22:38:32]line Товар: 4607120854177 [22:38:32]line Снек Орехи BEERKa Арахис 30г [22:38:32]line 2.000 * 25.00 [22:38:32]line = 50.00 [22:38:32]line НДС 12% НСП 1% [22:38:32]line > о реализуемом товаре [22:38:32]line Товар: 4607015232868 [22:38:32]line Вафли Яшкино в шоколадной глазури 200г [22:38:32]line 2.000 * 113.00 [22:38:32]line = 226.00 [22:38:32]line НДС 12% НСП 1% [22:38:32]line > о реализуемом товаре [22:38:32]line Товар: 4700002083327 [22:38:32]line Водка Level 0,5 [22:38:32]line 1.000 * 510.00 [22:38:32]line = 510.00 [22:38:32]line НДС 12% НСП 1% [22:38:32]line > о реализуемом товаре [22:38:32]line ИТОГО: 846.00 [22:38:32]line НСП 1% : 7.48 [22:38:32]line НДС 12% : 89.84 [22:38:32]line Наличными: 846.00 [22:38:32]line Безнал.: 0.00 [22:38:32]line Место: АЗС № 140 "Партнер Нефть" [22:38:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:38:32]line СНО: Общий режим [22:38:32]line Чек 133 16.07.2024 22:38 [22:38:32]line Смена: 371 ФФД: 1.0 [22:38:32]line ЗНМ: 0300000189 [22:38:32]line РНМ: 0000000000098025 [22:38:32]line Версия ККМ: 001 [22:38:32]line ФМ: 0000000000965389 [22:38:32]line ФД: 31814 [22:38:32]line ФПД: 130999195198678 [22:38:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T223837&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31814&fm=130999195198678&tin=02508201610067®Number=0000000000098025&sum=84600 [22:38:32]line 0 [22:38:32]OFD Sender: Processing packet 31814 [packets to send 6, broken 5] [22:38:32]ProducePacketName [22:38:32]name=ofd_packets/00031814 [22:38:32]OFD Sender: To server: pG, [22:38:32]CommunicateWithHost lk.salyk.kg:30040 [22:38:32]ConnectInit lk.salyk.kg [22:38:32]written 0, free lines is 4095 [22:38:33]Connected sock=10 [22:38:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 75 02 00 00 E0 9D 6D 02 B0 33 5A 03 01 00 03 00 61 02 1E 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 23 04 70 00 8A 04 0D 00 34 36 30 37 31 32 30 38 35 34 31 37 37 06 04 2C 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9E D1 80 D0 B5 D1 85 D0 B8 20 42 45 45 52 4B 61 20 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 33 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 09 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 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 D0 07 00 00 00 00 00 37 04 06 00 24 2C 00 00 00 00 13 04 06 00 48 58 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 4A 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EC 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 23 00 00 00 00 07 04 06 00 78 4A 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 6D F6 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 46 7C 00 00 35 04 06 00 77 24 A0 7E E4 D6 10 1A 3C 56 FE 91 46 D4 [22:38:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 C6 01 47 00 8F C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 46 7C 00 00 F4 03 04 00 79 A2 96 66 B6 04 01 00 00 F6 FC AD 9F 56 A6 C5 39 [22:38:33]CommunicateWithHost err = 0 [22:38:33]CheckOFDResponse [22:38:33]1017 (14) - 77093643461234 [22:38:33]1041 (16) - 0000000000965389 [22:38:33]1040 (4) - 31814 [22:38:33]1012 (4) - 16.07.2024 16:40 [22:38:33]1206 (1) - 0 [22:38:33]OFD Sender: Remove packet 31814 [22:38:33]ProducePacketName [22:38:33]name=ofd_packets/00031814 [22:38:33]NVStorageDeleteData [22:38:33]Write to MH i2c: 01 00 00 19 33 4C [22:38:33]Write i2c OK [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: 01 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: 01 07 00 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: 01 07 00 19 33 00 00 00 00 00 D6 0B 34 [22:38:33]RasterBufferAndPrint [22:38:33]line [22:38:33]line [22:38:33]line [22:38:33]line [22:38:33]line [22:38:33]written 0, free lines is 3038 [22:38:33]MH_Cut [22:38:33]Write to MH i2c: D1 01 00 20 33 01 25 [22:38:33]Write i2c OK [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: D1 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: D1 01 00 [22:38:33]MH_I2C_Read... [22:38:33]Read from MH i2c: D1 01 00 20 33 00 24 [22:38:33]Write to MH i2c: 01 00 00 21 33 54 [22:38:33]Write i2c OK [22:38:33]MH_I2C_Read... [22:38:33]OFD Sender: No OFD packet to send [22:38:34]*** Cut start [22:38:34]*** Partial cut [22:38:34]*** CUTSNS_PIN = 1 [22:38:34]*** CUTSNS_PIN = 0 [22:38:34]*** Brake cut motor [22:38:35]Read from MH i2c: 01 [22:38:35]MH_I2C_Read... [22:38:35]*** Stop cut motor [22:38:35]*** Cut end [22:38:35]Read from MH i2c: 01 07 00 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: 01 07 00 21 33 00 00 00 00 00 FF 0F 69 [22:38:35]process_action close_receipt done [22:38:35]requested_data is exist [22:38:35]produce_requested_data [22:38:35]requested_item fm.sn is exist - process it [22:38:35]wFMCommunicate request_size=4 [22:38:35]MH_SAM_APDU [22:38:35]CAPDU: 80 11 00 00 [22:38:35]Write to MH i2c: E2 08 00 22 33 80 11 00 00 00 00 00 00 CF [22:38:35]Write i2c OK [22:38:35]MH_I2C_Read... [22:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:35]Read from MH i2c: E2 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 17 00 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 17 00 22 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 2A [22:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:38:35]wFMCommunicate OK [22:38:35]requested_item fd.num is exist - process it [22:38:35]SAM_PROTO_GetFieldsCounters [22:38:35]wFMCommunicate request_size=4 [22:38:35]MH_SAM_APDU [22:38:35]CAPDU: 80 13 00 00 [22:38:35]Write to MH i2c: E2 08 00 23 33 80 13 00 00 00 00 00 00 D2 [22:38:35]Write i2c OK [22:38:35]MH_I2C_Read... [22:38:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:35]Read from MH i2c: E2 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 62 00 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 62 00 23 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 46 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [22:38:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 46 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:35]wFMCommunicate OK [22:38:35]SAM_PROTO_GetFieldsCounters done [22:38:35]requested_item shift.num is exist - process it [22:38:35]requested_item shift.opened is exist - process it [22:38:35]req_shift_opened [22:38:35]FM_GetShiftState [22:38:35]SAM_PROTO_GetShiftState [22:38:35]wFMCommunicate request_size=4 [22:38:35]MH_SAM_APDU [22:38:35]CAPDU: 80 13 01 00 [22:38:35]Write to MH i2c: E2 08 00 24 33 80 13 01 00 00 00 00 00 D4 [22:38:35]Write i2c OK [22:38:35]MH_I2C_Read... [22:38:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:35]Read from MH i2c: E2 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 0E 00 [22:38:35]MH_I2C_Read... [22:38:35]Read from MH i2c: E2 0E 00 24 33 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 23 [22:38:35]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:38:35]wFMCommunicate OK [22:38:35]SAM_PROTO_GetShiftState done [22:38:35]FM_GetShiftState done [22:38:35]req_shift_opened done [22:38:35]requested_item shift.open_date is exist - process it [22:38:35]req_shift_open_date [22:38:35]req_shift_open_date done [22:38:35]produce_requested_data done [22:38:35]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31814,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [22:38:35]process_action_free close_receipt [22:38:35]json_value_free [22:38:35]json_value_free done [22:38:35]process_json_proto returns [22:38:35]Send response to host [22:38:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31814,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [22:38:35]free response buf [22:38:35]execute_script done [22:38:35]execute_script returns [22:38:35]free content buf [22:38:35]Sock 7.Close socket [22:38:35]Sock 7.Thread stoped [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:55]accept exits with 9 [22:38:55]New connection [22:38:55]New thread 3066965348 created [22:38:55]Thread 3066821988 joined [22:38:55]Waiting for new connection... [22:38:55] Sock 9.Parse request [22:38:55]Sock 9.Check first char [22:38:55]Sock 9.First char is OK [22:38:55]request: POST /json_proto HTTP/1.0 [22:38:55]Method: POST [22:38:55]URL: /json_proto [22:38:55]Method is POST - this is cgi request [22:38:55]url: /json_proto [22:38:55]query_string will be loaded in cgi processing [22:38:55]execute_cgi json_proto POST (null) [22:38:55]execute_cgi path=json_proto method=POST [22:38:55]POST find Content-Length [22:38:55]Host: 172.17.39.68:8080 [22:38:55]Content-Length: 738 [22:38:55]Content-Type: application/json [22:38:55] [22:38:55]POST finish read [22:38:55]Found Content-Length = 738 [22:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214397", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 105.00, "quantity" : 4.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:55]execute_script... [22:38: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)214397", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 105.00, "quantity" : 4.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:38:55]POST & json_proto [22:38:55]process_json_proto [22:38:55]json parsed OK: [22:38:55]protocol is kg_v1.0 [22:38:55]action value=close_receipt [22:38:55]process_action close_receipt [22:38:55]cmd_close_receipt [22:38:55]MH_GetDate [22:38:55]Write to MH i2c: F0 00 00 25 33 47 [22:38:55]Write i2c OK [22:38:55]MH_I2C_Read... [22:38:55]Read from MH i2c: F0 [22:38:55]MH_I2C_Read... [22:38:55]Read from MH i2c: F0 09 00 [22:38:55]MH_I2C_Read... [22:38:55]Read from MH i2c: F0 09 00 25 33 00 86 F6 96 66 D6 48 95 66 E1 [22:38:55]GetLastDocTimeStamp 1721169517 [22:38:55]current date 1721169542 [22:38:55]FM_GetShiftState [22:38:55]SAM_PROTO_GetShiftState [22:38:55]wFMCommunicate request_size=4 [22:38:55]MH_SAM_APDU [22:38:55]CAPDU: 80 13 01 00 [22:38:55]Write to MH i2c: E2 08 00 26 33 80 13 01 00 00 00 00 00 D6 [22:38:55]Write i2c OK [22:38:55]MH_I2C_Read... [22:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:55]Read from MH i2c: E2 [22:38:55]MH_I2C_Read... [22:38:55]Read from MH i2c: E2 0E 00 [22:38:55]MH_I2C_Read... [22:38:55]Read from MH i2c: E2 0E 00 26 33 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 25 [22:38:55]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:38:55]wFMCommunicate OK [22:38:55]SAM_PROTO_GetShiftState done [22:38:55]FM_GetShiftState done [22:38:55]opened in 1721088399 [22:38:55]opened+sec_in_day 1721174799 [22:38:55]quantity*price = 42000 [22:38:55]sum+1 = 42001 [22:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 420.00 НСП 1% : 3.72 НДС 12% : 44.60 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 134 16.07.2024 22:39 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31815 ФПД: 203883643827295 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T223902&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31815&fm=203883643827295&tin=02508201610067®Number=0000000000098025&sum=42000 0 [22:38:56]StoreToDocumentArchive [22:38:56]shift 371 fd 31815 [22:38:56]save to /storage/0371/doc_00031815 [22:38:56]save last doc name /storage/0371/doc_00031815 to /storage/kkm_last_doc_name [22:38:56]save OK [22:38:56]Clear old archive folders... [22:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=310 [22:38:56]tlvbuf is 015271C0 [22:38:56]SAM_PROTO_ClearQueue [22:38:56]wFMCommunicate request_size=4 [22:38:56]MH_SAM_APDU [22:38:56]CAPDU: 80 09 00 00 [22:38:56]Write to MH i2c: E2 08 00 33 33 80 09 00 00 00 00 00 00 D8 [22:38:56]Write i2c OK [22:38:56]MH_I2C_Read... [22:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:38:56]Read from MH i2c: E2 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 33 33 00 90 00 DA [22:38:56]RAPDU: 90 00 [22:38:56]wFMCommunicate OK [22:38:56]SAM_PROTO_ClearQueue done [22:38:56]KKMCreateOFDPacket [22:38:56]OFDProtocolAddRootSTLVToBuf [22:38:56]FM_MakeSignedData [22:38:56]FM_MakeSignedData [22:38:56]SAM_PROTO_SignData [22:38:56]wFMCommunicate request_size=4 [22:38:56]MH_SAM_APDU [22:38:56]CAPDU: 80 0D 01 02 [22:38:56]Write to MH i2c: E2 08 00 34 33 80 0D 01 02 00 00 00 00 E0 [22:38:56]Write i2c OK [22:38:56]MH_I2C_Read... [22:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:38:56]Read from MH i2c: E2 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 [22:38:56]MH_I2C_Read... [22:38:56]Read from MH i2c: E2 03 00 34 33 00 90 00 DB [22:38:56]RAPDU: 90 00 [22:38:56]wFMCommunicate OK [22:38:56]wFMCommunicate request_size=255 [22:38:56]MH_SAM_APDU [22:38:56]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 10 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 6C 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 86 00 00 00 F4 03 04 00 86 F6 96 66 0E 04 04 00 73 01 00 [22:38:56]Write to MH i2c: E2 02 01 35 33 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 10 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 6C 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 86 00 00 00 F4 03 04 00 86 F6 96 66 0E 04 04 00 73 01 00 00 00 4B [22:38:56]Write i2c OK [22:38:56]MH_I2C_Read... [22:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:57]Read from MH i2c: E2 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 03 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 03 00 35 33 00 90 00 DC [22:38:57]RAPDU: 90 00 [22:38:57]wFMCommunicate OK [22:38:57]wFMCommunicate request_size=69 [22:38:57]MH_SAM_APDU [22:38:57]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 47 7C 00 00 35 04 06 00 B9 6E 5C 2A 74 5F [22:38:57]Write to MH i2c: E2 48 00 36 33 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 47 7C 00 00 35 04 06 00 B9 6E 5C 2A 74 5F 00 00 42 [22:38:57]Write i2c OK [22:38:57]MH_I2C_Read... [22:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:38:57]Read from MH i2c: E2 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 03 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 03 00 36 33 00 90 00 DD [22:38:57]RAPDU: 90 00 [22:38:57]wFMCommunicate OK [22:38:57]wFMCommunicate request_size=4 [22:38:57]MH_SAM_APDU [22:38:57]CAPDU: 80 0D 03 02 [22:38:57]Write to MH i2c: E2 08 00 37 33 80 0D 03 02 00 00 00 00 E5 [22:38:57]Write i2c OK [22:38:57]MH_I2C_Read... [22:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:38:57]Read from MH i2c: E2 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 0B 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 0B 00 37 33 00 BC 6E BA 4D B6 BA 18 15 90 00 B4 [22:38:57]RAPDU: BC 6E BA 4D B6 BA 18 15 90 00 [22:38:57]wFMCommunicate OK [22:38:57]SAM_PROTO_SignData done [22:38:57]FM_MakeSignedData done [22:38:57]CreateOFDProtocolMessage [22:38:57]wFMCommunicate request_size=4 [22:38:57]MH_SAM_APDU [22:38:57]CAPDU: 80 11 00 00 [22:38:57]Write to MH i2c: E2 08 00 38 33 80 11 00 00 00 00 00 00 E5 [22:38:57]Write i2c OK [22:38:57]MH_I2C_Read... [22:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:57]Read from MH i2c: E2 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 17 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: E2 17 00 38 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 40 [22:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:38:57]wFMCommunicate OK [22:38:57]CreateOFDProtocolMessage done [22:38:57]OFDSenderStorePacket 31815 [22:38:57]StoreOFDPacket docnum=31815 [22:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4A 01 00 00 A6 59 42 01 D5 43 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 10 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 6C 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 86 00 00 00 F4 03 04 00 86 F6 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 47 7C 00 00 35 04 06 00 B9 6E 5C 2A 74 5F BC 6E BA 4D B6 BA 18 15 [22:38:57]CheckFolder [22:38:57]dirname=/storage/ofd_packets [22:38:57]CheckFolder done [22:38:57]ProducePacketName [22:38:57]name=ofd_packets/00031815 [22:38:57]NVStorageSaveData ofd_packets/00031815 [22:38:57]File name is /storage/ofd_packets/00031815 [22:38:57]Write 360 bytes [22:38:57]NVStorageSaveData done [22:38:57]OFDSenderStorePacket done [22:38:57]KKMCreateOFDPacket done [22:38:57]NVStorageSaveData kkm_last_timestamp [22:38:57]File name is /storage/kkm_last_timestamp [22:38:57]Write 4 bytes [22:38:57]NVStorageSaveData done [22:38:57]ExternCall_PrintAddStr [22:38:57]wPrintStart [22:38:57]Write to MH i2c: 01 00 00 39 33 6C [22:38:57]Write i2c OK [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: 01 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: 01 07 00 [22:38:57]MH_I2C_Read... [22:38:57]Read from MH i2c: 01 07 00 39 33 00 00 00 00 00 FF 0F 81 [22:38:57]RasterBufferAndPrint [22:38:57]line Счет N : (3)214397 [22:38:57]line ИНН: 02508201610067 [22:38:57]line Контрольно-Кассовый Чек [22:38:57]line ПРОДАЖА [22:38:57]line Товар: 4870145004982 [22:38:57]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [22:38:57]line 4.000 * 105.00 [22:38:57]line = 420.00 [22:38:57]line НДС 12% НСП 1% [22:38:57]line > о реализуемом товаре [22:38:57]line ИТОГО: 420.00 [22:38:57]line НСП 1% : 3.72 [22:38:57]line НДС 12% : 44.60 [22:38:57]line Наличными: 420.00 [22:38:57]line Безнал.: 0.00 [22:38:57]line Место: АЗС № 140 "Партнер Нефть" [22:38:57]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:38:57]line СНО: Общий режим [22:38:57]line Чек 134 16.07.2024 22:39 [22:38:57]line Смена: 371 ФФД: 1.0 [22:38:57]line ЗНМ: 0300000189 [22:38:57]line РНМ: 0000000000098025 [22:38:57]line Версия ККМ: 001 [22:38:57]line ФМ: 0000000000965389 [22:38:57]line ФД: 31815 [22:38:57]line ФПД: 203883643827295 [22:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T223902&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31815&fm=203883643827295&tin=02508201610067®Number=0000000000098025&sum=42000 [22:38:57]line 0 [22:38:57]OFD Sender: Processing packet 31815 [packets to send 6, broken 5] [22:38:57]ProducePacketName [22:38:57]name=ofd_packets/00031815 [22:38:57]OFD Sender: To server: pG, [22:38:57]CommunicateWithHost lk.salyk.kg:30040 [22:38:57]ConnectInit lk.salyk.kg [22:38:57]written 0, free lines is 4095 [22:38:57]Connected sock=10 [22:38:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4A 01 00 00 A6 59 42 01 D5 43 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 10 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 6C 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 86 00 00 00 F4 03 04 00 86 F6 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 47 7C 00 00 35 04 06 00 B9 6E 5C 2A 74 5F BC 6E BA 4D B6 BA 18 15 [22:38:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 49 9F 47 00 08 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 47 7C 00 00 F4 03 04 00 92 A2 96 66 B6 04 01 00 00 9A 9C 1B 6F 77 73 B7 93 [22:38:57]CommunicateWithHost err = 0 [22:38:57]CheckOFDResponse [22:38:57]1017 (14) - 77093643461234 [22:38:57]1041 (16) - 0000000000965389 [22:38:57]1040 (4) - 31815 [22:38:57]1012 (4) - 16.07.2024 16:40 [22:38:57]1206 (1) - 0 [22:38:57]OFD Sender: Remove packet 31815 [22:38:57]ProducePacketName [22:38:57]name=ofd_packets/00031815 [22:38:57]NVStorageDeleteData [22:38:58]Write to MH i2c: 01 00 00 62 33 95 [22:38:58]Write i2c OK [22:38:58]MH_I2C_Read... [22:38:58]Read from MH i2c: 01 [22:38:58]MH_I2C_Read... [22:38:58]Read from MH i2c: 01 07 00 [22:38:58]MH_I2C_Read... [22:38:58]Read from MH i2c: 01 07 00 62 33 00 00 00 00 00 15 0D BE [22:38:58]RasterBufferAndPrint [22:38:58]line [22:38:58]line [22:38:58]line [22:38:58]line [22:38:58]line [22:38:58]written 0, free lines is 3356 [22:38:58]MH_Cut [22:38:58]Write to MH i2c: D1 01 00 69 33 01 6E [22:38:58]Write i2c OK [22:38:58]MH_I2C_Read... [22:38:58]Read from MH i2c: D1 [22:38:58]MH_I2C_Read... [22:38:58]Read from MH i2c: D1 01 00 [22:38:58]MH_I2C_Read... [22:38:58]Read from MH i2c: D1 01 00 69 33 00 6D [22:38:58]Write to MH i2c: 01 00 00 6A 33 9D [22:38:58]Write i2c OK [22:38:58]MH_I2C_Read... [22:38:58]OFD Sender: No OFD packet to send [22:38:58]*** Cut start [22:38:58]*** Partial cut [22:38:58]*** CUTSNS_PIN = 1 [22:38:58]*** CUTSNS_PIN = 0 [22:38:59]*** Brake cut motor [22:38:59]Read from MH i2c: 01 [22:38:59]MH_I2C_Read... [22:38:59]*** Stop cut motor [22:38:59]*** Cut end [22:38:59]Read from MH i2c: 01 07 00 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: 01 07 00 6A 33 00 00 00 00 00 FF 0F B2 [22:38:59]process_action close_receipt done [22:38:59]requested_data is exist [22:38:59]produce_requested_data [22:38:59]requested_item fm.sn is exist - process it [22:38:59]wFMCommunicate request_size=4 [22:38:59]MH_SAM_APDU [22:38:59]CAPDU: 80 11 00 00 [22:38:59]Write to MH i2c: E2 08 00 6B 33 80 11 00 00 00 00 00 00 18 [22:38:59]Write i2c OK [22:38:59]MH_I2C_Read... [22:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:38:59]Read from MH i2c: E2 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: E2 17 00 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: E2 17 00 6B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 73 [22:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:38:59]wFMCommunicate OK [22:38:59]requested_item fd.num is exist - process it [22:38:59]SAM_PROTO_GetFieldsCounters [22:38:59]wFMCommunicate request_size=4 [22:38:59]MH_SAM_APDU [22:38:59]CAPDU: 80 13 00 00 [22:38:59]Write to MH i2c: E2 08 00 6C 33 80 13 00 00 00 00 00 00 1B [22:38:59]Write i2c OK [22:38:59]MH_I2C_Read... [22:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:38:59]Read from MH i2c: E2 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: E2 62 00 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: E2 62 00 6C 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 47 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [22:38:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 47 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:38:59]wFMCommunicate OK [22:38:59]SAM_PROTO_GetFieldsCounters done [22:38:59]requested_item shift.num is exist - process it [22:38:59]requested_item shift.opened is exist - process it [22:38:59]req_shift_opened [22:38:59]FM_GetShiftState [22:38:59]SAM_PROTO_GetShiftState [22:38:59]wFMCommunicate request_size=4 [22:38:59]MH_SAM_APDU [22:38:59]CAPDU: 80 13 01 00 [22:38:59]Write to MH i2c: E2 08 00 6D 33 80 13 01 00 00 00 00 00 1D [22:38:59]Write i2c OK [22:38:59]MH_I2C_Read... [22:38:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:38:59]Read from MH i2c: E2 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: E2 0E 00 [22:38:59]MH_I2C_Read... [22:38:59]Read from MH i2c: E2 0E 00 6D 33 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 6C [22:38:59]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:38:59]wFMCommunicate OK [22:38:59]SAM_PROTO_GetShiftState done [22:38:59]FM_GetShiftState done [22:38:59]req_shift_opened done [22:38:59]requested_item shift.open_date is exist - process it [22:38:59]req_shift_open_date [22:38:59]req_shift_open_date done [22:38:59]produce_requested_data done [22:38:59]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31815,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [22:38:59]process_action_free close_receipt [22:38:59]json_value_free [22:38:59]json_value_free done [22:38:59]process_json_proto returns [22:38:59]Send response to host [22:38:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31815,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [22:38:59]free response buf [22:38:59]execute_script done [22:38:59]execute_script returns [22:38:59]free content buf [22:38:59]Sock 9.Close socket [22:38:59]Sock 9.Thread stoped [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:38]accept exits with 7 [22:40:38]New connection [22:40:38]New thread 3066821988 created [22:40:38]Thread 3066965348 joined [22:40:38]Waiting for new connection... [22:40:38] Sock 7.Parse request [22:40:38]Sock 7.Check first char [22:40:38]Sock 7.First char is OK [22:40:38]request: POST /json_proto HTTP/1.0 [22:40:38]Method: POST [22:40:38]URL: /json_proto [22:40:38]Method is POST - this is cgi request [22:40:38]url: /json_proto [22:40:38]query_string will be loaded in cgi processing [22:40:38]execute_cgi json_proto POST (null) [22:40:38]execute_cgi path=json_proto method=POST [22:40:38]POST find Content-Length [22:40:38]Host: 172.17.39.68:8080 [22:40:38]Content-Length: 695 [22:40:38]Content-Type: application/json [22:40:38] [22:40:38]POST finish read [22:40:38]Found Content-Length = 695 [22:40:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214398", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:38]execute_script... [22:40: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)214398", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:38]POST & json_proto [22:40:38]process_json_proto [22:40:38]json parsed OK: [22:40:38]protocol is kg_v1.0 [22:40:38]action value=close_receipt [22:40:38]process_action close_receipt [22:40:38]cmd_close_receipt [22:40:38]MH_GetDate [22:40:38]Write to MH i2c: F0 00 00 6E 33 90 [22:40:38]Write i2c OK [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: F0 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: F0 09 00 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: F0 09 00 6E 33 00 ED F6 96 66 D6 48 95 66 91 [22:40:38]GetLastDocTimeStamp 1721169542 [22:40:38]current date 1721169645 [22:40:38]FM_GetShiftState [22:40:38]SAM_PROTO_GetShiftState [22:40:38]wFMCommunicate request_size=4 [22:40:38]MH_SAM_APDU [22:40:38]CAPDU: 80 13 01 00 [22:40:38]Write to MH i2c: E2 08 00 6F 33 80 13 01 00 00 00 00 00 1F [22:40:38]Write i2c OK [22:40:38]MH_I2C_Read... [22:40:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:38]Read from MH i2c: E2 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 0E 00 [22:40:38]MH_I2C_Read... [22:40:38]Read from MH i2c: E2 0E 00 6F 33 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 6E [22:40:38]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:40:38]wFMCommunicate OK [22:40:38]SAM_PROTO_GetShiftState done [22:40:38]FM_GetShiftState done [22:40:38]opened in 1721088399 [22:40:38]opened+sec_in_day 1721174799 [22:40:38]quantity*price = 8900 [22:40:38]sum+1 = 8901 [22:40:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 135 16.07.2024 22:40 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31816 ФПД: 254193054631428 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T224045&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31816&fm=254193054631428&tin=02508201610067®Number=0000000000098025&sum=8900 0 [22:40:39]StoreToDocumentArchive [22:40:39]shift 371 fd 31816 [22:40:39]save to /storage/0371/doc_00031816 [22:40:39]save last doc name /storage/0371/doc_00031816 to /storage/kkm_last_doc_name [22:40:39]save OK [22:40:39]Clear old archive folders... [22:40:39]ProcessDocumentItem done err = 0, tmpTLVsize=294 [22:40:39]tlvbuf is 0148D6C0 [22:40:39]SAM_PROTO_ClearQueue [22:40:39]wFMCommunicate request_size=4 [22:40:39]MH_SAM_APDU [22:40:39]CAPDU: 80 09 00 00 [22:40:39]Write to MH i2c: E2 08 00 7C 33 80 09 00 00 00 00 00 00 21 [22:40:39]Write i2c OK [22:40:39]MH_I2C_Read... [22:40:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:39]Read from MH i2c: E2 [22:40:39]MH_I2C_Read... [22:40:39]Read from MH i2c: E2 03 00 [22:40:39]MH_I2C_Read... [22:40:39]Read from MH i2c: E2 03 00 7C 33 00 90 00 23 [22:40:39]RAPDU: 90 00 [22:40:39]wFMCommunicate OK [22:40:39]SAM_PROTO_ClearQueue done [22:40:39]KKMCreateOFDPacket [22:40:39]OFDProtocolAddRootSTLVToBuf [22:40:39]FM_MakeSignedData [22:40:39]FM_MakeSignedData [22:40:39]SAM_PROTO_SignData [22:40:39]wFMCommunicate request_size=4 [22:40:39]MH_SAM_APDU [22:40:39]CAPDU: 80 0D 01 02 [22:40:39]Write to MH i2c: E2 08 00 7D 33 80 0D 01 02 00 00 00 00 29 [22:40:39]Write i2c OK [22:40:39]MH_I2C_Read... [22:40:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:39]Read from MH i2c: E2 [22:40:39]MH_I2C_Read... [22:40:39]Read from MH i2c: E2 03 00 [22:40:39]MH_I2C_Read... [22:40:39]Read from MH i2c: E2 03 00 7D 33 00 90 00 24 [22:40:39]RAPDU: 90 00 [22:40:39]wFMCommunicate OK [22:40:39]wFMCommunicate request_size=255 [22:40:39]MH_SAM_APDU [22:40:39]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 ED F6 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [22:40:39]Write to MH i2c: E2 02 01 7E 33 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 ED F6 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 3F [22:40:39]Write i2c OK [22:40:39]MH_I2C_Read... [22:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:40]Read from MH i2c: E2 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 03 00 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 03 00 7E 33 00 90 00 25 [22:40:40]RAPDU: 90 00 [22:40:40]wFMCommunicate OK [22:40:40]wFMCommunicate request_size=53 [22:40:40]MH_SAM_APDU [22:40:40]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 48 7C 00 00 35 04 06 00 E7 2F EE B9 C6 04 [22:40:40]Write to MH i2c: E2 38 00 7F 33 80 0D 02 02 30 00 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 48 7C 00 00 35 04 06 00 E7 2F EE B9 C6 04 00 00 73 [22:40:40]Write i2c OK [22:40:40]MH_I2C_Read... [22:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:40]Read from MH i2c: E2 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 03 00 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 03 00 7F 33 00 90 00 26 [22:40:40]RAPDU: 90 00 [22:40:40]wFMCommunicate OK [22:40:40]wFMCommunicate request_size=4 [22:40:40]MH_SAM_APDU [22:40:40]CAPDU: 80 0D 03 02 [22:40:40]Write to MH i2c: E2 08 00 80 33 80 0D 03 02 00 00 00 00 2E [22:40:40]Write i2c OK [22:40:40]MH_I2C_Read... [22:40:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:40]Read from MH i2c: E2 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 0B 00 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 0B 00 80 33 00 12 E5 2A 9F A9 93 3C 92 90 00 F9 [22:40:40]RAPDU: 12 E5 2A 9F A9 93 3C 92 90 00 [22:40:40]wFMCommunicate OK [22:40:40]SAM_PROTO_SignData done [22:40:40]FM_MakeSignedData done [22:40:40]CreateOFDProtocolMessage [22:40:40]wFMCommunicate request_size=4 [22:40:40]MH_SAM_APDU [22:40:40]CAPDU: 80 11 00 00 [22:40:40]Write to MH i2c: E2 08 00 81 33 80 11 00 00 00 00 00 00 2E [22:40:40]Write i2c OK [22:40:40]MH_I2C_Read... [22:40:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:40]Read from MH i2c: E2 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 17 00 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: E2 17 00 81 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 89 [22:40:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:40:40]wFMCommunicate OK [22:40:40]CreateOFDProtocolMessage done [22:40:40]OFDSenderStorePacket 31816 [22:40:40]StoreOFDPacket docnum=31816 [22:40:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 FE 36 32 01 E7 5F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 ED F6 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 48 7C 00 00 35 04 06 00 E7 2F EE B9 C6 04 12 E5 2A 9F A9 93 3C 92 [22:40:40]CheckFolder [22:40:40]dirname=/storage/ofd_packets [22:40:40]CheckFolder done [22:40:40]ProducePacketName [22:40:40]name=ofd_packets/00031816 [22:40:40]NVStorageSaveData ofd_packets/00031816 [22:40:40]File name is /storage/ofd_packets/00031816 [22:40:40]Write 344 bytes [22:40:40]NVStorageSaveData done [22:40:40]OFDSenderStorePacket done [22:40:40]KKMCreateOFDPacket done [22:40:40]NVStorageSaveData kkm_last_timestamp [22:40:40]File name is /storage/kkm_last_timestamp [22:40:40]Write 4 bytes [22:40:40]NVStorageSaveData done [22:40:40]ExternCall_PrintAddStr [22:40:40]wPrintStart [22:40:40]Write to MH i2c: 01 00 00 82 33 B5 [22:40:40]Write i2c OK [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: 01 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: 01 07 00 [22:40:40]MH_I2C_Read... [22:40:40]Read from MH i2c: 01 07 00 82 33 00 00 00 00 00 FF 0F CA [22:40:40]RasterBufferAndPrint [22:40:40]line Счет N : (3)214398 [22:40:40]line ИНН: 02508201610067 [22:40:40]line Контрольно-Кассовый Чек [22:40:40]line ПРОДАЖА [22:40:40]line Товар: 5000159381178 [22:40:40]line Шок Батончик Баунти Трио 82,5г [22:40:40]line 1.000 * 89.00 [22:40:40]line = 89.00 [22:40:40]line НДС 12% НСП 1% [22:40:40]line > о реализуемом товаре [22:40:40]line ИТОГО: 89.00 [22:40:40]line НСП 1% : 0.79 [22:40:40]line НДС 12% : 9.45 [22:40:40]line Наличными: 89.00 [22:40:40]line Безнал.: 0.00 [22:40:40]line Место: АЗС № 140 "Партнер Нефть" [22:40:40]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:40:40]line СНО: Общий режим [22:40:40]line Чек 135 16.07.2024 22:40 [22:40:40]line Смена: 371 ФФД: 1.0 [22:40:40]line ЗНМ: 0300000189 [22:40:40]line РНМ: 0000000000098025 [22:40:40]line Версия ККМ: 001 [22:40:40]line ФМ: 0000000000965389 [22:40:40]line ФД: 31816 [22:40:40]line ФПД: 254193054631428 [22:40:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T224045&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31816&fm=254193054631428&tin=02508201610067®Number=0000000000098025&sum=8900 [22:40:40]line 0 [22:40:40]OFD Sender: Processing packet 31816 [packets to send 6, broken 5] [22:40:40]ProducePacketName [22:40:40]name=ofd_packets/00031816 [22:40:40]OFD Sender: To server: pG, [22:40:40]CommunicateWithHost lk.salyk.kg:30040 [22:40:40]ConnectInit lk.salyk.kg [22:40:40]written 0, free lines is 4095 [22:40:40]Connected sock=10 [22:40:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3A 01 00 00 FE 36 32 01 E7 5F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 ED F6 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 48 7C 00 00 35 04 06 00 E7 2F EE B9 C6 04 12 E5 2A 9F A9 93 3C 92 [22:40:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 D0 71 47 00 A9 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 48 7C 00 00 F4 03 04 00 F9 A2 96 66 B6 04 01 00 00 CF 76 E6 64 62 7E 65 AF [22:40:41]CommunicateWithHost err = 0 [22:40:41]CheckOFDResponse [22:40:41]1017 (14) - 77093643461234 [22:40:41]1041 (16) - 0000000000965389 [22:40:41]1040 (4) - 31816 [22:40:41]1012 (4) - 16.07.2024 16:42 [22:40:41]1206 (1) - 0 [22:40:41]OFD Sender: Remove packet 31816 [22:40:41]ProducePacketName [22:40:41]name=ofd_packets/00031816 [22:40:41]NVStorageDeleteData [22:40:41]Write to MH i2c: 01 00 00 AB 33 DE [22:40:41]Write i2c OK [22:40:41]MH_I2C_Read... [22:40:41]Read from MH i2c: 01 [22:40:41]MH_I2C_Read... [22:40:41]Read from MH i2c: 01 07 00 [22:40:41]MH_I2C_Read... [22:40:41]Read from MH i2c: 01 07 00 AB 33 00 00 00 00 00 F8 0C E9 [22:40:41]RasterBufferAndPrint [22:40:41]line [22:40:41]line [22:40:41]line [22:40:41]line [22:40:41]line [22:40:41]written 0, free lines is 3327 [22:40:41]MH_Cut [22:40:41]Write to MH i2c: D1 01 00 B2 33 01 B7 [22:40:41]Write i2c OK [22:40:41]MH_I2C_Read... [22:40:41]Read from MH i2c: D1 [22:40:41]MH_I2C_Read... [22:40:41]Read from MH i2c: D1 01 00 [22:40:41]MH_I2C_Read... [22:40:41]Read from MH i2c: D1 01 00 B2 33 00 B6 [22:40:41]Write to MH i2c: 01 00 00 B3 33 E6 [22:40:41]Write i2c OK [22:40:41]MH_I2C_Read... [22:40:41]OFD Sender: No OFD packet to send [22:40:41]*** Cut start [22:40:41]*** Partial cut [22:40:41]*** CUTSNS_PIN = 1 [22:40:41]*** CUTSNS_PIN = 0 [22:40:42]*** Brake cut motor [22:40:42]Read from MH i2c: 01 [22:40:42]MH_I2C_Read... [22:40:42]*** Stop cut motor [22:40:42]*** Cut end [22:40:42]Read from MH i2c: 01 07 00 [22:40:42]MH_I2C_Read... [22:40:42]Read from MH i2c: 01 07 00 B3 33 00 00 00 00 00 FF 0F FB [22:40:42]process_action close_receipt done [22:40:42]requested_data is exist [22:40:42]produce_requested_data [22:40:42]requested_item fm.sn is exist - process it [22:40:42]wFMCommunicate request_size=4 [22:40:42]MH_SAM_APDU [22:40:42]CAPDU: 80 11 00 00 [22:40:42]Write to MH i2c: E2 08 00 B4 33 80 11 00 00 00 00 00 00 61 [22:40:42]Write i2c OK [22:40:42]MH_I2C_Read... [22:40:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:42]Read from MH i2c: E2 [22:40:42]MH_I2C_Read... [22:40:42]Read from MH i2c: E2 17 00 [22:40:42]MH_I2C_Read... [22:40:42]Read from MH i2c: E2 17 00 B4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 BC [22:40:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:40:42]wFMCommunicate OK [22:40:42]requested_item fd.num is exist - process it [22:40:42]SAM_PROTO_GetFieldsCounters [22:40:42]wFMCommunicate request_size=4 [22:40:42]MH_SAM_APDU [22:40:42]CAPDU: 80 13 00 00 [22:40:42]Write to MH i2c: E2 08 00 B5 33 80 13 00 00 00 00 00 00 64 [22:40:42]Write i2c OK [22:40:42]MH_I2C_Read... [22:40:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:42]Read from MH i2c: E2 [22:40:42]MH_I2C_Read... [22:40:42]Read from MH i2c: E2 62 00 [22:40:42]MH_I2C_Read... [22:40:42]Read from MH i2c: E2 62 00 B5 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 48 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [22:40: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 48 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:42]wFMCommunicate OK [22:40:42]SAM_PROTO_GetFieldsCounters done [22:40:42]requested_item shift.num is exist - process it [22:40:42]requested_item shift.opened is exist - process it [22:40:42]req_shift_opened [22:40:42]FM_GetShiftState [22:40:42]SAM_PROTO_GetShiftState [22:40:42]wFMCommunicate request_size=4 [22:40:42]MH_SAM_APDU [22:40:42]CAPDU: 80 13 01 00 [22:40:42]Write to MH i2c: E2 08 00 B6 33 80 13 01 00 00 00 00 00 66 [22:40:42]Write i2c OK [22:40:42]MH_I2C_Read... [22:40:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:42]Read from MH i2c: E2 [22:40:42]MH_I2C_Read... [22:40:42]Read from MH i2c: E2 0E 00 [22:40:42]MH_I2C_Read... [22:40:42]Read from MH i2c: E2 0E 00 B6 33 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B5 [22:40:42]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:40:42]wFMCommunicate OK [22:40:42]SAM_PROTO_GetShiftState done [22:40:42]FM_GetShiftState done [22:40:42]req_shift_opened done [22:40:42]requested_item shift.open_date is exist - process it [22:40:42]req_shift_open_date [22:40:42]req_shift_open_date done [22:40:42]produce_requested_data done [22:40:42]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31816,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [22:40:42]process_action_free close_receipt [22:40:42]json_value_free [22:40:42]json_value_free done [22:40:42]process_json_proto returns [22:40:42]Send response to host [22:40:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31816,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [22:40:42]free response buf [22:40:42]execute_script done [22:40:42]execute_script returns [22:40:42]free content buf [22:40:42]Sock 7.Close socket [22:40:42]Sock 7.Thread stoped [22:40:46]OFD Sender: No OFD packet to send [22:40:51]OFD Sender: No OFD packet to send [22:40:56]OFD Sender: No OFD packet to send [22:41:01]OFD Sender: No OFD packet to send [22:41:06]OFD Sender: No OFD packet to send [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:29]accept exits with 9 [22:41:29]New connection [22:41:29]New thread 3066965348 created [22:41:29]Thread 3066821988 joined [22:41:29]Waiting for new connection... [22:41:29] Sock 9.Parse request [22:41:29]Sock 9.Check first char [22:41:29]Sock 9.First char is OK [22:41:29]request: POST /json_proto HTTP/1.0 [22:41:29]Method: POST [22:41:29]URL: /json_proto [22:41:29]Method is POST - this is cgi request [22:41:29]url: /json_proto [22:41:29]query_string will be loaded in cgi processing [22:41:29]execute_cgi json_proto POST (null) [22:41:29]execute_cgi path=json_proto method=POST [22:41:29]POST find Content-Length [22:41:29]Host: 172.17.39.68:8080 [22:41:29]Content-Length: 654 [22:41:29]Content-Type: application/json [22:41:29] [22:41:29]POST finish read [22:41:29]Found Content-Length = 654 [22:41:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214399", "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" ] } } [22:41:29]execute_script... [22:41: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)214399", "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" ] } } [22:41:29]POST & json_proto [22:41:29]process_json_proto [22:41:29]json parsed OK: [22:41:29]protocol is kg_v1.0 [22:41:29]action value=close_receipt [22:41:29]process_action close_receipt [22:41:29]cmd_close_receipt [22:41:29]MH_GetDate [22:41:29]Write to MH i2c: F0 00 00 B7 33 D9 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: F0 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: F0 09 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: F0 09 00 B7 33 00 20 F7 96 66 D6 48 95 66 0E [22:41:29]GetLastDocTimeStamp 1721169645 [22:41:29]current date 1721169696 [22:41:29]FM_GetShiftState [22:41:29]SAM_PROTO_GetShiftState [22:41:29]wFMCommunicate request_size=4 [22:41:29]MH_SAM_APDU [22:41:29]CAPDU: 80 13 01 00 [22:41:29]Write to MH i2c: E2 08 00 B8 33 80 13 01 00 00 00 00 00 68 [22:41:29]Write i2c OK [22:41:29]MH_I2C_Read... [22:41:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:29]Read from MH i2c: E2 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 0E 00 [22:41:29]MH_I2C_Read... [22:41:29]Read from MH i2c: E2 0E 00 B8 33 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B7 [22:41:29]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:41:29]wFMCommunicate OK [22:41:29]SAM_PROTO_GetShiftState done [22:41:29]FM_GetShiftState done [22:41:29]opened in 1721088399 [22:41:29]opened+sec_in_day 1721174799 [22:41:29]quantity*price = 9500 [22:41:29]sum+1 = 9501 [22:41:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 136 16.07.2024 22:41 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31817 ФПД: 43024863895913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T224136&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31817&fm=43024863895913&tin=02508201610067®Number=0000000000098025&sum=9500 0 [22:41:30]StoreToDocumentArchive [22:41:30]shift 371 fd 31817 [22:41:30]save to /storage/0371/doc_00031817 [22:41:30]save last doc name /storage/0371/doc_00031817 to /storage/kkm_last_doc_name [22:41:30]save OK [22:41:30]Clear old archive folders... [22:41:30]ProcessDocumentItem done err = 0, tmpTLVsize=293 [22:41:30]tlvbuf is 014ACD50 [22:41:30]SAM_PROTO_ClearQueue [22:41:30]wFMCommunicate request_size=4 [22:41:30]MH_SAM_APDU [22:41:30]CAPDU: 80 09 00 00 [22:41:30]Write to MH i2c: E2 08 00 C5 33 80 09 00 00 00 00 00 00 6A [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:30]Read from MH i2c: E2 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 03 00 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 03 00 C5 33 00 90 00 6C [22:41:30]RAPDU: 90 00 [22:41:30]wFMCommunicate OK [22:41:30]SAM_PROTO_ClearQueue done [22:41:30]KKMCreateOFDPacket [22:41:30]OFDProtocolAddRootSTLVToBuf [22:41:30]FM_MakeSignedData [22:41:30]FM_MakeSignedData [22:41:30]SAM_PROTO_SignData [22:41:30]wFMCommunicate request_size=4 [22:41:30]MH_SAM_APDU [22:41:30]CAPDU: 80 0D 01 02 [22:41:30]Write to MH i2c: E2 08 00 C6 33 80 0D 01 02 00 00 00 00 72 [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:30]Read from MH i2c: E2 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 03 00 [22:41:30]MH_I2C_Read... [22:41:30]Read from MH i2c: E2 03 00 C6 33 00 90 00 6D [22:41:30]RAPDU: 90 00 [22:41:30]wFMCommunicate OK [22:41:30]wFMCommunicate request_size=255 [22:41:30]MH_SAM_APDU [22:41:30]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 88 00 00 00 F4 03 04 00 20 F7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [22:41:30]Write to MH i2c: E2 02 01 C7 33 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 88 00 00 00 F4 03 04 00 20 F7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 21 [22:41:30]Write i2c OK [22:41:30]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 03 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 03 00 C7 33 00 90 00 6E [22:41:31]RAPDU: 90 00 [22:41:31]wFMCommunicate OK [22:41:31]wFMCommunicate request_size=52 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 49 7C 00 00 35 04 06 00 27 21 81 BA A1 69 [22:41:31]Write to MH i2c: E2 37 00 C8 33 80 0D 02 02 2F 00 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 49 7C 00 00 35 04 06 00 27 21 81 BA A1 69 00 00 91 [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 03 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 03 00 C8 33 00 90 00 6F [22:41:31]RAPDU: 90 00 [22:41:31]wFMCommunicate OK [22:41:31]wFMCommunicate request_size=4 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 0D 03 02 [22:41:31]Write to MH i2c: E2 08 00 C9 33 80 0D 03 02 00 00 00 00 77 [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 0B 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 0B 00 C9 33 00 6F D4 EC C3 6B 5B D9 0B 90 00 14 [22:41:31]RAPDU: 6F D4 EC C3 6B 5B D9 0B 90 00 [22:41:31]wFMCommunicate OK [22:41:31]SAM_PROTO_SignData done [22:41:31]FM_MakeSignedData done [22:41:31]CreateOFDProtocolMessage [22:41:31]wFMCommunicate request_size=4 [22:41:31]MH_SAM_APDU [22:41:31]CAPDU: 80 11 00 00 [22:41:31]Write to MH i2c: E2 08 00 CA 33 80 11 00 00 00 00 00 00 77 [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:31]Read from MH i2c: E2 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 17 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: E2 17 00 CA 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D2 [22:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:41:31]wFMCommunicate OK [22:41:31]CreateOFDProtocolMessage done [22:41:31]OFDSenderStorePacket 31817 [22:41:31]StoreOFDPacket docnum=31817 [22:41:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 AA 97 31 01 1A F5 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 88 00 00 00 F4 03 04 00 20 F7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 49 7C 00 00 35 04 06 00 27 21 81 BA A1 69 6F D4 EC C3 6B 5B D9 0B [22:41:31]CheckFolder [22:41:31]dirname=/storage/ofd_packets [22:41:31]CheckFolder done [22:41:31]ProducePacketName [22:41:31]name=ofd_packets/00031817 [22:41:31]NVStorageSaveData ofd_packets/00031817 [22:41:31]File name is /storage/ofd_packets/00031817 [22:41:31]Write 343 bytes [22:41:31]NVStorageSaveData done [22:41:31]OFDSenderStorePacket done [22:41:31]KKMCreateOFDPacket done [22:41:31]NVStorageSaveData kkm_last_timestamp [22:41:31]File name is /storage/kkm_last_timestamp [22:41:31]Write 4 bytes [22:41:31]NVStorageSaveData done [22:41:31]ExternCall_PrintAddStr [22:41:31]wPrintStart [22:41:31]Write to MH i2c: 01 00 00 CB 33 FE [22:41:31]Write i2c OK [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: 01 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: 01 07 00 [22:41:31]MH_I2C_Read... [22:41:31]Read from MH i2c: 01 07 00 CB 33 00 00 00 00 00 FF 0F 13 [22:41:31]RasterBufferAndPrint [22:41:31]line Счет N : (3)214399 [22:41:31]line ИНН: 02508201610067 [22:41:31]line Контрольно-Кассовый Чек [22:41:31]line ПРОДАЖА [22:41:31]line Товар: 4700000480050 [22:41:31]line Напиток Nitro Energy эн green ж/б 0,45л [22:41:31]line 1.000 * 95.00 [22:41:31]line = 95.00 [22:41:31]line НДС 12% НСП 1% [22:41:31]line > о реализуемом товаре [22:41:31]line ИТОГО: 95.00 [22:41:31]line НСП 1% : 0.84 [22:41:31]line НДС 12% : 10.09 [22:41:31]line Наличными: 95.00 [22:41:31]line Безнал.: 0.00 [22:41:31]line Место: АЗС № 140 "Партнер Нефть" [22:41:31]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [22:41:31]line СНО: Общий режим [22:41:31]line Чек 136 16.07.2024 22:41 [22:41:31]line Смена: 371 ФФД: 1.0 [22:41:31]line ЗНМ: 0300000189 [22:41:31]line РНМ: 0000000000098025 [22:41:31]line Версия ККМ: 001 [22:41:31]line ФМ: 0000000000965389 [22:41:31]line ФД: 31817 [22:41:31]line ФПД: 43024863895913 [22:41:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T224136&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31817&fm=43024863895913&tin=02508201610067®Number=0000000000098025&sum=9500 [22:41:31]OFD Sender: Processing packet 31817 [packets to send 6, broken 5] [22:41:31]ProducePacketName [22:41:31]name=ofd_packets/00031817 [22:41:31]OFD Sender: To server: pG, [22:41:31]CommunicateWithHost lk.salyk.kg:30040 [22:41:31]ConnectInit lk.salyk.kg [22:41:31]line 0 [22:41:31]written 0, free lines is 4095 [22:41:31]Connected sock=10 [22:41:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 39 01 00 00 AA 97 31 01 1A F5 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 88 00 00 00 F4 03 04 00 20 F7 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 49 7C 00 00 35 04 06 00 27 21 81 BA A1 69 6F D4 EC C3 6B 5B D9 0B [22:41:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 FD CC 47 00 F6 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 49 7C 00 00 F4 03 04 00 2C A3 96 66 B6 04 01 00 00 D5 33 91 6F 57 72 FF CD [22:41:31]CommunicateWithHost err = 0 [22:41:31]CheckOFDResponse [22:41:31]1017 (14) - 77093643461234 [22:41:31]1041 (16) - 0000000000965389 [22:41:31]1040 (4) - 31817 [22:41:31]1012 (4) - 16.07.2024 16:43 [22:41:31]1206 (1) - 0 [22:41:31]OFD Sender: Remove packet 31817 [22:41:31]ProducePacketName [22:41:31]name=ofd_packets/00031817 [22:41:31]NVStorageDeleteData [22:41:32]Write to MH i2c: 01 00 00 F4 33 27 [22:41:32]Write i2c OK [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: 01 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: 01 07 00 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: 01 07 00 F4 33 00 00 00 00 00 F2 0C 2C [22:41:32]RasterBufferAndPrint [22:41:32]line [22:41:32]line [22:41:32]line [22:41:32]line [22:41:32]line [22:41:32]written 0, free lines is 3324 [22:41:32]MH_Cut [22:41:32]Write to MH i2c: D1 01 00 FB 33 01 00 [22:41:32]Write i2c OK [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: D1 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: D1 01 00 [22:41:32]MH_I2C_Read... [22:41:32]Read from MH i2c: D1 01 00 FB 33 00 FF [22:41:32]Write to MH i2c: 01 00 00 FC 33 2F [22:41:32]Write i2c OK [22:41:32]MH_I2C_Read... [22:41:32]OFD Sender: No OFD packet to send [22:41:32]*** Cut start [22:41:32]*** Partial cut [22:41:32]*** CUTSNS_PIN = 1 [22:41:32]*** CUTSNS_PIN = 0 [22:41:33]*** Brake cut motor [22:41:33]Read from MH i2c: 01 [22:41:33]MH_I2C_Read... [22:41:33]*** Stop cut motor [22:41:33]*** Cut end [22:41:33]Read from MH i2c: 01 07 00 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: 01 07 00 FC 33 00 00 00 00 00 FF 0F 44 [22:41:33]process_action close_receipt done [22:41:33]requested_data is exist [22:41:33]produce_requested_data [22:41:33]requested_item fm.sn is exist - process it [22:41:33]wFMCommunicate request_size=4 [22:41:33]MH_SAM_APDU [22:41:33]CAPDU: 80 11 00 00 [22:41:33]Write to MH i2c: E2 08 00 FD 33 80 11 00 00 00 00 00 00 AA [22:41:33]Write i2c OK [22:41:33]MH_I2C_Read... [22:41:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:33]Read from MH i2c: E2 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 17 00 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 17 00 FD 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 05 [22:41:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [22:41:33]wFMCommunicate OK [22:41:33]requested_item fd.num is exist - process it [22:41:33]SAM_PROTO_GetFieldsCounters [22:41:33]wFMCommunicate request_size=4 [22:41:33]MH_SAM_APDU [22:41:33]CAPDU: 80 13 00 00 [22:41:33]Write to MH i2c: E2 08 00 FE 33 80 13 00 00 00 00 00 00 AD [22:41:33]Write i2c OK [22:41:33]MH_I2C_Read... [22:41:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:33]Read from MH i2c: E2 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 62 00 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 62 00 FE 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 49 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [22:41: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 49 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:33]wFMCommunicate OK [22:41:33]SAM_PROTO_GetFieldsCounters done [22:41:33]requested_item shift.num is exist - process it [22:41:33]requested_item shift.opened is exist - process it [22:41:33]req_shift_opened [22:41:33]FM_GetShiftState [22:41:33]SAM_PROTO_GetShiftState [22:41:33]wFMCommunicate request_size=4 [22:41:33]MH_SAM_APDU [22:41:33]CAPDU: 80 13 01 00 [22:41:33]Write to MH i2c: E2 08 00 FF 33 80 13 01 00 00 00 00 00 AF [22:41:33]Write i2c OK [22:41:33]MH_I2C_Read... [22:41:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:33]Read from MH i2c: E2 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 0E 00 [22:41:33]MH_I2C_Read... [22:41:33]Read from MH i2c: E2 0E 00 FF 33 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 FE [22:41:33]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [22:41:33]wFMCommunicate OK [22:41:33]SAM_PROTO_GetShiftState done [22:41:33]FM_GetShiftState done [22:41:33]req_shift_opened done [22:41:33]requested_item shift.open_date is exist - process it [22:41:33]req_shift_open_date [22:41:33]req_shift_open_date done [22:41:33]produce_requested_data done [22:41:33]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31817,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [22:41:33]process_action_free close_receipt [22:41:33]json_value_free [22:41:33]json_value_free done [22:41:33]process_json_proto returns [22:41:33]Send response to host [22:41:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31817,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [22:41:33]free response buf [22:41:33]execute_script done [22:41:33]execute_script returns [22:41:33]free content buf [22:41:33]Sock 9.Close socket [22:41:33]Sock 9.Thread stoped [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:57]OFD Sender: No OFD packet to send [22:42:02]OFD Sender: No OFD packet to send [22:42:07]OFD Sender: No OFD packet to send [22:42:12]OFD Sender: No OFD packet to send [22:42:17]OFD Sender: No OFD packet to send [22:42:22]OFD Sender: No OFD packet to send [22:42:27]OFD Sender: No OFD packet to send [22:42:32]OFD Sender: No OFD packet to send [22:42:37]OFD Sender: No OFD packet to send [22:42:42]OFD Sender: No OFD packet to send [22:42:47]OFD Sender: No OFD packet to send [22:42:52]OFD Sender: No OFD packet to send [22:42:57]OFD Sender: No OFD packet to send [22:43:02]OFD Sender: No OFD packet to send [22:43:07]OFD Sender: No OFD packet to send [22:43:12]OFD Sender: No OFD packet to send [22:43:17]OFD Sender: No OFD packet to send [22:43:22]OFD Sender: No OFD packet to send [22:43:27]OFD Sender: No OFD packet to send [22:43:32]OFD Sender: No OFD packet to send [22:43:37]OFD Sender: No OFD packet to send [22:43:42]OFD Sender: No OFD packet to send [22:43:47]OFD Sender: No OFD packet to send [22:43:52]OFD Sender: No OFD packet to send [22:43:57]OFD Sender: No OFD packet to send [22:44:02]OFD Sender: No OFD packet to send [22:44:07]OFD Sender: No OFD packet to send [22:44:12]OFD Sender: No OFD packet to send [22:44:17]OFD Sender: No OFD packet to send [22:44:22]OFD Sender: No OFD packet to send [22:44:27]OFD Sender: No OFD packet to send [22:44:32]OFD Sender: No OFD packet to send [22:44:37]OFD Sender: No OFD packet to send [22:44:42]OFD Sender: No OFD packet to send [22:44:47]OFD Sender: No OFD packet to send [22:44:52]OFD Sender: No OFD packet to send [22:44:57]OFD Sender: No OFD packet to send [22:45:02]OFD Sender: No OFD packet to send [22:45:07]OFD Sender: No OFD packet to send [22:45:12]OFD Sender: No OFD packet to send [22:45:17]OFD Sender: No OFD packet to send [22:45:22]OFD Sender: No OFD packet to send [22:45:27]OFD Sender: No OFD packet to send [22:45:32]OFD Sender: No OFD packet to send [22:45:37]OFD Sender: No OFD packet to send [22:45:42]OFD Sender: No OFD packet to send [22:45:47]OFD Sender: No OFD packet to send [22:45:52]OFD Sender: No OFD packet to send [22:45:57]OFD Sender: No OFD packet to send [22:46:02]OFD Sender: No OFD packet to send [22:46:07]OFD Sender: No OFD packet to send [22:46:12]OFD Sender: No OFD packet to send [22:46:17]OFD Sender: No OFD packet to send [22:46:22]OFD Sender: No OFD packet to send [22:46:27]OFD Sender: No OFD packet to send [22:46:32]OFD Sender: No OFD packet to send [22:46:37]OFD Sender: No OFD packet to send [22:46:42]OFD Sender: No OFD packet to send [22:46:47]OFD Sender: No OFD packet to send [22:46:52]OFD Sender: No OFD packet to send [22:46:57]OFD Sender: No OFD packet to send [22:47:02]OFD Sender: No OFD packet to send [22:47:07]OFD Sender: No OFD packet to send [22:47:12]OFD Sender: No OFD packet to send [22:47:17]OFD Sender: No OFD packet to send [22:47:22]OFD Sender: No OFD packet to send [22:47:27]OFD Sender: No OFD packet to send [22:47:32]OFD Sender: No OFD packet to send [22:47:37]OFD Sender: No OFD packet to send [22:47:42]OFD Sender: No OFD packet to send [22:47:47]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:42]OFD Sender: No OFD packet to send [22:51:47]OFD Sender: No OFD packet to send [22:51:52]OFD Sender: No OFD packet to send [22:51:57]OFD Sender: No OFD packet to send [22:52:02]OFD Sender: No OFD packet to send [22:52:07]OFD Sender: No OFD packet to send [22:52:12]OFD Sender: No OFD packet to send [22:52:17]OFD Sender: No OFD packet to send [22:52:22]OFD Sender: No OFD packet to send [22:52:27]OFD Sender: No OFD packet to send [22:52:32]OFD Sender: No OFD packet to send [22:52:37]OFD Sender: No OFD packet to send [22:52:42]OFD Sender: No OFD packet to send [22:52:47]OFD Sender: No OFD packet to send [22:52:52]OFD Sender: No OFD packet to send [22:52:57]OFD Sender: No OFD packet to send [22:53:02]OFD Sender: No OFD packet to send [22:53:07]OFD Sender: No OFD packet to send [22:53:12]OFD Sender: No OFD packet to send [22:53:17]OFD Sender: No OFD packet to send [22:53:22]OFD Sender: No OFD packet to send [22:53:27]OFD Sender: No OFD packet to send [22:53:32]OFD Sender: No OFD packet to send [22:53:37]OFD Sender: No OFD packet to send [22:53:42]OFD Sender: No OFD packet to send [22:53:47]OFD Sender: No OFD packet to send [22:53:52]OFD Sender: No OFD packet to send [22:53:57]OFD Sender: No OFD packet to send [22:54:02]OFD Sender: No OFD packet to send [22:54:07]OFD Sender: No OFD packet to send [22:54:12]OFD Sender: No OFD packet to send [22:54:17]OFD Sender: No OFD packet to send [22:54:22]OFD Sender: No OFD packet to send [22:54:27]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:33]OFD Sender: No OFD packet to send [22:55:38]OFD Sender: No OFD packet to send [22:55:43]OFD Sender: No OFD packet to send [22:55:48]OFD Sender: No OFD packet to send [22:55:53]OFD Sender: No OFD packet to send [22:55:58]OFD Sender: No OFD packet to send [22:56:03]OFD Sender: No OFD packet to send [22:56:08]OFD Sender: No OFD packet to send [22:56:13]OFD Sender: No OFD packet to send [22:56:18]OFD Sender: No OFD packet to send [22:56:23]OFD Sender: No OFD packet to send [22:56:28]OFD Sender: No OFD packet to send [22:56:33]OFD Sender: No OFD packet to send [22:56:38]OFD Sender: No OFD packet to send [22:56:43]OFD Sender: No OFD packet to send [22:56:48]OFD Sender: No OFD packet to send [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:48]OFD Sender: No OFD packet to send [22:57:53]OFD Sender: No OFD packet to send [22:57:58]OFD Sender: No OFD packet to send [22:58:03]OFD Sender: No OFD packet to send [22:58:08]OFD Sender: No OFD packet to send [22:58:13]OFD Sender: No OFD packet to send [22:58:18]OFD Sender: No OFD packet to send [22:58:23]OFD Sender: No OFD packet to send [22:58:28]OFD Sender: No OFD packet to send [22:58:33]OFD Sender: No OFD packet to send [22:58:38]OFD Sender: No OFD packet to send [22:58:43]OFD Sender: No OFD packet to send [22:58:48]OFD Sender: No OFD packet to send [22:58:53]OFD Sender: No OFD packet to send [22:58:58]OFD Sender: No OFD packet to send [22:59:03]OFD Sender: No OFD packet to send [22:59:08]OFD Sender: No OFD packet to send [22:59:13]OFD Sender: No OFD packet to send [22:59:18]OFD Sender: No OFD packet to send [22:59:23]OFD Sender: No OFD packet to send [22:59:28]OFD Sender: No OFD packet to send [22:59:33]OFD Sender: No OFD packet to send [22:59:38]OFD Sender: No OFD packet to send [22:59:43]OFD Sender: No OFD packet to send [22:59:48]OFD Sender: No OFD packet to send [22:59:53]OFD Sender: No OFD packet to send [22:59:58]OFD Sender: No OFD packet to send [23:00:03]OFD Sender: No OFD packet to send [23:00:08]OFD Sender: No OFD packet to send [23:00:13]OFD Sender: No OFD packet to send [23:00:18]OFD Sender: No OFD packet to send [23:00:23]OFD Sender: No OFD packet to send [23:00:28]OFD Sender: No OFD packet to send [23:00:33]OFD Sender: No OFD packet to send [23:00:38]OFD Sender: No OFD packet to send [23:00:43]OFD Sender: No OFD packet to send [23:00:48]OFD Sender: No OFD packet to send [23:00:53]OFD Sender: No OFD packet to send [23:00:58]OFD Sender: No OFD packet to send [23:01:03]OFD Sender: No OFD packet to send [23:01:08]OFD Sender: No OFD packet to send [23:01:13]OFD Sender: No OFD packet to send [23:01:18]OFD Sender: No OFD packet to send [23:01:23]OFD Sender: No OFD packet to send [23:01:28]OFD Sender: No OFD packet to send [23:01:33]OFD Sender: No OFD packet to send [23:01:38]OFD Sender: No OFD packet to send [23:01:43]OFD Sender: No OFD packet to send [23:01:48]OFD Sender: No OFD packet to send [23:01:53]OFD Sender: No OFD packet to send [23:01:58]OFD Sender: No OFD packet to send [23:02:03]OFD Sender: No OFD packet to send [23:02:08]OFD Sender: No OFD packet to send [23:02:13]OFD Sender: No OFD packet to send [23:02:18]OFD Sender: No OFD packet to send [23:02:23]OFD Sender: No OFD packet to send [23:02:28]OFD Sender: No OFD packet to send [23:02:33]OFD Sender: No OFD packet to send [23:02:38]OFD Sender: No OFD packet to send [23:02:43]OFD Sender: No OFD packet to send [23:02:48]OFD Sender: No OFD packet to send [23:02:53]OFD Sender: No OFD packet to send [23:02:58]OFD Sender: No OFD packet to send [23:03:03]OFD Sender: No OFD packet to send [23:03:08]OFD Sender: No OFD packet to send [23:03:13]OFD Sender: No OFD packet to send [23:03:18]OFD Sender: No OFD packet to send [23:03:23]OFD Sender: No OFD packet to send [23:03:28]OFD Sender: No OFD packet to send [23:03:33]OFD Sender: No OFD packet to send [23:03:38]OFD Sender: No OFD packet to send [23:03:43]OFD Sender: No OFD packet to send [23:03:48]OFD Sender: No OFD packet to send [23:03:53]OFD Sender: No OFD packet to send [23:03:58]OFD Sender: No OFD packet to send [23:04:03]OFD Sender: No OFD packet to send [23:04:08]OFD Sender: No OFD packet to send [23:04:13]OFD Sender: No OFD packet to send [23:04:18]OFD Sender: No OFD packet to send [23:04:23]OFD Sender: No OFD packet to send [23:04:28]OFD Sender: No OFD packet to send [23:04:33]OFD Sender: No OFD packet to send [23:04:38]OFD Sender: No OFD packet to send [23:04:43]OFD Sender: No OFD packet to send [23:04:48]OFD Sender: No OFD packet to send [23:04:53]OFD Sender: No OFD packet to send [23:04:58]OFD Sender: No OFD packet to send [23:05:03]OFD Sender: No OFD packet to send [23:05:08]OFD Sender: No OFD packet to send [23:05:13]OFD Sender: No OFD packet to send [23:05:18]OFD Sender: No OFD packet to send [23:05:23]OFD Sender: No OFD packet to send [23:05:28]OFD Sender: No OFD packet to send [23:05:33]OFD Sender: No OFD packet to send [23:05:33]accept exits with 7 [23:05:33]New connection [23:05:33]New thread 3066821988 created [23:05:33]Thread 3066965348 joined [23:05:33]Waiting for new connection... [23:05:33] Sock 7.Parse request [23:05:33]Sock 7.Check first char [23:05:33]Sock 7.First char is OK [23:05:33]request: POST /json_proto HTTP/1.0 [23:05:33]Method: POST [23:05:33]URL: /json_proto [23:05:33]Method is POST - this is cgi request [23:05:33]url: /json_proto [23:05:33]query_string will be loaded in cgi processing [23:05:33]execute_cgi json_proto POST (null) [23:05:33]execute_cgi path=json_proto method=POST [23:05:33]POST find Content-Length [23:05:33]Host: 172.17.39.68:8080 [23:05:33]Content-Length: 570 [23:05:33]Content-Type: application/json [23:05:33] [23:05:33]POST finish read [23:05:33]Found Content-Length = 570 [23:05:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214400", "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" ] } } [23:05:33]execute_script... [23:05:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214400", "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" ] } } [23:05:33]POST & json_proto [23:05:33]process_json_proto [23:05:33]json parsed OK: [23:05:33]protocol is kg_v1.0 [23:05:33]action value=close_receipt [23:05:33]process_action close_receipt [23:05:33]cmd_close_receipt [23:05:33]MH_GetDate [23:05:33]Write to MH i2c: F0 00 00 00 34 23 [23:05:33]Write i2c OK [23:05:33]MH_I2C_Read... [23:05:33]Read from MH i2c: F0 [23:05:33]MH_I2C_Read... [23:05:33]Read from MH i2c: F0 09 00 [23:05:33]MH_I2C_Read... [23:05:33]Read from MH i2c: F0 09 00 00 34 00 C4 FC 96 66 D6 48 95 66 01 [23:05:33]GetLastDocTimeStamp 1721169696 [23:05:33]current date 1721171140 [23:05:33]FM_GetShiftState [23:05:33]SAM_PROTO_GetShiftState [23:05:33]wFMCommunicate request_size=4 [23:05:33]MH_SAM_APDU [23:05:33]CAPDU: 80 13 01 00 [23:05:33]Write to MH i2c: E2 08 00 01 34 80 13 01 00 00 00 00 00 B2 [23:05:33]Write i2c OK [23:05:33]MH_I2C_Read... [23:05:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:33]Read from MH i2c: E2 [23:05:33]MH_I2C_Read... [23:05:33]Read from MH i2c: E2 0E 00 [23:05:33]MH_I2C_Read... [23:05:33]Read from MH i2c: E2 0E 00 01 34 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 01 [23:05:33]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:05:33]wFMCommunicate OK [23:05:33]SAM_PROTO_GetShiftState done [23:05:33]FM_GetShiftState done [23:05:33]opened in 1721088399 [23:05:33]opened+sec_in_day 1721174799 [23:05:33]quantity*price = 13000 [23:05:33]sum+1 = 13001 [23:05:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 137 16.07.2024 23:05 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31818 ФПД: 275728955751672 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T230540&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31818&fm=275728955751672&tin=02508201610067®Number=0000000000098025&sum=13000 0 [23:05:34]StoreToDocumentArchive [23:05:34]shift 371 fd 31818 [23:05:34]save to /storage/0371/doc_00031818 [23:05:34]save last doc name /storage/0371/doc_00031818 to /storage/kkm_last_doc_name [23:05:34]save OK [23:05:34]Clear old archive folders... [23:05:34]ProcessDocumentItem done err = 0, tmpTLVsize=254 [23:05:34]tlvbuf is 01527230 [23:05:34]SAM_PROTO_ClearQueue [23:05:34]wFMCommunicate request_size=4 [23:05:34]MH_SAM_APDU [23:05:34]CAPDU: 80 09 00 00 [23:05:34]Write to MH i2c: E2 08 00 0E 34 80 09 00 00 00 00 00 00 B4 [23:05:34]Write i2c OK [23:05:34]MH_I2C_Read... [23:05:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:05:34]Read from MH i2c: E2 [23:05:34]MH_I2C_Read... [23:05:34]Read from MH i2c: E2 03 00 [23:05:34]MH_I2C_Read... [23:05:34]Read from MH i2c: E2 03 00 0E 34 00 90 00 B6 [23:05:34]RAPDU: 90 00 [23:05:34]wFMCommunicate OK [23:05:34]SAM_PROTO_ClearQueue done [23:05:34]KKMCreateOFDPacket [23:05:34]OFDProtocolAddRootSTLVToBuf [23:05:34]FM_MakeSignedData [23:05:34]FM_MakeSignedData [23:05:34]SAM_PROTO_SignData [23:05:34]wFMCommunicate request_size=4 [23:05:34]MH_SAM_APDU [23:05:34]CAPDU: 80 0D 01 02 [23:05:34]Write to MH i2c: E2 08 00 0F 34 80 0D 01 02 00 00 00 00 BC [23:05:34]Write i2c OK [23:05:34]MH_I2C_Read... [23:05:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:05:34]Read from MH i2c: E2 [23:05:34]MH_I2C_Read... [23:05:34]Read from MH i2c: E2 03 00 [23:05:34]MH_I2C_Read... [23:05:34]Read from MH i2c: E2 03 00 0F 34 00 90 00 B7 [23:05:34]RAPDU: 90 00 [23:05:34]wFMCommunicate OK [23:05:34]wFMCommunicate request_size=255 [23:05:34]MH_SAM_APDU [23:05:34]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 89 00 00 00 F4 03 04 00 C4 FC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4A 7C 00 00 35 04 [23:05:34]Write to MH i2c: E2 02 01 10 34 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 89 00 00 00 F4 03 04 00 C4 FC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4A 7C 00 00 35 04 00 00 46 [23:05:34]Write i2c OK [23:05:34]MH_I2C_Read... [23:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:35]Read from MH i2c: E2 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: E2 03 00 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: E2 03 00 10 34 00 90 00 B8 [23:05:35]RAPDU: 90 00 [23:05:35]wFMCommunicate OK [23:05:35]wFMCommunicate request_size=13 [23:05:35]MH_SAM_APDU [23:05:35]CAPDU: 80 0D 02 02 08 06 00 FA C6 26 76 3C F8 [23:05:35]Write to MH i2c: E2 10 00 11 34 80 0D 02 02 08 00 06 00 FA C6 26 76 3C F8 00 00 65 [23:05:35]Write i2c OK [23:05:35]MH_I2C_Read... [23:05:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:05:35]Read from MH i2c: E2 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: E2 03 00 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: E2 03 00 11 34 00 90 00 B9 [23:05:35]RAPDU: 90 00 [23:05:35]wFMCommunicate OK [23:05:35]wFMCommunicate request_size=4 [23:05:35]MH_SAM_APDU [23:05:35]CAPDU: 80 0D 03 02 [23:05:35]Write to MH i2c: E2 08 00 12 34 80 0D 03 02 00 00 00 00 C1 [23:05:35]Write i2c OK [23:05:35]MH_I2C_Read... [23:05:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:05:35]Read from MH i2c: E2 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: E2 0B 00 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: E2 0B 00 12 34 00 29 F2 E5 72 0D C7 0E A9 90 00 BF [23:05:35]RAPDU: 29 F2 E5 72 0D C7 0E A9 90 00 [23:05:35]wFMCommunicate OK [23:05:35]SAM_PROTO_SignData done [23:05:35]FM_MakeSignedData done [23:05:35]CreateOFDProtocolMessage [23:05:35]wFMCommunicate request_size=4 [23:05:35]MH_SAM_APDU [23:05:35]CAPDU: 80 11 00 00 [23:05:35]Write to MH i2c: E2 08 00 13 34 80 11 00 00 00 00 00 00 C1 [23:05:35]Write i2c OK [23:05:35]MH_I2C_Read... [23:05:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:35]Read from MH i2c: E2 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: E2 17 00 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: E2 17 00 13 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1C [23:05:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:05:35]wFMCommunicate OK [23:05:35]CreateOFDProtocolMessage done [23:05:35]OFDSenderStorePacket 31818 [23:05:35]StoreOFDPacket docnum=31818 [23:05:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 12 01 00 00 90 70 0A 01 9D 48 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 89 00 00 00 F4 03 04 00 C4 FC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4A 7C 00 00 35 04 06 00 FA C6 26 76 3C F8 29 F2 E5 72 0D C7 0E A9 [23:05:35]CheckFolder [23:05:35]dirname=/storage/ofd_packets [23:05:35]CheckFolder done [23:05:35]ProducePacketName [23:05:35]name=ofd_packets/00031818 [23:05:35]NVStorageSaveData ofd_packets/00031818 [23:05:35]File name is /storage/ofd_packets/00031818 [23:05:35]Write 304 bytes [23:05:35]NVStorageSaveData done [23:05:35]OFDSenderStorePacket done [23:05:35]KKMCreateOFDPacket done [23:05:35]NVStorageSaveData kkm_last_timestamp [23:05:35]File name is /storage/kkm_last_timestamp [23:05:35]Write 4 bytes [23:05:35]NVStorageSaveData done [23:05:35]ExternCall_PrintAddStr [23:05:35]wPrintStart [23:05:35]Write to MH i2c: 01 00 00 14 34 48 [23:05:35]Write i2c OK [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: 01 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: 01 07 00 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: 01 07 00 14 34 00 00 00 00 00 FF 0F 5D [23:05:35]RasterBufferAndPrint [23:05:35]line Счет N : (3)214400 [23:05:35]line ИНН: 02508201610067 [23:05:35]line Контрольно-Кассовый Чек [23:05:35]line ПРОДАЖА [23:05:35]line Товар: 48744546 [23:05:35]line LD Compact Silver [23:05:35]line 1.000 * 130.00 [23:05:35]line = 130.00 [23:05:35]line НДС 12% НСП 1% [23:05:35]line > о реализуемом товаре [23:05:35]line ИТОГО: 130.00 [23:05:35]line НСП 1% : 1.15 [23:05:35]line НДС 12% : 13.80 [23:05:35]line Наличными: 130.00 [23:05:35]line Безнал.: 0.00 [23:05:35]line Место: АЗС № 140 "Партнер Нефть" [23:05:35]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:05:35]line СНО: Общий режим [23:05:35]line Чек 137 16.07.2024 23:05 [23:05:35]line Смена: 371 ФФД: 1.0 [23:05:35]line ЗНМ: 0300000189 [23:05:35]line РНМ: 0000000000098025 [23:05:35]line Версия ККМ: 001 [23:05:35]line ФМ: 0000000000965389 [23:05:35]line ФД: 31818 [23:05:35]line ФПД: 275728955751672 [23:05:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T230540&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31818&fm=275728955751672&tin=02508201610067®Number=0000000000098025&sum=13000 [23:05:35]OFD Sender: Processing packet 31818 [packets to send 6, broken 5] [23:05:35]ProducePacketName [23:05:35]name=ofd_packets/00031818 [23:05:35]OFD Sender: To server: pG, [23:05:35]CommunicateWithHost lk.salyk.kg:30040 [23:05:35]ConnectInit lk.salyk.kg [23:05:35]line 0 [23:05:35]written 0, free lines is 4095 [23:05:35]Connected sock=10 [23:05:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 12 01 00 00 90 70 0A 01 9D 48 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 89 00 00 00 F4 03 04 00 C4 FC 96 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4A 7C 00 00 35 04 06 00 FA C6 26 76 3C F8 29 F2 E5 72 0D C7 0E A9 [23:05:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B8 B3 47 00 1D EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4A 7C 00 00 F4 03 04 00 D0 A8 96 66 B6 04 01 00 00 F4 20 AE 42 00 7D 25 67 [23:05:35]CommunicateWithHost err = 0 [23:05:35]CheckOFDResponse [23:05:35]1017 (14) - 77093643461234 [23:05:35]1041 (16) - 0000000000965389 [23:05:35]1040 (4) - 31818 [23:05:35]1012 (4) - 16.07.2024 17:07 [23:05:35]1206 (1) - 0 [23:05:35]OFD Sender: Remove packet 31818 [23:05:35]ProducePacketName [23:05:35]name=ofd_packets/00031818 [23:05:35]NVStorageDeleteData [23:05:35]Write to MH i2c: 01 00 00 3C 34 70 [23:05:35]Write i2c OK [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: 01 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: 01 07 00 [23:05:35]MH_I2C_Read... [23:05:35]Read from MH i2c: 01 07 00 3C 34 00 00 00 00 00 09 0D 8D [23:05:35]RasterBufferAndPrint [23:05:35]line [23:05:35]line [23:05:35]line [23:05:35]line [23:05:35]line [23:05:35]written 0, free lines is 3345 [23:05:36]MH_Cut [23:05:36]Write to MH i2c: D1 01 00 43 34 01 49 [23:05:36]Write i2c OK [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: D1 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: D1 01 00 [23:05:36]MH_I2C_Read... [23:05:36]Read from MH i2c: D1 01 00 43 34 00 48 [23:05:36]Write to MH i2c: 01 00 00 44 34 78 [23:05:36]Write i2c OK [23:05:36]MH_I2C_Read... [23:05:36]OFD Sender: No OFD packet to send [23:05:36]*** Cut start [23:05:36]*** Partial cut [23:05:36]*** CUTSNS_PIN = 1 [23:05:36]*** CUTSNS_PIN = 0 [23:05:37]*** Brake cut motor [23:05:37]Read from MH i2c: 01 [23:05:37]MH_I2C_Read... [23:05:37]*** Stop cut motor [23:05:37]*** Cut end [23:05:37]Read from MH i2c: 01 07 00 [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: 01 07 00 44 34 00 00 00 00 00 FF 0F 8D [23:05:37]process_action close_receipt done [23:05:37]requested_data is exist [23:05:37]produce_requested_data [23:05:37]requested_item fm.sn is exist - process it [23:05:37]wFMCommunicate request_size=4 [23:05:37]MH_SAM_APDU [23:05:37]CAPDU: 80 11 00 00 [23:05:37]Write to MH i2c: E2 08 00 45 34 80 11 00 00 00 00 00 00 F3 [23:05:37]Write i2c OK [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: E2 [23:05:37]MH_I2C_Read... [23:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:05:37]Read from MH i2c: E2 17 00 [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: E2 17 00 45 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 4E [23:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:05:37]wFMCommunicate OK [23:05:37]requested_item fd.num is exist - process it [23:05:37]SAM_PROTO_GetFieldsCounters [23:05:37]wFMCommunicate request_size=4 [23:05:37]MH_SAM_APDU [23:05:37]CAPDU: 80 13 00 00 [23:05:37]Write to MH i2c: E2 08 00 46 34 80 13 00 00 00 00 00 00 F6 [23:05:37]Write i2c OK [23:05:37]MH_I2C_Read... [23:05:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:05:37]Read from MH i2c: E2 [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: E2 62 00 [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: E2 62 00 46 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [23:05: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4A 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:05:37]wFMCommunicate OK [23:05:37]SAM_PROTO_GetFieldsCounters done [23:05:37]requested_item shift.num is exist - process it [23:05:37]requested_item shift.opened is exist - process it [23:05:37]req_shift_opened [23:05:37]FM_GetShiftState [23:05:37]SAM_PROTO_GetShiftState [23:05:37]wFMCommunicate request_size=4 [23:05:37]MH_SAM_APDU [23:05:37]CAPDU: 80 13 01 00 [23:05:37]Write to MH i2c: E2 08 00 47 34 80 13 01 00 00 00 00 00 F8 [23:05:37]Write i2c OK [23:05:37]MH_I2C_Read... [23:05:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:05:37]Read from MH i2c: E2 [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: E2 0E 00 [23:05:37]MH_I2C_Read... [23:05:37]Read from MH i2c: E2 0E 00 47 34 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 47 [23:05:37]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:05:37]wFMCommunicate OK [23:05:37]SAM_PROTO_GetShiftState done [23:05:37]FM_GetShiftState done [23:05:37]req_shift_opened done [23:05:37]requested_item shift.open_date is exist - process it [23:05:37]req_shift_open_date [23:05:37]req_shift_open_date done [23:05:37]produce_requested_data done [23:05:37]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31818,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [23:05:37]process_action_free close_receipt [23:05:37]json_value_free [23:05:37]json_value_free done [23:05:37]process_json_proto returns [23:05:37]Send response to host [23:05:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31818,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [23:05:37]free response buf [23:05:37]execute_script done [23:05:37]execute_script returns [23:05:37]free content buf [23:05:37]Sock 7.Close socket [23:05:37]Sock 7.Thread stoped [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12:06]OFD Sender: No OFD packet to send [23:12:11]OFD Sender: No OFD packet to send [23:12:16]OFD Sender: No OFD packet to send [23:12:21]OFD Sender: No OFD packet to send [23:12:26]OFD Sender: No OFD packet to send [23:12:31]OFD Sender: No OFD packet to send [23:12:36]OFD Sender: No OFD packet to send [23:12:41]OFD Sender: No OFD packet to send [23:12:46]OFD Sender: No OFD packet to send [23:12:51]OFD Sender: No OFD packet to send [23:12:56]OFD Sender: No OFD packet to send [23:13:01]OFD Sender: No OFD packet to send [23:13:06]OFD Sender: No OFD packet to send [23:13:11]OFD Sender: No OFD packet to send [23:13:16]OFD Sender: No OFD packet to send [23:13:21]OFD Sender: No OFD packet to send [23:13:26]OFD Sender: No OFD packet to send [23:13:31]OFD Sender: No OFD packet to send [23:13:36]OFD Sender: No OFD packet to send [23:13:41]OFD Sender: No OFD packet to send [23:13:46]OFD Sender: No OFD packet to send [23:13:51]OFD Sender: No OFD packet to send [23:13:56]OFD Sender: No OFD packet to send [23:14:01]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:56]OFD Sender: No OFD packet to send [23:18:01]OFD Sender: No OFD packet to send [23:18:06]OFD Sender: No OFD packet to send [23:18:11]OFD Sender: No OFD packet to send [23:18:16]OFD Sender: No OFD packet to send [23:18:21]OFD Sender: No OFD packet to send [23:18:26]OFD Sender: No OFD packet to send [23:18:31]OFD Sender: No OFD packet to send [23:18:36]OFD Sender: No OFD packet to send [23:18:41]OFD Sender: No OFD packet to send [23:18:46]OFD Sender: No OFD packet to send [23:18: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:49]accept exits with 9 [23:19:49]New connection [23:19:49]New thread 3066965348 created [23:19:49]Thread 3066821988 joined [23:19:49]Waiting for new connection... [23:19:49] Sock 9.Parse request [23:19:49]Sock 9.Check first char [23:19:49]Sock 9.First char is OK [23:19:49]request: POST /json_proto HTTP/1.0 [23:19:49]Method: POST [23:19:49]URL: /json_proto [23:19:49]Method is POST - this is cgi request [23:19:49]url: /json_proto [23:19:49]query_string will be loaded in cgi processing [23:19:49]execute_cgi json_proto POST (null) [23:19:49]execute_cgi path=json_proto method=POST [23:19:49]POST find Content-Length [23:19:49]Host: 172.17.39.68:8080 [23:19:49]Content-Length: 633 [23:19:49]Content-Type: application/json [23:19:49] [23:19:49]POST finish read [23:19:49]Found Content-Length = 633 [23:19:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214401", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "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" ] } } [23:19:49]execute_script... [23:19: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)214401", "tax_sys" : 0, "items" : [ { "code": "48745024", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Purpl", "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" ] } } [23:19:49]POST & json_proto [23:19:49]process_json_proto [23:19:49]json parsed OK: [23:19:49]protocol is kg_v1.0 [23:19:49]action value=close_receipt [23:19:49]process_action close_receipt [23:19:49]cmd_close_receipt [23:19:49]MH_GetDate [23:19:49]Write to MH i2c: F0 00 00 48 34 6B [23:19:49]Write i2c OK [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: F0 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: F0 09 00 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: F0 09 00 48 34 00 1C 00 97 66 D6 48 95 66 A6 [23:19:49]GetLastDocTimeStamp 1721171140 [23:19:49]current date 1721171996 [23:19:49]FM_GetShiftState [23:19:49]SAM_PROTO_GetShiftState [23:19:49]wFMCommunicate request_size=4 [23:19:49]MH_SAM_APDU [23:19:49]CAPDU: 80 13 01 00 [23:19:49]Write to MH i2c: E2 08 00 49 34 80 13 01 00 00 00 00 00 FA [23:19:49]Write i2c OK [23:19:49]MH_I2C_Read... [23:19:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:49]Read from MH i2c: E2 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: E2 0E 00 [23:19:49]MH_I2C_Read... [23:19:49]Read from MH i2c: E2 0E 00 49 34 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 49 [23:19:49]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:19:49]wFMCommunicate OK [23:19:49]SAM_PROTO_GetShiftState done [23:19:49]FM_GetShiftState done [23:19:49]opened in 1721088399 [23:19:49]opened+sec_in_day 1721174799 [23:19:49]quantity*price = 14000 [23:19:49]sum+1 = 14001 [23:19:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 138 16.07.2024 23:19 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31819 ФПД: 219818379767955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T231956&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31819&fm=219818379767955&tin=02508201610067®Number=0000000000098025&sum=14000 0 [23:19:50]StoreToDocumentArchive [23:19:50]shift 371 fd 31819 [23:19:50]save to /storage/0371/doc_00031819 [23:19:50]save last doc name /storage/0371/doc_00031819 to /storage/kkm_last_doc_name [23:19:50]save OK [23:19:50]Clear old archive folders... [23:19:50]ProcessDocumentItem done err = 0, tmpTLVsize=285 [23:19:50]tlvbuf is 01494780 [23:19:50]SAM_PROTO_ClearQueue [23:19:50]wFMCommunicate request_size=4 [23:19:50]MH_SAM_APDU [23:19:50]CAPDU: 80 09 00 00 [23:19:50]Write to MH i2c: E2 08 00 56 34 80 09 00 00 00 00 00 00 FC [23:19:50]Write i2c OK [23:19:50]MH_I2C_Read... [23:19:50]Read from MH i2c: E2 [23:19:50]MH_I2C_Read... [23:19:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:50]Read from MH i2c: E2 03 00 [23:19:50]MH_I2C_Read... [23:19:50]Read from MH i2c: E2 03 00 56 34 00 90 00 FE [23:19:50]RAPDU: 90 00 [23:19:50]wFMCommunicate OK [23:19:50]SAM_PROTO_ClearQueue done [23:19:50]KKMCreateOFDPacket [23:19:50]OFDProtocolAddRootSTLVToBuf [23:19:50]FM_MakeSignedData [23:19:50]FM_MakeSignedData [23:19:50]SAM_PROTO_SignData [23:19:50]wFMCommunicate request_size=4 [23:19:50]MH_SAM_APDU [23:19:50]CAPDU: 80 0D 01 02 [23:19:50]Write to MH i2c: E2 08 00 57 34 80 0D 01 02 00 00 00 00 04 [23:19:50]Write i2c OK [23:19:50]MH_I2C_Read... [23:19:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:50]Read from MH i2c: E2 [23:19:50]MH_I2C_Read... [23:19:50]Read from MH i2c: E2 03 00 [23:19:50]MH_I2C_Read... [23:19:50]Read from MH i2c: E2 03 00 57 34 00 90 00 FF [23:19:50]RAPDU: 90 00 [23:19:50]wFMCommunicate OK [23:19:50]wFMCommunicate request_size=255 [23:19:50]MH_SAM_APDU [23:19:50]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 35 30 32 34 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 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 8A 00 00 00 F4 03 04 00 1C 00 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 [23:19:50]Write to MH i2c: E2 02 01 58 34 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 35 30 32 34 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 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 8A 00 00 00 F4 03 04 00 1C 00 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 00 00 5E [23:19:50]Write i2c OK [23:19:50]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 58 34 00 90 00 00 [23:19:51]RAPDU: 90 00 [23:19:51]wFMCommunicate OK [23:19:51]wFMCommunicate request_size=44 [23:19:51]MH_SAM_APDU [23:19:51]CAPDU: 80 0D 02 02 27 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4B 7C 00 00 35 04 06 00 C7 EC 74 70 F0 93 [23:19:51]Write to MH i2c: E2 2F 00 59 34 80 0D 02 02 27 00 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4B 7C 00 00 35 04 06 00 C7 EC 74 70 F0 93 00 00 0F [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 03 00 59 34 00 90 00 01 [23:19:51]RAPDU: 90 00 [23:19:51]wFMCommunicate OK [23:19:51]wFMCommunicate request_size=4 [23:19:51]MH_SAM_APDU [23:19:51]CAPDU: 80 0D 03 02 [23:19:51]Write to MH i2c: E2 08 00 5A 34 80 0D 03 02 00 00 00 00 09 [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 0B 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 0B 00 5A 34 00 FC 63 F8 37 99 A2 7D 3E 90 00 8E [23:19:51]RAPDU: FC 63 F8 37 99 A2 7D 3E 90 00 [23:19:51]wFMCommunicate OK [23:19:51]SAM_PROTO_SignData done [23:19:51]FM_MakeSignedData done [23:19:51]CreateOFDProtocolMessage [23:19:51]wFMCommunicate request_size=4 [23:19:51]MH_SAM_APDU [23:19:51]CAPDU: 80 11 00 00 [23:19:51]Write to MH i2c: E2 08 00 5B 34 80 11 00 00 00 00 00 00 09 [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:51]Read from MH i2c: E2 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 17 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: E2 17 00 5B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 64 [23:19:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:19:51]wFMCommunicate OK [23:19:51]CreateOFDProtocolMessage done [23:19:51]OFDSenderStorePacket 31819 [23:19:51]StoreOFDPacket docnum=31819 [23:19:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 31 01 00 00 56 FF 29 01 87 43 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 35 30 32 34 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 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 8A 00 00 00 F4 03 04 00 1C 00 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4B 7C 00 00 35 04 06 00 C7 EC 74 70 F0 93 FC 63 F8 37 99 A2 7D 3E [23:19:51]CheckFolder [23:19:51]dirname=/storage/ofd_packets [23:19:51]CheckFolder done [23:19:51]ProducePacketName [23:19:51]name=ofd_packets/00031819 [23:19:51]NVStorageSaveData ofd_packets/00031819 [23:19:51]File name is /storage/ofd_packets/00031819 [23:19:51]Write 335 bytes [23:19:51]NVStorageSaveData done [23:19:51]OFDSenderStorePacket done [23:19:51]KKMCreateOFDPacket done [23:19:51]NVStorageSaveData kkm_last_timestamp [23:19:51]File name is /storage/kkm_last_timestamp [23:19:51]Write 4 bytes [23:19:51]NVStorageSaveData done [23:19:51]ExternCall_PrintAddStr [23:19:51]wPrintStart [23:19:51]Write to MH i2c: 01 00 00 5C 34 90 [23:19:51]Write i2c OK [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: 01 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: 01 07 00 [23:19:51]MH_I2C_Read... [23:19:51]Read from MH i2c: 01 07 00 5C 34 00 00 00 00 00 FF 0F A5 [23:19:51]RasterBufferAndPrint [23:19:51]line Счет N : (3)214401 [23:19:51]line ИНН: 02508201610067 [23:19:51]line Контрольно-Кассовый Чек [23:19:51]line ПРОДАЖА [23:19:51]line Товар: 48745024 [23:19:51]line Сигареты Winston Superslims Expand Purpl [23:19:51]line 1.000 * 140.00 [23:19:51]line = 140.00 [23:19:51]line НДС 12% НСП 1% [23:19:51]line > о реализуемом товаре [23:19:51]line ИТОГО: 140.00 [23:19:51]line НСП 1% : 1.24 [23:19:51]line НДС 12% : 14.87 [23:19:51]line Наличными: 140.00 [23:19:51]line Безнал.: 0.00 [23:19:51]line Место: АЗС № 140 "Партнер Нефть" [23:19:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:19:51]line СНО: Общий режим [23:19:51]line Чек 138 16.07.2024 23:19 [23:19:51]line Смена: 371 ФФД: 1.0 [23:19:51]line ЗНМ: 0300000189 [23:19:51]line РНМ: 0000000000098025 [23:19:51]line Версия ККМ: 001 [23:19:51]line ФМ: 0000000000965389 [23:19:51]line ФД: 31819 [23:19:51]line ФПД: 219818379767955 [23:19:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T231956&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31819&fm=219818379767955&tin=02508201610067®Number=0000000000098025&sum=14000 [23:19:51]line 0 [23:19:51]OFD Sender: Processing packet 31819 [packets to send 6, broken 5] [23:19:51]ProducePacketName [23:19:51]name=ofd_packets/00031819 [23:19:51]OFD Sender: To server: pG, [23:19:51]CommunicateWithHost lk.salyk.kg:30040 [23:19:51]ConnectInit lk.salyk.kg [23:19:51]written 0, free lines is 4095 [23:19:51]Connected sock=10 [23:19:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 31 01 00 00 56 FF 29 01 87 43 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 35 30 32 34 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 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 50 75 72 70 6C 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 8A 00 00 00 F4 03 04 00 1C 00 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4B 7C 00 00 35 04 06 00 C7 EC 74 70 F0 93 FC 63 F8 37 99 A2 7D 3E [23:19:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 ED 9D 47 00 83 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4B 7C 00 00 F4 03 04 00 28 AC 96 66 B6 04 01 00 00 A6 C0 61 83 91 CD E2 0A [23:19:51]CommunicateWithHost err = 0 [23:19:51]CheckOFDResponse [23:19:51]1017 (14) - 77093643461234 [23:19:51]1041 (16) - 0000000000965389 [23:19:51]1040 (4) - 31819 [23:19:51]1012 (4) - 16.07.2024 17:21 [23:19:51]1206 (1) - 0 [23:19:51]OFD Sender: Remove packet 31819 [23:19:51]ProducePacketName [23:19:51]name=ofd_packets/00031819 [23:19:51]NVStorageDeleteData [23:19:52]Write to MH i2c: 01 00 00 85 34 B9 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 07 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: 01 07 00 85 34 00 00 00 00 00 F4 0C C0 [23:19:52]RasterBufferAndPrint [23:19:52]line [23:19:52]line [23:19:52]line [23:19:52]line [23:19:52]line [23:19:52]written 0, free lines is 3323 [23:19:52]MH_Cut [23:19:52]Write to MH i2c: D1 01 00 8C 34 01 92 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: D1 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: D1 01 00 [23:19:52]MH_I2C_Read... [23:19:52]Read from MH i2c: D1 01 00 8C 34 00 91 [23:19:52]Write to MH i2c: 01 00 00 8D 34 C1 [23:19:52]Write i2c OK [23:19:52]MH_I2C_Read... [23:19:52]OFD Sender: No OFD packet to send [23:19:52]*** Cut start [23:19:52]*** Partial cut [23:19:52]*** CUTSNS_PIN = 1 [23:19:52]*** CUTSNS_PIN = 0 [23:19:53]*** Brake cut motor [23:19:53]Read from MH i2c: 01 [23:19:53]MH_I2C_Read... [23:19:53]*** Stop cut motor [23:19:53]*** Cut end [23:19:53]Read from MH i2c: 01 07 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: 01 07 00 8D 34 00 00 00 00 00 FF 0F D6 [23:19:53]process_action close_receipt done [23:19:53]requested_data is exist [23:19:53]produce_requested_data [23:19:53]requested_item fm.sn is exist - process it [23:19:53]wFMCommunicate request_size=4 [23:19:53]MH_SAM_APDU [23:19:53]CAPDU: 80 11 00 00 [23:19:53]Write to MH i2c: E2 08 00 8E 34 80 11 00 00 00 00 00 00 3C [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:53]Read from MH i2c: E2 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 17 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 17 00 8E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 97 [23:19:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:19:53]wFMCommunicate OK [23:19:53]requested_item fd.num is exist - process it [23:19:53]SAM_PROTO_GetFieldsCounters [23:19:53]wFMCommunicate request_size=4 [23:19:53]MH_SAM_APDU [23:19:53]CAPDU: 80 13 00 00 [23:19:53]Write to MH i2c: E2 08 00 8F 34 80 13 00 00 00 00 00 00 3F [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:53]Read from MH i2c: E2 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 62 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 62 00 8F 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4B 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [23:19:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4B 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:19:53]wFMCommunicate OK [23:19:53]SAM_PROTO_GetFieldsCounters done [23:19:53]requested_item shift.num is exist - process it [23:19:53]requested_item shift.opened is exist - process it [23:19:53]req_shift_opened [23:19:53]FM_GetShiftState [23:19:53]SAM_PROTO_GetShiftState [23:19:53]wFMCommunicate request_size=4 [23:19:53]MH_SAM_APDU [23:19:53]CAPDU: 80 13 01 00 [23:19:53]Write to MH i2c: E2 08 00 90 34 80 13 01 00 00 00 00 00 41 [23:19:53]Write i2c OK [23:19:53]MH_I2C_Read... [23:19:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:53]Read from MH i2c: E2 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 0E 00 [23:19:53]MH_I2C_Read... [23:19:53]Read from MH i2c: E2 0E 00 90 34 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 90 [23:19:53]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:19:53]wFMCommunicate OK [23:19:53]SAM_PROTO_GetShiftState done [23:19:53]FM_GetShiftState done [23:19:53]req_shift_opened done [23:19:53]requested_item shift.open_date is exist - process it [23:19:53]req_shift_open_date [23:19:53]req_shift_open_date done [23:19:53]produce_requested_data done [23:19:53]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31819,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [23:19:53]process_action_free close_receipt [23:19:53]json_value_free [23:19:53]json_value_free done [23:19:53]process_json_proto returns [23:19:53]Send response to host [23:19:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31819,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [23:19:53]free response buf [23:19:53]execute_script done [23:19:53]execute_script returns [23:19:53]free content buf [23:19:53]Sock 9.Close socket [23:19:53]Sock 9.Thread stoped [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:17]OFD Sender: No OFD packet to send [23:22:22]OFD Sender: No OFD packet to send [23:22:27]OFD Sender: No OFD packet to send [23:22:32]OFD Sender: No OFD packet to send [23:22:37]OFD Sender: No OFD packet to send [23:22:42]OFD Sender: No OFD packet to send [23:22:47]OFD Sender: No OFD packet to send [23:22:52]OFD Sender: No OFD packet to send [23:22:57]OFD Sender: No OFD packet to send [23:23:02]OFD Sender: No OFD packet to send [23:23:07]OFD Sender: No OFD packet to send [23:23:12]OFD Sender: No OFD packet to send [23:23:17]OFD Sender: No OFD packet to send [23:23:22]OFD Sender: No OFD packet to send [23:23:27]OFD Sender: No OFD packet to send [23:23:32]OFD Sender: No OFD packet to send [23:23:37]OFD Sender: No OFD packet to send [23:23:42]OFD Sender: No OFD packet to send [23:23:47]OFD Sender: No OFD packet to send [23:23:52]OFD Sender: No OFD packet to send [23:23:57]OFD Sender: No OFD packet to send [23:24:02]OFD Sender: No OFD packet to send [23:24:07]OFD Sender: No OFD packet to send [23:24:12]OFD Sender: No OFD packet to send [23:24:17]OFD Sender: No OFD packet to send [23:24:22]OFD Sender: No OFD packet to send [23:24:27]OFD Sender: No OFD packet to send [23:24:32]OFD Sender: No OFD packet to send [23:24:37]OFD Sender: No OFD packet to send [23:24:42]OFD Sender: No OFD packet to send [23:24:47]OFD Sender: No OFD packet to send [23:24:52]OFD Sender: No OFD packet to send [23:24:57]OFD Sender: No OFD packet to send [23:25:02]OFD Sender: No OFD packet to send [23:25:07]OFD Sender: No OFD packet to send [23:25:12]OFD Sender: No OFD packet to send [23:25:17]OFD Sender: No OFD packet to send [23:25:22]OFD Sender: No OFD packet to send [23:25:27]OFD Sender: No OFD packet to send [23:25:32]OFD Sender: No OFD packet to send [23:25:37]OFD Sender: No OFD packet to send [23:25:42]OFD Sender: No OFD packet to send [23:25:47]OFD Sender: No OFD packet to send [23:25:52]OFD Sender: No OFD packet to send [23:25:57]OFD Sender: No OFD packet to send [23:26:02]OFD Sender: No OFD packet to send [23:26:07]OFD Sender: No OFD packet to send [23:26:12]OFD Sender: No OFD packet to send [23:26:17]OFD Sender: No OFD packet to send [23:26:22]OFD Sender: No OFD packet to send [23:26:27]OFD Sender: No OFD packet to send [23:26:32]OFD Sender: No OFD packet to send [23:26:37]OFD Sender: No OFD packet to send [23:26:42]OFD Sender: No OFD packet to send [23:26:47]OFD Sender: No OFD packet to send [23:26:52]OFD Sender: No OFD packet to send [23:26:57]OFD Sender: No OFD packet to send [23:27:02]OFD Sender: No OFD packet to send [23:27:07]OFD Sender: No OFD packet to send [23:27:12]OFD Sender: No OFD packet to send [23:27:17]OFD Sender: No OFD packet to send [23:27:22]OFD Sender: No OFD packet to send [23:27:27]OFD Sender: No OFD packet to send [23:27:32]OFD Sender: No OFD packet to send [23:27:37]OFD Sender: No OFD packet to send [23:27:42]OFD Sender: No OFD packet to send [23:27:47]accept exits with 7 [23:27:47]New connection [23:27:47]New thread 3066821988 created [23:27:47]Thread 3066965348 joined [23:27:47]Waiting for new connection... [23:27:47] Sock 7.Parse request [23:27:47]Sock 7.Check first char [23:27:47]Sock 7.First char is OK [23:27:47]request: POST /json_proto HTTP/1.0 [23:27:47]Method: POST [23:27:47]URL: /json_proto [23:27:47]Method is POST - this is cgi request [23:27:47]url: /json_proto [23:27:47]query_string will be loaded in cgi processing [23:27:47]execute_cgi json_proto POST (null) [23:27:47]execute_cgi path=json_proto method=POST [23:27:47]POST find Content-Length [23:27:47]Host: 172.17.39.68:8080 [23:27:47]Content-Length: 644 [23:27:47]Content-Type: application/json [23:27:47] [23:27:47]POST finish read [23:27:47]Found Content-Length = 644 [23:27:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214402", "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" ] } } [23:27:47]execute_script... [23:27: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)214402", "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" ] } } [23:27:47]POST & json_proto [23:27:47]process_json_proto [23:27:47]json parsed OK: [23:27:47]protocol is kg_v1.0 [23:27:47]action value=close_receipt [23:27:47]process_action close_receipt [23:27:47]cmd_close_receipt [23:27:47]MH_GetDate [23:27:47]Write to MH i2c: F0 00 00 91 34 B4 [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: F0 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: F0 09 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: F0 09 00 91 34 00 FA 01 97 66 D6 48 95 66 CE [23:27:47]GetLastDocTimeStamp 1721171996 [23:27:47]current date 1721172474 [23:27:47]FM_GetShiftState [23:27:47]SAM_PROTO_GetShiftState [23:27:47]wFMCommunicate request_size=4 [23:27:47]MH_SAM_APDU [23:27:47]CAPDU: 80 13 01 00 [23:27:47]Write to MH i2c: E2 08 00 92 34 80 13 01 00 00 00 00 00 43 [23:27:47]Write i2c OK [23:27:47]MH_I2C_Read... [23:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:47]Read from MH i2c: E2 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 0E 00 [23:27:47]MH_I2C_Read... [23:27:47]Read from MH i2c: E2 0E 00 92 34 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 92 [23:27:47]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:27:47]wFMCommunicate OK [23:27:47]SAM_PROTO_GetShiftState done [23:27:47]FM_GetShiftState done [23:27:47]opened in 1721088399 [23:27:47]opened+sec_in_day 1721174799 [23:27:47]quantity*price = 23000 [23:27:47]sum+1 = 23001 [23:27:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 139 16.07.2024 23:27 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31820 ФПД: 93228903433576 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T232754&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31820&fm=93228903433576&tin=02508201610067®Number=0000000000098025&sum=23000 0 [23:27:48]StoreToDocumentArchive [23:27:48]shift 371 fd 31820 [23:27:48]save to /storage/0371/doc_00031820 [23:27:48]save last doc name /storage/0371/doc_00031820 to /storage/kkm_last_doc_name [23:27:48]save OK [23:27:48]Clear old archive folders... [23:27:48]ProcessDocumentItem done err = 0, tmpTLVsize=280 [23:27:48]tlvbuf is 015E4160 [23:27:48]SAM_PROTO_ClearQueue [23:27:48]wFMCommunicate request_size=4 [23:27:48]MH_SAM_APDU [23:27:48]CAPDU: 80 09 00 00 [23:27:48]Write to MH i2c: E2 08 00 9F 34 80 09 00 00 00 00 00 00 45 [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:27:48]Read from MH i2c: E2 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 03 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 03 00 9F 34 00 90 00 47 [23:27:48]RAPDU: 90 00 [23:27:48]wFMCommunicate OK [23:27:48]SAM_PROTO_ClearQueue done [23:27:48]KKMCreateOFDPacket [23:27:48]OFDProtocolAddRootSTLVToBuf [23:27:48]FM_MakeSignedData [23:27:48]FM_MakeSignedData [23:27:48]SAM_PROTO_SignData [23:27:48]wFMCommunicate request_size=4 [23:27:48]MH_SAM_APDU [23:27:48]CAPDU: 80 0D 01 02 [23:27:48]Write to MH i2c: E2 08 00 A0 34 80 0D 01 02 00 00 00 00 4D [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:27:48]Read from MH i2c: E2 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 03 00 [23:27:48]MH_I2C_Read... [23:27:48]Read from MH i2c: E2 03 00 A0 34 00 90 00 48 [23:27:48]RAPDU: 90 00 [23:27:48]wFMCommunicate OK [23:27:48]wFMCommunicate request_size=255 [23:27:48]MH_SAM_APDU [23:27:48]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 8B 00 00 00 F4 03 04 00 FA 01 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 [23:27:48]Write to MH i2c: E2 02 01 A1 34 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 8B 00 00 00 F4 03 04 00 FA 01 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 00 00 E9 [23:27:48]Write i2c OK [23:27:48]MH_I2C_Read... [23:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 A1 34 00 90 00 49 [23:27:49]RAPDU: 90 00 [23:27:49]wFMCommunicate OK [23:27:49]wFMCommunicate request_size=39 [23:27:49]MH_SAM_APDU [23:27:49]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4C 7C 00 00 35 04 06 00 54 CA 8B AC 05 68 [23:27:49]Write to MH i2c: E2 2A 00 A2 34 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4C 7C 00 00 35 04 06 00 54 CA 8B AC 05 68 00 00 9D [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 03 00 A2 34 00 90 00 4A [23:27:49]RAPDU: 90 00 [23:27:49]wFMCommunicate OK [23:27:49]wFMCommunicate request_size=4 [23:27:49]MH_SAM_APDU [23:27:49]CAPDU: 80 0D 03 02 [23:27:49]Write to MH i2c: E2 08 00 A3 34 80 0D 03 02 00 00 00 00 52 [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 0B 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 0B 00 A3 34 00 08 8C 9E D3 C1 D6 0F 2F 90 00 2D [23:27:49]RAPDU: 08 8C 9E D3 C1 D6 0F 2F 90 00 [23:27:49]wFMCommunicate OK [23:27:49]SAM_PROTO_SignData done [23:27:49]FM_MakeSignedData done [23:27:49]CreateOFDProtocolMessage [23:27:49]wFMCommunicate request_size=4 [23:27:49]MH_SAM_APDU [23:27:49]CAPDU: 80 11 00 00 [23:27:49]Write to MH i2c: E2 08 00 A4 34 80 11 00 00 00 00 00 00 52 [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:49]Read from MH i2c: E2 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 17 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: E2 17 00 A4 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 AD [23:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:27:49]wFMCommunicate OK [23:27:49]CreateOFDProtocolMessage done [23:27:49]OFDSenderStorePacket 31820 [23:27:49]StoreOFDPacket docnum=31820 [23:27:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 28 71 24 01 29 9D 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 8B 00 00 00 F4 03 04 00 FA 01 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4C 7C 00 00 35 04 06 00 54 CA 8B AC 05 68 08 8C 9E D3 C1 D6 0F 2F [23:27:49]CheckFolder [23:27:49]dirname=/storage/ofd_packets [23:27:49]CheckFolder done [23:27:49]ProducePacketName [23:27:49]name=ofd_packets/00031820 [23:27:49]NVStorageSaveData ofd_packets/00031820 [23:27:49]File name is /storage/ofd_packets/00031820 [23:27:49]Write 330 bytes [23:27:49]NVStorageSaveData done [23:27:49]OFDSenderStorePacket done [23:27:49]KKMCreateOFDPacket done [23:27:49]NVStorageSaveData kkm_last_timestamp [23:27:49]File name is /storage/kkm_last_timestamp [23:27:49]Write 4 bytes [23:27:49]NVStorageSaveData done [23:27:49]ExternCall_PrintAddStr [23:27:49]wPrintStart [23:27:49]Write to MH i2c: 01 00 00 A5 34 D9 [23:27:49]Write i2c OK [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: 01 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: 01 07 00 [23:27:49]MH_I2C_Read... [23:27:49]Read from MH i2c: 01 07 00 A5 34 00 00 00 00 00 FF 0F EE [23:27:49]RasterBufferAndPrint [23:27:49]line Счет N : (3)214402 [23:27:49]line ИНН: 02508201610067 [23:27:49]line Контрольно-Кассовый Чек [23:27:49]line ПРОДАЖА [23:27:49]line Товар: 2000036210013 [23:27:49]line Кофе Капучино (GABB TRADE) [23:27:49]line 2.000 * 115.00 [23:27:49]line = 230.00 [23:27:49]line НДС 12% НСП 1% [23:27:49]line > о реализуемом товаре [23:27:49]line ИТОГО: 230.00 [23:27:49]line НСП 1% : 2.03 [23:27:49]line НДС 12% : 24.42 [23:27:49]line Наличными: 230.00 [23:27:49]line Безнал.: 0.00 [23:27:49]line Место: АЗС № 140 "Партнер Нефть" [23:27:49]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:27:49]line СНО: Общий режим [23:27:49]line Чек 139 16.07.2024 23:27 [23:27:49]line Смена: 371 ФФД: 1.0 [23:27:49]line ЗНМ: 0300000189 [23:27:49]line РНМ: 0000000000098025 [23:27:49]line Версия ККМ: 001 [23:27:49]line ФМ: 0000000000965389 [23:27:49]line ФД: 31820 [23:27:49]line ФПД: 93228903433576 [23:27:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T232754&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31820&fm=93228903433576&tin=02508201610067®Number=0000000000098025&sum=23000 [23:27:49]OFD Sender: Processing packet 31820 [packets to send 6, broken 5] [23:27:49]ProducePacketName [23:27:49]name=ofd_packets/00031820 [23:27:49]OFD Sender: To server: pG, [23:27:49]CommunicateWithHost lk.salyk.kg:30040 [23:27:49]ConnectInit lk.salyk.kg [23:27:49]line 0 [23:27:49]written 0, free lines is 4095 [23:27:49]Connected sock=9 [23:27:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2C 01 00 00 28 71 24 01 29 9D 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 8B 00 00 00 F4 03 04 00 FA 01 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4C 7C 00 00 35 04 06 00 54 CA 8B AC 05 68 08 8C 9E D3 C1 D6 0F 2F [23:27:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 02 4E 47 00 27 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 35 33 38 39 10 04 04 00 4C 7C 00 00 F4 03 04 00 06 AE 96 66 B6 04 01 00 00 F3 83 79 64 25 E3 8E 3D [23:27:49]CommunicateWithHost err = 0 [23:27:49]CheckOFDResponse [23:27:49]1017 (14) - 77093643461234 [23:27:49]1041 (16) - 0000000000965389 [23:27:49]1040 (4) - 31820 [23:27:49]1012 (4) - 16.07.2024 17:29 [23:27:49]1206 (1) - 0 [23:27:49]OFD Sender: Remove packet 31820 [23:27:49]ProducePacketName [23:27:49]name=ofd_packets/00031820 [23:27:49]NVStorageDeleteData [23:27:50]Write to MH i2c: 01 00 00 CD 34 01 [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: 01 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: 01 07 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: 01 07 00 CD 34 00 00 00 00 00 2A 0D 3F [23:27:50]RasterBufferAndPrint [23:27:50]line [23:27:50]line [23:27:50]line [23:27:50]line [23:27:50]line [23:27:50]written 0, free lines is 3378 [23:27:50]MH_Cut [23:27:50]Write to MH i2c: D1 01 00 D4 34 01 DA [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: D1 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: D1 01 00 [23:27:50]MH_I2C_Read... [23:27:50]Read from MH i2c: D1 01 00 D4 34 00 D9 [23:27:50]Write to MH i2c: 01 00 00 D5 34 09 [23:27:50]Write i2c OK [23:27:50]MH_I2C_Read... [23:27:50]OFD Sender: No OFD packet to send [23:27:50]*** Cut start [23:27:50]*** Partial cut [23:27:50]*** CUTSNS_PIN = 1 [23:27:50]*** CUTSNS_PIN = 0 [23:27:51]*** Brake cut motor [23:27:51]Read from MH i2c: 01 [23:27:51]MH_I2C_Read... [23:27:51]*** Stop cut motor [23:27:51]*** Cut end [23:27:51]Read from MH i2c: 01 07 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: 01 07 00 D5 34 00 00 00 00 00 FF 0F 1E [23:27:51]process_action close_receipt done [23:27:51]requested_data is exist [23:27:51]produce_requested_data [23:27:51]requested_item fm.sn is exist - process it [23:27:51]wFMCommunicate request_size=4 [23:27:51]MH_SAM_APDU [23:27:51]CAPDU: 80 11 00 00 [23:27:51]Write to MH i2c: E2 08 00 D6 34 80 11 00 00 00 00 00 00 84 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:27:51]Read from MH i2c: E2 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 17 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 17 00 D6 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 DF [23:27:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:27:51]wFMCommunicate OK [23:27:51]requested_item fd.num is exist - process it [23:27:51]SAM_PROTO_GetFieldsCounters [23:27:51]wFMCommunicate request_size=4 [23:27:51]MH_SAM_APDU [23:27:51]CAPDU: 80 13 00 00 [23:27:51]Write to MH i2c: E2 08 00 D7 34 80 13 00 00 00 00 00 00 87 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:27:51]Read from MH i2c: E2 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 62 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 62 00 D7 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4C 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [23:27:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4C 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:27:51]wFMCommunicate OK [23:27:51]SAM_PROTO_GetFieldsCounters done [23:27:51]requested_item shift.num is exist - process it [23:27:51]requested_item shift.opened is exist - process it [23:27:51]req_shift_opened [23:27:51]FM_GetShiftState [23:27:51]SAM_PROTO_GetShiftState [23:27:51]wFMCommunicate request_size=4 [23:27:51]MH_SAM_APDU [23:27:51]CAPDU: 80 13 01 00 [23:27:51]Write to MH i2c: E2 08 00 D8 34 80 13 01 00 00 00 00 00 89 [23:27:51]Write i2c OK [23:27:51]MH_I2C_Read... [23:27:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:27:51]Read from MH i2c: E2 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 0E 00 [23:27:51]MH_I2C_Read... [23:27:51]Read from MH i2c: E2 0E 00 D8 34 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 D8 [23:27:51]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:27:51]wFMCommunicate OK [23:27:51]SAM_PROTO_GetShiftState done [23:27:51]FM_GetShiftState done [23:27:51]req_shift_opened done [23:27:51]requested_item shift.open_date is exist - process it [23:27:51]req_shift_open_date [23:27:51]req_shift_open_date done [23:27:51]produce_requested_data done [23:27:51]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31820,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [23:27:51]process_action_free close_receipt [23:27:51]json_value_free [23:27:51]json_value_free done [23:27:51]process_json_proto returns [23:27:51]Send response to host [23:27:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31820,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [23:27:51]free response buf [23:27:51]execute_script done [23:27:51]execute_script returns [23:27:51]free content buf [23:27:51]Sock 7.Close socket [23:27:51]Sock 7.Thread stoped [23:27:55]OFD Sender: No OFD packet to send [23:28:00]OFD Sender: No OFD packet to send [23:28:05]OFD Sender: No OFD packet to send [23:28:10]OFD Sender: No OFD packet to send [23:28:15]OFD Sender: No OFD packet to send [23:28:20]OFD Sender: No OFD packet to send [23:28:25]OFD Sender: No OFD packet to send [23:28:30]OFD Sender: No OFD packet to send [23:28:35]OFD Sender: No OFD packet to send [23:28:40]OFD Sender: No OFD packet to send [23:28:45]OFD Sender: No OFD packet to send [23:28:50]OFD Sender: No OFD packet to send [23:28:55]OFD Sender: No OFD packet to send [23:29:00]OFD Sender: No OFD packet to send [23:29:05]OFD Sender: No OFD packet to send [23:29:10]OFD Sender: No OFD packet to send [23:29:15]OFD Sender: No OFD packet to send [23:29:20]OFD Sender: No OFD packet to send [23:29:25]OFD Sender: No OFD packet to send [23:29:30]OFD Sender: No OFD packet to send [23:29:35]OFD Sender: No OFD packet to send [23:29:40]OFD Sender: No OFD packet to send [23:29:45]OFD Sender: No OFD packet to send [23:29:50]OFD Sender: No OFD packet to send [23:29:55]OFD Sender: No OFD packet to send [23:30:00]OFD Sender: No OFD packet to send [23:30:05]OFD Sender: No OFD packet to send [23:30:10]OFD Sender: No OFD packet to send [23:30:15]OFD Sender: No OFD packet to send [23:30:20]OFD Sender: No OFD packet to send [23:30:25]OFD Sender: No OFD packet to send [23:30:30]OFD Sender: No OFD packet to send [23:30:35]OFD Sender: No OFD packet to send [23:30:40]OFD Sender: No OFD packet to send [23:30:45]OFD Sender: No OFD packet to send [23:30:50]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:45]OFD Sender: No OFD packet to send [23:34:50]OFD Sender: No OFD packet to send [23:34:55]OFD Sender: No OFD packet to send [23:35:00]OFD Sender: No OFD packet to send [23:35:05]OFD Sender: No OFD packet to send [23:35:10]OFD Sender: No OFD packet to send [23:35:15]OFD Sender: No OFD packet to send [23:35:20]OFD Sender: No OFD packet to send [23:35:25]OFD Sender: No OFD packet to send [23:35:30]OFD Sender: No OFD packet to send [23:35:35]OFD Sender: No OFD packet to send [23:35:40]OFD Sender: No OFD packet to send [23:35:45]OFD Sender: No OFD packet to send [23:35:50]OFD Sender: No OFD packet to send [23:35:55]OFD Sender: No OFD packet to send [23:36:00]OFD Sender: No OFD packet to send [23:36:05]OFD Sender: No OFD packet to send [23:36:10]OFD Sender: No OFD packet to send [23:36:15]OFD Sender: No OFD packet to send [23:36:20]OFD Sender: No OFD packet to send [23:36:25]OFD Sender: No OFD packet to send [23:36:30]OFD Sender: No OFD packet to send [23:36:35]OFD Sender: No OFD packet to send [23:36:40]OFD Sender: No OFD packet to send [23:36:45]OFD Sender: No OFD packet to send [23:36:50]OFD Sender: No OFD packet to send [23:36:55]OFD Sender: No OFD packet to send [23:37:00]OFD Sender: No OFD packet to send [23:37:05]OFD Sender: No OFD packet to send [23:37:10]OFD Sender: No OFD packet to send [23:37:15]OFD Sender: No OFD packet to send [23:37:20]OFD Sender: No OFD packet to send [23:37:25]OFD Sender: No OFD packet to send [23:37:30]OFD Sender: No OFD packet to send [23:37:35]OFD Sender: No OFD packet to send [23:37:40]OFD Sender: No OFD packet to send [23:37:45]OFD Sender: No OFD packet to send [23:37:50]OFD Sender: No OFD packet to send [23:37:55]OFD Sender: No OFD packet to send [23:38:00]OFD Sender: No OFD packet to send [23:38:05]OFD Sender: No OFD packet to send [23:38:10]OFD Sender: No OFD packet to send [23:38:15]OFD Sender: No OFD packet to send [23:38:20]OFD Sender: No OFD packet to send [23:38:25]OFD Sender: No OFD packet to send [23:38:30]OFD Sender: No OFD packet to send [23:38:35]OFD Sender: No OFD packet to send [23:38:40]OFD Sender: No OFD packet to send [23:38:45]OFD Sender: No OFD packet to send [23:38:50]OFD Sender: No OFD packet to send [23:38:55]OFD Sender: No OFD packet to send [23:39:00]OFD Sender: No OFD packet to send [23:39:05]OFD Sender: No OFD packet to send [23:39:10]OFD Sender: No OFD packet to send [23:39:16]OFD Sender: No OFD packet to send [23:39:21]OFD Sender: No OFD packet to send [23:39:26]OFD Sender: No OFD packet to send [23:39:31]OFD Sender: No OFD packet to send [23:39:36]OFD Sender: No OFD packet to send [23:39:41]OFD Sender: No OFD packet to send [23:39:46]OFD Sender: No OFD packet to send [23:39:51]OFD Sender: No OFD packet to send [23:39:56]OFD Sender: No OFD packet to send [23:40:01]OFD Sender: No OFD packet to send [23:40:06]OFD Sender: No OFD packet to send [23:40:11]OFD Sender: No OFD packet to send [23:40:16]OFD Sender: No OFD packet to send [23:40:21]OFD Sender: No OFD packet to send [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:17]accept exits with 10 [23:45:17]New connection [23:45:17]New thread 3066965348 created [23:45:17]Thread 3066821988 joined [23:45:17]Waiting for new connection... [23:45:17] Sock 10.Parse request [23:45:17]Sock 10.Check first char [23:45:17]Sock 10.First char is OK [23:45:17]request: POST /json_proto HTTP/1.0 [23:45:17]Method: POST [23:45:17]URL: /json_proto [23:45:17]Method is POST - this is cgi request [23:45:17]url: /json_proto [23:45:17]query_string will be loaded in cgi processing [23:45:17]execute_cgi json_proto POST (null) [23:45:17]execute_cgi path=json_proto method=POST [23:45:17]POST find Content-Length [23:45:17]Host: 172.17.39.68:8080 [23:45:17]Content-Length: 639 [23:45:17]Content-Type: application/json [23:45:17] [23:45:17]POST finish read [23:45:17]Found Content-Length = 639 [23:45:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214403", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\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" ] } } [23:45:17]execute_script... [23:45: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)214403", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\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" ] } } [23:45:17]POST & json_proto [23:45:17]process_json_proto [23:45:17]json parsed OK: [23:45:17]protocol is kg_v1.0 [23:45:17]action value=close_receipt [23:45:17]process_action close_receipt [23:45:17]cmd_close_receipt [23:45:17]MH_GetDate [23:45:17]Write to MH i2c: F0 00 00 D9 34 FC [23:45:17]Write i2c OK [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: F0 [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: F0 09 00 [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: F0 09 00 D9 34 00 14 06 97 66 D6 48 95 66 35 [23:45:17]GetLastDocTimeStamp 1721172474 [23:45:17]current date 1721173524 [23:45:17]FM_GetShiftState [23:45:17]SAM_PROTO_GetShiftState [23:45:17]wFMCommunicate request_size=4 [23:45:17]MH_SAM_APDU [23:45:17]CAPDU: 80 13 01 00 [23:45:17]Write to MH i2c: E2 08 00 DA 34 80 13 01 00 00 00 00 00 8B [23:45:17]Write i2c OK [23:45:17]MH_I2C_Read... [23:45:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:17]Read from MH i2c: E2 [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: E2 0E 00 [23:45:17]MH_I2C_Read... [23:45:17]Read from MH i2c: E2 0E 00 DA 34 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 DA [23:45:17]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:45:17]wFMCommunicate OK [23:45:17]SAM_PROTO_GetShiftState done [23:45:17]FM_GetShiftState done [23:45:17]opened in 1721088399 [23:45:17]opened+sec_in_day 1721174799 [23:45:17]quantity*price = 12500 [23:45:17]sum+1 = 12501 [23:45:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 140 16.07.2024 23:45 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31821 ФПД: 130655106813348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T234524&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31821&fm=130655106813348&tin=02508201610067®Number=0000000000098025&sum=12500 0 [23:45:18]StoreToDocumentArchive [23:45:18]shift 371 fd 31821 [23:45:18]save to /storage/0371/doc_00031821 [23:45:18]save last doc name /storage/0371/doc_00031821 to /storage/kkm_last_doc_name [23:45:18]save OK [23:45:18]Clear old archive folders... [23:45:18]ProcessDocumentItem done err = 0, tmpTLVsize=271 [23:45:18]tlvbuf is 014C8150 [23:45:18]SAM_PROTO_ClearQueue [23:45:18]wFMCommunicate request_size=4 [23:45:18]MH_SAM_APDU [23:45:18]CAPDU: 80 09 00 00 [23:45:18]Write to MH i2c: E2 08 00 E7 34 80 09 00 00 00 00 00 00 8D [23:45:18]Write i2c OK [23:45:18]MH_I2C_Read... [23:45:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:45:18]Read from MH i2c: E2 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: E2 03 00 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: E2 03 00 E7 34 00 90 00 8F [23:45:18]RAPDU: 90 00 [23:45:18]wFMCommunicate OK [23:45:18]SAM_PROTO_ClearQueue done [23:45:18]KKMCreateOFDPacket [23:45:18]OFDProtocolAddRootSTLVToBuf [23:45:18]FM_MakeSignedData [23:45:18]FM_MakeSignedData [23:45:18]SAM_PROTO_SignData [23:45:18]wFMCommunicate request_size=4 [23:45:18]MH_SAM_APDU [23:45:18]CAPDU: 80 0D 01 02 [23:45:18]Write to MH i2c: E2 08 00 E8 34 80 0D 01 02 00 00 00 00 95 [23:45:18]Write i2c OK [23:45:18]MH_I2C_Read... [23:45:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:45:18]Read from MH i2c: E2 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: E2 03 00 [23:45:18]MH_I2C_Read... [23:45:18]Read from MH i2c: E2 03 00 E8 34 00 90 00 90 [23:45:18]RAPDU: 90 00 [23:45:18]wFMCommunicate OK [23:45:18]wFMCommunicate request_size=255 [23:45:18]MH_SAM_APDU [23:45:18]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8C 00 00 00 F4 03 04 00 14 06 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [23:45:18]Write to MH i2c: E2 02 01 E9 34 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8C 00 00 00 F4 03 04 00 14 06 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 B0 [23:45:18]Write i2c OK [23:45:18]MH_I2C_Read... [23:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:19]Read from MH i2c: E2 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 03 00 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 03 00 E9 34 00 90 00 91 [23:45:19]RAPDU: 90 00 [23:45:19]wFMCommunicate OK [23:45:19]wFMCommunicate request_size=30 [23:45:19]MH_SAM_APDU [23:45:19]CAPDU: 80 0D 02 02 19 30 39 36 35 33 38 39 10 04 04 00 4D 7C 00 00 35 04 06 00 76 D4 83 3A CD A4 [23:45:19]Write to MH i2c: E2 21 00 EA 34 80 0D 02 02 19 00 30 39 36 35 33 38 39 10 04 04 00 4D 7C 00 00 35 04 06 00 76 D4 83 3A CD A4 00 00 DA [23:45:19]Write i2c OK [23:45:19]MH_I2C_Read... [23:45:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:45:19]Read from MH i2c: E2 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 03 00 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 03 00 EA 34 00 90 00 92 [23:45:19]RAPDU: 90 00 [23:45:19]wFMCommunicate OK [23:45:19]wFMCommunicate request_size=4 [23:45:19]MH_SAM_APDU [23:45:19]CAPDU: 80 0D 03 02 [23:45:19]Write to MH i2c: E2 08 00 EB 34 80 0D 03 02 00 00 00 00 9A [23:45:19]Write i2c OK [23:45:19]MH_I2C_Read... [23:45:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:45:19]Read from MH i2c: E2 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 0B 00 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 0B 00 EB 34 00 E8 64 71 5C 8E BE 86 55 90 00 DB [23:45:19]RAPDU: E8 64 71 5C 8E BE 86 55 90 00 [23:45:19]wFMCommunicate OK [23:45:19]SAM_PROTO_SignData done [23:45:19]FM_MakeSignedData done [23:45:19]CreateOFDProtocolMessage [23:45:19]wFMCommunicate request_size=4 [23:45:19]MH_SAM_APDU [23:45:19]CAPDU: 80 11 00 00 [23:45:19]Write to MH i2c: E2 08 00 EC 34 80 11 00 00 00 00 00 00 9A [23:45:19]Write i2c OK [23:45:19]MH_I2C_Read... [23:45:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:19]Read from MH i2c: E2 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 17 00 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: E2 17 00 EC 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F5 [23:45:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:45:19]wFMCommunicate OK [23:45:19]CreateOFDProtocolMessage done [23:45:19]OFDSenderStorePacket 31821 [23:45:19]StoreOFDPacket docnum=31821 [23:45:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 23 01 00 00 DD 4D 1B 01 56 B9 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8C 00 00 00 F4 03 04 00 14 06 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4D 7C 00 00 35 04 06 00 76 D4 83 3A CD A4 E8 64 71 5C 8E BE 86 55 [23:45:19]CheckFolder [23:45:19]dirname=/storage/ofd_packets [23:45:19]CheckFolder done [23:45:19]ProducePacketName [23:45:19]name=ofd_packets/00031821 [23:45:19]NVStorageSaveData ofd_packets/00031821 [23:45:19]File name is /storage/ofd_packets/00031821 [23:45:19]Write 321 bytes [23:45:19]NVStorageSaveData done [23:45:19]OFDSenderStorePacket done [23:45:19]KKMCreateOFDPacket done [23:45:19]NVStorageSaveData kkm_last_timestamp [23:45:19]File name is /storage/kkm_last_timestamp [23:45:19]Write 4 bytes [23:45:19]NVStorageSaveData done [23:45:19]ExternCall_PrintAddStr [23:45:19]wPrintStart [23:45:19]Write to MH i2c: 01 00 00 ED 34 21 [23:45:19]Write i2c OK [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: 01 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: 01 07 00 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: 01 07 00 ED 34 00 00 00 00 00 FF 0F 36 [23:45:19]RasterBufferAndPrint [23:45:19]line Счет N : (3)214403 [23:45:19]line ИНН: 02508201610067 [23:45:19]line Контрольно-Кассовый Чек [23:45:19]line ПРОДАЖА [23:45:19]line Товар: 5449000006271 [23:45:19]line Напиток Фанта 1л [23:45:19]line 1.000 * 125.00 [23:45:19]line = 125.00 [23:45:19]line НДС 12% НСП 1% [23:45:19]line > о реализуемом товаре [23:45:19]line ИТОГО: 125.00 [23:45:19]line НСП 1% : 1.11 [23:45:19]line НДС 12% : 13.27 [23:45:19]line Наличными: 125.00 [23:45:19]line Безнал.: 0.00 [23:45:19]line Место: АЗС № 140 "Партнер Нефть" [23:45:19]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:45:19]line СНО: Общий режим [23:45:19]line Чек 140 16.07.2024 23:45 [23:45:19]line Смена: 371 ФФД: 1.0 [23:45:19]line ЗНМ: 0300000189 [23:45:19]line РНМ: 0000000000098025 [23:45:19]line Версия ККМ: 001 [23:45:19]line ФМ: 0000000000965389 [23:45:19]line ФД: 31821 [23:45:19]line ФПД: 130655106813348 [23:45:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T234524&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31821&fm=130655106813348&tin=02508201610067®Number=0000000000098025&sum=12500 [23:45:19]OFD Sender: Processing packet 31821 [packets to send 6, broken 5] [23:45:19]ProducePacketName [23:45:19]name=ofd_packets/00031821 [23:45:19]OFD Sender: To server: pG, [23:45:19]CommunicateWithHost lk.salyk.kg:30040 [23:45:19]ConnectInit lk.salyk.kg [23:45:19]line 0 [23:45:19]written 0, free lines is 4095 [23:45:19]Connected sock=9 [23:45:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 23 01 00 00 DD 4D 1B 01 56 B9 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 8C 00 00 00 F4 03 04 00 14 06 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4D 7C 00 00 35 04 06 00 76 D4 83 3A CD A4 E8 64 71 5C 8E BE 86 55 [23:45:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 25 CF 47 00 D6 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 35 33 38 39 10 04 04 00 4D 7C 00 00 F4 03 04 00 20 B2 96 66 B6 04 01 00 00 E5 21 71 AB F3 43 6B 5C [23:45:19]CommunicateWithHost err = 0 [23:45:19]CheckOFDResponse [23:45:19]1017 (14) - 77093643461234 [23:45:19]1041 (16) - 0000000000965389 [23:45:19]1040 (4) - 31821 [23:45:19]1012 (4) - 16.07.2024 17:47 [23:45:19]1206 (1) - 0 [23:45:19]OFD Sender: Remove packet 31821 [23:45:19]ProducePacketName [23:45:19]name=ofd_packets/00031821 [23:45:19]NVStorageDeleteData [23:45:19]Write to MH i2c: 01 00 00 15 35 4A [23:45:19]Write i2c OK [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: 01 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: 01 07 00 [23:45:19]MH_I2C_Read... [23:45:19]Read from MH i2c: 01 07 00 15 35 00 00 00 00 00 0B 0D 69 [23:45:19]RasterBufferAndPrint [23:45:19]line [23:45:19]line [23:45:19]line [23:45:19]line [23:45:19]line [23:45:19]written 0, free lines is 3349 [23:45:20]MH_Cut [23:45:20]Write to MH i2c: D1 01 00 1C 35 01 23 [23:45:20]Write i2c OK [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: D1 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: D1 01 00 [23:45:20]MH_I2C_Read... [23:45:20]Read from MH i2c: D1 01 00 1C 35 00 22 [23:45:20]Write to MH i2c: 01 00 00 1D 35 52 [23:45:20]Write i2c OK [23:45:20]MH_I2C_Read... [23:45:20]OFD Sender: No OFD packet to send [23:45:20]*** Cut start [23:45:20]*** Partial cut [23:45:20]*** CUTSNS_PIN = 1 [23:45:20]*** CUTSNS_PIN = 0 [23:45:21]*** Brake cut motor [23:45:21]Read from MH i2c: 01 [23:45:21]MH_I2C_Read... [23:45:21]*** Stop cut motor [23:45:21]*** Cut end [23:45:21]Read from MH i2c: 01 07 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 07 00 1D 35 00 00 00 00 00 FF 0F 67 [23:45:21]process_action close_receipt done [23:45:21]requested_data is exist [23:45:21]produce_requested_data [23:45:21]requested_item fm.sn is exist - process it [23:45:21]wFMCommunicate request_size=4 [23:45:21]MH_SAM_APDU [23:45:21]CAPDU: 80 11 00 00 [23:45:21]Write to MH i2c: E2 08 00 1E 35 80 11 00 00 00 00 00 00 CD [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:45:21]Read from MH i2c: E2 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 17 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 17 00 1E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 28 [23:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:45:21]wFMCommunicate OK [23:45:21]requested_item fd.num is exist - process it [23:45:21]SAM_PROTO_GetFieldsCounters [23:45:21]wFMCommunicate request_size=4 [23:45:21]MH_SAM_APDU [23:45:21]CAPDU: 80 13 00 00 [23:45:21]Write to MH i2c: E2 08 00 1F 35 80 13 00 00 00 00 00 00 D0 [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:45:21]Read from MH i2c: E2 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 62 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 62 00 1F 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4D 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [23:45:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4D 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:45:21]wFMCommunicate OK [23:45:21]SAM_PROTO_GetFieldsCounters done [23:45:21]requested_item shift.num is exist - process it [23:45:21]requested_item shift.opened is exist - process it [23:45:21]req_shift_opened [23:45:21]FM_GetShiftState [23:45:21]SAM_PROTO_GetShiftState [23:45:21]wFMCommunicate request_size=4 [23:45:21]MH_SAM_APDU [23:45:21]CAPDU: 80 13 01 00 [23:45:21]Write to MH i2c: E2 08 00 20 35 80 13 01 00 00 00 00 00 D2 [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:45:21]Read from MH i2c: E2 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 0E 00 [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: E2 0E 00 20 35 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 21 [23:45:21]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:45:21]wFMCommunicate OK [23:45:21]SAM_PROTO_GetShiftState done [23:45:21]FM_GetShiftState done [23:45:21]req_shift_opened done [23:45:21]requested_item shift.open_date is exist - process it [23:45:21]req_shift_open_date [23:45:21]req_shift_open_date done [23:45:21]produce_requested_data done [23:45:21]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31821,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [23:45:21]process_action_free close_receipt [23:45:21]json_value_free [23:45:21]json_value_free done [23:45:21]process_json_proto returns [23:45:21]Send response to host [23:45:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31821,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [23:45:21]free response buf [23:45:21]execute_script done [23:45:21]execute_script returns [23:45:21]free content buf [23:45:21]Sock 10.Close socket [23:45:21]Sock 10.Thread stoped [23:45:25]OFD Sender: No OFD packet to send [23:45:30]OFD Sender: No OFD packet to send [23:45:35]OFD Sender: No OFD packet to send [23:45:40]OFD Sender: No OFD packet to send [23:45:45]OFD Sender: No OFD packet to send [23:45:50]OFD Sender: No OFD packet to send [23:45:55]OFD Sender: No OFD packet to send [23:46:00]OFD Sender: No OFD packet to send [23:46:05]OFD Sender: No OFD packet to send [23:46:10]OFD Sender: No OFD packet to send [23:46:15]OFD Sender: No OFD packet to send [23:46:20]OFD Sender: No OFD packet to send [23:46:25]OFD Sender: No OFD packet to send [23:46:30]OFD Sender: No OFD packet to send [23:46:35]OFD Sender: No OFD packet to send [23:46:40]OFD Sender: No OFD packet to send [23:46:45]OFD Sender: No OFD packet to send [23:46:50]OFD Sender: No OFD packet to send [23:46:55]OFD Sender: No OFD packet to send [23:47:00]OFD Sender: No OFD packet to send [23:47:05]OFD Sender: No OFD packet to send [23:47:10]OFD Sender: No OFD packet to send [23:47:15]OFD Sender: No OFD packet to send [23:47:20]OFD Sender: No OFD packet to send [23:47:25]OFD Sender: No OFD packet to send [23:47:30]OFD Sender: No OFD packet to send [23:47:35]OFD Sender: No OFD packet to send [23:47:40]OFD Sender: No OFD packet to send [23:47:45]OFD Sender: No OFD packet to send [23:47:50]OFD Sender: No OFD packet to send [23:47:55]OFD Sender: No OFD packet to send [23:48:00]OFD Sender: No OFD packet to send [23:48:05]OFD Sender: No OFD packet to send [23:48:10]OFD Sender: No OFD packet to send [23:48:15]OFD Sender: No OFD packet to send [23:48:20]OFD Sender: No OFD packet to send [23:48:23]accept exits with 7 [23:48:23]New connection [23:48:23]New thread 3066821988 created [23:48:23]Thread 3066965348 joined [23:48:23]Waiting for new connection... [23:48:23] Sock 7.Parse request [23:48:23]Sock 7.Check first char [23:48:23]Sock 7.First char is OK [23:48:23]request: POST /json_proto HTTP/1.0 [23:48:23]Method: POST [23:48:23]URL: /json_proto [23:48:23]Method is POST - this is cgi request [23:48:23]url: /json_proto [23:48:23]query_string will be loaded in cgi processing [23:48:23]execute_cgi json_proto POST (null) [23:48:23]execute_cgi path=json_proto method=POST [23:48:23]POST find Content-Length [23:48:23]Host: 172.17.39.68:8080 [23:48:23]Content-Length: 658 [23:48:23]Content-Type: application/json [23:48:23] [23:48:23]POST finish read [23:48:23]Found Content-Length = 658 [23:48:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214404", "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" ] } } [23:48:23]execute_script... [23:48: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 : (3)214404", "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" ] } } [23:48:23]POST & json_proto [23:48:23]process_json_proto [23:48:23]json parsed OK: [23:48:23]protocol is kg_v1.0 [23:48:23]action value=close_receipt [23:48:23]process_action close_receipt [23:48:23]cmd_close_receipt [23:48:23]MH_GetDate [23:48:23]Write to MH i2c: F0 00 00 21 35 45 [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: F0 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: F0 09 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: F0 09 00 21 35 00 CE 06 97 66 D6 48 95 66 38 [23:48:23]GetLastDocTimeStamp 1721173524 [23:48:23]current date 1721173710 [23:48:23]FM_GetShiftState [23:48:23]SAM_PROTO_GetShiftState [23:48:23]wFMCommunicate request_size=4 [23:48:23]MH_SAM_APDU [23:48:23]CAPDU: 80 13 01 00 [23:48:23]Write to MH i2c: E2 08 00 22 35 80 13 01 00 00 00 00 00 D4 [23:48:23]Write i2c OK [23:48:23]MH_I2C_Read... [23:48:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:23]Read from MH i2c: E2 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 0E 00 [23:48:23]MH_I2C_Read... [23:48:23]Read from MH i2c: E2 0E 00 22 35 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 23 [23:48:23]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:48:23]wFMCommunicate OK [23:48:23]SAM_PROTO_GetShiftState done [23:48:23]FM_GetShiftState done [23:48:23]opened in 1721088399 [23:48:23]opened+sec_in_day 1721174799 [23:48:23]quantity*price = 12500 [23:48:23]sum+1 = 12501 [23:48:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 141 16.07.2024 23:48 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31822 ФПД: 132999299931048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T234830&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31822&fm=132999299931048&tin=02508201610067®Number=0000000000098025&sum=12500 0 [23:48:24]StoreToDocumentArchive [23:48:24]shift 371 fd 31822 [23:48:24]save to /storage/0371/doc_00031822 [23:48:24]save last doc name /storage/0371/doc_00031822 to /storage/kkm_last_doc_name [23:48:24]save OK [23:48:24]Clear old archive folders... [23:48:24]ProcessDocumentItem done err = 0, tmpTLVsize=278 [23:48:24]tlvbuf is 014D3F80 [23:48:24]SAM_PROTO_ClearQueue [23:48:24]wFMCommunicate request_size=4 [23:48:24]MH_SAM_APDU [23:48:24]CAPDU: 80 09 00 00 [23:48:24]Write to MH i2c: E2 08 00 2F 35 80 09 00 00 00 00 00 00 D6 [23:48:24]Write i2c OK [23:48:24]MH_I2C_Read... [23:48:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:48:24]Read from MH i2c: E2 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 03 00 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 03 00 2F 35 00 90 00 D8 [23:48:24]RAPDU: 90 00 [23:48:24]wFMCommunicate OK [23:48:24]SAM_PROTO_ClearQueue done [23:48:24]KKMCreateOFDPacket [23:48:24]OFDProtocolAddRootSTLVToBuf [23:48:24]FM_MakeSignedData [23:48:24]FM_MakeSignedData [23:48:24]SAM_PROTO_SignData [23:48:24]wFMCommunicate request_size=4 [23:48:24]MH_SAM_APDU [23:48:24]CAPDU: 80 0D 01 02 [23:48:24]Write to MH i2c: E2 08 00 30 35 80 0D 01 02 00 00 00 00 DE [23:48:24]Write i2c OK [23:48:24]MH_I2C_Read... [23:48:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:48:24]Read from MH i2c: E2 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 03 00 [23:48:24]MH_I2C_Read... [23:48:24]Read from MH i2c: E2 03 00 30 35 00 90 00 D9 [23:48:24]RAPDU: 90 00 [23:48:24]wFMCommunicate OK [23:48:24]wFMCommunicate request_size=255 [23:48:24]MH_SAM_APDU [23:48:24]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 8D 00 00 00 F4 03 04 00 CE 06 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 [23:48:24]Write to MH i2c: E2 02 01 31 35 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 8D 00 00 00 F4 03 04 00 CE 06 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 00 00 5B [23:48:24]Write i2c OK [23:48:24]MH_I2C_Read... [23:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:25]Read from MH i2c: E2 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 03 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 03 00 31 35 00 90 00 DA [23:48:25]RAPDU: 90 00 [23:48:25]wFMCommunicate OK [23:48:25]wFMCommunicate request_size=37 [23:48:25]MH_SAM_APDU [23:48:25]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4E 7C 00 00 35 04 06 00 78 F6 50 07 1B A8 [23:48:25]Write to MH i2c: E2 28 00 32 35 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4E 7C 00 00 35 04 06 00 78 F6 50 07 1B A8 00 00 92 [23:48:25]Write i2c OK [23:48:25]MH_I2C_Read... [23:48:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:48:25]Read from MH i2c: E2 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 03 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 03 00 32 35 00 90 00 DB [23:48:25]RAPDU: 90 00 [23:48:25]wFMCommunicate OK [23:48:25]wFMCommunicate request_size=4 [23:48:25]MH_SAM_APDU [23:48:25]CAPDU: 80 0D 03 02 [23:48:25]Write to MH i2c: E2 08 00 33 35 80 0D 03 02 00 00 00 00 E3 [23:48:25]Write i2c OK [23:48:25]MH_I2C_Read... [23:48:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:48:25]Read from MH i2c: E2 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 0B 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 0B 00 33 35 00 60 66 83 BC F0 87 DB 5C 90 00 97 [23:48:25]RAPDU: 60 66 83 BC F0 87 DB 5C 90 00 [23:48:25]wFMCommunicate OK [23:48:25]SAM_PROTO_SignData done [23:48:25]FM_MakeSignedData done [23:48:25]CreateOFDProtocolMessage [23:48:25]wFMCommunicate request_size=4 [23:48:25]MH_SAM_APDU [23:48:25]CAPDU: 80 11 00 00 [23:48:25]Write to MH i2c: E2 08 00 34 35 80 11 00 00 00 00 00 00 E3 [23:48:25]Write i2c OK [23:48:25]MH_I2C_Read... [23:48:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:25]Read from MH i2c: E2 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 17 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: E2 17 00 34 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3E [23:48:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:48:25]wFMCommunicate OK [23:48:25]CreateOFDProtocolMessage done [23:48:25]OFDSenderStorePacket 31822 [23:48:25]StoreOFDPacket docnum=31822 [23:48:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 2A 1A 22 01 A4 AC 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 8D 00 00 00 F4 03 04 00 CE 06 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4E 7C 00 00 35 04 06 00 78 F6 50 07 1B A8 60 66 83 BC F0 87 DB 5C [23:48:25]CheckFolder [23:48:25]dirname=/storage/ofd_packets [23:48:25]CheckFolder done [23:48:25]ProducePacketName [23:48:25]name=ofd_packets/00031822 [23:48:25]NVStorageSaveData ofd_packets/00031822 [23:48:25]File name is /storage/ofd_packets/00031822 [23:48:25]Write 328 bytes [23:48:25]NVStorageSaveData done [23:48:25]OFDSenderStorePacket done [23:48:25]KKMCreateOFDPacket done [23:48:25]NVStorageSaveData kkm_last_timestamp [23:48:25]File name is /storage/kkm_last_timestamp [23:48:25]Write 4 bytes [23:48:25]NVStorageSaveData done [23:48:25]ExternCall_PrintAddStr [23:48:25]wPrintStart [23:48:25]Write to MH i2c: 01 00 00 35 35 6A [23:48:25]Write i2c OK [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: 01 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: 01 07 00 [23:48:25]MH_I2C_Read... [23:48:25]Read from MH i2c: 01 07 00 35 35 00 00 00 00 00 FF 0F 7F [23:48:25]RasterBufferAndPrint [23:48:25]line Счет N : (3)214404 [23:48:25]line ИНН: 02508201610067 [23:48:25]line Контрольно-Кассовый Чек [23:48:25]line ПРОДАЖА [23:48:25]line Товар: 5449000054227 [23:48:25]line Напиток Кока-Кола 1л [23:48:25]line 1.000 * 125.00 [23:48:25]line = 125.00 [23:48:25]line НДС 12% НСП 1% [23:48:25]line > о реализуемом товаре [23:48:25]line ИТОГО: 125.00 [23:48:25]line НСП 1% : 1.11 [23:48:25]line НДС 12% : 13.27 [23:48:25]line Наличными: 125.00 [23:48:25]line Безнал.: 0.00 [23:48:25]line Место: АЗС № 140 "Партнер Нефть" [23:48:25]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:48:25]line СНО: Общий режим [23:48:25]line Чек 141 16.07.2024 23:48 [23:48:25]line Смена: 371 ФФД: 1.0 [23:48:25]line ЗНМ: 0300000189 [23:48:25]line РНМ: 0000000000098025 [23:48:25]line Версия ККМ: 001 [23:48:25]line ФМ: 0000000000965389 [23:48:25]line ФД: 31822 [23:48:25]line ФПД: 132999299931048 [23:48:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T234830&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31822&fm=132999299931048&tin=02508201610067®Number=0000000000098025&sum=12500 [23:48:25]OFD Sender: Processing packet 31822 [packets to send 6, broken 5] [23:48:25]ProducePacketName [23:48:25]name=ofd_packets/00031822 [23:48:25]OFD Sender: To server: pG, [23:48:25]CommunicateWithHost lk.salyk.kg:30040 [23:48:25]ConnectInit lk.salyk.kg [23:48:25]line 0 [23:48:25]written 0, free lines is 4095 [23:48:25]Connected sock=10 [23:48:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 2A 01 00 00 2A 1A 22 01 A4 AC 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 8D 00 00 00 F4 03 04 00 CE 06 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4E 7C 00 00 35 04 06 00 78 F6 50 07 1B A8 60 66 83 BC F0 87 DB 5C [23:48:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 E2 7A 47 00 F5 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4E 7C 00 00 F4 03 04 00 DA B2 96 66 B6 04 01 00 00 2B 30 AF F2 01 13 9A EB [23:48:25]CommunicateWithHost err = 0 [23:48:25]CheckOFDResponse [23:48:25]1017 (14) - 77093643461234 [23:48:25]1041 (16) - 0000000000965389 [23:48:25]1040 (4) - 31822 [23:48:25]1012 (4) - 16.07.2024 17:50 [23:48:25]1206 (1) - 0 [23:48:25]OFD Sender: Remove packet 31822 [23:48:25]ProducePacketName [23:48:25]name=ofd_packets/00031822 [23:48:25]NVStorageDeleteData [23:48:26]Write to MH i2c: 01 00 00 5D 35 92 [23:48:26]Write i2c OK [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 07 00 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: 01 07 00 5D 35 00 00 00 00 00 FD 0C A2 [23:48:26]RasterBufferAndPrint [23:48:26]line [23:48:26]line [23:48:26]line [23:48:26]line [23:48:26]line [23:48:26]written 0, free lines is 3334 [23:48:26]MH_Cut [23:48:26]Write to MH i2c: D1 01 00 64 35 01 6B [23:48:26]Write i2c OK [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: D1 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: D1 01 00 [23:48:26]MH_I2C_Read... [23:48:26]Read from MH i2c: D1 01 00 64 35 00 6A [23:48:26]Write to MH i2c: 01 00 00 65 35 9A [23:48:26]Write i2c OK [23:48:26]MH_I2C_Read... [23:48:26]OFD Sender: No OFD packet to send [23:48:26]*** Cut start [23:48:26]*** Partial cut [23:48:26]*** CUTSNS_PIN = 1 [23:48:26]*** CUTSNS_PIN = 0 [23:48:27]*** Brake cut motor [23:48:27]Read from MH i2c: 01 [23:48:27]MH_I2C_Read... [23:48:27]*** Stop cut motor [23:48:27]*** Cut end [23:48:27]Read from MH i2c: 01 07 00 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: 01 07 00 65 35 00 00 00 00 00 FF 0F AF [23:48:27]process_action close_receipt done [23:48:27]requested_data is exist [23:48:27]produce_requested_data [23:48:27]requested_item fm.sn is exist - process it [23:48:27]wFMCommunicate request_size=4 [23:48:27]MH_SAM_APDU [23:48:27]CAPDU: 80 11 00 00 [23:48:27]Write to MH i2c: E2 08 00 66 35 80 11 00 00 00 00 00 00 15 [23:48:27]Write i2c OK [23:48:27]MH_I2C_Read... [23:48:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:48:27]Read from MH i2c: E2 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: E2 17 00 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: E2 17 00 66 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 70 [23:48:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:48:27]wFMCommunicate OK [23:48:27]requested_item fd.num is exist - process it [23:48:27]SAM_PROTO_GetFieldsCounters [23:48:27]wFMCommunicate request_size=4 [23:48:27]MH_SAM_APDU [23:48:27]CAPDU: 80 13 00 00 [23:48:27]Write to MH i2c: E2 08 00 67 35 80 13 00 00 00 00 00 00 18 [23:48:27]Write i2c OK [23:48:27]MH_I2C_Read... [23:48:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:48:27]Read from MH i2c: E2 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: E2 62 00 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: E2 62 00 67 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4E 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [23:48: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4E 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:48:27]wFMCommunicate OK [23:48:27]SAM_PROTO_GetFieldsCounters done [23:48:27]requested_item shift.num is exist - process it [23:48:27]requested_item shift.opened is exist - process it [23:48:27]req_shift_opened [23:48:27]FM_GetShiftState [23:48:27]SAM_PROTO_GetShiftState [23:48:27]wFMCommunicate request_size=4 [23:48:27]MH_SAM_APDU [23:48:27]CAPDU: 80 13 01 00 [23:48:27]Write to MH i2c: E2 08 00 68 35 80 13 01 00 00 00 00 00 1A [23:48:27]Write i2c OK [23:48:27]MH_I2C_Read... [23:48:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:48:27]Read from MH i2c: E2 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: E2 0E 00 [23:48:27]MH_I2C_Read... [23:48:27]Read from MH i2c: E2 0E 00 68 35 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 69 [23:48:27]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:48:27]wFMCommunicate OK [23:48:27]SAM_PROTO_GetShiftState done [23:48:27]FM_GetShiftState done [23:48:27]req_shift_opened done [23:48:27]requested_item shift.open_date is exist - process it [23:48:27]req_shift_open_date [23:48:27]req_shift_open_date done [23:48:27]produce_requested_data done [23:48:27]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31822,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [23:48:27]process_action_free close_receipt [23:48:27]json_value_free [23:48:27]json_value_free done [23:48:27]process_json_proto returns [23:48:27]Send response to host [23:48:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31822,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [23:48:27]free response buf [23:48:27]execute_script done [23:48:27]execute_script returns [23:48:27]free content buf [23:48:27]Sock 7.Close socket [23:48:27]Sock 7.Thread stoped [23:48:31]OFD Sender: No OFD packet to send [23:48:36]OFD Sender: No OFD packet to send [23:48:41]OFD Sender: No OFD packet to send [23:48:46]OFD Sender: No OFD packet to send [23:48:51]OFD Sender: No OFD packet to send [23:48:56]OFD Sender: No OFD packet to send [23:49:01]OFD Sender: No OFD packet to send [23:49:06]OFD Sender: No OFD packet to send [23:49:11]OFD Sender: No OFD packet to send [23:49:16]OFD Sender: No OFD packet to send [23:49:21]OFD Sender: No OFD packet to send [23:49:26]OFD Sender: No OFD packet to send [23:49:31]OFD Sender: No OFD packet to send [23:49:36]OFD Sender: No OFD packet to send [23:49:41]OFD Sender: No OFD packet to send [23:49:46]OFD Sender: No OFD packet to send [23:49:51]OFD Sender: No OFD packet to send [23:49:56]OFD Sender: No OFD packet to send [23:50:01]OFD Sender: No OFD packet to send [23:50:06]OFD Sender: No OFD packet to send [23:50:11]OFD Sender: No OFD packet to send [23:50:16]OFD Sender: No OFD packet to send [23:50:21]OFD Sender: No OFD packet to send [23:50:26]OFD Sender: No OFD packet to send [23:50:31]OFD Sender: No OFD packet to send [23:50:36]OFD Sender: No OFD packet to send [23:50:41]OFD Sender: No OFD packet to send [23:50:46]OFD Sender: No OFD packet to send [23:50:51]OFD Sender: No OFD packet to send [23:50:56]OFD Sender: No OFD packet to send [23:51:01]OFD Sender: No OFD packet to send [23:51:06]OFD Sender: No OFD packet to send [23:51:11]OFD Sender: No OFD packet to send [23:51:14]accept exits with 9 [23:51:14]New connection [23:51:14]New thread 3066965348 created [23:51:14]Thread 3066821988 joined [23:51:14]Waiting for new connection... [23:51:14] Sock 9.Parse request [23:51:14]Sock 9.Check first char [23:51:14]Sock 9.First char is OK [23:51:14]request: POST /json_proto HTTP/1.0 [23:51:14]Method: POST [23:51:14]URL: /json_proto [23:51:14]Method is POST - this is cgi request [23:51:14]url: /json_proto [23:51:14]query_string will be loaded in cgi processing [23:51:14]execute_cgi json_proto POST (null) [23:51:14]execute_cgi path=json_proto method=POST [23:51:14]POST find Content-Length [23:51:14]Host: 172.17.39.68:8080 [23:51:14]Content-Length: 623 [23:51:14]Content-Type: application/json [23:51:14] [23:51:14]POST finish read [23:51:14]Found Content-Length = 623 [23:51:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214405", "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" ] } } [23:51:14]execute_script... [23:51:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214405", "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" ] } } [23:51:14]POST & json_proto [23:51:14]process_json_proto [23:51:14]json parsed OK: [23:51:14]protocol is kg_v1.0 [23:51:14]action value=close_receipt [23:51:14]process_action close_receipt [23:51:14]cmd_close_receipt [23:51:14]MH_GetDate [23:51:14]Write to MH i2c: F0 00 00 69 35 8D [23:51:14]Write i2c OK [23:51:14]MH_I2C_Read... [23:51:14]Read from MH i2c: F0 [23:51:14]MH_I2C_Read... [23:51:14]Read from MH i2c: F0 09 00 [23:51:14]MH_I2C_Read... [23:51:14]Read from MH i2c: F0 09 00 69 35 00 79 07 97 66 D6 48 95 66 2C [23:51:14]GetLastDocTimeStamp 1721173710 [23:51:14]current date 1721173881 [23:51:14]FM_GetShiftState [23:51:14]SAM_PROTO_GetShiftState [23:51:14]wFMCommunicate request_size=4 [23:51:14]MH_SAM_APDU [23:51:14]CAPDU: 80 13 01 00 [23:51:14]Write to MH i2c: E2 08 00 6A 35 80 13 01 00 00 00 00 00 1C [23:51:14]Write i2c OK [23:51:14]MH_I2C_Read... [23:51:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:14]Read from MH i2c: E2 [23:51:14]MH_I2C_Read... [23:51:14]Read from MH i2c: E2 0E 00 [23:51:14]MH_I2C_Read... [23:51:14]Read from MH i2c: E2 0E 00 6A 35 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 6B [23:51:14]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:51:14]wFMCommunicate OK [23:51:14]SAM_PROTO_GetShiftState done [23:51:14]FM_GetShiftState done [23:51:14]opened in 1721088399 [23:51:14]opened+sec_in_day 1721174799 [23:51:14]quantity*price = 28000 [23:51:14]sum+1 = 28001 [23:51:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 280.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 142 16.07.2024 23:51 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31823 ФПД: 93846736091998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T235121&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31823&fm=93846736091998&tin=02508201610067®Number=0000000000098025&sum=28000 0 [23:51:15]StoreToDocumentArchive [23:51:15]shift 371 fd 31823 [23:51:15]save to /storage/0371/doc_00031823 [23:51:15]save last doc name /storage/0371/doc_00031823 to /storage/kkm_last_doc_name [23:51:15]save OK [23:51:15]Clear old archive folders... [23:51:15]ProcessDocumentItem done err = 0, tmpTLVsize=275 [23:51:15]tlvbuf is 014C8280 [23:51:15]SAM_PROTO_ClearQueue [23:51:15]wFMCommunicate request_size=4 [23:51:15]MH_SAM_APDU [23:51:15]CAPDU: 80 09 00 00 [23:51:15]Write to MH i2c: E2 08 00 77 35 80 09 00 00 00 00 00 00 1E [23:51:15]Write i2c OK [23:51:15]MH_I2C_Read... [23:51:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:51:15]Read from MH i2c: E2 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: E2 03 00 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: E2 03 00 77 35 00 90 00 20 [23:51:15]RAPDU: 90 00 [23:51:15]wFMCommunicate OK [23:51:15]SAM_PROTO_ClearQueue done [23:51:15]KKMCreateOFDPacket [23:51:15]OFDProtocolAddRootSTLVToBuf [23:51:15]FM_MakeSignedData [23:51:15]FM_MakeSignedData [23:51:15]SAM_PROTO_SignData [23:51:15]wFMCommunicate request_size=4 [23:51:15]MH_SAM_APDU [23:51:15]CAPDU: 80 0D 01 02 [23:51:15]Write to MH i2c: E2 08 00 78 35 80 0D 01 02 00 00 00 00 26 [23:51:15]Write i2c OK [23:51:15]MH_I2C_Read... [23:51:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:51:15]Read from MH i2c: E2 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: E2 03 00 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: E2 03 00 78 35 00 90 00 21 [23:51:15]RAPDU: 90 00 [23:51:15]wFMCommunicate OK [23:51:15]wFMCommunicate request_size=255 [23:51:15]MH_SAM_APDU [23:51:15]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 8E 00 00 00 F4 03 04 00 79 07 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 [23:51:15]Write to MH i2c: E2 02 01 79 35 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 8E 00 00 00 F4 03 04 00 79 07 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 00 00 25 [23:51:15]Write i2c OK [23:51:15]MH_I2C_Read... [23:51:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:15]Read from MH i2c: E2 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: E2 03 00 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: E2 03 00 79 35 00 90 00 22 [23:51:15]RAPDU: 90 00 [23:51:15]wFMCommunicate OK [23:51:15]wFMCommunicate request_size=34 [23:51:15]MH_SAM_APDU [23:51:15]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4F 7C 00 00 35 04 06 00 55 5A 65 5E 3B 5E [23:51:15]Write to MH i2c: E2 25 00 7A 35 80 0D 02 02 1D 00 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4F 7C 00 00 35 04 06 00 55 5A 65 5E 3B 5E 00 00 C8 [23:51:15]Write i2c OK [23:51:15]MH_I2C_Read... [23:51:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:16]Read from MH i2c: E2 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 03 00 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 03 00 7A 35 00 90 00 23 [23:51:16]RAPDU: 90 00 [23:51:16]wFMCommunicate OK [23:51:16]wFMCommunicate request_size=4 [23:51:16]MH_SAM_APDU [23:51:16]CAPDU: 80 0D 03 02 [23:51:16]Write to MH i2c: E2 08 00 7B 35 80 0D 03 02 00 00 00 00 2B [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:16]Read from MH i2c: E2 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 0B 00 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 0B 00 7B 35 00 0B B1 A6 61 43 56 16 51 90 00 EF [23:51:16]RAPDU: 0B B1 A6 61 43 56 16 51 90 00 [23:51:16]wFMCommunicate OK [23:51:16]SAM_PROTO_SignData done [23:51:16]FM_MakeSignedData done [23:51:16]CreateOFDProtocolMessage [23:51:16]wFMCommunicate request_size=4 [23:51:16]MH_SAM_APDU [23:51:16]CAPDU: 80 11 00 00 [23:51:16]Write to MH i2c: E2 08 00 7C 35 80 11 00 00 00 00 00 00 2B [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:16]Read from MH i2c: E2 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 17 00 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 17 00 7C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 86 [23:51:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:51:16]wFMCommunicate OK [23:51:16]CreateOFDProtocolMessage done [23:51:16]OFDSenderStorePacket 31823 [23:51:16]StoreOFDPacket docnum=31823 [23:51:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 53 5E 1F 01 2F 7D 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 8E 00 00 00 F4 03 04 00 79 07 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4F 7C 00 00 35 04 06 00 55 5A 65 5E 3B 5E 0B B1 A6 61 43 56 16 51 [23:51:16]CheckFolder [23:51:16]dirname=/storage/ofd_packets [23:51:16]CheckFolder done [23:51:16]ProducePacketName [23:51:16]name=ofd_packets/00031823 [23:51:16]NVStorageSaveData ofd_packets/00031823 [23:51:16]File name is /storage/ofd_packets/00031823 [23:51:16]Write 325 bytes [23:51:16]NVStorageSaveData done [23:51:16]OFDSenderStorePacket done [23:51:16]KKMCreateOFDPacket done [23:51:16]NVStorageSaveData kkm_last_timestamp [23:51:16]File name is /storage/kkm_last_timestamp [23:51:16]Write 4 bytes [23:51:16]NVStorageSaveData done [23:51:16]ExternCall_PrintAddStr [23:51:16]wPrintStart [23:51:16]Write to MH i2c: 01 00 00 7D 35 B2 [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: 01 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: 01 07 00 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: 01 07 00 7D 35 00 00 00 00 00 FF 0F C7 [23:51:16]RasterBufferAndPrint [23:51:16]line Счет N : (3)214405 [23:51:16]line ИНН: 02508201610067 [23:51:16]line Контрольно-Кассовый Чек [23:51:16]line ПРОДАЖА [23:51:16]line Товар: 48743587 [23:51:16]line Сигареты Winston XStyle Silver [23:51:16]line 2.000 * 140.00 [23:51:16]line = 280.00 [23:51:16]line НДС 12% НСП 1% [23:51:16]line > о реализуемом товаре [23:51:16]line ИТОГО: 280.00 [23:51:16]line НСП 1% : 2.48 [23:51:16]line НДС 12% : 29.73 [23:51:16]line Наличными: 280.00 [23:51:16]line Безнал.: 0.00 [23:51:16]line Место: АЗС № 140 "Партнер Нефть" [23:51:16]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:51:16]line СНО: Общий режим [23:51:16]line Чек 142 16.07.2024 23:51 [23:51:16]line Смена: 371 ФФД: 1.0 [23:51:16]line ЗНМ: 0300000189 [23:51:16]line РНМ: 0000000000098025 [23:51:16]line Версия ККМ: 001 [23:51:16]line ФМ: 0000000000965389 [23:51:16]line ФД: 31823 [23:51:16]line ФПД: 93846736091998 [23:51:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T235121&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31823&fm=93846736091998&tin=02508201610067®Number=0000000000098025&sum=28000 [23:51:16]line 0 [23:51:16]OFD Sender: Processing packet 31823 [packets to send 6, broken 5] [23:51:16]ProducePacketName [23:51:16]name=ofd_packets/00031823 [23:51:16]OFD Sender: To server: pG, [23:51:16]CommunicateWithHost lk.salyk.kg:30040 [23:51:16]ConnectInit lk.salyk.kg [23:51:16]written 0, free lines is 4095 [23:51:16]Connected sock=10 [23:51:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 27 01 00 00 53 5E 1F 01 2F 7D 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 8E 00 00 00 F4 03 04 00 79 07 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4F 7C 00 00 35 04 06 00 55 5A 65 5E 3B 5E 0B B1 A6 61 43 56 16 51 [23:51:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 56 51 47 00 80 17 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 4F 7C 00 00 F4 03 04 00 85 B3 96 66 B6 04 01 00 00 39 04 7F 27 97 10 99 8E [23:51:16]CommunicateWithHost err = 0 [23:51:16]CheckOFDResponse [23:51:16]1017 (14) - 77093643461234 [23:51:16]1041 (16) - 0000000000965389 [23:51:16]1040 (4) - 31823 [23:51:16]1012 (4) - 16.07.2024 17:53 [23:51:16]1206 (1) - 0 [23:51:16]OFD Sender: Remove packet 31823 [23:51:16]ProducePacketName [23:51:16]name=ofd_packets/00031823 [23:51:16]NVStorageDeleteData [23:51:16]Write to MH i2c: 01 00 00 A6 35 DB [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: 01 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: 01 07 00 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: 01 07 00 A6 35 00 00 00 00 00 DE 0C CC [23:51:16]RasterBufferAndPrint [23:51:16]line [23:51:16]line [23:51:16]line [23:51:16]line [23:51:16]line [23:51:16]written 0, free lines is 3300 [23:51:16]MH_Cut [23:51:16]Write to MH i2c: D1 01 00 AD 35 01 B4 [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: D1 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: D1 01 00 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: D1 01 00 AD 35 00 B3 [23:51:16]Write to MH i2c: 01 00 00 AE 35 E3 [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:17]OFD Sender: No OFD packet to send [23:51:17]*** Cut start [23:51:17]*** Partial cut [23:51:17]*** CUTSNS_PIN = 1 [23:51:17]*** CUTSNS_PIN = 0 [23:51:17]*** Brake cut motor [23:51:18]Read from MH i2c: 01 [23:51:18]MH_I2C_Read... [23:51:18]*** Stop cut motor [23:51:18]*** Cut end [23:51:18]Read from MH i2c: 01 07 00 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: 01 07 00 AE 35 00 00 00 00 00 FF 0F F8 [23:51:18]process_action close_receipt done [23:51:18]requested_data is exist [23:51:18]produce_requested_data [23:51:18]requested_item fm.sn is exist - process it [23:51:18]wFMCommunicate request_size=4 [23:51:18]MH_SAM_APDU [23:51:18]CAPDU: 80 11 00 00 [23:51:18]Write to MH i2c: E2 08 00 AF 35 80 11 00 00 00 00 00 00 5E [23:51:18]Write i2c OK [23:51:18]MH_I2C_Read... [23:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:18]Read from MH i2c: E2 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 17 00 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 17 00 AF 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B9 [23:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:51:18]wFMCommunicate OK [23:51:18]requested_item fd.num is exist - process it [23:51:18]SAM_PROTO_GetFieldsCounters [23:51:18]wFMCommunicate request_size=4 [23:51:18]MH_SAM_APDU [23:51:18]CAPDU: 80 13 00 00 [23:51:18]Write to MH i2c: E2 08 00 B0 35 80 13 00 00 00 00 00 00 61 [23:51:18]Write i2c OK [23:51:18]MH_I2C_Read... [23:51:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:18]Read from MH i2c: E2 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 62 00 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 62 00 B0 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4F 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [23:51:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 4F 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:18]wFMCommunicate OK [23:51:18]SAM_PROTO_GetFieldsCounters done [23:51:18]requested_item shift.num is exist - process it [23:51:18]requested_item shift.opened is exist - process it [23:51:18]req_shift_opened [23:51:18]FM_GetShiftState [23:51:18]SAM_PROTO_GetShiftState [23:51:18]wFMCommunicate request_size=4 [23:51:18]MH_SAM_APDU [23:51:18]CAPDU: 80 13 01 00 [23:51:18]Write to MH i2c: E2 08 00 B1 35 80 13 01 00 00 00 00 00 63 [23:51:18]Write i2c OK [23:51:18]MH_I2C_Read... [23:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:18]Read from MH i2c: E2 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 0E 00 [23:51:18]MH_I2C_Read... [23:51:18]Read from MH i2c: E2 0E 00 B1 35 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B2 [23:51:18]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:51:18]wFMCommunicate OK [23:51:18]SAM_PROTO_GetShiftState done [23:51:18]FM_GetShiftState done [23:51:18]req_shift_opened done [23:51:18]requested_item shift.open_date is exist - process it [23:51:18]req_shift_open_date [23:51:18]req_shift_open_date done [23:51:18]produce_requested_data done [23:51:18]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31823,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [23:51:18]process_action_free close_receipt [23:51:18]json_value_free [23:51:18]json_value_free done [23:51:18]process_json_proto returns [23:51:18]Send response to host [23:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31823,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [23:51:18]free response buf [23:51:18]execute_script done [23:51:18]execute_script returns [23:51:18]free content buf [23:51:18]Sock 9.Close socket [23:51:18]Sock 9.Thread stoped [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:28]accept exits with 7 [23:51:28]New connection [23:51:28]New thread 3066821988 created [23:51:28]Thread 3066965348 joined [23:51:28]Waiting for new connection... [23:51:28] Sock 7.Parse request [23:51:28]Sock 7.Check first char [23:51:28]Sock 7.First char is OK [23:51:28]request: POST /json_proto HTTP/1.0 [23:51:28]Method: POST [23:51:28]URL: /json_proto [23:51:28]Method is POST - this is cgi request [23:51:28]url: /json_proto [23:51:28]query_string will be loaded in cgi processing [23:51:28]execute_cgi json_proto POST (null) [23:51:28]execute_cgi path=json_proto method=POST [23:51:28]POST find Content-Length [23:51:28]Host: 172.17.39.68:8080 [23:51:28]Content-Length: 673 [23:51:28]Content-Type: application/json [23:51:28] [23:51:28]POST finish read [23:51:28]Found Content-Length = 673 [23:51:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214406", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:28]execute_script... [23:51:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214406", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:28]POST & json_proto [23:51:28]process_json_proto [23:51:28]json parsed OK: [23:51:28]protocol is kg_v1.0 [23:51:28]action value=close_receipt [23:51:28]process_action close_receipt [23:51:28]cmd_close_receipt [23:51:28]MH_GetDate [23:51:28]Write to MH i2c: F0 00 00 B2 35 D6 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: F0 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: F0 09 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: F0 09 00 B2 35 00 87 07 97 66 D6 48 95 66 83 [23:51:28]GetLastDocTimeStamp 1721173881 [23:51:28]current date 1721173895 [23:51:28]FM_GetShiftState [23:51:28]SAM_PROTO_GetShiftState [23:51:28]wFMCommunicate request_size=4 [23:51:28]MH_SAM_APDU [23:51:28]CAPDU: 80 13 01 00 [23:51:28]Write to MH i2c: E2 08 00 B3 35 80 13 01 00 00 00 00 00 65 [23:51:28]Write i2c OK [23:51:28]MH_I2C_Read... [23:51:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:28]Read from MH i2c: E2 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 0E 00 [23:51:28]MH_I2C_Read... [23:51:28]Read from MH i2c: E2 0E 00 B3 35 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 B4 [23:51:28]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:51:28]wFMCommunicate OK [23:51:28]SAM_PROTO_GetShiftState done [23:51:28]FM_GetShiftState done [23:51:28]opened in 1721088399 [23:51:28]opened+sec_in_day 1721174799 [23:51:28]quantity*price = 700 [23:51:28]sum+1 = 701 [23:51:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 143 16.07.2024 23:51 Смена: 371 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31824 ФПД: 265186297709607 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T235135&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31824&fm=265186297709607&tin=02508201610067®Number=0000000000098025&sum=700 0 [23:51:29]StoreToDocumentArchive [23:51:29]shift 371 fd 31824 [23:51:29]save to /storage/0371/doc_00031824 [23:51:29]save last doc name /storage/0371/doc_00031824 to /storage/kkm_last_doc_name [23:51:29]save OK [23:51:29]Clear old archive folders... [23:51:29]ProcessDocumentItem done err = 0, tmpTLVsize=287 [23:51:29]tlvbuf is 014D4130 [23:51:29]SAM_PROTO_ClearQueue [23:51:29]wFMCommunicate request_size=4 [23:51:29]MH_SAM_APDU [23:51:29]CAPDU: 80 09 00 00 [23:51:29]Write to MH i2c: E2 08 00 C0 35 80 09 00 00 00 00 00 00 67 [23:51:29]Write i2c OK [23:51:29]MH_I2C_Read... [23:51:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:51:29]Read from MH i2c: E2 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 03 00 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 03 00 C0 35 00 90 00 69 [23:51:29]RAPDU: 90 00 [23:51:29]wFMCommunicate OK [23:51:29]SAM_PROTO_ClearQueue done [23:51:29]KKMCreateOFDPacket [23:51:29]OFDProtocolAddRootSTLVToBuf [23:51:29]FM_MakeSignedData [23:51:29]FM_MakeSignedData [23:51:29]SAM_PROTO_SignData [23:51:29]wFMCommunicate request_size=4 [23:51:29]MH_SAM_APDU [23:51:29]CAPDU: 80 0D 01 02 [23:51:29]Write to MH i2c: E2 08 00 C1 35 80 0D 01 02 00 00 00 00 6F [23:51:29]Write i2c OK [23:51:29]MH_I2C_Read... [23:51:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:51:29]Read from MH i2c: E2 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 03 00 [23:51:29]MH_I2C_Read... [23:51:29]Read from MH i2c: E2 03 00 C1 35 00 90 00 6A [23:51:29]RAPDU: 90 00 [23:51:29]wFMCommunicate OK [23:51:29]wFMCommunicate request_size=255 [23:51:29]MH_SAM_APDU [23:51:29]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 87 07 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [23:51:29]Write to MH i2c: E2 02 01 C2 35 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 87 07 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 3F [23:51:29]Write i2c OK [23:51:29]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 03 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 03 00 C2 35 00 90 00 6B [23:51:30]RAPDU: 90 00 [23:51:30]wFMCommunicate OK [23:51:30]wFMCommunicate request_size=46 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 50 7C 00 00 35 04 06 00 F1 2F 7F 13 04 27 [23:51:30]Write to MH i2c: E2 31 00 C3 35 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 50 7C 00 00 35 04 06 00 F1 2F 7F 13 04 27 00 00 A8 [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 03 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 03 00 C3 35 00 90 00 6C [23:51:30]RAPDU: 90 00 [23:51:30]wFMCommunicate OK [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 0D 03 02 [23:51:30]Write to MH i2c: E2 08 00 C4 35 80 0D 03 02 00 00 00 00 74 [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 0B 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 0B 00 C4 35 00 27 E5 41 A7 DF 31 E6 D7 90 00 36 [23:51:30]RAPDU: 27 E5 41 A7 DF 31 E6 D7 90 00 [23:51:30]wFMCommunicate OK [23:51:30]SAM_PROTO_SignData done [23:51:30]FM_MakeSignedData done [23:51:30]CreateOFDProtocolMessage [23:51:30]wFMCommunicate request_size=4 [23:51:30]MH_SAM_APDU [23:51:30]CAPDU: 80 11 00 00 [23:51:30]Write to MH i2c: E2 08 00 C5 35 80 11 00 00 00 00 00 00 74 [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:30]Read from MH i2c: E2 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 17 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: E2 17 00 C5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 CF [23:51:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:51:30]wFMCommunicate OK [23:51:30]CreateOFDProtocolMessage done [23:51:30]OFDSenderStorePacket 31824 [23:51:30]StoreOFDPacket docnum=31824 [23:51:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 2D 46 2B 01 93 F6 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 87 07 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 50 7C 00 00 35 04 06 00 F1 2F 7F 13 04 27 27 E5 41 A7 DF 31 E6 D7 [23:51:30]CheckFolder [23:51:30]dirname=/storage/ofd_packets [23:51:30]CheckFolder done [23:51:30]ProducePacketName [23:51:30]name=ofd_packets/00031824 [23:51:30]NVStorageSaveData ofd_packets/00031824 [23:51:30]File name is /storage/ofd_packets/00031824 [23:51:30]Write 337 bytes [23:51:30]NVStorageSaveData done [23:51:30]OFDSenderStorePacket done [23:51:30]KKMCreateOFDPacket done [23:51:30]NVStorageSaveData kkm_last_timestamp [23:51:30]File name is /storage/kkm_last_timestamp [23:51:30]OFD Sender: Processing packet 31824 [packets to send 6, broken 5] [23:51:30]ProducePacketName [23:51:30]name=ofd_packets/00031824 [23:51:30]OFD Sender: To server: pG, [23:51:30]CommunicateWithHost lk.salyk.kg:30040 [23:51:30]ConnectInit lk.salyk.kg [23:51:30]Write 4 bytes [23:51:30]NVStorageSaveData done [23:51:30]ExternCall_PrintAddStr [23:51:30]wPrintStart [23:51:30]Write to MH i2c: 01 00 00 C6 35 FB [23:51:30]Write i2c OK [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: 01 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: 01 07 00 [23:51:30]MH_I2C_Read... [23:51:30]Read from MH i2c: 01 07 00 C6 35 00 00 00 00 00 FF 0F 10 [23:51:30]RasterBufferAndPrint [23:51:30]line Счет N : (3)214406 [23:51:30]line ИНН: 02508201610067 [23:51:30]line Контрольно-Кассовый Чек [23:51:30]line ПРОДАЖА [23:51:30]line Товар: 2000053020015 [23:51:30]line Бумажные стаканы 250мл 1шт [23:51:30]line 1.000 * 7.00 [23:51:30]line = 7.00 [23:51:30]line НДС 12% НСП 1% [23:51:30]line > о реализуемом товаре [23:51:30]line ИТОГО: 7.00 [23:51:30]line НСП 1% : 0.06 [23:51:30]line НДС 12% : 0.74 [23:51:30]line Наличными: 7.00 [23:51:30]line Безнал.: 0.00 [23:51:30]line Место: АЗС № 140 "Партнер Нефть" [23:51:30]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [23:51:30]line СНО: Общий режим [23:51:30]line Чек 143 16.07.2024 23:51 [23:51:30]line Смена: 371 ФФД: 1.0 [23:51:30]line ЗНМ: 0300000189 [23:51:30]line РНМ: 0000000000098025 [23:51:30]line Версия ККМ: 001 [23:51:30]line ФМ: 0000000000965389 [23:51:30]line ФД: 31824 [23:51:30]line ФПД: 265186297709607 [23:51:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240716T235135&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31824&fm=265186297709607&tin=02508201610067®Number=0000000000098025&sum=700 [23:51:30]line 0 [23:51:30]Connected sock=11 [23:51:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 2D 46 2B 01 93 F6 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 87 07 97 66 0E 04 04 00 73 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 50 7C 00 00 35 04 06 00 F1 2F 7F 13 04 27 27 E5 41 A7 DF 31 E6 D7 [23:51:30]written 0, free lines is 4095 [23:51:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 16 4B 47 00 43 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 35 33 38 39 10 04 04 00 50 7C 00 00 F4 03 04 00 93 B3 96 66 B6 04 01 00 00 AA CA 6C C9 78 F2 F0 18 [23:51:30]CommunicateWithHost err = 0 [23:51:30]CheckOFDResponse [23:51:30]1017 (14) - 77093643461234 [23:51:30]1041 (16) - 0000000000965389 [23:51:30]1040 (4) - 31824 [23:51:30]1012 (4) - 16.07.2024 17:53 [23:51:30]1206 (1) - 0 [23:51:30]OFD Sender: Remove packet 31824 [23:51:30]ProducePacketName [23:51:30]name=ofd_packets/00031824 [23:51:30]NVStorageDeleteData [23:51:31]Write to MH i2c: 01 00 00 EF 35 24 [23:51:31]Write i2c OK [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: 01 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: 01 07 00 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: 01 07 00 EF 35 00 00 00 00 00 D7 0C 0E [23:51:31]RasterBufferAndPrint [23:51:31]line [23:51:31]line [23:51:31]line [23:51:31]line [23:51:31]line [23:51:31]written 0, free lines is 3296 [23:51:31]MH_Cut [23:51:31]Write to MH i2c: D1 01 00 F6 35 01 FD [23:51:31]Write i2c OK [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: D1 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: D1 01 00 [23:51:31]MH_I2C_Read... [23:51:31]Read from MH i2c: D1 01 00 F6 35 00 FC [23:51:31]Write to MH i2c: 01 00 00 F7 35 2C [23:51:31]Write i2c OK [23:51:31]MH_I2C_Read... [23:51:31]OFD Sender: No OFD packet to send [23:51:31]*** Cut start [23:51:31]*** Partial cut [23:51:31]*** CUTSNS_PIN = 1 [23:51:31]*** CUTSNS_PIN = 0 [23:51:32]*** Brake cut motor [23:51:32]Read from MH i2c: 01 [23:51:32]MH_I2C_Read... [23:51:32]*** Stop cut motor [23:51:32]*** Cut end [23:51:32]Read from MH i2c: 01 07 00 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: 01 07 00 F7 35 00 00 00 00 00 FF 0F 41 [23:51:32]process_action close_receipt done [23:51:32]requested_data is exist [23:51:32]produce_requested_data [23:51:32]requested_item fm.sn is exist - process it [23:51:32]wFMCommunicate request_size=4 [23:51:32]MH_SAM_APDU [23:51:32]CAPDU: 80 11 00 00 [23:51:32]Write to MH i2c: E2 08 00 F8 35 80 11 00 00 00 00 00 00 A7 [23:51:32]Write i2c OK [23:51:32]MH_I2C_Read... [23:51:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:32]Read from MH i2c: E2 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 17 00 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 17 00 F8 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 02 [23:51:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:51:32]wFMCommunicate OK [23:51:32]requested_item fd.num is exist - process it [23:51:32]SAM_PROTO_GetFieldsCounters [23:51:32]wFMCommunicate request_size=4 [23:51:32]MH_SAM_APDU [23:51:32]CAPDU: 80 13 00 00 [23:51:32]Write to MH i2c: E2 08 00 F9 35 80 13 00 00 00 00 00 00 AA [23:51:32]Write i2c OK [23:51:32]MH_I2C_Read... [23:51:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:32]Read from MH i2c: E2 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 62 00 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 62 00 F9 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 50 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [23:51: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 50 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:32]wFMCommunicate OK [23:51:32]SAM_PROTO_GetFieldsCounters done [23:51:32]requested_item shift.num is exist - process it [23:51:32]requested_item shift.opened is exist - process it [23:51:32]req_shift_opened [23:51:32]FM_GetShiftState [23:51:32]SAM_PROTO_GetShiftState [23:51:32]wFMCommunicate request_size=4 [23:51:32]MH_SAM_APDU [23:51:32]CAPDU: 80 13 01 00 [23:51:32]Write to MH i2c: E2 08 00 FA 35 80 13 01 00 00 00 00 00 AC [23:51:32]Write i2c OK [23:51:32]MH_I2C_Read... [23:51:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:32]Read from MH i2c: E2 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 0E 00 [23:51:32]MH_I2C_Read... [23:51:32]Read from MH i2c: E2 0E 00 FA 35 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 FB [23:51:32]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:51:32]wFMCommunicate OK [23:51:32]SAM_PROTO_GetShiftState done [23:51:32]FM_GetShiftState done [23:51:32]req_shift_opened done [23:51:32]requested_item shift.open_date is exist - process it [23:51:32]req_shift_open_date [23:51:32]req_shift_open_date done [23:51:32]produce_requested_data done [23:51:32]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31824,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [23:51:32]process_action_free close_receipt [23:51:32]json_value_free [23:51:32]json_value_free done [23:51:32]process_json_proto returns [23:51:32]Send response to host [23:51:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31824,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [23:51:32]free response buf [23:51:32]execute_script done [23:51:32]execute_script returns [23:51:32]free content buf [23:51:32]Sock 7.Close socket [23:51:32]Sock 7.Thread stoped [23:51:36]OFD Sender: No OFD packet to send [23:51:41]OFD Sender: No OFD packet to send [23:51:46]OFD Sender: No OFD packet to send [23:51:51]OFD Sender: No OFD packet to send [23:51:56]OFD Sender: No OFD packet to send [23:52:01]OFD Sender: No OFD packet to send [23:52:06]OFD Sender: No OFD packet to send [23:52:11]OFD Sender: No OFD packet to send [23:52:16]OFD Sender: No OFD packet to send [23:52:21]OFD Sender: No OFD packet to send [23:52:26]OFD Sender: No OFD packet to send [23:52:31]OFD Sender: No OFD packet to send [23:52:36]OFD Sender: No OFD packet to send [23:52:41]OFD Sender: No OFD packet to send [23:52:46]OFD Sender: No OFD packet to send [23:52:51]OFD Sender: No OFD packet to send [23:52:56]OFD Sender: No OFD packet to send [23:53:01]OFD Sender: No OFD packet to send [23:53:06]OFD Sender: No OFD packet to send [23:53:11]OFD Sender: No OFD packet to send [23:53:16]OFD Sender: No OFD packet to send [23:53:21]OFD Sender: No OFD packet to send [23:53:26]OFD Sender: No OFD packet to send [23:53:31]OFD Sender: No OFD packet to send [23:53:36]OFD Sender: No OFD packet to send [23:53:41]OFD Sender: No OFD packet to send [23:53:46]OFD Sender: No OFD packet to send [23:53:51]OFD Sender: No OFD packet to send [23:53:56]OFD Sender: No OFD packet to send [23:54:01]OFD Sender: No OFD packet to send [23:54:06]OFD Sender: No OFD packet to send [23:54:11]OFD Sender: No OFD packet to send [23:54:16]OFD Sender: No OFD packet to send [23:54:21]OFD Sender: No OFD packet to send [23:54:26]OFD Sender: No OFD packet to send [23:54:31]OFD Sender: No OFD packet to send [23:54:36]OFD Sender: No OFD packet to send [23:54:41]OFD Sender: No OFD packet to send [23:54:46]OFD Sender: No OFD packet to send [23:54:51]OFD Sender: No OFD packet to send [23:54:56]OFD Sender: No OFD packet to send [23:55:01]OFD Sender: No OFD packet to send [23:55:06]OFD Sender: No OFD packet to send [23:55:07]accept exits with 9 [23:55:07]New connection [23:55:07]New thread 3066965348 created [23:55:07]Thread 3066821988 joined [23:55:07]Waiting for new connection... [23:55:07] Sock 9.Parse request [23:55:07]Sock 9.Check first char [23:55:07]Sock 9.First char is OK [23:55:07]request: POST /json_proto HTTP/1.0 [23:55:07]Method: POST [23:55:07]URL: /json_proto [23:55:07]Method is POST - this is cgi request [23:55:07]url: /json_proto [23:55:07]query_string will be loaded in cgi processing [23:55:07]execute_cgi json_proto POST (null) [23:55:07]execute_cgi path=json_proto method=POST [23:55:07]POST find Content-Length [23:55:07]Host: 172.17.39.68:8080 [23:55:07]Content-Length: 215 [23:55:07]Content-Type: application/json [23:55:07] [23:55:07]POST finish read [23:55:07]Found Content-Length = 215 [23:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:07]execute_script... [23:55:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:07]POST & json_proto [23:55:07]process_json_proto [23:55:07]json parsed OK: [23:55:07]protocol is kg_v1.0 [23:55:07]action value=get_value [23:55:07]process_action get_value [23:55:07]cmd_get_value [23:55:07]process_action get_value done [23:55:07]requested_data is exist [23:55:07]produce_requested_data [23:55:07]requested_item kkm.sn is exist - process it [23:55:07]requested_item kkm.ver is exist - process it [23:55:07]requested_item fm.sn is exist - process it [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 11 00 00 [23:55:07]Write to MH i2c: E2 08 00 FB 35 80 11 00 00 00 00 00 00 AA [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 17 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 17 00 FB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 05 [23:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:55:07]wFMCommunicate OK [23:55:07]requested_item fd.num is exist - process it [23:55:07]SAM_PROTO_GetFieldsCounters [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 13 00 00 [23:55:07]Write to MH i2c: E2 08 00 FC 35 80 13 00 00 00 00 00 00 AD [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 62 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 62 00 FC 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 50 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 C2 [23:55:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 50 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:07]wFMCommunicate OK [23:55:07]SAM_PROTO_GetFieldsCounters done [23:55:07]requested_item shift.num is exist - process it [23:55:07]requested_item shift.opened is exist - process it [23:55:07]req_shift_opened [23:55:07]FM_GetShiftState [23:55:07]SAM_PROTO_GetShiftState [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 13 01 00 [23:55:07]Write to MH i2c: E2 08 00 FD 35 80 13 01 00 00 00 00 00 AF [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:07]Read from MH i2c: E2 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 0E 00 [23:55:07]MH_I2C_Read... [23:55:07]Read from MH i2c: E2 0E 00 FD 35 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 FE [23:55:07]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:55:07]wFMCommunicate OK [23:55:07]SAM_PROTO_GetShiftState done [23:55:07]FM_GetShiftState done [23:55:07]req_shift_opened done [23:55:07]requested_item shift.open_date is exist - process it [23:55:07]req_shift_open_date [23:55:07]req_shift_open_date done [23:55:07]produce_requested_data done [23:55:07]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31824,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [23:55:07]process_action_free get_value [23:55:07]json_value_free [23:55:07]json_value_free done [23:55:07]process_json_proto returns [23:55:07]Send response to host [23:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31824,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [23:55:07]free response buf [23:55:07]execute_script done [23:55:07]execute_script returns [23:55:07]free content buf [23:55:07]Sock 9.Close socket [23:55:07]Sock 9.Thread stoped [23:55:07]accept exits with 7 [23:55:07]New connection [23:55:07]New thread 3066821988 created [23:55:07]Thread 3066965348 joined [23:55:07]Waiting for new connection... [23:55:07] Sock 7.Parse request [23:55:07]Sock 7.Check first char [23:55:07]Sock 7.First char is OK [23:55:07]request: POST /json_proto HTTP/1.0 [23:55:07]Method: POST [23:55:07]URL: /json_proto [23:55:07]Method is POST - this is cgi request [23:55:07]url: /json_proto [23:55:07]query_string will be loaded in cgi processing [23:55:07]execute_cgi json_proto POST (null) [23:55:07]execute_cgi path=json_proto method=POST [23:55:07]POST find Content-Length [23:55:07]Host: 172.17.39.68:8080 [23:55:07]Content-Length: 331 [23:55:07]Content-Type: application/json [23:55:07] [23:55:07]POST finish read [23:55:07]Found Content-Length = 331 [23:55:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:07]execute_script... [23:55:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:07]POST & json_proto [23:55:07]process_json_proto [23:55:07]json parsed OK: [23:55:07]protocol is kg_v1.0 [23:55:07]action value=get_value [23:55:07]process_action get_value [23:55:07]cmd_get_value [23:55:07]process_action get_value done [23:55:07]requested_data is exist [23:55:07]produce_requested_data [23:55:07]requested_item fm.sale.total is exist - process it [23:55:07]SAM_PROTO_GetFMData [23:55:07]wFMCommunicate request_size=4 [23:55:07]MH_SAM_APDU [23:55:07]CAPDU: 80 13 03 00 [23:55:07]Write to MH i2c: E2 08 00 FE 35 80 13 03 00 00 00 00 00 B2 [23:55:07]Write i2c OK [23:55:07]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 FE 35 00 B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 D3 [23:55:08]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 17 00 00 [23:55:08]Write to MH i2c: E2 08 00 FF 35 80 17 00 00 00 00 00 00 B4 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 FF 35 00 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 E5 [23:55:08]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 17 00 00 [23:55:08]Write to MH i2c: E2 08 00 00 36 80 17 00 00 00 00 00 00 B6 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 00 36 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [23:55:08]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 17 00 00 [23:55:08]Write to MH i2c: E2 08 00 01 36 80 17 00 00 00 00 00 00 B7 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 FD 00 01 36 00 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 90 00 2C [23:55:08]RAPDU: 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 90 00 [23:55:08]wFMCommunicate OK [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 17 00 00 [23:55:08]Write to MH i2c: E2 08 00 02 36 80 17 00 00 00 00 00 00 B8 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 D4 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 D4 00 02 36 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 A9 [23:55:09]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:09]wFMCommunicate OK [23:55:09]SAM_PROTO_GetFMData done [23:55:09]requested_item fm.sale_refund.total is exist - process it [23:55:09]requested_item fm.buy.total is exist - process it [23:55:09]requested_item shift.sale.total is exist - process it [23:55:09]SAM_PROTO_GetShiftData [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 13 02 00 [23:55:09]Write to MH i2c: E2 08 00 03 36 80 13 02 00 00 00 00 00 B7 [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 03 36 00 AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 CB [23:55:09]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:55:09]wFMCommunicate OK [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 17 00 00 [23:55:09]Write to MH i2c: E2 08 00 04 36 80 17 00 00 00 00 00 00 BA [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 FD 00 04 36 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 DC [23:55:09]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:55:09]wFMCommunicate OK [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 17 00 00 [23:55:09]Write to MH i2c: E2 08 00 05 36 80 17 00 00 00 00 00 00 BB [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:10]Read from MH i2c: E2 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 05 36 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [23:55:10]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:10]wFMCommunicate OK [23:55:10]wFMCommunicate request_size=4 [23:55:10]MH_SAM_APDU [23:55:10]CAPDU: 80 17 00 00 [23:55:10]Write to MH i2c: E2 08 00 06 36 80 17 00 00 00 00 00 00 BC [23:55:10]Write i2c OK [23:55:10]MH_I2C_Read... [23:55:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:10]Read from MH i2c: E2 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 FD 00 06 36 00 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 90 00 2E [23:55:10]RAPDU: 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 90 00 [23:55:10]wFMCommunicate OK [23:55:10]wFMCommunicate request_size=4 [23:55:10]MH_SAM_APDU [23:55:10]CAPDU: 80 17 00 00 [23:55:10]Write to MH i2c: E2 08 00 07 36 80 17 00 00 00 00 00 00 BD [23:55:10]Write i2c OK [23:55:10]MH_I2C_Read... [23:55:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:55:10]Read from MH i2c: E2 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 CB 00 [23:55:10]MH_I2C_Read... [23:55:10]Read from MH i2c: E2 CB 00 07 36 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A6 [23:55:10]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:10]wFMCommunicate OK [23:55:10]SAM_PROTO_GetShiftData done [23:55:10]requested_item shift.sale.total_cash is exist - process it [23:55:10]requested_item shift.sale_refund.total is exist - process it [23:55:10]requested_item shift.sale_refund.total_cash is exist - process it [23:55:10]requested_item shift.buy.total is exist - process it [23:55:10]requested_item shift.buy.total_cash is exist - process it [23:55:10]produce_requested_data done [23:55:10]produce_requested_data return {"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":30865.00,"shift.sale.total_cash":29073.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} [23:55:10]process_action_free get_value [23:55:10]json_value_free [23:55:10]json_value_free done [23:55:10]process_json_proto returns [23:55:10]Send response to host [23:55:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":30865.00,"shift.sale.total_cash":29073.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}}} [23:55:10]free response buf [23:55:10]execute_script done [23:55:10]execute_script returns [23:55:10]free content buf [23:55:10]Sock 7.Close socket [23:55:10]Sock 7.Thread stoped [23:55:10]accept exits with 9 [23:55:10]New connection [23:55:10]New thread 3066965348 created [23:55:10]Thread 3066821988 joined [23:55:10]Waiting for new connection... [23:55:10] Sock 9.Parse request [23:55:10]Sock 9.Check first char [23:55:10]Sock 9.First char is OK [23:55:10]request: POST /json_proto HTTP/1.0 [23:55:10]Method: POST [23:55:10]URL: /json_proto [23:55:10]Method is POST - this is cgi request [23:55:10]url: /json_proto [23:55:10]query_string will be loaded in cgi processing [23:55:10]execute_cgi json_proto POST (null) [23:55:10]execute_cgi path=json_proto method=POST [23:55:10]POST find Content-Length [23:55:10]Host: 172.17.39.68:8080 [23:55:10]Content-Length: 331 [23:55:10]Content-Type: application/json [23:55:10] [23:55:10]POST finish read [23:55:10]Found Content-Length = 331 [23:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:10]execute_script... [23:55:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:10]POST & json_proto [23:55:10]process_json_proto [23:55:10]json parsed OK: [23:55:10]protocol is kg_v1.0 [23:55:10]action value=get_value [23:55:10]process_action get_value [23:55:10]cmd_get_value [23:55:10]process_action get_value done [23:55:10]requested_data is exist [23:55:10]produce_requested_data [23:55:10]requested_item fm.sale.total is exist - process it [23:55:10]SAM_PROTO_GetFMData [23:55:10]wFMCommunicate request_size=4 [23:55:10]MH_SAM_APDU [23:55:10]CAPDU: 80 13 03 00 [23:55:10]Write to MH i2c: E2 08 00 08 36 80 13 03 00 00 00 00 00 BD [23:55:10]Write i2c OK [23:55:10]MH_I2C_Read... [23:55:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 FD 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 FD 00 08 36 00 B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 DE [23:55:11]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:55:11]wFMCommunicate OK [23:55:11]wFMCommunicate request_size=4 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 17 00 00 [23:55:11]Write to MH i2c: E2 08 00 09 36 80 17 00 00 00 00 00 00 BF [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:11]OFD Sender: No OFD packet to send [23:55:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:11]Read from MH i2c: E2 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 FD 00 [23:55:11]MH_I2C_Read... [23:55:11]Read from MH i2c: E2 FD 00 09 36 00 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 F0 [23:55:11]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 [23:55:11]wFMCommunicate OK [23:55:11]wFMCommunicate request_size=4 [23:55:11]MH_SAM_APDU [23:55:11]CAPDU: 80 17 00 00 [23:55:11]Write to MH i2c: E2 08 00 0A 36 80 17 00 00 00 00 00 00 C0 [23:55:11]Write i2c OK [23:55:11]MH_I2C_Read... [23:55:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 FD 00 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 FD 00 0A 36 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 65 [23:55:12]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:12]wFMCommunicate OK [23:55:12]wFMCommunicate request_size=4 [23:55:12]MH_SAM_APDU [23:55:12]CAPDU: 80 17 00 00 [23:55:12]Write to MH i2c: E2 08 00 0B 36 80 17 00 00 00 00 00 00 C1 [23:55:12]Write i2c OK [23:55:12]MH_I2C_Read... [23:55:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 FD 00 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 FD 00 0B 36 00 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 90 00 36 [23:55:12]RAPDU: 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 90 00 [23:55:12]wFMCommunicate OK [23:55:12]wFMCommunicate request_size=4 [23:55:12]MH_SAM_APDU [23:55:12]CAPDU: 80 17 00 00 [23:55:12]Write to MH i2c: E2 08 00 0C 36 80 17 00 00 00 00 00 00 C2 [23:55:12]Write i2c OK [23:55:12]MH_I2C_Read... [23:55:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:55:12]Read from MH i2c: E2 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 D4 00 [23:55:12]MH_I2C_Read... [23:55:12]Read from MH i2c: E2 D4 00 0C 36 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 B3 [23:55:12]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:12]wFMCommunicate OK [23:55:12]SAM_PROTO_GetFMData done [23:55:12]requested_item fm.sale_refund.total is exist - process it [23:55:12]requested_item fm.buy.total is exist - process it [23:55:12]requested_item shift.sale.total is exist - process it [23:55:12]SAM_PROTO_GetShiftData [23:55:12]wFMCommunicate request_size=4 [23:55:12]MH_SAM_APDU [23:55:12]CAPDU: 80 13 02 00 [23:55:12]Write to MH i2c: E2 08 00 0D 36 80 13 02 00 00 00 00 00 C1 [23:55:12]Write i2c OK [23:55:12]MH_I2C_Read... [23:55:13]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:13]Read from MH i2c: E2 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 FD 00 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 FD 00 0D 36 00 AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 D5 [23:55:13]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:55:13]wFMCommunicate OK [23:55:13]wFMCommunicate request_size=4 [23:55:13]MH_SAM_APDU [23:55:13]CAPDU: 80 17 00 00 [23:55:13]Write to MH i2c: E2 08 00 0E 36 80 17 00 00 00 00 00 00 C4 [23:55:13]Write i2c OK [23:55:13]MH_I2C_Read... [23:55:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:13]Read from MH i2c: E2 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 FD 00 [23:55:13]MH_I2C_Read... [23:55:13]Read from MH i2c: E2 FD 00 0E 36 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E6 [23:55:13]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:55:13]wFMCommunicate OK [23:55:13]wFMCommunicate request_size=4 [23:55:13]MH_SAM_APDU [23:55:13]CAPDU: 80 17 00 00 [23:55:13]Write to MH i2c: E2 08 00 0F 36 80 17 00 00 00 00 00 00 C5 [23:55:13]Write i2c OK [23:55:13]MH_I2C_Read... [23:55:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:14]Read from MH i2c: E2 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 0F 36 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [23:55:14]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:14]wFMCommunicate OK [23:55:14]wFMCommunicate request_size=4 [23:55:14]MH_SAM_APDU [23:55:14]CAPDU: 80 17 00 00 [23:55:14]Write to MH i2c: E2 08 00 10 36 80 17 00 00 00 00 00 00 C6 [23:55:14]Write i2c OK [23:55:14]MH_I2C_Read... [23:55:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:14]Read from MH i2c: E2 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 FD 00 10 36 00 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 90 00 38 [23:55:14]RAPDU: 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 90 00 [23:55:14]wFMCommunicate OK [23:55:14]wFMCommunicate request_size=4 [23:55:14]MH_SAM_APDU [23:55:14]CAPDU: 80 17 00 00 [23:55:14]Write to MH i2c: E2 08 00 11 36 80 17 00 00 00 00 00 00 C7 [23:55:14]Write i2c OK [23:55:14]MH_I2C_Read... [23:55:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:55:14]Read from MH i2c: E2 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 CB 00 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: E2 CB 00 11 36 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B0 [23:55:14]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:14]wFMCommunicate OK [23:55:14]SAM_PROTO_GetShiftData done [23:55:14]requested_item shift.sale.total_cash is exist - process it [23:55:14]requested_item shift.sale_refund.total is exist - process it [23:55:14]requested_item shift.sale_refund.total_cash is exist - process it [23:55:14]requested_item shift.buy.total is exist - process it [23:55:14]requested_item shift.buy.total_cash is exist - process it [23:55:14]produce_requested_data done [23:55:14]produce_requested_data return {"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":30865.00,"shift.sale.total_cash":29073.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} [23:55:14]process_action_free get_value [23:55:14]json_value_free [23:55:14]json_value_free done [23:55:14]process_json_proto returns [23:55:14]Send response to host [23:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":30865.00,"shift.sale.total_cash":29073.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}}} [23:55:14]free response buf [23:55:14]execute_script done [23:55:14]execute_script returns [23:55:14]free content buf [23:55:14]Sock 9.Close socket [23:55:14]Sock 9.Thread stoped [23:55:14]accept exits with 7 [23:55:14]New connection [23:55:14]New thread 3066821988 created [23:55:14]Thread 3066965348 joined [23:55:14]Waiting for new connection... [23:55:14] Sock 7.Parse request [23:55:14]Sock 7.Check first char [23:55:14]Sock 7.First char is OK [23:55:14]request: POST /json_proto HTTP/1.0 [23:55:14]Method: POST [23:55:14]URL: /json_proto [23:55:14]Method is POST - this is cgi request [23:55:14]url: /json_proto [23:55:14]query_string will be loaded in cgi processing [23:55:14]execute_cgi json_proto POST (null) [23:55:14]execute_cgi path=json_proto method=POST [23:55:14]POST find Content-Length [23:55:14]Host: 172.17.39.68:8080 [23:55:14]Content-Length: 269 [23:55:14]Content-Type: application/json [23:55:14] [23:55:14]POST finish read [23:55:14]Found Content-Length = 269 [23:55:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:14]execute_script... [23:55:14]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:14]POST & json_proto [23:55:14]process_json_proto [23:55:14]json parsed OK: [23:55:14]protocol is kg_v1.0 [23:55:14]action value=x_report [23:55:14]process_action x_report [23:55:14]cmd_x_report [23:55:14]MH_GetDate [23:55:14]Write to MH i2c: F0 00 00 12 36 37 [23:55:14]Write i2c OK [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: F0 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: F0 09 00 [23:55:14]MH_I2C_Read... [23:55:14]Read from MH i2c: F0 09 00 12 36 00 69 08 97 66 D6 48 95 66 C7 [23:55:14]GetLastDocTimeStamp 1721173895 [23:55:14]current date 1721174121 [23:55:14]FM_GetShiftState [23:55:14]SAM_PROTO_GetShiftState [23:55:14]wFMCommunicate request_size=4 [23:55:14]MH_SAM_APDU [23:55:14]CAPDU: 80 13 01 00 [23:55:14]Write to MH i2c: E2 08 00 13 36 80 13 01 00 00 00 00 00 C6 [23:55:14]Write i2c OK [23:55:14]MH_I2C_Read... [23:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:15]Read from MH i2c: E2 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 0E 00 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 0E 00 13 36 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 15 [23:55:15]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:55:15]wFMCommunicate OK [23:55:15]SAM_PROTO_GetShiftState done [23:55:15]FM_GetShiftState done [23:55:15]KKMCreateXReportDocument [23:55:15]Load OK [23:55:15]Malloc new data [23:55:15]MH_GetDate [23:55:15]Write to MH i2c: F0 00 00 14 36 39 [23:55:15]Write i2c OK [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: F0 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: F0 09 00 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: F0 09 00 14 36 00 6A 08 97 66 D6 48 95 66 CA [23:55:15]Malloc new data [23:55:15]Malloc new data [23:55:15]wFMCommunicate request_size=4 [23:55:15]MH_SAM_APDU [23:55:15]CAPDU: 80 11 00 00 [23:55:15]Write to MH i2c: E2 08 00 15 36 80 11 00 00 00 00 00 00 C5 [23:55:15]Write i2c OK [23:55:15]MH_I2C_Read... [23:55:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:15]Read from MH i2c: E2 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 17 00 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 17 00 15 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 20 [23:55:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:55:15]wFMCommunicate OK [23:55:15]SAM_PROTO_GetFieldsCounters [23:55:15]wFMCommunicate request_size=4 [23:55:15]MH_SAM_APDU [23:55:15]CAPDU: 80 13 00 00 [23:55:15]Write to MH i2c: E2 08 00 16 36 80 13 00 00 00 00 00 00 C8 [23:55:15]Write i2c OK [23:55:15]MH_I2C_Read... [23:55:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:15]Read from MH i2c: E2 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 62 00 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 62 00 16 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 50 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [23:55:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 50 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:15]wFMCommunicate OK [23:55:15]SAM_PROTO_GetFieldsCounters done [23:55:15]Malloc new data [23:55:15]Malloc new data [23:55:15]Malloc new data [23:55:15]KKMCreateXReportDocument OK [23:55:15]KKMSetXReportData OK [23:55:15]KKMPrepareXReportFMData [23:55:15]SAM_PROTO_GetShiftData [23:55:15]wFMCommunicate request_size=4 [23:55:15]MH_SAM_APDU [23:55:15]CAPDU: 80 13 02 00 [23:55:15]Write to MH i2c: E2 08 00 17 36 80 13 02 00 00 00 00 00 CB [23:55:15]Write i2c OK [23:55:15]MH_I2C_Read... [23:55:15]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:15]Read from MH i2c: E2 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 FD 00 [23:55:15]MH_I2C_Read... [23:55:15]Read from MH i2c: E2 FD 00 17 36 00 AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 DF [23:55:15]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:55:16]wFMCommunicate OK [23:55:16]wFMCommunicate request_size=4 [23:55:16]MH_SAM_APDU [23:55:16]CAPDU: 80 17 00 00 [23:55:16]Write to MH i2c: E2 08 00 18 36 80 17 00 00 00 00 00 00 CE [23:55:16]Write i2c OK [23:55:16]MH_I2C_Read... [23:55:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:16]Read from MH i2c: E2 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 FD 00 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 FD 00 18 36 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F0 [23:55:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:55:16]wFMCommunicate OK [23:55:16]wFMCommunicate request_size=4 [23:55:16]MH_SAM_APDU [23:55:16]CAPDU: 80 17 00 00 [23:55:16]Write to MH i2c: E2 08 00 19 36 80 17 00 00 00 00 00 00 CF [23:55:16]Write i2c OK [23:55:16]MH_I2C_Read... [23:55:16]OFD Sender: No OFD packet to send [23:55:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:16]Read from MH i2c: E2 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 FD 00 [23:55:16]MH_I2C_Read... [23:55:16]Read from MH i2c: E2 FD 00 19 36 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 86 [23:55:16]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:16]wFMCommunicate OK [23:55:16]wFMCommunicate request_size=4 [23:55:16]MH_SAM_APDU [23:55:16]CAPDU: 80 17 00 00 [23:55:16]Write to MH i2c: E2 08 00 1A 36 80 17 00 00 00 00 00 00 D0 [23:55:16]Write i2c OK [23:55:16]MH_I2C_Read... [23:55:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:17]Read from MH i2c: E2 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 FD 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 FD 00 1A 36 00 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 90 00 42 [23:55:17]RAPDU: 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 90 00 [23:55:17]wFMCommunicate OK [23:55:17]wFMCommunicate request_size=4 [23:55:17]MH_SAM_APDU [23:55:17]CAPDU: 80 17 00 00 [23:55:17]Write to MH i2c: E2 08 00 1B 36 80 17 00 00 00 00 00 00 D1 [23:55:17]Write i2c OK [23:55:17]MH_I2C_Read... [23:55:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:55:17]Read from MH i2c: E2 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 CB 00 [23:55:17]MH_I2C_Read... [23:55:17]Read from MH i2c: E2 CB 00 1B 36 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BA [23:55:17]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:17]wFMCommunicate OK [23:55:17]SAM_PROTO_GetShiftData done [23:55:17]1194 (1194) - счетчики итогов смены [23:55:17] 1134 (4) - 143 - количество чеков со всеми признаками расчетов [23:55:17] 1129 (155) - счетчики операций «приход» [23:55:17] 1135 (4) - 143 - количество чеков по признаку расчетов [23:55:17] 1201 (3) - 30865.00 - общая итоговая сумма в чеках [23:55:17] 1136 (3) - 29073.00 - итоговая сумма в чеках наличными [23:55:17] 1138 (3) - 1792.00 - итоговая сумма в чеках безналичными [23:55:17] 1024 (122) - суммы налогов [23:55:17] 1006 (9) - суммы НДС [23:55:17] 1010 (1) - 0% - код ставки НДС [23:55:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:17] 1006 (12) - суммы НДС [23:55:17] 1010 (1) - 12% - код ставки НДС [23:55:17] 1011 (3) - 3277.51 - сумма НДС по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 0% - код ставки НСП [23:55:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:17] 1007 (11) - суммы НСП [23:55:17] 1014 (1) - 1% - код ставки НСП [23:55:17] 1015 (2) - 273.06 - сумма НСП по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 2% - код ставки НСП [23:55:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 3% - код ставки НСП [23:55:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 5% - код ставки НСП [23:55:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 0,50% - код ставки НСП [23:55:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 1,50% - код ставки НСП [23:55:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:17] 1130 (141) - счетчики операций «возврат прихода» [23:55:17] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:17] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:17] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:17] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:17] 1024 (117) - суммы налогов [23:55:17] 1006 (9) - суммы НДС [23:55:17] 1010 (1) - 0% - код ставки НДС [23:55:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:17] 1006 (9) - суммы НДС [23:55:17] 1010 (1) - 12% - код ставки НДС [23:55:17] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 0% - код ставки НСП [23:55:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 1% - код ставки НСП [23:55:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 2% - код ставки НСП [23:55:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 3% - код ставки НСП [23:55:17] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:17] 1007 (9) - суммы НСП [23:55:17] 1014 (1) - 5% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 0,50% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 1,50% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1131 (141) - счетчики операций «расход» [23:55:18] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:18] 1024 (117) - суммы налогов [23:55:18] 1006 (9) - суммы НДС [23:55:18] 1010 (1) - 0% - код ставки НДС [23:55:18] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:18] 1006 (9) - суммы НДС [23:55:18] 1010 (1) - 12% - код ставки НДС [23:55:18] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 0% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 1% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 2% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 3% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 5% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 0,50% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 1,50% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1132 (141) - счетчики операций «возврат расхода» [23:55:18] 1135 (4) - 0 - количество чеков по признаку расчетов [23:55:18] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:55:18] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:55:18] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:55:18] 1024 (117) - суммы налогов [23:55:18] 1006 (9) - суммы НДС [23:55:18] 1010 (1) - 0% - код ставки НДС [23:55:18] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:18] 1006 (9) - суммы НДС [23:55:18] 1010 (1) - 12% - код ставки НДС [23:55:18] 1011 (0) - 0.00 - сумма НДС по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 0% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 1% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 2% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 3% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 5% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 0,50% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1007 (9) - суммы НСП [23:55:18] 1014 (1) - 1,50% - код ставки НСП [23:55:18] 1015 (0) - 0.00 - сумма НСП по ставке [23:55:18] 1133 (588) - - счетчики коррекции - не используются [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1194 (04AA) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1134 (046E) [23:55:18]Malloc new data [23:55:18]Processing tag 1129 (0469) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1135 (046F) [23:55:18]Malloc new data [23:55:18]Processing tag 1201 (04B1) [23:55:18]Malloc new data [23:55:18]Processing tag 1136 (0470) [23:55:18]Malloc new data [23:55:18]Processing tag 1138 (0472) [23:55:18]Malloc new data [23:55:18]Processing tag 1024 (0400) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1006 (03EE) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1010 (03F2) [23:55:18]Malloc new data [23:55:18]Processing tag 1011 (03F3) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1006 (03EE) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1010 (03F2) [23:55:18]Malloc new data [23:55:18]Processing tag 1011 (03F3) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]SetTLVBufToDocument err=0 [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1130 (046A) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1135 (046F) [23:55:18]Malloc new data [23:55:18]Processing tag 1201 (04B1) [23:55:18]Malloc new data [23:55:18]Processing tag 1136 (0470) [23:55:18]Malloc new data [23:55:18]Processing tag 1138 (0472) [23:55:18]Malloc new data [23:55:18]Processing tag 1024 (0400) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1006 (03EE) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1010 (03F2) [23:55:18]Malloc new data [23:55:18]Processing tag 1011 (03F3) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1006 (03EE) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1010 (03F2) [23:55:18]Malloc new data [23:55:18]Processing tag 1011 (03F3) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]SetTLVBufToDocument err=0 [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1131 (046B) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1135 (046F) [23:55:18]Malloc new data [23:55:18]Processing tag 1201 (04B1) [23:55:18]Malloc new data [23:55:18]Processing tag 1136 (0470) [23:55:18]Malloc new data [23:55:18]Processing tag 1138 (0472) [23:55:18]Malloc new data [23:55:18]Processing tag 1024 (0400) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1006 (03EE) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1010 (03F2) [23:55:18]Malloc new data [23:55:18]Processing tag 1011 (03F3) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1006 (03EE) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1010 (03F2) [23:55:18]Malloc new data [23:55:18]Processing tag 1011 (03F3) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]SetTLVBufToDocument err=0 [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1132 (046C) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1135 (046F) [23:55:18]Malloc new data [23:55:18]Processing tag 1201 (04B1) [23:55:18]Malloc new data [23:55:18]Processing tag 1136 (0470) [23:55:18]Malloc new data [23:55:18]Processing tag 1138 (0472) [23:55:18]Malloc new data [23:55:18]Processing tag 1024 (0400) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1006 (03EE) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1010 (03F2) [23:55:18]Malloc new data [23:55:18]Processing tag 1011 (03F3) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1006 (03EE) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1010 (03F2) [23:55:18]Malloc new data [23:55:18]Processing tag 1011 (03F3) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:18]SetTLVBufToDocument err=0 [23:55:18]Processing tag 1007 (03EF) [23:55:18]Load OK [23:55:18]SetTLVBufToDocument [23:55:18]Processing tag 1014 (03F6) [23:55:18]Malloc new data [23:55:18]Processing tag 1015 (03F7) [23:55:18]Malloc new data [23:55:19]SetTLVBufToDocument err=0 [23:55:19]Processing tag 1007 (03EF) [23:55:19]Load OK [23:55:19]SetTLVBufToDocument [23:55:19]Processing tag 1014 (03F6) [23:55:19]Malloc new data [23:55:19]Processing tag 1015 (03F7) [23:55:19]Malloc new data [23:55:19]SetTLVBufToDocument err=0 [23:55:19]Processing tag 1007 (03EF) [23:55:19]Load OK [23:55:19]SetTLVBufToDocument [23:55:19]Processing tag 1014 (03F6) [23:55:19]Malloc new data [23:55:19]Processing tag 1015 (03F7) [23:55:19]Malloc new data [23:55:19]SetTLVBufToDocument err=0 [23:55:19]Processing tag 1007 (03EF) [23:55:19]Load OK [23:55:19]SetTLVBufToDocument [23:55:19]Processing tag 1014 (03F6) [23:55:19]Malloc new data [23:55:19]Processing tag 1015 (03F7) [23:55:19]Malloc new data [23:55:19]SetTLVBufToDocument err=0 [23:55:19]Processing tag 1007 (03EF) [23:55:19]Load OK [23:55:19]SetTLVBufToDocument [23:55:19]Processing tag 1014 (03F6) [23:55:19]Malloc new data [23:55:19]Processing tag 1015 (03F7) [23:55:19]Malloc new data [23:55:19]SetTLVBufToDocument err=0 [23:55:19]Processing tag 1007 (03EF) [23:55:19]Load OK [23:55:19]SetTLVBufToDocument [23:55:19]Processing tag 1014 (03F6) [23:55:19]Malloc new data [23:55:19]Processing tag 1015 (03F7) [23:55:19]Malloc new data [23:55:19]SetTLVBufToDocument err=0 [23:55:19]SetTLVBufToDocument err=0 [23:55:19]SetTLVBufToDocument err=0 [23:55:19]Processing tag 1133 (046D) [23:55:19]Malloc new data [23:55:19]SetTLVBufToDocument err=0 [23:55:19]SetTLVBufToDocument err=0 [23:55:19]Malloc new data [23:55:19]SAM_PROTO_GetFMData [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 13 03 00 [23:55:19]Write to MH i2c: E2 08 00 1C 36 80 13 03 00 00 00 00 00 D1 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:19]Read from MH i2c: E2 FD 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 FD 00 1C 36 00 B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 F2 [23:55:19]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:55:19]wFMCommunicate OK [23:55:19]wFMCommunicate request_size=4 [23:55:19]MH_SAM_APDU [23:55:19]CAPDU: 80 17 00 00 [23:55:19]Write to MH i2c: E2 08 00 1D 36 80 17 00 00 00 00 00 00 D3 [23:55:19]Write i2c OK [23:55:19]MH_I2C_Read... [23:55:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:19]Read from MH i2c: E2 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 FD 00 [23:55:19]MH_I2C_Read... [23:55:19]Read from MH i2c: E2 FD 00 1D 36 00 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 04 [23:55:20]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 [23:55:20]wFMCommunicate OK [23:55:20]wFMCommunicate request_size=4 [23:55:20]MH_SAM_APDU [23:55:20]CAPDU: 80 17 00 00 [23:55:20]Write to MH i2c: E2 08 00 1E 36 80 17 00 00 00 00 00 00 D4 [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:20]Read from MH i2c: E2 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 FD 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 FD 00 1E 36 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 79 [23:55:20]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:20]wFMCommunicate OK [23:55:20]wFMCommunicate request_size=4 [23:55:20]MH_SAM_APDU [23:55:20]CAPDU: 80 17 00 00 [23:55:20]Write to MH i2c: E2 08 00 1F 36 80 17 00 00 00 00 00 00 D5 [23:55:20]Write i2c OK [23:55:20]MH_I2C_Read... [23:55:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:20]Read from MH i2c: E2 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 FD 00 [23:55:20]MH_I2C_Read... [23:55:20]Read from MH i2c: E2 FD 00 1F 36 00 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 90 00 4A [23:55:21]RAPDU: 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 90 00 [23:55:21]wFMCommunicate OK [23:55:21]wFMCommunicate request_size=4 [23:55:21]MH_SAM_APDU [23:55:21]CAPDU: 80 17 00 00 [23:55:21]Write to MH i2c: E2 08 00 20 36 80 17 00 00 00 00 00 00 D6 [23:55:21]Write i2c OK [23:55:21]MH_I2C_Read... [23:55:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:55:21]Read from MH i2c: E2 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 D4 00 [23:55:21]MH_I2C_Read... [23:55:21]Read from MH i2c: E2 D4 00 20 36 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 C7 [23:55:21]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:55:21]wFMCommunicate OK [23:55:21]SAM_PROTO_GetFMData done [23:55:21]FM_GetFMData:85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 02 OFD Sender: No OFD packet to send [23:55:21]EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:22]oper:6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:22]total:DC 19 39 25 [23:55:22]Malloc new data [23:55:22]oper:6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 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 [23:55:22]total:C8 [23:55:22]Malloc new data [23:55:22]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:22]total: [23:55:22]Malloc new data [23:55:22]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:55:22]total: [23:55:22]Malloc new data [23:55:22]KKMPrepareXReportFMData err=0 [23:55:22]Х отчет ИНН: 02508201610067 Кассир: Дуйшенбек у Н. 16.07.2024 23:55 Смена: 266 РНМ: 0000000000098025 ЗНМ: 0300000189 СНО: Общий режим Всего чеков: 143 ИТОГИ ПРИХОД Чеков: 143 Общий итог: 30865.00 Итого наличными: 29073.00 Итого безнал.: 1792.00 НДС 0% : 0.00 НДС 12% : 3277.51 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 273.06 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 29073.00 НС Приход: 6244991.64 НС Возвр.Прихода: 2.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965389 [23:55:22]StoreToDocumentArchive [23:55:22]MH_GetDate [23:55:22]Write to MH i2c: F0 00 00 21 36 46 [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: F0 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: F0 09 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: F0 09 00 21 36 00 71 08 97 66 D6 48 95 66 DE [23:55:22]shift 266 fd 1721174129 [23:55:22]Create dir for shift 0266 [23:55:22]save to /storage/0266/doc_1721174129 [23:55:22]save last doc name /storage/0266/doc_1721174129 to /storage/kkm_last_doc_name [23:55:22]save OK [23:55:22]Clear old archive folders... [23:55:22]NVStorageSaveData kkm_last_timestamp [23:55:22]File name is /storage/kkm_last_timestamp [23:55:22]Write 4 bytes [23:55:22]NVStorageSaveData done [23:55:22]ExternCall_PrintAddStr [23:55:22]wPrintStart [23:55:22]Write to MH i2c: 01 00 00 22 36 58 [23:55:22]Write i2c OK [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: 01 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: 01 07 00 [23:55:22]MH_I2C_Read... [23:55:22]Read from MH i2c: 01 07 00 22 36 00 00 00 00 00 FF 0F 6D [23:55:22]RasterBufferAndPrint [23:55:22]line Х отчет [23:55:22]line ИНН: 02508201610067 [23:55:22]line Кассир: Дуйшенбек у Н. [23:55:22]line 16.07.2024 23:55 [23:55:22]line Смена: 266 [23:55:22]line РНМ: 0000000000098025 [23:55:22]line ЗНМ: 0300000189 [23:55:22]line СНО: Общий режим [23:55:22]line Всего чеков: 143 [23:55:22]line ИТОГИ ПРИХОД [23:55:22]line Чеков: 143 [23:55:22]line Общий итог: 30865.00 [23:55:22]line Итого наличными: 29073.00 [23:55:22]line Итого безнал.: 1792.00 [23:55:22]line НДС 0% : 0.00 [23:55:22]line НДС 12% : 3277.51 [23:55:22]line НСП 0% : 0.00 [23:55:22]line НСП 1,50% : 0.00 [23:55:22]line НСП 0,50% : 0.00 [23:55:22]line НСП 5% : 0.00 [23:55:22]line НСП 3% : 0.00 [23:55:22]line НСП 2% : 0.00 [23:55:22]line НСП 1% : 273.06 [23:55:22]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:55:22]line Чеков: 0 [23:55:22]line Общий итог: 0.00 [23:55:22]line Итого наличными: 0.00 [23:55:22]line Итого безнал.: 0.00 [23:55:22]line НДС 0% : 0.00 [23:55:22]line НДС 12% : 0.00 [23:55:22]line НСП 0% : 0.00 [23:55:22]line НСП 1,50% : 0.00 [23:55:22]line НСП 0,50% : 0.00 [23:55:22]line НСП 5% : 0.00 [23:55:22]line НСП 3% : 0.00 [23:55:22]line НСП 2% : 0.00 [23:55:22]line НСП 1% : 0.00 [23:55:22]line ИТОГИ РАСХОД [23:55:22]line Чеков: 0 [23:55:22]line Общий итог: 0.00 [23:55:22]line Итого наличными: 0.00 [23:55:22]line Итого безнал.: 0.00 [23:55:22]line НДС 0% : 0.00 [23:55:22]line НДС 12% : 0.00 [23:55:22]line НСП 0% : 0.00 [23:55:22]line НСП 1,50% : 0.00 [23:55:22]line НСП 0,50% : 0.00 [23:55:22]line НСП 5% : 0.00 [23:55:22]line НСП 3% : 0.00 [23:55:22]line НСП 2% : 0.00 [23:55:22]line НСП 1% : 0.00 [23:55:22]line ИТОГИ ВОЗВРАТ РАСХОДА [23:55:22]line Чеков: 0 [23:55:22]line Общий итог: 0.00 [23:55:22]line Итого наличными: 0.00 [23:55:22]line Итого безнал.: 0.00 [23:55:22]line НДС 0% : 0.00 [23:55:22]line НДС 12% : 0.00 [23:55:22]line НСП 0% : 0.00 [23:55:22]line НСП 1,50% : 0.00 [23:55:22]line НСП 0,50% : 0.00 [23:55:22]line НСП 5% : 0.00 [23:55:22]line НСП 3% : 0.00 [23:55:22]line НСП 2% : 0.00 [23:55:22]line НСП 1% : 0.00 [23:55:22]line Сумма внесений: 0.00 [23:55:22]line Сумма выплат: 0.00 [23:55:22]line Нал. в кассе: 29073.00 [23:55:22]line НС Приход: 6244991.64 [23:55:22]line НС Возвр.Прихода: 2.00 [23:55:22]line НС Расход: 0.00 [23:55:22]line НС Возвр.Расхода: 0.00 [23:55:22]line ФМ: 0000000000965389 [23:55:22]written 0, free lines is 4095 [23:55:23]Write to MH i2c: 01 00 00 6D 36 A3 [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: 01 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: 01 07 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: 01 07 00 6D 36 00 00 00 00 00 B1 0A 65 [23:55:23]RasterBufferAndPrint [23:55:23]line [23:55:23]line [23:55:23]line [23:55:23]line [23:55:23]line [23:55:23]written 0, free lines is 2771 [23:55:23]MH_Cut [23:55:23]Write to MH i2c: D1 01 00 74 36 01 7C [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: D1 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: D1 01 00 [23:55:23]MH_I2C_Read... [23:55:23]Read from MH i2c: D1 01 00 74 36 00 7B [23:55:23]Write to MH i2c: 01 00 00 75 36 AB [23:55:23]Write i2c OK [23:55:23]MH_I2C_Read... [23:55:24]*** Cut start [23:55:24]*** Partial cut [23:55:24]*** CUTSNS_PIN = 1 [23:55:24]*** CUTSNS_PIN = 0 [23:55:25]*** Brake cut motor [23:55:25]Read from MH i2c: 01 [23:55:25]MH_I2C_Read... [23:55:25]*** Stop cut motor [23:55:25]*** Cut end [23:55:25]Read from MH i2c: 01 07 00 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: 01 07 00 75 36 00 00 00 00 00 FF 0F C0 [23:55:25]process_action x_report done [23:55:25]requested_data is exist [23:55:25]produce_requested_data [23:55:25]requested_item fd.num is exist - process it [23:55:25]SAM_PROTO_GetFieldsCounters [23:55:25]wFMCommunicate request_size=4 [23:55:25]MH_SAM_APDU [23:55:25]CAPDU: 80 13 00 00 [23:55:25]Write to MH i2c: E2 08 00 76 36 80 13 00 00 00 00 00 00 28 [23:55:25]Write i2c OK [23:55:25]MH_I2C_Read... [23:55:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:25]Read from MH i2c: E2 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 62 00 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 62 00 76 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 50 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [23:55: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 50 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:25]wFMCommunicate OK [23:55:25]SAM_PROTO_GetFieldsCounters done [23:55:25]requested_item shift.num is exist - process it [23:55:25]requested_item shift.opened is exist - process it [23:55:25]req_shift_opened [23:55:25]FM_GetShiftState [23:55:25]SAM_PROTO_GetShiftState [23:55:25]wFMCommunicate request_size=4 [23:55:25]MH_SAM_APDU [23:55:25]CAPDU: 80 13 01 00 [23:55:25]Write to MH i2c: E2 08 00 77 36 80 13 01 00 00 00 00 00 2A [23:55:25]Write i2c OK [23:55:25]MH_I2C_Read... [23:55:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:25]Read from MH i2c: E2 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 0E 00 [23:55:25]MH_I2C_Read... [23:55:25]Read from MH i2c: E2 0E 00 77 36 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 79 [23:55:25]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:55:25]wFMCommunicate OK [23:55:25]SAM_PROTO_GetShiftState done [23:55:25]FM_GetShiftState done [23:55:25]req_shift_opened done [23:55:25]requested_item shift.open_date is exist - process it [23:55:25]req_shift_open_date [23:55:25]req_shift_open_date done [23:55:25]produce_requested_data done [23:55:25]produce_requested_data return {"fd.num":31824,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [23:55:25]process_action_free x_report [23:55:25]json_value_free [23:55:25]json_value_free done [23:55:25]process_json_proto returns [23:55:25]Send response to host [23:55:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":31824,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [23:55:25]free response buf [23:55:25]execute_script done [23:55:25]execute_script returns [23:55:25]free content buf [23:55:25]Sock 7.Close socket [23:55:25]Sock 7.Thread stoped [23:55:26]OFD Sender: No OFD packet to send [23:55:31]OFD Sender: No OFD packet to send [23:55:36]OFD Sender: No OFD packet to send [23:55:41]OFD Sender: No OFD packet to send [23:55:46]OFD Sender: No OFD packet to send [23:55:51]OFD Sender: No OFD packet to send [23:55:56]OFD Sender: No OFD packet to send [23:55:59]accept exits with 9 [23:55:59]New connection [23:55:59]New thread 3066965348 created [23:55:59]Thread 3066821988 joined [23:55:59]Waiting for new connection... [23:55:59] Sock 9.Parse request [23:55:59]Sock 9.Check first char [23:55:59]Sock 9.First char is OK [23:55:59]request: POST /json_proto HTTP/1.0 [23:55:59]Method: POST [23:55:59]URL: /json_proto [23:55:59]Method is POST - this is cgi request [23:55:59]url: /json_proto [23:55:59]query_string will be loaded in cgi processing [23:55:59]execute_cgi json_proto POST (null) [23:55:59]execute_cgi path=json_proto method=POST [23:55:59]POST find Content-Length [23:55:59]Host: 172.17.39.68:8080 [23:55:59]Content-Length: 215 [23:55:59]Content-Type: application/json [23:55:59] [23:55:59]POST finish read [23:55:59]Found Content-Length = 215 [23:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:59]execute_script... [23:55:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:55:59]POST & json_proto [23:55:59]process_json_proto [23:55:59]json parsed OK: [23:55:59]protocol is kg_v1.0 [23:55:59]action value=get_value [23:55:59]process_action get_value [23:55:59]cmd_get_value [23:55:59]process_action get_value done [23:55:59]requested_data is exist [23:55:59]produce_requested_data [23:55:59]requested_item kkm.sn is exist - process it [23:55:59]requested_item kkm.ver is exist - process it [23:55:59]requested_item fm.sn is exist - process it [23:55:59]wFMCommunicate request_size=4 [23:55:59]MH_SAM_APDU [23:55:59]CAPDU: 80 11 00 00 [23:55:59]Write to MH i2c: E2 08 00 78 36 80 11 00 00 00 00 00 00 28 [23:55:59]Write i2c OK [23:55:59]MH_I2C_Read... [23:55:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:59]Read from MH i2c: E2 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 17 00 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 17 00 78 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 83 [23:55:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:55:59]wFMCommunicate OK [23:55:59]requested_item fd.num is exist - process it [23:55:59]SAM_PROTO_GetFieldsCounters [23:55:59]wFMCommunicate request_size=4 [23:55:59]MH_SAM_APDU [23:55:59]CAPDU: 80 13 00 00 [23:55:59]Write to MH i2c: E2 08 00 79 36 80 13 00 00 00 00 00 00 2B [23:55:59]Write i2c OK [23:55:59]MH_I2C_Read... [23:55:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:59]Read from MH i2c: E2 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 62 00 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 62 00 79 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 50 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [23:55:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 50 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:59]wFMCommunicate OK [23:55:59]SAM_PROTO_GetFieldsCounters done [23:55:59]requested_item shift.num is exist - process it [23:55:59]requested_item shift.opened is exist - process it [23:55:59]req_shift_opened [23:55:59]FM_GetShiftState [23:55:59]SAM_PROTO_GetShiftState [23:55:59]wFMCommunicate request_size=4 [23:55:59]MH_SAM_APDU [23:55:59]CAPDU: 80 13 01 00 [23:55:59]Write to MH i2c: E2 08 00 7A 36 80 13 01 00 00 00 00 00 2D [23:55:59]Write i2c OK [23:55:59]MH_I2C_Read... [23:55:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:59]Read from MH i2c: E2 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 0E 00 [23:55:59]MH_I2C_Read... [23:55:59]Read from MH i2c: E2 0E 00 7A 36 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 7C [23:55:59]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:55:59]wFMCommunicate OK [23:55:59]SAM_PROTO_GetShiftState done [23:55:59]FM_GetShiftState done [23:55:59]req_shift_opened done [23:55:59]requested_item shift.open_date is exist - process it [23:55:59]req_shift_open_date [23:55:59]req_shift_open_date done [23:55:59]produce_requested_data done [23:55:59]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31824,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399} [23:55:59]process_action_free get_value [23:55:59]json_value_free [23:55:59]json_value_free done [23:55:59]process_json_proto returns [23:55:59]Send response to host [23:55:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31824,"shift.num":371,"shift.opened":1,"shift.open_date":1721088399}}} [23:55:59]free response buf [23:55:59]execute_script done [23:55:59]execute_script returns [23:55:59]free content buf [23:55:59]Sock 9.Close socket [23:55:59]Sock 9.Thread stoped [23:55:59]accept exits with 7 [23:55:59]New connection [23:55:59]New thread 3066821988 created [23:55:59]Thread 3066965348 joined [23:55:59]Waiting for new connection... [23:55:59] Sock 7.Parse request [23:55:59]Sock 7.Check first char [23:55:59]Sock 7.First char is OK [23:55:59]request: POST /json_proto HTTP/1.0 [23:55:59]Method: POST [23:55:59]URL: /json_proto [23:55:59]Method is POST - this is cgi request [23:55:59]url: /json_proto [23:55:59]query_string will be loaded in cgi processing [23:55:59]execute_cgi json_proto POST (null) [23:55:59]execute_cgi path=json_proto method=POST [23:55:59]POST find Content-Length [23:55:59]Host: 172.17.39.68:8080 [23:55:59]Content-Length: 331 [23:55:59]Content-Type: application/json [23:55:59] [23:55:59]POST finish read [23:55:59]Found Content-Length = 331 [23:55:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:59]execute_script... [23:55:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:55:59]POST & json_proto [23:55:59]process_json_proto [23:55:59]json parsed OK: [23:55:59]protocol is kg_v1.0 [23:55:59]action value=get_value [23:56:00]process_action get_value [23:56:00]cmd_get_value [23:56:00]process_action get_value done [23:56:00]requested_data is exist [23:56:00]produce_requested_data [23:56:00]requested_item fm.sale.total is exist - process it [23:56:00]SAM_PROTO_GetFMData [23:56:00]wFMCommunicate request_size=4 [23:56:00]MH_SAM_APDU [23:56:00]CAPDU: 80 13 03 00 [23:56:00]Write to MH i2c: E2 08 00 7B 36 80 13 03 00 00 00 00 00 30 [23:56:00]Write i2c OK [23:56:00]MH_I2C_Read... [23:56:00]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:00]Read from MH i2c: E2 [23:56:00]MH_I2C_Read... [23:56:00]Read from MH i2c: E2 FD 00 [23:56:00]MH_I2C_Read... [23:56:00]Read from MH i2c: E2 FD 00 7B 36 00 B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 51 [23:56:00]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:56:00]wFMCommunicate OK [23:56:00]wFMCommunicate request_size=4 [23:56:00]MH_SAM_APDU [23:56:00]CAPDU: 80 17 00 00 [23:56:00]Write to MH i2c: E2 08 00 7C 36 80 17 00 00 00 00 00 00 32 [23:56:00]Write i2c OK [23:56:00]MH_I2C_Read... [23:56:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:00]Read from MH i2c: E2 [23:56:00]MH_I2C_Read... [23:56:00]Read from MH i2c: E2 FD 00 [23:56:00]MH_I2C_Read... [23:56:00]Read from MH i2c: E2 FD 00 7C 36 00 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 63 [23:56:00]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 [23:56:00]wFMCommunicate OK [23:56:00]wFMCommunicate request_size=4 [23:56:00]MH_SAM_APDU [23:56:00]CAPDU: 80 17 00 00 [23:56:00]Write to MH i2c: E2 08 00 7D 36 80 17 00 00 00 00 00 00 33 [23:56:00]Write i2c OK [23:56:00]MH_I2C_Read... [23:56:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:01]Read from MH i2c: E2 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 FD 00 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 FD 00 7D 36 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D8 [23:56:01]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:01]wFMCommunicate OK [23:56:01]wFMCommunicate request_size=4 [23:56:01]MH_SAM_APDU [23:56:01]CAPDU: 80 17 00 00 [23:56:01]Write to MH i2c: E2 08 00 7E 36 80 17 00 00 00 00 00 00 34 [23:56:01]Write i2c OK [23:56:01]MH_I2C_Read... [23:56:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:01]Read from MH i2c: E2 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 FD 00 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 FD 00 7E 36 00 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 90 00 A9 [23:56:01]RAPDU: 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 90 00 [23:56:01]wFMCommunicate OK [23:56:01]wFMCommunicate request_size=4 [23:56:01]MH_SAM_APDU [23:56:01]CAPDU: 80 17 00 00 [23:56:01]Write to MH i2c: E2 08 00 7F 36 80 17 00 00 00 00 00 00 35 [23:56:01]Write i2c OK [23:56:01]MH_I2C_Read... [23:56:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:56:01]Read from MH i2c: E2 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 D4 00 [23:56:01]MH_I2C_Read... [23:56:01]Read from MH i2c: E2 D4 00 7F 36 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 26 [23:56:01]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:01]wFMCommunicate OK [23:56:01]SAM_PROTO_GetFMData done [23:56:01]requested_item fm.sale_refund.total is exist - process it [23:56:01]requested_item fm.buy.total is exist - process it [23:56:01]requested_item shift.sale.total is exist - process it [23:56:01]SAM_PROTO_GetShiftData [23:56:01]wFMCommunicate request_size=4 [23:56:01]MH_SAM_APDU [23:56:01]CAPDU: 80 13 02 00 [23:56:01]Write to MH i2c: E2 08 00 80 36 80 13 02 00 00 00 00 00 34 [23:56:01]Write i2c OK [23:56:01]MH_I2C_Read... [23:56:02]OFD Sender: No OFD packet to send [23:56:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:02]Read from MH i2c: E2 [23:56:02]MH_I2C_Read... [23:56:02]Read from MH i2c: E2 FD 00 [23:56:02]MH_I2C_Read... [23:56:02]Read from MH i2c: E2 FD 00 80 36 00 AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 48 [23:56:02]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:56:02]wFMCommunicate OK [23:56:02]wFMCommunicate request_size=4 [23:56:02]MH_SAM_APDU [23:56:02]CAPDU: 80 17 00 00 [23:56:02]Write to MH i2c: E2 08 00 81 36 80 17 00 00 00 00 00 00 37 [23:56:02]Write i2c OK [23:56:02]MH_I2C_Read... [23:56:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:02]Read from MH i2c: E2 [23:56:02]MH_I2C_Read... [23:56:02]Read from MH i2c: E2 FD 00 [23:56:02]MH_I2C_Read... [23:56:02]Read from MH i2c: E2 FD 00 81 36 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 59 [23:56:02]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:56:02]wFMCommunicate OK [23:56:02]wFMCommunicate request_size=4 [23:56:02]MH_SAM_APDU [23:56:02]CAPDU: 80 17 00 00 [23:56:02]Write to MH i2c: E2 08 00 82 36 80 17 00 00 00 00 00 00 38 [23:56:02]Write i2c OK [23:56:02]MH_I2C_Read... [23:56:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:02]Read from MH i2c: E2 [23:56:02]MH_I2C_Read... [23:56:02]Read from MH i2c: E2 FD 00 [23:56:02]MH_I2C_Read... [23:56:02]Read from MH i2c: E2 FD 00 82 36 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [23:56:02]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:02]wFMCommunicate OK [23:56:02]wFMCommunicate request_size=4 [23:56:02]MH_SAM_APDU [23:56:02]CAPDU: 80 17 00 00 [23:56:02]Write to MH i2c: E2 08 00 83 36 80 17 00 00 00 00 00 00 39 [23:56:02]Write i2c OK [23:56:02]MH_I2C_Read... [23:56:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:03]Read from MH i2c: E2 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 FD 00 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 FD 00 83 36 00 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 90 00 AB [23:56:03]RAPDU: 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 90 00 [23:56:03]wFMCommunicate OK [23:56:03]wFMCommunicate request_size=4 [23:56:03]MH_SAM_APDU [23:56:03]CAPDU: 80 17 00 00 [23:56:03]Write to MH i2c: E2 08 00 84 36 80 17 00 00 00 00 00 00 3A [23:56:03]Write i2c OK [23:56:03]MH_I2C_Read... [23:56:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:56:03]Read from MH i2c: E2 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 CB 00 [23:56:03]MH_I2C_Read... [23:56:03]Read from MH i2c: E2 CB 00 84 36 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 23 [23:56:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:03]wFMCommunicate OK [23:56:03]SAM_PROTO_GetShiftData done [23:56:03]requested_item shift.sale.total_cash is exist - process it [23:56:03]requested_item shift.sale_refund.total is exist - process it [23:56:03]requested_item shift.sale_refund.total_cash is exist - process it [23:56:03]requested_item shift.buy.total is exist - process it [23:56:03]requested_item shift.buy.total_cash is exist - process it [23:56:03]produce_requested_data done [23:56:03]produce_requested_data return {"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":30865.00,"shift.sale.total_cash":29073.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} [23:56:03]process_action_free get_value [23:56:03]json_value_free [23:56:03]json_value_free done [23:56:03]process_json_proto returns [23:56:03]Send response to host [23:56:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":30865.00,"shift.sale.total_cash":29073.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}}} [23:56:03]free response buf [23:56:03]execute_script done [23:56:03]execute_script returns [23:56:03]free content buf [23:56:03]Sock 7.Close socket [23:56:03]Sock 7.Thread stoped [23:56:03]accept exits with 9 [23:56:03]New connection [23:56:03]New thread 3066965348 created [23:56:03]Thread 3066821988 joined [23:56:03]Waiting for new connection... [23:56:03] Sock 9.Parse request [23:56:03]Sock 9.Check first char [23:56:03]Sock 9.First char is OK [23:56:03]request: POST /json_proto HTTP/1.0 [23:56:03]Method: POST [23:56:03]URL: /json_proto [23:56:03]Method is POST - this is cgi request [23:56:03]url: /json_proto [23:56:03]query_string will be loaded in cgi processing [23:56:03]execute_cgi json_proto POST (null) [23:56:03]execute_cgi path=json_proto method=POST [23:56:03]POST find Content-Length [23:56:03]Host: 172.17.39.68:8080 [23:56:03]Content-Length: 331 [23:56:03]Content-Type: application/json [23:56:03] [23:56:03]POST finish read [23:56:03]Found Content-Length = 331 [23:56:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:03]execute_script... [23:56:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:03]POST & json_proto [23:56:03]process_json_proto [23:56:03]json parsed OK: [23:56:03]protocol is kg_v1.0 [23:56:03]action value=get_value [23:56:03]process_action get_value [23:56:03]cmd_get_value [23:56:03]process_action get_value done [23:56:03]requested_data is exist [23:56:03]produce_requested_data [23:56:03]requested_item fm.sale.total is exist - process it [23:56:03]SAM_PROTO_GetFMData [23:56:03]wFMCommunicate request_size=4 [23:56:03]MH_SAM_APDU [23:56:03]CAPDU: 80 13 03 00 [23:56:03]Write to MH i2c: E2 08 00 85 36 80 13 03 00 00 00 00 00 3A [23:56:03]Write i2c OK [23:56:03]MH_I2C_Read... [23:56:04]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:04]Read from MH i2c: E2 [23:56:04]MH_I2C_Read... [23:56:04]Read from MH i2c: E2 FD 00 [23:56:04]MH_I2C_Read... [23:56:04]Read from MH i2c: E2 FD 00 85 36 00 B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 5B [23:56:04]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:56:04]wFMCommunicate OK [23:56:04]wFMCommunicate request_size=4 [23:56:04]MH_SAM_APDU [23:56:04]CAPDU: 80 17 00 00 [23:56:04]Write to MH i2c: E2 08 00 86 36 80 17 00 00 00 00 00 00 3C [23:56:04]Write i2c OK [23:56:04]MH_I2C_Read... [23:56:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:04]Read from MH i2c: E2 [23:56:04]MH_I2C_Read... [23:56:04]Read from MH i2c: E2 FD 00 [23:56:04]MH_I2C_Read... [23:56:04]Read from MH i2c: E2 FD 00 86 36 00 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 6D [23:56:04]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 [23:56:04]wFMCommunicate OK [23:56:04]wFMCommunicate request_size=4 [23:56:04]MH_SAM_APDU [23:56:04]CAPDU: 80 17 00 00 [23:56:04]Write to MH i2c: E2 08 00 87 36 80 17 00 00 00 00 00 00 3D [23:56:04]Write i2c OK [23:56:04]MH_I2C_Read... [23:56:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:04]Read from MH i2c: E2 [23:56:04]MH_I2C_Read... [23:56:04]Read from MH i2c: E2 FD 00 [23:56:04]MH_I2C_Read... [23:56:04]Read from MH i2c: E2 FD 00 87 36 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E2 [23:56:04]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:04]wFMCommunicate OK [23:56:04]wFMCommunicate request_size=4 [23:56:04]MH_SAM_APDU [23:56:04]CAPDU: 80 17 00 00 [23:56:04]Write to MH i2c: E2 08 00 88 36 80 17 00 00 00 00 00 00 3E [23:56:04]Write i2c OK [23:56:04]MH_I2C_Read... [23:56:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:05]Read from MH i2c: E2 [23:56:05]MH_I2C_Read... [23:56:05]Read from MH i2c: E2 FD 00 [23:56:05]MH_I2C_Read... [23:56:05]Read from MH i2c: E2 FD 00 88 36 00 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 90 00 B3 [23:56:05]RAPDU: 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 90 00 [23:56:05]wFMCommunicate OK [23:56:05]wFMCommunicate request_size=4 [23:56:05]MH_SAM_APDU [23:56:05]CAPDU: 80 17 00 00 [23:56:05]Write to MH i2c: E2 08 00 89 36 80 17 00 00 00 00 00 00 3F [23:56:05]Write i2c OK [23:56:05]MH_I2C_Read... [23:56:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:56:05]Read from MH i2c: E2 [23:56:05]MH_I2C_Read... [23:56:05]Read from MH i2c: E2 D4 00 [23:56:05]MH_I2C_Read... [23:56:05]Read from MH i2c: E2 D4 00 89 36 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 30 [23:56:05]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:05]wFMCommunicate OK [23:56:05]SAM_PROTO_GetFMData done [23:56:05]requested_item fm.sale_refund.total is exist - process it [23:56:05]requested_item fm.buy.total is exist - process it [23:56:05]requested_item shift.sale.total is exist - process it [23:56:05]SAM_PROTO_GetShiftData [23:56:05]wFMCommunicate request_size=4 [23:56:05]MH_SAM_APDU [23:56:05]CAPDU: 80 13 02 00 [23:56:05]Write to MH i2c: E2 08 00 8A 36 80 13 02 00 00 00 00 00 3E [23:56:05]Write i2c OK [23:56:05]MH_I2C_Read... [23:56:06]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:06]Read from MH i2c: E2 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 FD 00 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 FD 00 8A 36 00 AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 52 [23:56:06]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [23:56:06]wFMCommunicate OK [23:56:06]wFMCommunicate request_size=4 [23:56:06]MH_SAM_APDU [23:56:06]CAPDU: 80 17 00 00 [23:56:06]Write to MH i2c: E2 08 00 8B 36 80 17 00 00 00 00 00 00 41 [23:56:06]Write i2c OK [23:56:06]MH_I2C_Read... [23:56:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:06]Read from MH i2c: E2 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 FD 00 [23:56:06]MH_I2C_Read... [23:56:06]Read from MH i2c: E2 FD 00 8B 36 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 63 [23:56:06]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:56:06]wFMCommunicate OK [23:56:06]wFMCommunicate request_size=4 [23:56:06]MH_SAM_APDU [23:56:06]CAPDU: 80 17 00 00 [23:56:06]Write to MH i2c: E2 08 00 8C 36 80 17 00 00 00 00 00 00 42 [23:56:06]Write i2c OK [23:56:06]MH_I2C_Read... [23:56:07]OFD Sender: No OFD packet to send [23:56:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:07]Read from MH i2c: E2 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 FD 00 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 FD 00 8C 36 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F9 [23:56:07]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:07]wFMCommunicate OK [23:56:07]wFMCommunicate request_size=4 [23:56:07]MH_SAM_APDU [23:56:07]CAPDU: 80 17 00 00 [23:56:07]Write to MH i2c: E2 08 00 8D 36 80 17 00 00 00 00 00 00 43 [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:07]Read from MH i2c: E2 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 FD 00 [23:56:07]MH_I2C_Read... [23:56:07]Read from MH i2c: E2 FD 00 8D 36 00 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 90 00 B5 [23:56:07]RAPDU: 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 90 00 [23:56:07]wFMCommunicate OK [23:56:07]wFMCommunicate request_size=4 [23:56:07]MH_SAM_APDU [23:56:07]CAPDU: 80 17 00 00 [23:56:07]Write to MH i2c: E2 08 00 8E 36 80 17 00 00 00 00 00 00 44 [23:56:07]Write i2c OK [23:56:07]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 CB 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 CB 00 8E 36 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2D [23:56:08]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:08]wFMCommunicate OK [23:56:08]SAM_PROTO_GetShiftData done [23:56:08]requested_item shift.sale.total_cash is exist - process it [23:56:08]requested_item shift.sale_refund.total is exist - process it [23:56:08]requested_item shift.sale_refund.total_cash is exist - process it [23:56:08]requested_item shift.buy.total is exist - process it [23:56:08]requested_item shift.buy.total_cash is exist - process it [23:56:08]produce_requested_data done [23:56:08]produce_requested_data return {"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":30865.00,"shift.sale.total_cash":29073.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} [23:56:08]process_action_free get_value [23:56:08]json_value_free [23:56:08]json_value_free done [23:56:08]process_json_proto returns [23:56:08]Send response to host [23:56:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":30865.00,"shift.sale.total_cash":29073.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}}} [23:56:08]free response buf [23:56:08]execute_script done [23:56:08]execute_script returns [23:56:08]free content buf [23:56:08]Sock 9.Close socket [23:56:08]Sock 9.Thread stoped [23:56:08]accept exits with 7 [23:56:08]New connection [23:56:08]New thread 3066821988 created [23:56:08]Thread 3066965348 joined [23:56:08]Waiting for new connection... [23:56:08] Sock 7.Parse request [23:56:08]Sock 7.Check first char [23:56:08]Sock 7.First char is OK [23:56:08]request: POST /json_proto HTTP/1.0 [23:56:08]Method: POST [23:56:08]URL: /json_proto [23:56:08]Method is POST - this is cgi request [23:56:08]url: /json_proto [23:56:08]query_string will be loaded in cgi processing [23:56:08]execute_cgi json_proto POST (null) [23:56:08]execute_cgi path=json_proto method=POST [23:56:08]POST find Content-Length [23:56:08]Host: 172.17.39.68:8080 [23:56:08]Content-Length: 272 [23:56:08]Content-Type: application/json [23:56:08] [23:56:08]POST finish read [23:56:08]Found Content-Length = 272 [23:56:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:08]execute_script... [23:56:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0414\u0443\u0439\u0448\u0435\u043D\u0431\u0435\u043A \u0443 \u041D." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:08]POST & json_proto [23:56:08]process_json_proto [23:56:08]json parsed OK: [23:56:08]protocol is kg_v1.0 [23:56:08]action value=close_shift [23:56:08]process_action close_shift [23:56:08]cmd_close_shift [23:56:08]MH_GetDate [23:56:08]Write to MH i2c: F0 00 00 8F 36 B4 [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: F0 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: F0 09 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: F0 09 00 8F 36 00 9F 08 97 66 D6 48 95 66 7A [23:56:08]GetLastDocTimeStamp 1721174122 [23:56:08]current date 1721174175 [23:56:08]FM_GetShiftState [23:56:08]SAM_PROTO_GetShiftState [23:56:08]wFMCommunicate request_size=4 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 13 01 00 [23:56:08]Write to MH i2c: E2 08 00 90 36 80 13 01 00 00 00 00 00 43 [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 0E 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 0E 00 90 36 00 09 00 01 8F B9 95 66 00 00 00 00 90 00 92 [23:56:08]RAPDU: 09 00 01 8F B9 95 66 00 00 00 00 90 00 [23:56:08]wFMCommunicate OK [23:56:08]SAM_PROTO_GetShiftState done [23:56:08]FM_GetShiftState done [23:56:08]KKMCreateCloseShiftDocument [23:56:08]Load OK [23:56:08]Malloc new data [23:56:08]MH_GetDate [23:56:08]Write to MH i2c: F0 00 00 91 36 B6 [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: F0 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: F0 09 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: F0 09 00 91 36 00 9F 08 97 66 D6 48 95 66 7C [23:56:08]Malloc new data [23:56:08]Malloc new data [23:56:08]Malloc new data [23:56:08]Malloc new data [23:56:08]KKMCreateCloseShiftDocument OK [23:56:08]KKMSetCloseShiftData OK [23:56:08]ProcessDocumentItem done err = 0, tmpTLVsize=75 [23:56:08]tlvbuf is 015FFE40 [23:56:08]KKMLoadAndSignCloseShiftData [23:56:08]SAM_PROTO_ProcessDocument [23:56:08]wFMCommunicate request_size=9 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 15 01 00 04 05 00 4B 00 [23:56:08]Write to MH i2c: E2 0C 00 92 36 80 15 01 00 04 00 05 00 4B 00 00 00 9F [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 92 36 00 90 00 3C [23:56:08]RAPDU: 90 00 [23:56:08]wFMCommunicate OK [23:56:08]wFMCommunicate request_size=23 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:56:08]Write to MH i2c: E2 1A 00 93 36 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 3E [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 93 36 00 90 00 3D [23:56:08]RAPDU: 90 00 [23:56:08]wFMCommunicate OK [23:56:08]wFMCommunicate request_size=34 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E [23:56:08]Write to MH i2c: E2 25 00 94 36 80 15 02 00 1D 00 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E 00 00 08 [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 94 36 00 90 00 3E [23:56:08]RAPDU: 90 00 [23:56:08]wFMCommunicate OK [23:56:08]wFMCommunicate request_size=13 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 15 02 00 08 F4 03 04 00 9F 08 97 66 [23:56:08]Write to MH i2c: E2 10 00 95 36 80 15 02 00 08 00 F4 03 04 00 9F 08 97 66 00 00 FA [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 95 36 00 90 00 3F [23:56:08]RAPDU: 90 00 [23:56:08]wFMCommunicate OK [23:56:08]wFMCommunicate request_size=25 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 [23:56:08]Write to MH i2c: E2 1C 00 96 36 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 00 00 AD [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:08]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:08]Read from MH i2c: E2 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 [23:56:08]MH_I2C_Read... [23:56:08]Read from MH i2c: E2 03 00 96 36 00 90 00 40 [23:56:08]RAPDU: 90 00 [23:56:08]wFMCommunicate OK [23:56:08]wFMCommunicate request_size=4 [23:56:08]MH_SAM_APDU [23:56:08]CAPDU: 80 15 03 00 [23:56:08]Write to MH i2c: E2 08 00 97 36 80 15 03 00 00 00 00 00 4E [23:56:08]Write i2c OK [23:56:08]MH_I2C_Read... [23:56:09]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:56:09]Read from MH i2c: E2 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 FD 00 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 FD 00 97 36 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 51 7C 00 00 0E 04 04 00 73 01 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [23:56:09]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 51 7C 00 00 0E 04 04 00 73 01 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:09]wFMCommunicate OK [23:56:09]SAM_PROTO_ProcessDocument answer len = 1265 [23:56:09]SAM_PROTO_ProcessDocument remain to read = 1017 [23:56:09]wFMCommunicate request_size=4 [23:56:09]MH_SAM_APDU [23:56:09]CAPDU: 80 17 00 00 [23:56:09]Write to MH i2c: E2 08 00 98 36 80 17 00 00 00 00 00 00 4E [23:56:09]Write i2c OK [23:56:09]MH_I2C_Read... [23:56:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:09]Read from MH i2c: E2 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 FD 00 [23:56:09]MH_I2C_Read... [23:56:09]Read from MH i2c: E2 FD 00 98 36 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [23:56:10]RAPDU: 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:10]wFMCommunicate OK [23:56:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:10]SAM_PROTO_ProcessDocument remain to read = 767 [23:56:10]wFMCommunicate request_size=4 [23:56:10]MH_SAM_APDU [23:56:10]CAPDU: 80 17 00 00 [23:56:10]Write to MH i2c: E2 08 00 99 36 80 17 00 00 00 00 00 00 4F [23:56:10]Write i2c OK [23:56:10]MH_I2C_Read... [23:56:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:10]Read from MH i2c: E2 [23:56:10]MH_I2C_Read... [23:56:10]Read from MH i2c: E2 FD 00 [23:56:10]MH_I2C_Read... [23:56:10]Read from MH i2c: E2 FD 00 99 36 00 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 90 00 B1 [23:56:10]RAPDU: 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 90 00 [23:56:10]wFMCommunicate OK [23:56:10]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:10]SAM_PROTO_ProcessDocument remain to read = 517 [23:56:10]wFMCommunicate request_size=4 [23:56:10]MH_SAM_APDU [23:56:10]CAPDU: 80 17 00 00 [23:56:10]Write to MH i2c: E2 08 00 9A 36 80 17 00 00 00 00 00 00 50 [23:56:10]Write i2c OK [23:56:10]MH_I2C_Read... [23:56:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:10]Read from MH i2c: E2 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 FD 00 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 FD 00 9A 36 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [23:56:11]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:11]wFMCommunicate OK [23:56:11]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:11]SAM_PROTO_ProcessDocument remain to read = 267 [23:56:11]wFMCommunicate request_size=4 [23:56:11]MH_SAM_APDU [23:56:11]CAPDU: 80 17 00 00 [23:56:11]Write to MH i2c: E2 08 00 9B 36 80 17 00 00 00 00 00 00 51 [23:56:11]Write i2c OK [23:56:11]MH_I2C_Read... [23:56:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:11]Read from MH i2c: E2 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 FD 00 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 FD 00 9B 36 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 19 [23:56:11]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:11]wFMCommunicate OK [23:56:11]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:56:11]SAM_PROTO_ProcessDocument remain to read = 17 [23:56:11]wFMCommunicate request_size=4 [23:56:11]MH_SAM_APDU [23:56:11]CAPDU: 80 17 00 00 [23:56:11]Write to MH i2c: E2 08 00 9C 36 80 17 00 00 00 00 00 00 52 [23:56:11]Write i2c OK [23:56:11]MH_I2C_Read... [23:56:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [23:56:11]Read from MH i2c: E2 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 14 00 [23:56:11]MH_I2C_Read... [23:56:11]Read from MH i2c: E2 14 00 9C 36 00 01 00 06 F7 03 00 00 35 04 06 00 8D A6 17 78 7C 50 90 00 25 [23:56:11]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 8D A6 17 78 7C 50 90 00 [23:56:11]wFMCommunicate OK [23:56:11]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [23:56:11]SAM_PROTO_ProcessDocument done [23:56:11]1209 (1) - 1.0 - номер версии ФФД [23:56:11]1041 (16) - 0000000000965389 - номер ФМ [23:56:11]1040 (4) - 31825 - номер ФД [23:56:11]1038 (4) - 371 - номер смены [23:56:11]1118 (4) - 143 - количество кассовых чеков за смену [23:56:11]1111 (4) - 145 - общее количество ФД за смену [23:56:11]1194 (1194) - счетчики итогов смены [23:56:11] 1134 (4) - 143 - количество чеков со всеми признаками расчетов [23:56:11] 1129 (155) - счетчики операций «приход» [23:56:11] 1135 (4) - 143 - количество чеков по признаку расчетов [23:56:11] 1201 (3) - 30865.00 - общая итоговая сумма в чеках [23:56:11] 1136 (3) - 29073.00 - итоговая сумма в чеках наличными [23:56:11] 1138 (3) - 1792.00 - итоговая сумма в чеках безналичными [23:56:11] 1024 (122) - суммы налогов [23:56:11] 1006 (9) - суммы НДС [23:56:11] 1010 (1) - 0% - код ставки НДС [23:56:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:12] 1006 (12) - суммы НДС [23:56:12] 1010 (1) - 12% - код ставки НДС [23:56:12] 1011 (3) - 3277.51 - сумма НДС по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 0% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (11) - суммы НСП [23:56:12] 1014 (1) - 1% - код ставки НСП [23:56:12] 1015 (2) - 273.06 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 2% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 3% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 5% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 0,50% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 1,50% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1130 (141) - счетчики операций «возврат прихода» [23:56:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:12] 1024 (117) - суммы налогов [23:56:12] 1006 (9) - суммы НДС [23:56:12] 1010 (1) - 0% - код ставки НДС [23:56:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:12] 1006 (9) - суммы НДС [23:56:12] 1010 (1) - 12% - код ставки НДС [23:56:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 0% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 1% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 2% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 3% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 5% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 0,50% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 1,50% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1131 (141) - счетчики операций «расход» [23:56:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:12] 1024 (117) - суммы налогов [23:56:12] 1006 (9) - суммы НДС [23:56:12] 1010 (1) - 0% - код ставки НДС [23:56:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:12] 1006 (9) - суммы НДС [23:56:12] 1010 (1) - 12% - код ставки НДС [23:56:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 0% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 1% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] OFD Sender: No OFD packet to send [23:56:12]1014 (1) - 2% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 3% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 5% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 0,50% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 1,50% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1132 (141) - счетчики операций «возврат расхода» [23:56:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:56:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:56:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:56:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:56:12] 1024 (117) - суммы налогов [23:56:12] 1006 (9) - суммы НДС [23:56:12] 1010 (1) - 0% - код ставки НДС [23:56:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:12] 1006 (9) - суммы НДС [23:56:12] 1010 (1) - 12% - код ставки НДС [23:56:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 0% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 1% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 2% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 3% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 5% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 0,50% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1007 (9) - суммы НСП [23:56:12] 1014 (1) - 1,50% - код ставки НСП [23:56:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:56:12] 1133 (588) - - счетчики коррекции - не используются [23:56:12]1077 (6) - 155744497859664 - ФПД [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1209 (04B9) [23:56:12]Malloc new data [23:56:12]Processing tag 1041 (0411) [23:56:12]Processing tag 1040 (0410) [23:56:12]Malloc new data [23:56:12]Processing tag 1038 (040E) [23:56:12]Malloc new data [23:56:12]Processing tag 1118 (045E) [23:56:12]Malloc new data [23:56:12]Processing tag 1111 (0457) [23:56:12]Malloc new data [23:56:12]Processing tag 1194 (04AA) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1134 (046E) [23:56:12]Malloc new data [23:56:12]Processing tag 1129 (0469) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1135 (046F) [23:56:12]Malloc new data [23:56:12]Processing tag 1201 (04B1) [23:56:12]Malloc new data [23:56:12]Processing tag 1136 (0470) [23:56:12]Malloc new data [23:56:12]Processing tag 1138 (0472) [23:56:12]Malloc new data [23:56:12]Processing tag 1024 (0400) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1006 (03EE) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1010 (03F2) [23:56:12]Malloc new data [23:56:12]Processing tag 1011 (03F3) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1006 (03EE) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1010 (03F2) [23:56:12]Malloc new data [23:56:12]Processing tag 1011 (03F3) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]SetTLVBufToDocument err=0 [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1130 (046A) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1135 (046F) [23:56:12]Malloc new data [23:56:12]Processing tag 1201 (04B1) [23:56:12]Malloc new data [23:56:12]Processing tag 1136 (0470) [23:56:12]Malloc new data [23:56:12]Processing tag 1138 (0472) [23:56:12]Malloc new data [23:56:12]Processing tag 1024 (0400) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1006 (03EE) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1010 (03F2) [23:56:12]Malloc new data [23:56:12]Processing tag 1011 (03F3) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1006 (03EE) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1010 (03F2) [23:56:12]Malloc new data [23:56:12]Processing tag 1011 (03F3) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]SetTLVBufToDocument err=0 [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1131 (046B) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1135 (046F) [23:56:12]Malloc new data [23:56:12]Processing tag 1201 (04B1) [23:56:12]Malloc new data [23:56:12]Processing tag 1136 (0470) [23:56:12]Malloc new data [23:56:12]Processing tag 1138 (0472) [23:56:12]Malloc new data [23:56:12]Processing tag 1024 (0400) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1006 (03EE) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1010 (03F2) [23:56:12]Malloc new data [23:56:12]Processing tag 1011 (03F3) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1006 (03EE) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1010 (03F2) [23:56:12]Malloc new data [23:56:12]Processing tag 1011 (03F3) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]SetTLVBufToDocument err=0 [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1132 (046C) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1135 (046F) [23:56:12]Malloc new data [23:56:12]Processing tag 1201 (04B1) [23:56:12]Malloc new data [23:56:12]Processing tag 1136 (0470) [23:56:12]Malloc new data [23:56:12]Processing tag 1138 (0472) [23:56:12]Malloc new data [23:56:12]Processing tag 1024 (0400) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1006 (03EE) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1010 (03F2) [23:56:12]Malloc new data [23:56:12]Processing tag 1011 (03F3) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1006 (03EE) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1010 (03F2) [23:56:12]Malloc new data [23:56:12]Processing tag 1011 (03F3) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:12]Processing tag 1015 (03F7) [23:56:12]Malloc new data [23:56:12]SetTLVBufToDocument err=0 [23:56:12]Processing tag 1007 (03EF) [23:56:12]Load OK [23:56:12]SetTLVBufToDocument [23:56:12]Processing tag 1014 (03F6) [23:56:12]Malloc new data [23:56:13]Processing tag 1015 (03F7) [23:56:13]Malloc new data [23:56:13]SetTLVBufToDocument err=0 [23:56:13]Processing tag 1007 (03EF) [23:56:13]Load OK [23:56:13]SetTLVBufToDocument [23:56:13]Processing tag 1014 (03F6) [23:56:13]Malloc new data [23:56:13]Processing tag 1015 (03F7) [23:56:13]Malloc new data [23:56:13]SetTLVBufToDocument err=0 [23:56:13]Processing tag 1007 (03EF) [23:56:13]Load OK [23:56:13]SetTLVBufToDocument [23:56:13]Processing tag 1014 (03F6) [23:56:13]Malloc new data [23:56:13]Processing tag 1015 (03F7) [23:56:13]Malloc new data [23:56:13]SetTLVBufToDocument err=0 [23:56:13]SetTLVBufToDocument err=0 [23:56:13]SetTLVBufToDocument err=0 [23:56:13]Processing tag 1133 (046D) [23:56:13]Malloc new data [23:56:13]SetTLVBufToDocument err=0 [23:56:13]Processing tag 1077 (0435) [23:56:13]Malloc new data [23:56:13]SetTLVBufToDocument err=0 [23:56:13]Malloc new data [23:56:13]SAM_PROTO_GetFMData [23:56:13]wFMCommunicate request_size=4 [23:56:13]MH_SAM_APDU [23:56:13]CAPDU: 80 13 03 00 [23:56:13]Write to MH i2c: E2 08 00 9D 36 80 13 03 00 00 00 00 00 52 [23:56:13]Write i2c OK [23:56:13]MH_I2C_Read... [23:56:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:13]Read from MH i2c: E2 [23:56:13]MH_I2C_Read... [23:56:13]Read from MH i2c: E2 FD 00 [23:56:13]MH_I2C_Read... [23:56:13]Read from MH i2c: E2 FD 00 9D 36 00 B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 73 [23:56:13]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [23:56:14]wFMCommunicate OK [23:56:14]wFMCommunicate request_size=4 [23:56:14]MH_SAM_APDU [23:56:14]CAPDU: 80 17 00 00 [23:56:14]Write to MH i2c: E2 08 00 9E 36 80 17 00 00 00 00 00 00 54 [23:56:14]Write i2c OK [23:56:14]MH_I2C_Read... [23:56:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:14]Read from MH i2c: E2 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 FD 00 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 FD 00 9E 36 00 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 85 [23:56:14]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 [23:56:14]wFMCommunicate OK [23:56:14]wFMCommunicate request_size=4 [23:56:14]MH_SAM_APDU [23:56:14]CAPDU: 80 17 00 00 [23:56:14]Write to MH i2c: E2 08 00 9F 36 80 17 00 00 00 00 00 00 55 [23:56:14]Write i2c OK [23:56:14]MH_I2C_Read... [23:56:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:14]Read from MH i2c: E2 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 FD 00 [23:56:14]MH_I2C_Read... [23:56:14]Read from MH i2c: E2 FD 00 9F 36 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FA [23:56:15]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:15]wFMCommunicate OK [23:56:15]wFMCommunicate request_size=4 [23:56:15]MH_SAM_APDU [23:56:15]CAPDU: 80 17 00 00 [23:56:15]Write to MH i2c: E2 08 00 A0 36 80 17 00 00 00 00 00 00 56 [23:56:15]Write i2c OK [23:56:15]MH_I2C_Read... [23:56:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:15]Read from MH i2c: E2 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 FD 00 [23:56:15]MH_I2C_Read... [23:56:15]Read from MH i2c: E2 FD 00 A0 36 00 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 90 00 CB [23:56:15]RAPDU: 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 90 00 [23:56:15]wFMCommunicate OK [23:56:15]wFMCommunicate request_size=4 [23:56:15]MH_SAM_APDU [23:56:15]CAPDU: 80 17 00 00 [23:56:15]Write to MH i2c: E2 08 00 A1 36 80 17 00 00 00 00 00 00 57 [23:56:15]Write i2c OK [23:56:15]MH_I2C_Read... [23:56:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [23:56:16]Read from MH i2c: E2 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 D4 00 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 D4 00 A1 36 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 48 [23:56:16]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:16]wFMCommunicate OK [23:56:16]SAM_PROTO_GetFMData done [23:56:16]Malloc new data [23:56:16]Malloc new data [23:56:16]Malloc new data [23:56:16]Malloc new data [23:56:16]KKMLoadAndSignCloseShiftData err=0 [23:56:16]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Дуйшенбек у Н. 16.07.2024 23:56 Смена: 371 РНМ: 0000000000098025 ЗНМ: 0300000189 СНО: Общий режим Чеков за смену: 143 ФД за смену: 145 Всего чеков: 143 ИТОГИ ПРИХОД Чеков: 143 Общий итог: 30865.00 Итого наличными: 29073.00 Итого безнал.: 1792.00 НДС 0% : 0.00 НДС 12% : 3277.51 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 273.06 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 29073.00 НС Приход: 6244991.64 НС Возвр.Прихода: 2.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 31825 ФМ: 0000000000965389 ФПД: 155744497859664 [23:56:16]StoreToDocumentArchive [23:56:16]shift 371 fd 31825 [23:56:16]save to /storage/0371/doc_00031825 [23:56:16]save last doc name /storage/0371/doc_00031825 to /storage/kkm_last_doc_name [23:56:16]save OK [23:56:16]Clear old archive folders... [23:56:16]Remove dir /storage/0266 [23:56:16]opendir ok [23:56:16]file . [23:56:16]file .. [23:56:16]file doc_1721174129 [23:56:16]remove file /storage/0266/doc_1721174129 [23:56:16]remove dir /storage/0266 [23:56:16]NVStorageSaveData kkm_registers [23:56:16]File name is /storage/kkm_registers [23:56:16]Write 24 bytes [23:56:16]NVStorageSaveData done [23:56:16]NVStorageSaveData kkm_registers [23:56:16]File name is /storage/kkm_registers [23:56:16]Write 24 bytes [23:56:16]NVStorageSaveData done [23:56:16]ProcessDocumentItem done err = 0, tmpTLVsize=1383 [23:56:16]tlvbuf is 0167DE50 [23:56:16]SAM_PROTO_ClearQueue [23:56:16]wFMCommunicate request_size=4 [23:56:16]MH_SAM_APDU [23:56:16]CAPDU: 80 09 00 00 [23:56:16]Write to MH i2c: E2 08 00 A2 36 80 09 00 00 00 00 00 00 4A [23:56:16]Write i2c OK [23:56:16]MH_I2C_Read... [23:56:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:16]Read from MH i2c: E2 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 03 00 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 03 00 A2 36 00 90 00 4C [23:56:16]RAPDU: 90 00 [23:56:16]wFMCommunicate OK [23:56:16]SAM_PROTO_ClearQueue done [23:56:16]KKMCreateOFDPacket [23:56:16]OFDProtocolAddRootSTLVToBuf [23:56:16]FM_MakeSignedData [23:56:16]FM_MakeSignedData [23:56:16]SAM_PROTO_SignData [23:56:16]wFMCommunicate request_size=4 [23:56:16]MH_SAM_APDU [23:56:16]CAPDU: 80 0D 01 02 [23:56:16]Write to MH i2c: E2 08 00 A3 36 80 0D 01 02 00 00 00 00 52 [23:56:16]Write i2c OK [23:56:16]MH_I2C_Read... [23:56:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:16]Read from MH i2c: E2 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 03 00 [23:56:16]MH_I2C_Read... [23:56:16]Read from MH i2c: E2 03 00 A3 36 00 90 00 4D [23:56:16]RAPDU: 90 00 [23:56:16]wFMCommunicate OK [23:56:16]wFMCommunicate request_size=255 [23:56:16]MH_SAM_APDU [23:56:16]CAPDU: 80 0D 02 02 FA 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F4 03 04 00 9F 08 97 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 D5 04 6E 04 04 00 8F 00 00 00 69 04 A2 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 [23:56:16]Write to MH i2c: E2 02 01 A4 36 80 0D 02 02 FA 00 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F4 03 04 00 9F 08 97 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 D5 04 6E 04 04 00 8F 00 00 00 69 04 A2 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 A2 [23:56:17]Write i2c OK [23:56:17]MH_I2C_Read... [23:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:17]Read from MH i2c: E2 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 03 00 [23:56:17]MH_I2C_Read... [23:56:17]OFD Sender: No OFD packet to send [23:56:17]Read from MH i2c: E2 03 00 A4 36 00 90 00 4E [23:56:17]RAPDU: 90 00 [23:56:17]wFMCommunicate OK [23:56:17]wFMCommunicate request_size=255 [23:56:17]MH_SAM_APDU [23:56:17]CAPDU: 80 0D 02 02 FA 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 [23:56:17]Write to MH i2c: E2 02 01 A5 36 80 0D 02 02 FA 00 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 D6 [23:56:17]Write i2c OK [23:56:17]MH_I2C_Read... [23:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:17]Read from MH i2c: E2 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 03 00 [23:56:17]MH_I2C_Read... [23:56:17]Read from MH i2c: E2 03 00 A5 36 00 90 00 4F [23:56:17]RAPDU: 90 00 [23:56:17]wFMCommunicate OK [23:56:17]wFMCommunicate request_size=255 [23:56:17]MH_SAM_APDU [23:56:17]CAPDU: 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 [23:56:18]Write to MH i2c: E2 02 01 A6 36 80 0D 02 02 FA 00 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 1C [23:56:18]Write i2c OK [23:56:18]MH_I2C_Read... [23:56:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:18]Read from MH i2c: E2 [23:56:18]MH_I2C_Read... [23:56:18]Read from MH i2c: E2 03 00 [23:56:18]MH_I2C_Read... [23:56:18]Read from MH i2c: E2 03 00 A6 36 00 90 00 50 [23:56:18]RAPDU: 90 00 [23:56:18]wFMCommunicate OK [23:56:18]wFMCommunicate request_size=255 [23:56:18]MH_SAM_APDU [23:56:18]CAPDU: 80 0D 02 02 FA 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 [23:56:18]Write to MH i2c: E2 02 01 A7 36 80 0D 02 02 FA 00 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 00 00 1B [23:56:18]Write i2c OK [23:56:18]MH_I2C_Read... [23:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:19]Read from MH i2c: E2 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 03 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 03 00 A7 36 00 90 00 51 [23:56:19]RAPDU: 90 00 [23:56:19]wFMCommunicate OK [23:56:19]wFMCommunicate request_size=255 [23:56:19]MH_SAM_APDU [23:56:19]CAPDU: 80 0D 02 02 FA 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:56:19]Write to MH i2c: E2 02 01 A8 36 80 0D 02 02 FA 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 E0 [23:56:19]Write i2c OK [23:56:19]MH_I2C_Read... [23:56:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:19]Read from MH i2c: E2 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 03 00 [23:56:19]MH_I2C_Read... [23:56:19]Read from MH i2c: E2 03 00 A8 36 00 90 00 52 [23:56:19]RAPDU: 90 00 [23:56:19]wFMCommunicate OK [23:56:19]wFMCommunicate request_size=142 [23:56:19]MH_SAM_APDU [23:56:19]CAPDU: 80 0D 02 02 89 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 51 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 8D A6 17 78 7C 50 [23:56:19]Write to MH i2c: E2 91 00 A9 36 80 0D 02 02 89 00 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 51 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 8D A6 17 78 7C 50 00 00 03 [23:56:20]Write i2c OK [23:56:20]MH_I2C_Read... [23:56:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:20]Read from MH i2c: E2 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 03 00 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 03 00 A9 36 00 90 00 53 [23:56:20]RAPDU: 90 00 [23:56:20]wFMCommunicate OK [23:56:20]wFMCommunicate request_size=4 [23:56:20]MH_SAM_APDU [23:56:20]CAPDU: 80 0D 03 02 [23:56:20]Write to MH i2c: E2 08 00 AA 36 80 0D 03 02 00 00 00 00 5B [23:56:20]Write i2c OK [23:56:20]MH_I2C_Read... [23:56:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:20]Read from MH i2c: E2 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 0B 00 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 0B 00 AA 36 00 C7 A4 72 44 D6 10 DE 35 90 00 76 [23:56:20]RAPDU: C7 A4 72 44 D6 10 DE 35 90 00 [23:56:20]wFMCommunicate OK [23:56:20]SAM_PROTO_SignData done [23:56:20]FM_MakeSignedData done [23:56:20]CreateOFDProtocolMessage [23:56:20]wFMCommunicate request_size=4 [23:56:20]MH_SAM_APDU [23:56:20]CAPDU: 80 11 00 00 [23:56:20]Write to MH i2c: E2 08 00 AB 36 80 11 00 00 00 00 00 00 5B [23:56:20]Write i2c OK [23:56:20]MH_I2C_Read... [23:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:20]Read from MH i2c: E2 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 17 00 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: E2 17 00 AB 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B6 [23:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [23:56:20]wFMCommunicate OK [23:56:20]CreateOFDProtocolMessage done [23:56:20]OFDSenderStorePacket 31825 [23:56:20]StoreOFDPacket docnum=31825 [23:56:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 7B 05 00 00 5E C2 73 05 88 C0 5A 05 01 00 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F4 03 04 00 9F 08 97 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 D5 04 6E 04 04 00 8F 00 00 00 69 04 A2 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 51 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 8D A6 17 78 7C 50 C7 A4 72 44 D6 10 DE 35 [23:56:20]CheckFolder [23:56:20]dirname=/storage/ofd_packets [23:56:20]CheckFolder done [23:56:20]ProducePacketName [23:56:20]name=ofd_packets/00031825 [23:56:20]NVStorageSaveData ofd_packets/00031825 [23:56:20]File name is /storage/ofd_packets/00031825 [23:56:20]Write 1433 bytes [23:56:20]NVStorageSaveData done [23:56:20]OFDSenderStorePacket done [23:56:20]KKMCreateOFDPacket done [23:56:20]NVStorageSaveData kkm_last_timestamp [23:56:20]File name is /storage/kkm_last_timestamp [23:56:20]Write 4 bytes [23:56:20]NVStorageSaveData done [23:56:20]ExternCall_PrintAddStr [23:56:20]wPrintStart [23:56:20]Write to MH i2c: 01 00 00 AC 36 E2 [23:56:20]Write i2c OK [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: 01 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: 01 07 00 [23:56:20]MH_I2C_Read... [23:56:20]Read from MH i2c: 01 07 00 AC 36 00 00 00 00 00 FF 0F F7 [23:56:20]RasterBufferAndPrint [23:56:20]line Отчет о закрытии смены [23:56:20]line ФФД: 1.0 [23:56:20]line ИНН: 02508201610067 [23:56:20]line Кассир: Дуйшенбек у Н. [23:56:20]line 16.07.2024 23:56 [23:56:20]line Смена: 371 [23:56:20]line РНМ: 0000000000098025 [23:56:20]line ЗНМ: 0300000189 [23:56:20]line СНО: Общий режим [23:56:20]line Чеков за смену: 143 [23:56:20]line ФД за смену: 145 [23:56:20]line Всего чеков: 143 [23:56:20]line ИТОГИ ПРИХОД [23:56:20]line Чеков: 143 [23:56:20]line Общий итог: 30865.00 [23:56:20]line Итого наличными: 29073.00 [23:56:20]line Итого безнал.: 1792.00 [23:56:20]line НДС 0% : 0.00 [23:56:20]line НДС 12% : 3277.51 [23:56:20]line НСП 0% : 0.00 [23:56:20]line НСП 1,50% : 0.00 [23:56:20]line НСП 0,50% : 0.00 [23:56:20]line НСП 5% : 0.00 [23:56:20]line НСП 3% : 0.00 [23:56:20]line НСП 2% : 0.00 [23:56:20]line НСП 1% : 273.06 [23:56:20]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:56:20]line Чеков: 0 [23:56:20]line Общий итог: 0.00 [23:56:20]line Итого наличными: 0.00 [23:56:20]line Итого безнал.: 0.00 [23:56:20]line НДС 0% : 0.00 [23:56:20]line НДС 12% : 0.00 [23:56:20]line НСП 0% : 0.00 [23:56:20]line НСП 1,50% : 0.00 [23:56:20]line НСП 0,50% : 0.00 [23:56:20]line НСП 5% : 0.00 [23:56:20]line НСП 3% : 0.00 [23:56:20]line НСП 2% : 0.00 [23:56:20]line НСП 1% : 0.00 [23:56:20]line ИТОГИ РАСХОД [23:56:20]line Чеков: 0 [23:56:20]line Общий итог: 0.00 [23:56:20]line Итого наличными: 0.00 [23:56:20]line Итого безнал.: 0.00 [23:56:20]line НДС 0% : 0.00 [23:56:20]line НДС 12% : 0.00 [23:56:20]line НСП 0% : 0.00 [23:56:20]line НСП 1,50% : 0.00 [23:56:20]line НСП 0,50% : 0.00 [23:56:20]line НСП 5% : 0.00 [23:56:20]line НСП 3% : 0.00 [23:56:20]line НСП 2% : 0.00 [23:56:20]line НСП 1% : 0.00 [23:56:20]line ИТОГИ ВОЗВРАТ РАСХОДА [23:56:20]line Чеков: 0 [23:56:20]line Общий итог: 0.00 [23:56:20]line Итого наличными: 0.00 [23:56:20]line Итого безнал.: 0.00 [23:56:20]line НДС 0% : 0.00 [23:56:20]line НДС 12% : 0.00 [23:56:20]line НСП 0% : 0.00 [23:56:20]line НСП 1,50% : 0.00 [23:56:20]line НСП 0,50% : 0.00 [23:56:20]line НСП 5% : 0.00 [23:56:20]line НСП 3% : 0.00 [23:56:20]line НСП 2% : 0.00 [23:56:20]line НСП 1% : 0.00 [23:56:20]line Сумма внесений: 0.00 [23:56:20]line Сумма выплат: 0.00 [23:56:20]line Нал. в кассе: 29073.00 [23:56:20]line НС Приход: 6244991.64 [23:56:20]line НС Возвр.Прихода: 2.00 [23:56:20]line НС Расход: 0.00 [23:56:20]line НС Возвр.Расхода: 0.00 [23:56:20]line ФД: 31825 [23:56:20]line ФМ: 0000000000965389 [23:56:20]line ФПД: 155744497859664 [23:56:20]OFD Sender: Processing packet 31825 [packets to send 6, broken 5] [23:56:20]ProducePacketName [23:56:20]name=ofd_packets/00031825 [23:56:20]OFD Sender: To server: pG, [23:56:20]CommunicateWithHost lk.salyk.kg:30040 [23:56:20]ConnectInit lk.salyk.kg [23:56:20]written 0, free lines is 4095 [23:56:21]Connected sock=10 [23: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 35 33 38 39 7B 05 00 00 5E C2 73 05 88 C0 5A 05 01 00 05 00 67 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 94 D1 83 D0 B9 D1 88 D0 B5 D0 BD D0 B1 D0 B5 D0 BA 20 D1 83 20 D0 9D 2E F4 03 04 00 9F 08 97 66 0E 04 04 00 73 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 AA 04 D5 04 6E 04 04 00 8F 00 00 00 69 04 A2 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 81 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 Write to MH i2c: 03 01 01 00 00 00 00 FC 6D 36 04 32 4C [23:56:21]02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 Write i2c OK [23:56:21]04 MH_I2C_Read... [23:56:21]00 Read from MH i2c: 00 01 00 [23:56:21]00 MH_I2C_Read... [23:56:21]00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 Read from MH i2c: 75 01 00 07 EE 00 03 [23:56:21]09 MH_I2C_Read... [23:56:21]00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 Read from MH i2c: 03 01 01 07 00 00 01 FC F3 36 03 00 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 00 00 EF 00 03 00 09 A3 00 0A F6 E6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 [23:56:21]00 RasterBufferAndPrint [23:56:21]02 line [23:56:21]F7 line [23:56:21]03 line [23:56:21]00 line [23:56:21]00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF line [23:56:21]03 09 written 0, free lines is 2903 [23:56:21]00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 MH_Cut [23:56:21]01 Write to MH i2c: 00 D1 05 01 F7 00 03 03 00 37 00 01 EF 0C 03 [23:56:21]09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D Write i2c OK [23:56:21]00 MH_I2C_Read... [23:56:21]6F Read from MH i2c: 04 D1 04 [23:56:21]00 MH_I2C_Read... [23:56:21]00 00 00 00 B1 04 00 00 70 04 00 00 72 04 Read from MH i2c: 00 D1 00 01 00 04 00 75 [23:56:21]00 MH_I2C_Read... [23:56:21]EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 Read from MH i2c: 09 D1 00 01 F2 00 03 03 01 37 00 00 01 0B F3 [23:56:21]03 Write to MH i2c: 00 01 00 00 EF 00 03 04 09 37 00 3B F6 [23:56:21]03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [23:56:21]01 MH_I2C_Read... [23:56:21]00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 51 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 8D A6 17 78 7C 50 C7 A4 72 44 D6 10 DE 35 [23:56:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 C2 12 47 00 B5 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 51 7C 00 00 F4 03 04 00 B6 B4 96 66 B6 04 01 00 00 D5 1B 62 5A 68 36 36 51 [23:56:22]CommunicateWithHost err = 0 [23:56:22]CheckOFDResponse [23:56:22]1017 (14) - 77093643461234 [23:56:22]1041 (16) - 0000000000965389 [23:56:22]1040 (4) - 31825 [23:56:22]1012 (4) - 16.07.2024 17:58 [23:56:22]1206 (1) - 0 [23:56:22]OFD Sender: Remove packet 31825 [23:56:22]ProducePacketName [23:56:22]name=ofd_packets/00031825 [23:56:22]NVStorageDeleteData [23:56:22]*** Cut start [23:56:22]*** Partial cut [23:56:22]*** CUTSNS_PIN = 1 [23:56:22]*** CUTSNS_PIN = 0 [23:56:23]OFD Sender: No OFD packet to send [23:56:23]*** Brake cut motor [23:56:23]Read from MH i2c: 01 [23:56:23]MH_I2C_Read... [23:56:23]*** Stop cut motor [23:56:23]*** Cut end [23:56:23]Read from MH i2c: 01 07 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: 01 07 00 04 37 00 00 00 00 00 FF 0F 50 [23:56:23]process_action close_shift done [23:56:23]requested_data is exist [23:56:23]produce_requested_data [23:56:23]requested_item fd.num is exist - process it [23:56:23]SAM_PROTO_GetFieldsCounters [23:56:23]wFMCommunicate request_size=4 [23:56:23]MH_SAM_APDU [23:56:23]CAPDU: 80 13 00 00 [23:56:23]Write to MH i2c: E2 08 00 05 37 80 13 00 00 00 00 00 00 B8 [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:23]Read from MH i2c: E2 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 62 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 62 00 05 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 51 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 CF [23:56:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 51 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:23]wFMCommunicate OK [23:56:23]SAM_PROTO_GetFieldsCounters done [23:56:23]requested_item shift.num is exist - process it [23:56:23]requested_item shift.opened is exist - process it [23:56:23]req_shift_opened [23:56:23]FM_GetShiftState [23:56:23]SAM_PROTO_GetShiftState [23:56:23]wFMCommunicate request_size=4 [23:56:23]MH_SAM_APDU [23:56:23]CAPDU: 80 13 01 00 [23:56:23]Write to MH i2c: E2 08 00 06 37 80 13 01 00 00 00 00 00 BA [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:23]Read from MH i2c: E2 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 0E 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 0E 00 06 37 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C5 [23:56:23]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:23]wFMCommunicate OK [23:56:23]SAM_PROTO_GetShiftState done [23:56:23]FM_GetShiftState done [23:56:23]req_shift_opened done [23:56:23]requested_item shift.open_date is exist - process it [23:56:23]req_shift_open_date [23:56:23]FM_GetShiftState [23:56:23]SAM_PROTO_GetShiftState [23:56:23]wFMCommunicate request_size=4 [23:56:23]MH_SAM_APDU [23:56:23]CAPDU: 80 13 01 00 [23:56:23]Write to MH i2c: E2 08 00 07 37 80 13 01 00 00 00 00 00 BB [23:56:23]Write i2c OK [23:56:23]MH_I2C_Read... [23:56:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:23]Read from MH i2c: E2 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 0E 00 [23:56:23]MH_I2C_Read... [23:56:23]Read from MH i2c: E2 0E 00 07 37 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C6 [23:56:23]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:24]wFMCommunicate OK [23:56:24]SAM_PROTO_GetShiftState done [23:56:24]FM_GetShiftState done [23:56:24]req_shift_open_date done [23:56:24]produce_requested_data done [23:56:24]produce_requested_data return {"fd.num":31825,"shift.num":371,"shift.opened":0,"shift.open_date":0} [23:56:24]process_action_free close_shift [23:56:24]json_value_free [23:56:24]json_value_free done [23:56:24]process_json_proto returns [23:56:24]Send response to host [23:56:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":31825,"shift.num":371,"shift.opened":0,"shift.open_date":0}}} [23:56:24]free response buf [23:56:24]execute_script done [23:56:24]execute_script returns [23:56:24]free content buf [23:56:24]Sock 7.Close socket [23:56:24]Sock 7.Thread stoped [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:58]OFD Sender: No OFD packet to send [23:57:03]OFD Sender: No OFD packet to send [23:57:08]OFD Sender: No OFD packet to send [23:57:13]OFD Sender: No OFD packet to send [23:57:18]OFD Sender: No OFD packet to send [23:57:23]OFD Sender: No OFD packet to send [23:57:28]OFD Sender: No OFD packet to send [23:57:33]OFD Sender: No OFD packet to send [23:57:38]OFD Sender: No OFD packet to send [23:57:43]OFD Sender: No OFD packet to send [23:57:48]OFD Sender: No OFD packet to send [23:57:53]OFD Sender: No OFD packet to send [23:57:58]OFD Sender: No OFD packet to send [23:58:03]OFD Sender: No OFD packet to send [23:58:08]OFD Sender: No OFD packet to send [23:58:13]OFD Sender: No OFD packet to send [23:58:18]OFD Sender: No OFD packet to send [23:58:23]OFD Sender: No OFD packet to send [23:58:28]OFD Sender: No OFD packet to send [23:58:33]OFD Sender: No OFD packet to send [23:58:38]OFD Sender: No OFD packet to send [23:58:43]OFD Sender: No OFD packet to send [23:58:48]OFD Sender: No OFD packet to send [23:58:53]OFD Sender: No OFD packet to send [23:58:58]OFD Sender: No OFD packet to send [23:59:03]OFD Sender: No OFD packet to send [23:59:08]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:45]accept exits with 9 [00:03:45]New connection [00:03:45]New thread 3066965348 created [00:03:45]Thread 3066821988 joined [00:03:45]Waiting for new connection... [00:03:45] Sock 9.Parse request [00:03:45]Sock 9.Check first char [00:03:45]Sock 9.First char is OK [00:03:45]request: POST /json_proto HTTP/1.0 [00:03:45]Method: POST [00:03:45]URL: /json_proto [00:03:45]Method is POST - this is cgi request [00:03:45]url: /json_proto [00:03:45]query_string will be loaded in cgi processing [00:03:45]execute_cgi json_proto POST (null) [00:03:45]execute_cgi path=json_proto method=POST [00:03:45]POST find Content-Length [00:03:45]Host: 172.17.39.68:8080 [00:03:45]Content-Length: 215 [00:03:45]Content-Type: application/json [00:03:45] [00:03:45]POST finish read [00:03:45]Found Content-Length = 215 [00:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:45]execute_script... [00:03:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:45]POST & json_proto [00:03:45]process_json_proto [00:03:45]json parsed OK: [00:03:45]protocol is kg_v1.0 [00:03:45]action value=get_value [00:03:45]process_action get_value [00:03:45]cmd_get_value [00:03:45]process_action get_value done [00:03:45]requested_data is exist [00:03:45]produce_requested_data [00:03:45]requested_item kkm.sn is exist - process it [00:03:45]requested_item kkm.ver is exist - process it [00:03:45]requested_item fm.sn is exist - process it [00:03:45]wFMCommunicate request_size=4 [00:03:45]MH_SAM_APDU [00:03:45]CAPDU: 80 11 00 00 [00:03:45]Write to MH i2c: E2 08 00 08 37 80 11 00 00 00 00 00 00 B9 [00:03:45]Write i2c OK [00:03:45]MH_I2C_Read... [00:03:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:45]Read from MH i2c: E2 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 17 00 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 17 00 08 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 14 [00:03:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:03:45]wFMCommunicate OK [00:03:45]requested_item fd.num is exist - process it [00:03:45]SAM_PROTO_GetFieldsCounters [00:03:45]wFMCommunicate request_size=4 [00:03:45]MH_SAM_APDU [00:03:45]CAPDU: 80 13 00 00 [00:03:45]Write to MH i2c: E2 08 00 09 37 80 13 00 00 00 00 00 00 BC [00:03:45]Write i2c OK [00:03:45]MH_I2C_Read... [00:03:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:45]Read from MH i2c: E2 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 62 00 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 62 00 09 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 51 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [00:03:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 51 7C 00 00 0E 04 04 00 73 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:45]wFMCommunicate OK [00:03:45]SAM_PROTO_GetFieldsCounters done [00:03:45]requested_item shift.num is exist - process it [00:03:45]requested_item shift.opened is exist - process it [00:03:45]req_shift_opened [00:03:45]FM_GetShiftState [00:03:45]SAM_PROTO_GetShiftState [00:03:45]wFMCommunicate request_size=4 [00:03:45]MH_SAM_APDU [00:03:45]CAPDU: 80 13 01 00 [00:03:45]Write to MH i2c: E2 08 00 0A 37 80 13 01 00 00 00 00 00 BE [00:03:45]Write i2c OK [00:03:45]MH_I2C_Read... [00:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:45]Read from MH i2c: E2 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 0E 00 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 0E 00 0A 37 00 09 00 00 00 00 00 00 00 00 00 00 90 00 C9 [00:03:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:45]wFMCommunicate OK [00:03:45]SAM_PROTO_GetShiftState done [00:03:45]FM_GetShiftState done [00:03:45]req_shift_opened done [00:03:45]requested_item shift.open_date is exist - process it [00:03:45]req_shift_open_date [00:03:45]FM_GetShiftState [00:03:45]SAM_PROTO_GetShiftState [00:03:45]wFMCommunicate request_size=4 [00:03:45]MH_SAM_APDU [00:03:45]CAPDU: 80 13 01 00 [00:03:45]Write to MH i2c: E2 08 00 0B 37 80 13 01 00 00 00 00 00 BF [00:03:45]Write i2c OK [00:03:45]MH_I2C_Read... [00:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:45]Read from MH i2c: E2 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 0E 00 [00:03:45]MH_I2C_Read... [00:03:45]Read from MH i2c: E2 0E 00 0B 37 00 09 00 00 00 00 00 00 00 00 00 00 90 00 CA [00:03:45]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:45]wFMCommunicate OK [00:03:45]SAM_PROTO_GetShiftState done [00:03:45]FM_GetShiftState done [00:03:45]req_shift_open_date done [00:03:45]produce_requested_data done [00:03:45]produce_requested_data return {"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31825,"shift.num":371,"shift.opened":0,"shift.open_date":0} [00:03:45]process_action_free get_value [00:03:45]json_value_free [00:03:45]json_value_free done [00:03:45]process_json_proto returns [00:03:45]Send response to host [00:03:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000189","kkm.ver":"001","fm.sn":"0000000000965389","fd.num":31825,"shift.num":371,"shift.opened":0,"shift.open_date":0}}} [00:03:45]free response buf [00:03:45]execute_script done [00:03:45]execute_script returns [00:03:45]free content buf [00:03:45]Sock 9.Close socket [00:03:45]Sock 9.Thread stoped [00:03:45]accept exits with 7 [00:03:45]New connection [00:03:45]New thread 3066821988 created [00:03:45]Thread 3066965348 joined [00:03:45]Waiting for new connection... [00:03:45] Sock 7.Parse request [00:03:45]Sock 7.Check first char [00:03:45]Sock 7.First char is OK [00:03:45]request: POST /json_proto HTTP/1.0 [00:03:45]Method: POST [00:03:45]URL: /json_proto [00:03:45]Method is POST - this is cgi request [00:03:45]url: /json_proto [00:03:45]query_string will be loaded in cgi processing [00:03:45]execute_cgi json_proto POST (null) [00:03:45]execute_cgi path=json_proto method=POST [00:03:45]POST find Content-Length [00:03:45]Host: 172.17.39.68:8080 [00:03:45]Content-Length: 331 [00:03:45]Content-Type: application/json [00:03:45] [00:03:45]POST finish read [00:03:45]Found Content-Length = 331 [00:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:45]execute_script... [00:03:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:45]POST & json_proto [00:03:45]process_json_proto [00:03:45]json parsed OK: [00:03:45]protocol is kg_v1.0 [00:03:45]action value=get_value [00:03:45]process_action get_value [00:03:45]cmd_get_value [00:03:45]process_action get_value done [00:03:45]requested_data is exist [00:03:45]produce_requested_data [00:03:45]requested_item fm.sale.total is exist - process it [00:03:45]SAM_PROTO_GetFMData [00:03:45]wFMCommunicate request_size=4 [00:03:45]MH_SAM_APDU [00:03:45]CAPDU: 80 13 03 00 [00:03:45]Write to MH i2c: E2 08 00 0C 37 80 13 03 00 00 00 00 00 C2 [00:03:45]Write i2c OK [00:03:45]MH_I2C_Read... [00:03:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:46]Read from MH i2c: E2 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 0C 37 00 B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 E3 [00:03:46]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:03:46]wFMCommunicate OK [00:03:46]wFMCommunicate request_size=4 [00:03:46]MH_SAM_APDU [00:03:46]CAPDU: 80 17 00 00 [00:03:46]Write to MH i2c: E2 08 00 0D 37 80 17 00 00 00 00 00 00 C4 [00:03:46]Write i2c OK [00:03:46]MH_I2C_Read... [00:03:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:46]Read from MH i2c: E2 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 0D 37 00 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 F5 [00:03:46]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 [00:03:46]wFMCommunicate OK [00:03:46]wFMCommunicate request_size=4 [00:03:46]MH_SAM_APDU [00:03:46]CAPDU: 80 17 00 00 [00:03:46]Write to MH i2c: E2 08 00 0E 37 80 17 00 00 00 00 00 00 C5 [00:03:46]Write i2c OK [00:03:46]MH_I2C_Read... [00:03:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:46]Read from MH i2c: E2 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 0E 37 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6A [00:03:46]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:46]wFMCommunicate OK [00:03:46]wFMCommunicate request_size=4 [00:03:46]MH_SAM_APDU [00:03:46]CAPDU: 80 17 00 00 [00:03:46]Write to MH i2c: E2 08 00 0F 37 80 17 00 00 00 00 00 00 C6 [00:03:46]Write i2c OK [00:03:46]MH_I2C_Read... [00:03:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:46]Read from MH i2c: E2 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 [00:03:46]MH_I2C_Read... [00:03:46]Read from MH i2c: E2 FD 00 0F 37 00 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 90 00 3B [00:03:46]RAPDU: 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 90 00 [00:03:46]wFMCommunicate OK [00:03:46]wFMCommunicate request_size=4 [00:03:46]MH_SAM_APDU [00:03:46]CAPDU: 80 17 00 00 [00:03:46]Write to MH i2c: E2 08 00 10 37 80 17 00 00 00 00 00 00 C7 [00:03:46]Write i2c OK [00:03:46]MH_I2C_Read... [00:03:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [00:03:47]Read from MH i2c: E2 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 D4 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 D4 00 10 37 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B8 [00:03:47]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:47]wFMCommunicate OK [00:03:47]SAM_PROTO_GetFMData done [00:03:47]requested_item fm.sale_refund.total is exist - process it [00:03:47]requested_item fm.buy.total is exist - process it [00:03:47]requested_item shift.sale.total is exist - process it [00:03:47]SAM_PROTO_GetShiftData [00:03:47]wFMCommunicate request_size=4 [00:03:47]MH_SAM_APDU [00:03:47]CAPDU: 80 13 02 00 [00:03:47]Write to MH i2c: E2 08 00 11 37 80 13 02 00 00 00 00 00 C6 [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:47]Read from MH i2c: E2 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 11 37 00 AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 DA [00:03:47]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 A4 18 2F 70 04 03 00 A4 5C 2C 72 04 03 00 00 BC 02 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 47 00 05 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 AA 6A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [00:03:47]wFMCommunicate OK [00:03:47]wFMCommunicate request_size=4 [00:03:47]MH_SAM_APDU [00:03:47]CAPDU: 80 17 00 00 [00:03:47]Write to MH i2c: E2 08 00 12 37 80 17 00 00 00 00 00 00 C9 [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:47]Read from MH i2c: E2 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 [00:03:47]MH_I2C_Read... [00:03:47]Read from MH i2c: E2 FD 00 12 37 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 EB [00:03:47]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:03:47]wFMCommunicate OK [00:03:47]wFMCommunicate request_size=4 [00:03:47]MH_SAM_APDU [00:03:47]CAPDU: 80 17 00 00 [00:03:47]Write to MH i2c: E2 08 00 13 37 80 17 00 00 00 00 00 00 CA [00:03:47]Write i2c OK [00:03:47]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 13 37 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 81 [00:03:48]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:48]wFMCommunicate OK [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 17 00 00 [00:03:48]Write to MH i2c: E2 08 00 14 37 80 17 00 00 00 00 00 00 CB [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]OFD Sender: No OFD packet to send [00:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 FD 00 14 37 00 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 90 00 3D [00:03:48]RAPDU: 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 90 00 [00:03:48]wFMCommunicate OK [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 17 00 00 [00:03:48]Write to MH i2c: E2 08 00 15 37 80 17 00 00 00 00 00 00 CC [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 CB 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 CB 00 15 37 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B5 [00:03:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:48]wFMCommunicate OK [00:03:48]SAM_PROTO_GetShiftData done [00:03:48]requested_item shift.sale.total_cash is exist - process it [00:03:48]requested_item shift.sale_refund.total is exist - process it [00:03:48]requested_item shift.sale_refund.total_cash is exist - process it [00:03:48]requested_item shift.buy.total is exist - process it [00:03:48]requested_item shift.buy.total_cash is exist - process it [00:03:48]produce_requested_data done [00:03:48]produce_requested_data return {"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":30865.00,"shift.sale.total_cash":29073.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:48]process_action_free get_value [00:03:48]json_value_free [00:03:48]json_value_free done [00:03:48]process_json_proto returns [00:03:48]Send response to host [00:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":30865.00,"shift.sale.total_cash":29073.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:48]free response buf [00:03:48]execute_script done [00:03:48]execute_script returns [00:03:48]free content buf [00:03:48]Sock 7.Close socket [00:03:48]Sock 7.Thread stoped [00:03:48]accept exits with 9 [00:03:48]New connection [00:03:48]New thread 3066965348 created [00:03:48]Thread 3066821988 joined [00:03:48]Waiting for new connection... [00:03:48] Sock 9.Parse request [00:03:48]Sock 9.Check first char [00:03:48]Sock 9.First char is OK [00:03:48]request: POST /json_proto HTTP/1.0 [00:03:48]Method: POST [00:03:48]URL: /json_proto [00:03:48]Method is POST - this is cgi request [00:03:48]url: /json_proto [00:03:48]query_string will be loaded in cgi processing [00:03:48]execute_cgi json_proto POST (null) [00:03:48]execute_cgi path=json_proto method=POST [00:03:48]POST find Content-Length [00:03:48]Host: 172.17.39.68:8080 [00:03:48]Content-Length: 276 [00:03:48]Content-Type: application/json [00:03:48] [00:03:48]POST finish read [00:03:48]Found Content-Length = 276 [00:03:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:48]execute_script... [00:03:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0428\u0430\u043C\u0431\u0435\u0442\u0430\u043B\u0438\u0435\u0432 \u0410." } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:03:48]POST & json_proto [00:03:48]process_json_proto [00:03:48]json parsed OK: [00:03:48]protocol is kg_v1.0 [00:03:48]action value=open_shift [00:03:48]process_action open_shift [00:03:48]cmd_open_shift [00:03:48]MH_GetDate [00:03:48]Write to MH i2c: F0 00 00 16 37 3C [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: F0 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: F0 09 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: F0 09 00 16 37 00 6B 0A 97 66 D6 48 95 66 D0 [00:03:48]GetLastDocTimeStamp 1721174175 [00:03:48]current date 1721174635 [00:03:48]FM_GetShiftState [00:03:48]SAM_PROTO_GetShiftState [00:03:48]wFMCommunicate request_size=4 [00:03:48]MH_SAM_APDU [00:03:48]CAPDU: 80 13 01 00 [00:03:48]Write to MH i2c: E2 08 00 17 37 80 13 01 00 00 00 00 00 CB [00:03:48]Write i2c OK [00:03:48]MH_I2C_Read... [00:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:48]Read from MH i2c: E2 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 0E 00 [00:03:48]MH_I2C_Read... [00:03:48]Read from MH i2c: E2 0E 00 17 37 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D6 [00:03:49]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:03:49]wFMCommunicate OK [00:03:49]SAM_PROTO_GetShiftState done [00:03:49]FM_GetShiftState done [00:03:49]KKMCreateOpenShiftDocument [00:03:49]Load OK [00:03:49]Malloc new data [00:03:49]MH_GetDate [00:03:49]Write to MH i2c: F0 00 00 18 37 3E [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: F0 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: F0 09 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: F0 09 00 18 37 00 6C 0A 97 66 D6 48 95 66 D3 [00:03:49]Malloc new data [00:03:49]KKMCreateOpenShiftDocument OK [00:03:49]KKMSetOpenShiftData OK [00:03:49]ProcessDocumentItem done err = 0, tmpTLVsize=213 [00:03:49]tlvbuf is 015FFC60 [00:03:49]KKMLoadAndSignOpenShiftData [00:03:49]SAM_PROTO_ProcessDocument [00:03:49]wFMCommunicate request_size=9 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 01 00 04 02 00 D5 00 [00:03:49]Write to MH i2c: E2 0C 00 19 37 80 15 01 00 04 00 02 00 D5 00 00 00 AE [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 19 37 00 90 00 C4 [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=23 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:03:49]Write to MH i2c: E2 1A 00 1A 37 80 15 02 00 12 00 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 00 00 C6 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 1A 37 00 90 00 C5 [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=35 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 1E FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E [00:03:49]Write to MH i2c: E2 26 00 1B 37 80 15 02 00 1E 00 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E 00 00 4D [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 1B 37 00 90 00 C6 [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=96 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 5B F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 [00:03:49]Write to MH i2c: E2 63 00 1C 37 80 15 02 00 5B 00 F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 00 00 E6 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 1C 37 00 90 00 C7 [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=51 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:03:49]Write to MH i2c: E2 36 00 1D 37 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 7B [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 1D 37 00 90 00 C8 [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=13 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 08 F4 03 04 00 6C 0A 97 66 [00:03:49]Write to MH i2c: E2 10 00 1E 37 80 15 02 00 08 00 F4 03 04 00 6C 0A 97 66 00 00 53 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 1E 37 00 90 00 C9 [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=25 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 [00:03:49]Write to MH i2c: E2 1C 00 1F 37 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 00 00 37 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 03 00 1F 37 00 90 00 CA [00:03:49]RAPDU: 90 00 [00:03:49]wFMCommunicate OK [00:03:49]wFMCommunicate request_size=4 [00:03:49]MH_SAM_APDU [00:03:49]CAPDU: 80 15 03 00 [00:03:49]Write to MH i2c: E2 08 00 20 37 80 15 03 00 00 00 00 00 D8 [00:03:49]Write i2c OK [00:03:49]MH_I2C_Read... [00:03:49]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:03:49]Read from MH i2c: E2 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 38 00 [00:03:49]MH_I2C_Read... [00:03:49]Read from MH i2c: E2 38 00 20 37 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 52 7C 00 00 0E 04 04 00 74 01 00 00 35 04 06 00 C7 3C E0 12 5F 00 90 00 43 [00:03:49]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 52 7C 00 00 0E 04 04 00 74 01 00 00 35 04 06 00 C7 3C E0 12 5F 00 90 00 [00:03:49]wFMCommunicate OK [00:03:49]SAM_PROTO_ProcessDocument answer len = 51 [00:03:49]SAM_PROTO_ProcessDocument done [00:03:49]SetTLVBufToDocument [00:03:49]Processing tag 1209 (04B9) [00:03:49]Malloc new data [00:03:49]Processing tag 1041 (0411) [00:03:49]Processing tag 1040 (0410) [00:03:49]Malloc new data [00:03:49]Processing tag 1038 (040E) [00:03:49]Malloc new data [00:03:49]Processing tag 1077 (0435) [00:03:49]Malloc new data [00:03:49]SetTLVBufToDocument err=0 [00:03:49]KKMLoadAndSignOpenShiftData store KKM data [00:03:49]KKMLoadAndSignOpenShiftData err=0 [00:03:49]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Шамбеталиев А. Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 Место: АЗС № 140 "Партнер Нефть" 17.07.2024 00:03 Смена: 372 РНМ: 0000000000098025 ЗНМ: 0300000189 ФД: 31826 ФМ: 0000000000965389 ФПД: 219064271265536 [00:03:49]StoreToDocumentArchive [00:03:49]shift 372 fd 31826 [00:03:49]Create dir for shift 0372 [00:03:49]save to /storage/0372/doc_00031826 [00:03:49]save last doc name /storage/0372/doc_00031826 to /storage/kkm_last_doc_name [00:03:49]save OK [00:03:49]Clear old archive folders... [00:03:49]Remove dir /storage/0371 [00:03:49]opendir ok [00:03:49]file . [00:03:49]file .. [00:03:49]file doc_00031681 [00:03:49]remove file /storage/0371/doc_00031681 [00:03:49]file doc_00031682 [00:03:49]remove file /storage/0371/doc_00031682 [00:03:49]file doc_00031683 [00:03:49]remove file /storage/0371/doc_00031683 [00:03:49]file doc_00031684 [00:03:49]remove file /storage/0371/doc_00031684 [00:03:49]file doc_00031685 [00:03:49]remove file /storage/0371/doc_00031685 [00:03:49]file doc_00031686 [00:03:49]remove file /storage/0371/doc_00031686 [00:03:49]file doc_00031687 [00:03:49]remove file /storage/0371/doc_00031687 [00:03:49]file doc_00031688 [00:03:49]remove file /storage/0371/doc_00031688 [00:03:49]file doc_00031689 [00:03:49]remove file /storage/0371/doc_00031689 [00:03:49]file doc_00031690 [00:03:49]remove file /storage/0371/doc_00031690 [00:03:49]file doc_00031691 [00:03:49]remove file /storage/0371/doc_00031691 [00:03:49]file doc_00031692 [00:03:49]remove file /storage/0371/doc_00031692 [00:03:49]file doc_00031693 [00:03:49]remove file /storage/0371/doc_00031693 [00:03:49]file doc_00031694 [00:03:49]remove file /storage/0371/doc_00031694 [00:03:49]file doc_00031695 [00:03:49]remove file /storage/0371/doc_00031695 [00:03:49]file doc_00031696 [00:03:49]remove file /storage/0371/doc_00031696 [00:03:49]file doc_00031697 [00:03:49]remove file /storage/0371/doc_00031697 [00:03:49]file doc_00031698 [00:03:49]remove file /storage/0371/doc_00031698 [00:03:49]file doc_00031699 [00:03:49]remove file /storage/0371/doc_00031699 [00:03:49]file doc_00031700 [00:03:49]remove file /storage/0371/doc_00031700 [00:03:49]file doc_00031701 [00:03:49]remove file /storage/0371/doc_00031701 [00:03:49]file doc_00031702 [00:03:49]remove file /storage/0371/doc_00031702 [00:03:49]file doc_00031703 [00:03:49]remove file /storage/0371/doc_00031703 [00:03:50]file doc_00031704 [00:03:50]remove file /storage/0371/doc_00031704 [00:03:50]file doc_00031705 [00:03:50]remove file /storage/0371/doc_00031705 [00:03:50]file doc_00031706 [00:03:50]remove file /storage/0371/doc_00031706 [00:03:50]file doc_00031707 [00:03:50]remove file /storage/0371/doc_00031707 [00:03:50]file doc_00031708 [00:03:50]remove file /storage/0371/doc_00031708 [00:03:50]file doc_00031709 [00:03:50]remove file /storage/0371/doc_00031709 [00:03:50]file doc_00031710 [00:03:50]remove file /storage/0371/doc_00031710 [00:03:50]file doc_00031711 [00:03:50]remove file /storage/0371/doc_00031711 [00:03:50]file doc_00031712 [00:03:50]remove file /storage/0371/doc_00031712 [00:03:50]file doc_00031713 [00:03:50]remove file /storage/0371/doc_00031713 [00:03:50]file doc_00031714 [00:03:50]remove file /storage/0371/doc_00031714 [00:03:50]file doc_00031715 [00:03:50]remove file /storage/0371/doc_00031715 [00:03:50]file doc_00031716 [00:03:50]remove file /storage/0371/doc_00031716 [00:03:50]file doc_00031717 [00:03:50]remove file /storage/0371/doc_00031717 [00:03:50]file doc_00031718 [00:03:50]remove file /storage/0371/doc_00031718 [00:03:50]file doc_00031719 [00:03:50]remove file /storage/0371/doc_00031719 [00:03:50]file doc_00031720 [00:03:50]remove file /storage/0371/doc_00031720 [00:03:50]file doc_00031721 [00:03:50]remove file /storage/0371/doc_00031721 [00:03:50]file doc_00031722 [00:03:50]remove file /storage/0371/doc_00031722 [00:03:50]file doc_00031723 [00:03:50]remove file /storage/0371/doc_00031723 [00:03:50]file doc_00031724 [00:03:50]remove file /storage/0371/doc_00031724 [00:03:50]file doc_00031725 [00:03:50]remove file /storage/0371/doc_00031725 [00:03:50]file doc_00031726 [00:03:50]remove file /storage/0371/doc_00031726 [00:03:50]file doc_00031727 [00:03:50]remove file /storage/0371/doc_00031727 [00:03:50]file doc_00031728 [00:03:50]remove file /storage/0371/doc_00031728 [00:03:50]file doc_00031729 [00:03:50]remove file /storage/0371/doc_00031729 [00:03:50]file doc_00031730 [00:03:50]remove file /storage/0371/doc_00031730 [00:03:50]file doc_00031731 [00:03:50]remove file /storage/0371/doc_00031731 [00:03:50]file doc_00031732 [00:03:50]remove file /storage/0371/doc_00031732 [00:03:50]file doc_00031733 [00:03:50]remove file /storage/0371/doc_00031733 [00:03:50]file doc_00031734 [00:03:50]remove file /storage/0371/doc_00031734 [00:03:50]file doc_00031735 [00:03:50]remove file /storage/0371/doc_00031735 [00:03:50]file doc_00031736 [00:03:50]remove file /storage/0371/doc_00031736 [00:03:50]file doc_00031737 [00:03:50]remove file /storage/0371/doc_00031737 [00:03:50]file doc_00031738 [00:03:50]remove file /storage/0371/doc_00031738 [00:03:50]file doc_00031739 [00:03:50]remove file /storage/0371/doc_00031739 [00:03:50]file doc_00031740 [00:03:50]remove file /storage/0371/doc_00031740 [00:03:50]file doc_00031741 [00:03:50]remove file /storage/0371/doc_00031741 [00:03:50]file doc_00031742 [00:03:50]remove file /storage/0371/doc_00031742 [00:03:50]file doc_00031743 [00:03:50]remove file /storage/0371/doc_00031743 [00:03:50]file doc_00031744 [00:03:50]remove file /storage/0371/doc_00031744 [00:03:50]file doc_00031745 [00:03:50]remove file /storage/0371/doc_00031745 [00:03:50]file doc_00031746 [00:03:50]remove file /storage/0371/doc_00031746 [00:03:50]file doc_00031747 [00:03:50]remove file /storage/0371/doc_00031747 [00:03:50]file doc_00031748 [00:03:50]remove file /storage/0371/doc_00031748 [00:03:50]file doc_00031749 [00:03:50]remove file /storage/0371/doc_00031749 [00:03:50]file doc_00031750 [00:03:50]remove file /storage/0371/doc_00031750 [00:03:50]file doc_00031751 [00:03:50]remove file /storage/0371/doc_00031751 [00:03:50]file doc_00031752 [00:03:50]remove file /storage/0371/doc_00031752 [00:03:50]file doc_00031753 [00:03:50]remove file /storage/0371/doc_00031753 [00:03:50]file doc_00031754 [00:03:50]remove file /storage/0371/doc_00031754 [00:03:50]file doc_00031755 [00:03:50]remove file /storage/0371/doc_00031755 [00:03:50]file doc_00031756 [00:03:50]remove file /storage/0371/doc_00031756 [00:03:50]file doc_00031757 [00:03:50]remove file /storage/0371/doc_00031757 [00:03:50]file doc_00031758 [00:03:50]remove file /storage/0371/doc_00031758 [00:03:50]file doc_00031759 [00:03:50]remove file /storage/0371/doc_00031759 [00:03:50]file doc_00031760 [00:03:50]remove file /storage/0371/doc_00031760 [00:03:50]file doc_00031761 [00:03:50]remove file /storage/0371/doc_00031761 [00:03:50]file doc_00031762 [00:03:50]remove file /storage/0371/doc_00031762 [00:03:50]file doc_00031763 [00:03:50]remove file /storage/0371/doc_00031763 [00:03:50]file doc_00031764 [00:03:50]remove file /storage/0371/doc_00031764 [00:03:50]file doc_00031765 [00:03:50]remove file /storage/0371/doc_00031765 [00:03:50]file doc_00031766 [00:03:50]remove file /storage/0371/doc_00031766 [00:03:50]file doc_00031767 [00:03:50]remove file /storage/0371/doc_00031767 [00:03:50]file doc_00031768 [00:03:50]remove file /storage/0371/doc_00031768 [00:03:50]file doc_00031769 [00:03:50]remove file /storage/0371/doc_00031769 [00:03:50]file doc_00031770 [00:03:50]remove file /storage/0371/doc_00031770 [00:03:50]file doc_00031771 [00:03:50]remove file /storage/0371/doc_00031771 [00:03:50]file doc_00031772 [00:03:50]remove file /storage/0371/doc_00031772 [00:03:50]file doc_00031773 [00:03:50]remove file /storage/0371/doc_00031773 [00:03:50]file doc_00031774 [00:03:50]remove file /storage/0371/doc_00031774 [00:03:50]file doc_00031775 [00:03:50]remove file /storage/0371/doc_00031775 [00:03:50]file doc_00031776 [00:03:50]remove file /storage/0371/doc_00031776 [00:03:50]file doc_00031777 [00:03:50]remove file /storage/0371/doc_00031777 [00:03:50]file doc_00031778 [00:03:50]remove file /storage/0371/doc_00031778 [00:03:50]file doc_00031779 [00:03:50]remove file /storage/0371/doc_00031779 [00:03:50]file doc_00031780 [00:03:50]remove file /storage/0371/doc_00031780 [00:03:50]file doc_00031781 [00:03:50]remove file /storage/0371/doc_00031781 [00:03:50]file doc_00031782 [00:03:50]remove file /storage/0371/doc_00031782 [00:03:50]file doc_00031783 [00:03:50]remove file /storage/0371/doc_00031783 [00:03:50]file doc_00031784 [00:03:50]remove file /storage/0371/doc_00031784 [00:03:50]file doc_00031785 [00:03:50]remove file /storage/0371/doc_00031785 [00:03:50]file doc_00031786 [00:03:50]remove file /storage/0371/doc_00031786 [00:03:50]file doc_00031787 [00:03:50]remove file /storage/0371/doc_00031787 [00:03:50]file doc_00031788 [00:03:50]remove file /storage/0371/doc_00031788 [00:03:50]file doc_00031789 [00:03:50]remove file /storage/0371/doc_00031789 [00:03:50]file doc_00031790 [00:03:50]remove file /storage/0371/doc_00031790 [00:03:50]file doc_00031791 [00:03:50]remove file /storage/0371/doc_00031791 [00:03:50]file doc_00031792 [00:03:50]remove file /storage/0371/doc_00031792 [00:03:50]file doc_00031793 [00:03:50]remove file /storage/0371/doc_00031793 [00:03:50]file doc_00031794 [00:03:50]remove file /storage/0371/doc_00031794 [00:03:50]file doc_00031795 [00:03:50]remove file /storage/0371/doc_00031795 [00:03:50]file doc_00031796 [00:03:50]remove file /storage/0371/doc_00031796 [00:03:50]file doc_00031797 [00:03:50]remove file /storage/0371/doc_00031797 [00:03:50]file doc_00031798 [00:03:50]remove file /storage/0371/doc_00031798 [00:03:50]file doc_00031799 [00:03:50]remove file /storage/0371/doc_00031799 [00:03:50]file doc_00031800 [00:03:50]remove file /storage/0371/doc_00031800 [00:03:50]file doc_00031801 [00:03:50]remove file /storage/0371/doc_00031801 [00:03:50]file doc_00031802 [00:03:50]remove file /storage/0371/doc_00031802 [00:03:50]file doc_00031803 [00:03:50]remove file /storage/0371/doc_00031803 [00:03:50]file doc_00031804 [00:03:50]remove file /storage/0371/doc_00031804 [00:03:50]file doc_00031805 [00:03:50]remove file /storage/0371/doc_00031805 [00:03:50]file doc_00031806 [00:03:50]remove file /storage/0371/doc_00031806 [00:03:50]file doc_00031807 [00:03:50]remove file /storage/0371/doc_00031807 [00:03:50]file doc_00031808 [00:03:50]remove file /storage/0371/doc_00031808 [00:03:50]file doc_00031809 [00:03:50]remove file /storage/0371/doc_00031809 [00:03:50]file doc_00031810 [00:03:50]remove file /storage/0371/doc_00031810 [00:03:50]file doc_00031811 [00:03:50]remove file /storage/0371/doc_00031811 [00:03:50]file doc_00031812 [00:03:50]remove file /storage/0371/doc_00031812 [00:03:50]file doc_00031813 [00:03:50]remove file /storage/0371/doc_00031813 [00:03:50]file doc_00031814 [00:03:50]remove file /storage/0371/doc_00031814 [00:03:50]file doc_00031815 [00:03:50]remove file /storage/0371/doc_00031815 [00:03:50]file doc_00031816 [00:03:50]remove file /storage/0371/doc_00031816 [00:03:50]file doc_00031817 [00:03:50]remove file /storage/0371/doc_00031817 [00:03:50]file doc_00031818 [00:03:50]remove file /storage/0371/doc_00031818 [00:03:50]file doc_00031819 [00:03:50]remove file /storage/0371/doc_00031819 [00:03:50]file doc_00031820 [00:03:50]remove file /storage/0371/doc_00031820 [00:03:50]file doc_00031821 [00:03:50]remove file /storage/0371/doc_00031821 [00:03:50]file doc_00031822 [00:03:50]remove file /storage/0371/doc_00031822 [00:03:50]file doc_00031823 [00:03:50]remove file /storage/0371/doc_00031823 [00:03:50]file doc_00031824 [00:03:50]remove file /storage/0371/doc_00031824 [00:03:50]file doc_00031825 [00:03:50]remove file /storage/0371/doc_00031825 [00:03:50]remove dir /storage/0371 [00:03:50]ProcessDocumentItem done err = 0, tmpTLVsize=264 [00:03:50]tlvbuf is 015C04B0 [00:03:50]SAM_PROTO_ClearQueue [00:03:50]wFMCommunicate request_size=4 [00:03:50]MH_SAM_APDU [00:03:50]CAPDU: 80 09 00 00 [00:03:50]Write to MH i2c: E2 08 00 21 37 80 09 00 00 00 00 00 00 CA [00:03:50]Write i2c OK [00:03:50]MH_I2C_Read... [00:03:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:03:50]Read from MH i2c: E2 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 21 37 00 90 00 CC [00:03:50]RAPDU: 90 00 [00:03:50]wFMCommunicate OK [00:03:50]SAM_PROTO_ClearQueue done [00:03:50]KKMCreateOFDPacket [00:03:50]OFDProtocolAddRootSTLVToBuf [00:03:50]FM_MakeSignedData [00:03:50]FM_MakeSignedData [00:03:50]SAM_PROTO_SignData [00:03:50]wFMCommunicate request_size=4 [00:03:50]MH_SAM_APDU [00:03:50]CAPDU: 80 0D 01 02 [00:03:50]Write to MH i2c: E2 08 00 22 37 80 0D 01 02 00 00 00 00 D2 [00:03:50]Write i2c OK [00:03:50]MH_I2C_Read... [00:03:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:03:50]Read from MH i2c: E2 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 [00:03:50]MH_I2C_Read... [00:03:50]Read from MH i2c: E2 03 00 22 37 00 90 00 CD [00:03:50]RAPDU: 90 00 [00:03:50]wFMCommunicate OK [00:03:50]wFMCommunicate request_size=255 [00:03:50]MH_SAM_APDU [00:03:50]CAPDU: 80 0D 02 02 FA 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 6C 0A 97 66 0E 04 04 00 74 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 52 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 [00:03:51]Write to MH i2c: E2 02 01 23 37 80 0D 02 02 FA 00 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 6C 0A 97 66 0E 04 04 00 74 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 52 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 00 00 08 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 23 37 00 90 00 CE [00:03:51]RAPDU: 90 00 [00:03:51]wFMCommunicate OK [00:03:51]wFMCommunicate request_size=23 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 0D 02 02 12 30 30 39 36 35 33 38 39 35 04 06 00 C7 3C E0 12 5F 00 [00:03:51]Write to MH i2c: E2 1A 00 24 37 80 0D 02 02 12 00 30 30 39 36 35 33 38 39 35 04 06 00 C7 3C E0 12 5F 00 00 00 34 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 03 00 24 37 00 90 00 CF [00:03:51]RAPDU: 90 00 [00:03:51]wFMCommunicate OK [00:03:51]wFMCommunicate request_size=4 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 0D 03 02 [00:03:51]Write to MH i2c: E2 08 00 25 37 80 0D 03 02 00 00 00 00 D7 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 0B 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 0B 00 25 37 00 96 CC 59 9D A6 CA 13 0E 90 00 C1 [00:03:51]RAPDU: 96 CC 59 9D A6 CA 13 0E 90 00 [00:03:51]wFMCommunicate OK [00:03:51]SAM_PROTO_SignData done [00:03:51]FM_MakeSignedData done [00:03:51]CreateOFDProtocolMessage [00:03:51]wFMCommunicate request_size=4 [00:03:51]MH_SAM_APDU [00:03:51]CAPDU: 80 11 00 00 [00:03:51]Write to MH i2c: E2 08 00 26 37 80 11 00 00 00 00 00 00 D7 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:03:51]Read from MH i2c: E2 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 17 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: E2 17 00 26 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 32 [00:03:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:03:51]wFMCommunicate OK [00:03:51]CreateOFDProtocolMessage done [00:03:51]OFDSenderStorePacket 31826 [00:03:51]StoreOFDPacket docnum=31826 [00:03:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1C 01 00 00 8B 39 14 01 4C 59 5A 02 01 00 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 6C 0A 97 66 0E 04 04 00 74 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 52 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 C7 3C E0 12 5F 00 96 CC 59 9D A6 CA 13 0E [00:03:51]CheckFolder [00:03:51]dirname=/storage/ofd_packets [00:03:51]CheckFolder done [00:03:51]ProducePacketName [00:03:51]name=ofd_packets/00031826 [00:03:51]NVStorageSaveData ofd_packets/00031826 [00:03:51]File name is /storage/ofd_packets/00031826 [00:03:51]Write 314 bytes [00:03:51]NVStorageSaveData done [00:03:51]OFDSenderStorePacket done [00:03:51]KKMCreateOFDPacket done [00:03:51]NVStorageSaveData kkm_last_timestamp [00:03:51]File name is /storage/kkm_last_timestamp [00:03:51]Write 4 bytes [00:03:51]NVStorageSaveData done [00:03:51]ExternCall_PrintAddStr [00:03:51]wPrintStart [00:03:51]Write to MH i2c: 01 00 00 27 37 5E [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: 01 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: 01 07 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: 01 07 00 27 37 00 00 00 00 00 FF 0F 73 [00:03:51]RasterBufferAndPrint [00:03:51]line Отчет об открытии смены [00:03:51]line ФФД: 1.0 [00:03:51]line ИНН: 02508201610067 [00:03:51]line Кассир: Шамбеталиев А. [00:03:51]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:03:51]line Место: АЗС № 140 "Партнер Нефть" [00:03:51]line 17.07.2024 00:03 [00:03:51]line Смена: 372 [00:03:51]line РНМ: 0000000000098025 [00:03:51]line ЗНМ: 0300000189 [00:03:51]line ФД: 31826 [00:03:51]line ФМ: 0000000000965389 [00:03:51]line ФПД: 219064271265536 [00:03:51]written 0, free lines is 4095 [00:03:51]OFD Sender: Processing packet 31826 [packets to send 6, broken 5] [00:03:51]ProducePacketName [00:03:51]name=ofd_packets/00031826 [00:03:51]OFD Sender: To server: pG, [00:03:51]CommunicateWithHost lk.salyk.kg:30040 [00:03:51]ConnectInit lk.salyk.kg [00:03:51]Connected sock=10 [00:03:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1C 01 00 00 8B 39 14 01 4C 59 5A 02 01 00 02 00 08 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1A 00 D0 A8 D0 B0 D0 BC D0 B1 D0 B5 D1 82 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 20 D0 90 2E F1 03 57 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A7 D0 BE D0 BD 2D D0 9A D0 B0 D0 BF D0 BA D0 B0 2C 20 D1 82 D1 80 D0 B0 D1 81 D1 81 D0 B0 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 2D D0 A2 D0 B0 D1 80 D0 B0 D0 B7 2C 20 34 32 2E 37 32 34 34 31 38 2C 20 37 31 2E 35 36 35 37 38 35 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 34 30 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 6C 0A 97 66 0E 04 04 00 74 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 52 7C 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 04 06 00 C7 3C E0 12 5F 00 96 CC 59 9D A6 CA 13 0E [00:03:51]Write to MH i2c: 01 00 00 39 37 70 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: 01 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: 01 07 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: 01 07 00 39 37 00 00 00 00 00 5B 0E E0 [00:03:51]RasterBufferAndPrint [00:03:51]line [00:03:51]line [00:03:51]line [00:03:51]line [00:03:51]line [00:03:51]written 0, free lines is 3685 [00:03:51]MH_Cut [00:03:51]Write to MH i2c: D1 01 00 40 37 01 49 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: D1 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: D1 01 00 [00:03:51]MH_I2C_Read... [00:03:51]Read from MH i2c: D1 01 00 40 37 00 48 [00:03:51]Write to MH i2c: 01 00 00 41 37 78 [00:03:51]Write i2c OK [00:03:51]MH_I2C_Read... [00:03:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B7 67 47 00 B5 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 35 33 38 39 10 04 04 00 52 7C 00 00 F4 03 04 00 78 B6 96 66 B6 04 01 00 00 E2 27 01 06 81 FF B1 CA [00:03:51]CommunicateWithHost err = 0 [00:03:51]CheckOFDResponse [00:03:51]1017 (14) - 77093643461234 [00:03:51]1041 (16) - 0000000000965389 [00:03:51]1040 (4) - 31826 [00:03:51]1012 (4) - 16.07.2024 18:05 [00:03:51]1206 (1) - 0 [00:03:51]OFD Sender: Remove packet 31826 [00:03:51]ProducePacketName [00:03:51]name=ofd_packets/00031826 [00:03:51]NVStorageDeleteData [00:03:52]*** Cut start [00:03:52]*** Partial cut [00:03:52]*** CUTSNS_PIN = 1 [00:03:52]*** CUTSNS_PIN = 0 [00:03:52]OFD Sender: No OFD packet to send [00:03:52]*** Brake cut motor [00:03:52]Read from MH i2c: 01 [00:03:52]MH_I2C_Read... [00:03:52]*** Stop cut motor [00:03:52]*** Cut end [00:03:52]Read from MH i2c: 01 07 00 [00:03:52]MH_I2C_Read... [00:03:52]Read from MH i2c: 01 07 00 41 37 00 00 00 00 00 FF 0F 8D [00:03:52]process_action open_shift done [00:03:52]requested_data is exist [00:03:52]produce_requested_data [00:03:52]requested_item fd.num is exist - process it [00:03:52]SAM_PROTO_GetFieldsCounters [00:03:52]wFMCommunicate request_size=4 [00:03:52]MH_SAM_APDU [00:03:52]CAPDU: 80 13 00 00 [00:03:52]Write to MH i2c: E2 08 00 42 37 80 13 00 00 00 00 00 00 F5 [00:03:52]Write i2c OK [00:03:52]MH_I2C_Read... [00:03:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:03:53]Read from MH i2c: E2 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 62 00 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 62 00 42 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 52 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 60 [00:03:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 52 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:03:53]wFMCommunicate OK [00:03:53]SAM_PROTO_GetFieldsCounters done [00:03:53]requested_item shift.num is exist - process it [00:03:53]requested_item shift.opened is exist - process it [00:03:53]req_shift_opened [00:03:53]FM_GetShiftState [00:03:53]SAM_PROTO_GetShiftState [00:03:53]wFMCommunicate request_size=4 [00:03:53]MH_SAM_APDU [00:03:53]CAPDU: 80 13 01 00 [00:03:53]Write to MH i2c: E2 08 00 43 37 80 13 01 00 00 00 00 00 F7 [00:03:53]Write i2c OK [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 [00:03:53]MH_I2C_Read... [00:03:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:03:53]Read from MH i2c: E2 0E 00 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 0E 00 43 37 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 76 [00:03:53]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [00:03:53]wFMCommunicate OK [00:03:53]SAM_PROTO_GetShiftState done [00:03:53]FM_GetShiftState done [00:03:53]req_shift_opened done [00:03:53]requested_item shift.open_date is exist - process it [00:03:53]req_shift_open_date [00:03:53]req_shift_open_date done [00:03:53]produce_requested_data done [00:03:53]produce_requested_data return {"fd.num":31826,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [00:03:53]process_action_free open_shift [00:03:53]json_value_free [00:03:53]json_value_free done [00:03:53]process_json_proto returns [00:03:53]Send response to host [00:03:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":31826,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [00:03:53]free response buf [00:03:53]execute_script done [00:03:53]execute_script returns [00:03:53]free content buf [00:03:53]Sock 9.Close socket [00:03:53]Sock 9.Thread stoped [00:03:53]accept exits with 7 [00:03:53]New connection [00:03:53]New thread 3066821988 created [00:03:53]Thread 3066965348 joined [00:03:53]Waiting for new connection... [00:03:53] Sock 7.Parse request [00:03:53]Sock 7.Check first char [00:03:53]Sock 7.First char is OK [00:03:53]request: POST /json_proto HTTP/1.0 [00:03:53]Method: POST [00:03:53]URL: /json_proto [00:03:53]Method is POST - this is cgi request [00:03:53]url: /json_proto [00:03:53]query_string will be loaded in cgi processing [00:03:53]execute_cgi json_proto POST (null) [00:03:53]execute_cgi path=json_proto method=POST [00:03:53]POST find Content-Length [00:03:53]Host: 172.17.39.68:8080 [00:03:53]Content-Length: 331 [00:03:53]Content-Type: application/json [00:03:53] [00:03:53]POST finish read [00:03:53]Found Content-Length = 331 [00:03:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:53]execute_script... [00:03:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:03:53]POST & json_proto [00:03:53]process_json_proto [00:03:53]json parsed OK: [00:03:53]protocol is kg_v1.0 [00:03:53]action value=get_value [00:03:53]process_action get_value [00:03:53]cmd_get_value [00:03:53]process_action get_value done [00:03:53]requested_data is exist [00:03:53]produce_requested_data [00:03:53]requested_item fm.sale.total is exist - process it [00:03:53]SAM_PROTO_GetFMData [00:03:53]wFMCommunicate request_size=4 [00:03:53]MH_SAM_APDU [00:03:53]CAPDU: 80 13 03 00 [00:03:53]Write to MH i2c: E2 08 00 44 37 80 13 03 00 00 00 00 00 FA [00:03:53]Write i2c OK [00:03:53]MH_I2C_Read... [00:03:53]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:03:53]Read from MH i2c: E2 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 FD 00 [00:03:53]MH_I2C_Read... [00:03:53]Read from MH i2c: E2 FD 00 44 37 00 B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 1B [00:03:53]RAPDU: B7 04 85 04 B3 04 6E 04 04 00 69 79 00 00 69 04 A0 00 6F 04 04 00 67 79 00 00 B1 04 04 00 DC 19 39 25 70 04 04 00 E4 41 53 22 72 04 04 00 F8 D7 E5 02 00 04 7C 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0D 00 F2 03 01 00 01 F3 03 04 00 50 E1 F3 03 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 8B 44 54 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 91 00 6F 04 04 00 02 00 00 00 B1 04 01 00 C8 70 04 01 00 C8 72 04 00 00 00 04 77 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 16 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 90 00 [00:03:53]wFMCommunicate OK [00:03:53]wFMCommunicate request_size=4 [00:03:53]MH_SAM_APDU [00:03:53]CAPDU: 80 17 00 00 [00:03:53]Write to MH i2c: E2 08 00 45 37 80 17 00 00 00 00 00 00 FC [00:03:53]Write i2c OK [00:03:53]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 45 37 00 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 2D [00:03:54]RAPDU: 0A 00 F6 03 01 00 01 F7 03 01 00 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 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 90 00 [00:03:54]wFMCommunicate OK [00:03:54]wFMCommunicate request_size=4 [00:03:54]MH_SAM_APDU [00:03:54]CAPDU: 80 17 00 00 [00:03:54]Write to MH i2c: E2 08 00 46 37 80 17 00 00 00 00 00 00 FD [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 46 37 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A2 [00:03:54]RAPDU: EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:03:54]wFMCommunicate OK [00:03:54]wFMCommunicate request_size=4 [00:03:54]MH_SAM_APDU [00:03:54]CAPDU: 80 17 00 00 [00:03:54]Write to MH i2c: E2 08 00 47 37 80 17 00 00 00 00 00 00 FE [00:03:54]Write i2c OK [00:03:54]MH_I2C_Read... [00:03:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:54]Read from MH i2c: E2 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 [00:03:54]MH_I2C_Read... [00:03:54]Read from MH i2c: E2 FD 00 47 37 00 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 90 00 73 [00:03:54]RAPDU: 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 90 00 [00:03:55]wFMCommunicate OK [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 17 00 00 [00:03:55]Write to MH i2c: E2 08 00 48 37 80 17 00 00 00 00 00 00 FF [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 209! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 D4 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 D4 00 48 37 00 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 F0 [00:03:55]RAPDU: 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:55]wFMCommunicate OK [00:03:55]SAM_PROTO_GetFMData done [00:03:55]requested_item fm.sale_refund.total is exist - process it [00:03:55]requested_item fm.buy.total is exist - process it [00:03:55]requested_item shift.sale.total is exist - process it [00:03:55]SAM_PROTO_GetShiftData [00:03:55]wFMCommunicate request_size=4 [00:03:55]MH_SAM_APDU [00:03:55]CAPDU: 80 13 02 00 [00:03:55]Write to MH i2c: E2 08 00 49 37 80 13 02 00 00 00 00 00 FE [00:03:55]Write i2c OK [00:03:55]MH_I2C_Read... [00:03:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:03:55]Read from MH i2c: E2 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 [00:03:55]MH_I2C_Read... [00:03:55]Read from MH i2c: E2 FD 00 49 37 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 71 [00:03:56]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:03:56]wFMCommunicate OK [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 17 00 00 [00:03:56]Write to MH i2c: E2 08 00 4A 37 80 17 00 00 00 00 00 00 01 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:56]Read from MH i2c: E2 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 FD 00 [00:03:56]MH_I2C_Read... [00:03:56]Read from MH i2c: E2 FD 00 4A 37 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 09 [00:03:56]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:03:56]wFMCommunicate OK [00:03:56]wFMCommunicate request_size=4 [00:03:56]MH_SAM_APDU [00:03:56]CAPDU: 80 17 00 00 [00:03:56]Write to MH i2c: E2 08 00 4B 37 80 17 00 00 00 00 00 00 02 [00:03:56]Write i2c OK [00:03:56]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 4B 37 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 D4 [00:03:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:03:57]wFMCommunicate OK [00:03:57]wFMCommunicate request_size=4 [00:03:57]MH_SAM_APDU [00:03:57]CAPDU: 80 17 00 00 [00:03:57]Write to MH i2c: E2 08 00 4C 37 80 17 00 00 00 00 00 00 03 [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 FD 00 4C 37 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 OFD Sender: No OFD packet to send [00:03:57]00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 75 [00:03:57]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:03:57]wFMCommunicate OK [00:03:57]wFMCommunicate request_size=4 [00:03:57]MH_SAM_APDU [00:03:57]CAPDU: 80 17 00 00 [00:03:57]Write to MH i2c: E2 08 00 4D 37 80 17 00 00 00 00 00 00 04 [00:03:57]Write i2c OK [00:03:57]MH_I2C_Read... [00:03:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:03:57]Read from MH i2c: E2 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 BD 00 [00:03:57]MH_I2C_Read... [00:03:57]Read from MH i2c: E2 BD 00 4D 37 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 EA [00:03:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:03:58]wFMCommunicate OK [00:03:58]SAM_PROTO_GetShiftData done [00:03:58]requested_item shift.sale.total_cash is exist - process it [00:03:58]requested_item shift.sale_refund.total is exist - process it [00:03:58]requested_item shift.sale_refund.total_cash is exist - process it [00:03:58]requested_item shift.buy.total is exist - process it [00:03:58]requested_item shift.buy.total_cash is exist - process it [00:03:58]produce_requested_data done [00:03:58]produce_requested_data return {"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:03:58]process_action_free get_value [00:03:58]json_value_free [00:03:58]json_value_free done [00:03:58]process_json_proto returns [00:03:58]Send response to host [00:03:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":6244991.64,"fm.sale_refund.total":2.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:03:58]free response buf [00:03:58]execute_script done [00:03:58]execute_script returns [00:03:58]free content buf [00:03:58]Sock 7.Close socket [00:03:58]Sock 7.Thread stoped [00:04:02]OFD Sender: No OFD packet to send [00:04:07]OFD Sender: No OFD packet to send [00:04:12]OFD Sender: No OFD packet to send [00:04:17]OFD Sender: No OFD packet to send [00:04:22]OFD Sender: No OFD packet to send [00:04:27]OFD Sender: No OFD packet to send [00:04:32]OFD Sender: No OFD packet to send [00:04:37]OFD Sender: No OFD packet to send [00:04:42]OFD Sender: No OFD packet to send [00:04:47]OFD Sender: No OFD packet to send [00:04:52]OFD Sender: No OFD packet to send [00:04:57]OFD Sender: No OFD packet to send [00:05:02]OFD Sender: No OFD packet to send [00:05:07]OFD Sender: No OFD packet to send [00:05:12]OFD Sender: No OFD packet to send [00:05:17]OFD Sender: No OFD packet to send [00:05:22]OFD Sender: No OFD packet to send [00:05:27]OFD Sender: No OFD packet to send [00:05:32]OFD Sender: No OFD packet to send [00:05:37]OFD Sender: No OFD packet to send [00:05:42]OFD Sender: No OFD packet to send [00:05:47]OFD Sender: No OFD packet to send [00:05:52]OFD Sender: No OFD packet to send [00:05:57]OFD Sender: No OFD packet to send [00:06:02]OFD Sender: No OFD packet to send [00:06:07]OFD Sender: No OFD packet to send [00:06:12]OFD Sender: No OFD packet to send [00:06:17]OFD Sender: No OFD packet to send [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:42]OFD Sender: No OFD packet to send [00:07:47]OFD Sender: No OFD packet to send [00:07:52]OFD Sender: No OFD packet to send [00:07:57]OFD Sender: No OFD packet to send [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:22]OFD Sender: No OFD packet to send [00:08:27]OFD Sender: No OFD packet to send [00:08:32]OFD Sender: No OFD packet to send [00:08:37]OFD Sender: No OFD packet to send [00:08:42]OFD Sender: No OFD packet to send [00:08:47]OFD Sender: No OFD packet to send [00:08:52]OFD Sender: No OFD packet to send [00:08:57]OFD Sender: No OFD packet to send [00:09:02]OFD Sender: No OFD packet to send [00:09:07]OFD Sender: No OFD packet to send [00:09:12]OFD Sender: No OFD packet to send [00:09:17]OFD Sender: No OFD packet to send [00:09:22]OFD Sender: No OFD packet to send [00:09:27]OFD Sender: No OFD packet to send [00:09:32]OFD Sender: No OFD packet to send [00:09:37]OFD Sender: No OFD packet to send [00:09:42]OFD Sender: No OFD packet to send [00:09:47]OFD Sender: No OFD packet to send [00:09:52]OFD Sender: No OFD packet to send [00:09:57]OFD Sender: No OFD packet to send [00:10:02]OFD Sender: No OFD packet to send [00:10:07]OFD Sender: No OFD packet to send [00:10:12]OFD Sender: No OFD packet to send [00:10:17]OFD Sender: No OFD packet to send [00:10:22]OFD Sender: No OFD packet to send [00:10:27]OFD Sender: No OFD packet to send [00:10:32]OFD Sender: No OFD packet to send [00:10:37]OFD Sender: No OFD packet to send [00:10:42]OFD Sender: No OFD packet to send [00:10:47]OFD Sender: No OFD packet to send [00:10:52]OFD Sender: No OFD packet to send [00:10:57]OFD Sender: No OFD packet to send [00:11:02]OFD Sender: No OFD packet to send [00:11:07]OFD Sender: No OFD packet to send [00:11:12]OFD Sender: No OFD packet to send [00:11:17]OFD Sender: No OFD packet to send [00:11:22]OFD Sender: No OFD packet to send [00:11:27]OFD Sender: No OFD packet to send [00:11:32]OFD Sender: No OFD packet to send [00:11:37]OFD Sender: No OFD packet to send [00:11:42]OFD Sender: No OFD packet to send [00:11:47]OFD Sender: No OFD packet to send [00:11:52]OFD Sender: No OFD packet to send [00:11:57]OFD Sender: No OFD packet to send [00:12:02]OFD Sender: No OFD packet to send [00:12:07]OFD Sender: No OFD packet to send [00:12:12]OFD Sender: No OFD packet to send [00:12:17]OFD Sender: No OFD packet to send [00:12:22]OFD Sender: No OFD packet to send [00:12:27]OFD Sender: No OFD packet to send [00:12:32]OFD Sender: No OFD packet to send [00:12:37]OFD Sender: No OFD packet to send [00:12:42]OFD Sender: No OFD packet to send [00:12:47]OFD Sender: No OFD packet to send [00:12:52]OFD Sender: No OFD packet to send [00:12:57]OFD Sender: No OFD packet to send [00:13:02]OFD Sender: No OFD packet to send [00:13:07]OFD Sender: No OFD packet to send [00:13:12]OFD Sender: No OFD packet to send [00:13:17]OFD Sender: No OFD packet to send [00:13:22]OFD Sender: No OFD packet to send [00:13:27]OFD Sender: No OFD packet to send [00:13:33]OFD Sender: No OFD packet to send [00:13:38]OFD Sender: No OFD packet to send [00:13:43]OFD Sender: No OFD packet to send [00:13:48]OFD Sender: No OFD packet to send [00:13:53]OFD Sender: No OFD packet to send [00:13:58]OFD Sender: No OFD packet to send [00:14:03]OFD Sender: No OFD packet to send [00:14:08]OFD Sender: No OFD packet to send [00:14:13]OFD Sender: No OFD packet to send [00:14:18]OFD Sender: No OFD packet to send [00:14:23]OFD Sender: No OFD packet to send [00:14:28]OFD Sender: No OFD packet to send [00:14:33]OFD Sender: No OFD packet to send [00:14:38]OFD Sender: No OFD packet to send [00:14:43]OFD Sender: No OFD packet to send [00:14:48]OFD Sender: No OFD packet to send [00:14:53]OFD Sender: No OFD packet to send [00:14:58]OFD Sender: No OFD packet to send [00:15:03]OFD Sender: No OFD packet to send [00:15:08]OFD Sender: No OFD packet to send [00:15:13]OFD Sender: No OFD packet to send [00:15:18]OFD Sender: No OFD packet to send [00:15:23]OFD Sender: No OFD packet to send [00:15:28]OFD Sender: No OFD packet to send [00:15:33]OFD Sender: No OFD packet to send [00:15:38]OFD Sender: No OFD packet to send [00:15:43]OFD Sender: No OFD packet to send [00:15:48]OFD Sender: No OFD packet to send [00:15:53]OFD Sender: No OFD packet to send [00:15:58]OFD Sender: No OFD packet to send [00:16:03]OFD Sender: No OFD packet to send [00:16:08]OFD Sender: No OFD packet to send [00:16:13]OFD Sender: No OFD packet to send [00:16:18]OFD Sender: No OFD packet to send [00:16:23]OFD Sender: No OFD packet to send [00:16:28]OFD Sender: No OFD packet to send [00:16:33]OFD Sender: No OFD packet to send [00:16:38]OFD Sender: No OFD packet to send [00:16:43]OFD Sender: No OFD packet to send [00:16:48]OFD Sender: No OFD packet to send [00:16:53]OFD Sender: No OFD packet to send [00:16:58]OFD Sender: No OFD packet to send [00:17:03]OFD Sender: No OFD packet to send [00:17:08]OFD Sender: No OFD packet to send [00:17:13]OFD Sender: No OFD packet to send [00:17:18]OFD Sender: No OFD packet to send [00:17:23]OFD Sender: No OFD packet to send [00:17:28]OFD Sender: No OFD packet to send [00:17:33]OFD Sender: No OFD packet to send [00:17:38]OFD Sender: No OFD packet to send [00:17:43]OFD Sender: No OFD packet to send [00:17:48]OFD Sender: No OFD packet to send [00:17:53]OFD Sender: No OFD packet to send [00:17:58]OFD Sender: No OFD packet to send [00:18:03]OFD Sender: No OFD packet to send [00:18:08]OFD Sender: No OFD packet to send [00:18:13]OFD Sender: No OFD packet to send [00:18:18]OFD Sender: No OFD packet to send [00:18:23]OFD Sender: No OFD packet to send [00:18:28]OFD Sender: No OFD packet to send [00:18:33]OFD Sender: No OFD packet to send [00:18:38]OFD Sender: No OFD packet to send [00:18:43]OFD Sender: No OFD packet to send [00:18:48]OFD Sender: No OFD packet to send [00:18:53]OFD Sender: No OFD packet to send [00:18:58]OFD Sender: No OFD packet to send [00:19:03]OFD Sender: No OFD packet to send [00:19:08]OFD Sender: No OFD packet to send [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]OFD Sender: No OFD packet to send [00:20:18]OFD Sender: No OFD packet to send [00:20:23]OFD Sender: No OFD packet to send [00:20:28]OFD Sender: No OFD packet to send [00:20:33]OFD Sender: No OFD packet to send [00:20:38]OFD Sender: No OFD packet to send [00:20:43]OFD Sender: No OFD packet to send [00:20:48]OFD Sender: No OFD packet to send [00:20:53]OFD Sender: No OFD packet to send [00:20:58]OFD Sender: No OFD packet to send [00:21:03]OFD Sender: No OFD packet to send [00:21:08]OFD Sender: No OFD packet to send [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:23]OFD Sender: No OFD packet to send [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:45]accept exits with 9 [00:31:45]New connection [00:31:45]New thread 3066965348 created [00:31:45]Thread 3066821988 joined [00:31:45]Waiting for new connection... [00:31:45] Sock 9.Parse request [00:31:45]Sock 9.Check first char [00:31:45]Sock 9.First char is OK [00:31:45]request: POST /json_proto HTTP/1.0 [00:31:45]Method: POST [00:31:45]URL: /json_proto [00:31:45]Method is POST - this is cgi request [00:31:45]url: /json_proto [00:31:45]query_string will be loaded in cgi processing [00:31:45]execute_cgi json_proto POST (null) [00:31:45]execute_cgi path=json_proto method=POST [00:31:45]POST find Content-Length [00:31:45]Host: 172.17.39.68:8080 [00:31:45]Content-Length: 801 [00:31:45]Content-Type: application/json [00:31:45] [00:31:45]POST finish read [00:31:45]Found Content-Length = 801 [00:31:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214408", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:45]execute_script... [00:31:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214408", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:31:45]POST & json_proto [00:31:45]process_json_proto [00:31:45]json parsed OK: [00:31:45]protocol is kg_v1.0 [00:31:45]action value=close_receipt [00:31:45]process_action close_receipt [00:31:45]cmd_close_receipt [00:31:45]MH_GetDate [00:31:45]Write to MH i2c: F0 00 00 4E 37 74 [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: F0 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: F0 09 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: F0 09 00 4E 37 00 F8 10 97 66 D6 48 95 66 9B [00:31:45]GetLastDocTimeStamp 1721174636 [00:31:45]current date 1721176312 [00:31:45]FM_GetShiftState [00:31:45]SAM_PROTO_GetShiftState [00:31:45]wFMCommunicate request_size=4 [00:31:45]MH_SAM_APDU [00:31:45]CAPDU: 80 13 01 00 [00:31:45]Write to MH i2c: E2 08 00 4F 37 80 13 01 00 00 00 00 00 03 [00:31:45]Write i2c OK [00:31:45]MH_I2C_Read... [00:31:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:45]Read from MH i2c: E2 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 0E 00 [00:31:45]MH_I2C_Read... [00:31:45]Read from MH i2c: E2 0E 00 4F 37 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 82 [00:31:45]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [00:31:45]wFMCommunicate OK [00:31:45]SAM_PROTO_GetShiftState done [00:31:45]FM_GetShiftState done [00:31:45]opened in 1721174636 [00:31:45]opened+sec_in_day 1721261036 [00:31:45]quantity*price = 15100 [00:31:45]sum+1 = 15101 [00:31:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 1 17.07.2024 00:31 Смена: 372 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965389 ФД: 31827 ФПД: 202630851099203 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T003152&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31827&fm=202630851099203&tin=02508201610067®Number=0000000000098025&sum=15100 0 [00:31:46]StoreToDocumentArchive [00:31:46]shift 372 fd 31827 [00:31:46]save to /storage/0372/doc_00031827 [00:31:46]save last doc name /storage/0372/doc_00031827 to /storage/kkm_last_doc_name [00:31:46]save OK [00:31:46]Clear old archive folders... [00:31:46]ProcessDocumentItem done err = 0, tmpTLVsize=276 [00:31:46]tlvbuf is 0148D170 [00:31:46]SAM_PROTO_ClearQueue [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 09 00 00 [00:31:46]Write to MH i2c: E2 08 00 5C 37 80 09 00 00 00 00 00 00 05 [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:31:46]Read from MH i2c: E2 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 03 00 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 03 00 5C 37 00 90 00 07 [00:31:46]RAPDU: 90 00 [00:31:46]wFMCommunicate OK [00:31:46]SAM_PROTO_ClearQueue done [00:31:46]KKMCreateOFDPacket [00:31:46]OFDProtocolAddRootSTLVToBuf [00:31:46]FM_MakeSignedData [00:31:46]FM_MakeSignedData [00:31:46]SAM_PROTO_SignData [00:31:46]wFMCommunicate request_size=4 [00:31:46]MH_SAM_APDU [00:31:46]CAPDU: 80 0D 01 02 [00:31:46]Write to MH i2c: E2 08 00 5D 37 80 0D 01 02 00 00 00 00 0D [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:31:46]Read from MH i2c: E2 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 03 00 [00:31:46]MH_I2C_Read... [00:31:46]Read from MH i2c: E2 03 00 5D 37 00 90 00 08 [00:31:46]RAPDU: 90 00 [00:31:46]wFMCommunicate OK [00:31:46]wFMCommunicate request_size=255 [00:31:46]MH_SAM_APDU [00:31:46]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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F8 10 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 [00:31:46]Write to MH i2c: E2 02 01 5E 37 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F8 10 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 00 00 D9 [00:31:46]Write i2c OK [00:31:46]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 03 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 03 00 5E 37 00 90 00 09 [00:31:47]RAPDU: 90 00 [00:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=35 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 53 7C 00 00 35 04 06 00 B8 4A AB E6 7A 43 [00:31:47]Write to MH i2c: E2 26 00 5F 37 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 53 7C 00 00 35 04 06 00 B8 4A AB E6 7A 43 00 00 2A [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 03 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 03 00 5F 37 00 90 00 0A [00:31:47]RAPDU: 90 00 [00:31:47]wFMCommunicate OK [00:31:47]wFMCommunicate request_size=4 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 0D 03 02 [00:31:47]Write to MH i2c: E2 08 00 60 37 80 0D 03 02 00 00 00 00 12 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 0B 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 0B 00 60 37 00 F3 F3 43 AF 97 A0 2F BE 90 00 0F [00:31:47]RAPDU: F3 F3 43 AF 97 A0 2F BE 90 00 [00:31:47]wFMCommunicate OK [00:31:47]SAM_PROTO_SignData done [00:31:47]FM_MakeSignedData done [00:31:47]CreateOFDProtocolMessage [00:31:47]wFMCommunicate request_size=4 [00:31:47]MH_SAM_APDU [00:31:47]CAPDU: 80 11 00 00 [00:31:47]Write to MH i2c: E2 08 00 61 37 80 11 00 00 00 00 00 00 12 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:47]Read from MH i2c: E2 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 17 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: E2 17 00 61 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 6D [00:31:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:31:47]wFMCommunicate OK [00:31:47]CreateOFDProtocolMessage done [00:31:47]OFDSenderStorePacket 31827 [00:31:47]StoreOFDPacket docnum=31827 [00:31:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 8F D8 20 01 2A 05 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F8 10 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 53 7C 00 00 35 04 06 00 B8 4A AB E6 7A 43 F3 F3 43 AF 97 A0 2F BE [00:31:47]CheckFolder [00:31:47]dirname=/storage/ofd_packets [00:31:47]CheckFolder done [00:31:47]ProducePacketName [00:31:47]name=ofd_packets/00031827 [00:31:47]NVStorageSaveData ofd_packets/00031827 [00:31:47]File name is /storage/ofd_packets/00031827 [00:31:47]Write 326 bytes [00:31:47]NVStorageSaveData done [00:31:47]OFDSenderStorePacket done [00:31:47]KKMCreateOFDPacket done [00:31:47]NVStorageSaveData kkm_last_timestamp [00:31:47]File name is /storage/kkm_last_timestamp [00:31:47]Write 4 bytes [00:31:47]NVStorageSaveData done [00:31:47]ExternCall_PrintAddStr [00:31:47]wPrintStart [00:31:47]Write to MH i2c: 01 00 00 62 37 99 [00:31:47]Write i2c OK [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: 01 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: 01 07 00 [00:31:47]MH_I2C_Read... [00:31:47]Read from MH i2c: 01 07 00 62 37 00 00 00 00 00 FF 0F AE [00:31:47]RasterBufferAndPrint [00:31:47]line Счет N : (3)214408 [00:31:47]line ИНН: 02508201610067 [00:31:47]line Контрольно-Кассовый Чек [00:31:47]line ПРОДАЖА [00:31:47]line Товар: 48742245 [00:31:47]line Сигареты Parliament Silver Blue [00:31:47]line 1.000 * 151.00 [00:31:47]line = 151.00 [00:31:47]line НДС 12% НСП 1% [00:31:47]line > о реализуемом товаре [00:31:47]line ИТОГО: 151.00 [00:31:47]line НСП 1% : 1.34 [00:31:47]line НДС 12% : 16.03 [00:31:47]line Наличными: 0.00 [00:31:47]line Безнал.: 151.00 [00:31:47]line Место: АЗС № 140 "Партнер Нефть" [00:31:47]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:31:47]line СНО: Общий режим [00:31:47]line Чек 1 17.07.2024 00:31 [00:31:47]line Смена: 372 ФФД: 1.0 [00:31:47]line ЗНМ: 0300000189 [00:31:47]line РНМ: 0000000000098025 [00:31:47]line Версия ККМ: 001 [00:31:47]line Платежная система: Бакай Банк [00:31:47]line ФМ: 0000000000965389 [00:31:47]line ФД: 31827 [00:31:47]line ФПД: 202630851099203 [00:31:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T003152&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31827&fm=202630851099203&tin=02508201610067®Number=0000000000098025&sum=15100 [00:31:47]line 0 [00:31:47]OFD Sender: Processing packet 31827 [packets to send 6, broken 5] [00:31:47]ProducePacketName [00:31:47]name=ofd_packets/00031827 [00:31:47]OFD Sender: To server: pG, [00:31:47]CommunicateWithHost lk.salyk.kg:30040 [00:31:47]ConnectInit lk.salyk.kg [00:31:47]written 0, free lines is 4095 [00:31:47]Connected sock=10 [00:31:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 28 01 00 00 8F D8 20 01 2A 05 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 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC 3A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 F8 10 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 53 7C 00 00 35 04 06 00 B8 4A AB E6 7A 43 F3 F3 43 AF 97 A0 2F BE [00:31:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 66 43 47 00 5D 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 35 33 38 39 10 04 04 00 53 7C 00 00 F4 03 04 00 04 BD 96 66 B6 04 01 00 00 C5 9A 75 BB BF 11 C9 2B [00:31:47]CommunicateWithHost err = 0 [00:31:47]CheckOFDResponse [00:31:47]1017 (14) - 77093643461234 [00:31:47]1041 (16) - 0000000000965389 [00:31:47]1040 (4) - 31827 [00:31:47]1012 (4) - 16.07.2024 18:33 [00:31:47]1206 (1) - 0 [00:31:47]OFD Sender: Remove packet 31827 [00:31:47]ProducePacketName [00:31:47]name=ofd_packets/00031827 [00:31:47]NVStorageDeleteData [00:31:48]Write to MH i2c: 01 00 00 8D 37 C4 [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: 01 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: 01 07 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: 01 07 00 8D 37 00 00 00 00 00 BF 0C 96 [00:31:48]RasterBufferAndPrint [00:31:48]line [00:31:48]line [00:31:48]line [00:31:48]line [00:31:48]line [00:31:48]written 0, free lines is 3269 [00:31:48]MH_Cut [00:31:48]Write to MH i2c: D1 01 00 94 37 01 9D [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: D1 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: D1 01 00 [00:31:48]MH_I2C_Read... [00:31:48]Read from MH i2c: D1 01 00 94 37 00 9C [00:31:48]Write to MH i2c: 01 00 00 95 37 CC [00:31:48]Write i2c OK [00:31:48]MH_I2C_Read... [00:31:48]OFD Sender: No OFD packet to send [00:31:48]*** Cut start [00:31:48]*** Partial cut [00:31:48]*** CUTSNS_PIN = 1 [00:31:48]*** CUTSNS_PIN = 0 [00:31:49]*** Brake cut motor [00:31:49]Read from MH i2c: 01 [00:31:49]MH_I2C_Read... [00:31:49]*** Stop cut motor [00:31:49]*** Cut end [00:31:49]Read from MH i2c: 01 07 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: 01 07 00 95 37 00 00 00 00 00 FF 0F E1 [00:31:49]process_action close_receipt done [00:31:49]requested_data is exist [00:31:49]produce_requested_data [00:31:49]requested_item fm.sn is exist - process it [00:31:49]wFMCommunicate request_size=4 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 11 00 00 [00:31:49]Write to MH i2c: E2 08 00 96 37 80 11 00 00 00 00 00 00 47 [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:31:49]Read from MH i2c: E2 17 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 17 00 96 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 A2 [00:31:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:31:49]wFMCommunicate OK [00:31:49]requested_item fd.num is exist - process it [00:31:49]SAM_PROTO_GetFieldsCounters [00:31:49]wFMCommunicate request_size=4 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 13 00 00 [00:31:49]Write to MH i2c: E2 08 00 97 37 80 13 00 00 00 00 00 00 4A [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 62 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 62 00 97 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 53 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [00:31:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 53 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:31:49]wFMCommunicate OK [00:31:49]SAM_PROTO_GetFieldsCounters done [00:31:49]requested_item shift.num is exist - process it [00:31:49]requested_item shift.opened is exist - process it [00:31:49]req_shift_opened [00:31:49]FM_GetShiftState [00:31:49]SAM_PROTO_GetShiftState [00:31:49]wFMCommunicate request_size=4 [00:31:49]MH_SAM_APDU [00:31:49]CAPDU: 80 13 01 00 [00:31:49]Write to MH i2c: E2 08 00 98 37 80 13 01 00 00 00 00 00 4C [00:31:49]Write i2c OK [00:31:49]MH_I2C_Read... [00:31:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:31:49]Read from MH i2c: E2 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 0E 00 [00:31:49]MH_I2C_Read... [00:31:49]Read from MH i2c: E2 0E 00 98 37 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 CB [00:31:49]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [00:31:49]wFMCommunicate OK [00:31:49]SAM_PROTO_GetShiftState done [00:31:49]FM_GetShiftState done [00:31:49]req_shift_opened done [00:31:49]requested_item shift.open_date is exist - process it [00:31:49]req_shift_open_date [00:31:49]req_shift_open_date done [00:31:49]produce_requested_data done [00:31:49]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31827,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [00:31:49]process_action_free close_receipt [00:31:49]json_value_free [00:31:49]json_value_free done [00:31:49]process_json_proto returns [00:31:49]Send response to host [00:31:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31827,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [00:31:49]free response buf [00:31:49]execute_script done [00:31:49]execute_script returns [00:31:49]free content buf [00:31:49]Sock 9.Close socket [00:31:49]Sock 9.Thread stoped [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:36]accept exits with 7 [00:34:36]New connection [00:34:36]New thread 3066821988 created [00:34:36]Thread 3066965348 joined [00:34:36]Waiting for new connection... [00:34:36] Sock 7.Parse request [00:34:36]Sock 7.Check first char [00:34:36]Sock 7.First char is OK [00:34:36]request: POST /json_proto HTTP/1.0 [00:34:36]Method: POST [00:34:36]URL: /json_proto [00:34:36]Method is POST - this is cgi request [00:34:36]url: /json_proto [00:34:36]query_string will be loaded in cgi processing [00:34:36]execute_cgi json_proto POST (null) [00:34:36]execute_cgi path=json_proto method=POST [00:34:36]POST find Content-Length [00:34:36]Host: 172.17.39.68:8080 [00:34:36]Content-Length: 1045 [00:34:36]Content-Type: application/json [00:34:36] [00:34:36]POST finish read [00:34:36]Found Content-Length = 1045 [00:34:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214409", "tax_sys" : 0, "items" : [ { "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 247.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:36]execute_script... [00:34:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214409", "tax_sys" : 0, "items" : [ { "code": "4700007110066", "name": "\u0421\u044D\u043D\u0434\u0432\u0438\u0447 \u0441 \u043C\u0430\u0439\u043E\u043D\u0435\u0437\u043E\u043C \u0422\u0430\u043B\u0430\u0441 \u0414\u0430\u0430\u043C\u044B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 247.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:36]POST & json_proto [00:34:36]process_json_proto [00:34:36]json parsed OK: [00:34:36]protocol is kg_v1.0 [00:34:36]action value=close_receipt [00:34:36]process_action close_receipt [00:34:36]cmd_close_receipt [00:34:36]MH_GetDate [00:34:36]Write to MH i2c: F0 00 00 99 37 BF [00:34:36]Write i2c OK [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: F0 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: F0 09 00 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: F0 09 00 99 37 00 A3 11 97 66 D6 48 95 66 92 [00:34:36]GetLastDocTimeStamp 1721176312 [00:34:36]current date 1721176483 [00:34:36]FM_GetShiftState [00:34:36]SAM_PROTO_GetShiftState [00:34:36]wFMCommunicate request_size=4 [00:34:36]MH_SAM_APDU [00:34:36]CAPDU: 80 13 01 00 [00:34:36]Write to MH i2c: E2 08 00 9A 37 80 13 01 00 00 00 00 00 4E [00:34:36]Write i2c OK [00:34:36]MH_I2C_Read... [00:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:36]Read from MH i2c: E2 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 0E 00 [00:34:36]MH_I2C_Read... [00:34:36]Read from MH i2c: E2 0E 00 9A 37 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 CD [00:34:36]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [00:34:36]wFMCommunicate OK [00:34:36]SAM_PROTO_GetShiftState done [00:34:36]FM_GetShiftState done [00:34:36]opened in 1721174636 [00:34:36]opened+sec_in_day 1721261036 [00:34:36]quantity*price = 14000 [00:34:36]sum+1 = 14001 [00:34:36]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000189356 Холодный чай Fuse манго ананас 1л 1.000 * 107.00 = 107.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 247.00 НСП 1% : 2.19 НДС 12% : 26.23 Наличными: 247.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 2 17.07.2024 00:34 Смена: 372 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31828 ФПД: 65277661105975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T003443&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31828&fm=65277661105975&tin=02508201610067®Number=0000000000098025&sum=24700 0 [00:34:37]StoreToDocumentArchive [00:34:37]shift 372 fd 31828 [00:34:37]save to /storage/0372/doc_00031828 [00:34:37]save last doc name /storage/0372/doc_00031828 to /storage/kkm_last_doc_name [00:34:37]save OK [00:34:37]Clear old archive folders... [00:34:37]ProcessDocumentItem done err = 0, tmpTLVsize=428 [00:34:37]tlvbuf is 015916D0 [00:34:37]SAM_PROTO_ClearQueue [00:34:37]wFMCommunicate request_size=4 [00:34:37]MH_SAM_APDU [00:34:37]CAPDU: 80 09 00 00 [00:34:37]Write to MH i2c: E2 08 00 A7 37 80 09 00 00 00 00 00 00 50 [00:34:37]Write i2c OK [00:34:37]MH_I2C_Read... [00:34:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:37]Read from MH i2c: E2 [00:34:37]MH_I2C_Read... [00:34:37]Read from MH i2c: E2 03 00 [00:34:37]MH_I2C_Read... [00:34:37]Read from MH i2c: E2 03 00 A7 37 00 90 00 52 [00:34:37]RAPDU: 90 00 [00:34:37]wFMCommunicate OK [00:34:37]SAM_PROTO_ClearQueue done [00:34:37]KKMCreateOFDPacket [00:34:37]OFDProtocolAddRootSTLVToBuf [00:34:37]FM_MakeSignedData [00:34:37]FM_MakeSignedData [00:34:37]SAM_PROTO_SignData [00:34:37]wFMCommunicate request_size=4 [00:34:37]MH_SAM_APDU [00:34:37]CAPDU: 80 0D 01 02 [00:34:37]Write to MH i2c: E2 08 00 A8 37 80 0D 01 02 00 00 00 00 58 [00:34:37]Write i2c OK [00:34:37]MH_I2C_Read... [00:34:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:37]Read from MH i2c: E2 [00:34:37]MH_I2C_Read... [00:34:37]Read from MH i2c: E2 03 00 [00:34:37]MH_I2C_Read... [00:34:37]Read from MH i2c: E2 03 00 A8 37 00 90 00 53 [00:34:37]RAPDU: 90 00 [00:34:37]wFMCommunicate OK [00:34:37]wFMCommunicate request_size=255 [00:34:37]MH_SAM_APDU [00:34:37]CAPDU: 80 0D 02 02 FA 03 00 AC 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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:34:37]Write to MH i2c: E2 02 01 A9 37 80 0D 02 02 FA 00 03 00 AC 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 69 [00:34:37]Write i2c OK [00:34:37]MH_I2C_Read... [00:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:38]Read from MH i2c: E2 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 03 00 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 03 00 A9 37 00 90 00 54 [00:34:38]RAPDU: 90 00 [00:34:38]wFMCommunicate OK [00:34:38]wFMCommunicate request_size=187 [00:34:38]MH_SAM_APDU [00:34:38]CAPDU: 80 0D 02 02 B6 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 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 02 00 00 00 F4 03 04 00 A3 11 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 54 7C 00 00 35 04 06 00 3B 5E A3 CD 4F 37 [00:34:38]Write to MH i2c: E2 BE 00 AA 37 80 0D 02 02 B6 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 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 02 00 00 00 F4 03 04 00 A3 11 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 54 7C 00 00 35 04 06 00 3B 5E A3 CD 4F 37 00 00 27 [00:34:38]Write i2c OK [00:34:38]MH_I2C_Read... [00:34:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:38]Read from MH i2c: E2 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 03 00 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 03 00 AA 37 00 90 00 55 [00:34:38]RAPDU: 90 00 [00:34:38]wFMCommunicate OK [00:34:38]wFMCommunicate request_size=4 [00:34:38]MH_SAM_APDU [00:34:38]CAPDU: 80 0D 03 02 [00:34:38]Write to MH i2c: E2 08 00 AB 37 80 0D 03 02 00 00 00 00 5D [00:34:38]Write i2c OK [00:34:38]MH_I2C_Read... [00:34:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:38]Read from MH i2c: E2 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 0B 00 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 0B 00 AB 37 00 0E E3 63 73 4B 5D 08 E0 90 00 B5 [00:34:38]RAPDU: 0E E3 63 73 4B 5D 08 E0 90 00 [00:34:38]wFMCommunicate OK [00:34:38]SAM_PROTO_SignData done [00:34:38]FM_MakeSignedData done [00:34:38]CreateOFDProtocolMessage [00:34:38]wFMCommunicate request_size=4 [00:34:38]MH_SAM_APDU [00:34:38]CAPDU: 80 11 00 00 [00:34:38]Write to MH i2c: E2 08 00 AC 37 80 11 00 00 00 00 00 00 5D [00:34:38]Write i2c OK [00:34:38]MH_I2C_Read... [00:34:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:38]Read from MH i2c: E2 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 17 00 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: E2 17 00 AC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 B8 [00:34:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:34:38]wFMCommunicate OK [00:34:38]CreateOFDProtocolMessage done [00:34:38]OFDSenderStorePacket 31828 [00:34:38]StoreOFDPacket docnum=31828 [00:34:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 C0 01 00 00 5D 09 B8 01 0A 65 5A 03 01 00 03 00 AC 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 FC 03 06 00 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 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 02 00 00 00 F4 03 04 00 A3 11 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 54 7C 00 00 35 04 06 00 3B 5E A3 CD 4F 37 0E E3 63 73 4B 5D 08 E0 [00:34:38]CheckFolder [00:34:38]dirname=/storage/ofd_packets [00:34:38]CheckFolder done [00:34:38]ProducePacketName [00:34:38]name=ofd_packets/00031828 [00:34:38]NVStorageSaveData ofd_packets/00031828 [00:34:38]File name is /storage/ofd_packets/00031828 [00:34:38]Write 478 bytes [00:34:38]NVStorageSaveData done [00:34:38]OFDSenderStorePacket done [00:34:38]KKMCreateOFDPacket done [00:34:38]NVStorageSaveData kkm_last_timestamp [00:34:38]File name is /storage/kkm_last_timestamp [00:34:38]Write 4 bytes [00:34:38]NVStorageSaveData done [00:34:38]ExternCall_PrintAddStr [00:34:38]wPrintStart [00:34:38]Write to MH i2c: 01 00 00 AD 37 E4 [00:34:38]OFD Sender: Processing packet 31828 [packets to send 6, broken 5] [00:34:38]ProducePacketName [00:34:38]name=ofd_packets/00031828 [00:34:38]OFD Sender: To server: pG, [00:34:38]CommunicateWithHost lk.salyk.kg:30040 [00:34:38]ConnectInit lk.salyk.kg [00:34:38]Write i2c OK [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: 01 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: 01 07 00 [00:34:38]MH_I2C_Read... [00:34:38]Read from MH i2c: 01 07 00 AD 37 00 00 00 00 00 FF 0F F9 [00:34:38]RasterBufferAndPrint [00:34:38]line Счет N : (3)214409 [00:34:38]line ИНН: 02508201610067 [00:34:38]line Контрольно-Кассовый Чек [00:34:38]line ПРОДАЖА [00:34:38]line Товар: 4700007110066 [00:34:38]line Сэндвич с майонезом Талас Даамы [00:34:38]line 2.000 * 70.00 [00:34:38]line = 140.00 [00:34:38]line НДС 12% НСП 1% [00:34:38]line > о реализуемом товаре [00:34:38]line Товар: 5449000189356 [00:34:38]line Холодный чай Fuse манго ананас 1л [00:34:38]line 1.000 * 107.00 [00:34:38]line = 107.00 [00:34:38]line НДС 12% НСП 1% [00:34:38]line > о реализуемом товаре [00:34:38]line ИТОГО: 247.00 [00:34:38]line НСП 1% : 2.19 [00:34:38]line НДС 12% : 26.23 [00:34:38]line Наличными: 247.00 [00:34:38]line Безнал.: 0.00 [00:34:38]line Место: АЗС № 140 "Партнер Нефть" [00:34:38]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:34:38]line СНО: Общий режим [00:34:38]line Чек 2 17.07.2024 00:34 [00:34:38]line Смена: 372 ФФД: 1.0 [00:34:38]line ЗНМ: 0300000189 [00:34:38]line РНМ: 0000000000098025 [00:34:38]line Версия ККМ: 001 [00:34:38]line ФМ: 0000000000965389 [00:34:38]line ФД: 31828 [00:34:38]line ФПД: 65277661105975 [00:34:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T003443&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31828&fm=65277661105975&tin=02508201610067®Number=0000000000098025&sum=24700 [00:34:38]line 0 [00:34:38]written 0, free lines is 4095 [00:34:38]Connected sock=10 [00:34:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 C0 01 00 00 5D 09 B8 01 0A 65 5A 03 01 00 03 00 AC 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 37 30 30 30 30 37 31 31 30 30 36 36 06 04 3A 00 D0 A1 D1 8D D0 BD D0 B4 D0 B2 D0 B8 D1 87 20 D1 81 20 D0 BC D0 B0 D0 B9 D0 BE D0 BD D0 B5 D0 B7 D0 BE D0 BC 20 D0 A2 D0 B0 D0 BB D0 B0 D1 81 20 D0 94 D0 B0 D0 B0 D0 BC D1 8B FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 FC 03 06 00 7C 60 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 0A 00 00 00 00 07 04 06 00 7C 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 02 00 00 00 F4 03 04 00 A3 11 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 54 7C 00 00 35 04 06 00 3B 5E A3 CD 4F 37 0E E3 63 73 4B 5D 08 E0 [00:34:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 3B 99 47 00 6D C0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 54 7C 00 00 F4 03 04 00 AF BD 96 66 B6 04 01 00 00 12 9C D6 91 3D 6F 31 74 [00:34:39]CommunicateWithHost err = 0 [00:34:39]CheckOFDResponse [00:34:39]1017 (14) - 77093643461234 [00:34:39]1041 (16) - 0000000000965389 [00:34:39]1040 (4) - 31828 [00:34:39]1012 (4) - 16.07.2024 18:36 [00:34:39]1206 (1) - 0 [00:34:39]OFD Sender: Remove packet 31828 [00:34:39]ProducePacketName [00:34:39]name=ofd_packets/00031828 [00:34:39]NVStorageDeleteData [00:34:39]Write to MH i2c: 01 00 00 DD 37 14 [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: 01 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: 01 07 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: 01 07 00 DD 37 00 00 00 00 00 5C 0C 83 [00:34:39]RasterBufferAndPrint [00:34:39]line [00:34:39]line [00:34:39]line [00:34:39]line [00:34:39]line [00:34:39]written 0, free lines is 3174 [00:34:39]MH_Cut [00:34:39]Write to MH i2c: D1 01 00 E4 37 01 ED [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: D1 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: D1 01 00 [00:34:39]MH_I2C_Read... [00:34:39]Read from MH i2c: D1 01 00 E4 37 00 EC [00:34:39]Write to MH i2c: 01 00 00 E5 37 1C [00:34:39]Write i2c OK [00:34:39]MH_I2C_Read... [00:34:39]OFD Sender: No OFD packet to send [00:34:40]*** Cut start [00:34:40]*** Partial cut [00:34:40]*** CUTSNS_PIN = 1 [00:34:40]*** CUTSNS_PIN = 0 [00:34:40]*** Brake cut motor [00:34:40]Read from MH i2c: 01 [00:34:40]MH_I2C_Read... [00:34:40]*** Stop cut motor [00:34:40]*** Cut end [00:34:40]Read from MH i2c: 01 07 00 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: 01 07 00 E5 37 00 00 00 00 00 FF 0F 31 [00:34:40]process_action close_receipt done [00:34:40]requested_data is exist [00:34:40]produce_requested_data [00:34:40]requested_item fm.sn is exist - process it [00:34:40]wFMCommunicate request_size=4 [00:34:40]MH_SAM_APDU [00:34:40]CAPDU: 80 11 00 00 [00:34:40]Write to MH i2c: E2 08 00 E6 37 80 11 00 00 00 00 00 00 97 [00:34:40]Write i2c OK [00:34:40]MH_I2C_Read... [00:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:40]Read from MH i2c: E2 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: E2 17 00 [00:34:40]MH_I2C_Read... [00:34:40]Read from MH i2c: E2 17 00 E6 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 F2 [00:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:34:40]wFMCommunicate OK [00:34:40]requested_item fd.num is exist - process it [00:34:40]SAM_PROTO_GetFieldsCounters [00:34:40]wFMCommunicate request_size=4 [00:34:40]MH_SAM_APDU [00:34:40]CAPDU: 80 13 00 00 [00:34:40]Write to MH i2c: E2 08 00 E7 37 80 13 00 00 00 00 00 00 9A [00:34:40]Write i2c OK [00:34:40]MH_I2C_Read... [00:34:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:41]Read from MH i2c: E2 [00:34:41]MH_I2C_Read... [00:34:41]Read from MH i2c: E2 62 00 [00:34:41]MH_I2C_Read... [00:34:41]Read from MH i2c: E2 62 00 E7 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 54 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 0D [00:34: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 54 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:41]wFMCommunicate OK [00:34:41]SAM_PROTO_GetFieldsCounters done [00:34:41]requested_item shift.num is exist - process it [00:34:41]requested_item shift.opened is exist - process it [00:34:41]req_shift_opened [00:34:41]FM_GetShiftState [00:34:41]SAM_PROTO_GetShiftState [00:34:41]wFMCommunicate request_size=4 [00:34:41]MH_SAM_APDU [00:34:41]CAPDU: 80 13 01 00 [00:34:41]Write to MH i2c: E2 08 00 E8 37 80 13 01 00 00 00 00 00 9C [00:34:41]Write i2c OK [00:34:41]MH_I2C_Read... [00:34:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:41]Read from MH i2c: E2 [00:34:41]MH_I2C_Read... [00:34:41]Read from MH i2c: E2 0E 00 [00:34:41]MH_I2C_Read... [00:34:41]Read from MH i2c: E2 0E 00 E8 37 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 1B [00:34:41]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [00:34:41]wFMCommunicate OK [00:34:41]SAM_PROTO_GetShiftState done [00:34:41]FM_GetShiftState done [00:34:41]req_shift_opened done [00:34:41]requested_item shift.open_date is exist - process it [00:34:41]req_shift_open_date [00:34:41]req_shift_open_date done [00:34:41]produce_requested_data done [00:34:41]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31828,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [00:34:41]process_action_free close_receipt [00:34:41]json_value_free [00:34:41]json_value_free done [00:34:41]process_json_proto returns [00:34:41]Send response to host [00:34:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31828,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [00:34:41]free response buf [00:34:41]execute_script done [00:34:41]execute_script returns [00:34:41]free content buf [00:34:41]Sock 7.Close socket [00:34:41]Sock 7.Thread stoped [00:34:42]accept exits with 9 [00:34:42]New connection [00:34:42]New thread 3066965348 created [00:34:42]Thread 3066821988 joined [00:34:42]Waiting for new connection... [00:34:42] Sock 9.Parse request [00:34:42]Sock 9.Check first char [00:34:42]Sock 9.First char is OK [00:34:42]request: POST /json_proto HTTP/1.0 [00:34:42]Method: POST [00:34:42]URL: /json_proto [00:34:42]Method is POST - this is cgi request [00:34:42]url: /json_proto [00:34:42]query_string will be loaded in cgi processing [00:34:42]execute_cgi json_proto POST (null) [00:34:42]execute_cgi path=json_proto method=POST [00:34:42]POST find Content-Length [00:34:42]Host: 172.17.39.68:8080 [00:34:42]Content-Length: 706 [00:34:42]Content-Type: application/json [00:34:42] [00:34:42]POST finish read [00:34:42]Found Content-Length = 706 [00:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214410", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:42]execute_script... [00:34:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214410", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 107.00, "quantity" : 1.000, "sum" : 107.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 107.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:34:42]POST & json_proto [00:34:42]process_json_proto [00:34:42]json parsed OK: [00:34:42]protocol is kg_v1.0 [00:34:42]action value=close_receipt [00:34:42]process_action close_receipt [00:34:42]cmd_close_receipt [00:34:42]MH_GetDate [00:34:42]Write to MH i2c: F0 00 00 E9 37 0F [00:34:42]Write i2c OK [00:34:42]MH_I2C_Read... [00:34:42]Read from MH i2c: F0 [00:34:42]MH_I2C_Read... [00:34:42]Read from MH i2c: F0 09 00 [00:34:42]MH_I2C_Read... [00:34:42]Read from MH i2c: F0 09 00 E9 37 00 A9 11 97 66 D6 48 95 66 E8 [00:34:42]GetLastDocTimeStamp 1721176483 [00:34:42]current date 1721176489 [00:34:42]FM_GetShiftState [00:34:42]SAM_PROTO_GetShiftState [00:34:42]wFMCommunicate request_size=4 [00:34:42]MH_SAM_APDU [00:34:42]CAPDU: 80 13 01 00 [00:34:42]Write to MH i2c: E2 08 00 EA 37 80 13 01 00 00 00 00 00 9E [00:34:42]Write i2c OK [00:34:42]MH_I2C_Read... [00:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:42]Read from MH i2c: E2 [00:34:42]MH_I2C_Read... [00:34:42]Read from MH i2c: E2 0E 00 [00:34:42]MH_I2C_Read... [00:34:42]Read from MH i2c: E2 0E 00 EA 37 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 1D [00:34:42]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [00:34:42]wFMCommunicate OK [00:34:42]SAM_PROTO_GetShiftState done [00:34:42]FM_GetShiftState done [00:34:42]opened in 1721174636 [00:34:42]opened+sec_in_day 1721261036 [00:34:42]quantity*price = 10700 [00:34:42]sum+1 = 10701 [00:34:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 107.00 НСП 1% : 0.95 НДС 12% : 11.36 Наличными: 107.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 3 17.07.2024 00:34 Смена: 372 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31829 ФПД: 251997019857096 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T003449&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31829&fm=251997019857096&tin=02508201610067®Number=0000000000098025&sum=10700 0 [00:34:44]StoreToDocumentArchive [00:34:44]shift 372 fd 31829 [00:34:44]save to /storage/0372/doc_00031829 [00:34:44]save last doc name /storage/0372/doc_00031829 to /storage/kkm_last_doc_name [00:34:44]save OK [00:34:44]Clear old archive folders... [00:34:44]ProcessDocumentItem done err = 0, tmpTLVsize=298 [00:34:44]tlvbuf is 015A2120 [00:34:44]SAM_PROTO_ClearQueue [00:34:44]wFMCommunicate request_size=4 [00:34:44]MH_SAM_APDU [00:34:44]CAPDU: 80 09 00 00 [00:34:44]Write to MH i2c: E2 08 00 F7 37 80 09 00 00 00 00 00 00 A0 [00:34:44]Write i2c OK [00:34:44]MH_I2C_Read... [00:34:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:34:44]Read from MH i2c: E2 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 03 00 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 03 00 F7 37 00 90 00 A2 [00:34:44]RAPDU: 90 00 [00:34:44]wFMCommunicate OK [00:34:44]SAM_PROTO_ClearQueue done [00:34:44]KKMCreateOFDPacket [00:34:44]OFDProtocolAddRootSTLVToBuf [00:34:44]FM_MakeSignedData [00:34:44]FM_MakeSignedData [00:34:44]SAM_PROTO_SignData [00:34:44]wFMCommunicate request_size=4 [00:34:44]MH_SAM_APDU [00:34:44]CAPDU: 80 0D 01 02 [00:34:44]Write to MH i2c: E2 08 00 F8 37 80 0D 01 02 00 00 00 00 A8 [00:34:44]Write i2c OK [00:34:44]MH_I2C_Read... [00:34:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:34:44]Read from MH i2c: E2 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 03 00 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 03 00 F8 37 00 90 00 A3 [00:34:44]RAPDU: 90 00 [00:34:44]wFMCommunicate OK [00:34:44]wFMCommunicate request_size=255 [00:34:44]MH_SAM_APDU [00:34:44]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 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 00 00 00 F4 03 04 00 A9 11 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [00:34:44]Write to MH i2c: E2 02 01 F9 37 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 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 00 00 00 F4 03 04 00 A9 11 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 DC [00:34:44]Write i2c OK [00:34:44]MH_I2C_Read... [00:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:44]Read from MH i2c: E2 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 03 00 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 03 00 F9 37 00 90 00 A4 [00:34:44]RAPDU: 90 00 [00:34:44]wFMCommunicate OK [00:34:44]wFMCommunicate request_size=57 [00:34:44]MH_SAM_APDU [00:34:44]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 55 7C 00 00 35 04 06 00 E5 30 A0 DA 60 C8 [00:34:44]Write to MH i2c: E2 3C 00 FA 37 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 55 7C 00 00 35 04 06 00 E5 30 A0 DA 60 C8 00 00 F7 [00:34:44]Write i2c OK [00:34:44]MH_I2C_Read... [00:34:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:34:44]Read from MH i2c: E2 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 03 00 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 03 00 FA 37 00 90 00 A5 [00:34:44]RAPDU: 90 00 [00:34:44]wFMCommunicate OK [00:34:44]wFMCommunicate request_size=4 [00:34:44]MH_SAM_APDU [00:34:44]CAPDU: 80 0D 03 02 [00:34:44]Write to MH i2c: E2 08 00 FB 37 80 0D 03 02 00 00 00 00 AD [00:34:44]Write i2c OK [00:34:44]MH_I2C_Read... [00:34:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:34:44]Read from MH i2c: E2 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 0B 00 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 0B 00 FB 37 00 4F BA CC 1B 5E 90 64 46 90 00 36 [00:34:44]RAPDU: 4F BA CC 1B 5E 90 64 46 90 00 [00:34:44]wFMCommunicate OK [00:34:44]SAM_PROTO_SignData done [00:34:44]FM_MakeSignedData done [00:34:44]CreateOFDProtocolMessage [00:34:44]wFMCommunicate request_size=4 [00:34:44]MH_SAM_APDU [00:34:44]CAPDU: 80 11 00 00 [00:34:44]Write to MH i2c: E2 08 00 FC 37 80 11 00 00 00 00 00 00 AD [00:34:44]Write i2c OK [00:34:44]MH_I2C_Read... [00:34:44]OFD Sender: No OFD packet to send [00:34:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:44]Read from MH i2c: E2 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 17 00 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: E2 17 00 FC 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 08 [00:34:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:34:44]wFMCommunicate OK [00:34:44]CreateOFDProtocolMessage done [00:34:44]OFDSenderStorePacket 31829 [00:34:44]StoreOFDPacket docnum=31829 [00:34:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3E 01 00 00 FD 0B 36 01 A1 C2 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 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 00 00 00 F4 03 04 00 A9 11 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 55 7C 00 00 35 04 06 00 E5 30 A0 DA 60 C8 4F BA CC 1B 5E 90 64 46 [00:34:44]CheckFolder [00:34:44]dirname=/storage/ofd_packets [00:34:44]CheckFolder done [00:34:44]ProducePacketName [00:34:44]name=ofd_packets/00031829 [00:34:44]NVStorageSaveData ofd_packets/00031829 [00:34:44]File name is /storage/ofd_packets/00031829 [00:34:44]Write 348 bytes [00:34:44]NVStorageSaveData done [00:34:44]OFDSenderStorePacket done [00:34:44]KKMCreateOFDPacket done [00:34:44]NVStorageSaveData kkm_last_timestamp [00:34:44]File name is /storage/kkm_last_timestamp [00:34:44]Write 4 bytes [00:34:44]NVStorageSaveData done [00:34:44]ExternCall_PrintAddStr [00:34:44]wPrintStart [00:34:44]Write to MH i2c: 01 00 00 FD 37 34 [00:34:44]Write i2c OK [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: 01 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: 01 07 00 [00:34:44]MH_I2C_Read... [00:34:44]Read from MH i2c: 01 07 00 FD 37 00 00 00 00 00 FF 0F 49 [00:34:44]RasterBufferAndPrint [00:34:44]line Счет N : (3)214410 [00:34:44]line ИНН: 02508201610067 [00:34:44]line Контрольно-Кассовый Чек [00:34:44]line ПРОДАЖА [00:34:44]line Товар: 5449000189356 [00:34:44]line Холодный чай Fuse манго ананас 1л [00:34:44]line 1.000 * 107.00 [00:34:44]line = 107.00 [00:34:44]line НДС 12% НСП 1% [00:34:44]line > о реализуемом товаре [00:34:44]line ИТОГО: 107.00 [00:34:44]line НСП 1% : 0.95 [00:34:44]line НДС 12% : 11.36 [00:34:44]line Наличными: 107.00 [00:34:44]line Безнал.: 0.00 [00:34:44]line Место: АЗС № 140 "Партнер Нефть" [00:34:44]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [00:34:44]line СНО: Общий режим [00:34:44]line Чек 3 17.07.2024 00:34 [00:34:44]line Смена: 372 ФФД: 1.0 [00:34:44]line ЗНМ: 0300000189 [00:34:44]line РНМ: 0000000000098025 [00:34:44]line Версия ККМ: 001 [00:34:44]line ФМ: 0000000000965389 [00:34:44]line ФД: 31829 [00:34:44]line ФПД: 251997019857096 [00:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T003449&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31829&fm=251997019857096&tin=02508201610067®Number=0000000000098025&sum=10700 [00:34:44]line 0 [00:34:44]written 0, free lines is 4095 [00:34:44]OFD Sender: Processing packet 31829 [packets to send 6, broken 5] [00:34:44]ProducePacketName [00:34:44]name=ofd_packets/00031829 [00:34:44]OFD Sender: To server: pG, [00:34:44]CommunicateWithHost lk.salyk.kg:30040 [00:34:44]ConnectInit lk.salyk.kg [00:34:44]Connected sock=10 [00:34:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 3E 01 00 00 FD 0B 36 01 A1 C2 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 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 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 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 FC 03 06 00 CC 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 70 04 00 00 00 00 07 04 06 00 CC 29 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 00 00 00 F4 03 04 00 A9 11 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 55 7C 00 00 35 04 06 00 E5 30 A0 DA 60 C8 4F BA CC 1B 5E 90 64 46 [00:34:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 9E DE 47 00 2A 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 35 33 38 39 10 04 04 00 55 7C 00 00 F4 03 04 00 B5 BD 96 66 B6 04 01 00 00 4E BC D3 5B 07 B5 F1 C8 [00:34:45]CommunicateWithHost err = 0 [00:34:45]CheckOFDResponse [00:34:45]1017 (14) - 77093643461234 [00:34:45]1041 (16) - 0000000000965389 [00:34:45]1040 (4) - 31829 [00:34:45]1012 (4) - 16.07.2024 18:36 [00:34:45]1206 (1) - 0 [00:34:45]OFD Sender: Remove packet 31829 [00:34:45]ProducePacketName [00:34:45]name=ofd_packets/00031829 [00:34:45]NVStorageDeleteData [00:34:45]Write to MH i2c: 01 00 00 26 38 5E [00:34:45]Write i2c OK [00:34:45]MH_I2C_Read... [00:34:45]Read from MH i2c: 01 [00:34:45]MH_I2C_Read... [00:34:45]Read from MH i2c: 01 07 00 [00:34:45]MH_I2C_Read... [00:34:45]Read from MH i2c: 01 07 00 26 38 00 00 00 00 00 EB 0C 5C [00:34:45]RasterBufferAndPrint [00:34:45]line [00:34:45]line [00:34:45]line [00:34:45]line [00:34:45]line [00:34:45]written 0, free lines is 3323 [00:34:45]MH_Cut [00:34:45]Write to MH i2c: D1 01 00 2D 38 01 37 [00:34:45]Write i2c OK [00:34:45]MH_I2C_Read... [00:34:45]Read from MH i2c: D1 [00:34:45]MH_I2C_Read... [00:34:45]Read from MH i2c: D1 01 00 [00:34:45]MH_I2C_Read... [00:34:45]Read from MH i2c: D1 01 00 2D 38 00 36 [00:34:45]Write to MH i2c: 01 00 00 2E 38 66 [00:34:45]Write i2c OK [00:34:45]MH_I2C_Read... [00:34:45]OFD Sender: No OFD packet to send [00:34:45]*** Cut start [00:34:45]*** Partial cut [00:34:45]*** CUTSNS_PIN = 1 [00:34:45]*** CUTSNS_PIN = 0 [00:34:46]*** Brake cut motor [00:34:46]Read from MH i2c: 01 [00:34:46]MH_I2C_Read... [00:34:46]*** Stop cut motor [00:34:46]*** Cut end [00:34:46]Read from MH i2c: 01 07 00 [00:34:46]MH_I2C_Read... [00:34:46]Read from MH i2c: 01 07 00 2E 38 00 00 00 00 00 FF 0F 7B [00:34:46]process_action close_receipt done [00:34:46]requested_data is exist [00:34:46]produce_requested_data [00:34:46]requested_item fm.sn is exist - process it [00:34:46]wFMCommunicate request_size=4 [00:34:46]MH_SAM_APDU [00:34:46]CAPDU: 80 11 00 00 [00:34:46]Write to MH i2c: E2 08 00 2F 38 80 11 00 00 00 00 00 00 E1 [00:34:46]Write i2c OK [00:34:46]MH_I2C_Read... [00:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:34:46]Read from MH i2c: E2 [00:34:46]MH_I2C_Read... [00:34:46]Read from MH i2c: E2 17 00 [00:34:46]MH_I2C_Read... [00:34:46]Read from MH i2c: E2 17 00 2F 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 3C [00:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [00:34:46]wFMCommunicate OK [00:34:46]requested_item fd.num is exist - process it [00:34:46]SAM_PROTO_GetFieldsCounters [00:34:46]wFMCommunicate request_size=4 [00:34:46]MH_SAM_APDU [00:34:46]CAPDU: 80 13 00 00 [00:34:46]Write to MH i2c: E2 08 00 30 38 80 13 00 00 00 00 00 00 E4 [00:34:46]Write i2c OK [00:34:46]MH_I2C_Read... [00:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:34:46]Read from MH i2c: E2 [00:34:46]MH_I2C_Read... [00:34:46]Read from MH i2c: E2 62 00 [00:34:46]MH_I2C_Read... [00:34:46]Read from MH i2c: E2 62 00 30 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 55 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [00:34: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 55 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:34:46]wFMCommunicate OK [00:34:46]SAM_PROTO_GetFieldsCounters done [00:34:46]requested_item shift.num is exist - process it [00:34:46]requested_item shift.opened is exist - process it [00:34:46]req_shift_opened [00:34:46]FM_GetShiftState [00:34:46]SAM_PROTO_GetShiftState [00:34:46]wFMCommunicate request_size=4 [00:34:46]MH_SAM_APDU [00:34:46]CAPDU: 80 13 01 00 [00:34:46]Write to MH i2c: E2 08 00 31 38 80 13 01 00 00 00 00 00 E6 [00:34:46]Write i2c OK [00:34:46]MH_I2C_Read... [00:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:34:46]Read from MH i2c: E2 [00:34:46]MH_I2C_Read... [00:34:46]Read from MH i2c: E2 0E 00 [00:34:46]MH_I2C_Read... [00:34:46]Read from MH i2c: E2 0E 00 31 38 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 65 [00:34:46]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [00:34:46]wFMCommunicate OK [00:34:46]SAM_PROTO_GetShiftState done [00:34:46]FM_GetShiftState done [00:34:46]req_shift_opened done [00:34:46]requested_item shift.open_date is exist - process it [00:34:46]req_shift_open_date [00:34:46]req_shift_open_date done [00:34:46]produce_requested_data done [00:34:46]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31829,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [00:34:46]process_action_free close_receipt [00:34:46]json_value_free [00:34:46]json_value_free done [00:34:46]process_json_proto returns [00:34:46]Send response to host [00:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31829,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [00:34:46]free response buf [00:34:46]execute_script done [00:34:46]execute_script returns [00:34:46]free content buf [00:34:46]Sock 9.Close socket [00:34:46]Sock 9.Thread stoped [00:34:50]OFD Sender: No OFD packet to send [00:34:55]OFD Sender: No OFD packet to send [00:35:00]OFD Sender: No OFD packet to send [00:35:05]OFD Sender: No OFD packet to send [00:35:10]OFD Sender: No OFD packet to send [00:35:15]OFD Sender: No OFD packet to send [00:35:20]OFD Sender: No OFD packet to send [00:35:25]OFD Sender: No OFD packet to send [00:35:30]OFD Sender: No OFD packet to send [00:35:35]OFD Sender: No OFD packet to send [00:35:40]OFD Sender: No OFD packet to send [00:35:45]OFD Sender: No OFD packet to send [00:35:50]OFD Sender: No OFD packet to send [00:35:55]OFD Sender: No OFD packet to send [00:36:00]OFD Sender: No OFD packet to send [00:36:05]OFD Sender: No OFD packet to send [00:36:10]OFD Sender: No OFD packet to send [00:36:15]OFD Sender: No OFD packet to send [00:36:20]OFD Sender: No OFD packet to send [00:36:25]OFD Sender: No OFD packet to send [00:36:30]OFD Sender: No OFD packet to send [00:36:35]OFD Sender: No OFD packet to send [00:36:40]OFD Sender: No OFD packet to send [00:36:45]OFD Sender: No OFD packet to send [00:36:50]OFD Sender: No OFD packet to send [00:36:55]OFD Sender: No OFD packet to send [00:37:00]OFD Sender: No OFD packet to send [00:37:05]OFD Sender: No OFD packet to send [00:37:10]OFD Sender: No OFD packet to send [00:37:15]OFD Sender: No OFD packet to send [00:37:20]OFD Sender: No OFD packet to send [00:37:25]OFD Sender: No OFD packet to send [00:37:30]OFD Sender: No OFD packet to send [00:37:35]OFD Sender: No OFD packet to send [00:37:40]OFD Sender: No OFD packet to send [00:37:45]OFD Sender: No OFD packet to send [00:37:50]OFD Sender: No OFD packet to send [00:37:55]OFD Sender: No OFD packet to send [00:38:00]OFD Sender: No OFD packet to send [00:38:05]OFD Sender: No OFD packet to send [00:38:10]OFD Sender: No OFD packet to send [00:38:15]OFD Sender: No OFD packet to send [00:38:20]OFD Sender: No OFD packet to send [00:38:25]OFD Sender: No OFD packet to send [00:38:30]OFD Sender: No OFD packet to send [00:38:35]OFD Sender: No OFD packet to send [00:38:40]OFD Sender: No OFD packet to send [00:38:45]OFD Sender: No OFD packet to send [00:38:50]OFD Sender: No OFD packet to send [00:38:55]OFD Sender: No OFD packet to send [00:39:00]OFD Sender: No OFD packet to send [00:39:05]OFD Sender: No OFD packet to send [00:39:10]OFD Sender: No OFD packet to send [00:39:15]OFD Sender: No OFD packet to send [00:39:20]OFD Sender: No OFD packet to send [00:39:25]OFD Sender: No OFD packet to send [00:39:30]OFD Sender: No OFD packet to send [00:39:35]OFD Sender: No OFD packet to send [00:39:40]OFD Sender: No OFD packet to send [00:39:45]OFD Sender: No OFD packet to send [00:39:50]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:36]OFD Sender: No OFD packet to send [00:56:41]OFD Sender: No OFD packet to send [00:56:46]OFD Sender: No OFD packet to send [00:56:51]OFD Sender: No OFD packet to send [00:56:56]OFD Sender: No OFD packet to send [00:57:01]OFD Sender: No OFD packet to send [00:57:06]OFD Sender: No OFD packet to send [00:57:11]OFD Sender: No OFD packet to send [00:57:16]OFD Sender: No OFD packet to send [00:57:21]OFD Sender: No OFD packet to send [00:57:26]OFD Sender: No OFD packet to send [00:57:31]OFD Sender: No OFD packet to send [00:57:36]OFD Sender: No OFD packet to send [00:57:41]OFD Sender: No OFD packet to send [00:57:46]OFD Sender: No OFD packet to send [00:57:51]OFD Sender: No OFD packet to send [00:57:56]OFD Sender: No OFD packet to send [00:58:01]OFD Sender: No OFD packet to send [00:58:06]OFD Sender: No OFD packet to send [00:58:11]OFD Sender: No OFD packet to send [00:58:16]OFD Sender: No OFD packet to send [00:58:21]OFD Sender: No OFD packet to send [00:58:26]OFD Sender: No OFD packet to send [00:58:31]OFD Sender: No OFD packet to send [00:58:36]OFD Sender: No OFD packet to send [00:58:41]OFD Sender: No OFD packet to send [00:58:46]OFD Sender: No OFD packet to send [00:58:51]OFD Sender: No OFD packet to send [00:58:56]OFD Sender: No OFD packet to send [00:59:01]OFD Sender: No OFD packet to send [00:59:06]OFD Sender: No OFD packet to send [00:59:11]OFD Sender: No OFD packet to send [00:59:16]OFD Sender: No OFD packet to send [00:59:21]OFD Sender: No OFD packet to send [00:59:26]OFD Sender: No OFD packet to send [00:59:31]OFD Sender: No OFD packet to send [00:59:36]OFD Sender: No OFD packet to send [00:59:41]OFD Sender: No OFD packet to send [00:59:46]OFD Sender: No OFD packet to send [00:59:51]OFD Sender: No OFD packet to send [00:59:56]OFD Sender: No OFD packet to send [01:00:01]OFD Sender: No OFD packet to send [01:00:06]OFD Sender: No OFD packet to send [01:00:11]OFD Sender: No OFD packet to send [01:00:16]OFD Sender: No OFD packet to send [01:00:21]OFD Sender: No OFD packet to send [01:00:26]OFD Sender: No OFD packet to send [01:00:31]OFD Sender: No OFD packet to send [01:00:36]OFD Sender: No OFD packet to send [01:00:41]OFD Sender: No OFD packet to send [01:00:46]OFD Sender: No OFD packet to send [01:00:51]OFD Sender: No OFD packet to send [01:00:56]OFD Sender: No OFD packet to send [01:01:01]OFD Sender: No OFD packet to send [01:01:06]OFD Sender: No OFD packet to send [01:01:11]OFD Sender: No OFD packet to send [01:01:16]OFD Sender: No OFD packet to send [01:01:21]OFD Sender: No OFD packet to send [01:01:26]OFD Sender: No OFD packet to send [01:01:31]OFD Sender: No OFD packet to send [01:01:36]OFD Sender: No OFD packet to send [01:01:41]OFD Sender: No OFD packet to send [01:01:46]OFD Sender: No OFD packet to send [01:01:51]OFD Sender: No OFD packet to send [01:01:56]OFD Sender: No OFD packet to send [01:02:01]OFD Sender: No OFD packet to send [01:02:06]OFD Sender: No OFD packet to send [01:02:11]OFD Sender: No OFD packet to send [01:02:16]OFD Sender: No OFD packet to send [01:02:21]OFD Sender: No OFD packet to send [01:02:26]OFD Sender: No OFD packet to send [01:02:31]OFD Sender: No OFD packet to send [01:02:36]OFD Sender: No OFD packet to send [01:02:41]OFD Sender: No OFD packet to send [01:02:46]OFD Sender: No OFD packet to send [01:02:51]OFD Sender: No OFD packet to send [01:02:56]OFD Sender: No OFD packet to send [01:03:01]OFD Sender: No OFD packet to send [01:03:06]OFD Sender: No OFD packet to send [01:03:11]OFD Sender: No OFD packet to send [01:03:16]OFD Sender: No OFD packet to send [01:03:21]OFD Sender: No OFD packet to send [01:03:26]OFD Sender: No OFD packet to send [01:03:31]OFD Sender: No OFD packet to send [01:03:36]OFD Sender: No OFD packet to send [01:03:41]OFD Sender: No OFD packet to send [01:03:46]OFD Sender: No OFD packet to send [01:03:51]OFD Sender: No OFD packet to send [01:03:56]OFD Sender: No OFD packet to send [01:04:01]OFD Sender: No OFD packet to send [01:04:06]OFD Sender: No OFD packet to send [01:04:11]OFD Sender: No OFD packet to send [01:04:16]OFD Sender: No OFD packet to send [01:04:21]OFD Sender: No OFD packet to send [01:04:26]OFD Sender: No OFD packet to send [01:04:31]OFD Sender: No OFD packet to send [01:04:36]OFD Sender: No OFD packet to send [01:04:41]OFD Sender: No OFD packet to send [01:04:46]OFD Sender: No OFD packet to send [01:04:51]OFD Sender: No OFD packet to send [01:04:56]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:07]accept exits with 7 [01:08:07]New connection [01:08:07]New thread 3066821988 created [01:08:07]Thread 3066965348 joined [01:08:07]Waiting for new connection... [01:08:07] Sock 7.Parse request [01:08:07]Sock 7.Check first char [01:08:07]Sock 7.First char is OK [01:08:07]request: POST /json_proto HTTP/1.0 [01:08:07]Method: POST [01:08:07]URL: /json_proto [01:08:07]Method is POST - this is cgi request [01:08:07]url: /json_proto [01:08:07]query_string will be loaded in cgi processing [01:08:07]execute_cgi json_proto POST (null) [01:08:07]execute_cgi path=json_proto method=POST [01:08:07]POST find Content-Length [01:08:07]Host: 172.17.39.68:8080 [01:08:07]Content-Length: 604 [01:08:07]Content-Type: application/json [01:08:07] [01:08:07]POST finish read [01:08:07]Found Content-Length = 604 [01:08:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214411", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\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" ] } } [01:08:07]execute_script... [01:08:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214411", "tax_sys" : 0, "items" : [ { "code": "4700002083334", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,7\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" ] } } [01:08:07]POST & json_proto [01:08:07]process_json_proto [01:08:07]json parsed OK: [01:08:07]protocol is kg_v1.0 [01:08:07]action value=close_receipt [01:08:07]process_action close_receipt [01:08:07]cmd_close_receipt [01:08:07]MH_GetDate [01:08:07]Write to MH i2c: F0 00 00 32 38 59 [01:08:07]Write i2c OK [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: F0 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: F0 09 00 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: F0 09 00 32 38 00 7E 19 97 66 D6 48 95 66 0F [01:08:07]GetLastDocTimeStamp 1721176489 [01:08:07]current date 1721178494 [01:08:07]FM_GetShiftState [01:08:07]SAM_PROTO_GetShiftState [01:08:07]wFMCommunicate request_size=4 [01:08:07]MH_SAM_APDU [01:08:07]CAPDU: 80 13 01 00 [01:08:07]Write to MH i2c: E2 08 00 33 38 80 13 01 00 00 00 00 00 E8 [01:08:07]Write i2c OK [01:08:07]MH_I2C_Read... [01:08:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:07]Read from MH i2c: E2 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: E2 0E 00 [01:08:07]MH_I2C_Read... [01:08:07]Read from MH i2c: E2 0E 00 33 38 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 67 [01:08:07]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [01:08:07]wFMCommunicate OK [01:08:07]SAM_PROTO_GetShiftState done [01:08:07]FM_GetShiftState done [01:08:07]opened in 1721174636 [01:08:07]opened+sec_in_day 1721261036 [01:08:07]quantity*price = 63000 [01:08:07]sum+1 = 63001 [01:08:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 630.00 НСП 1% : 5.57 НДС 12% : 66.90 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 4 17.07.2024 01:08 Смена: 372 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31830 ФПД: 29776069456301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T010814&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31830&fm=29776069456301&tin=02508201610067®Number=0000000000098025&sum=63000 0 [01:08:08]StoreToDocumentArchive [01:08:08]shift 372 fd 31830 [01:08:08]save to /storage/0372/doc_00031830 [01:08:08]save last doc name /storage/0372/doc_00031830 to /storage/kkm_last_doc_name [01:08:08]save OK [01:08:08]Clear old archive folders... [01:08:08]ProcessDocumentItem done err = 0, tmpTLVsize=264 [01:08:08]tlvbuf is B6DAB010 [01:08:08]SAM_PROTO_ClearQueue [01:08:08]wFMCommunicate request_size=4 [01:08:08]MH_SAM_APDU [01:08:08]CAPDU: 80 09 00 00 [01:08:08]Write to MH i2c: E2 08 00 40 38 80 09 00 00 00 00 00 00 EA [01:08:08]Write i2c OK [01:08:08]MH_I2C_Read... [01:08:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:08:08]Read from MH i2c: E2 [01:08:08]MH_I2C_Read... [01:08:08]Read from MH i2c: E2 03 00 [01:08:08]MH_I2C_Read... [01:08:08]Read from MH i2c: E2 03 00 40 38 00 90 00 EC [01:08:08]RAPDU: 90 00 [01:08:08]wFMCommunicate OK [01:08:08]SAM_PROTO_ClearQueue done [01:08:08]KKMCreateOFDPacket [01:08:08]OFDProtocolAddRootSTLVToBuf [01:08:08]FM_MakeSignedData [01:08:08]FM_MakeSignedData [01:08:08]SAM_PROTO_SignData [01:08:08]wFMCommunicate request_size=4 [01:08:08]MH_SAM_APDU [01:08:08]CAPDU: 80 0D 01 02 [01:08:08]Write to MH i2c: E2 08 00 41 38 80 0D 01 02 00 00 00 00 F2 [01:08:08]Write i2c OK [01:08:08]MH_I2C_Read... [01:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:08:08]Read from MH i2c: E2 [01:08:08]MH_I2C_Read... [01:08:08]Read from MH i2c: E2 03 00 [01:08:08]MH_I2C_Read... [01:08:08]Read from MH i2c: E2 03 00 41 38 00 90 00 ED [01:08:08]RAPDU: 90 00 [01:08:08]wFMCommunicate OK [01:08:08]wFMCommunicate request_size=255 [01:08:08]MH_SAM_APDU [01:08:08]CAPDU: 80 0D 02 02 FA 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 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 04 00 00 00 F4 03 04 00 7E 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 [01:08:08]Write to MH i2c: E2 02 01 42 38 80 0D 02 02 FA 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 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 04 00 00 00 F4 03 04 00 7E 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 00 00 67 [01:08:08]Write i2c OK [01:08:08]MH_I2C_Read... [01:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:08]Read from MH i2c: E2 [01:08:08]MH_I2C_Read... [01:08:08]Read from MH i2c: E2 03 00 [01:08:08]MH_I2C_Read... [01:08:08]Read from MH i2c: E2 03 00 42 38 00 90 00 EE [01:08:08]RAPDU: 90 00 [01:08:08]wFMCommunicate OK [01:08:08]wFMCommunicate request_size=23 [01:08:08]MH_SAM_APDU [01:08:08]CAPDU: 80 0D 02 02 12 10 04 04 00 56 7C 00 00 35 04 06 00 1B 14 C8 0A F1 AD [01:08:08]Write to MH i2c: E2 1A 00 43 38 80 0D 02 02 12 00 10 04 04 00 56 7C 00 00 35 04 06 00 1B 14 C8 0A F1 AD 00 00 E1 [01:08:08]Write i2c OK [01:08:08]MH_I2C_Read... [01:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:08:08]Read from MH i2c: E2 [01:08:08]MH_I2C_Read... [01:08:08]Read from MH i2c: E2 03 00 [01:08:08]MH_I2C_Read... [01:08:08]Read from MH i2c: E2 03 00 43 38 00 90 00 EF [01:08:08]RAPDU: 90 00 [01:08:08]wFMCommunicate OK [01:08:08]wFMCommunicate request_size=4 [01:08:08]MH_SAM_APDU [01:08:08]CAPDU: 80 0D 03 02 [01:08:08]Write to MH i2c: E2 08 00 44 38 80 0D 03 02 00 00 00 00 F7 [01:08:09]Write i2c OK [01:08:09]MH_I2C_Read... [01:08:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:08:09]Read from MH i2c: E2 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: E2 0B 00 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: E2 0B 00 44 38 00 5A 9E 50 9F 22 D9 97 FB 90 00 6C [01:08:09]RAPDU: 5A 9E 50 9F 22 D9 97 FB 90 00 [01:08:09]wFMCommunicate OK [01:08:09]SAM_PROTO_SignData done [01:08:09]FM_MakeSignedData done [01:08:09]CreateOFDProtocolMessage [01:08:09]wFMCommunicate request_size=4 [01:08:09]MH_SAM_APDU [01:08:09]CAPDU: 80 11 00 00 [01:08:09]Write to MH i2c: E2 08 00 45 38 80 11 00 00 00 00 00 00 F7 [01:08:09]Write i2c OK [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: E2 [01:08:09]MH_I2C_Read... [01:08:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:09]Read from MH i2c: E2 17 00 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: E2 17 00 45 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 52 [01:08:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:08:09]wFMCommunicate OK [01:08:09]CreateOFDProtocolMessage done [01:08:09]OFDSenderStorePacket 31830 [01:08:09]StoreOFDPacket docnum=31830 [01:08:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1C 01 00 00 81 E2 14 01 DB 55 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 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 04 00 00 00 F4 03 04 00 7E 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 56 7C 00 00 35 04 06 00 1B 14 C8 0A F1 AD 5A 9E 50 9F 22 D9 97 FB [01:08:09]CheckFolder [01:08:09]dirname=/storage/ofd_packets [01:08:09]CheckFolder done [01:08:09]ProducePacketName [01:08:09]name=ofd_packets/00031830 [01:08:09]NVStorageSaveData ofd_packets/00031830 [01:08:09]File name is /storage/ofd_packets/00031830 [01:08:09]Write 314 bytes [01:08:09]NVStorageSaveData done [01:08:09]OFDSenderStorePacket done [01:08:09]KKMCreateOFDPacket done [01:08:09]NVStorageSaveData kkm_last_timestamp [01:08:09]File name is /storage/kkm_last_timestamp [01:08:09]Write 4 bytes [01:08:09]NVStorageSaveData done [01:08:09]ExternCall_PrintAddStr [01:08:09]wPrintStart [01:08:09]Write to MH i2c: 01 00 00 46 38 7E [01:08:09]Write i2c OK [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: 01 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: 01 07 00 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: 01 07 00 46 38 00 00 00 00 00 FF 0F 93 [01:08:09]RasterBufferAndPrint [01:08:09]line Счет N : (3)214411 [01:08:09]line ИНН: 02508201610067 [01:08:09]line Контрольно-Кассовый Чек [01:08:09]line ПРОДАЖА [01:08:09]line Товар: 4700002083334 [01:08:09]line Водка Level 0,7л [01:08:09]line 1.000 * 630.00 [01:08:09]line = 630.00 [01:08:09]line НДС 12% НСП 1% [01:08:09]line > о реализуемом товаре [01:08:09]line ИТОГО: 630.00 [01:08:09]line НСП 1% : 5.57 [01:08:09]line НДС 12% : 66.90 [01:08:09]line Наличными: 630.00 [01:08:09]line Безнал.: 0.00 [01:08:09]line Место: АЗС № 140 "Партнер Нефть" [01:08:09]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:08:09]line СНО: Общий режим [01:08:09]line Чек 4 17.07.2024 01:08 [01:08:09]line Смена: 372 ФФД: 1.0 [01:08:09]line ЗНМ: 0300000189 [01:08:09]line РНМ: 0000000000098025 [01:08:09]line Версия ККМ: 001 [01:08:09]line ФМ: 0000000000965389 [01:08:09]line ФД: 31830 [01:08:09]line ФПД: 29776069456301 [01:08:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T010814&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31830&fm=29776069456301&tin=02508201610067®Number=0000000000098025&sum=63000 [01:08:09]line 0 [01:08:09]written 0, free lines is 4095 [01:08:09]OFD Sender: Processing packet 31830 [packets to send 6, broken 5] [01:08:09]ProducePacketName [01:08:09]name=ofd_packets/00031830 [01:08:09]OFD Sender: To server: pG, [01:08:09]CommunicateWithHost lk.salyk.kg:30040 [01:08:09]ConnectInit lk.salyk.kg [01:08:09]Connected sock=10 [01:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 1C 01 00 00 81 E2 14 01 DB 55 5A 03 01 00 03 00 08 01 1E 04 01 00 01 23 04 5A 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 33 34 06 04 16 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 37 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 04 00 00 00 F4 03 04 00 7E 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 56 7C 00 00 35 04 06 00 1B 14 C8 0A F1 AD 5A 9E 50 9F 22 D9 97 FB [01:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 94 F5 47 00 7E 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 35 33 38 39 10 04 04 00 56 7C 00 00 F4 03 04 00 89 C5 96 66 B6 04 01 00 00 0F 8A 1C B1 FF B4 45 81 [01:08:09]CommunicateWithHost err = 0 [01:08:09]CheckOFDResponse [01:08:09]1017 (14) - 77093643461234 [01:08:09]1041 (16) - 0000000000965389 [01:08:09]1040 (4) - 31830 [01:08:09]1012 (4) - 16.07.2024 19:10 [01:08:09]1206 (1) - 0 [01:08:09]OFD Sender: Remove packet 31830 [01:08:09]ProducePacketName [01:08:09]name=ofd_packets/00031830 [01:08:09]NVStorageDeleteData [01:08:09]Write to MH i2c: 01 00 00 6E 38 A6 [01:08:09]Write i2c OK [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: 01 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: 01 07 00 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: 01 07 00 6E 38 00 00 00 00 00 00 0D BA [01:08:09]RasterBufferAndPrint [01:08:09]line [01:08:09]line [01:08:09]line [01:08:09]line [01:08:09]line [01:08:09]written 0, free lines is 3334 [01:08:09]MH_Cut [01:08:09]Write to MH i2c: D1 01 00 75 38 01 7F [01:08:09]Write i2c OK [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: D1 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: D1 01 00 [01:08:09]MH_I2C_Read... [01:08:09]Read from MH i2c: D1 01 00 75 38 00 7E [01:08:09]Write to MH i2c: 01 00 00 76 38 AE [01:08:09]Write i2c OK [01:08:09]MH_I2C_Read... [01:08:09]OFD Sender: No OFD packet to send [01:08:10]*** Cut start [01:08:10]*** Partial cut [01:08:10]*** CUTSNS_PIN = 1 [01:08:10]*** CUTSNS_PIN = 0 [01:08:10]*** Brake cut motor [01:08:10]Read from MH i2c: 01 [01:08:10]MH_I2C_Read... [01:08:10]*** Stop cut motor [01:08:10]*** Cut end [01:08:10]Read from MH i2c: 01 07 00 [01:08:10]MH_I2C_Read... [01:08:10]Read from MH i2c: 01 07 00 76 38 00 00 00 00 00 FF 0F C3 [01:08:10]process_action close_receipt done [01:08:10]requested_data is exist [01:08:10]produce_requested_data [01:08:10]requested_item fm.sn is exist - process it [01:08:10]wFMCommunicate request_size=4 [01:08:10]MH_SAM_APDU [01:08:10]CAPDU: 80 11 00 00 [01:08:10]Write to MH i2c: E2 08 00 77 38 80 11 00 00 00 00 00 00 29 [01:08:10]Write i2c OK [01:08:10]MH_I2C_Read... [01:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:08:11]Read from MH i2c: E2 [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: E2 17 00 [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: E2 17 00 77 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 84 [01:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:08:11]wFMCommunicate OK [01:08:11]requested_item fd.num is exist - process it [01:08:11]SAM_PROTO_GetFieldsCounters [01:08:11]wFMCommunicate request_size=4 [01:08:11]MH_SAM_APDU [01:08:11]CAPDU: 80 13 00 00 [01:08:11]Write to MH i2c: E2 08 00 78 38 80 13 00 00 00 00 00 00 2C [01:08:11]Write i2c OK [01:08:11]MH_I2C_Read... [01:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:08:11]Read from MH i2c: E2 [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: E2 62 00 [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: E2 62 00 78 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 56 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [01:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 56 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:08:11]wFMCommunicate OK [01:08:11]SAM_PROTO_GetFieldsCounters done [01:08:11]requested_item shift.num is exist - process it [01:08:11]requested_item shift.opened is exist - process it [01:08:11]req_shift_opened [01:08:11]FM_GetShiftState [01:08:11]SAM_PROTO_GetShiftState [01:08:11]wFMCommunicate request_size=4 [01:08:11]MH_SAM_APDU [01:08:11]CAPDU: 80 13 01 00 [01:08:11]Write to MH i2c: E2 08 00 79 38 80 13 01 00 00 00 00 00 2E [01:08:11]Write i2c OK [01:08:11]MH_I2C_Read... [01:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:08:11]Read from MH i2c: E2 [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: E2 0E 00 [01:08:11]MH_I2C_Read... [01:08:11]Read from MH i2c: E2 0E 00 79 38 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 AD [01:08:11]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [01:08:11]wFMCommunicate OK [01:08:11]SAM_PROTO_GetShiftState done [01:08:11]FM_GetShiftState done [01:08:11]req_shift_opened done [01:08:11]requested_item shift.open_date is exist - process it [01:08:11]req_shift_open_date [01:08:11]req_shift_open_date done [01:08:11]produce_requested_data done [01:08:11]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31830,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [01:08:11]process_action_free close_receipt [01:08:11]json_value_free [01:08:11]json_value_free done [01:08:11]process_json_proto returns [01:08:11]Send response to host [01:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31830,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [01:08:11]free response buf [01:08:11]execute_script done [01:08:11]execute_script returns [01:08:11]free content buf [01:08:11]Sock 7.Close socket [01:08:11]Sock 7.Thread stoped [01:08:14]OFD Sender: No OFD packet to send [01:08:19]OFD Sender: No OFD packet to send [01:08:24]OFD Sender: No OFD packet to send [01:08:29]OFD Sender: No OFD packet to send [01:08:34]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:00]accept exits with 9 [01:09:00]New connection [01:09:00]New thread 3066965348 created [01:09:00]Thread 3066821988 joined [01:09:00]Waiting for new connection... [01:09:00] Sock 9.Parse request [01:09:00]Sock 9.Check first char [01:09:00]Sock 9.First char is OK [01:09:00]request: POST /json_proto HTTP/1.0 [01:09:00]Method: POST [01:09:00]URL: /json_proto [01:09:00]Method is POST - this is cgi request [01:09:00]url: /json_proto [01:09:00]query_string will be loaded in cgi processing [01:09:00]execute_cgi json_proto POST (null) [01:09:00]execute_cgi path=json_proto method=POST [01:09:00]POST find Content-Length [01:09:00]Host: 172.17.39.68:8080 [01:09:00]Content-Length: 897 [01:09:00]Content-Type: application/json [01:09:00] [01:09:00]POST finish read [01:09:00]Found Content-Length = 897 [01:09:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214412", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:00]execute_script... [01:09:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214412", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 295.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:00]POST & json_proto [01:09:00]process_json_proto [01:09:00]json parsed OK: [01:09:00]protocol is kg_v1.0 [01:09:00]action value=close_receipt [01:09:00]process_action close_receipt [01:09:00]cmd_close_receipt [01:09:00]MH_GetDate [01:09:00]Write to MH i2c: F0 00 00 7A 38 A1 [01:09:00]Write i2c OK [01:09:00]MH_I2C_Read... [01:09:00]Read from MH i2c: F0 [01:09:00]MH_I2C_Read... [01:09:00]Read from MH i2c: F0 09 00 [01:09:00]MH_I2C_Read... [01:09:00]Read from MH i2c: F0 09 00 7A 38 00 B3 19 97 66 D6 48 95 66 8C [01:09:00]GetLastDocTimeStamp 1721178494 [01:09:00]current date 1721178547 [01:09:00]FM_GetShiftState [01:09:00]SAM_PROTO_GetShiftState [01:09:00]wFMCommunicate request_size=4 [01:09:00]MH_SAM_APDU [01:09:00]CAPDU: 80 13 01 00 [01:09:00]Write to MH i2c: E2 08 00 7B 38 80 13 01 00 00 00 00 00 30 [01:09:00]Write i2c OK [01:09:00]MH_I2C_Read... [01:09:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:00]Read from MH i2c: E2 [01:09:00]MH_I2C_Read... [01:09:00]Read from MH i2c: E2 0E 00 [01:09:00]MH_I2C_Read... [01:09:00]Read from MH i2c: E2 0E 00 7B 38 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 AF [01:09:00]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [01:09:00]wFMCommunicate OK [01:09:00]SAM_PROTO_GetShiftState done [01:09:00]FM_GetShiftState done [01:09:00]opened in 1721174636 [01:09:00]opened+sec_in_day 1721261036 [01:09:00]quantity*price = 15500 [01:09:00]sum+1 = 15501 [01:09:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 295.00 НСП 1% : 2.61 НДС 12% : 31.33 Наличными: 295.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 5 17.07.2024 01:09 Смена: 372 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31831 ФПД: 206768815625318 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T010907&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31831&fm=206768815625318&tin=02508201610067®Number=0000000000098025&sum=29500 0 [01:09:01]StoreToDocumentArchive [01:09:01]shift 372 fd 31831 [01:09:01]save to /storage/0372/doc_00031831 [01:09:01]save last doc name /storage/0372/doc_00031831 to /storage/kkm_last_doc_name [01:09:01]save OK [01:09:01]Clear old archive folders... [01:09:01]ProcessDocumentItem done err = 0, tmpTLVsize=383 [01:09:01]tlvbuf is 014F9380 [01:09:01]SAM_PROTO_ClearQueue [01:09:01]wFMCommunicate request_size=4 [01:09:01]MH_SAM_APDU [01:09:01]CAPDU: 80 09 00 00 [01:09:01]Write to MH i2c: E2 08 00 88 38 80 09 00 00 00 00 00 00 32 [01:09:01]Write i2c OK [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: E2 [01:09:01]MH_I2C_Read... [01:09:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:09:01]Read from MH i2c: E2 03 00 [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: E2 03 00 88 38 00 90 00 34 [01:09:01]RAPDU: 90 00 [01:09:01]wFMCommunicate OK [01:09:01]SAM_PROTO_ClearQueue done [01:09:01]KKMCreateOFDPacket [01:09:01]OFDProtocolAddRootSTLVToBuf [01:09:01]FM_MakeSignedData [01:09:01]FM_MakeSignedData [01:09:01]SAM_PROTO_SignData [01:09:01]wFMCommunicate request_size=4 [01:09:01]MH_SAM_APDU [01:09:01]CAPDU: 80 0D 01 02 [01:09:01]Write to MH i2c: E2 08 00 89 38 80 0D 01 02 00 00 00 00 3A [01:09:01]Write i2c OK [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: E2 [01:09:01]MH_I2C_Read... [01:09:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:09:01]Read from MH i2c: E2 03 00 [01:09:01]MH_I2C_Read... [01:09:01]Read from MH i2c: E2 03 00 89 38 00 90 00 35 [01:09:01]RAPDU: 90 00 [01:09:01]wFMCommunicate OK [01:09:01]wFMCommunicate request_size=255 [01:09:01]MH_SAM_APDU [01:09:01]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 [01:09:01]Write to MH i2c: E2 02 01 8A 38 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 00 00 A5 [01:09:01]Write i2c OK [01:09:01]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 8A 38 00 90 00 36 [01:09:02]RAPDU: 90 00 [01:09:02]wFMCommunicate OK [01:09:02]wFMCommunicate request_size=142 [01:09:02]MH_SAM_APDU [01:09:02]CAPDU: 80 0D 02 02 89 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 B3 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 57 7C 00 00 35 04 06 00 BC 0E 1D CE 54 66 [01:09:02]Write to MH i2c: E2 91 00 8B 38 80 0D 02 02 89 00 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 B3 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 57 7C 00 00 35 04 06 00 BC 0E 1D CE 54 66 00 00 01 [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 03 00 8B 38 00 90 00 37 [01:09:02]RAPDU: 90 00 [01:09:02]wFMCommunicate OK [01:09:02]wFMCommunicate request_size=4 [01:09:02]MH_SAM_APDU [01:09:02]CAPDU: 80 0D 03 02 [01:09:02]Write to MH i2c: E2 08 00 8C 38 80 0D 03 02 00 00 00 00 3F [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 0B 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 0B 00 8C 38 00 BC 2B E8 AE 0D 41 E1 F0 90 00 DC [01:09:02]RAPDU: BC 2B E8 AE 0D 41 E1 F0 90 00 [01:09:02]wFMCommunicate OK [01:09:02]SAM_PROTO_SignData done [01:09:02]FM_MakeSignedData done [01:09:02]CreateOFDProtocolMessage [01:09:02]wFMCommunicate request_size=4 [01:09:02]MH_SAM_APDU [01:09:02]CAPDU: 80 11 00 00 [01:09:02]Write to MH i2c: E2 08 00 8D 38 80 11 00 00 00 00 00 00 3F [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:02]Read from MH i2c: E2 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 17 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: E2 17 00 8D 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 9A [01:09:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:09:02]wFMCommunicate OK [01:09:02]CreateOFDProtocolMessage done [01:09:02]OFDSenderStorePacket 31831 [01:09:02]StoreOFDPacket docnum=31831 [01:09:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 93 01 00 00 E9 D4 8B 01 4C F5 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 B3 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 57 7C 00 00 35 04 06 00 BC 0E 1D CE 54 66 BC 2B E8 AE 0D 41 E1 F0 [01:09:02]CheckFolder [01:09:02]dirname=/storage/ofd_packets [01:09:02]CheckFolder done [01:09:02]ProducePacketName [01:09:02]name=ofd_packets/00031831 [01:09:02]NVStorageSaveData ofd_packets/00031831 [01:09:02]File name is /storage/ofd_packets/00031831 [01:09:02]Write 433 bytes [01:09:02]NVStorageSaveData done [01:09:02]OFDSenderStorePacket done [01:09:02]KKMCreateOFDPacket done [01:09:02]NVStorageSaveData kkm_last_timestamp [01:09:02]File name is /storage/kkm_last_timestamp [01:09:02]Write 4 bytes [01:09:02]NVStorageSaveData done [01:09:02]ExternCall_PrintAddStr [01:09:02]wPrintStart [01:09:02]Write to MH i2c: 01 00 00 8E 38 C6 [01:09:02]Write i2c OK [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: 01 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: 01 07 00 [01:09:02]MH_I2C_Read... [01:09:02]Read from MH i2c: 01 07 00 8E 38 00 00 00 00 00 FF 0F DB [01:09:02]RasterBufferAndPrint [01:09:02]line Счет N : (3)214412 [01:09:02]line ИНН: 02508201610067 [01:09:02]line Контрольно-Кассовый Чек [01:09:02]line ПРОДАЖА [01:09:02]line Товар: 5449000000439 [01:09:02]line Напиток Кока-Кола 1,5л [01:09:02]line 1.000 * 155.00 [01:09:02]line = 155.00 [01:09:02]line НДС 12% НСП 1% [01:09:02]line > о реализуемом товаре [01:09:02]line Товар: 48747059 [01:09:02]line Сигареты Winston Legend Blue [01:09:02]line 1.000 * 140.00 [01:09:02]line = 140.00 [01:09:02]line НДС 12% НСП 1% [01:09:02]line > о реализуемом товаре [01:09:02]line ИТОГО: 295.00 [01:09:02]line НСП 1% : 2.61 [01:09:02]line НДС 12% : 31.33 [01:09:02]line Наличными: 295.00 [01:09:02]line Безнал.: 0.00 [01:09:02]line Место: АЗС № 140 "Партнер Нефть" [01:09:02]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:09:02]line СНО: Общий режим [01:09:02]line Чек 5 17.07.2024 01:09 [01:09:02]line Смена: 372 ФФД: 1.0 [01:09:02]line ЗНМ: 0300000189 [01:09:02]line РНМ: 0000000000098025 [01:09:02]line Версия ККМ: 001 [01:09:02]line ФМ: 0000000000965389 [01:09:02]line ФД: 31831 [01:09:02]line ФПД: 206768815625318 [01:09:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T010907&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31831&fm=206768815625318&tin=02508201610067®Number=0000000000098025&sum=29500 [01:09:02]line 0 [01:09:02]OFD Sender: Processing packet 31831 [packets to send 6, broken 5] [01:09:02]ProducePacketName [01:09:02]name=ofd_packets/00031831 [01:09:02]OFD Sender: To server: pG, [01:09:02]CommunicateWithHost lk.salyk.kg:30040 [01:09:02]ConnectInit lk.salyk.kg [01:09:02]written 0, free lines is 4095 [01:09:02]Connected sock=10 [01:09:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 93 01 00 00 E9 D4 8B 01 4C F5 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 3C 73 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 05 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 0C 00 00 00 00 07 04 06 00 3C 73 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 B3 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 57 7C 00 00 35 04 06 00 BC 0E 1D CE 54 66 BC 2B E8 AE 0D 41 E1 F0 [01:09:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 2D 0B 47 00 71 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 57 7C 00 00 F4 03 04 00 BF C5 96 66 B6 04 01 00 00 19 F7 2D F2 AB 37 BE AE [01:09:03]CommunicateWithHost err = 0 [01:09:03]CheckOFDResponse [01:09:03]1017 (14) - 77093643461234 [01:09:03]1041 (16) - 0000000000965389 [01:09:03]1040 (4) - 31831 [01:09:03]1012 (4) - 16.07.2024 19:10 [01:09:03]1206 (1) - 0 [01:09:03]OFD Sender: Remove packet 31831 [01:09:03]ProducePacketName [01:09:03]name=ofd_packets/00031831 [01:09:03]NVStorageDeleteData [01:09:03]Write to MH i2c: 01 00 00 BD 38 F5 [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: 01 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: 01 07 00 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: 01 07 00 BD 38 00 00 00 00 00 83 0C 8B [01:09:03]RasterBufferAndPrint [01:09:03]line [01:09:03]line [01:09:03]line [01:09:03]line [01:09:03]line [01:09:03]written 0, free lines is 3212 [01:09:03]MH_Cut [01:09:03]Write to MH i2c: D1 01 00 C4 38 01 CE [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: D1 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: D1 01 00 [01:09:03]MH_I2C_Read... [01:09:03]Read from MH i2c: D1 01 00 C4 38 00 CD [01:09:03]Write to MH i2c: 01 00 00 C5 38 FD [01:09:03]Write i2c OK [01:09:03]MH_I2C_Read... [01:09:03]OFD Sender: No OFD packet to send [01:09:04]*** Cut start [01:09:04]*** Partial cut [01:09:04]*** CUTSNS_PIN = 1 [01:09:04]*** CUTSNS_PIN = 0 [01:09:04]*** Brake cut motor [01:09:04]Read from MH i2c: 01 [01:09:04]MH_I2C_Read... [01:09:04]*** Stop cut motor [01:09:04]*** Cut end [01:09:04]Read from MH i2c: 01 07 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: 01 07 00 C5 38 00 00 00 00 00 FF 0F 12 [01:09:04]process_action close_receipt done [01:09:04]requested_data is exist [01:09:04]produce_requested_data [01:09:04]requested_item fm.sn is exist - process it [01:09:04]wFMCommunicate request_size=4 [01:09:04]MH_SAM_APDU [01:09:04]CAPDU: 80 11 00 00 [01:09:04]Write to MH i2c: E2 08 00 C6 38 80 11 00 00 00 00 00 00 78 [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:04]Read from MH i2c: E2 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 17 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 17 00 C6 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D3 [01:09:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:09:04]wFMCommunicate OK [01:09:04]requested_item fd.num is exist - process it [01:09:04]SAM_PROTO_GetFieldsCounters [01:09:04]wFMCommunicate request_size=4 [01:09:04]MH_SAM_APDU [01:09:04]CAPDU: 80 13 00 00 [01:09:04]Write to MH i2c: E2 08 00 C7 38 80 13 00 00 00 00 00 00 7B [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:04]Read from MH i2c: E2 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 62 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 62 00 C7 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 57 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [01:09:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 57 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:09:04]wFMCommunicate OK [01:09:04]SAM_PROTO_GetFieldsCounters done [01:09:04]requested_item shift.num is exist - process it [01:09:04]requested_item shift.opened is exist - process it [01:09:04]req_shift_opened [01:09:04]FM_GetShiftState [01:09:04]SAM_PROTO_GetShiftState [01:09:04]wFMCommunicate request_size=4 [01:09:04]MH_SAM_APDU [01:09:04]CAPDU: 80 13 01 00 [01:09:04]Write to MH i2c: E2 08 00 C8 38 80 13 01 00 00 00 00 00 7D [01:09:04]Write i2c OK [01:09:04]MH_I2C_Read... [01:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:04]Read from MH i2c: E2 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 0E 00 [01:09:04]MH_I2C_Read... [01:09:04]Read from MH i2c: E2 0E 00 C8 38 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 FC [01:09:04]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [01:09:04]wFMCommunicate OK [01:09:04]SAM_PROTO_GetShiftState done [01:09:04]FM_GetShiftState done [01:09:04]req_shift_opened done [01:09:04]requested_item shift.open_date is exist - process it [01:09:04]req_shift_open_date [01:09:04]req_shift_open_date done [01:09:04]produce_requested_data done [01:09:04]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31831,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [01:09:04]process_action_free close_receipt [01:09:04]json_value_free [01:09:04]json_value_free done [01:09:04]process_json_proto returns [01:09:04]Send response to host [01:09:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31831,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [01:09:04]free response buf [01:09:04]execute_script done [01:09:04]execute_script returns [01:09:04]free content buf [01:09:04]Sock 9.Close socket [01:09:04]Sock 9.Thread stoped [01:09:08]OFD Sender: No OFD packet to send [01:09:13]OFD Sender: No OFD packet to send [01:09:18]OFD Sender: No OFD packet to send [01:09:23]OFD Sender: No OFD packet to send [01:09:28]OFD Sender: No OFD packet to send [01:09:30]accept exits with 7 [01:09:30]New connection [01:09:30]New thread 3066821988 created [01:09:30]Thread 3066965348 joined [01:09:30]Waiting for new connection... [01:09:30] Sock 7.Parse request [01:09:30]Sock 7.Check first char [01:09:30]Sock 7.First char is OK [01:09:30]request: POST /json_proto HTTP/1.0 [01:09:30]Method: POST [01:09:30]URL: /json_proto [01:09:30]Method is POST - this is cgi request [01:09:30]url: /json_proto [01:09:30]query_string will be loaded in cgi processing [01:09:30]execute_cgi json_proto POST (null) [01:09:30]execute_cgi path=json_proto method=POST [01:09:30]POST find Content-Length [01:09:30]Host: 172.17.39.68:8080 [01:09:30]Content-Length: 675 [01:09:30]Content-Type: application/json [01:09:30] [01:09:30]POST finish read [01:09:30]Found Content-Length = 675 [01:09:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214413", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:30]execute_script... [01:09: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)214413", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 21.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:09:30]POST & json_proto [01:09:30]process_json_proto [01:09:30]json parsed OK: [01:09:30]protocol is kg_v1.0 [01:09:30]action value=close_receipt [01:09:30]process_action close_receipt [01:09:30]cmd_close_receipt [01:09:30]MH_GetDate [01:09:30]Write to MH i2c: F0 00 00 C9 38 F0 [01:09:30]Write i2c OK [01:09:30]MH_I2C_Read... [01:09:30]Read from MH i2c: F0 [01:09:30]MH_I2C_Read... [01:09:30]Read from MH i2c: F0 09 00 [01:09:30]MH_I2C_Read... [01:09:30]Read from MH i2c: F0 09 00 C9 38 00 D1 19 97 66 D6 48 95 66 F9 [01:09:30]GetLastDocTimeStamp 1721178547 [01:09:30]current date 1721178577 [01:09:30]FM_GetShiftState [01:09:30]SAM_PROTO_GetShiftState [01:09:30]wFMCommunicate request_size=4 [01:09:30]MH_SAM_APDU [01:09:30]CAPDU: 80 13 01 00 [01:09:30]Write to MH i2c: E2 08 00 CA 38 80 13 01 00 00 00 00 00 7F [01:09:30]Write i2c OK [01:09:30]MH_I2C_Read... [01:09:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:30]Read from MH i2c: E2 [01:09:30]MH_I2C_Read... [01:09:30]Read from MH i2c: E2 0E 00 [01:09:30]MH_I2C_Read... [01:09:30]Read from MH i2c: E2 0E 00 CA 38 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 FE [01:09:30]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [01:09:30]wFMCommunicate OK [01:09:30]SAM_PROTO_GetShiftState done [01:09:30]FM_GetShiftState done [01:09:30]opened in 1721174636 [01:09:30]opened+sec_in_day 1721261036 [01:09:30]quantity*price = 2100 [01:09:30]sum+1 = 2101 [01:09:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 21.00 НСП 1% : 0.19 НДС 12% : 2.23 Наличными: 21.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 6 17.07.2024 01:09 Смена: 372 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31832 ФПД: 48115760999289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T010937&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31832&fm=48115760999289&tin=02508201610067®Number=0000000000098025&sum=2100 0 [01:09:31]StoreToDocumentArchive [01:09:31]shift 372 fd 31832 [01:09:31]save to /storage/0372/doc_00031832 [01:09:31]save last doc name /storage/0372/doc_00031832 to /storage/kkm_last_doc_name [01:09:31]save OK [01:09:31]Clear old archive folders... [01:09:31]ProcessDocumentItem done err = 0, tmpTLVsize=287 [01:09:31]tlvbuf is 015DC750 [01:09:31]SAM_PROTO_ClearQueue [01:09:31]wFMCommunicate request_size=4 [01:09:31]MH_SAM_APDU [01:09:31]CAPDU: 80 09 00 00 [01:09:31]Write to MH i2c: E2 08 00 D7 38 80 09 00 00 00 00 00 00 81 [01:09:31]Write i2c OK [01:09:31]MH_I2C_Read... [01:09:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:09:31]Read from MH i2c: E2 [01:09:31]MH_I2C_Read... [01:09:31]Read from MH i2c: E2 03 00 [01:09:31]MH_I2C_Read... [01:09:31]Read from MH i2c: E2 03 00 D7 38 00 90 00 83 [01:09:31]RAPDU: 90 00 [01:09:31]wFMCommunicate OK [01:09:31]SAM_PROTO_ClearQueue done [01:09:31]KKMCreateOFDPacket [01:09:31]OFDProtocolAddRootSTLVToBuf [01:09:31]FM_MakeSignedData [01:09:31]FM_MakeSignedData [01:09:31]SAM_PROTO_SignData [01:09:31]wFMCommunicate request_size=4 [01:09:31]MH_SAM_APDU [01:09:31]CAPDU: 80 0D 01 02 [01:09:31]Write to MH i2c: E2 08 00 D8 38 80 0D 01 02 00 00 00 00 89 [01:09:31]Write i2c OK [01:09:31]MH_I2C_Read... [01:09:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:09:31]Read from MH i2c: E2 [01:09:31]MH_I2C_Read... [01:09:31]Read from MH i2c: E2 03 00 [01:09:31]MH_I2C_Read... [01:09:31]Read from MH i2c: E2 03 00 D8 38 00 90 00 84 [01:09:31]RAPDU: 90 00 [01:09:31]wFMCommunicate OK [01:09:31]wFMCommunicate request_size=255 [01:09:31]MH_SAM_APDU [01:09:31]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D1 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 [01:09:31]Write to MH i2c: E2 02 01 D9 38 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D1 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 00 00 21 [01:09:31]Write i2c OK [01:09:31]MH_I2C_Read... [01:09:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:31]Read from MH i2c: E2 [01:09:31]MH_I2C_Read... [01:09:31]Read from MH i2c: E2 03 00 [01:09:31]MH_I2C_Read... [01:09:31]Read from MH i2c: E2 03 00 D9 38 00 90 00 85 [01:09:31]RAPDU: 90 00 [01:09:31]wFMCommunicate OK [01:09:31]wFMCommunicate request_size=46 [01:09:31]MH_SAM_APDU [01:09:31]CAPDU: 80 0D 02 02 29 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 58 7C 00 00 35 04 06 00 2B C2 D2 D7 AB 79 [01:09:31]Write to MH i2c: E2 31 00 DA 38 80 0D 02 02 29 00 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 58 7C 00 00 35 04 06 00 2B C2 D2 D7 AB 79 00 00 A7 [01:09:31]Write i2c OK [01:09:31]MH_I2C_Read... [01:09:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:09:32]Read from MH i2c: E2 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: E2 03 00 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: E2 03 00 DA 38 00 90 00 86 [01:09:32]RAPDU: 90 00 [01:09:32]wFMCommunicate OK [01:09:32]wFMCommunicate request_size=4 [01:09:32]MH_SAM_APDU [01:09:32]CAPDU: 80 0D 03 02 [01:09:32]Write to MH i2c: E2 08 00 DB 38 80 0D 03 02 00 00 00 00 8E [01:09:32]Write i2c OK [01:09:32]MH_I2C_Read... [01:09:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:09:32]Read from MH i2c: E2 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: E2 0B 00 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: E2 0B 00 DB 38 00 9E 21 5D 3F 3B FC CB 82 90 00 6E [01:09:32]RAPDU: 9E 21 5D 3F 3B FC CB 82 90 00 [01:09:32]wFMCommunicate OK [01:09:32]SAM_PROTO_SignData done [01:09:32]FM_MakeSignedData done [01:09:32]CreateOFDProtocolMessage [01:09:32]wFMCommunicate request_size=4 [01:09:32]MH_SAM_APDU [01:09:32]CAPDU: 80 11 00 00 [01:09:32]Write to MH i2c: E2 08 00 DC 38 80 11 00 00 00 00 00 00 8E [01:09:32]Write i2c OK [01:09:32]MH_I2C_Read... [01:09:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:32]Read from MH i2c: E2 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: E2 17 00 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: E2 17 00 DC 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 E9 [01:09:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:09:32]wFMCommunicate OK [01:09:32]CreateOFDProtocolMessage done [01:09:32]OFDSenderStorePacket 31832 [01:09:32]StoreOFDPacket docnum=31832 [01:09:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 FB E8 2B 01 CB FB 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D1 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 58 7C 00 00 35 04 06 00 2B C2 D2 D7 AB 79 9E 21 5D 3F 3B FC CB 82 [01:09:32]CheckFolder [01:09:32]dirname=/storage/ofd_packets [01:09:32]CheckFolder done [01:09:32]ProducePacketName [01:09:32]name=ofd_packets/00031832 [01:09:32]NVStorageSaveData ofd_packets/00031832 [01:09:32]File name is /storage/ofd_packets/00031832 [01:09:32]Write 337 bytes [01:09:32]NVStorageSaveData done [01:09:32]OFDSenderStorePacket done [01:09:32]KKMCreateOFDPacket done [01:09:32]NVStorageSaveData kkm_last_timestamp [01:09:32]File name is /storage/kkm_last_timestamp [01:09:32]Write 4 bytes [01:09:32]NVStorageSaveData done [01:09:32]ExternCall_PrintAddStr [01:09:32]wPrintStart [01:09:32]Write to MH i2c: 01 00 00 DD 38 15 [01:09:32]Write i2c OK [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: 01 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: 01 07 00 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: 01 07 00 DD 38 00 00 00 00 00 FF 0F 2A [01:09:32]RasterBufferAndPrint [01:09:32]line Счет N : (3)214413 [01:09:32]line ИНН: 02508201610067 [01:09:32]line Контрольно-Кассовый Чек [01:09:32]line ПРОДАЖА [01:09:32]line Товар: 2000053020015 [01:09:32]line Бумажные стаканы 250мл 1шт [01:09:32]line 3.000 * 7.00 [01:09:32]line = 21.00 [01:09:32]line НДС 12% НСП 1% [01:09:32]line > о реализуемом товаре [01:09:32]line ИТОГО: 21.00 [01:09:32]line НСП 1% : 0.19 [01:09:32]line НДС 12% : 2.23 [01:09:32]line Наличными: 21.00 [01:09:32]line Безнал.: 0.00 [01:09:32]line Место: АЗС № 140 "Партнер Нефть" [01:09:32]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:09:32]line СНО: Общий режим [01:09:32]line Чек 6 17.07.2024 01:09 [01:09:32]line Смена: 372 ФФД: 1.0 [01:09:32]line ЗНМ: 0300000189 [01:09:32]line РНМ: 0000000000098025 [01:09:32]line Версия ККМ: 001 [01:09:32]line ФМ: 0000000000965389 [01:09:32]line ФД: 31832 [01:09:32]line ФПД: 48115760999289 [01:09:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T010937&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31832&fm=48115760999289&tin=02508201610067®Number=0000000000098025&sum=2100 [01:09:32]line 0 [01:09:32]OFD Sender: Processing packet 31832 [packets to send 6, broken 5] [01:09:32]ProducePacketName [01:09:32]name=ofd_packets/00031832 [01:09:32]OFD Sender: To server: pG, [01:09:32]CommunicateWithHost lk.salyk.kg:30040 [01:09:32]ConnectInit lk.salyk.kg [01:09:32]written 0, free lines is 4095 [01:09:32]Connected sock=10 [01:09:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 33 01 00 00 FB E8 2B 01 CB FB 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 08 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 00 00 00 00 00 07 04 06 00 34 08 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 D1 19 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 58 7C 00 00 35 04 06 00 2B C2 D2 D7 AB 79 9E 21 5D 3F 3B FC CB 82 [01:09:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 E9 8E 47 00 DC 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 58 7C 00 00 F4 03 04 00 DD C5 96 66 B6 04 01 00 00 3E EE DD 4F A1 65 9A 1D [01:09:32]CommunicateWithHost err = 0 [01:09:32]CheckOFDResponse [01:09:32]1017 (14) - 77093643461234 [01:09:32]1041 (16) - 0000000000965389 [01:09:32]1040 (4) - 31832 [01:09:32]1012 (4) - 16.07.2024 19:11 [01:09:32]1206 (1) - 0 [01:09:32]OFD Sender: Remove packet 31832 [01:09:32]ProducePacketName [01:09:32]name=ofd_packets/00031832 [01:09:32]NVStorageDeleteData [01:09:32]Write to MH i2c: 01 00 00 06 39 3F [01:09:32]Write i2c OK [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: 01 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: 01 07 00 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: 01 07 00 06 39 00 00 00 00 00 CE 0C 20 [01:09:32]RasterBufferAndPrint [01:09:32]line [01:09:32]line [01:09:32]line [01:09:32]line [01:09:32]line [01:09:32]written 0, free lines is 3284 [01:09:32]MH_Cut [01:09:32]Write to MH i2c: D1 01 00 0D 39 01 18 [01:09:32]Write i2c OK [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: D1 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: D1 01 00 [01:09:32]MH_I2C_Read... [01:09:32]Read from MH i2c: D1 01 00 0D 39 00 17 [01:09:32]Write to MH i2c: 01 00 00 0E 39 47 [01:09:32]Write i2c OK [01:09:32]MH_I2C_Read... [01:09:33]OFD Sender: No OFD packet to send [01:09:33]*** Cut start [01:09:33]*** Partial cut [01:09:33]*** CUTSNS_PIN = 1 [01:09:33]*** CUTSNS_PIN = 0 [01:09:33]*** Brake cut motor [01:09:34]Read from MH i2c: 01 [01:09:34]MH_I2C_Read... [01:09:34]*** Stop cut motor [01:09:34]*** Cut end [01:09:34]Read from MH i2c: 01 07 00 [01:09:34]MH_I2C_Read... [01:09:34]Read from MH i2c: 01 07 00 0E 39 00 00 00 00 00 FF 0F 5C [01:09:34]process_action close_receipt done [01:09:34]requested_data is exist [01:09:34]produce_requested_data [01:09:34]requested_item fm.sn is exist - process it [01:09:34]wFMCommunicate request_size=4 [01:09:34]MH_SAM_APDU [01:09:34]CAPDU: 80 11 00 00 [01:09:34]Write to MH i2c: E2 08 00 0F 39 80 11 00 00 00 00 00 00 C2 [01:09:34]Write i2c OK [01:09:34]MH_I2C_Read... [01:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:09:34]Read from MH i2c: E2 [01:09:34]MH_I2C_Read... [01:09:34]Read from MH i2c: E2 17 00 [01:09:34]MH_I2C_Read... [01:09:34]Read from MH i2c: E2 17 00 0F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1D [01:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:09:34]wFMCommunicate OK [01:09:34]requested_item fd.num is exist - process it [01:09:34]SAM_PROTO_GetFieldsCounters [01:09:34]wFMCommunicate request_size=4 [01:09:34]MH_SAM_APDU [01:09:34]CAPDU: 80 13 00 00 [01:09:34]Write to MH i2c: E2 08 00 10 39 80 13 00 00 00 00 00 00 C5 [01:09:34]Write i2c OK [01:09:34]MH_I2C_Read... [01:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:09:34]Read from MH i2c: E2 [01:09:34]MH_I2C_Read... [01:09:34]Read from MH i2c: E2 62 00 [01:09:34]MH_I2C_Read... [01:09:34]Read from MH i2c: E2 62 00 10 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 58 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [01:09:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 58 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:09:34]wFMCommunicate OK [01:09:34]SAM_PROTO_GetFieldsCounters done [01:09:34]requested_item shift.num is exist - process it [01:09:34]requested_item shift.opened is exist - process it [01:09:34]req_shift_opened [01:09:34]FM_GetShiftState [01:09:34]SAM_PROTO_GetShiftState [01:09:34]wFMCommunicate request_size=4 [01:09:34]MH_SAM_APDU [01:09:34]CAPDU: 80 13 01 00 [01:09:34]Write to MH i2c: E2 08 00 11 39 80 13 01 00 00 00 00 00 C7 [01:09:34]Write i2c OK [01:09:34]MH_I2C_Read... [01:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:09:34]Read from MH i2c: E2 [01:09:34]MH_I2C_Read... [01:09:34]Read from MH i2c: E2 0E 00 [01:09:34]MH_I2C_Read... [01:09:34]Read from MH i2c: E2 0E 00 11 39 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 46 [01:09:34]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [01:09:34]wFMCommunicate OK [01:09:34]SAM_PROTO_GetShiftState done [01:09:34]FM_GetShiftState done [01:09:34]req_shift_opened done [01:09:34]requested_item shift.open_date is exist - process it [01:09:34]req_shift_open_date [01:09:34]req_shift_open_date done [01:09:34]produce_requested_data done [01:09:34]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31832,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [01:09:34]process_action_free close_receipt [01:09:34]json_value_free [01:09:34]json_value_free done [01:09:34]process_json_proto returns [01:09:34]Send response to host [01:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31832,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [01:09:34]free response buf [01:09:34]execute_script done [01:09:34]execute_script returns [01:09:34]free content buf [01:09:34]Sock 7.Close socket [01:09:34]Sock 7.Thread stoped [01:09:38]OFD Sender: No OFD packet to send [01:09:43]OFD Sender: No OFD packet to send [01:09:48]OFD Sender: No OFD packet to send [01:09:53]OFD Sender: No OFD packet to send [01:09:58]OFD Sender: No OFD packet to send [01:10:03]OFD Sender: No OFD packet to send [01:10:08]OFD Sender: No OFD packet to send [01:10:13]OFD Sender: No OFD packet to send [01:10:18]OFD Sender: No OFD packet to send [01:10:23]OFD Sender: No OFD packet to send [01:10:28]OFD Sender: No OFD packet to send [01:10:33]OFD Sender: No OFD packet to send [01:10:38]OFD Sender: No OFD packet to send [01:10:43]OFD Sender: No OFD packet to send [01:10:48]OFD Sender: No OFD packet to send [01:10:53]OFD Sender: No OFD packet to send [01:10:58]OFD Sender: No OFD packet to send [01:11:03]OFD Sender: No OFD packet to send [01:11:08]OFD Sender: No OFD packet to send [01:11:13]OFD Sender: No OFD packet to send [01:11:18]OFD Sender: No OFD packet to send [01:11:23]OFD Sender: No OFD packet to send [01:11:28]OFD Sender: No OFD packet to send [01:11:33]OFD Sender: No OFD packet to send [01:11:38]OFD Sender: No OFD packet to send [01:11:43]OFD Sender: No OFD packet to send [01:11:48]OFD Sender: No OFD packet to send [01:11:53]OFD Sender: No OFD packet to send [01:11:58]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:53]OFD Sender: No OFD packet to send [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:51]accept exits with 9 [01:30:51]New connection [01:30:51]New thread 3066965348 created [01:30:51]Thread 3066821988 joined [01:30:51]Waiting for new connection... [01:30:51] Sock 9.Parse request [01:30:51]Sock 9.Check first char [01:30:51]Sock 9.First char is OK [01:30:51]request: POST /json_proto HTTP/1.0 [01:30:51]Method: POST [01:30:51]URL: /json_proto [01:30:51]Method is POST - this is cgi request [01:30:51]url: /json_proto [01:30:51]query_string will be loaded in cgi processing [01:30:51]execute_cgi json_proto POST (null) [01:30:51]execute_cgi path=json_proto method=POST [01:30:51]POST find Content-Length [01:30:51]Host: 172.17.39.68:8080 [01:30:51]Content-Length: 1699 [01:30:51]Content-Type: application/json [01:30:51] [01:30:51]POST finish read [01:30:51]Found Content-Length = 1699 [01:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214414", "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": "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 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 176.00, "quantity" : 2.000, "sum" : 352.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 822.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:51]execute_script... [01:30: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)214414", "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": "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 }]} ,{ "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 176.00, "quantity" : 2.000, "sum" : 352.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 822.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:51]POST & json_proto [01:30:51]process_json_proto [01:30:51]json parsed OK: [01:30:51]protocol is kg_v1.0 [01:30:51]action value=close_receipt [01:30:51]process_action close_receipt [01:30:51]cmd_close_receipt [01:30:51]MH_GetDate [01:30:51]Write to MH i2c: F0 00 00 12 39 3A [01:30:51]Write i2c OK [01:30:51]MH_I2C_Read... [01:30:51]Read from MH i2c: F0 [01:30:51]MH_I2C_Read... [01:30:51]Read from MH i2c: F0 09 00 [01:30:51]MH_I2C_Read... [01:30:51]Read from MH i2c: F0 09 00 12 39 00 D2 1E 97 66 D6 48 95 66 49 [01:30:51]GetLastDocTimeStamp 1721178577 [01:30:51]current date 1721179858 [01:30:51]FM_GetShiftState [01:30:51]SAM_PROTO_GetShiftState [01:30:51]wFMCommunicate request_size=4 [01:30:51]MH_SAM_APDU [01:30:51]CAPDU: 80 13 01 00 [01:30:51]Write to MH i2c: E2 08 00 13 39 80 13 01 00 00 00 00 00 C9 [01:30:51]Write i2c OK [01:30:51]MH_I2C_Read... [01:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:51]Read from MH i2c: E2 [01:30:51]MH_I2C_Read... [01:30:51]Read from MH i2c: E2 0E 00 [01:30:51]MH_I2C_Read... [01:30:51]Read from MH i2c: E2 0E 00 13 39 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 48 [01:30:51]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [01:30:51]wFMCommunicate OK [01:30:51]SAM_PROTO_GetShiftState done [01:30:51]FM_GetShiftState done [01:30:51]opened in 1721174636 [01:30:51]opened+sec_in_day 1721261036 [01:30:51]quantity*price = 5000 [01:30:51]sum+1 = 5001 [01:30:51]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000000439 Напиток Кока-Кола 1,5л 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000481514 ПИВО СВЕТЛОЕ URBAN 312 1,0 л ПЭТ 2.000 * 176.00 = 352.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 822.00 НСП 1% : 7.27 НДС 12% : 87.29 Наличными: 822.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 7 17.07.2024 01:30 Смена: 372 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31833 ФПД: 5333688725410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T013058&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31833&fm=5333688725410&tin=02508201610067®Number=0000000000098025&sum=82200 0 [01:30:52]StoreToDocumentArchive [01:30:52]shift 372 fd 31833 [01:30:52]save to /storage/0372/doc_00031833 [01:30:52]save last doc name /storage/0372/doc_00031833 to /storage/kkm_last_doc_name [01:30:52]save OK [01:30:52]Clear old archive folders... [01:30:52]ProcessDocumentItem done err = 0, tmpTLVsize=709 [01:30:52]tlvbuf is 0147E410 [01:30:52]SAM_PROTO_ClearQueue [01:30:52]wFMCommunicate request_size=4 [01:30:52]MH_SAM_APDU [01:30:52]CAPDU: 80 09 00 00 [01:30:52]Write to MH i2c: E2 08 00 20 39 80 09 00 00 00 00 00 00 CB [01:30:52]Write i2c OK [01:30:52]MH_I2C_Read... [01:30:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:52]Read from MH i2c: E2 [01:30:52]MH_I2C_Read... [01:30:52]Read from MH i2c: E2 03 00 [01:30:52]MH_I2C_Read... [01:30:52]Read from MH i2c: E2 03 00 20 39 00 90 00 CD [01:30:52]RAPDU: 90 00 [01:30:52]wFMCommunicate OK [01:30:52]SAM_PROTO_ClearQueue done [01:30:52]KKMCreateOFDPacket [01:30:52]OFDProtocolAddRootSTLVToBuf [01:30:52]FM_MakeSignedData [01:30:52]FM_MakeSignedData [01:30:52]SAM_PROTO_SignData [01:30:52]wFMCommunicate request_size=4 [01:30:52]MH_SAM_APDU [01:30:52]CAPDU: 80 0D 01 02 [01:30:52]Write to MH i2c: E2 08 00 21 39 80 0D 01 02 00 00 00 00 D3 [01:30:52]Write i2c OK [01:30:52]MH_I2C_Read... [01:30:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:52]Read from MH i2c: E2 [01:30:52]MH_I2C_Read... [01:30:52]Read from MH i2c: E2 03 00 [01:30:52]MH_I2C_Read... [01:30:52]Read from MH i2c: E2 03 00 21 39 00 90 00 CE [01:30:52]RAPDU: 90 00 [01:30:52]wFMCommunicate OK [01:30:52]wFMCommunicate request_size=255 [01:30:52]MH_SAM_APDU [01:30:52]CAPDU: 80 0D 02 02 FA 03 00 C5 02 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 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 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA [01:30:52]Write to MH i2c: E2 02 01 22 39 80 0D 02 02 FA 00 03 00 C5 02 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 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 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 00 00 38 [01:30:52]Write i2c OK [01:30:52]MH_I2C_Read... [01:30:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:52]Read from MH i2c: E2 [01:30:52]MH_I2C_Read... [01:30:52]Read from MH i2c: E2 03 00 [01:30:52]MH_I2C_Read... [01:30:52]Read from MH i2c: E2 03 00 22 39 00 90 00 CF [01:30:52]RAPDU: 90 00 [01:30:52]wFMCommunicate OK [01:30:52]wFMCommunicate request_size=255 [01:30:52]MH_SAM_APDU [01:30:52]CAPDU: 80 0D 02 02 FA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 [01:30:52]Write to MH i2c: E2 02 01 23 39 80 0D 02 02 FA 00 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 00 00 C6 [01:30:53]Write i2c OK [01:30:53]MH_I2C_Read... [01:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:53]Read from MH i2c: E2 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: E2 03 00 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: E2 03 00 23 39 00 90 00 D0 [01:30:53]RAPDU: 90 00 [01:30:53]wFMCommunicate OK [01:30:53]wFMCommunicate request_size=218 [01:30:53]MH_SAM_APDU [01:30:53]CAPDU: 80 0D 02 02 D5 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 80 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 22 00 00 00 00 07 04 06 00 18 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D2 1E 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 59 7C 00 00 35 04 06 00 04 D9 D8 9F 2F A2 [01:30:53]Write to MH i2c: E2 DD 00 24 39 80 0D 02 02 D5 00 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 80 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 22 00 00 00 00 07 04 06 00 18 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D2 1E 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 59 7C 00 00 35 04 06 00 04 D9 D8 9F 2F A2 00 00 9A [01:30:53]Write i2c OK [01:30:53]MH_I2C_Read... [01:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:53]Read from MH i2c: E2 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: E2 03 00 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: E2 03 00 24 39 00 90 00 D1 [01:30:53]RAPDU: 90 00 [01:30:53]wFMCommunicate OK [01:30:53]wFMCommunicate request_size=4 [01:30:53]MH_SAM_APDU [01:30:53]CAPDU: 80 0D 03 02 [01:30:53]Write to MH i2c: E2 08 00 25 39 80 0D 03 02 00 00 00 00 D9 [01:30:53]Write i2c OK [01:30:53]MH_I2C_Read... [01:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:53]Read from MH i2c: E2 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: E2 0B 00 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: E2 0B 00 25 39 00 90 58 58 02 0B FB D5 3C 90 00 33 [01:30:53]RAPDU: 90 58 58 02 0B FB D5 3C 90 00 [01:30:53]wFMCommunicate OK [01:30:53]SAM_PROTO_SignData done [01:30:53]FM_MakeSignedData done [01:30:53]CreateOFDProtocolMessage [01:30:53]wFMCommunicate request_size=4 [01:30:53]MH_SAM_APDU [01:30:53]CAPDU: 80 11 00 00 [01:30:53]Write to MH i2c: E2 08 00 26 39 80 11 00 00 00 00 00 00 D9 [01:30:53]Write i2c OK [01:30:53]MH_I2C_Read... [01:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:53]Read from MH i2c: E2 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: E2 17 00 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: E2 17 00 26 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 34 [01:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:30:53]wFMCommunicate OK [01:30:53]CreateOFDProtocolMessage done [01:30:53]OFDSenderStorePacket 31833 [01:30:53]StoreOFDPacket docnum=31833 [01:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 D9 02 00 00 D4 53 D1 02 4C E9 5A 03 01 00 03 00 C5 02 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 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 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 80 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 22 00 00 00 00 07 04 06 00 18 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D2 1E 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 59 7C 00 00 35 04 06 00 04 D9 D8 9F 2F A2 90 58 58 02 0B FB D5 3C [01:30:53]CheckFolder [01:30:53]dirname=/storage/ofd_packets [01:30:53]CheckFolder done [01:30:53]ProducePacketName [01:30:53]name=ofd_packets/00031833 [01:30:53]NVStorageSaveData ofd_packets/00031833 [01:30:53]File name is /storage/ofd_packets/00031833 [01:30:53]Write 759 bytes [01:30:53]NVStorageSaveData done [01:30:53]OFDSenderStorePacket done [01:30:53]KKMCreateOFDPacket done [01:30:53]NVStorageSaveData kkm_last_timestamp [01:30:53]File name is /storage/kkm_last_timestamp [01:30:53]Write 4 bytes [01:30:53]NVStorageSaveData done [01:30:53]ExternCall_PrintAddStr [01:30:53]wPrintStart [01:30:53]Write to MH i2c: 01 00 00 27 39 60 [01:30:53]Write i2c OK [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: 01 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: 01 07 00 [01:30:53]MH_I2C_Read... [01:30:53]Read from MH i2c: 01 07 00 27 39 00 00 00 00 00 FF 0F 75 [01:30:53]RasterBufferAndPrint [01:30:53]line Счет N : (3)214414 [01:30:53]line ИНН: 02508201610067 [01:30:53]line Контрольно-Кассовый Чек [01:30:53]line ПРОДАЖА [01:30:53]line Товар: 4700000160358 [01:30:53]line Вода Легенда 1л [01:30:53]line 1.000 * 50.00 [01:30:53]line = 50.00 [01:30:53]line НДС 12% НСП 1% [01:30:53]line > о реализуемом товаре [01:30:53]line Товар: 48743570 [01:30:53]line Сигареты Winston XStyle Blue [01:30:53]line 1.000 * 140.00 [01:30:53]line = 140.00 [01:30:53]line НДС 12% НСП 1% [01:30:53]line > о реализуемом товаре [01:30:53]line Товар: 5449000000439 [01:30:53]line Напиток Кока-Кола 1,5л [01:30:53]line 1.000 * 155.00 [01:30:53]line = 155.00 [01:30:53]line НДС 12% НСП 1% [01:30:53]line > о реализуемом товаре [01:30:53]line Товар: 5449000054227 [01:30:53]line Напиток Кока-Кола 1л [01:30:53]line 1.000 * 125.00 [01:30:53]line = 125.00 [01:30:53]line НДС 12% НСП 1% [01:30:53]line > о реализуемом товаре [01:30:53]line Товар: 4700000481514 [01:30:53]line ПИВО СВЕТЛОЕ URBAN 312 1,0 л ПЭТ [01:30:53]line 2.000 * 176.00 [01:30:53]line = 352.00 [01:30:53]line НДС 12% НСП 1% [01:30:53]line > о реализуемом товаре [01:30:53]line ИТОГО: 822.00 [01:30:53]line НСП 1% : 7.27 [01:30:53]line НДС 12% : 87.29 [01:30:53]line Наличными: 822.00 [01:30:53]line Безнал.: 0.00 [01:30:53]line Место: АЗС № 140 "Партнер Нефть" [01:30:53]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:30:53]line СНО: Общий режим [01:30:53]line Чек 7 17.07.2024 01:30 [01:30:53]line Смена: 372 ФФД: 1.0 [01:30:53]line ЗНМ: 0300000189 [01:30:53]line РНМ: 0000000000098025 [01:30:53]line Версия ККМ: 001 [01:30:53]line ФМ: 0000000000965389 [01:30:53]line ФД: 31833 [01:30:53]line ФПД: 5333688725410 [01:30:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T013058&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31833&fm=5333688725410&tin=02508201610067®Number=0000000000098025&sum=82200 [01:30:53]line 0 [01:30:53]written 0, free lines is 4095 [01:30:53]OFD Sender: Processing packet 31833 [packets to send 6, broken 5] [01:30:53]ProducePacketName [01:30:53]name=ofd_packets/00031833 [01:30:53]OFD Sender: To server: pG, [01:30:53]CommunicateWithHost lk.salyk.kg:30040 [01:30:53]ConnectInit lk.salyk.kg [01:30:54]Connected sock=10 [01:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 D9 02 00 00 D4 53 D1 02 4C E9 5A 03 01 00 03 00 C5 02 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 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 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C0 44 00 00 00 00 13 04 06 00 80 89 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 41 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 22 00 00 00 00 07 04 06 00 18 41 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 D2 1E 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 59 7C 00 00 35 04 06 00 04 D9 D8 9F 2F A2 90 58 58 02 0B FB D5 3C [01:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 B5 56 47 00 28 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 35 33 38 39 10 04 04 00 59 7C 00 00 F4 03 04 00 DE CA 96 66 B6 04 01 00 00 FF 4C 13 A5 96 C3 4D 16 [01:30:54]CommunicateWithHost err = 0 [01:30:54]CheckOFDResponse [01:30:54]1017 (14) - 77093643461234 [01:30:54]1041 (16) - 0000000000965389 [01:30:54]1040 (4) - 31833 [01:30:54]1012 (4) - 16.07.2024 19:32 [01:30:54]1206 (1) - 0 [01:30:54]OFD Sender: Remove packet 31833 [01:30:54]ProducePacketName [01:30:54]name=ofd_packets/00031833 [01:30:54]NVStorageDeleteData [01:30:54]Write to MH i2c: 01 00 00 68 39 A1 [01:30:54]Write i2c OK [01:30:54]MH_I2C_Read... [01:30:54]Read from MH i2c: 01 [01:30:54]MH_I2C_Read... [01:30:54]Read from MH i2c: 01 07 00 [01:30:54]MH_I2C_Read... [01:30:54]Read from MH i2c: 01 07 00 68 39 00 00 00 00 00 84 0B 37 [01:30:54]RasterBufferAndPrint [01:30:54]line [01:30:54]line [01:30:54]line [01:30:54]line [01:30:54]line [01:30:54]written 0, free lines is 2958 [01:30:54]MH_Cut [01:30:54]Write to MH i2c: D1 01 00 6F 39 01 7A [01:30:54]Write i2c OK [01:30:54]MH_I2C_Read... [01:30:54]Read from MH i2c: D1 [01:30:54]MH_I2C_Read... [01:30:54]Read from MH i2c: D1 01 00 [01:30:54]MH_I2C_Read... [01:30:54]Read from MH i2c: D1 01 00 6F 39 00 79 [01:30:54]Write to MH i2c: 01 00 00 70 39 A9 [01:30:54]Write i2c OK [01:30:54]MH_I2C_Read... [01:30:54]OFD Sender: No OFD packet to send [01:30:55]*** Cut start [01:30:55]*** Partial cut [01:30:55]*** CUTSNS_PIN = 1 [01:30:55]*** CUTSNS_PIN = 0 [01:30:55]*** Brake cut motor [01:30:56]Read from MH i2c: 01 [01:30:56]MH_I2C_Read... [01:30:56]*** Stop cut motor [01:30:56]*** Cut end [01:30:56]Read from MH i2c: 01 07 00 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: 01 07 00 70 39 00 00 00 00 00 FF 0F BE [01:30:56]process_action close_receipt done [01:30:56]requested_data is exist [01:30:56]produce_requested_data [01:30:56]requested_item fm.sn is exist - process it [01:30:56]wFMCommunicate request_size=4 [01:30:56]MH_SAM_APDU [01:30:56]CAPDU: 80 11 00 00 [01:30:56]Write to MH i2c: E2 08 00 71 39 80 11 00 00 00 00 00 00 24 [01:30:56]Write i2c OK [01:30:56]MH_I2C_Read... [01:30:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:56]Read from MH i2c: E2 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: E2 17 00 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: E2 17 00 71 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 7F [01:30:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:30:56]wFMCommunicate OK [01:30:56]requested_item fd.num is exist - process it [01:30:56]SAM_PROTO_GetFieldsCounters [01:30:56]wFMCommunicate request_size=4 [01:30:56]MH_SAM_APDU [01:30:56]CAPDU: 80 13 00 00 [01:30:56]Write to MH i2c: E2 08 00 72 39 80 13 00 00 00 00 00 00 27 [01:30:56]Write i2c OK [01:30:56]MH_I2C_Read... [01:30:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:56]Read from MH i2c: E2 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: E2 62 00 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: E2 62 00 72 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 59 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [01:30: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 59 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:56]wFMCommunicate OK [01:30:56]SAM_PROTO_GetFieldsCounters done [01:30:56]requested_item shift.num is exist - process it [01:30:56]requested_item shift.opened is exist - process it [01:30:56]req_shift_opened [01:30:56]FM_GetShiftState [01:30:56]SAM_PROTO_GetShiftState [01:30:56]wFMCommunicate request_size=4 [01:30:56]MH_SAM_APDU [01:30:56]CAPDU: 80 13 01 00 [01:30:56]Write to MH i2c: E2 08 00 73 39 80 13 01 00 00 00 00 00 29 [01:30:56]Write i2c OK [01:30:56]MH_I2C_Read... [01:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:56]Read from MH i2c: E2 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: E2 0E 00 [01:30:56]MH_I2C_Read... [01:30:56]Read from MH i2c: E2 0E 00 73 39 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 A8 [01:30:56]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [01:30:56]wFMCommunicate OK [01:30:56]SAM_PROTO_GetShiftState done [01:30:56]FM_GetShiftState done [01:30:56]req_shift_opened done [01:30:56]requested_item shift.open_date is exist - process it [01:30:56]req_shift_open_date [01:30:56]req_shift_open_date done [01:30:56]produce_requested_data done [01:30:56]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31833,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [01:30:56]process_action_free close_receipt [01:30:56]json_value_free [01:30:56]json_value_free done [01:30:56]process_json_proto returns [01:30:56]Send response to host [01:30:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31833,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [01:30:56]free response buf [01:30:56]execute_script done [01:30:56]execute_script returns [01:30:56]free content buf [01:30:56]Sock 9.Close socket [01:30:56]Sock 9.Thread stoped [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:14]OFD Sender: No OFD packet to send [01:33:19]OFD Sender: No OFD packet to send [01:33:24]OFD Sender: No OFD packet to send [01:33:29]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:01]accept exits with 7 [01:34:01]New connection [01:34:01]New thread 3066821988 created [01:34:01]Thread 3066965348 joined [01:34:01]Waiting for new connection... [01:34:01] Sock 7.Parse request [01:34:01]Sock 7.Check first char [01:34:01]Sock 7.First char is OK [01:34:01]request: POST /json_proto HTTP/1.0 [01:34:01]Method: POST [01:34:01]URL: /json_proto [01:34:01]Method is POST - this is cgi request [01:34:01]url: /json_proto [01:34:01]query_string will be loaded in cgi processing [01:34:01]execute_cgi json_proto POST (null) [01:34:01]execute_cgi path=json_proto method=POST [01:34:01]POST find Content-Length [01:34:01]Host: 172.17.39.68:8080 [01:34:01]Content-Length: 1105 [01:34:01]Content-Type: application/json [01:34:01] [01:34:01]POST finish read [01:34:01]Found Content-Length = 1105 [01:34:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214415", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/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" : 694.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:01]execute_script... [01:34:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214415", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214638", "name": "\u0420/\u0436 mentos p.white \u043D\u0435\u0436\u043D\u0430\u044F \u043C\u044F\u0442\u0430 16/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" : 694.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:01]POST & json_proto [01:34:01]process_json_proto [01:34:01]json parsed OK: [01:34:01]protocol is kg_v1.0 [01:34:01]action value=close_receipt [01:34:01]process_action close_receipt [01:34:01]cmd_close_receipt [01:34:01]MH_GetDate [01:34:01]Write to MH i2c: F0 00 00 74 39 9C [01:34:01]Write i2c OK [01:34:01]MH_I2C_Read... [01:34:01]Read from MH i2c: F0 [01:34:01]MH_I2C_Read... [01:34:01]Read from MH i2c: F0 09 00 [01:34:01]MH_I2C_Read... [01:34:01]Read from MH i2c: F0 09 00 74 39 00 91 1F 97 66 D6 48 95 66 6B [01:34:01]GetLastDocTimeStamp 1721179858 [01:34:01]current date 1721180049 [01:34:01]FM_GetShiftState [01:34:01]SAM_PROTO_GetShiftState [01:34:01]wFMCommunicate request_size=4 [01:34:01]MH_SAM_APDU [01:34:01]CAPDU: 80 13 01 00 [01:34:01]Write to MH i2c: E2 08 00 75 39 80 13 01 00 00 00 00 00 2B [01:34:01]Write i2c OK [01:34:01]MH_I2C_Read... [01:34:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:01]Read from MH i2c: E2 [01:34:01]MH_I2C_Read... [01:34:01]Read from MH i2c: E2 0E 00 [01:34:01]MH_I2C_Read... [01:34:01]Read from MH i2c: E2 0E 00 75 39 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 AA [01:34:01]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [01:34:01]wFMCommunicate OK [01:34:01]SAM_PROTO_GetShiftState done [01:34:01]FM_GetShiftState done [01:34:01]opened in 1721174636 [01:34:01]opened+sec_in_day 1721261036 [01:34:01]quantity*price = 51000 [01:34:01]sum+1 = 51001 [01:34:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46214638 Р/ж mentos p.white нежная мята 16/15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 694.00 НСП 1% : 6.13 НДС 12% : 73.70 Наличными: 694.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 8 17.07.2024 01:34 Смена: 372 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31834 ФПД: 104712284659918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T013409&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31834&fm=104712284659918&tin=02508201610067®Number=0000000000098025&sum=69400 0 [01:34:02]StoreToDocumentArchive [01:34:02]shift 372 fd 31834 [01:34:02]save to /storage/0372/doc_00031834 [01:34:02]save last doc name /storage/0372/doc_00031834 to /storage/kkm_last_doc_name [01:34:02]save OK [01:34:02]Clear old archive folders... [01:34:02]ProcessDocumentItem done err = 0, tmpTLVsize=483 [01:34:02]tlvbuf is B6DAB180 [01:34:02]SAM_PROTO_ClearQueue [01:34:02]wFMCommunicate request_size=4 [01:34:02]MH_SAM_APDU [01:34:02]CAPDU: 80 09 00 00 [01:34:02]Write to MH i2c: E2 08 00 82 39 80 09 00 00 00 00 00 00 2D [01:34:02]Write i2c OK [01:34:02]MH_I2C_Read... [01:34:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:02]Read from MH i2c: E2 [01:34:02]MH_I2C_Read... [01:34:02]Read from MH i2c: E2 03 00 [01:34:02]MH_I2C_Read... [01:34:02]Read from MH i2c: E2 03 00 82 39 00 90 00 2F [01:34:02]RAPDU: 90 00 [01:34:02]wFMCommunicate OK [01:34:02]SAM_PROTO_ClearQueue done [01:34:02]KKMCreateOFDPacket [01:34:02]OFDProtocolAddRootSTLVToBuf [01:34:02]FM_MakeSignedData [01:34:02]FM_MakeSignedData [01:34:02]SAM_PROTO_SignData [01:34:02]wFMCommunicate request_size=4 [01:34:02]MH_SAM_APDU [01:34:02]CAPDU: 80 0D 01 02 [01:34:02]Write to MH i2c: E2 08 00 83 39 80 0D 01 02 00 00 00 00 35 [01:34:02]Write i2c OK [01:34:02]MH_I2C_Read... [01:34:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:03]Read from MH i2c: E2 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: E2 03 00 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: E2 03 00 83 39 00 90 00 30 [01:34:03]RAPDU: 90 00 [01:34:03]wFMCommunicate OK [01:34:03]wFMCommunicate request_size=255 [01:34:03]MH_SAM_APDU [01:34:03]CAPDU: 80 0D 02 02 FA 03 00 E3 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 [01:34:03]Write to MH i2c: E2 02 01 84 39 80 0D 02 02 FA 00 03 00 E3 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 00 00 1F [01:34:03]Write i2c OK [01:34:03]MH_I2C_Read... [01:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:03]Read from MH i2c: E2 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: E2 03 00 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: E2 03 00 84 39 00 90 00 31 [01:34:03]RAPDU: 90 00 [01:34:03]wFMCommunicate OK [01:34:03]wFMCommunicate request_size=242 [01:34:03]MH_SAM_APDU [01:34:03]CAPDU: 80 0D 02 02 ED D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 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 18 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 1C 00 00 00 00 07 04 06 00 18 0F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 91 1F 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5A 7C 00 00 35 04 06 00 5F 3C 3A 87 E0 CE [01:34:03]Write to MH i2c: E2 F5 00 85 39 80 0D 02 02 ED 00 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 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 18 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 1C 00 00 00 00 07 04 06 00 18 0F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 91 1F 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5A 7C 00 00 35 04 06 00 5F 3C 3A 87 E0 CE 00 00 C6 [01:34:03]Write i2c OK [01:34:03]MH_I2C_Read... [01:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:03]Read from MH i2c: E2 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: E2 03 00 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: E2 03 00 85 39 00 90 00 32 [01:34:03]RAPDU: 90 00 [01:34:03]wFMCommunicate OK [01:34:03]wFMCommunicate request_size=4 [01:34:03]MH_SAM_APDU [01:34:03]CAPDU: 80 0D 03 02 [01:34:03]Write to MH i2c: E2 08 00 86 39 80 0D 03 02 00 00 00 00 3A [01:34:03]Write i2c OK [01:34:03]MH_I2C_Read... [01:34:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:03]Read from MH i2c: E2 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: E2 0B 00 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: E2 0B 00 86 39 00 1C 1D BF 72 4C C1 92 4D 90 00 91 [01:34:03]RAPDU: 1C 1D BF 72 4C C1 92 4D 90 00 [01:34:03]wFMCommunicate OK [01:34:03]SAM_PROTO_SignData done [01:34:03]FM_MakeSignedData done [01:34:03]CreateOFDProtocolMessage [01:34:03]wFMCommunicate request_size=4 [01:34:03]MH_SAM_APDU [01:34:03]CAPDU: 80 11 00 00 [01:34:03]Write to MH i2c: E2 08 00 87 39 80 11 00 00 00 00 00 00 3A [01:34:03]Write i2c OK [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: E2 [01:34:03]MH_I2C_Read... [01:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:03]Read from MH i2c: E2 17 00 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: E2 17 00 87 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 95 [01:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:34:03]wFMCommunicate OK [01:34:03]CreateOFDProtocolMessage done [01:34:03]OFDSenderStorePacket 31834 [01:34:03]StoreOFDPacket docnum=31834 [01:34:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 F7 01 00 00 5E 9E EF 01 B3 C0 5A 03 01 00 03 00 E3 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 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 18 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 1C 00 00 00 00 07 04 06 00 18 0F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 91 1F 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5A 7C 00 00 35 04 06 00 5F 3C 3A 87 E0 CE 1C 1D BF 72 4C C1 92 4D [01:34:03]CheckFolder [01:34:03]dirname=/storage/ofd_packets [01:34:03]CheckFolder done [01:34:03]ProducePacketName [01:34:03]name=ofd_packets/00031834 [01:34:03]NVStorageSaveData ofd_packets/00031834 [01:34:03]File name is /storage/ofd_packets/00031834 [01:34:03]Write 533 bytes [01:34:03]NVStorageSaveData done [01:34:03]OFDSenderStorePacket done [01:34:03]KKMCreateOFDPacket done [01:34:03]NVStorageSaveData kkm_last_timestamp [01:34:03]File name is /storage/kkm_last_timestamp [01:34:03]Write 4 bytes [01:34:03]NVStorageSaveData done [01:34:03]ExternCall_PrintAddStr [01:34:03]wPrintStart [01:34:03]Write to MH i2c: 01 00 00 88 39 C1 [01:34:03]Write i2c OK [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: 01 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: 01 07 00 [01:34:03]MH_I2C_Read... [01:34:03]Read from MH i2c: 01 07 00 88 39 00 00 00 00 00 FF 0F D6 [01:34:03]RasterBufferAndPrint [01:34:03]line Счет N : (3)214415 [01:34:03]line ИНН: 02508201610067 [01:34:03]line Контрольно-Кассовый Чек [01:34:03]line ПРОДАЖА [01:34:03]line Товар: 4700002083327 [01:34:03]line Водка Level 0,5 [01:34:03]line 1.000 * 510.00 [01:34:03]line = 510.00 [01:34:03]line НДС 12% НСП 1% [01:34:03]line > о реализуемом товаре [01:34:03]line Товар: 48745000 [01:34:03]line Сигареты Winston Purple Mix [01:34:03]line 1.000 * 135.00 [01:34:03]line = 135.00 [01:34:03]line НДС 12% НСП 1% [01:34:03]line > о реализуемом товаре [01:34:03]line Товар: 46214638 [01:34:03]line Р/ж mentos p.white нежная мята 16/15,5г [01:34:03]line 1.000 * 49.00 [01:34:03]line = 49.00 [01:34:03]line НДС 12% НСП 1% [01:34:03]line > о реализуемом товаре [01:34:03]line ИТОГО: 694.00 [01:34:03]line НСП 1% : 6.13 [01:34:03]line НДС 12% : 73.70 [01:34:03]line Наличными: 694.00 [01:34:03]line Безнал.: 0.00 [01:34:03]line Место: АЗС № 140 "Партнер Нефть" [01:34:03]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [01:34:03]line СНО: Общий режим [01:34:03]line Чек 8 17.07.2024 01:34 [01:34:03]line Смена: 372 ФФД: 1.0 [01:34:03]line ЗНМ: 0300000189 [01:34:03]line РНМ: 0000000000098025 [01:34:03]line Версия ККМ: 001 [01:34:03]line ФМ: 0000000000965389 [01:34:03]line ФД: 31834 [01:34:03]line ФПД: 104712284659918 [01:34:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T013409&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31834&fm=104712284659918&tin=02508201610067®Number=0000000000098025&sum=69400 [01:34:03]line 0 [01:34:03]written 0, free lines is 4095 [01:34:03]OFD Sender: Processing packet 31834 [packets to send 6, broken 5] [01:34:03]ProducePacketName [01:34:03]name=ofd_packets/00031834 [01:34:03]OFD Sender: To server: pG, [01:34:03]CommunicateWithHost lk.salyk.kg:30040 [01:34:03]ConnectInit lk.salyk.kg [01:34:04]Connected sock=10 [01:34:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 F7 01 00 00 5E 9E EF 01 B3 C0 5A 03 01 00 03 00 E3 01 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 23 04 73 00 8A 04 08 00 34 36 32 31 34 36 33 38 06 04 34 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 2E 77 68 69 74 65 20 D0 BD D0 B5 D0 B6 D0 BD D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 31 36 2F 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 18 0F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 1C 00 00 00 00 07 04 06 00 18 0F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 91 1F 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5A 7C 00 00 35 04 06 00 5F 3C 3A 87 E0 CE 1C 1D BF 72 4C C1 92 4D [01:34:04]Write to MH i2c: 01 00 00 BD 39 F6 [01:34:04]Write i2c OK [01:34:04]MH_I2C_Read... [01:34:04]Read from MH i2c: 01 [01:34:04]MH_I2C_Read... [01:34:04]Read from MH i2c: 01 07 00 [01:34:04]MH_I2C_Read... [01:34:04]Read from MH i2c: 01 07 00 BD 39 00 00 00 00 00 3B 0C 44 [01:34:04]RasterBufferAndPrint [01:34:04]line [01:34:04]line [01:34:04]line [01:34:04]line [01:34:04]line [01:34:04]written 0, free lines is 3137 [01:34:04]MH_Cut [01:34:04]Write to MH i2c: D1 01 00 C4 39 01 CF [01:34:04]Write i2c OK [01:34:04]MH_I2C_Read... [01:34:04]Read from MH i2c: D1 [01:34:04]MH_I2C_Read... [01:34:04]Read from MH i2c: D1 01 00 [01:34:04]MH_I2C_Read... [01:34:04]Read from MH i2c: D1 01 00 C4 39 00 CE [01:34:04]Write to MH i2c: 01 00 00 C5 39 FE [01:34:04]Write i2c OK [01:34:04]MH_I2C_Read... [01:34:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 10 E7 47 00 5B 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 35 33 38 39 10 04 04 00 5A 7C 00 00 F4 03 04 00 9D CB 96 66 B6 04 01 00 00 07 82 6F 1D D8 69 E0 67 [01:34:04]CommunicateWithHost err = 0 [01:34:04]CheckOFDResponse [01:34:04]1017 (14) - 77093643461234 [01:34:04]1041 (16) - 0000000000965389 [01:34:04]1040 (4) - 31834 [01:34:04]1012 (4) - 16.07.2024 19:35 [01:34:04]1206 (1) - 0 [01:34:04]OFD Sender: Remove packet 31834 [01:34:04]ProducePacketName [01:34:04]name=ofd_packets/00031834 [01:34:04]NVStorageDeleteData [01:34:05]OFD Sender: No OFD packet to send [01:34:05]*** Cut start [01:34:05]*** Partial cut [01:34:05]*** CUTSNS_PIN = 1 [01:34:05]*** CUTSNS_PIN = 0 [01:34:05]*** Brake cut motor [01:34:06]Read from MH i2c: 01 [01:34:06]MH_I2C_Read... [01:34:06]*** Stop cut motor [01:34:06]*** Cut end [01:34:06]Read from MH i2c: 01 07 00 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: 01 07 00 C5 39 00 00 00 00 00 FF 0F 13 [01:34:06]process_action close_receipt done [01:34:06]requested_data is exist [01:34:06]produce_requested_data [01:34:06]requested_item fm.sn is exist - process it [01:34:06]wFMCommunicate request_size=4 [01:34:06]MH_SAM_APDU [01:34:06]CAPDU: 80 11 00 00 [01:34:06]Write to MH i2c: E2 08 00 C6 39 80 11 00 00 00 00 00 00 79 [01:34:06]Write i2c OK [01:34:06]MH_I2C_Read... [01:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:06]Read from MH i2c: E2 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 17 00 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 17 00 C6 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 D4 [01:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [01:34:06]wFMCommunicate OK [01:34:06]requested_item fd.num is exist - process it [01:34:06]SAM_PROTO_GetFieldsCounters [01:34:06]wFMCommunicate request_size=4 [01:34:06]MH_SAM_APDU [01:34:06]CAPDU: 80 13 00 00 [01:34:06]Write to MH i2c: E2 08 00 C7 39 80 13 00 00 00 00 00 00 7C [01:34:06]Write i2c OK [01:34:06]MH_I2C_Read... [01:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:06]Read from MH i2c: E2 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 62 00 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 62 00 C7 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5A 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [01:34:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5A 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:06]wFMCommunicate OK [01:34:06]SAM_PROTO_GetFieldsCounters done [01:34:06]requested_item shift.num is exist - process it [01:34:06]requested_item shift.opened is exist - process it [01:34:06]req_shift_opened [01:34:06]FM_GetShiftState [01:34:06]SAM_PROTO_GetShiftState [01:34:06]wFMCommunicate request_size=4 [01:34:06]MH_SAM_APDU [01:34:06]CAPDU: 80 13 01 00 [01:34:06]Write to MH i2c: E2 08 00 C8 39 80 13 01 00 00 00 00 00 7E [01:34:06]Write i2c OK [01:34:06]MH_I2C_Read... [01:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:06]Read from MH i2c: E2 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 0E 00 [01:34:06]MH_I2C_Read... [01:34:06]Read from MH i2c: E2 0E 00 C8 39 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 FD [01:34:06]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [01:34:06]wFMCommunicate OK [01:34:06]SAM_PROTO_GetShiftState done [01:34:06]FM_GetShiftState done [01:34:06]req_shift_opened done [01:34:06]requested_item shift.open_date is exist - process it [01:34:06]req_shift_open_date [01:34:06]req_shift_open_date done [01:34:06]produce_requested_data done [01:34:06]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31834,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [01:34:06]process_action_free close_receipt [01:34:06]json_value_free [01:34:06]json_value_free done [01:34:06]process_json_proto returns [01:34:06]Send response to host [01:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31834,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [01:34:06]free response buf [01:34:06]execute_script done [01:34:06]execute_script returns [01:34:06]free content buf [01:34:06]Sock 7.Close socket [01:34:06]Sock 7.Thread stoped [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:50]OFD Sender: No OFD packet to send [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:15]OFD Sender: No OFD packet to send [01:39:20]OFD Sender: No OFD packet to send [01:39:25]OFD Sender: No OFD packet to send [01:39:30]OFD Sender: No OFD packet to send [01:39:35]OFD Sender: No OFD packet to send [01:39:40]OFD Sender: No OFD packet to send [01:39:45]OFD Sender: No OFD packet to send [01:39:50]OFD Sender: No OFD packet to send [01:39:55]OFD Sender: No OFD packet to send [01:40:00]OFD Sender: No OFD packet to send [01:40:05]OFD Sender: No OFD packet to send [01:40:10]OFD Sender: No OFD packet to send [01:40:15]OFD Sender: No OFD packet to send [01:40:20]OFD Sender: No OFD packet to send [01:40:25]OFD Sender: No OFD packet to send [01:40:30]OFD Sender: No OFD packet to send [01:40:35]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:30]OFD Sender: No OFD packet to send [01:44:35]OFD Sender: No OFD packet to send [01:44:40]OFD Sender: No OFD packet to send [01:44:45]OFD Sender: No OFD packet to send [01:44:50]OFD Sender: No OFD packet to send [01:44:55]OFD Sender: No OFD packet to send [01:45:00]OFD Sender: No OFD packet to send [01:45:05]OFD Sender: No OFD packet to send [01:45:10]OFD Sender: No OFD packet to send [01:45:15]OFD Sender: No OFD packet to send [01:45:20]OFD Sender: No OFD packet to send [01:45:25]OFD Sender: No OFD packet to send [01:45:30]OFD Sender: No OFD packet to send [01:45:35]OFD Sender: No OFD packet to send [01:45:40]OFD Sender: No OFD packet to send [01:45:45]OFD Sender: No OFD packet to send [01:45:50]OFD Sender: No OFD packet to send [01:45:55]OFD Sender: No OFD packet to send [01:46:00]OFD Sender: No OFD packet to send [01:46:05]OFD Sender: No OFD packet to send [01:46:10]OFD Sender: No OFD packet to send [01:46:15]OFD Sender: No OFD packet to send [01:46:20]OFD Sender: No OFD packet to send [01:46:25]OFD Sender: No OFD packet to send [01:46:30]OFD Sender: No OFD packet to send [01:46:35]OFD Sender: No OFD packet to send [01:46:40]OFD Sender: No OFD packet to send [01:46:45]OFD Sender: No OFD packet to send [01:46:50]OFD Sender: No OFD packet to send [01:46:55]OFD Sender: No OFD packet to send [01:47:00]OFD Sender: No OFD packet to send [01:47:05]OFD Sender: No OFD packet to send [01:47:10]OFD Sender: No OFD packet to send [01:47:15]OFD Sender: No OFD packet to send [01:47:20]OFD Sender: No OFD packet to send [01:47:25]OFD Sender: No OFD packet to send [01:47:30]OFD Sender: No OFD packet to send [01:47:35]OFD Sender: No OFD packet to send [01:47:40]OFD Sender: No OFD packet to send [01:47:45]OFD Sender: No OFD packet to send [01:47:50]OFD Sender: No OFD packet to send [01:47:55]OFD Sender: No OFD packet to send [01:48:00]OFD Sender: No OFD packet to send [01:48:05]OFD Sender: No OFD packet to send [01:48:10]OFD Sender: No OFD packet to send [01:48:15]OFD Sender: No OFD packet to send [01:48:20]OFD Sender: No OFD packet to send [01:48:25]OFD Sender: No OFD packet to send [01:48:30]OFD Sender: No OFD packet to send [01:48:35]OFD Sender: No OFD packet to send [01:48:40]OFD Sender: No OFD packet to send [01:48:45]OFD Sender: No OFD packet to send [01:48:50]OFD Sender: No OFD packet to send [01:48:55]OFD Sender: No OFD packet to send [01:49:00]OFD Sender: No OFD packet to send [01:49:05]OFD Sender: No OFD packet to send [01:49:10]OFD Sender: No OFD packet to send [01:49:15]OFD Sender: No OFD packet to send [01:49:20]OFD Sender: No OFD packet to send [01:49:25]OFD Sender: No OFD packet to send [01:49:30]OFD Sender: No OFD packet to send [01:49:35]OFD Sender: No OFD packet to send [01:49:40]OFD Sender: No OFD packet to send [01:49:45]OFD Sender: No OFD packet to send [01:49:50]OFD Sender: No OFD packet to send [01:49:55]OFD Sender: No OFD packet to send [01:50:00]OFD Sender: No OFD packet to send [01:50:05]OFD Sender: No OFD packet to send [01:50:10]OFD Sender: No OFD packet to send [01:50:15]OFD Sender: No OFD packet to send [01:50:20]OFD Sender: No OFD packet to send [01:50:25]OFD Sender: No OFD packet to send [01:50:30]OFD Sender: No OFD packet to send [01:50:35]OFD Sender: No OFD packet to send [01:50:40]OFD Sender: No OFD packet to send [01:50:45]OFD Sender: No OFD packet to send [01:50:50]OFD Sender: No OFD packet to send [01:50:55]OFD Sender: No OFD packet to send [01:51:00]OFD Sender: No OFD packet to send [01:51:05]OFD Sender: No OFD packet to send [01:51:10]OFD Sender: No OFD packet to send [01:51:15]OFD Sender: No OFD packet to send [01:51:20]OFD Sender: No OFD packet to send [01:51:25]OFD Sender: No OFD packet to send [01:51:30]OFD Sender: No OFD packet to send [01:51:35]OFD Sender: No OFD packet to send [01:51:40]OFD Sender: No OFD packet to send [01:51:45]OFD Sender: No OFD packet to send [01:51:50]OFD Sender: No OFD packet to send [01:51:55]OFD Sender: No OFD packet to send [01:52:00]OFD Sender: No OFD packet to send [01:52:05]OFD Sender: No OFD packet to send [01:52:10]OFD Sender: No OFD packet to send [01:52:15]OFD Sender: No OFD packet to send [01:52:20]OFD Sender: No OFD packet to send [01:52:25]OFD Sender: No OFD packet to send [01:52:30]OFD Sender: No OFD packet to send [01:52:35]OFD Sender: No OFD packet to send [01:52:40]OFD Sender: No OFD packet to send [01:52:45]OFD Sender: No OFD packet to send [01:52:50]OFD Sender: No OFD packet to send [01:52:55]OFD Sender: No OFD packet to send [01:53:00]OFD Sender: No OFD packet to send [01:53:05]OFD Sender: No OFD packet to send [01:53:10]OFD Sender: No OFD packet to send [01:53:15]OFD Sender: No OFD packet to send [01:53:20]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:51]OFD Sender: No OFD packet to send [01:53:56]OFD Sender: No OFD packet to send [01:54:01]OFD Sender: No OFD packet to send [01:54:06]OFD Sender: No OFD packet to send [01:54:11]OFD Sender: No OFD packet to send [01:54:16]OFD Sender: No OFD packet to send [01:54:21]OFD Sender: No OFD packet to send [01:54:26]OFD Sender: No OFD packet to send [01:54:31]OFD Sender: No OFD packet to send [01:54:36]OFD Sender: No OFD packet to send [01:54:41]OFD Sender: No OFD packet to send [01:54:46]OFD Sender: No OFD packet to send [01:54:51]OFD Sender: No OFD packet to send [01:54:56]OFD Sender: No OFD packet to send [01:55:01]OFD Sender: No OFD packet to send [01:55:06]OFD Sender: No OFD packet to send [01:55:11]OFD Sender: No OFD packet to send [01:55:16]OFD Sender: No OFD packet to send [01:55:21]OFD Sender: No OFD packet to send [01:55:26]OFD Sender: No OFD packet to send [01:55:31]OFD Sender: No OFD packet to send [01:55:36]OFD Sender: No OFD packet to send [01:55:41]OFD Sender: No OFD packet to send [01:55:46]OFD Sender: No OFD packet to send [01:55:51]OFD Sender: No OFD packet to send [01:55:56]OFD Sender: No OFD packet to send [01:56:01]OFD Sender: No OFD packet to send [01:56:06]OFD Sender: No OFD packet to send [01:56:11]OFD Sender: No OFD packet to send [01:56:16]OFD Sender: No OFD packet to send [01:56:21]OFD Sender: No OFD packet to send [01:56:26]OFD Sender: No OFD packet to send [01:56:31]OFD Sender: No OFD packet to send [01:56:36]OFD Sender: No OFD packet to send [01:56:41]OFD Sender: No OFD packet to send [01:56:46]OFD Sender: No OFD packet to send [01:56:51]OFD Sender: No OFD packet to send [01:56:56]OFD Sender: No OFD packet to send [01:57:01]OFD Sender: No OFD packet to send [01:57:06]OFD Sender: No OFD packet to send [01:57:11]OFD Sender: No OFD packet to send [01:57:16]OFD Sender: No OFD packet to send [01:57:21]OFD Sender: No OFD packet to send [01:57:26]OFD Sender: No OFD packet to send [01:57:31]OFD Sender: No OFD packet to send [01:57:36]OFD Sender: No OFD packet to send [01:57:41]OFD Sender: No OFD packet to send [01:57:46]OFD Sender: No OFD packet to send [01:57:51]OFD Sender: No OFD packet to send [01:57:56]OFD Sender: No OFD packet to send [01:58:01]OFD Sender: No OFD packet to send [01:58:06]OFD Sender: No OFD packet to send [01:58:11]OFD Sender: No OFD packet to send [01:58:16]OFD Sender: No OFD packet to send [01:58:21]OFD Sender: No OFD packet to send [01:58:26]OFD Sender: No OFD packet to send [01:58:31]OFD Sender: No OFD packet to send [01:58:36]OFD Sender: No OFD packet to send [01:58:41]OFD Sender: No OFD packet to send [01:58:46]OFD Sender: No OFD packet to send [01:58:51]OFD Sender: No OFD packet to send [01:58:56]OFD Sender: No OFD packet to send [01:59:01]OFD Sender: No OFD packet to send [01:59:06]OFD Sender: No OFD packet to send [01:59:11]OFD Sender: No OFD packet to send [01:59:16]OFD Sender: No OFD packet to send [01:59:21]OFD Sender: No OFD packet to send [01:59:26]OFD Sender: No OFD packet to send [01:59:31]OFD Sender: No OFD packet to send [01:59:36]OFD Sender: No OFD packet to send [01:59:41]OFD Sender: No OFD packet to send [01:59:46]OFD Sender: No OFD packet to send [01:59:51]OFD Sender: No OFD packet to send [01:59:56]OFD Sender: No OFD packet to send [02:00:01]OFD Sender: No OFD packet to send [02:00:06]OFD Sender: No OFD packet to send [02:00:11]OFD Sender: No OFD packet to send [02:00:16]OFD Sender: No OFD packet to send [02:00:21]OFD Sender: No OFD packet to send [02:00:26]OFD Sender: No OFD packet to send [02:00:31]OFD Sender: No OFD packet to send [02:00:36]OFD Sender: No OFD packet to send [02:00:41]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:35]accept exits with 9 [02:01:35]New connection [02:01:35]New thread 3066965348 created [02:01:35]Thread 3066821988 joined [02:01:35]Waiting for new connection... [02:01:35] Sock 9.Parse request [02:01:35]Sock 9.Check first char [02:01:35]Sock 9.First char is OK [02:01:35]request: POST /json_proto HTTP/1.0 [02:01:35]Method: POST [02:01:35]URL: /json_proto [02:01:35]Method is POST - this is cgi request [02:01:35]url: /json_proto [02:01:35]query_string will be loaded in cgi processing [02:01:35]execute_cgi json_proto POST (null) [02:01:35]execute_cgi path=json_proto method=POST [02:01:35]POST find Content-Length [02:01:35]Host: 172.17.39.68:8080 [02:01:35]Content-Length: 709 [02:01:35]Content-Type: application/json [02:01:35] [02:01:35]POST finish read [02:01:35]Found Content-Length = 709 [02:01:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214416", "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" ] } } [02:01:35]execute_script... [02:01: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)214416", "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" ] } } [02:01:35]POST & json_proto [02:01:35]process_json_proto [02:01:35]json parsed OK: [02:01:35]protocol is kg_v1.0 [02:01:35]action value=close_receipt [02:01:35]process_action close_receipt [02:01:35]cmd_close_receipt [02:01:35]MH_GetDate [02:01:35]Write to MH i2c: F0 00 00 C9 39 F1 [02:01:35]Write i2c OK [02:01:35]MH_I2C_Read... [02:01:35]Read from MH i2c: F0 [02:01:35]MH_I2C_Read... [02:01:35]Read from MH i2c: F0 09 00 [02:01:35]MH_I2C_Read... [02:01:35]Read from MH i2c: F0 09 00 C9 39 00 06 26 97 66 D6 48 95 66 3C [02:01:35]GetLastDocTimeStamp 1721180049 [02:01:35]current date 1721181702 [02:01:35]FM_GetShiftState [02:01:35]SAM_PROTO_GetShiftState [02:01:35]wFMCommunicate request_size=4 [02:01:35]MH_SAM_APDU [02:01:35]CAPDU: 80 13 01 00 [02:01:35]Write to MH i2c: E2 08 00 CA 39 80 13 01 00 00 00 00 00 80 [02:01:35]Write i2c OK [02:01:35]MH_I2C_Read... [02:01:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:35]Read from MH i2c: E2 [02:01:35]MH_I2C_Read... [02:01:35]Read from MH i2c: E2 0E 00 [02:01:35]MH_I2C_Read... [02:01:35]Read from MH i2c: E2 0E 00 CA 39 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 FF [02:01:35]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [02:01:35]wFMCommunicate OK [02:01:35]SAM_PROTO_GetShiftState done [02:01:35]FM_GetShiftState done [02:01:35]opened in 1721174636 [02:01:35]opened+sec_in_day 1721261036 [02:01:35]quantity*price = 9500 [02:01:35]sum+1 = 9501 [02:01:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 9 17.07.2024 02:01 Смена: 372 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31835 ФПД: 275305269294797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T020142&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31835&fm=275305269294797&tin=02508201610067®Number=0000000000098025&sum=9500 0 [02:01:36]StoreToDocumentArchive [02:01:36]shift 372 fd 31835 [02:01:36]save to /storage/0372/doc_00031835 [02:01:36]save last doc name /storage/0372/doc_00031835 to /storage/kkm_last_doc_name [02:01:36]save OK [02:01:36]Clear old archive folders... [02:01:36]ProcessDocumentItem done err = 0, tmpTLVsize=304 [02:01:36]tlvbuf is 0155D170 [02:01:36]SAM_PROTO_ClearQueue [02:01:36]wFMCommunicate request_size=4 [02:01:36]MH_SAM_APDU [02:01:36]CAPDU: 80 09 00 00 [02:01:36]Write to MH i2c: E2 08 00 D7 39 80 09 00 00 00 00 00 00 82 [02:01:36]Write i2c OK [02:01:36]MH_I2C_Read... [02:01:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:01:36]Read from MH i2c: E2 [02:01:36]MH_I2C_Read... [02:01:36]Read from MH i2c: E2 03 00 [02:01:36]MH_I2C_Read... [02:01:36]Read from MH i2c: E2 03 00 D7 39 00 90 00 84 [02:01:36]RAPDU: 90 00 [02:01:36]wFMCommunicate OK [02:01:36]SAM_PROTO_ClearQueue done [02:01:36]KKMCreateOFDPacket [02:01:36]OFDProtocolAddRootSTLVToBuf [02:01:36]FM_MakeSignedData [02:01:36]FM_MakeSignedData [02:01:36]SAM_PROTO_SignData [02:01:36]wFMCommunicate request_size=4 [02:01:36]MH_SAM_APDU [02:01:36]CAPDU: 80 0D 01 02 [02:01:36]Write to MH i2c: E2 08 00 D8 39 80 0D 01 02 00 00 00 00 8A [02:01:36]Write i2c OK [02:01:36]MH_I2C_Read... [02:01:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:01:36]Read from MH i2c: E2 [02:01:36]MH_I2C_Read... [02:01:36]Read from MH i2c: E2 03 00 [02:01:36]MH_I2C_Read... [02:01:36]Read from MH i2c: E2 03 00 D8 39 00 90 00 85 [02:01:36]RAPDU: 90 00 [02:01:36]wFMCommunicate OK [02:01:36]wFMCommunicate request_size=255 [02:01:36]MH_SAM_APDU [02:01: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 09 00 00 00 F4 03 04 00 06 26 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 [02:01:36]Write to MH i2c: E2 02 01 D9 39 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 09 00 00 00 F4 03 04 00 06 26 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 00 00 77 [02:01:36]Write i2c OK [02:01:36]MH_I2C_Read... [02:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:36]Read from MH i2c: E2 [02:01:36]MH_I2C_Read... [02:01:36]Read from MH i2c: E2 03 00 [02:01:36]MH_I2C_Read... [02:01:36]Read from MH i2c: E2 03 00 D9 39 00 90 00 86 [02:01:36]RAPDU: 90 00 [02:01:36]wFMCommunicate OK [02:01:36]wFMCommunicate request_size=63 [02:01:36]MH_SAM_APDU [02:01:36]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5B 7C 00 00 35 04 06 00 FA 63 80 C7 F6 CD [02:01:36]Write to MH i2c: E2 42 00 DA 39 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5B 7C 00 00 35 04 06 00 FA 63 80 C7 F6 CD 00 00 1C [02:01:36]Write i2c OK [02:01:36]MH_I2C_Read... [02:01:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:01:36]Read from MH i2c: E2 [02:01:36]MH_I2C_Read... [02:01:36]Read from MH i2c: E2 03 00 [02:01:36]MH_I2C_Read... [02:01:36]Read from MH i2c: E2 03 00 DA 39 00 90 00 87 [02:01:36]RAPDU: 90 00 [02:01:36]wFMCommunicate OK [02:01:36]wFMCommunicate request_size=4 [02:01:36]MH_SAM_APDU [02:01:36]CAPDU: 80 0D 03 02 [02:01:36]Write to MH i2c: E2 08 00 DB 39 80 0D 03 02 00 00 00 00 8F [02:01:36]Write i2c OK [02:01:36]MH_I2C_Read... [02:01:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:01:37]Read from MH i2c: E2 [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: E2 0B 00 [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: E2 0B 00 DB 39 00 49 8C 4F 50 F0 E2 72 85 90 00 CD [02:01:37]RAPDU: 49 8C 4F 50 F0 E2 72 85 90 00 [02:01:37]wFMCommunicate OK [02:01:37]SAM_PROTO_SignData done [02:01:37]FM_MakeSignedData done [02:01:37]CreateOFDProtocolMessage [02:01:37]wFMCommunicate request_size=4 [02:01:37]MH_SAM_APDU [02:01:37]CAPDU: 80 11 00 00 [02:01:37]Write to MH i2c: E2 08 00 DC 39 80 11 00 00 00 00 00 00 8F [02:01:37]Write i2c OK [02:01:37]MH_I2C_Read... [02:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:37]Read from MH i2c: E2 [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: E2 17 00 [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: E2 17 00 DC 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 EA [02:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:01:37]wFMCommunicate OK [02:01:37]CreateOFDProtocolMessage done [02:01:37]OFDSenderStorePacket 31835 [02:01:37]StoreOFDPacket docnum=31835 [02:01:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 1C 06 3C 01 95 98 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 09 00 00 00 F4 03 04 00 06 26 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5B 7C 00 00 35 04 06 00 FA 63 80 C7 F6 CD 49 8C 4F 50 F0 E2 72 85 [02:01:37]CheckFolder [02:01:37]dirname=/storage/ofd_packets [02:01:37]CheckFolder done [02:01:37]ProducePacketName [02:01:37]name=ofd_packets/00031835 [02:01:37]NVStorageSaveData ofd_packets/00031835 [02:01:37]File name is /storage/ofd_packets/00031835 [02:01:37]Write 354 bytes [02:01:37]NVStorageSaveData done [02:01:37]OFDSenderStorePacket done [02:01:37]KKMCreateOFDPacket done [02:01:37]NVStorageSaveData kkm_last_timestamp [02:01:37]File name is /storage/kkm_last_timestamp [02:01:37]Write 4 bytes [02:01:37]NVStorageSaveData done [02:01:37]ExternCall_PrintAddStr [02:01:37]wPrintStart [02:01:37]Write to MH i2c: 01 00 00 DD 39 16 [02:01:37]Write i2c OK [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: 01 [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: 01 07 00 [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: 01 07 00 DD 39 00 00 00 00 00 FF 0F 2B [02:01:37]RasterBufferAndPrint [02:01:37]line Счет N : (3)214416 [02:01:37]line ИНН: 02508201610067 [02:01:37]line Контрольно-Кассовый Чек [02:01:37]line ПРОДАЖА [02:01:37]line Товар: 4700000480302 [02:01:37]line Напиток энерг Nitro манго-клуб 0.45 ж/б [02:01:37]line 1.000 * 95.00 [02:01:37]line = 95.00 [02:01:37]line НДС 12% НСП 1% [02:01:37]line > о реализуемом товаре [02:01:37]line ИТОГО: 95.00 [02:01:37]line НСП 1% : 0.84 [02:01:37]line НДС 12% : 10.09 [02:01:37]line Наличными: 95.00 [02:01:37]line Безнал.: 0.00 [02:01:37]line Место: АЗС № 140 "Партнер Нефть" [02:01:37]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:01:37]line СНО: Общий режим [02:01:37]line Чек 9 17.07.2024 02:01 [02:01:37]line Смена: 372 ФФД: 1.0 [02:01:37]line ЗНМ: 0300000189 [02:01:37]line РНМ: 0000000000098025 [02:01:37]line Версия ККМ: 001 [02:01:37]line ФМ: 0000000000965389 [02:01:37]line ФД: 31835 [02:01:37]line ФПД: 275305269294797 [02:01:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T020142&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31835&fm=275305269294797&tin=02508201610067®Number=0000000000098025&sum=9500 [02:01:37]line 0 [02:01:37]OFD Sender: Processing packet 31835 [packets to send 6, broken 5] [02:01:37]ProducePacketName [02:01:37]name=ofd_packets/00031835 [02:01:37]OFD Sender: To server: pG, [02:01:37]CommunicateWithHost lk.salyk.kg:30040 [02:01:37]ConnectInit lk.salyk.kg [02:01:37]written 0, free lines is 4095 [02:01:37]Connected sock=10 [02:01:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 44 01 00 00 1C 06 3C 01 95 98 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 09 00 00 00 F4 03 04 00 06 26 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5B 7C 00 00 35 04 06 00 FA 63 80 C7 F6 CD 49 8C 4F 50 F0 E2 72 85 [02:01:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 05 2A 47 00 FE 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5B 7C 00 00 F4 03 04 00 12 D2 96 66 B6 04 01 00 00 A9 51 40 05 3A 6C 5B AA [02:01:37]CommunicateWithHost err = 0 [02:01:37]CheckOFDResponse [02:01:37]1017 (14) - 77093643461234 [02:01:37]1041 (16) - 0000000000965389 [02:01:37]1040 (4) - 31835 [02:01:37]1012 (4) - 16.07.2024 20:03 [02:01:37]1206 (1) - 0 [02:01:37]OFD Sender: Remove packet 31835 [02:01:37]ProducePacketName [02:01:37]name=ofd_packets/00031835 [02:01:37]NVStorageDeleteData [02:01:37]Write to MH i2c: 01 00 00 06 3A 40 [02:01:37]Write i2c OK [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: 01 [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: 01 07 00 [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: 01 07 00 06 3A 00 00 00 00 00 ED 0C 40 [02:01:37]RasterBufferAndPrint [02:01:37]line [02:01:37]line [02:01:37]line [02:01:37]line [02:01:37]line [02:01:37]written 0, free lines is 3318 [02:01:37]MH_Cut [02:01:37]Write to MH i2c: D1 01 00 0D 3A 01 19 [02:01:37]Write i2c OK [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: D1 [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: D1 01 00 [02:01:37]MH_I2C_Read... [02:01:37]Read from MH i2c: D1 01 00 0D 3A 00 18 [02:01:37]Write to MH i2c: 01 00 00 0E 3A 48 [02:01:37]Write i2c OK [02:01:37]MH_I2C_Read... [02:01:38]OFD Sender: No OFD packet to send [02:01:38]*** Cut start [02:01:38]*** Partial cut [02:01:38]*** CUTSNS_PIN = 1 [02:01:38]*** CUTSNS_PIN = 0 [02:01:38]*** Brake cut motor [02:01:39]Read from MH i2c: 01 [02:01:39]MH_I2C_Read... [02:01:39]*** Stop cut motor [02:01:39]*** Cut end [02:01:39]Read from MH i2c: 01 07 00 [02:01:39]MH_I2C_Read... [02:01:39]Read from MH i2c: 01 07 00 0E 3A 00 00 00 00 00 FF 0F 5D [02:01:39]process_action close_receipt done [02:01:39]requested_data is exist [02:01:39]produce_requested_data [02:01:39]requested_item fm.sn is exist - process it [02:01:39]wFMCommunicate request_size=4 [02:01:39]MH_SAM_APDU [02:01:39]CAPDU: 80 11 00 00 [02:01:39]Write to MH i2c: E2 08 00 0F 3A 80 11 00 00 00 00 00 00 C3 [02:01:39]Write i2c OK [02:01:39]MH_I2C_Read... [02:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:01:39]Read from MH i2c: E2 [02:01:39]MH_I2C_Read... [02:01:39]Read from MH i2c: E2 17 00 [02:01:39]MH_I2C_Read... [02:01:39]Read from MH i2c: E2 17 00 0F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 1E [02:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:01:39]wFMCommunicate OK [02:01:39]requested_item fd.num is exist - process it [02:01:39]SAM_PROTO_GetFieldsCounters [02:01:39]wFMCommunicate request_size=4 [02:01:39]MH_SAM_APDU [02:01:39]CAPDU: 80 13 00 00 [02:01:39]Write to MH i2c: E2 08 00 10 3A 80 13 00 00 00 00 00 00 C6 [02:01:39]Write i2c OK [02:01:39]MH_I2C_Read... [02:01:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:01:39]Read from MH i2c: E2 [02:01:39]MH_I2C_Read... [02:01:39]Read from MH i2c: E2 62 00 [02:01:39]MH_I2C_Read... [02:01:39]Read from MH i2c: E2 62 00 10 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5B 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [02:01:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5B 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:01:39]wFMCommunicate OK [02:01:39]SAM_PROTO_GetFieldsCounters done [02:01:39]requested_item shift.num is exist - process it [02:01:39]requested_item shift.opened is exist - process it [02:01:39]req_shift_opened [02:01:39]FM_GetShiftState [02:01:39]SAM_PROTO_GetShiftState [02:01:39]wFMCommunicate request_size=4 [02:01:39]MH_SAM_APDU [02:01:39]CAPDU: 80 13 01 00 [02:01:39]Write to MH i2c: E2 08 00 11 3A 80 13 01 00 00 00 00 00 C8 [02:01:39]Write i2c OK [02:01:39]MH_I2C_Read... [02:01:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:01:39]Read from MH i2c: E2 [02:01:39]MH_I2C_Read... [02:01:39]Read from MH i2c: E2 0E 00 [02:01:39]MH_I2C_Read... [02:01:39]Read from MH i2c: E2 0E 00 11 3A 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 47 [02:01:39]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [02:01:39]wFMCommunicate OK [02:01:39]SAM_PROTO_GetShiftState done [02:01:39]FM_GetShiftState done [02:01:39]req_shift_opened done [02:01:39]requested_item shift.open_date is exist - process it [02:01:39]req_shift_open_date [02:01:39]req_shift_open_date done [02:01:39]produce_requested_data done [02:01:39]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31835,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [02:01:39]process_action_free close_receipt [02:01:39]json_value_free [02:01:39]json_value_free done [02:01:39]process_json_proto returns [02:01:39]Send response to host [02:01:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31835,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [02:01:39]free response buf [02:01:39]execute_script done [02:01:39]execute_script returns [02:01:39]free content buf [02:01:39]Sock 9.Close socket [02:01:39]Sock 9.Thread stoped [02:01:43]OFD Sender: No OFD packet to send [02:01:48]OFD Sender: No OFD packet to send [02:01:53]OFD Sender: No OFD packet to send [02:01:58]OFD Sender: No OFD packet to send [02:02:03]OFD Sender: No OFD packet to send [02:02:08]OFD Sender: No OFD packet to send [02:02:13]OFD Sender: No OFD packet to send [02:02:18]OFD Sender: No OFD packet to send [02:02:23]OFD Sender: No OFD packet to send [02:02:28]OFD Sender: No OFD packet to send [02:02:33]OFD Sender: No OFD packet to send [02:02:38]OFD Sender: No OFD packet to send [02:02:43]OFD Sender: No OFD packet to send [02:02:48]OFD Sender: No OFD packet to send [02:02:53]OFD Sender: No OFD packet to send [02:02:58]OFD Sender: No OFD packet to send [02:03:03]OFD Sender: No OFD packet to send [02:03:08]OFD Sender: No OFD packet to send [02:03:13]OFD Sender: No OFD packet to send [02:03:18]OFD Sender: No OFD packet to send [02:03:23]OFD Sender: No OFD packet to send [02:03:28]OFD Sender: No OFD packet to send [02:03:33]OFD Sender: No OFD packet to send [02:03:38]OFD Sender: No OFD packet to send [02:03:43]OFD Sender: No OFD packet to send [02:03:48]OFD Sender: No OFD packet to send [02:03:53]OFD Sender: No OFD packet to send [02:03:58]OFD Sender: No OFD packet to send [02:04:03]OFD Sender: No OFD packet to send [02:04:08]OFD Sender: No OFD packet to send [02:04:13]OFD Sender: No OFD packet to send [02:04:18]OFD Sender: No OFD packet to send [02:04:23]OFD Sender: No OFD packet to send [02:04:28]OFD Sender: No OFD packet to send [02:04:33]OFD Sender: No OFD packet to send [02:04:38]OFD Sender: No OFD packet to send [02:04:43]OFD Sender: No OFD packet to send [02:04:48]OFD Sender: No OFD packet to send [02:04:53]OFD Sender: No OFD packet to send [02:04:58]OFD Sender: No OFD packet to send [02:05:03]OFD Sender: No OFD packet to send [02:05:08]OFD Sender: No OFD packet to send [02:05:13]OFD Sender: No OFD packet to send [02:05:18]OFD Sender: No OFD packet to send [02:05:23]OFD Sender: No OFD packet to send [02:05:28]OFD Sender: No OFD packet to send [02:05:33]OFD Sender: No OFD packet to send [02:05:38]OFD Sender: No OFD packet to send [02:05:43]OFD Sender: No OFD packet to send [02:05:48]OFD Sender: No OFD packet to send [02:05:53]OFD Sender: No OFD packet to send [02:05:58]OFD Sender: No OFD packet to send [02:06:03]OFD Sender: No OFD packet to send [02:06:08]OFD Sender: No OFD packet to send [02:06:13]OFD Sender: No OFD packet to send [02:06:18]OFD Sender: No OFD packet to send [02:06:23]OFD Sender: No OFD packet to send [02:06:28]OFD Sender: No OFD packet to send [02:06:33]OFD Sender: No OFD packet to send [02:06:38]OFD Sender: No OFD packet to send [02:06:43]OFD Sender: No OFD packet to send [02:06:48]OFD Sender: No OFD packet to send [02:06:53]OFD Sender: No OFD packet to send [02:06:58]OFD Sender: No OFD packet to send [02:07:03]OFD Sender: No OFD packet to send [02:07:08]OFD Sender: No OFD packet to send [02:07:13]OFD Sender: No OFD packet to send [02:07:18]OFD Sender: No OFD packet to send [02:07:23]OFD Sender: No OFD packet to send [02:07:28]OFD Sender: No OFD packet to send [02:07:33]OFD Sender: No OFD packet to send [02:07:38]OFD Sender: No OFD packet to send [02:07:43]OFD Sender: No OFD packet to send [02:07:48]OFD Sender: No OFD packet to send [02:07:53]OFD Sender: No OFD packet to send [02:07:58]OFD Sender: No OFD packet to send [02:08:03]OFD Sender: No OFD packet to send [02:08:08]OFD Sender: No OFD packet to send [02:08:13]OFD Sender: No OFD packet to send [02:08:18]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:08]OFD Sender: No OFD packet to send [02:12:13]OFD Sender: No OFD packet to send [02:12:18]OFD Sender: No OFD packet to send [02:12:23]OFD Sender: No OFD packet to send [02:12:28]OFD Sender: No OFD packet to send [02:12:33]OFD Sender: No OFD packet to send [02:12:38]OFD Sender: No OFD packet to send [02:12:43]OFD Sender: No OFD packet to send [02:12:48]OFD Sender: No OFD packet to send [02:12:53]OFD Sender: No OFD packet to send [02:12:58]OFD Sender: No OFD packet to send [02:13:03]OFD Sender: No OFD packet to send [02:13:08]OFD Sender: No OFD packet to send [02:13:13]OFD Sender: No OFD packet to send [02:13:18]OFD Sender: No OFD packet to send [02:13:23]OFD Sender: No OFD packet to send [02:13:28]OFD Sender: No OFD packet to send [02:13:33]OFD Sender: No OFD packet to send [02:13:38]OFD Sender: No OFD packet to send [02:13:43]OFD Sender: No OFD packet to send [02:13:48]OFD Sender: No OFD packet to send [02:13:53]OFD Sender: No OFD packet to send [02:13:58]OFD Sender: No OFD packet to send [02:14:03]OFD Sender: No OFD packet to send [02:14:08]OFD Sender: No OFD packet to send [02:14:13]OFD Sender: No OFD packet to send [02:14:18]OFD Sender: No OFD packet to send [02:14:23]OFD Sender: No OFD packet to send [02:14:28]OFD Sender: No OFD packet to send [02:14:33]OFD Sender: No OFD packet to send [02:14:38]OFD Sender: No OFD packet to send [02:14:43]OFD Sender: No OFD packet to send [02:14:48]OFD Sender: No OFD packet to send [02:14:53]OFD Sender: No OFD packet to send [02:14:58]OFD Sender: No OFD packet to send [02:15:03]OFD Sender: No OFD packet to send [02:15:08]OFD Sender: No OFD packet to send [02:15:13]OFD Sender: No OFD packet to send [02:15:18]OFD Sender: No OFD packet to send [02:15:23]OFD Sender: No OFD packet to send [02:15:28]OFD Sender: No OFD packet to send [02:15:33]OFD Sender: No OFD packet to send [02:15:38]OFD Sender: No OFD packet to send [02:15:43]OFD Sender: No OFD packet to send [02:15:48]OFD Sender: No OFD packet to send [02:15:53]OFD Sender: No OFD packet to send [02:15:58]OFD Sender: No OFD packet to send [02:16:03]OFD Sender: No OFD packet to send [02:16:08]OFD Sender: No OFD packet to send [02:16:13]OFD Sender: No OFD packet to send [02:16:18]OFD Sender: No OFD packet to send [02:16:23]OFD Sender: No OFD packet to send [02:16:28]OFD Sender: No OFD packet to send [02:16:33]OFD Sender: No OFD packet to send [02:16:38]OFD Sender: No OFD packet to send [02:16:43]OFD Sender: No OFD packet to send [02:16:48]OFD Sender: No OFD packet to send [02:16:53]OFD Sender: No OFD packet to send [02:16:58]OFD Sender: No OFD packet to send [02:17:03]OFD Sender: No OFD packet to send [02:17:08]OFD Sender: No OFD packet to send [02:17:13]OFD Sender: No OFD packet to send [02:17:18]OFD Sender: No OFD packet to send [02:17:23]OFD Sender: No OFD packet to send [02:17:28]OFD Sender: No OFD packet to send [02:17:33]OFD Sender: No OFD packet to send [02:17:38]OFD Sender: No OFD packet to send [02:17:43]OFD Sender: No OFD packet to send [02:17:48]OFD Sender: No OFD packet to send [02:17:54]OFD Sender: No OFD packet to send [02:17:59]OFD Sender: No OFD packet to send [02:18:04]OFD Sender: No OFD packet to send [02:18:09]OFD Sender: No OFD packet to send [02:18:14]OFD Sender: No OFD packet to send [02:18:19]OFD Sender: No OFD packet to send [02:18:24]OFD Sender: No OFD packet to send [02:18:29]OFD Sender: No OFD packet to send [02:18:34]OFD Sender: No OFD packet to send [02:18:39]OFD Sender: No OFD packet to send [02:18:44]OFD Sender: No OFD packet to send [02:18:49]OFD Sender: No OFD packet to send [02:18:54]OFD Sender: No OFD packet to send [02:18:59]OFD Sender: No OFD packet to send [02:19:04]OFD Sender: No OFD packet to send [02:19:09]OFD Sender: No OFD packet to send [02:19:14]OFD Sender: No OFD packet to send [02:19:19]OFD Sender: No OFD packet to send [02:19:24]OFD Sender: No OFD packet to send [02:19:29]OFD Sender: No OFD packet to send [02:19:34]OFD Sender: No OFD packet to send [02:19:39]OFD Sender: No OFD packet to send [02:19:44]OFD Sender: No OFD packet to send [02:19:49]OFD Sender: No OFD packet to send [02:19:54]OFD Sender: No OFD packet to send [02:19:59]OFD Sender: No OFD packet to send [02:20:04]OFD Sender: No OFD packet to send [02:20:09]OFD Sender: No OFD packet to send [02:20:14]OFD Sender: No OFD packet to send [02:20:19]OFD Sender: No OFD packet to send [02:20:24]OFD Sender: No OFD packet to send [02:20:29]OFD Sender: No OFD packet to send [02:20:34]OFD Sender: No OFD packet to send [02:20:39]OFD Sender: No OFD packet to send [02:20:44]OFD Sender: No OFD packet to send [02:20:49]OFD Sender: No OFD packet to send [02:20:54]OFD Sender: No OFD packet to send [02:20:59]OFD Sender: No OFD packet to send [02:21:04]OFD Sender: No OFD packet to send [02:21:09]OFD Sender: No OFD packet to send [02:21:14]OFD Sender: No OFD packet to send [02:21:19]OFD Sender: No OFD packet to send [02:21:24]OFD Sender: No OFD packet to send [02:21:29]OFD Sender: No OFD packet to send [02:21:34]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:58]accept exits with 7 [02:21:58]New connection [02:21:58]New thread 3066821988 created [02:21:58]Thread 3066965348 joined [02:21:58]Waiting for new connection... [02:21:58] Sock 7.Parse request [02:21:58]Sock 7.Check first char [02:21:58]Sock 7.First char is OK [02:21:58]request: POST /json_proto HTTP/1.0 [02:21:58]Method: POST [02:21:58]URL: /json_proto [02:21:58]Method is POST - this is cgi request [02:21:58]url: /json_proto [02:21:58]query_string will be loaded in cgi processing [02:21:58]execute_cgi json_proto POST (null) [02:21:58]execute_cgi path=json_proto method=POST [02:21:58]POST find Content-Length [02:21:58]Host: 172.17.39.68:8080 [02:21:58]Content-Length: 665 [02:21:58]Content-Type: application/json [02:21:58] [02:21:58]POST finish read [02:21:58]Found Content-Length = 665 [02:21:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)214417", "tax_sys" : 0, "items" : [ { "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 176.00, "quantity" : 1.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" ] } } [02:21:58]execute_script... [02:21: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)214417", "tax_sys" : 0, "items" : [ { "code": "4700000481514", "name": "\u041F\u0418\u0412\u041E \u0421\u0412\u0415\u0422\u041B\u041E\u0415 URBAN 312 1,0 \u043B \u041F\u042D\u0422", "price" : 176.00, "quantity" : 1.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" ] } } [02:21:58]POST & json_proto [02:21:58]process_json_proto [02:21:58]json parsed OK: [02:21:58]protocol is kg_v1.0 [02:21:58]action value=close_receipt [02:21:58]process_action close_receipt [02:21:58]cmd_close_receipt [02:21:58]MH_GetDate [02:21:58]Write to MH i2c: F0 00 00 12 3A 3B [02:21:58]Write i2c OK [02:21:58]MH_I2C_Read... [02:21:58]Read from MH i2c: F0 [02:21:58]MH_I2C_Read... [02:21:58]Read from MH i2c: F0 09 00 [02:21:58]MH_I2C_Read... [02:21:58]Read from MH i2c: F0 09 00 12 3A 00 CD 2A 97 66 D6 48 95 66 51 [02:21:58]GetLastDocTimeStamp 1721181702 [02:21:58]current date 1721182925 [02:21:58]FM_GetShiftState [02:21:58]SAM_PROTO_GetShiftState [02:21:58]wFMCommunicate request_size=4 [02:21:58]MH_SAM_APDU [02:21:58]CAPDU: 80 13 01 00 [02:21:58]Write to MH i2c: E2 08 00 13 3A 80 13 01 00 00 00 00 00 CA [02:21:58]Write i2c OK [02:21:58]MH_I2C_Read... [02:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:21:58]Read from MH i2c: E2 [02:21:58]MH_I2C_Read... [02:21:58]Read from MH i2c: E2 0E 00 [02:21:58]MH_I2C_Read... [02:21:58]Read from MH i2c: E2 0E 00 13 3A 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 49 [02:21:58]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [02:21:58]wFMCommunicate OK [02:21:58]SAM_PROTO_GetShiftState done [02:21:58]FM_GetShiftState done [02:21:58]opened in 1721174636 [02:21:58]opened+sec_in_day 1721261036 [02:21:58]quantity*price = 17600 [02:21:58]sum+1 = 17601 [02:21:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 176.00 НСП 1% : 1.56 НДС 12% : 18.69 Наличными: 176.00 Безнал.: 0.00 Место: АЗС № 140 "Партнер Нефть" Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 СНО: Общий режим Чек 10 17.07.2024 02:22 Смена: 372 ФФД: 1.0 ЗНМ: 0300000189 РНМ: 0000000000098025 Версия ККМ: 001 ФМ: 0000000000965389 ФД: 31836 ФПД: 172019780625321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T022205&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31836&fm=172019780625321&tin=02508201610067®Number=0000000000098025&sum=17600 0 [02:21:59]StoreToDocumentArchive [02:21:59]shift 372 fd 31836 [02:21:59]save to /storage/0372/doc_00031836 [02:21:59]save last doc name /storage/0372/doc_00031836 to /storage/kkm_last_doc_name [02:21:59]save OK [02:21:59]Clear old archive folders... [02:21:59]ProcessDocumentItem done err = 0, tmpTLVsize=289 [02:21:59]tlvbuf is 015953C0 [02:21:59]SAM_PROTO_ClearQueue [02:21:59]wFMCommunicate request_size=4 [02:21:59]MH_SAM_APDU [02:21:59]CAPDU: 80 09 00 00 [02:21:59]Write to MH i2c: E2 08 00 20 3A 80 09 00 00 00 00 00 00 CC [02:21:59]Write i2c OK [02:21:59]MH_I2C_Read... [02:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:21:59]Read from MH i2c: E2 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 03 00 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 03 00 20 3A 00 90 00 CE [02:21:59]RAPDU: 90 00 [02:21:59]wFMCommunicate OK [02:21:59]SAM_PROTO_ClearQueue done [02:21:59]KKMCreateOFDPacket [02:21:59]OFDProtocolAddRootSTLVToBuf [02:21:59]FM_MakeSignedData [02:21:59]FM_MakeSignedData [02:21:59]SAM_PROTO_SignData [02:21:59]wFMCommunicate request_size=4 [02:21:59]MH_SAM_APDU [02:21:59]CAPDU: 80 0D 01 02 [02:21:59]Write to MH i2c: E2 08 00 21 3A 80 0D 01 02 00 00 00 00 D4 [02:21:59]Write i2c OK [02:21:59]MH_I2C_Read... [02:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:21:59]Read from MH i2c: E2 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 03 00 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 03 00 21 3A 00 90 00 CF [02:21:59]RAPDU: 90 00 [02:21:59]wFMCommunicate OK [02:21:59]wFMCommunicate request_size=255 [02:21:59]MH_SAM_APDU [02:21:59]CAPDU: 80 0D 02 02 FA 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 44 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 0A 00 00 00 F4 03 04 00 CD 2A 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 [02:21:59]Write to MH i2c: E2 02 01 22 3A 80 0D 02 02 FA 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 44 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 0A 00 00 00 F4 03 04 00 CD 2A 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 00 00 01 [02:21:59]Write i2c OK [02:21:59]MH_I2C_Read... [02:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:59]Read from MH i2c: E2 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 03 00 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 03 00 22 3A 00 90 00 D0 [02:21:59]RAPDU: 90 00 [02:21:59]wFMCommunicate OK [02:21:59]wFMCommunicate request_size=48 [02:21:59]MH_SAM_APDU [02:21:59]CAPDU: 80 0D 02 02 2B 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5C 7C 00 00 35 04 06 00 9C 73 79 EB 23 A9 [02:21:59]Write to MH i2c: E2 33 00 23 3A 80 0D 02 02 2B 00 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5C 7C 00 00 35 04 06 00 9C 73 79 EB 23 A9 00 00 F0 [02:21:59]Write i2c OK [02:21:59]MH_I2C_Read... [02:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:21:59]Read from MH i2c: E2 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 03 00 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 03 00 23 3A 00 90 00 D1 [02:21:59]RAPDU: 90 00 [02:21:59]wFMCommunicate OK [02:21:59]wFMCommunicate request_size=4 [02:21:59]MH_SAM_APDU [02:21:59]CAPDU: 80 0D 03 02 [02:21:59]Write to MH i2c: E2 08 00 24 3A 80 0D 03 02 00 00 00 00 D9 [02:21:59]Write i2c OK [02:21:59]MH_I2C_Read... [02:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:21:59]Read from MH i2c: E2 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 0B 00 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 0B 00 24 3A 00 47 F9 5C F2 DC 90 7D 1C 90 00 6D [02:21:59]RAPDU: 47 F9 5C F2 DC 90 7D 1C 90 00 [02:21:59]wFMCommunicate OK [02:21:59]SAM_PROTO_SignData done [02:21:59]FM_MakeSignedData done [02:21:59]CreateOFDProtocolMessage [02:21:59]wFMCommunicate request_size=4 [02:21:59]MH_SAM_APDU [02:21:59]CAPDU: 80 11 00 00 [02:21:59]Write to MH i2c: E2 08 00 25 3A 80 11 00 00 00 00 00 00 D9 [02:21:59]Write i2c OK [02:21:59]MH_I2C_Read... [02:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:21:59]Read from MH i2c: E2 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 17 00 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: E2 17 00 25 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 34 [02:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:21:59]wFMCommunicate OK [02:21:59]CreateOFDProtocolMessage done [02:21:59]OFDSenderStorePacket 31836 [02:21:59]StoreOFDPacket docnum=31836 [02:21:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 01 00 00 36 AE 2D 01 E6 7B 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 44 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 0A 00 00 00 F4 03 04 00 CD 2A 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5C 7C 00 00 35 04 06 00 9C 73 79 EB 23 A9 47 F9 5C F2 DC 90 7D 1C [02:21:59]CheckFolder [02:21:59]dirname=/storage/ofd_packets [02:21:59]CheckFolder done [02:21:59]ProducePacketName [02:21:59]name=ofd_packets/00031836 [02:21:59]NVStorageSaveData ofd_packets/00031836 [02:21:59]File name is /storage/ofd_packets/00031836 [02:21:59]Write 339 bytes [02:21:59]NVStorageSaveData done [02:21:59]OFDSenderStorePacket done [02:21:59]KKMCreateOFDPacket done [02:21:59]NVStorageSaveData kkm_last_timestamp [02:21:59]File name is /storage/kkm_last_timestamp [02:21:59]Write 4 bytes [02:21:59]NVStorageSaveData done [02:21:59]ExternCall_PrintAddStr [02:21:59]wPrintStart [02:21:59]Write to MH i2c: 01 00 00 26 3A 60 [02:21:59]Write i2c OK [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: 01 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: 01 07 00 [02:21:59]MH_I2C_Read... [02:21:59]Read from MH i2c: 01 07 00 26 3A 00 00 00 00 00 FF 0F 75 [02:21:59]RasterBufferAndPrint [02:21:59]line Счет N : (3)214417 [02:21:59]line ИНН: 02508201610067 [02:21:59]line Контрольно-Кассовый Чек [02:21:59]line ПРОДАЖА [02:21:59]line Товар: 4700000481514 [02:21:59]line ПИВО СВЕТЛОЕ URBAN 312 1,0 л ПЭТ [02:21:59]line 1.000 * 176.00 [02:21:59]line = 176.00 [02:21:59]line НДС 12% НСП 1% [02:21:59]line > о реализуемом товаре [02:21:59]line ИТОГО: 176.00 [02:21:59]line НСП 1% : 1.56 [02:21:59]line НДС 12% : 18.69 [02:21:59]line Наличными: 176.00 [02:21:59]line Безнал.: 0.00 [02:21:59]line Место: АЗС № 140 "Партнер Нефть" [02:21:59]line Адрес: 720001, с. Чон-Капка, трасса Талас-Тараз, 42.724418, 71.565785 [02:21:59]line СНО: Общий режим [02:21:59]line Чек 10 17.07.2024 02:22 [02:22:00]line Смена: 372 ФФД: 1.0 [02:22:00]line ЗНМ: 0300000189 [02:22:00]line РНМ: 0000000000098025 [02:22:00]line Версия ККМ: 001 [02:22:00]line ФМ: 0000000000965389 [02:22:00]line ФД: 31836 [02:22:00]line ФПД: 172019780625321 [02:22:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240717T022205&type=1&operation_type=1&fn_number=0000000000965389&fd_number=31836&fm=172019780625321&tin=02508201610067®Number=0000000000098025&sum=17600 [02:22:00]line 0 [02:22:00]OFD Sender: Processing packet 31836 [packets to send 6, broken 5] [02:22:00]ProducePacketName [02:22:00]name=ofd_packets/00031836 [02:22:00]OFD Sender: To server: pG, [02:22:00]CommunicateWithHost lk.salyk.kg:30040 [02:22:00]ConnectInit lk.salyk.kg [02:22:00]written 0, free lines is 4095 [02:22:00]Connected sock=10 [02:22:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 35 01 00 00 36 AE 2D 01 E6 7B 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 35 31 34 06 04 2F 00 D0 9F D0 98 D0 92 D0 9E 20 D0 A1 D0 92 D0 95 D0 A2 D0 9B D0 9E D0 95 20 55 52 42 41 4E 20 33 31 32 20 31 2C 30 20 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 44 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 0A 00 00 00 F4 03 04 00 CD 2A 97 66 0E 04 04 00 74 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5C 7C 00 00 35 04 06 00 9C 73 79 EB 23 A9 47 F9 5C F2 DC 90 7D 1C [02:22:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 4F 00 00 00 5A 2C 47 00 E3 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 10 04 04 00 5C 7C 00 00 F4 03 04 00 D9 D6 96 66 B6 04 01 00 00 6A EA 99 80 59 C8 06 8F [02:22:00]CommunicateWithHost err = 0 [02:22:00]CheckOFDResponse [02:22:00]1017 (14) - 77093643461234 [02:22:00]1041 (16) - 0000000000965389 [02:22:00]1040 (4) - 31836 [02:22:00]1012 (4) - 16.07.2024 20:23 [02:22:00]1206 (1) - 0 [02:22:00]OFD Sender: Remove packet 31836 [02:22:00]ProducePacketName [02:22:00]name=ofd_packets/00031836 [02:22:00]NVStorageDeleteData [02:22:00]Write to MH i2c: 01 00 00 4F 3A 89 [02:22:00]Write i2c OK [02:22:00]MH_I2C_Read... [02:22:00]Read from MH i2c: 01 [02:22:00]MH_I2C_Read... [02:22:00]Read from MH i2c: 01 07 00 [02:22:00]MH_I2C_Read... [02:22:00]Read from MH i2c: 01 07 00 4F 3A 00 00 00 00 00 F2 0C 8E [02:22:00]RasterBufferAndPrint [02:22:00]line [02:22:00]line [02:22:00]line [02:22:00]line [02:22:00]line [02:22:00]written 0, free lines is 3320 [02:22:00]MH_Cut [02:22:00]Write to MH i2c: D1 01 00 56 3A 01 62 [02:22:00]Write i2c OK [02:22:00]MH_I2C_Read... [02:22:00]Read from MH i2c: D1 [02:22:00]MH_I2C_Read... [02:22:00]Read from MH i2c: D1 01 00 [02:22:00]MH_I2C_Read... [02:22:00]Read from MH i2c: D1 01 00 56 3A 00 61 [02:22:00]Write to MH i2c: 01 00 00 57 3A 91 [02:22:00]Write i2c OK [02:22:00]MH_I2C_Read... [02:22:01]OFD Sender: No OFD packet to send [02:22:01]*** Cut start [02:22:01]*** Partial cut [02:22:01]*** CUTSNS_PIN = 1 [02:22:01]*** CUTSNS_PIN = 0 [02:22:01]*** Brake cut motor [02:22:02]Read from MH i2c: 01 [02:22:02]MH_I2C_Read... [02:22:02]*** Stop cut motor [02:22:02]*** Cut end [02:22:02]Read from MH i2c: 01 07 00 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: 01 07 00 57 3A 00 00 00 00 00 FF 0F A6 [02:22:02]process_action close_receipt done [02:22:02]requested_data is exist [02:22:02]produce_requested_data [02:22:02]requested_item fm.sn is exist - process it [02:22:02]wFMCommunicate request_size=4 [02:22:02]MH_SAM_APDU [02:22:02]CAPDU: 80 11 00 00 [02:22:02]Write to MH i2c: E2 08 00 58 3A 80 11 00 00 00 00 00 00 0C [02:22:02]Write i2c OK [02:22:02]MH_I2C_Read... [02:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:22:02]Read from MH i2c: E2 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: E2 17 00 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: E2 17 00 58 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 67 [02:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 90 00 [02:22:02]wFMCommunicate OK [02:22:02]requested_item fd.num is exist - process it [02:22:02]SAM_PROTO_GetFieldsCounters [02:22:02]wFMCommunicate request_size=4 [02:22:02]MH_SAM_APDU [02:22:02]CAPDU: 80 13 00 00 [02:22:02]Write to MH i2c: E2 08 00 59 3A 80 13 00 00 00 00 00 00 0F [02:22:02]Write i2c OK [02:22:02]MH_I2C_Read... [02:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:22:02]Read from MH i2c: E2 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: E2 62 00 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: E2 62 00 59 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5C 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [02:22: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 35 33 38 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 38 30 32 35 10 04 04 00 5C 7C 00 00 0E 04 04 00 74 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:22:02]wFMCommunicate OK [02:22:02]SAM_PROTO_GetFieldsCounters done [02:22:02]requested_item shift.num is exist - process it [02:22:02]requested_item shift.opened is exist - process it [02:22:02]req_shift_opened [02:22:02]FM_GetShiftState [02:22:02]SAM_PROTO_GetShiftState [02:22:02]wFMCommunicate request_size=4 [02:22:02]MH_SAM_APDU [02:22:02]CAPDU: 80 13 01 00 [02:22:02]Write to MH i2c: E2 08 00 5A 3A 80 13 01 00 00 00 00 00 11 [02:22:02]Write i2c OK [02:22:02]MH_I2C_Read... [02:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:22:02]Read from MH i2c: E2 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: E2 0E 00 [02:22:02]MH_I2C_Read... [02:22:02]Read from MH i2c: E2 0E 00 5A 3A 00 09 00 01 6C 0A 97 66 00 00 00 00 90 00 90 [02:22:02]RAPDU: 09 00 01 6C 0A 97 66 00 00 00 00 90 00 [02:22:02]wFMCommunicate OK [02:22:02]SAM_PROTO_GetShiftState done [02:22:02]FM_GetShiftState done [02:22:02]req_shift_opened done [02:22:02]requested_item shift.open_date is exist - process it [02:22:02]req_shift_open_date [02:22:02]req_shift_open_date done [02:22:02]produce_requested_data done [02:22:02]produce_requested_data return {"fm.sn":"0000000000965389","fd.num":31836,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636} [02:22:02]process_action_free close_receipt [02:22:02]json_value_free [02:22:02]json_value_free done [02:22:02]process_json_proto returns [02:22:02]Send response to host [02:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965389","fd.num":31836,"shift.num":372,"shift.opened":1,"shift.open_date":1721174636}}} [02:22:02]free response buf [02:22:02]execute_script done [02:22:02]execute_script returns [02:22:02]free content buf [02:22:02]Sock 7.Close socket [02:22:02]Sock 7.Thread stoped [02:22:06]OFD Sender: No OFD packet to send [02:22:11]OFD Sender: No OFD packet to send [02:22:16]OFD Sender: No OFD packet to send [02:22:21]OFD Sender: No OFD packet to send [02:22:26]OFD Sender: No OFD packet to send [02:22:31]OFD Sender: No OFD packet to send [02:22:36]OFD Sender: No OFD packet to send [02:22:41]OFD Sender: No OFD packet to send [02:22:46]OFD Sender: No OFD packet to send [02:22:51]OFD Sender: No OFD packet to send [02:22:56]OFD Sender: No OFD packet to send [02:23:01]OFD Sender: No OFD packet to send [02:23:06]OFD Sender: No OFD packet to send [02:23:11]OFD Sender: No OFD packet to send [02:23:16]OFD Sender: No OFD packet to send [02:23:21]OFD Sender: No OFD packet to send [02:23:26]OFD Sender: No OFD packet to send [02:23:31]OFD Sender: No OFD packet to send [02:23:36]OFD Sender: No OFD packet to send [02:23:41]OFD Sender: No OFD packet to send [02:23:46]OFD Sender: No OFD packet to send [02:23:51]OFD Sender: No OFD packet to send [02:23:56]OFD Sender: No OFD packet to send [02:24:01]OFD Sender: No OFD packet to send [02:24:06]OFD Sender: No OFD packet to send [02:24:11]OFD Sender: No OFD packet to send [02:24:16]OFD Sender: No OFD packet to send [02:24:21]OFD Sender: No OFD packet to send [02:24:26]OFD Sender: No OFD packet to send [02:24:31]OFD Sender: No OFD packet to send [02:24:36]OFD Sender: No OFD packet to send [02:24:41]OFD Sender: No OFD packet to send [02:24:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:06]OFD Sender: No OFD packet to send [02:32:11]OFD Sender: No OFD packet to send [02:32:16]OFD Sender: No OFD packet to send [02:32:21]OFD Sender: No OFD packet to send [02:32:26]OFD Sender: No OFD packet to send [02:32:31]OFD Sender: No OFD packet to send [02:32:36]OFD Sender: No OFD packet to send [02:32:41]OFD Sender: No OFD packet to send [02:32:46]OFD Sender: No OFD packet to send [02:32:51]OFD Sender: No OFD packet to send [02:32:56]OFD Sender: No OFD packet to send [02:33:01]OFD Sender: No OFD packet to send [02:33:06]OFD Sender: No OFD packet to send [02:33:11]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:06]OFD Sender: No OFD packet to send [02:37:11]OFD Sender: No OFD packet to send [02:37:16]OFD Sender: No OFD packet to send [02:37:21]OFD Sender: No OFD packet to send [02:37:26]OFD Sender: No OFD packet to send [02:37:31]OFD Sender: No OFD packet to send [02:37:36]OFD Sender: No OFD packet to send [02:37:41]OFD Sender: No OFD packet to send [02:37:46]OFD Sender: No OFD packet to send [02:37:51]OFD Sender: No OFD packet to send [02:37:56]OFD Sender: No OFD packet to send [02:38:01]OFD Sender: No OFD packet to send [02:38:06]OFD Sender: No OFD packet to send [02:38:11]OFD Sender: No OFD packet to send [02:38:16]OFD Sender: No OFD packet to send [02:38:21]OFD Sender: No OFD packet to send [02:38:26]OFD Sender: No OFD packet to send [02:38:31]OFD Sender: No OFD packet to send [02:38:36]OFD Sender: No OFD packet to send [02:38:41]OFD Sender: No OFD packet to send [02:38:46]OFD Sender: No OFD packet to send [02:38:51]OFD Sender: No OFD packet to send [02:38:56]OFD Sender: No OFD packet to send [02:39:01]OFD Sender: No OFD packet to send [02:39:06]OFD Sender: No OFD packet to send [02:39:11]OFD Sender: No OFD packet to send [02:39:16]OFD Sender: No OFD packet to send [02:39:21]OFD Sender: No OFD packet to send [02:39:26]OFD Sender: No OFD packet to send [02:39:31]OFD Sender: No OFD packet to send [02:39:36]OFD Sender: No OFD packet to send [02:39:41]OFD Sender: No OFD packet to send [02:39:46]OFD Sender: No OFD packet to send [02:39:51]OFD Sender: No OFD packet to send [02:39:56]OFD Sender: No OFD packet to send [02:40:01]OFD Sender: No OFD packet to send [02:40:06]OFD Sender: No OFD packet to send [02:40:11]OFD Sender: No OFD packet to send [02:40:16]OFD Sender: No OFD packet to send [02:40:21]OFD Sender: No OFD packet to send [02:40:26]OFD Sender: No OFD packet to send [02:40:31]OFD Sender: No OFD packet to send [02:40:36]OFD Sender: No OFD packet to send [02:40:41]OFD Sender: No OFD packet to send [02:40:46]OFD Sender: No OFD packet to send [02:40:51]OFD Sender: No OFD packet to send [02:40:56]OFD Sender: No OFD packet to send [02:41:01]OFD Sender: No OFD packet to send [02:41:06]OFD Sender: No OFD packet to send [02:41:11]OFD Sender: No OFD packet to send [02:41:17]OFD Sender: No OFD packet to send [02:41:22]OFD Sender: No OFD packet to send [02:41:27]OFD Sender: No OFD packet to send [02:41:32]OFD Sender: No OFD packet to send [02:41:37]OFD Sender: No OFD packet to send [02:41:42]OFD Sender: No OFD packet to send [02:41:47]OFD Sender: No OFD packet to send [02:41:52]OFD Sender: No OFD packet to send [02:41:57]OFD Sender: No OFD packet to send [02:42:02]OFD Sender: No OFD packet to send [02:42:07]OFD Sender: No OFD packet to send [02:42:12]OFD Sender: No OFD packet to send [02:42:17]OFD Sender: No OFD packet to send [02:42:22]OFD Sender: No OFD packet to send [02:42:27]OFD Sender: No OFD packet to send [02:42:32]OFD Sender: No OFD packet to send [02:42:37]OFD Sender: No OFD packet to send [02:42:42]OFD Sender: No OFD packet to send [02:42:47]OFD Sender: No OFD packet to send [02:42:52]OFD Sender: No OFD packet to send [02:42:57]OFD Sender: No OFD packet to send [02:43:02]OFD Sender: No OFD packet to send [02:43:07]OFD Sender: No OFD packet to send [02:43:12]OFD Sender: No OFD packet to send [02:43:17]OFD Sender: No OFD packet to send [02:43:22]OFD Sender: No OFD packet to send [02:43:27]OFD Sender: No OFD packet to send [02:43:32]OFD Sender: No OFD packet to send [02:43:37]OFD Sender: No OFD packet to send [02:43:42]OFD Sender: No OFD packet to send [02:43:47]OFD Sender: No OFD packet to send [02:43:52]OFD Sender: No OFD packet to send [02:43:57]OFD Sender: No OFD packet to send [02:44:02]OFD Sender: No OFD packet to send [02:44:07]OFD Sender: No OFD packet to send [02:44:12]OFD Sender: No OFD packet to send [02:44:17]OFD Sender: No OFD packet to send [02:44:22]OFD Sender: No OFD packet to send [02:44:27]OFD Sender: No OFD packet to send [02:44:32]OFD Sender: No OFD packet to send [02:44:37]OFD Sender: No OFD packet to send [02:44:42]OFD Sender: No OFD packet to send [02:44:47]OFD Sender: No OFD packet to send [02:44:52]OFD Sender: No OFD packet to send [02:44:57]OFD Sender: No OFD packet to send [02:45:02]OFD Sender: No OFD packet to send [02:45:07]OFD Sender: No OFD packet to send [02:45:12]OFD Sender: No OFD packet to send [02:45:17]OFD Sender: No OFD packet to send [02:45:22]OFD Sender: No OFD packet to send [02:45:27]OFD Sender: No OFD packet to send [02:45:32]OFD Sender: No OFD packet to send [02:45:37]OFD Sender: No OFD packet to send [02:45:42]OFD Sender: No OFD packet to send [02:45:47]OFD Sender: No OFD packet to send [02:45:52]OFD Sender: No OFD packet to send [02:45:57]OFD Sender: No OFD packet to send [02:46:02]OFD Sender: No OFD packet to send [02:46:07]OFD Sender: No OFD packet to send [02:46:12]OFD Sender: No OFD packet to send [02:46:17]OFD Sender: No OFD packet to send [02:46:22]OFD Sender: No OFD packet to send [02:46:27]OFD Sender: No OFD packet to send [02:46:32]OFD Sender: No OFD packet to send [02:46:37]OFD Sender: No OFD packet to send [02:46:42]OFD Sender: No OFD packet to send [02:46:47]OFD Sender: No OFD packet to send [02:46:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]OFD Sender: No OFD packet to send [02:51:12]OFD Sender: No OFD packet to send [02:51:17]OFD Sender: No OFD packet to send [02:51:22]OFD Sender: No OFD packet to send [02:51:27]OFD Sender: No OFD packet to send [02:51:32]OFD Sender: No OFD packet to send [02:51:37]OFD Sender: No OFD packet to send [02:51:42]OFD Sender: No OFD packet to send [02:51:47]OFD Sender: No OFD packet to send [02:51:52]OFD Sender: No OFD packet to send [02:51:57]OFD Sender: No OFD packet to send [02:52:02]OFD Sender: No OFD packet to send [02:52:07]OFD Sender: No OFD packet to send [02:52:12]OFD Sender: No OFD packet to send [02:52:17]OFD Sender: No OFD packet to send [02:52:22]OFD Sender: No OFD packet to send [02:52:27]OFD Sender: No OFD packet to send [02:52:32]OFD Sender: No OFD packet to send [02:52:37]OFD Sender: No OFD packet to send [02:52:42]OFD Sender: No OFD packet to send [02:52:47]OFD Sender: No OFD packet to send [02:52:52]OFD Sender: No OFD packet to send [02:52:57]OFD Sender: No OFD packet to send [02:53:02]OFD Sender: No OFD packet to send [02:53:07]OFD Sender: No OFD packet to send [02:53:12]OFD Sender: No OFD packet to send [02:53:17]OFD Sender: No OFD packet to send [02:53:22]OFD Sender: No OFD packet to send [02:53:27]OFD Sender: No OFD packet to send [02:53:32]OFD Sender: No OFD packet to send [02:53:37]OFD Sender: No OFD packet to send [02:53:42]OFD Sender: No OFD packet to send [02:53:47]OFD Sender: No OFD packet to send [02:53:52]OFD Sender: No OFD packet to send [02:53:57]OFD Sender: No OFD packet to send [02:54:02]OFD Sender: No OFD packet to send [02:54:07]OFD Sender: No OFD packet to send [02:54:12]OFD Sender: No OFD packet to send [02:54:17]OFD Sender: No OFD packet to send [02:54:22]OFD Sender: No OFD packet to send [02:54:27]OFD Sender: No OFD packet to send [02:54:32]OFD Sender: No OFD packet to send [02:54:37]OFD Sender: No OFD packet to send [02:54:42]OFD Sender: No OFD packet to send [02:54:47]OFD Sender: No OFD packet to send [02:54:52]OFD Sender: No OFD packet to send [02:54:57]OFD Sender: No OFD packet to send [02:55:02]OFD Sender: No OFD packet to send [02:55:07]OFD Sender: No OFD packet to send [02:55:12]OFD Sender: No OFD packet to send [02:55:17]OFD Sender: No OFD packet to send [02:55:22]OFD Sender: No OFD packet to send [02:55:27]OFD Sender: No OFD packet to send [02:55:32]OFD Sender: No OFD packet to send [02:55:37]OFD Sender: No OFD packet to send [02:55:42]OFD Sender: No OFD packet to send [02:55:47]OFD Sender: No OFD packet to send [02:55:52]OFD Sender: No OFD packet to send [02:55:57]OFD Sender: No OFD packet to send [02:56:02]OFD Sender: No OFD packet to send [02:56:07]OFD Sender: No OFD packet to send [02:56:12]OFD Sender: No OFD packet to send [02:56:17]OFD Sender: No OFD packet to send [02:56:22]OFD Sender: No OFD packet to send [02:56:27]OFD Sender: No OFD packet to send [02:56:32]OFD Sender: No OFD packet to send [02:56:37]OFD Sender: No OFD packet to send [02:56:42]OFD Sender: No OFD packet to send [02:56:47]OFD Sender: No OFD packet to send [02:56:52]OFD Sender: No OFD packet to send [02:56:57]OFD Sender: No OFD packet to send [02:57:02]OFD Sender: No OFD packet to send [02:57:07]OFD Sender: No OFD packet to send [02:57:12]OFD Sender: No OFD packet to send [02:57:17]OFD Sender: No OFD packet to send [02:57:22]OFD Sender: No OFD packet to send [02:57:27]OFD Sender: No OFD packet to send [02:57:32]OFD Sender: No OFD packet to send [02:57:37]OFD Sender: No OFD packet to send [02:57:42]OFD Sender: No OFD packet to send [02:57:47]OFD Sender: No OFD packet to send [02:57:52]OFD Sender: No OFD packet to send [02:57:57]OFD Sender: No OFD packet to send [02:58:02]OFD Sender: No OFD packet to send