[02:59:22]OFD Sender: No OFD packet to send [02:59:27]OFD Sender: No OFD packet to send [02:59:32]OFD Sender: No OFD packet to send [02:59:37]OFD Sender: No OFD packet to send [02:59:42]OFD Sender: No OFD packet to send [02:59:47]OFD Sender: No OFD packet to send [02:59:52]OFD Sender: No OFD packet to send [02:59:57]OFD Sender: No OFD packet to send [03:00:02]OFD Sender: No OFD packet to send [03:00:07]OFD Sender: No OFD packet to send [03:00:12]OFD Sender: No OFD packet to send [03:00:17]OFD Sender: No OFD packet to send [03:00:22]OFD Sender: No OFD packet to send [03:00:27]OFD Sender: No OFD packet to send [03:00:32]OFD Sender: No OFD packet to send [03:00:37]OFD Sender: No OFD packet to send [03:00:42]OFD Sender: No OFD packet to send [03:00:47]OFD Sender: No OFD packet to send [03:00:52]OFD Sender: No OFD packet to send [03:00:57]OFD Sender: No OFD packet to send [03:01:02]OFD Sender: No OFD packet to send [03:01:07]OFD Sender: No OFD packet to send [03:01:12]OFD Sender: No OFD packet to send [03:01:17]OFD Sender: No OFD packet to send [03:01:22]OFD Sender: No OFD packet to send [03:01:27]OFD Sender: No OFD packet to send [03:01:32]OFD Sender: No OFD packet to send [03:01:37]OFD Sender: No OFD packet to send [03:01:42]OFD Sender: No OFD packet to send [03:01:47]OFD Sender: No OFD packet to send [03:01:52]OFD Sender: No OFD packet to send [03:01:57]OFD Sender: No OFD packet to send [03:02:02]OFD Sender: No OFD packet to send [03:02:07]OFD Sender: No OFD packet to send [03:02:12]OFD Sender: No OFD packet to send [03:02:17]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]OFD Sender: No OFD packet to send [03:08:12]OFD Sender: No OFD packet to send [03:08:17]OFD Sender: No OFD packet to send [03:08:22]OFD Sender: No OFD packet to send [03:08:27]OFD Sender: No OFD packet to send [03:08:32]OFD Sender: No OFD packet to send [03:08:37]OFD Sender: No OFD packet to send [03:08:42]OFD Sender: No OFD packet to send [03:08:47]OFD Sender: No OFD packet to send [03:08:52]OFD Sender: No OFD packet to send [03:08:57]OFD Sender: No OFD packet to send [03:09:02]OFD Sender: No OFD packet to send [03:09:07]OFD Sender: No OFD packet to send [03:09:12]OFD Sender: No OFD packet to send [03:09:17]OFD Sender: No OFD packet to send [03:09:22]OFD Sender: No OFD packet to send [03:09:27]OFD Sender: No OFD packet to send [03:09:32]OFD Sender: No OFD packet to send [03:09:37]OFD Sender: No OFD packet to send [03:09:42]OFD Sender: No OFD packet to send [03:09:47]OFD Sender: No OFD packet to send [03:09:52]OFD Sender: No OFD packet to send [03:09:57]OFD Sender: No OFD packet to send [03:10:02]OFD Sender: No OFD packet to send [03:10:07]OFD Sender: No OFD packet to send [03:10:12]OFD Sender: No OFD packet to send [03:10:17]OFD Sender: No OFD packet to send [03:10:22]OFD Sender: No OFD packet to send [03:10:27]OFD Sender: No OFD packet to send [03:10:32]OFD Sender: No OFD packet to send [03:10: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:53]OFD Sender: No OFD packet to send [03:26:58]OFD Sender: No OFD packet to send [03:27:03]OFD Sender: No OFD packet to send [03:27:08]OFD Sender: No OFD packet to send [03:27:13]OFD Sender: No OFD packet to send [03:27:18]OFD Sender: No OFD packet to send [03:27:23]OFD Sender: No OFD packet to send [03:27:28]OFD Sender: No OFD packet to send [03:27:33]OFD Sender: No OFD packet to send [03:27:38]OFD Sender: No OFD packet to send [03:27:43]OFD Sender: No OFD packet to send [03:27:48]OFD Sender: No OFD packet to send [03:27:53]OFD Sender: No OFD packet to send [03:27:58]OFD Sender: No OFD packet to send [03:28:03]OFD Sender: No OFD packet to send [03:28:08]OFD Sender: No OFD packet to send [03:28:13]OFD Sender: No OFD packet to send [03:28:18]OFD Sender: No OFD packet to send [03:28:23]OFD Sender: No OFD packet to send [03:28:28]OFD Sender: No OFD packet to send [03:28:33]OFD Sender: No OFD packet to send [03:28:38]OFD Sender: No OFD packet to send [03:28:43]OFD Sender: No OFD packet to send [03:28:48]OFD Sender: No OFD packet to send [03:28:53]OFD Sender: No OFD packet to send [03:28:58]OFD Sender: No OFD packet to send [03:29:03]OFD Sender: No OFD packet to send [03:29:08]OFD Sender: No OFD packet to send [03:29:13]OFD Sender: No OFD packet to send [03:29:18]OFD Sender: No OFD packet to send [03:29:23]OFD Sender: No OFD packet to send [03:29:28]OFD Sender: No OFD packet to send [03:29:33]OFD Sender: No OFD packet to send [03:29:38]OFD Sender: No OFD packet to send [03:29:43]OFD Sender: No OFD packet to send [03:29:48]OFD Sender: No OFD packet to send [03:29:53]OFD Sender: No OFD packet to send [03:29:58]OFD Sender: No OFD packet to send [03:30:03]OFD Sender: No OFD packet to send [03:30:08]OFD Sender: No OFD packet to send [03:30:13]OFD Sender: No OFD packet to send [03:30:18]OFD Sender: No OFD packet to send [03:30:23]OFD Sender: No OFD packet to send [03:30:28]OFD Sender: No OFD packet to send [03:30:33]OFD Sender: No OFD packet to send [03:30:38]OFD Sender: No OFD packet to send [03:30:43]OFD Sender: No OFD packet to send [03:30:48]OFD Sender: No OFD packet to send [03:30:53]OFD Sender: No OFD packet to send [03:30:58]OFD Sender: No OFD packet to send [03:31:03]OFD Sender: No OFD packet to send [03:31:08]OFD Sender: No OFD packet to send [03:31:13]OFD Sender: No OFD packet to send [03:31:18]OFD Sender: No OFD packet to send [03:31:23]OFD Sender: No OFD packet to send [03:31:28]OFD Sender: No OFD packet to send [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32: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:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]OFD Sender: No OFD packet to send [03:41:04]OFD Sender: No OFD packet to send [03:41:09]OFD Sender: No OFD packet to send [03:41:14]OFD Sender: No OFD packet to send [03:41:19]OFD Sender: No OFD packet to send [03:41:24]OFD Sender: No OFD packet to send [03:41:29]OFD Sender: No OFD packet to send [03:41:34]OFD Sender: No OFD packet to send [03:41:39]OFD Sender: No OFD packet to send [03:41:44]OFD Sender: No OFD packet to send [03:41:49]OFD Sender: No OFD packet to send [03:41:54]OFD Sender: No OFD packet to send [03:41:59]OFD Sender: No OFD packet to send [03:42:04]OFD Sender: No OFD packet to send [03:42:09]OFD Sender: No OFD packet to send [03:42:14]OFD Sender: No OFD packet to send [03:42:19]OFD Sender: No OFD packet to send [03:42:24]OFD Sender: No OFD packet to send [03:42:29]OFD Sender: No OFD packet to send [03:42:34]OFD Sender: No OFD packet to send [03:42:39]OFD Sender: No OFD packet to send [03:42:44]OFD Sender: No OFD packet to send [03:42:49]OFD Sender: No OFD packet to send [03:42:54]OFD Sender: No OFD packet to send [03:42:59]OFD Sender: No OFD packet to send [03:43:04]OFD Sender: No OFD packet to send [03:43:09]OFD Sender: No OFD packet to send [03:43:14]OFD Sender: No OFD packet to send [03:43:19]OFD Sender: No OFD packet to send [03:43:24]OFD Sender: No OFD packet to send [03:43:29]OFD Sender: No OFD packet to send [03:43:34]OFD Sender: No OFD packet to send [03:43:39]OFD Sender: No OFD packet to send [03:43:44]OFD Sender: No OFD packet to send [03:43:49]OFD Sender: No OFD packet to send [03:43:54]OFD Sender: No OFD packet to send [03:43:59]OFD Sender: No OFD packet to send [03:44:04]OFD Sender: No OFD packet to send [03:44:09]OFD Sender: No OFD packet to send [03:44:14]OFD Sender: No OFD packet to send [03:44:19]OFD Sender: No OFD packet to send [03:44:24]OFD Sender: No OFD packet to send [03:44:29]OFD Sender: No OFD packet to send [03:44:34]OFD Sender: No OFD packet to send [03:44:39]OFD Sender: No OFD packet to send [03:44:44]OFD Sender: No OFD packet to send [03:44:49]OFD Sender: No OFD packet to send [03:44:54]OFD Sender: No OFD packet to send [03:44:59]OFD Sender: No OFD packet to send [03:45:04]OFD Sender: No OFD packet to send [03:45:09]OFD Sender: No OFD packet to send [03:45:14]OFD Sender: No OFD packet to send [03:45:19]OFD Sender: No OFD packet to send [03:45:24]OFD Sender: No OFD packet to send [03:45:29]OFD Sender: No OFD packet to send [03:45:34]OFD Sender: No OFD packet to send [03:45:39]OFD Sender: No OFD packet to send [03:45:44]OFD Sender: No OFD packet to send [03:45:49]OFD Sender: No OFD packet to send [03:45:54]OFD Sender: No OFD packet to send [03:45:59]OFD Sender: No OFD packet to send [03:46:04]OFD Sender: No OFD packet to send [03:46:09]OFD Sender: No OFD packet to send [03:46:14]OFD Sender: No OFD packet to send [03:46:19]OFD Sender: No OFD packet to send [03:46:24]OFD Sender: No OFD packet to send [03:46:29]OFD Sender: No OFD packet to send [03:46:34]OFD Sender: No OFD packet to send [03:46:39]OFD Sender: No OFD packet to send [03:46:44]OFD Sender: No OFD packet to send [03:46:49]OFD Sender: No OFD packet to send [03:46:54]OFD Sender: No OFD packet to send [03:46:59]OFD Sender: No OFD packet to send [03:47:04]OFD Sender: No OFD packet to send [03:47:09]OFD Sender: No OFD packet to send [03:47:14]OFD Sender: No OFD packet to send [03:47:19]OFD Sender: No OFD packet to send [03:47:24]OFD Sender: No OFD packet to send [03:47:29]OFD Sender: No OFD packet to send [03:47:34]OFD Sender: No OFD packet to send [03:47:39]OFD Sender: No OFD packet to send [03:47:44]OFD Sender: No OFD packet to send [03:47:49]OFD Sender: No OFD packet to send [03:47:54]OFD Sender: No OFD packet to send [03:47:59]OFD Sender: No OFD packet to send [03:48:04]OFD Sender: No OFD packet to send [03:48:09]OFD Sender: No OFD packet to send [03:48:14]OFD Sender: No OFD packet to send [03:48:19]OFD Sender: No OFD packet to send [03:48:24]OFD Sender: No OFD packet to send [03:48:29]OFD Sender: No OFD packet to send [03:48:34]OFD Sender: No OFD packet to send [03:48:39]OFD Sender: No OFD packet to send [03:48:44]OFD Sender: No OFD packet to send [03:48:49]OFD Sender: No OFD packet to send [03:48:54]OFD Sender: No OFD packet to send [03:48:59]OFD Sender: No OFD packet to send [03:49:04]OFD Sender: No OFD packet to send [03:49:09]OFD Sender: No OFD packet to send [03:49:14]OFD Sender: No OFD packet to send [03:49:19]OFD Sender: No OFD packet to send [03:49:24]OFD Sender: No OFD packet to send [03:49:29]OFD Sender: No OFD packet to send [03:49:34]OFD Sender: No OFD packet to send [03:49:39]OFD Sender: No OFD packet to send [03:49:44]OFD Sender: No OFD packet to send [03:49:49]OFD Sender: No OFD packet to send [03:49:54]OFD Sender: No OFD packet to send [03:49:59]OFD Sender: No OFD packet to send [03:50:04]OFD Sender: No OFD packet to send [03:50:09]OFD Sender: No OFD packet to send [03:50:14]OFD Sender: No OFD packet to send [03:50:19]OFD Sender: No OFD packet to send [03:50:24]OFD Sender: No OFD packet to send [03:50:29]OFD Sender: No OFD packet to send [03:50:34]OFD Sender: No OFD packet to send [03:50:39]OFD Sender: No OFD packet to send [03:50:44]OFD Sender: No OFD packet to send [03:50:49]OFD Sender: No OFD packet to send [03:50:54]OFD Sender: No OFD packet to send [03:50:59]OFD Sender: No OFD packet to send [03:51:04]OFD Sender: No OFD packet to send [03:51:09]OFD Sender: No OFD packet to send [03:51:14]OFD Sender: No OFD packet to send [03:51:19]OFD Sender: No OFD packet to send [03:51:24]OFD Sender: No OFD packet to send [03:51:29]OFD Sender: No OFD packet to send [03:51:34]OFD Sender: No OFD packet to send [03:51:39]OFD Sender: No OFD packet to send [03:51:44]OFD Sender: No OFD packet to send [03:51:49]OFD Sender: No OFD packet to send [03:51:54]OFD Sender: No OFD packet to send [03:51:59]OFD Sender: No OFD packet to send [03:52:04]OFD Sender: No OFD packet to send [03:52:09]OFD Sender: No OFD packet to send [03:52:14]OFD Sender: No OFD packet to send [03:52:19]OFD Sender: No OFD packet to send [03:52:24]OFD Sender: No OFD packet to send [03:52:29]OFD Sender: No OFD packet to send [03:52:34]OFD Sender: No OFD packet to send [03:52:39]OFD Sender: No OFD packet to send [03:52:44]OFD Sender: No OFD packet to send [03:52:49]OFD Sender: No OFD packet to send [03:52:54]OFD Sender: No OFD packet to send [03:52:59]OFD Sender: No OFD packet to send [03:53:04]OFD Sender: No OFD packet to send [03:53:09]OFD Sender: No OFD packet to send [03:53:14]OFD Sender: No OFD packet to send [03:53:19]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:54:00]OFD Sender: No OFD packet to send [03:54:05]OFD Sender: No OFD packet to send [03:54:10]OFD Sender: No OFD packet to send [03:54:15]OFD Sender: No OFD packet to send [03:54:20]OFD Sender: No OFD packet to send [03:54:25]OFD Sender: No OFD packet to send [03:54:30]OFD Sender: No OFD packet to send [03:54:35]OFD Sender: No OFD packet to send [03:54:40]OFD Sender: No OFD packet to send [03:54:45]OFD Sender: No OFD packet to send [03:54:50]OFD Sender: No OFD packet to send [03:54:55]OFD Sender: No OFD packet to send [03:55:00]OFD Sender: No OFD packet to send [03:55:05]OFD Sender: No OFD packet to send [03:55:10]OFD Sender: No OFD packet to send [03:55:15]OFD Sender: No OFD packet to send [03:55:20]OFD Sender: No OFD packet to send [03:55:25]OFD Sender: No OFD packet to send [03:55:30]OFD Sender: No OFD packet to send [03:55:35]OFD Sender: No OFD packet to send [03:55:40]OFD Sender: No OFD packet to send [03:55:45]OFD Sender: No OFD packet to send [03:55:50]OFD Sender: No OFD packet to send [03:55:55]OFD Sender: No OFD packet to send [03:56:00]OFD Sender: No OFD packet to send [03:56:05]OFD Sender: No OFD packet to send [03:56:10]OFD Sender: No OFD packet to send [03:56:15]OFD Sender: No OFD packet to send [03:56:20]OFD Sender: No OFD packet to send [03:56:25]OFD Sender: No OFD packet to send [03:56:30]OFD Sender: No OFD packet to send [03:56:35]OFD Sender: No OFD packet to send [03:56:40]OFD Sender: No OFD packet to send [03:56:45]OFD Sender: No OFD packet to send [03:56:50]OFD Sender: No OFD packet to send [03:56:55]OFD Sender: No OFD packet to send [03:57:00]OFD Sender: No OFD packet to send [03:57:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:49]accept exits with 8 [04:12:49]New connection [04:12:49]New thread 3067587940 created [04:12:49]Thread 3067444580 joined [04:12:49]Waiting for new connection... [04:12:49] Sock 8.Parse request [04:12:49]Sock 8.Check first char [04:12:49]Sock 8.First char is OK [04:12:49]request: POST /json_proto HTTP/1.0 [04:12:49]Method: POST [04:12:49]URL: /json_proto [04:12:49]Method is POST - this is cgi request [04:12:49]url: /json_proto [04:12:49]query_string will be loaded in cgi processing [04:12:49]execute_cgi json_proto POST (null) [04:12:49]execute_cgi path=json_proto method=POST [04:12:49]POST find Content-Length [04:12:49]Host: 172.17.44.4:8080 [04:12:49]Content-Length: 711 [04:12:49]Content-Type: application/json [04:12:49] [04:12:49]POST finish read [04:12:49]Found Content-Length = 711 [04:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140959", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "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" ] } } [04:12:49]execute_script... [04: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)140959", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "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" ] } } [04:12:49]POST & json_proto [04:12:49]process_json_proto [04:12:49]json parsed OK: [04:12:49]protocol is kg_v1.0 [04:12:49]action value=close_receipt [04:12:49]process_action close_receipt [04:12:49]cmd_close_receipt [04:12:49]MH_GetDate [04:12:49]Write to MH i2c: F0 00 00 3C 31 5C [04:12:49]Write i2c OK [04:12:49]MH_I2C_Read... [04:12:49]Read from MH i2c: F0 [04:12:49]MH_I2C_Read... [04:12:49]Read from MH i2c: F0 09 00 [04:12:49]MH_I2C_Read... [04:12:49]Read from MH i2c: F0 09 00 3C 31 00 C7 87 45 66 6C E9 28 66 41 [04:12:49]GetLastDocTimeStamp 1715824115 [04:12:49]current date 1715832775 [04:12:49]FM_GetShiftState [04:12:49]SAM_PROTO_GetShiftState [04:12:49]wFMCommunicate request_size=4 [04:12:49]MH_SAM_APDU [04:12:49]CAPDU: 80 13 01 00 [04:12:49]Write to MH i2c: E2 08 00 3D 31 80 13 01 00 00 00 00 00 EB [04:12:49]Write i2c OK [04:12:49]MH_I2C_Read... [04:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:49]Read from MH i2c: E2 [04:12:49]MH_I2C_Read... [04:12:49]Read from MH i2c: E2 0E 00 [04:12:49]MH_I2C_Read... [04:12:49]Read from MH i2c: E2 0E 00 3D 31 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F7 [04:12:49]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [04:12:49]wFMCommunicate OK [04:12:49]SAM_PROTO_GetShiftState done [04:12:49]FM_GetShiftState done [04:12:49]opened in 1715818246 [04:12:49]opened+sec_in_day 1715904646 [04:12:49]quantity*price = 15000 [04:12:49]sum+1 = 15001 [04:12:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 6 16.05.2024 04:12 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4946 ФПД: 45015466010666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T041255&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4946&fm=45015466010666&tin=02508201610067®Number=0000000000154221&sum=15000 0 [04:12:50]StoreToDocumentArchive [04:12:50]shift 44 fd 4946 [04:12:50]save to /storage/0044/doc_00004946 [04:12:50]save last doc name /storage/0044/doc_00004946 to /storage/kkm_last_doc_name [04:12:50]save OK [04:12:50]Clear old archive folders... [04:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=304 [04:12:50]tlvbuf is 00D552C0 [04:12:50]SAM_PROTO_ClearQueue [04:12:50]wFMCommunicate request_size=4 [04:12:50]MH_SAM_APDU [04:12:50]CAPDU: 80 09 00 00 [04:12:50]Write to MH i2c: E2 08 00 4A 31 80 09 00 00 00 00 00 00 ED [04:12:50]Write i2c OK [04:12:50]MH_I2C_Read... [04:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:12:50]Read from MH i2c: E2 [04:12:50]MH_I2C_Read... [04:12:50]Read from MH i2c: E2 03 00 [04:12:50]MH_I2C_Read... [04:12:50]Read from MH i2c: E2 03 00 4A 31 00 90 00 EF [04:12:50]RAPDU: 90 00 [04:12:50]wFMCommunicate OK [04:12:50]SAM_PROTO_ClearQueue done [04:12:50]KKMCreateOFDPacket [04:12:50]OFDProtocolAddRootSTLVToBuf [04:12:50]FM_MakeSignedData [04:12:50]FM_MakeSignedData [04:12:50]SAM_PROTO_SignData [04:12:50]wFMCommunicate request_size=4 [04:12:50]MH_SAM_APDU [04:12:50]CAPDU: 80 0D 01 02 [04:12:50]Write to MH i2c: E2 08 00 4B 31 80 0D 01 02 00 00 00 00 F5 [04:12:50]Write i2c OK [04:12:50]MH_I2C_Read... [04:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:12:50]Read from MH i2c: E2 [04:12:50]MH_I2C_Read... [04:12:50]Read from MH i2c: E2 03 00 [04:12:50]MH_I2C_Read... [04:12:50]Read from MH i2c: E2 03 00 4B 31 00 90 00 F0 [04:12:50]RAPDU: 90 00 [04:12:50]wFMCommunicate OK [04:12:50]wFMCommunicate request_size=255 [04:12:50]MH_SAM_APDU [04: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 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 06 00 00 00 F4 03 04 00 C7 87 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 [04:12:50]Write to MH i2c: E2 02 01 4C 31 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 06 00 00 00 F4 03 04 00 C7 87 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 00 00 6E [04:12:50]Write i2c OK [04:12:50]MH_I2C_Read... [04:12:50]OFD Sender: No OFD packet to send [04:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:51]Read from MH i2c: E2 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: E2 03 00 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: E2 03 00 4C 31 00 90 00 F1 [04:12:51]RAPDU: 90 00 [04:12:51]wFMCommunicate OK [04:12:51]wFMCommunicate request_size=63 [04:12:51]MH_SAM_APDU [04:12:51]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 52 13 00 00 35 04 06 00 28 F0 FA DC 68 2A [04:12:51]Write to MH i2c: E2 42 00 4D 31 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 52 13 00 00 35 04 06 00 28 F0 FA DC 68 2A 00 00 1F [04:12:51]Write i2c OK [04:12:51]MH_I2C_Read... [04:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:12:51]Read from MH i2c: E2 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: E2 03 00 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: E2 03 00 4D 31 00 90 00 F2 [04:12:51]RAPDU: 90 00 [04:12:51]wFMCommunicate OK [04:12:51]wFMCommunicate request_size=4 [04:12:51]MH_SAM_APDU [04:12:51]CAPDU: 80 0D 03 02 [04:12:51]Write to MH i2c: E2 08 00 4E 31 80 0D 03 02 00 00 00 00 FA [04:12:51]Write i2c OK [04:12:51]MH_I2C_Read... [04:12:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:12:51]Read from MH i2c: E2 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: E2 0B 00 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: E2 0B 00 4E 31 00 D4 8F 70 A5 9D 99 07 92 90 00 42 [04:12:51]RAPDU: D4 8F 70 A5 9D 99 07 92 90 00 [04:12:51]wFMCommunicate OK [04:12:51]SAM_PROTO_SignData done [04:12:51]FM_MakeSignedData done [04:12:51]CreateOFDProtocolMessage [04:12:51]wFMCommunicate request_size=4 [04:12:51]MH_SAM_APDU [04:12:51]CAPDU: 80 11 00 00 [04:12:51]Write to MH i2c: E2 08 00 4F 31 80 11 00 00 00 00 00 00 FA [04:12:51]Write i2c OK [04:12:51]MH_I2C_Read... [04:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:51]Read from MH i2c: E2 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: E2 17 00 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: E2 17 00 4F 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 4F [04:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [04:12:51]wFMCommunicate OK [04:12:51]CreateOFDProtocolMessage done [04:12:51]OFDSenderStorePacket 4946 [04:12:51]StoreOFDPacket docnum=4946 [04:12:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 44 01 00 00 63 F2 3C 01 3A 6D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 06 00 00 00 F4 03 04 00 C7 87 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 52 13 00 00 35 04 06 00 28 F0 FA DC 68 2A D4 8F 70 A5 9D 99 07 92 [04:12:51]CheckFolder [04:12:51]dirname=/storage/ofd_packets [04:12:51]CheckFolder done [04:12:51]ProducePacketName [04:12:51]name=ofd_packets/00004946 [04:12:51]NVStorageSaveData ofd_packets/00004946 [04:12:51]File name is /storage/ofd_packets/00004946 [04:12:51]Write 354 bytes [04:12:51]NVStorageSaveData done [04:12:51]OFDSenderStorePacket done [04:12:51]KKMCreateOFDPacket done [04:12:51]NVStorageSaveData kkm_last_timestamp [04:12:51]File name is /storage/kkm_last_timestamp [04:12:51]Write 4 bytes [04:12:51]NVStorageSaveData done [04:12:51]ExternCall_PrintAddStr [04:12:51]wPrintStart [04:12:51]Write to MH i2c: 01 00 00 50 31 81 [04:12:51]Write i2c OK [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: 01 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: 01 07 00 [04:12:51]MH_I2C_Read... [04:12:51]Read from MH i2c: 01 07 00 50 31 00 00 00 00 00 FF 0F 96 [04:12:51]RasterBufferAndPrint [04:12:51]line Счет N : (3)140959 [04:12:51]line ИНН: 02508201610067 [04:12:51]line Контрольно-Кассовый Чек [04:12:51]line ПРОДАЖА [04:12:51]line Товар: 4870112003956 [04:12:51]line Шок батончик ALBENI SUPER Альбени Супер [04:12:51]line 2.000 * 75.00 [04:12:51]line = 150.00 [04:12:51]line НДС 12% НСП 1% [04:12:51]line > о реализуемом товаре [04:12:51]line ИТОГО: 150.00 [04:12:51]line НСП 1% : 1.33 [04:12:51]line НДС 12% : 15.93 [04:12:51]line Наличными: 150.00 [04:12:51]line Безнал.: 0.00 [04:12:51]line Место: АЗС № 135 "Партнер Нефть" [04:12:51]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [04:12:51]line СНО: Общий режим [04:12:51]line Чек 6 16.05.2024 04:12 [04:12:51]line Смена: 44 ФФД: 1.0 [04:12:51]line ЗНМ: 0300000237 [04:12:51]line РНМ: 0000000000154221 [04:12:51]line Версия ККМ: v1.0 [04:12:51]line ФМ: 0000000000963259 [04:12:51]line ФД: 4946 [04:12:51]line ФПД: 45015466010666 [04:12:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T041255&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4946&fm=45015466010666&tin=02508201610067®Number=0000000000154221&sum=15000 [04:12:51]line 0 [04:12:51]OFD Sender: Processing packet 4946 [packets to send 4, broken 3] [04:12:51]ProducePacketName [04:12:51]name=ofd_packets/00004946 [04:12:51]OFD Sender: To server: pG, [04:12:51]CommunicateWithHost lk.salyk.kg:30040 [04:12:51]ConnectInit lk.salyk.kg [04:12:51]written 0, free lines is 4095 [04:12:51]Connected sock=11 [04: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 33 32 35 39 44 01 00 00 63 F2 3C 01 3A 6D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 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 06 00 00 00 F4 03 04 00 C7 87 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 52 13 00 00 35 04 06 00 28 F0 FA DC 68 2A D4 8F 70 A5 9D 99 07 92 [04:12:52]Write to MH i2c: 01 00 00 79 31 AA [04:12:52]Write i2c OK [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: 01 [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: 01 07 00 [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: 01 07 00 79 31 00 00 00 00 00 65 0C 22 [04:12:52]RasterBufferAndPrint [04:12:52]line [04:12:52]line [04:12:52]line [04:12:52]line [04:12:52]line [04:12:52]written 0, free lines is 3178 [04:12:52]MH_Cut [04:12:52]Write to MH i2c: D1 01 00 80 31 01 83 [04:12:52]Write i2c OK [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: D1 [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: D1 01 00 [04:12:52]MH_I2C_Read... [04:12:52]Read from MH i2c: D1 01 00 80 31 00 82 [04:12:52]Write to MH i2c: 01 00 00 81 31 B2 [04:12:52]Write i2c OK [04:12:52]MH_I2C_Read... [04:12:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 7A DB 47 00 46 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 52 13 00 00 F4 03 04 00 8B 33 45 66 B6 04 01 00 00 30 F8 E1 FD 61 3B D8 CC [04:12:52]CommunicateWithHost err = 0 [04:12:52]CheckOFDResponse [04:12:52]1017 (14) - 77093643461234 [04:12:52]1041 (16) - 0000000000963259 [04:12:52]1040 (4) - 4946 [04:12:52]1012 (4) - 15.05.2024 22:13 [04:12:52]1206 (1) - 0 [04:12:52]OFD Sender: Remove packet 4946 [04:12:52]ProducePacketName [04:12:52]name=ofd_packets/00004946 [04:12:52]NVStorageDeleteData [04:12:52]OFD Sender: No OFD packet to send [04:12:53]*** Cut start [04:12:53]*** Partial cut [04:12:53]*** CUTSNS_PIN = 1 [04:12:53]*** CUTSNS_PIN = 0 [04:12:53]*** Brake cut motor [04:12:53]Read from MH i2c: 01 [04:12:53]MH_I2C_Read... [04:12:53]*** Stop cut motor [04:12:53]*** Cut end [04:12:53]Read from MH i2c: 01 07 00 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: 01 07 00 81 31 00 00 00 00 00 FF 0F C7 [04:12:53]process_action close_receipt done [04:12:53]requested_data is exist [04:12:53]produce_requested_data [04:12:53]requested_item fm.sn is exist - process it [04:12:53]wFMCommunicate request_size=4 [04:12:53]MH_SAM_APDU [04:12:53]CAPDU: 80 11 00 00 [04:12:53]Write to MH i2c: E2 08 00 82 31 80 11 00 00 00 00 00 00 2D [04:12:53]Write i2c OK [04:12:53]MH_I2C_Read... [04:12:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:12:53]Read from MH i2c: E2 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: E2 17 00 [04:12:53]MH_I2C_Read... [04:12:53]Read from MH i2c: E2 17 00 82 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 82 [04:12:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [04:12:53]wFMCommunicate OK [04:12:53]requested_item fd.num is exist - process it [04:12:53]SAM_PROTO_GetFieldsCounters [04:12:53]wFMCommunicate request_size=4 [04:12:53]MH_SAM_APDU [04:12:53]CAPDU: 80 13 00 00 [04:12:53]Write to MH i2c: E2 08 00 83 31 80 13 00 00 00 00 00 00 30 [04:12:53]Write i2c OK [04:12:53]MH_I2C_Read... [04:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:12:54]Read from MH i2c: E2 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: E2 62 00 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: E2 62 00 83 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 52 13 00 00 0E 04 04 00 2C 00 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 EC [04:12:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 52 13 00 00 0E 04 04 00 2C 00 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 [04:12:54]wFMCommunicate OK [04:12:54]SAM_PROTO_GetFieldsCounters done [04:12:54]requested_item shift.num is exist - process it [04:12:54]requested_item shift.opened is exist - process it [04:12:54]req_shift_opened [04:12:54]FM_GetShiftState [04:12:54]SAM_PROTO_GetShiftState [04:12:54]wFMCommunicate request_size=4 [04:12:54]MH_SAM_APDU [04:12:54]CAPDU: 80 13 01 00 [04:12:54]Write to MH i2c: E2 08 00 84 31 80 13 01 00 00 00 00 00 32 [04:12:54]Write i2c OK [04:12:54]MH_I2C_Read... [04:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:12:54]Read from MH i2c: E2 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: E2 0E 00 [04:12:54]MH_I2C_Read... [04:12:54]Read from MH i2c: E2 0E 00 84 31 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3E [04:12:54]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [04:12:54]wFMCommunicate OK [04:12:54]SAM_PROTO_GetShiftState done [04:12:54]FM_GetShiftState done [04:12:54]req_shift_opened done [04:12:54]requested_item shift.open_date is exist - process it [04:12:54]req_shift_open_date [04:12:54]req_shift_open_date done [04:12:54]produce_requested_data done [04:12:54]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4946,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [04:12:54]process_action_free close_receipt [04:12:54]json_value_free [04:12:54]json_value_free done [04:12:54]process_json_proto returns [04:12:54]Send response to host [04:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4946,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [04:12:54]free response buf [04:12:54]execute_script done [04:12:54]execute_script returns [04:12:54]free content buf [04:12:54]Sock 8.Close socket [04:12:54]Sock 8.Thread stoped [04:12:57]OFD Sender: No OFD packet to send [04:13:02]OFD Sender: No OFD packet to send [04:13:07]OFD Sender: No OFD packet to send [04:13:12]OFD Sender: No OFD packet to send [04:13:17]OFD Sender: No OFD packet to send [04:13:22]OFD Sender: No OFD packet to send [04:13:27]OFD Sender: No OFD packet to send [04:13:32]OFD Sender: No OFD packet to send [04:13:37]OFD Sender: No OFD packet to send [04:13:42]OFD Sender: No OFD packet to send [04:13:47]OFD Sender: No OFD packet to send [04:13:52]OFD Sender: No OFD packet to send [04:13:57]OFD Sender: No OFD packet to send [04:14:02]OFD Sender: No OFD packet to send [04:14:07]OFD Sender: No OFD packet to send [04:14:12]OFD Sender: No OFD packet to send [04:14:17]OFD Sender: No OFD packet to send [04:14:22]OFD Sender: No OFD packet to send [04:14:27]OFD Sender: No OFD packet to send [04:14:32]OFD Sender: No OFD packet to send [04:14:37]OFD Sender: No OFD packet to send [04:14:42]OFD Sender: No OFD packet to send [04:14:47]OFD Sender: No OFD packet to send [04:14:52]OFD Sender: No OFD packet to send [04:14:57]OFD Sender: No OFD packet to send [04:15:02]OFD Sender: No OFD packet to send [04:15:07]OFD Sender: No OFD packet to send [04:15:12]OFD Sender: No OFD packet to send [04:15:17]OFD Sender: No OFD packet to send [04:15:22]OFD Sender: No OFD packet to send [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]OFD Sender: No OFD packet to send [04:16:12]OFD Sender: No OFD packet to send [04:16:17]OFD Sender: No OFD packet to send [04:16:22]OFD Sender: No OFD packet to send [04:16:27]OFD Sender: No OFD packet to send [04:16:32]OFD Sender: No OFD packet to send [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:21:33]OFD Sender: No OFD packet to send [04:21:38]OFD Sender: No OFD packet to send [04:21:43]OFD Sender: No OFD packet to send [04:21:48]OFD Sender: No OFD packet to send [04:21:53]OFD Sender: No OFD packet to send [04:21:58]OFD Sender: No OFD packet to send [04:22:03]OFD Sender: No OFD packet to send [04:22:08]OFD Sender: No OFD packet to send [04:22:13]OFD Sender: No OFD packet to send [04:22:18]OFD Sender: No OFD packet to send [04:22:23]OFD Sender: No OFD packet to send [04:22:28]OFD Sender: No OFD packet to send [04:22:33]OFD Sender: No OFD packet to send [04:22:38]OFD Sender: No OFD packet to send [04:22:43]OFD Sender: No OFD packet to send [04:22:48]OFD Sender: No OFD packet to send [04:22:53]OFD Sender: No OFD packet to send [04:22:58]OFD Sender: No OFD packet to send [04:23:03]OFD Sender: No OFD packet to send [04:23:08]OFD Sender: No OFD packet to send [04:23:13]OFD Sender: No OFD packet to send [04:23:18]OFD Sender: No OFD packet to send [04:23:23]OFD Sender: No OFD packet to send [04:23:28]OFD Sender: No OFD packet to send [04:23:33]OFD Sender: No OFD packet to send [04:23:38]OFD Sender: No OFD packet to send [04:23:43]OFD Sender: No OFD packet to send [04:23:48]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:38]OFD Sender: No OFD packet to send [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:38]OFD Sender: No OFD packet to send [04:34:43]OFD Sender: No OFD packet to send [04:34:48]OFD Sender: No OFD packet to send [04:34:53]OFD Sender: No OFD packet to send [04:34:58]OFD Sender: No OFD packet to send [04:35:03]OFD Sender: No OFD packet to send [04:35:08]OFD Sender: No OFD packet to send [04:35:13]OFD Sender: No OFD packet to send [04:35:18]OFD Sender: No OFD packet to send [04:35:23]OFD Sender: No OFD packet to send [04:35:28]OFD Sender: No OFD packet to send [04:35:33]OFD Sender: No OFD packet to send [04:35:38]OFD Sender: No OFD packet to send [04:35:43]OFD Sender: No OFD packet to send [04:35:48]OFD Sender: No OFD packet to send [04:35:53]OFD Sender: No OFD packet to send [04:35:58]OFD Sender: No OFD packet to send [04:36:03]OFD Sender: No OFD packet to send [04:36:08]OFD Sender: No OFD packet to send [04:36:13]OFD Sender: No OFD packet to send [04:36:18]OFD Sender: No OFD packet to send [04:36:23]OFD Sender: No OFD packet to send [04:36:28]OFD Sender: No OFD packet to send [04:36:33]OFD Sender: No OFD packet to send [04:36:38]OFD Sender: No OFD packet to send [04:36:43]OFD Sender: No OFD packet to send [04:36:48]OFD Sender: No OFD packet to send [04:36:53]OFD Sender: No OFD packet to send [04:36:58]OFD Sender: No OFD packet to send [04:37:03]OFD Sender: No OFD packet to send [04:37:08]OFD Sender: No OFD packet to send [04:37:13]OFD Sender: No OFD packet to send [04:37:18]OFD Sender: No OFD packet to send [04:37:23]OFD Sender: No OFD packet to send [04:37:28]OFD Sender: No OFD packet to send [04:37:33]OFD Sender: No OFD packet to send [04:37:38]OFD Sender: No OFD packet to send [04:37:43]OFD Sender: No OFD packet to send [04:37:48]OFD Sender: No OFD packet to send [04:37:53]OFD Sender: No OFD packet to send [04:37:58]OFD Sender: No OFD packet to send [04:38:03]OFD Sender: No OFD packet to send [04:38:08]OFD Sender: No OFD packet to send [04:38:13]OFD Sender: No OFD packet to send [04:38:18]OFD Sender: No OFD packet to send [04:38:23]OFD Sender: No OFD packet to send [04:38:28]OFD Sender: No OFD packet to send [04:38:33]OFD Sender: No OFD packet to send [04:38:38]OFD Sender: No OFD packet to send [04:38:43]OFD Sender: No OFD packet to send [04:38:48]OFD Sender: No OFD packet to send [04:38:53]OFD Sender: No OFD packet to send [04:38:58]OFD Sender: No OFD packet to send [04:39:03]OFD Sender: No OFD packet to send [04:39:08]OFD Sender: No OFD packet to send [04:39:13]OFD Sender: No OFD packet to send [04:39:18]OFD Sender: No OFD packet to send [04:39:23]OFD Sender: No OFD packet to send [04:39:28]OFD Sender: No OFD packet to send [04:39:33]OFD Sender: No OFD packet to send [04:39:38]OFD Sender: No OFD packet to send [04:39:43]OFD Sender: No OFD packet to send [04:39:48]OFD Sender: No OFD packet to send [04:39:53]OFD Sender: No OFD packet to send [04:39:58]OFD Sender: No OFD packet to send [04:40:03]OFD Sender: No OFD packet to send [04:40:08]OFD Sender: No OFD packet to send [04:40:13]OFD Sender: No OFD packet to send [04:40:18]OFD Sender: No OFD packet to send [04:40:23]OFD Sender: No OFD packet to send [04:40:28]OFD Sender: No OFD packet to send [04:40:33]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:04]OFD Sender: No OFD packet to send [04:48:09]OFD Sender: No OFD packet to send [04:48:14]OFD Sender: No OFD packet to send [04:48:19]OFD Sender: No OFD packet to send [04:48:24]OFD Sender: No OFD packet to send [04:48:29]OFD Sender: No OFD packet to send [04:48:34]OFD Sender: No OFD packet to send [04:48:39]OFD Sender: No OFD packet to send [04:48:44]OFD Sender: No OFD packet to send [04:48:49]OFD Sender: No OFD packet to send [04:48:54]OFD Sender: No OFD packet to send [04:48:59]OFD Sender: No OFD packet to send [04:49:04]OFD Sender: No OFD packet to send [04:49:09]OFD Sender: No OFD packet to send [04:49:14]OFD Sender: No OFD packet to send [04:49:19]OFD Sender: No OFD packet to send [04:49:24]OFD Sender: No OFD packet to send [04:49:29]OFD Sender: No OFD packet to send [04:49:34]OFD Sender: No OFD packet to send [04:49:39]OFD Sender: No OFD packet to send [04:49:44]OFD Sender: No OFD packet to send [04:49:49]OFD Sender: No OFD packet to send [04:49:54]OFD Sender: No OFD packet to send [04:49:59]OFD Sender: No OFD packet to send [04:50:04]OFD Sender: No OFD packet to send [04:50:09]OFD Sender: No OFD packet to send [04:50:14]OFD Sender: No OFD packet to send [04:50:19]OFD Sender: No OFD packet to send [04:50:24]OFD Sender: No OFD packet to send [04:50:29]OFD Sender: No OFD packet to send [04:50:34]OFD Sender: No OFD packet to send [04:50:39]OFD Sender: No OFD packet to send [04:50:44]OFD Sender: No OFD packet to send [04:50:49]OFD Sender: No OFD packet to send [04:50:54]OFD Sender: No OFD packet to send [04:50:59]OFD Sender: No OFD packet to send [04:51:04]OFD Sender: No OFD packet to send [04:51:09]OFD Sender: No OFD packet to send [04:51:14]OFD Sender: No OFD packet to send [04:51:19]OFD Sender: No OFD packet to send [04:51:24]OFD Sender: No OFD packet to send [04:51:29]OFD Sender: No OFD packet to send [04:51:34]OFD Sender: No OFD packet to send [04:51:39]OFD Sender: No OFD packet to send [04:51:44]OFD Sender: No OFD packet to send [04:51:49]OFD Sender: No OFD packet to send [04:51:54]OFD Sender: No OFD packet to send [04:51:59]OFD Sender: No OFD packet to send [04:52:04]OFD Sender: No OFD packet to send [04:52:09]OFD Sender: No OFD packet to send [04:52:14]OFD Sender: No OFD packet to send [04:52:19]OFD Sender: No OFD packet to send [04:52:24]OFD Sender: No OFD packet to send [04:52:29]OFD Sender: No OFD packet to send [04:52:34]OFD Sender: No OFD packet to send [04:52:39]OFD Sender: No OFD packet to send [04:52:44]OFD Sender: No OFD packet to send [04:52:49]OFD Sender: No OFD packet to send [04:52:54]OFD Sender: No OFD packet to send [04:52:59]OFD Sender: No OFD packet to send [04:53:04]OFD Sender: No OFD packet to send [04:53:09]OFD Sender: No OFD packet to send [04:53:14]OFD Sender: No OFD packet to send [04:53:19]OFD Sender: No OFD packet to send [04:53:24]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [05:12:40]OFD Sender: No OFD packet to send [05:12:45]OFD Sender: No OFD packet to send [05:12:50]OFD Sender: No OFD packet to send [05:12:55]OFD Sender: No OFD packet to send [05:13:00]OFD Sender: No OFD packet to send [05:13:05]OFD Sender: No OFD packet to send [05:13:10]OFD Sender: No OFD packet to send [05:13:15]OFD Sender: No OFD packet to send [05:13:20]OFD Sender: No OFD packet to send [05:13:25]OFD Sender: No OFD packet to send [05:13:30]OFD Sender: No OFD packet to send [05:13:35]OFD Sender: No OFD packet to send [05:13:40]OFD Sender: No OFD packet to send [05:13:45]OFD Sender: No OFD packet to send [05:13:50]OFD Sender: No OFD packet to send [05:13:55]OFD Sender: No OFD packet to send [05:14:00]OFD Sender: No OFD packet to send [05:14:05]OFD Sender: No OFD packet to send [05:14:10]OFD Sender: No OFD packet to send [05:14:15]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:50]OFD Sender: No OFD packet to send [05:17:55]OFD Sender: No OFD packet to send [05:18:00]OFD Sender: No OFD packet to send [05:18:05]OFD Sender: No OFD packet to send [05:18:10]OFD Sender: No OFD packet to send [05:18:15]OFD Sender: No OFD packet to send [05:18:20]OFD Sender: No OFD packet to send [05:18:25]OFD Sender: No OFD packet to send [05:18:30]OFD Sender: No OFD packet to send [05:18:35]OFD Sender: No OFD packet to send [05:18:40]OFD Sender: No OFD packet to send [05:18:45]OFD Sender: No OFD packet to send [05:18:50]OFD Sender: No OFD packet to send [05:18:55]OFD Sender: No OFD packet to send [05:19:00]OFD Sender: No OFD packet to send [05:19:05]OFD Sender: No OFD packet to send [05:19:10]OFD Sender: No OFD packet to send [05:19:15]OFD Sender: No OFD packet to send [05:19:20]OFD Sender: No OFD packet to send [05:19:25]OFD Sender: No OFD packet to send [05:19:30]OFD Sender: No OFD packet to send [05:19:35]OFD Sender: No OFD packet to send [05:19:40]OFD Sender: No OFD packet to send [05:19:45]OFD Sender: No OFD packet to send [05:19:50]OFD Sender: No OFD packet to send [05:19:55]OFD Sender: No OFD packet to send [05:20:00]OFD Sender: No OFD packet to send [05:20:05]OFD Sender: No OFD packet to send [05:20:10]OFD Sender: No OFD packet to send [05:20:15]OFD Sender: No OFD packet to send [05:20:20]OFD Sender: No OFD packet to send [05:20:25]OFD Sender: No OFD packet to send [05:20:30]OFD Sender: No OFD packet to send [05:20:35]OFD Sender: No OFD packet to send [05:20:40]OFD Sender: No OFD packet to send [05:20:45]OFD Sender: No OFD packet to send [05:20:50]OFD Sender: No OFD packet to send [05:20:55]OFD Sender: No OFD packet to send [05:21:00]OFD Sender: No OFD packet to send [05:21:05]OFD Sender: No OFD packet to send [05:21:10]OFD Sender: No OFD packet to send [05:21:15]OFD Sender: No OFD packet to send [05:21:20]OFD Sender: No OFD packet to send [05:21:25]OFD Sender: No OFD packet to send [05:21:30]OFD Sender: No OFD packet to send [05:21:35]OFD Sender: No OFD packet to send [05:21:40]OFD Sender: No OFD packet to send [05:21:45]OFD Sender: No OFD packet to send [05:21:50]OFD Sender: No OFD packet to send [05:21:55]OFD Sender: No OFD packet to send [05:22:00]OFD Sender: No OFD packet to send [05:22:05]OFD Sender: No OFD packet to send [05:22:10]OFD Sender: No OFD packet to send [05:22:15]OFD Sender: No OFD packet to send [05:22:20]OFD Sender: No OFD packet to send [05:22:25]OFD Sender: No OFD packet to send [05:22:30]OFD Sender: No OFD packet to send [05:22:35]OFD Sender: No OFD packet to send [05:22:40]OFD Sender: No OFD packet to send [05:22:45]OFD Sender: No OFD packet to send [05:22:50]OFD Sender: No OFD packet to send [05:22:55]OFD Sender: No OFD packet to send [05:23:00]OFD Sender: No OFD packet to send [05:23:05]OFD Sender: No OFD packet to send [05:23:10]OFD Sender: No OFD packet to send [05:23:15]OFD Sender: No OFD packet to send [05:23:20]OFD Sender: No OFD packet to send [05:23:25]OFD Sender: No OFD packet to send [05:23:30]OFD Sender: No OFD packet to send [05:23:35]OFD Sender: No OFD packet to send [05:23:40]OFD Sender: No OFD packet to send [05:23:45]OFD Sender: No OFD packet to send [05:23:50]OFD Sender: No OFD packet to send [05:23:55]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31:21]OFD Sender: No OFD packet to send [05:31:26]OFD Sender: No OFD packet to send [05:31:31]OFD Sender: No OFD packet to send [05:31:36]OFD Sender: No OFD packet to send [05:31:41]OFD Sender: No OFD packet to send [05:31:46]OFD Sender: No OFD packet to send [05:31:51]OFD Sender: No OFD packet to send [05:31:56]OFD Sender: No OFD packet to send [05:32:01]OFD Sender: No OFD packet to send [05:32:06]OFD Sender: No OFD packet to send [05:32:11]OFD Sender: No OFD packet to send [05:32:16]OFD Sender: No OFD packet to send [05:32:21]OFD Sender: No OFD packet to send [05:32:26]OFD Sender: No OFD packet to send [05:32:31]OFD Sender: No OFD packet to send [05:32:36]OFD Sender: No OFD packet to send [05:32:41]OFD Sender: No OFD packet to send [05:32:46]OFD Sender: No OFD packet to send [05:32:51]OFD Sender: No OFD packet to send [05:32:56]OFD Sender: No OFD packet to send [05:33:01]OFD Sender: No OFD packet to send [05:33:06]OFD Sender: No OFD packet to send [05:33:11]OFD Sender: No OFD packet to send [05:33:16]OFD Sender: No OFD packet to send [05:33:21]OFD Sender: No OFD packet to send [05:33:26]OFD Sender: No OFD packet to send [05:33:31]OFD Sender: No OFD packet to send [05:33:36]OFD Sender: No OFD packet to send [05:33:41]OFD Sender: No OFD packet to send [05:33:46]OFD Sender: No OFD packet to send [05:33:51]OFD Sender: No OFD packet to send [05:33:56]OFD Sender: No OFD packet to send [05:34:01]OFD Sender: No OFD packet to send [05:34:06]OFD Sender: No OFD packet to send [05:34:11]OFD Sender: No OFD packet to send [05:34:16]OFD Sender: No OFD packet to send [05:34:21]OFD Sender: No OFD packet to send [05:34:26]OFD Sender: No OFD packet to send [05:34:31]OFD Sender: No OFD packet to send [05:34:36]OFD Sender: No OFD packet to send [05:34:41]OFD Sender: No OFD packet to send [05:34:46]OFD Sender: No OFD packet to send [05:34:51]OFD Sender: No OFD packet to send [05:34:56]OFD Sender: No OFD packet to send [05:35:01]OFD Sender: No OFD packet to send [05:35:06]OFD Sender: No OFD packet to send [05:35:11]OFD Sender: No OFD packet to send [05:35:16]OFD Sender: No OFD packet to send [05:35:21]OFD Sender: No OFD packet to send [05:35:26]OFD Sender: No OFD packet to send [05:35:31]OFD Sender: No OFD packet to send [05:35:36]OFD Sender: No OFD packet to send [05:35:41]OFD Sender: No OFD packet to send [05:35:46]OFD Sender: No OFD packet to send [05:35:51]OFD Sender: No OFD packet to send [05:35:56]OFD Sender: No OFD packet to send [05:36:01]OFD Sender: No OFD packet to send [05:36:06]OFD Sender: No OFD packet to send [05:36:11]OFD Sender: No OFD packet to send [05:36:16]OFD Sender: No OFD packet to send [05:36:21]OFD Sender: No OFD packet to send [05:36:26]OFD Sender: No OFD packet to send [05:36:31]OFD Sender: No OFD packet to send [05:36:36]OFD Sender: No OFD packet to send [05:36:41]OFD Sender: No OFD packet to send [05:36:46]OFD Sender: No OFD packet to send [05:36:51]OFD Sender: No OFD packet to send [05:36:56]OFD Sender: No OFD packet to send [05:37:01]OFD Sender: No OFD packet to send [05:37:06]OFD Sender: No OFD packet to send [05:37:11]OFD Sender: No OFD packet to send [05:37:16]OFD Sender: No OFD packet to send [05:37:21]OFD Sender: No OFD packet to send [05:37:26]OFD Sender: No OFD packet to send [05:37:31]OFD Sender: No OFD packet to send [05:37:36]OFD Sender: No OFD packet to send [05:37:41]OFD Sender: No OFD packet to send [05:37:46]OFD Sender: No OFD packet to send [05:37:51]OFD Sender: No OFD packet to send [05:37:56]OFD Sender: No OFD packet to send [05:38:01]OFD Sender: No OFD packet to send [05:38:06]OFD Sender: No OFD packet to send [05:38:11]OFD Sender: No OFD packet to send [05:38:16]OFD Sender: No OFD packet to send [05:38:21]OFD Sender: No OFD packet to send [05:38:26]OFD Sender: No OFD packet to send [05:38:31]OFD Sender: No OFD packet to send [05:38:36]OFD Sender: No OFD packet to send [05:38:41]OFD Sender: No OFD packet to send [05:38:46]OFD Sender: No OFD packet to send [05:38:51]OFD Sender: No OFD packet to send [05:38:56]OFD Sender: No OFD packet to send [05:39:01]OFD Sender: No OFD packet to send [05:39:06]OFD Sender: No OFD packet to send [05:39:11]OFD Sender: No OFD packet to send [05:39:16]OFD Sender: No OFD packet to send [05:39:21]OFD Sender: No OFD packet to send [05:39:26]OFD Sender: No OFD packet to send [05:39:31]OFD Sender: No OFD packet to send [05:39:36]OFD Sender: No OFD packet to send [05:39:41]OFD Sender: No OFD packet to send [05:39:46]OFD Sender: No OFD packet to send [05:39:51]OFD Sender: No OFD packet to send [05:39:56]OFD Sender: No OFD packet to send [05:40:01]OFD Sender: No OFD packet to send [05:40:06]OFD Sender: No OFD packet to send [05:40:11]OFD Sender: No OFD packet to send [05:40:16]OFD Sender: No OFD packet to send [05:40:21]OFD Sender: No OFD packet to send [05:40:26]OFD Sender: No OFD packet to send [05:40:31]OFD Sender: No OFD packet to send [05:40:36]OFD Sender: No OFD packet to send [05:40:41]OFD Sender: No OFD packet to send [05:40:46]OFD Sender: No OFD packet to send [05:40:51]OFD Sender: No OFD packet to send [05:40:56]OFD Sender: No OFD packet to send [05:41:01]OFD Sender: No OFD packet to send [05:41:06]OFD Sender: No OFD packet to send [05:41:11]OFD Sender: No OFD packet to send [05:41:16]OFD Sender: No OFD packet to send [05:41:21]OFD Sender: No OFD packet to send [05:41:26]OFD Sender: No OFD packet to send [05:41:31]OFD Sender: No OFD packet to send [05:41:36]OFD Sender: No OFD packet to send [05:41:41]OFD Sender: No OFD packet to send [05:41:46]OFD Sender: No OFD packet to send [05:41:51]OFD Sender: No OFD packet to send [05:41:56]OFD Sender: No OFD packet to send [05:42:01]OFD Sender: No OFD packet to send [05:42:06]OFD Sender: No OFD packet to send [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:43:01]OFD Sender: No OFD packet to send [05:43:06]OFD Sender: No OFD packet to send [05:43:11]OFD Sender: No OFD packet to send [05:43:16]OFD Sender: No OFD packet to send [05:43:21]OFD Sender: No OFD packet to send [05:43:26]OFD Sender: No OFD packet to send [05:43:31]OFD Sender: No OFD packet to send [05:43:36]OFD Sender: No OFD packet to send [05:43:41]OFD Sender: No OFD packet to send [05:43:46]OFD Sender: No OFD packet to send [05:43:51]OFD Sender: No OFD packet to send [05:43:56]OFD Sender: No OFD packet to send [05:44:01]OFD Sender: No OFD packet to send [05:44:06]OFD Sender: No OFD packet to send [05:44:11]OFD Sender: No OFD packet to send [05:44:16]OFD Sender: No OFD packet to send [05:44:21]OFD Sender: No OFD packet to send [05:44:26]OFD Sender: No OFD packet to send [05:44:31]OFD Sender: No OFD packet to send [05:44:36]OFD Sender: No OFD packet to send [05:44:41]OFD Sender: No OFD packet to send [05:44:46]OFD Sender: No OFD packet to send [05:44:51]OFD Sender: No OFD packet to send [05:44:56]OFD Sender: No OFD packet to send [05:45:01]OFD Sender: No OFD packet to send [05:45:06]OFD Sender: No OFD packet to send [05:45:11]OFD Sender: No OFD packet to send [05:45:16]OFD Sender: No OFD packet to send [05:45:21]OFD Sender: No OFD packet to send [05:45:26]OFD Sender: No OFD packet to send [05:45:31]OFD Sender: No OFD packet to send [05:45:36]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53:32]OFD Sender: No OFD packet to send [05:53:37]OFD Sender: No OFD packet to send [05:53:42]OFD Sender: No OFD packet to send [05:53:47]OFD Sender: No OFD packet to send [05:53:52]OFD Sender: No OFD packet to send [05:53:57]OFD Sender: No OFD packet to send [05:54:02]OFD Sender: No OFD packet to send [05:54:07]OFD Sender: No OFD packet to send [05:54:12]OFD Sender: No OFD packet to send [05:54:17]OFD Sender: No OFD packet to send [05:54:22]OFD Sender: No OFD packet to send [05:54:27]OFD Sender: No OFD packet to send [05:54:32]OFD Sender: No OFD packet to send [05:54:37]OFD Sender: No OFD packet to send [05:54:42]OFD Sender: No OFD packet to send [05:54:47]OFD Sender: No OFD packet to send [05:54:52]OFD Sender: No OFD packet to send [05:54:57]OFD Sender: No OFD packet to send [05:55:02]OFD Sender: No OFD packet to send [05:55:07]OFD Sender: No OFD packet to send [05:55:12]OFD Sender: No OFD packet to send [05:55:17]OFD Sender: No OFD packet to send [05:55:22]OFD Sender: No OFD packet to send [05:55:27]OFD Sender: No OFD packet to send [05:55:32]OFD Sender: No OFD packet to send [05:55:37]OFD Sender: No OFD packet to send [05:55:42]OFD Sender: No OFD packet to send [05:55:47]OFD Sender: No OFD packet to send [05:55:52]OFD Sender: No OFD packet to send [05:55:57]OFD Sender: No OFD packet to send [05:56:02]OFD Sender: No OFD packet to send [05:56:07]OFD Sender: No OFD packet to send [05:56:12]OFD Sender: No OFD packet to send [05:56:17]OFD Sender: No OFD packet to send [05:56:22]OFD Sender: No OFD packet to send [05:56:27]OFD Sender: No OFD packet to send [05:56:32]OFD Sender: No OFD packet to send [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:52]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:12]OFD Sender: No OFD packet to send [06:03:17]OFD Sender: No OFD packet to send [06:03:22]OFD Sender: No OFD packet to send [06:03:27]OFD Sender: No OFD packet to send [06:03:32]OFD Sender: No OFD packet to send [06:03:37]OFD Sender: No OFD packet to send [06:03:42]OFD Sender: No OFD packet to send [06:03:47]OFD Sender: No OFD packet to send [06:03:52]OFD Sender: No OFD packet to send [06:03:57]OFD Sender: No OFD packet to send [06:04:02]OFD Sender: No OFD packet to send [06:04:07]OFD Sender: No OFD packet to send [06:04:12]OFD Sender: No OFD packet to send [06:04:17]OFD Sender: No OFD packet to send [06:04:22]OFD Sender: No OFD packet to send [06:04:27]OFD Sender: No OFD packet to send [06:04:32]OFD Sender: No OFD packet to send [06:04:37]OFD Sender: No OFD packet to send [06:04:42]OFD Sender: No OFD packet to send [06:04:47]OFD Sender: No OFD packet to send [06:04:52]OFD Sender: No OFD packet to send [06:04:57]OFD Sender: No OFD packet to send [06:05:02]OFD Sender: No OFD packet to send [06:05:07]OFD Sender: No OFD packet to send [06:05:12]OFD Sender: No OFD packet to send [06:05:17]OFD Sender: No OFD packet to send [06:05:22]OFD Sender: No OFD packet to send [06:05:27]OFD Sender: No OFD packet to send [06:05:32]OFD Sender: No OFD packet to send [06:05:37]OFD Sender: No OFD packet to send [06:05:42]OFD Sender: No OFD packet to send [06:05:47]OFD Sender: No OFD packet to send [06:05:52]OFD Sender: No OFD packet to send [06:05:57]OFD Sender: No OFD packet to send [06:06:02]OFD Sender: No OFD packet to send [06:06:07]OFD Sender: No OFD packet to send [06:06:12]OFD Sender: No OFD packet to send [06:06:17]OFD Sender: No OFD packet to send [06:06:22]OFD Sender: No OFD packet to send [06:06:27]OFD Sender: No OFD packet to send [06:06:32]OFD Sender: No OFD packet to send [06:06:37]OFD Sender: No OFD packet to send [06:06:42]OFD Sender: No OFD packet to send [06:06:47]OFD Sender: No OFD packet to send [06:06:52]OFD Sender: No OFD packet to send [06:06:57]OFD Sender: No OFD packet to send [06:07:02]OFD Sender: No OFD packet to send [06:07:07]OFD Sender: No OFD packet to send [06:07:12]OFD Sender: No OFD packet to send [06:07:17]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:23]OFD Sender: No OFD packet to send [06:22:28]OFD Sender: No OFD packet to send [06:22:33]OFD Sender: No OFD packet to send [06:22:38]OFD Sender: No OFD packet to send [06:22:43]OFD Sender: No OFD packet to send [06:22:48]OFD Sender: No OFD packet to send [06:22:53]OFD Sender: No OFD packet to send [06:22:58]OFD Sender: No OFD packet to send [06:23:03]OFD Sender: No OFD packet to send [06:23:08]OFD Sender: No OFD packet to send [06:23:13]OFD Sender: No OFD packet to send [06:23:18]OFD Sender: No OFD packet to send [06:23:23]OFD Sender: No OFD packet to send [06:23:28]OFD Sender: No OFD packet to send [06:23:33]OFD Sender: No OFD packet to send [06:23:38]OFD Sender: No OFD packet to send [06:23:43]OFD Sender: No OFD packet to send [06:23:48]OFD Sender: No OFD packet to send [06:23:53]OFD Sender: No OFD packet to send [06:23:58]OFD Sender: No OFD packet to send [06:24:03]OFD Sender: No OFD packet to send [06:24:08]OFD Sender: No OFD packet to send [06:24:13]OFD Sender: No OFD packet to send [06:24:18]OFD Sender: No OFD packet to send [06:24:23]OFD Sender: No OFD packet to send [06:24:28]OFD Sender: No OFD packet to send [06:24:33]OFD Sender: No OFD packet to send [06:24:38]OFD Sender: No OFD packet to send [06:24:43]OFD Sender: No OFD packet to send [06:24:48]OFD Sender: No OFD packet to send [06:24:53]OFD Sender: No OFD packet to send [06:24:58]OFD Sender: No OFD packet to send [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:59]OFD Sender: No OFD packet to send [06:29:04]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [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:43]accept exits with 9 [06:38:43]New connection [06:38:43]New thread 3067444580 created [06:38:43]Thread 3067587940 joined [06:38:43]Waiting for new connection... [06:38:43] Sock 9.Parse request [06:38:43]Sock 9.Check first char [06:38:43]Sock 9.First char is OK [06:38:43]request: POST /json_proto HTTP/1.0 [06:38:43]Method: POST [06:38:43]URL: /json_proto [06:38:43]Method is POST - this is cgi request [06:38:43]url: /json_proto [06:38:43]query_string will be loaded in cgi processing [06:38:43]execute_cgi json_proto POST (null) [06:38:43]execute_cgi path=json_proto method=POST [06:38:43]POST find Content-Length [06:38:43]Host: 172.17.44.4:8080 [06:38:43]Content-Length: 1128 [06:38:43]Content-Type: application/json [06:38:43] [06:38:43]POST finish read [06:38:43]Found Content-Length = 1128 [06:38:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140960", "tax_sys" : 0, "items" : [ { "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\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" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:43]execute_script... [06:38: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)140960", "tax_sys" : 0, "items" : [ { "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745895", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B RICHMOND KS GOLD EDITION", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54492509", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,25\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" : 305.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:38:43]POST & json_proto [06:38:43]process_json_proto [06:38:43]json parsed OK: [06:38:43]protocol is kg_v1.0 [06:38:43]action value=close_receipt [06:38:43]process_action close_receipt [06:38:43]cmd_close_receipt [06:38:43]MH_GetDate [06:38:43]Write to MH i2c: F0 00 00 85 31 A5 [06:38:43]Write i2c OK [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: F0 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: F0 09 00 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: F0 09 00 85 31 00 F9 A9 45 66 6C E9 28 66 DE [06:38:43]GetLastDocTimeStamp 1715832775 [06:38:43]current date 1715841529 [06:38:43]FM_GetShiftState [06:38:43]SAM_PROTO_GetShiftState [06:38:43]wFMCommunicate request_size=4 [06:38:43]MH_SAM_APDU [06:38:43]CAPDU: 80 13 01 00 [06:38:43]Write to MH i2c: E2 08 00 86 31 80 13 01 00 00 00 00 00 34 [06:38:43]Write i2c OK [06:38:43]MH_I2C_Read... [06:38:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:43]Read from MH i2c: E2 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 0E 00 [06:38:43]MH_I2C_Read... [06:38:43]Read from MH i2c: E2 0E 00 86 31 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 40 [06:38:43]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [06:38:43]wFMCommunicate OK [06:38:43]SAM_PROTO_GetShiftState done [06:38:43]FM_GetShiftState done [06:38:43]opened in 1715818246 [06:38:43]opened+sec_in_day 1715904646 [06:38:43]quantity*price = 7000 [06:38:43]sum+1 = 7001 [06:38:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745895 Сигареты RICHMOND KS GOLD EDITION 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 54492509 Напиток Кока-Кола 0,25л 1.000 * 85.00 = 85.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 305.00 НСП 1% : 2.70 НДС 12% : 32.39 Наличными: 305.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 7 16.05.2024 06:38 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4947 ФПД: 127359567414978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T063849&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4947&fm=127359567414978&tin=02508201610067®Number=0000000000154221&sum=30500 0 [06:38:44]StoreToDocumentArchive [06:38:44]shift 44 fd 4947 [06:38:44]save to /storage/0044/doc_00004947 [06:38:44]save last doc name /storage/0044/doc_00004947 to /storage/kkm_last_doc_name [06:38:44]save OK [06:38:44]Clear old archive folders... [06:38:44]ProcessDocumentItem done err = 0, tmpTLVsize=484 [06:38:44]tlvbuf is 00DB1BA0 [06:38:44]SAM_PROTO_ClearQueue [06:38:44]wFMCommunicate request_size=4 [06:38:44]MH_SAM_APDU [06:38:44]CAPDU: 80 09 00 00 [06:38:44]Write to MH i2c: E2 08 00 93 31 80 09 00 00 00 00 00 00 36 [06:38:44]Write i2c OK [06:38:44]MH_I2C_Read... [06:38:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:38:45]Read from MH i2c: E2 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 03 00 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 03 00 93 31 00 90 00 38 [06:38:45]RAPDU: 90 00 [06:38:45]wFMCommunicate OK [06:38:45]SAM_PROTO_ClearQueue done [06:38:45]KKMCreateOFDPacket [06:38:45]OFDProtocolAddRootSTLVToBuf [06:38:45]FM_MakeSignedData [06:38:45]FM_MakeSignedData [06:38:45]SAM_PROTO_SignData [06:38:45]wFMCommunicate request_size=4 [06:38:45]MH_SAM_APDU [06:38:45]CAPDU: 80 0D 01 02 [06:38:45]Write to MH i2c: E2 08 00 94 31 80 0D 01 02 00 00 00 00 3E [06:38:45]Write i2c OK [06:38:45]MH_I2C_Read... [06:38:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:38:45]Read from MH i2c: E2 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 03 00 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 03 00 94 31 00 90 00 39 [06:38:45]RAPDU: 90 00 [06:38:45]wFMCommunicate OK [06:38:45]wFMCommunicate request_size=255 [06:38:45]MH_SAM_APDU [06:38:45]CAPDU: 80 0D 02 02 FA 03 00 E4 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 [06:38:45]Write to MH i2c: E2 02 01 95 31 80 0D 02 02 FA 00 03 00 E4 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 00 00 04 [06:38:45]Write i2c OK [06:38:45]MH_I2C_Read... [06:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:45]Read from MH i2c: E2 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 03 00 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 03 00 95 31 00 90 00 3A [06:38:45]RAPDU: 90 00 [06:38:45]wFMCommunicate OK [06:38:45]wFMCommunicate request_size=243 [06:38:45]MH_SAM_APDU [06:38:45]CAPDU: 80 0D 02 02 EE BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 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 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F9 A9 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 53 13 00 00 35 04 06 00 73 D5 35 C6 46 C2 [06:38:45]Write to MH i2c: E2 F6 00 96 31 80 0D 02 02 EE 00 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 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 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F9 A9 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 53 13 00 00 35 04 06 00 73 D5 35 C6 46 C2 00 00 AE [06:38:45]Write i2c OK [06:38:45]MH_I2C_Read... [06:38:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:38:45]Read from MH i2c: E2 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 03 00 [06:38:45]MH_I2C_Read... [06:38:45]Read from MH i2c: E2 03 00 96 31 00 90 00 3B [06:38:45]RAPDU: 90 00 [06:38:45]wFMCommunicate OK [06:38:45]wFMCommunicate request_size=4 [06:38:45]MH_SAM_APDU [06:38:45]CAPDU: 80 0D 03 02 [06:38:45]Write to MH i2c: E2 08 00 97 31 80 0D 03 02 00 00 00 00 43 [06:38:45]Write i2c OK [06:38:45]MH_I2C_Read... [06:38:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:38:45]Read from MH i2c: E2 [06:38:45]MH_I2C_Read... [06:38:46]Read from MH i2c: E2 0B 00 [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: E2 0B 00 97 31 00 67 B9 C2 3C 17 0E EE C0 90 00 35 [06:38:46]RAPDU: 67 B9 C2 3C 17 0E EE C0 90 00 [06:38:46]wFMCommunicate OK [06:38:46]SAM_PROTO_SignData done [06:38:46]FM_MakeSignedData done [06:38:46]CreateOFDProtocolMessage [06:38:46]wFMCommunicate request_size=4 [06:38:46]MH_SAM_APDU [06:38:46]CAPDU: 80 11 00 00 [06:38:46]Write to MH i2c: E2 08 00 98 31 80 11 00 00 00 00 00 00 43 [06:38:46]Write i2c OK [06:38:46]MH_I2C_Read... [06:38:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:46]Read from MH i2c: E2 [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: E2 17 00 [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: E2 17 00 98 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 98 [06:38:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [06:38:46]wFMCommunicate OK [06:38:46]CreateOFDProtocolMessage done [06:38:46]OFDSenderStorePacket 4947 [06:38:46]StoreOFDPacket docnum=4947 [06:38:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 F8 01 00 00 0F FC F0 01 A6 BD 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 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 32 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 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F9 A9 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 53 13 00 00 35 04 06 00 73 D5 35 C6 46 C2 67 B9 C2 3C 17 0E EE C0 [06:38:46]CheckFolder [06:38:46]dirname=/storage/ofd_packets [06:38:46]CheckFolder done [06:38:46]ProducePacketName [06:38:46]name=ofd_packets/00004947 [06:38:46]NVStorageSaveData ofd_packets/00004947 [06:38:46]File name is /storage/ofd_packets/00004947 [06:38:46]Write 534 bytes [06:38:46]NVStorageSaveData done [06:38:46]OFDSenderStorePacket done [06:38:46]KKMCreateOFDPacket done [06:38:46]NVStorageSaveData kkm_last_timestamp [06:38:46]File name is /storage/kkm_last_timestamp [06:38:46]Write 4 bytes [06:38:46]NVStorageSaveData done [06:38:46]ExternCall_PrintAddStr [06:38:46]wPrintStart [06:38:46]Write to MH i2c: 01 00 00 99 31 CA [06:38:46]Write i2c OK [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: 01 [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: 01 07 00 [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: 01 07 00 99 31 00 00 00 00 00 FF 0F DF [06:38:46]RasterBufferAndPrint [06:38:46]line Счет N : (3)140960 [06:38:46]line ИНН: 02508201610067 [06:38:46]line Контрольно-Кассовый Чек [06:38:46]line ПРОДАЖА [06:38:46]line Товар: 4870112002768 [06:38:46]line Печенье Biskrem 100г [06:38:46]line 1.000 * 70.00 [06:38:46]line = 70.00 [06:38:46]line НДС 12% НСП 1% [06:38:46]line > о реализуемом товаре [06:38:46]line Товар: 48745895 [06:38:46]line Сигареты RICHMOND KS GOLD EDITION [06:38:46]line 1.000 * 150.00 [06:38:46]line = 150.00 [06:38:46]line НДС 12% НСП 1% [06:38:46]line > о реализуемом товаре [06:38:46]line Товар: 54492509 [06:38:46]line Напиток Кока-Кола 0,25л [06:38:46]line 1.000 * 85.00 [06:38:46]line = 85.00 [06:38:46]line НДС 12% НСП 1% [06:38:46]line > о реализуемом товаре [06:38:46]line ИТОГО: 305.00 [06:38:46]line НСП 1% : 2.70 [06:38:46]line НДС 12% : 32.39 [06:38:46]line Наличными: 305.00 [06:38:46]line Безнал.: 0.00 [06:38:46]line Место: АЗС № 135 "Партнер Нефть" [06:38:46]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [06:38:46]line СНО: Общий режим [06:38:46]line Чек 7 16.05.2024 06:38 [06:38:46]line Смена: 44 ФФД: 1.0 [06:38:46]line ЗНМ: 0300000237 [06:38:46]line РНМ: 0000000000154221 [06:38:46]line Версия ККМ: v1.0 [06:38:46]line ФМ: 0000000000963259 [06:38:46]line ФД: 4947 [06:38:46]line ФПД: 127359567414978 [06:38:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T063849&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4947&fm=127359567414978&tin=02508201610067®Number=0000000000154221&sum=30500 [06:38:46]line 0 [06:38:46]written 0, free lines is 4095 [06:38:46]OFD Sender: Processing packet 4947 [packets to send 4, broken 3] [06:38:46]ProducePacketName [06:38:46]name=ofd_packets/00004947 [06:38:46]OFD Sender: To server: pG, [06:38:46]CommunicateWithHost lk.salyk.kg:30040 [06:38:46]ConnectInit lk.salyk.kg [06:38:46]Connected sock=10 [06:38:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 F8 01 00 00 0F FC F0 01 A6 BD 5A 03 01 00 03 00 E4 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 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 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 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 32 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 24 77 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 0C 00 00 00 00 07 04 06 00 24 77 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 F9 A9 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 53 13 00 00 35 04 06 00 73 D5 35 C6 46 C2 67 B9 C2 3C 17 0E EE C0 [06:38:46]Write to MH i2c: 01 00 00 CE 31 FF [06:38:46]Write i2c OK [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: 01 [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: 01 07 00 [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: 01 07 00 CE 31 00 00 00 00 00 78 0B 89 [06:38:46]RasterBufferAndPrint [06:38:46]line [06:38:46]line [06:38:46]line [06:38:46]line [06:38:46]line [06:38:46]written 0, free lines is 2939 [06:38:46]MH_Cut [06:38:46]Write to MH i2c: D1 01 00 D5 31 01 D8 [06:38:46]Write i2c OK [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: D1 [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: D1 01 00 [06:38:46]MH_I2C_Read... [06:38:46]Read from MH i2c: D1 01 00 D5 31 00 D7 [06:38:46]Write to MH i2c: 01 00 00 D6 31 07 [06:38:46]Write i2c OK [06:38:46]MH_I2C_Read... [06:38:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 7B 6B 47 00 4A 7F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 53 13 00 00 F4 03 04 00 BE 55 45 66 B6 04 01 00 00 14 4F 99 7D 04 C1 3B 4C [06:38:46]CommunicateWithHost err = 0 [06:38:46]CheckOFDResponse [06:38:46]1017 (14) - 77093643461234 [06:38:46]1041 (16) - 0000000000963259 [06:38:46]1040 (4) - 4947 [06:38:46]1012 (4) - 16.05.2024 00:39 [06:38:46]1206 (1) - 0 [06:38:46]OFD Sender: Remove packet 4947 [06:38:46]ProducePacketName [06:38:46]name=ofd_packets/00004947 [06:38:46]NVStorageDeleteData [06:38:47]OFD Sender: No OFD packet to send [06:38:48]*** Cut start [06:38:48]*** Partial cut [06:38:48]*** CUTSNS_PIN = 1 [06:38:48]*** CUTSNS_PIN = 0 [06:38:48]*** Brake cut motor [06:38:48]Read from MH i2c: 01 [06:38:48]MH_I2C_Read... [06:38:48]*** Stop cut motor [06:38:48]*** Cut end [06:38:48]Read from MH i2c: 01 07 00 [06:38:48]MH_I2C_Read... [06:38:48]Read from MH i2c: 01 07 00 D6 31 00 00 00 00 00 FF 0F 1C [06:38:48]process_action close_receipt done [06:38:48]requested_data is exist [06:38:48]produce_requested_data [06:38:48]requested_item fm.sn is exist - process it [06:38:48]wFMCommunicate request_size=4 [06:38:48]MH_SAM_APDU [06:38:48]CAPDU: 80 11 00 00 [06:38:48]Write to MH i2c: E2 08 00 D7 31 80 11 00 00 00 00 00 00 82 [06:38:48]Write i2c OK [06:38:48]MH_I2C_Read... [06:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:38:48]Read from MH i2c: E2 [06:38:48]MH_I2C_Read... [06:38:48]Read from MH i2c: E2 17 00 [06:38:48]MH_I2C_Read... [06:38:48]Read from MH i2c: E2 17 00 D7 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D7 [06:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [06:38:48]wFMCommunicate OK [06:38:48]requested_item fd.num is exist - process it [06:38:48]SAM_PROTO_GetFieldsCounters [06:38:48]wFMCommunicate request_size=4 [06:38:48]MH_SAM_APDU [06:38:48]CAPDU: 80 13 00 00 [06:38:48]Write to MH i2c: E2 08 00 D8 31 80 13 00 00 00 00 00 00 85 [06:38:48]Write i2c OK [06:38:48]MH_I2C_Read... [06:38:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:38:48]Read from MH i2c: E2 [06:38:48]MH_I2C_Read... [06:38:48]Read from MH i2c: E2 62 00 [06:38:48]MH_I2C_Read... [06:38:48]Read from MH i2c: E2 62 00 D8 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 53 13 00 00 0E 04 04 00 2C 00 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 45 [06:38:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 53 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:38:48]wFMCommunicate OK [06:38:48]SAM_PROTO_GetFieldsCounters done [06:38:48]requested_item shift.num is exist - process it [06:38:48]requested_item shift.opened is exist - process it [06:38:48]req_shift_opened [06:38:48]FM_GetShiftState [06:38:48]SAM_PROTO_GetShiftState [06:38:48]wFMCommunicate request_size=4 [06:38:48]MH_SAM_APDU [06:38:48]CAPDU: 80 13 01 00 [06:38:48]Write to MH i2c: E2 08 00 D9 31 80 13 01 00 00 00 00 00 87 [06:38:48]Write i2c OK [06:38:48]MH_I2C_Read... [06:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:38:48]Read from MH i2c: E2 [06:38:48]MH_I2C_Read... [06:38:48]Read from MH i2c: E2 0E 00 [06:38:48]MH_I2C_Read... [06:38:48]Read from MH i2c: E2 0E 00 D9 31 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 93 [06:38:48]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [06:38:48]wFMCommunicate OK [06:38:48]SAM_PROTO_GetShiftState done [06:38:48]FM_GetShiftState done [06:38:48]req_shift_opened done [06:38:48]requested_item shift.open_date is exist - process it [06:38:48]req_shift_open_date [06:38:48]req_shift_open_date done [06:38:48]produce_requested_data done [06:38:48]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4947,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [06:38:48]process_action_free close_receipt [06:38:48]json_value_free [06:38:48]json_value_free done [06:38:48]process_json_proto returns [06:38:48]Send response to host [06:38:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4947,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [06:38:48]free response buf [06:38:48]execute_script done [06:38:48]execute_script returns [06:38:48]free content buf [06:38:48]Sock 9.Close socket [06:38:48]Sock 9.Thread stoped [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:47]OFD Sender: No OFD packet to send [06:47:52]OFD Sender: No OFD packet to send [06:47:57]OFD Sender: No OFD packet to send [06:48:02]OFD Sender: No OFD packet to send [06:48:07]OFD Sender: No OFD packet to send [06:48:12]OFD Sender: No OFD packet to send [06:48:17]OFD Sender: No OFD packet to send [06:48:22]OFD Sender: No OFD packet to send [06:48:27]OFD Sender: No OFD packet to send [06:48:32]OFD Sender: No OFD packet to send [06:48:37]OFD Sender: No OFD packet to send [06:48:42]OFD Sender: No OFD packet to send [06:48:47]OFD Sender: No OFD packet to send [06:48:52]OFD Sender: No OFD packet to send [06:48:57]OFD Sender: No OFD packet to send [06:49:02]OFD Sender: No OFD packet to send [06:49:07]OFD Sender: No OFD packet to send [06:49:12]OFD Sender: No OFD packet to send [06:49:17]OFD Sender: No OFD packet to send [06:49:22]OFD Sender: No OFD packet to send [06:49:27]OFD Sender: No OFD packet to send [06:49:32]OFD Sender: No OFD packet to send [06:49:37]OFD Sender: No OFD packet to send [06:49:42]OFD Sender: No OFD packet to send [06:49:47]OFD Sender: No OFD packet to send [06:49:52]OFD Sender: No OFD packet to send [06:49:57]OFD Sender: No OFD packet to send [06:50:02]OFD Sender: No OFD packet to send [06:50:07]OFD Sender: No OFD packet to send [06:50:12]OFD Sender: No OFD packet to send [06:50:17]OFD Sender: No OFD packet to send [06:50:22]OFD Sender: No OFD packet to send [06:50:27]OFD Sender: No OFD packet to send [06:50:32]OFD Sender: No OFD packet to send [06:50:37]OFD Sender: No OFD packet to send [06:50:42]OFD Sender: No OFD packet to send [06:50:47]OFD Sender: No OFD packet to send [06:50:52]OFD Sender: No OFD packet to send [06:50:57]OFD Sender: No OFD packet to send [06:51:02]OFD Sender: No OFD packet to send [06:51:07]OFD Sender: No OFD packet to send [06:51:12]OFD Sender: No OFD packet to send [06:51:17]OFD Sender: No OFD packet to send [06:51:22]OFD Sender: No OFD packet to send [06:51:27]OFD Sender: No OFD packet to send [06:51:32]OFD Sender: No OFD packet to send [06:51:37]OFD Sender: No OFD packet to send [06:51:42]OFD Sender: No OFD packet to send [06:51:47]OFD Sender: No OFD packet to send [06:51:52]OFD Sender: No OFD packet to send [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:58]OFD Sender: No OFD packet to send [07:11:03]OFD Sender: No OFD packet to send [07:11:08]OFD Sender: No OFD packet to send [07:11:13]OFD Sender: No OFD packet to send [07:11:18]OFD Sender: No OFD packet to send [07:11:23]OFD Sender: No OFD packet to send [07:11:28]OFD Sender: No OFD packet to send [07:11:33]OFD Sender: No OFD packet to send [07:11:38]OFD Sender: No OFD packet to send [07:11:43]OFD Sender: No OFD packet to send [07:11:48]OFD Sender: No OFD packet to send [07:11:53]OFD Sender: No OFD packet to send [07:11:58]OFD Sender: No OFD packet to send [07:12:03]OFD Sender: No OFD packet to send [07:12:08]OFD Sender: No OFD packet to send [07:12:13]OFD Sender: No OFD packet to send [07:12:18]OFD Sender: No OFD packet to send [07:12:23]OFD Sender: No OFD packet to send [07:12:28]OFD Sender: No OFD packet to send [07:12:33]OFD Sender: No OFD packet to send [07:12:38]OFD Sender: No OFD packet to send [07:12:43]OFD Sender: No OFD packet to send [07:12:48]OFD Sender: No OFD packet to send [07:12:53]OFD Sender: No OFD packet to send [07:12:58]OFD Sender: No OFD packet to send [07:13:03]OFD Sender: No OFD packet to send [07:13:08]OFD Sender: No OFD packet to send [07:13:13]OFD Sender: No OFD packet to send [07:13:18]OFD Sender: No OFD packet to send [07:13:23]OFD Sender: No OFD packet to send [07:13:28]OFD Sender: No OFD packet to send [07:13:33]OFD Sender: No OFD packet to send [07:13:38]OFD Sender: No OFD packet to send [07:13:43]OFD Sender: No OFD packet to send [07:13:48]OFD Sender: No OFD packet to send [07:13:53]OFD Sender: No OFD packet to send [07:13:58]OFD Sender: No OFD packet to send [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:38]OFD Sender: No OFD packet to send [07:15:43]OFD Sender: No OFD packet to send [07:15:48]OFD Sender: No OFD packet to send [07:15:53]OFD Sender: No OFD packet to send [07:15:58]OFD Sender: No OFD packet to send [07:16:03]OFD Sender: No OFD packet to send [07:16:08]OFD Sender: No OFD packet to send [07:16:13]OFD Sender: No OFD packet to send [07:16:18]OFD Sender: No OFD packet to send [07:16:23]OFD Sender: No OFD packet to send [07:16:28]OFD Sender: No OFD packet to send [07:16:33]OFD Sender: No OFD packet to send [07:16:38]OFD Sender: No OFD packet to send [07:16:43]OFD Sender: No OFD packet to send [07:16:48]OFD Sender: No OFD packet to send [07:16:53]OFD Sender: No OFD packet to send [07:16:58]OFD Sender: No OFD packet to send [07:17:03]OFD Sender: No OFD packet to send [07:17:08]OFD Sender: No OFD packet to send [07:17:13]OFD Sender: No OFD packet to send [07:17:18]OFD Sender: No OFD packet to send [07:17:23]OFD Sender: No OFD packet to send [07:17:28]OFD Sender: No OFD packet to send [07:17:33]OFD Sender: No OFD packet to send [07:17:38]OFD Sender: No OFD packet to send [07:17:43]OFD Sender: No OFD packet to send [07:17:48]OFD Sender: No OFD packet to send [07:17:53]OFD Sender: No OFD packet to send [07:17:58]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:06]accept exits with 8 [07:24:06]New connection [07:24:06]New thread 3067587940 created [07:24:06]Thread 3067444580 joined [07:24:06]Waiting for new connection... [07:24:06] Sock 8.Parse request [07:24:06]Sock 8.Check first char [07:24:06]Sock 8.First char is OK [07:24:06]request: POST /json_proto HTTP/1.0 [07:24:06]Method: POST [07:24:06]URL: /json_proto [07:24:06]Method is POST - this is cgi request [07:24:06]url: /json_proto [07:24:06]query_string will be loaded in cgi processing [07:24:06]execute_cgi json_proto POST (null) [07:24:06]execute_cgi path=json_proto method=POST [07:24:06]POST find Content-Length [07:24:06]Host: 172.17.44.4:8080 [07:24:06]Content-Length: 936 [07:24:06]Content-Type: application/json [07:24:06] [07:24:06]POST finish read [07:24:06]Found Content-Length = 936 [07:24:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140961", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870240014831", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431\u0430\u0447.\u041F\u0430\u043B\u043E\u0447.HEETS Summer Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 282.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:06]execute_script... [07:24:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140961", "tax_sys" : 0, "items" : [ { "code": "4870216764968", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Torquoise Selectio", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870240014831", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431\u0430\u0447.\u041F\u0430\u043B\u043E\u0447.HEETS Summer Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 282.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:24:06]POST & json_proto [07:24:06]process_json_proto [07:24:06]json parsed OK: [07:24:06]protocol is kg_v1.0 [07:24:06]action value=close_receipt [07:24:06]process_action close_receipt [07:24:06]cmd_close_receipt [07:24:06]MH_GetDate [07:24:06]Write to MH i2c: F0 00 00 DA 31 FA [07:24:06]Write i2c OK [07:24:06]MH_I2C_Read... [07:24:06]Read from MH i2c: F0 [07:24:06]MH_I2C_Read... [07:24:06]Read from MH i2c: F0 09 00 [07:24:06]MH_I2C_Read... [07:24:06]Read from MH i2c: F0 09 00 DA 31 00 9C B4 45 66 6C E9 28 66 E1 [07:24:06]GetLastDocTimeStamp 1715841529 [07:24:06]current date 1715844252 [07:24:06]FM_GetShiftState [07:24:06]SAM_PROTO_GetShiftState [07:24:06]wFMCommunicate request_size=4 [07:24:06]MH_SAM_APDU [07:24:06]CAPDU: 80 13 01 00 [07:24:06]Write to MH i2c: E2 08 00 DB 31 80 13 01 00 00 00 00 00 89 [07:24:06]Write i2c OK [07:24:06]MH_I2C_Read... [07:24:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:06]Read from MH i2c: E2 [07:24:06]MH_I2C_Read... [07:24:06]Read from MH i2c: E2 0E 00 [07:24:06]MH_I2C_Read... [07:24:06]Read from MH i2c: E2 0E 00 DB 31 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 95 [07:24:06]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [07:24:06]wFMCommunicate OK [07:24:06]SAM_PROTO_GetShiftState done [07:24:06]FM_GetShiftState done [07:24:06]opened in 1715818246 [07:24:06]opened+sec_in_day 1715904646 [07:24:06]quantity*price = 14100 [07:24:06]sum+1 = 14101 [07:24:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870240014831 Нагр.Табач.Палоч.HEETS Summer Wave 1.000 * 141.00 = 141.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 282.00 НСП 1% : 2.50 НДС 12% : 29.94 Наличными: 282.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 8 16.05.2024 07:24 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4948 ФПД: 257854754919145 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T072412&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4948&fm=257854754919145&tin=02508201610067®Number=0000000000154221&sum=28200 0 [07:24:07]StoreToDocumentArchive [07:24:07]shift 44 fd 4948 [07:24:07]save to /storage/0044/doc_00004948 [07:24:07]save last doc name /storage/0044/doc_00004948 to /storage/kkm_last_doc_name [07:24:07]save OK [07:24:07]Clear old archive folders... [07:24:07]ProcessDocumentItem done err = 0, tmpTLVsize=414 [07:24:07]tlvbuf is 00D22C00 [07:24:07]SAM_PROTO_ClearQueue [07:24:07]wFMCommunicate request_size=4 [07:24:07]MH_SAM_APDU [07:24:07]CAPDU: 80 09 00 00 [07:24:07]Write to MH i2c: E2 08 00 E8 31 80 09 00 00 00 00 00 00 8B [07:24:07]Write i2c OK [07:24:07]MH_I2C_Read... [07:24:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:24:07]Read from MH i2c: E2 [07:24:07]MH_I2C_Read... [07:24:07]Read from MH i2c: E2 03 00 [07:24:07]MH_I2C_Read... [07:24:07]Read from MH i2c: E2 03 00 E8 31 00 90 00 8D [07:24:07]RAPDU: 90 00 [07:24:07]wFMCommunicate OK [07:24:07]SAM_PROTO_ClearQueue done [07:24:07]KKMCreateOFDPacket [07:24:07]OFDProtocolAddRootSTLVToBuf [07:24:07]FM_MakeSignedData [07:24:07]FM_MakeSignedData [07:24:07]SAM_PROTO_SignData [07:24:07]wFMCommunicate request_size=4 [07:24:07]MH_SAM_APDU [07:24:07]CAPDU: 80 0D 01 02 [07:24:07]Write to MH i2c: E2 08 00 E9 31 80 0D 01 02 00 00 00 00 93 [07:24:07]Write i2c OK [07:24:07]MH_I2C_Read... [07:24:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:24:07]Read from MH i2c: E2 [07:24:07]MH_I2C_Read... [07:24:07]Read from MH i2c: E2 03 00 [07:24:07]MH_I2C_Read... [07:24:07]Read from MH i2c: E2 03 00 E9 31 00 90 00 8E [07:24:07]RAPDU: 90 00 [07:24:07]wFMCommunicate OK [07:24:07]wFMCommunicate request_size=255 [07:24:07]MH_SAM_APDU [07:24:07]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [07:24:07]Write to MH i2c: E2 02 01 EA 31 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 79 [07:24:07]Write i2c OK [07:24:07]MH_I2C_Read... [07:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:07]Read from MH i2c: E2 [07:24:07]MH_I2C_Read... [07:24:07]Read from MH i2c: E2 03 00 [07:24:07]MH_I2C_Read... [07:24:07]Read from MH i2c: E2 03 00 EA 31 00 90 00 8F [07:24:07]RAPDU: 90 00 [07:24:07]wFMCommunicate OK [07:24:07]wFMCommunicate request_size=173 [07:24:07]MH_SAM_APDU [07:24:07]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 28 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 B2 0B 00 00 00 00 07 04 06 00 28 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 08 00 00 00 F4 03 04 00 9C B4 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 54 13 00 00 35 04 06 00 EA 84 7D 12 12 E9 [07:24:07]Write to MH i2c: E2 B0 00 EB 31 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 28 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 B2 0B 00 00 00 00 07 04 06 00 28 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 08 00 00 00 F4 03 04 00 9C B4 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 54 13 00 00 35 04 06 00 EA 84 7D 12 12 E9 00 00 93 [07:24:07]Write i2c OK [07:24:07]MH_I2C_Read... [07:24:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:24:08]Read from MH i2c: E2 [07:24:08]MH_I2C_Read... [07:24:08]Read from MH i2c: E2 03 00 [07:24:08]MH_I2C_Read... [07:24:08]Read from MH i2c: E2 03 00 EB 31 00 90 00 90 [07:24:08]RAPDU: 90 00 [07:24:08]wFMCommunicate OK [07:24:08]wFMCommunicate request_size=4 [07:24:08]MH_SAM_APDU [07:24:08]CAPDU: 80 0D 03 02 [07:24:08]Write to MH i2c: E2 08 00 EC 31 80 0D 03 02 00 00 00 00 98 [07:24:08]Write i2c OK [07:24:08]MH_I2C_Read... [07:24:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:24:08]Read from MH i2c: E2 [07:24:08]MH_I2C_Read... [07:24:08]Read from MH i2c: E2 0B 00 [07:24:08]MH_I2C_Read... [07:24:08]Read from MH i2c: E2 0B 00 EC 31 00 E5 B6 27 A7 30 E6 E2 79 90 00 73 [07:24:08]RAPDU: E5 B6 27 A7 30 E6 E2 79 90 00 [07:24:08]wFMCommunicate OK [07:24:08]SAM_PROTO_SignData done [07:24:08]FM_MakeSignedData done [07:24:08]CreateOFDProtocolMessage [07:24:08]wFMCommunicate request_size=4 [07:24:08]MH_SAM_APDU [07:24:08]CAPDU: 80 11 00 00 [07:24:08]Write to MH i2c: E2 08 00 ED 31 80 11 00 00 00 00 00 00 98 [07:24:08]Write i2c OK [07:24:08]MH_I2C_Read... [07:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:08]Read from MH i2c: E2 [07:24:08]MH_I2C_Read... [07:24:08]Read from MH i2c: E2 17 00 [07:24:08]MH_I2C_Read... [07:24:08]Read from MH i2c: E2 17 00 ED 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 ED [07:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [07:24:08]wFMCommunicate OK [07:24:08]CreateOFDProtocolMessage done [07:24:08]OFDSenderStorePacket 4948 [07:24:08]StoreOFDPacket docnum=4948 [07:24:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 B2 01 00 00 08 FF AA 01 14 A4 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 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 B2 0B 00 00 00 00 07 04 06 00 28 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 08 00 00 00 F4 03 04 00 9C B4 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 54 13 00 00 35 04 06 00 EA 84 7D 12 12 E9 E5 B6 27 A7 30 E6 E2 79 [07:24:08]CheckFolder [07:24:08]dirname=/storage/ofd_packets [07:24:08]CheckFolder done [07:24:08]ProducePacketName [07:24:08]name=ofd_packets/00004948 [07:24:08]NVStorageSaveData ofd_packets/00004948 [07:24:08]File name is /storage/ofd_packets/00004948 [07:24:08]Write 464 bytes [07:24:08]NVStorageSaveData done [07:24:08]OFDSenderStorePacket done [07:24:08]KKMCreateOFDPacket done [07:24:08]NVStorageSaveData kkm_last_timestamp [07:24:08]File name is /storage/kkm_last_timestamp [07:24:08]Write 4 bytes [07:24:08]NVStorageSaveData done [07:24:08]ExternCall_PrintAddStr [07:24:08]wPrintStart [07:24:08]Write to MH i2c: 01 00 00 EE 31 1F [07:24:08]Write i2c OK [07:24:08]MH_I2C_Read... [07:24:08]OFD Sender: Processing packet 4948 [packets to send 4, broken 3] [07:24:08]Read from MH i2c: ProducePacketName [07:24:08]01 name=ofd_packets/00004948 [07:24:08] [07:24:08]MH_I2C_Read... [07:24:08]OFD Sender: To server: pG, [07:24:08]Read from MH i2c: CommunicateWithHost lk.salyk.kg:30040 [07:24:08]01 ConnectInit lk.salyk.kg [07:24:08]07 00 [07:24:08]MH_I2C_Read... [07:24:08]Read from MH i2c: 01 07 00 EE 31 00 00 00 00 00 FF 0F 34 [07:24:08]RasterBufferAndPrint [07:24:08]line Счет N : (3)140961 [07:24:08]line ИНН: 02508201610067 [07:24:08]line Контрольно-Кассовый Чек [07:24:08]line ПРОДАЖА [07:24:08]line Товар: 4870216764968 [07:24:08]line Нагр.Таб.Палоч. HEETS Torquoise Selectio [07:24:08]line 1.000 * 141.00 [07:24:08]line = 141.00 [07:24:08]line НДС 12% НСП 1% [07:24:08]line > о реализуемом товаре [07:24:08]line Товар: 4870240014831 [07:24:08]line Нагр.Табач.Палоч.HEETS Summer Wave [07:24:08]line 1.000 * 141.00 [07:24:08]line = 141.00 [07:24:08]line НДС 12% НСП 1% [07:24:08]line > о реализуемом товаре [07:24:08]line ИТОГО: 282.00 [07:24:08]line НСП 1% : 2.50 [07:24:08]line НДС 12% : 29.94 [07:24:08]line Наличными: 282.00 [07:24:08]line Безнал.: 0.00 [07:24:08]line Место: АЗС № 135 "Партнер Нефть" [07:24:08]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [07:24:08]line СНО: Общий режим [07:24:08]line Чек 8 16.05.2024 07:24 [07:24:08]line Смена: 44 ФФД: 1.0 [07:24:08]line ЗНМ: 0300000237 [07:24:08]line РНМ: 0000000000154221 [07:24:08]line Версия ККМ: v1.0 [07:24:08]line ФМ: 0000000000963259 [07:24:08]line ФД: 4948 [07:24:08]line ФПД: 257854754919145 [07:24:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T072412&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4948&fm=257854754919145&tin=02508201610067®Number=0000000000154221&sum=28200 [07:24:08]line 0 [07:24:08]written 0, free lines is 4095 [07:24:08]Connected sock=11 [07:24:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 B2 01 00 00 08 FF AA 01 14 A4 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 34 39 36 38 06 04 34 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 54 6F 72 71 75 6F 69 73 65 20 53 65 6C 65 63 74 69 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 34 30 30 31 34 38 33 31 06 04 30 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 D0 B0 D1 87 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 48 45 45 54 53 20 53 75 6D 6D 65 72 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 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 B2 0B 00 00 00 00 07 04 06 00 28 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 08 00 00 00 F4 03 04 00 9C B4 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 54 13 00 00 35 04 06 00 EA 84 7D 12 12 E9 E5 B6 27 A7 30 E6 E2 79 [07:24:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 3B F0 47 00 FA 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 54 13 00 00 F4 03 04 00 60 60 45 66 B6 04 01 00 00 4E A9 09 39 84 D7 5F C1 [07:24:09]CommunicateWithHost err = 0 [07:24:09]CheckOFDResponse [07:24:09]1017 (14) - 77093643461234 [07:24:09]1041 (16) - 0000000000963259 [07:24:09]1040 (4) - 4948 [07:24:09]1012 (4) - 16.05.2024 01:24 [07:24:09]1206 (1) - 0 [07:24:09]OFD Sender: Remove packet 4948 [07:24:09]ProducePacketName [07:24:09]name=ofd_packets/00004948 [07:24:09]NVStorageDeleteData [07:24:09]Write to MH i2c: 01 00 00 1E 32 50 [07:24:09]Write i2c OK [07:24:09]MH_I2C_Read... [07:24:09]Read from MH i2c: 01 [07:24:09]MH_I2C_Read... [07:24:09]Read from MH i2c: 01 07 00 [07:24:09]MH_I2C_Read... [07:24:09]Read from MH i2c: 01 07 00 1E 32 00 00 00 00 00 00 0C 63 [07:24:09]RasterBufferAndPrint [07:24:09]line [07:24:09]line [07:24:09]line [07:24:09]line [07:24:09]line [07:24:09]written 0, free lines is 3076 [07:24:09]MH_Cut [07:24:09]Write to MH i2c: D1 01 00 25 32 01 29 [07:24:09]Write i2c OK [07:24:09]MH_I2C_Read... [07:24:09]Read from MH i2c: D1 [07:24:09]MH_I2C_Read... [07:24:09]Read from MH i2c: D1 01 00 [07:24:09]MH_I2C_Read... [07:24:09]Read from MH i2c: D1 01 00 25 32 00 28 [07:24:09]Write to MH i2c: 01 00 00 26 32 58 [07:24:09]Write i2c OK [07:24:09]MH_I2C_Read... [07:24:09]OFD Sender: No OFD packet to send [07:24:10]*** Cut start [07:24:10]*** Partial cut [07:24:10]*** CUTSNS_PIN = 1 [07:24:10]*** CUTSNS_PIN = 0 [07:24:10]*** Brake cut motor [07:24:10]Read from MH i2c: 01 [07:24:10]MH_I2C_Read... [07:24:10]*** Stop cut motor [07:24:10]Read from MH i2c: *** Cut end [07:24:10]01 07 00 [07:24:10]MH_I2C_Read... [07:24:10]Read from MH i2c: 01 07 00 26 32 00 00 00 00 00 FF 0F 6D [07:24:10]process_action close_receipt done [07:24:10]requested_data is exist [07:24:10]produce_requested_data [07:24:10]requested_item fm.sn is exist - process it [07:24:10]wFMCommunicate request_size=4 [07:24:10]MH_SAM_APDU [07:24:10]CAPDU: 80 11 00 00 [07:24:10]Write to MH i2c: E2 08 00 27 32 80 11 00 00 00 00 00 00 D3 [07:24:10]Write i2c OK [07:24:10]MH_I2C_Read... [07:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:24:11]Read from MH i2c: E2 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 17 00 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 17 00 27 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 28 [07:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [07:24:11]wFMCommunicate OK [07:24:11]requested_item fd.num is exist - process it [07:24:11]SAM_PROTO_GetFieldsCounters [07:24:11]wFMCommunicate request_size=4 [07:24:11]MH_SAM_APDU [07:24:11]CAPDU: 80 13 00 00 [07:24:11]Write to MH i2c: E2 08 00 28 32 80 13 00 00 00 00 00 00 D6 [07:24:11]Write i2c OK [07:24:11]MH_I2C_Read... [07:24:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:24:11]Read from MH i2c: E2 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 62 00 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 62 00 28 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 54 13 00 00 0E 04 04 00 2C 00 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 9A [07:24:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 54 13 00 00 0E 04 04 00 2C 00 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:24:11]wFMCommunicate OK [07:24:11]SAM_PROTO_GetFieldsCounters done [07:24:11]requested_item shift.num is exist - process it [07:24:11]requested_item shift.opened is exist - process it [07:24:11]req_shift_opened [07:24:11]FM_GetShiftState [07:24:11]SAM_PROTO_GetShiftState [07:24:11]wFMCommunicate request_size=4 [07:24:11]MH_SAM_APDU [07:24:11]CAPDU: 80 13 01 00 [07:24:11]Write to MH i2c: E2 08 00 29 32 80 13 01 00 00 00 00 00 D8 [07:24:11]Write i2c OK [07:24:11]MH_I2C_Read... [07:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:24:11]Read from MH i2c: E2 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 0E 00 [07:24:11]MH_I2C_Read... [07:24:11]Read from MH i2c: E2 0E 00 29 32 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E4 [07:24:11]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [07:24:11]wFMCommunicate OK [07:24:11]SAM_PROTO_GetShiftState done [07:24:11]FM_GetShiftState done [07:24:11]req_shift_opened done [07:24:11]requested_item shift.open_date is exist - process it [07:24:11]req_shift_open_date [07:24:11]req_shift_open_date done [07:24:11]produce_requested_data done [07:24:11]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4948,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [07:24:11]process_action_free close_receipt [07:24:11]json_value_free [07:24:11]json_value_free done [07:24:11]process_json_proto returns [07:24:11]Send response to host [07:24:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4948,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [07:24:11]free response buf [07:24:11]execute_script done [07:24:11]execute_script returns [07:24:11]free content buf [07:24:11]Sock 8.Close socket [07:24:11]Sock 8.Thread stoped [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:05]OFD Sender: No OFD packet to send [07:33:10]OFD Sender: No OFD packet to send [07:33:15]OFD Sender: No OFD packet to send [07:33:20]OFD Sender: No OFD packet to send [07:33:25]OFD Sender: No OFD packet to send [07:33:30]OFD Sender: No OFD packet to send [07:33:35]OFD Sender: No OFD packet to send [07:33:40]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [07:59:21]OFD Sender: No OFD packet to send [07:59:26]OFD Sender: No OFD packet to send [07:59:31]OFD Sender: No OFD packet to send [07:59:36]OFD Sender: No OFD packet to send [07:59:41]OFD Sender: No OFD packet to send [07:59:46]OFD Sender: No OFD packet to send [07:59:51]OFD Sender: No OFD packet to send [07:59:56]OFD Sender: No OFD packet to send [08:00:01]OFD Sender: No OFD packet to send [08:00:06]OFD Sender: No OFD packet to send [08:00:11]OFD Sender: No OFD packet to send [08:00:16]OFD Sender: No OFD packet to send [08:00:21]OFD Sender: No OFD packet to send [08:00:26]OFD Sender: No OFD packet to send [08:00:31]OFD Sender: No OFD packet to send [08:00:32]accept exits with 9 [08:00:32]New connection [08:00:32]New thread 3067444580 created [08:00:32]Thread 3067587940 joined [08:00:32]Waiting for new connection... [08:00:32] Sock 9.Parse request [08:00:32]Sock 9.Check first char [08:00:32]Sock 9.First char is OK [08:00:32]request: POST /json_proto HTTP/1.0 [08:00:32]Method: POST [08:00:32]URL: /json_proto [08:00:32]Method is POST - this is cgi request [08:00:32]url: /json_proto [08:00:32]query_string will be loaded in cgi processing [08:00:32]execute_cgi json_proto POST (null) [08:00:32]execute_cgi path=json_proto method=POST [08:00:32]POST find Content-Length [08:00:32]Host: 172.17.44.4:8080 [08:00:32]Content-Length: 885 [08:00:32]Content-Type: application/json [08:00:32] [08:00:32]POST finish read [08:00:32]Found Content-Length = 885 [08:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140962", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:32]execute_script... [08:00:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140962", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46226624", "name": "Mentos \u041F\u0412 \u041A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:00:32]POST & json_proto [08:00:32]process_json_proto [08:00:32]json parsed OK: [08:00:32]protocol is kg_v1.0 [08:00:32]action value=close_receipt [08:00:32]process_action close_receipt [08:00:32]cmd_close_receipt [08:00:32]MH_GetDate [08:00:32]Write to MH i2c: F0 00 00 2A 32 4B [08:00:32]Write i2c OK [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: F0 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: F0 09 00 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: F0 09 00 2A 32 00 26 BD 45 66 6C E9 28 66 C5 [08:00:32]GetLastDocTimeStamp 1715844252 [08:00:32]current date 1715846438 [08:00:32]FM_GetShiftState [08:00:32]SAM_PROTO_GetShiftState [08:00:32]wFMCommunicate request_size=4 [08:00:32]MH_SAM_APDU [08:00:32]CAPDU: 80 13 01 00 [08:00:32]Write to MH i2c: E2 08 00 2B 32 80 13 01 00 00 00 00 00 DA [08:00:32]Write i2c OK [08:00:32]MH_I2C_Read... [08:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:32]Read from MH i2c: E2 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: E2 0E 00 [08:00:32]MH_I2C_Read... [08:00:32]Read from MH i2c: E2 0E 00 2B 32 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E6 [08:00:32]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:00:32]wFMCommunicate OK [08:00:32]SAM_PROTO_GetShiftState done [08:00:32]FM_GetShiftState done [08:00:32]opened in 1715818246 [08:00:32]opened+sec_in_day 1715904646 [08:00:32]quantity*price = 5900 [08:00:32]sum+1 = 5901 [08:00:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46226624 Mentos ПВ Клубника 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.32 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 9 16.05.2024 08:00 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4949 ФПД: 183332665852678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T080038&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4949&fm=183332665852678&tin=02508201610067®Number=0000000000154221&sum=6900 0 [08:00:33]StoreToDocumentArchive [08:00:33]shift 44 fd 4949 [08:00:33]save to /storage/0044/doc_00004949 [08:00:33]save last doc name /storage/0044/doc_00004949 to /storage/kkm_last_doc_name [08:00:33]save OK [08:00:33]Clear old archive folders... [08:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=384 [08:00:33]tlvbuf is 00CD6710 [08:00:33]SAM_PROTO_ClearQueue [08:00:33]wFMCommunicate request_size=4 [08:00:33]MH_SAM_APDU [08:00:33]CAPDU: 80 09 00 00 [08:00:33]Write to MH i2c: E2 08 00 38 32 80 09 00 00 00 00 00 00 DC [08:00:33]Write i2c OK [08:00:33]MH_I2C_Read... [08:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:00:33]Read from MH i2c: E2 [08:00:33]MH_I2C_Read... [08:00:33]Read from MH i2c: E2 03 00 [08:00:33]MH_I2C_Read... [08:00:33]Read from MH i2c: E2 03 00 38 32 00 90 00 DE [08:00:33]RAPDU: 90 00 [08:00:33]wFMCommunicate OK [08:00:33]SAM_PROTO_ClearQueue done [08:00:33]KKMCreateOFDPacket [08:00:33]OFDProtocolAddRootSTLVToBuf [08:00:33]FM_MakeSignedData [08:00:33]FM_MakeSignedData [08:00:33]SAM_PROTO_SignData [08:00:33]wFMCommunicate request_size=4 [08:00:33]MH_SAM_APDU [08:00:33]CAPDU: 80 0D 01 02 [08:00:33]Write to MH i2c: E2 08 00 39 32 80 0D 01 02 00 00 00 00 E4 [08:00:33]Write i2c OK [08:00:33]MH_I2C_Read... [08:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:00:33]Read from MH i2c: E2 [08:00:33]MH_I2C_Read... [08:00:33]Read from MH i2c: E2 03 00 [08:00:33]MH_I2C_Read... [08:00:33]Read from MH i2c: E2 03 00 39 32 00 90 00 DF [08:00:33]RAPDU: 90 00 [08:00:33]wFMCommunicate OK [08:00:33]wFMCommunicate request_size=255 [08:00:33]MH_SAM_APDU [08:00:33]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [08:00:33]Write to MH i2c: E2 02 01 3A 32 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 ED [08:00:33]Write i2c OK [08:00:33]MH_I2C_Read... [08:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:33]Read from MH i2c: E2 [08:00:33]MH_I2C_Read... [08:00:33]Read from MH i2c: E2 03 00 [08:00:33]MH_I2C_Read... [08:00:33]Read from MH i2c: E2 03 00 3A 32 00 90 00 E0 [08:00:33]RAPDU: 90 00 [08:00:33]wFMCommunicate OK [08:00:33]wFMCommunicate request_size=143 [08:00:33]MH_SAM_APDU [08:00:33]CAPDU: 80 0D 02 02 8A 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 02 00 00 00 00 07 04 06 00 F4 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 09 00 00 00 F4 03 04 00 26 BD 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 55 13 00 00 35 04 06 00 A6 BD 76 6C 83 06 [08:00:33]Write to MH i2c: E2 92 00 3B 32 80 0D 02 02 8A 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 02 00 00 00 00 07 04 06 00 F4 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 09 00 00 00 F4 03 04 00 26 BD 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 55 13 00 00 35 04 06 00 A6 BD 76 6C 83 06 00 00 42 [08:00:33]Write i2c OK [08:00:33]MH_I2C_Read... [08:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:00:33]Read from MH i2c: E2 [08:00:33]MH_I2C_Read... [08:00:33]Read from MH i2c: E2 03 00 [08:00:33]MH_I2C_Read... [08:00:33]Read from MH i2c: E2 03 00 3B 32 00 90 00 E1 [08:00:33]RAPDU: 90 00 [08:00:33]wFMCommunicate OK [08:00:33]wFMCommunicate request_size=4 [08:00:33]MH_SAM_APDU [08:00:33]CAPDU: 80 0D 03 02 [08:00:33]Write to MH i2c: E2 08 00 3C 32 80 0D 03 02 00 00 00 00 E9 [08:00:33]Write i2c OK [08:00:33]MH_I2C_Read... [08:00:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:00:34]Read from MH i2c: E2 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 0B 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 0B 00 3C 32 00 D2 81 5C B2 1F 40 CA CB 90 00 3F [08:00:34]RAPDU: D2 81 5C B2 1F 40 CA CB 90 00 [08:00:34]wFMCommunicate OK [08:00:34]SAM_PROTO_SignData done [08:00:34]FM_MakeSignedData done [08:00:34]CreateOFDProtocolMessage [08:00:34]wFMCommunicate request_size=4 [08:00:34]MH_SAM_APDU [08:00:34]CAPDU: 80 11 00 00 [08:00:34]Write to MH i2c: E2 08 00 3D 32 80 11 00 00 00 00 00 00 E9 [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:34]Read from MH i2c: E2 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 17 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: E2 17 00 3D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 3E [08:00:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:00:34]wFMCommunicate OK [08:00:34]CreateOFDProtocolMessage done [08:00:34]OFDSenderStorePacket 4949 [08:00:34]StoreOFDPacket docnum=4949 [08:00:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 94 01 00 00 04 67 8C 01 9E 51 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 02 00 00 00 00 07 04 06 00 F4 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 09 00 00 00 F4 03 04 00 26 BD 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 55 13 00 00 35 04 06 00 A6 BD 76 6C 83 06 D2 81 5C B2 1F 40 CA CB [08:00:34]CheckFolder [08:00:34]dirname=/storage/ofd_packets [08:00:34]CheckFolder done [08:00:34]ProducePacketName [08:00:34]name=ofd_packets/00004949 [08:00:34]NVStorageSaveData ofd_packets/00004949 [08:00:34]File name is /storage/ofd_packets/00004949 [08:00:34]Write 434 bytes [08:00:34]NVStorageSaveData done [08:00:34]OFDSenderStorePacket done [08:00:34]KKMCreateOFDPacket done [08:00:34]NVStorageSaveData kkm_last_timestamp [08:00:34]File name is /storage/kkm_last_timestamp [08:00:34]Write 4 bytes [08:00:34]NVStorageSaveData done [08:00:34]ExternCall_PrintAddStr [08:00:34]wPrintStart [08:00:34]Write to MH i2c: 01 00 00 3E 32 70 [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: 01 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: 01 07 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: 01 07 00 3E 32 00 00 00 00 00 FF 0F 85 [08:00:34]RasterBufferAndPrint [08:00:34]line Счет N : (3)140962 [08:00:34]line ИНН: 02508201610067 [08:00:34]line Контрольно-Кассовый Чек [08:00:34]line ПРОДАЖА [08:00:34]line Товар: 4607065001445 [08:00:34]line Шок батончик Snickers 50,5г [08:00:34]line 1.000 * 59.00 [08:00:34]line = 59.00 [08:00:34]line НДС 12% НСП 1% [08:00:34]line > о реализуемом товаре [08:00:34]line Товар: 46226624 [08:00:34]line Mentos ПВ Клубника 6*100*2 [08:00:34]line 1.000 * 10.00 [08:00:34]line = 10.00 [08:00:34]line НДС 12% НСП 1% [08:00:34]line > о реализуемом товаре [08:00:34]line ИТОГО: 69.00 [08:00:34]line НСП 1% : 0.61 [08:00:34]line НДС 12% : 7.32 [08:00:34]line Наличными: 69.00 [08:00:34]line Безнал.: 0.00 [08:00:34]line Место: АЗС № 135 "Партнер Нефть" [08:00:34]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:00:34]line СНО: Общий режим [08:00:34]line Чек 9 16.05.2024 08:00 [08:00:34]line Смена: 44 ФФД: 1.0 [08:00:34]line ЗНМ: 0300000237 [08:00:34]line РНМ: 0000000000154221 [08:00:34]line Версия ККМ: v1.0 [08:00:34]line ФМ: 0000000000963259 [08:00:34]line ФД: 4949 [08:00:34]line ФПД: 183332665852678 [08:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T080038&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4949&fm=183332665852678&tin=02508201610067®Number=0000000000154221&sum=6900 [08:00:34]line 0 [08:00:34]OFD Sender: Processing packet 4949 [packets to send 4, broken 3] [08:00:34]ProducePacketName [08:00:34]name=ofd_packets/00004949 [08:00:34]OFD Sender: To server: pG, [08:00:34]CommunicateWithHost lk.salyk.kg:30040 [08:00:34]ConnectInit lk.salyk.kg [08:00:34]written 0, free lines is 4095 [08:00:34]Connected sock=11 [08:00:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 94 01 00 00 04 67 8C 01 9E 51 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 32 32 36 36 32 34 06 04 24 00 4D 65 6E 74 6F 73 20 D0 9F D0 92 20 D0 9A D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 02 00 00 00 00 07 04 06 00 F4 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 09 00 00 00 F4 03 04 00 26 BD 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 55 13 00 00 35 04 06 00 A6 BD 76 6C 83 06 D2 81 5C B2 1F 40 CA CB [08:00:34]Write to MH i2c: 01 00 00 6C 32 9E [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: 01 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: 01 07 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: 01 07 00 6C 32 00 00 00 00 00 27 0C D8 [08:00:34]RasterBufferAndPrint [08:00:34]line [08:00:34]line [08:00:34]line [08:00:34]line [08:00:34]line [08:00:34]written 0, free lines is 3115 [08:00:34]MH_Cut [08:00:34]Write to MH i2c: D1 01 00 73 32 01 77 [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: D1 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: D1 01 00 [08:00:34]MH_I2C_Read... [08:00:34]Read from MH i2c: D1 01 00 73 32 00 76 [08:00:34]Write to MH i2c: 01 00 00 74 32 A6 [08:00:34]Write i2c OK [08:00:34]MH_I2C_Read... [08:00:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 89 44 47 00 0F D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 55 13 00 00 F4 03 04 00 EB 68 45 66 B6 04 01 00 00 E5 A5 C0 B5 81 22 3B D7 [08:00:35]CommunicateWithHost err = 0 [08:00:35]CheckOFDResponse [08:00:35]1017 (14) - 77093643461234 [08:00:35]1041 (16) - 0000000000963259 [08:00:35]1040 (4) - 4949 [08:00:35]1012 (4) - 16.05.2024 02:01 [08:00:35]1206 (1) - 0 [08:00:35]OFD Sender: Remove packet 4949 [08:00:35]ProducePacketName [08:00:35]name=ofd_packets/00004949 [08:00:35]NVStorageDeleteData [08:00:35]OFD Sender: No OFD packet to send [08:00:36]*** Cut start [08:00:36]*** Partial cut [08:00:36]*** CUTSNS_PIN = 1 [08:00:36]*** CUTSNS_PIN = 0 [08:00:36]*** Brake cut motor [08:00:36]Read from MH i2c: 01 [08:00:36]MH_I2C_Read... [08:00:36]*** Stop cut motor [08:00:36]*** Cut end [08:00:36]Read from MH i2c: 01 07 00 [08:00:36]MH_I2C_Read... [08:00:36]Read from MH i2c: 01 07 00 74 32 00 00 00 00 00 FF 0F BB [08:00:36]process_action close_receipt done [08:00:36]requested_data is exist [08:00:36]produce_requested_data [08:00:36]requested_item fm.sn is exist - process it [08:00:36]wFMCommunicate request_size=4 [08:00:36]MH_SAM_APDU [08:00:36]CAPDU: 80 11 00 00 [08:00:36]Write to MH i2c: E2 08 00 75 32 80 11 00 00 00 00 00 00 21 [08:00:36]Write i2c OK [08:00:36]MH_I2C_Read... [08:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:00:36]Read from MH i2c: E2 [08:00:36]MH_I2C_Read... [08:00:36]Read from MH i2c: E2 17 00 [08:00:36]MH_I2C_Read... [08:00:36]Read from MH i2c: E2 17 00 75 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 76 [08:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:00:36]wFMCommunicate OK [08:00:36]requested_item fd.num is exist - process it [08:00:36]SAM_PROTO_GetFieldsCounters [08:00:36]wFMCommunicate request_size=4 [08:00:36]MH_SAM_APDU [08:00:36]CAPDU: 80 13 00 00 [08:00:36]Write to MH i2c: E2 08 00 76 32 80 13 00 00 00 00 00 00 24 [08:00:36]Write i2c OK [08:00:36]MH_I2C_Read... [08:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:00:36]Read from MH i2c: E2 [08:00:36]MH_I2C_Read... [08:00:36]Read from MH i2c: E2 62 00 [08:00:36]MH_I2C_Read... [08:00:36]Read from MH i2c: E2 62 00 76 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 55 13 00 00 0E 04 04 00 2C 00 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 EC [08:00:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 55 13 00 00 0E 04 04 00 2C 00 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 [08:00:36]wFMCommunicate OK [08:00:36]SAM_PROTO_GetFieldsCounters done [08:00:36]requested_item shift.num is exist - process it [08:00:36]requested_item shift.opened is exist - process it [08:00:36]req_shift_opened [08:00:36]FM_GetShiftState [08:00:36]SAM_PROTO_GetShiftState [08:00:36]wFMCommunicate request_size=4 [08:00:36]MH_SAM_APDU [08:00:36]CAPDU: 80 13 01 00 [08:00:36]Write to MH i2c: E2 08 00 77 32 80 13 01 00 00 00 00 00 26 [08:00:36]Write i2c OK [08:00:36]MH_I2C_Read... [08:00:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:00:37]Read from MH i2c: E2 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 0E 00 [08:00:37]MH_I2C_Read... [08:00:37]Read from MH i2c: E2 0E 00 77 32 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 32 [08:00:37]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:00:37]wFMCommunicate OK [08:00:37]SAM_PROTO_GetShiftState done [08:00:37]FM_GetShiftState done [08:00:37]req_shift_opened done [08:00:37]requested_item shift.open_date is exist - process it [08:00:37]req_shift_open_date [08:00:37]req_shift_open_date done [08:00:37]produce_requested_data done [08:00:37]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4949,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:00:37]process_action_free close_receipt [08:00:37]json_value_free [08:00:37]json_value_free done [08:00:37]process_json_proto returns [08:00:37]Send response to host [08:00:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4949,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:00:37]free response buf [08:00:37]execute_script done [08:00:37]execute_script returns [08:00:37]free content buf [08:00:37]Sock 9.Close socket [08:00:37]Sock 9.Thread stoped [08:00:40]OFD Sender: No OFD packet to send [08:00:45]OFD Sender: No OFD packet to send [08:00:50]OFD Sender: No OFD packet to send [08:00:55]OFD Sender: No OFD packet to send [08:01:00]OFD Sender: No OFD packet to send [08:01:05]OFD Sender: No OFD packet to send [08:01:10]OFD Sender: No OFD packet to send [08:01:15]OFD Sender: No OFD packet to send [08:01:20]OFD Sender: No OFD packet to send [08:01:25]OFD Sender: No OFD packet to send [08:01:30]OFD Sender: No OFD packet to send [08:01:35]OFD Sender: No OFD packet to send [08:01:40]OFD Sender: No OFD packet to send [08:01:45]OFD Sender: No OFD packet to send [08:01:50]OFD Sender: No OFD packet to send [08:01:55]OFD Sender: No OFD packet to send [08:02:00]OFD Sender: No OFD packet to send [08:02:05]OFD Sender: No OFD packet to send [08:02:10]OFD Sender: No OFD packet to send [08:02:15]OFD Sender: No OFD packet to send [08:02:20]OFD Sender: No OFD packet to send [08:02:25]OFD Sender: No OFD packet to send [08:02:30]OFD Sender: No OFD packet to send [08:02:35]OFD Sender: No OFD packet to send [08:02:40]OFD Sender: No OFD packet to send [08:02:45]OFD Sender: No OFD packet to send [08:02:50]OFD Sender: No OFD packet to send [08:02:55]OFD Sender: No OFD packet to send [08:03:00]OFD Sender: No OFD packet to send [08:03:05]OFD Sender: No OFD packet to send [08:03:10]OFD Sender: No OFD packet to send [08:03:15]OFD Sender: No OFD packet to send [08:03:20]OFD Sender: No OFD packet to send [08:03:25]OFD Sender: No OFD packet to send [08:03:30]OFD Sender: No OFD packet to send [08:03:35]OFD Sender: No OFD packet to send [08:03:40]OFD Sender: No OFD packet to send [08:03:45]OFD Sender: No OFD packet to send [08:03:50]OFD Sender: No OFD packet to send [08:03:55]OFD Sender: No OFD packet to send [08:04:00]OFD Sender: No OFD packet to send [08:04:05]OFD Sender: No OFD packet to send [08:04:10]OFD Sender: No OFD packet to send [08:04:15]OFD Sender: No OFD packet to send [08:04:20]OFD Sender: No OFD packet to send [08:04:25]OFD Sender: No OFD packet to send [08:04:30]OFD Sender: No OFD packet to send [08:04:35]OFD Sender: No OFD packet to send [08:04:40]OFD Sender: No OFD packet to send [08:04:45]OFD Sender: No OFD packet to send [08:04:50]OFD Sender: No OFD packet to send [08:04:55]OFD Sender: No OFD packet to send [08:05:00]OFD Sender: No OFD packet to send [08:05:05]OFD Sender: No OFD packet to send [08:05:10]OFD Sender: No OFD packet to send [08:05:15]OFD Sender: No OFD packet to send [08:05:20]OFD Sender: No OFD packet to send [08:05:25]OFD Sender: No OFD packet to send [08:05:30]OFD Sender: No OFD packet to send [08:05:35]OFD Sender: No OFD packet to send [08:05:40]OFD Sender: No OFD packet to send [08:05:45]OFD Sender: No OFD packet to send [08:05:50]OFD Sender: No OFD packet to send [08:05:55]OFD Sender: No OFD packet to send [08:06:00]OFD Sender: No OFD packet to send [08:06:05]OFD Sender: No OFD packet to send [08:06:10]OFD Sender: No OFD packet to send [08:06:15]OFD Sender: No OFD packet to send [08:06:20]OFD Sender: No OFD packet to send [08:06:25]OFD Sender: No OFD packet to send [08:06:30]OFD Sender: No OFD packet to send [08:06:35]OFD Sender: No OFD packet to send [08:06:40]OFD Sender: No OFD packet to send [08:06:45]OFD Sender: No OFD packet to send [08:06:50]OFD Sender: No OFD packet to send [08:06:55]OFD Sender: No OFD packet to send [08:07:00]OFD Sender: No OFD packet to send [08:07:05]OFD Sender: No OFD packet to send [08:07:10]OFD Sender: No OFD packet to send [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:49]accept exits with 8 [08:08:49]New connection [08:08:49]New thread 3067587940 created [08:08:49]Thread 3067444580 joined [08:08:49]Waiting for new connection... [08:08:49] Sock 8.Parse request [08:08:49]Sock 8.Check first char [08:08:49]Sock 8.First char is OK [08:08:49]request: POST /json_proto HTTP/1.0 [08:08:49]Method: POST [08:08:49]URL: /json_proto [08:08:49]Method is POST - this is cgi request [08:08:49]url: /json_proto [08:08:49]query_string will be loaded in cgi processing [08:08:49]execute_cgi json_proto POST (null) [08:08:49]execute_cgi path=json_proto method=POST [08:08:49]POST find Content-Length [08:08:49]Host: 172.17.44.4:8080 [08:08:49]Content-Length: 711 [08:08:49]Content-Type: application/json [08:08:49] [08:08:49]POST finish read [08:08:49]Found Content-Length = 711 [08:08:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140963", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "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:08:49]execute_script... [08:08: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)140963", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "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:08:49]POST & json_proto [08:08:49]process_json_proto [08:08:49]json parsed OK: [08:08:49]protocol is kg_v1.0 [08:08:49]action value=close_receipt [08:08:49]process_action close_receipt [08:08:49]cmd_close_receipt [08:08:49]MH_GetDate [08:08:49]Write to MH i2c: F0 00 00 78 32 99 [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: F0 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: F0 09 00 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: F0 09 00 78 32 00 17 BF 45 66 6C E9 28 66 06 [08:08:49]GetLastDocTimeStamp 1715846438 [08:08:49]current date 1715846935 [08:08:49]FM_GetShiftState [08:08:49]SAM_PROTO_GetShiftState [08:08:49]wFMCommunicate request_size=4 [08:08:49]MH_SAM_APDU [08:08:49]CAPDU: 80 13 01 00 [08:08:49]Write to MH i2c: E2 08 00 79 32 80 13 01 00 00 00 00 00 28 [08:08:49]Write i2c OK [08:08:49]MH_I2C_Read... [08:08:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:49]Read from MH i2c: E2 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 0E 00 [08:08:49]MH_I2C_Read... [08:08:49]Read from MH i2c: E2 0E 00 79 32 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 34 [08:08:49]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:08:49]wFMCommunicate OK [08:08:49]SAM_PROTO_GetShiftState done [08:08:49]FM_GetShiftState done [08:08:49]opened in 1715818246 [08:08:49]opened+sec_in_day 1715904646 [08:08:49]quantity*price = 12500 [08:08:49]sum+1 = 12501 [08:08:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 10 16.05.2024 08:08 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4950 ФПД: 128288824802755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T080855&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4950&fm=128288824802755&tin=02508201610067®Number=0000000000154221&sum=12500 0 [08:08:50]StoreToDocumentArchive [08:08:50]shift 44 fd 4950 [08:08:50]save to /storage/0044/doc_00004950 [08:08:50]save last doc name /storage/0044/doc_00004950 to /storage/kkm_last_doc_name [08:08:50]save OK [08:08:50]Clear old archive folders... [08:08:50]ProcessDocumentItem done err = 0, tmpTLVsize=303 [08:08:50]tlvbuf is 00CFBCF0 [08:08:50]SAM_PROTO_ClearQueue [08:08:50]wFMCommunicate request_size=4 [08:08:50]MH_SAM_APDU [08:08:50]CAPDU: 80 09 00 00 [08:08:50]Write to MH i2c: E2 08 00 86 32 80 09 00 00 00 00 00 00 2A [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:08:50]Read from MH i2c: E2 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 03 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 03 00 86 32 00 90 00 2C [08:08:50]RAPDU: 90 00 [08:08:50]wFMCommunicate OK [08:08:50]SAM_PROTO_ClearQueue done [08:08:50]KKMCreateOFDPacket [08:08:50]OFDProtocolAddRootSTLVToBuf [08:08:50]FM_MakeSignedData [08:08:50]FM_MakeSignedData [08:08:50]SAM_PROTO_SignData [08:08:50]wFMCommunicate request_size=4 [08:08:50]MH_SAM_APDU [08:08:50]CAPDU: 80 0D 01 02 [08:08:50]Write to MH i2c: E2 08 00 87 32 80 0D 01 02 00 00 00 00 32 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:08:50]Read from MH i2c: E2 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 03 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 03 00 87 32 00 90 00 2D [08:08:50]RAPDU: 90 00 [08:08:50]wFMCommunicate OK [08:08:50]wFMCommunicate request_size=255 [08:08:50]MH_SAM_APDU [08:08:50]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 0A 00 00 00 F4 03 04 00 17 BF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D [08:08:50]Write to MH i2c: E2 02 01 88 32 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 0A 00 00 00 F4 03 04 00 17 BF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 00 00 0F [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:50]Read from MH i2c: E2 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 03 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 03 00 88 32 00 90 00 2E [08:08:50]RAPDU: 90 00 [08:08:50]wFMCommunicate OK [08:08:50]wFMCommunicate request_size=62 [08:08:50]MH_SAM_APDU [08:08:50]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 56 13 00 00 35 04 06 00 74 AD 91 D4 BD C3 [08:08:50]Write to MH i2c: E2 41 00 89 32 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 56 13 00 00 35 04 06 00 74 AD 91 D4 BD C3 00 00 D7 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:08:50]Read from MH i2c: E2 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 03 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 03 00 89 32 00 90 00 2F [08:08:50]RAPDU: 90 00 [08:08:50]wFMCommunicate OK [08:08:50]wFMCommunicate request_size=4 [08:08:50]MH_SAM_APDU [08:08:50]CAPDU: 80 0D 03 02 [08:08:50]Write to MH i2c: E2 08 00 8A 32 80 0D 03 02 00 00 00 00 37 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:08:50]Read from MH i2c: E2 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 0B 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 0B 00 8A 32 00 C0 1A 64 03 99 84 51 32 90 00 19 [08:08:50]RAPDU: C0 1A 64 03 99 84 51 32 90 00 [08:08:50]wFMCommunicate OK [08:08:50]SAM_PROTO_SignData done [08:08:50]FM_MakeSignedData done [08:08:50]CreateOFDProtocolMessage [08:08:50]wFMCommunicate request_size=4 [08:08:50]MH_SAM_APDU [08:08:50]CAPDU: 80 11 00 00 [08:08:50]Write to MH i2c: E2 08 00 8B 32 80 11 00 00 00 00 00 00 37 [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:50]Read from MH i2c: E2 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 17 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: E2 17 00 8B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 8C [08:08:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:08:50]wFMCommunicate OK [08:08:50]CreateOFDProtocolMessage done [08:08:50]OFDSenderStorePacket 4950 [08:08:50]StoreOFDPacket docnum=4950 [08:08:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 43 01 00 00 41 B2 3B 01 E6 0B 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 0A 00 00 00 F4 03 04 00 17 BF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 56 13 00 00 35 04 06 00 74 AD 91 D4 BD C3 C0 1A 64 03 99 84 51 32 [08:08:50]CheckFolder [08:08:50]dirname=/storage/ofd_packets [08:08:50]CheckFolder done [08:08:50]ProducePacketName [08:08:50]name=ofd_packets/00004950 [08:08:50]NVStorageSaveData ofd_packets/00004950 [08:08:50]File name is /storage/ofd_packets/00004950 [08:08:50]Write 353 bytes [08:08:50]NVStorageSaveData done [08:08:50]OFDSenderStorePacket done [08:08:50]KKMCreateOFDPacket done [08:08:50]NVStorageSaveData kkm_last_timestamp [08:08:50]File name is /storage/kkm_last_timestamp [08:08:50]Write 4 bytes [08:08:50]NVStorageSaveData done [08:08:50]ExternCall_PrintAddStr [08:08:50]wPrintStart [08:08:50]Write to MH i2c: 01 00 00 8C 32 BE [08:08:50]Write i2c OK [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 07 00 [08:08:50]MH_I2C_Read... [08:08:50]Read from MH i2c: 01 07 00 8C 32 00 00 00 00 00 FF 0F D3 [08:08:50]RasterBufferAndPrint [08:08:50]line Счет N : (3)140963 [08:08:50]line ИНН: 02508201610067 [08:08:50]line Контрольно-Кассовый Чек [08:08:50]line ПРОДАЖА [08:08:50]line Товар: 4870202521216 [08:08:50]line Напиток MAXI чай 1,2 зел.лимон (новый) [08:08:50]line 1.000 * 125.00 [08:08:50]line = 125.00 [08:08:50]line НДС 12% НСП 1% [08:08:50]line > о реализуемом товаре [08:08:50]line ИТОГО: 125.00 [08:08:50]line НСП 1% : 1.11 [08:08:50]line НДС 12% : 13.27 [08:08:50]line Наличными: 125.00 [08:08:50]line Безнал.: 0.00 [08:08:50]line Место: АЗС № 135 "Партнер Нефть" [08:08:50]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:08:50]line СНО: Общий режим [08:08:50]line Чек 10 16.05.2024 08:08 [08:08:50]line Смена: 44 ФФД: 1.0 [08:08:50]line ЗНМ: 0300000237 [08:08:50]line РНМ: 0000000000154221 [08:08:50]line Версия ККМ: v1.0 [08:08:50]line ФМ: 0000000000963259 [08:08:50]line ФД: 4950 [08:08:50]line ФПД: 128288824802755 [08:08:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T080855&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4950&fm=128288824802755&tin=02508201610067®Number=0000000000154221&sum=12500 [08:08:51]line 0 [08:08:51]OFD Sender: Processing packet 4950 [packets to send 4, broken 3] [08:08:51]ProducePacketName [08:08:51]name=ofd_packets/00004950 [08:08:51]OFD Sender: To server: pG, [08:08:51]CommunicateWithHost lk.salyk.kg:30040 [08:08:51]ConnectInit lk.salyk.kg [08:08:51]written 0, free lines is 4095 [08:08:51]Write to MH i2c: 01 00 00 B5 32 E7 [08:08:51]Write i2c OK [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: 01 [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: 01 07 00 [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: 01 07 00 B5 32 00 00 00 00 00 6E 0C 68 [08:08:51]RasterBufferAndPrint [08:08:51]line [08:08:51]line [08:08:51]line [08:08:51]line [08:08:51]line [08:08:51]written 0, free lines is 3186 [08:08:51]MH_Cut [08:08:51]Write to MH i2c: D1 01 00 BC 32 01 C0 [08:08:51]Write i2c OK [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: D1 [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: D1 01 00 [08:08:51]MH_I2C_Read... [08:08:51]Read from MH i2c: D1 01 00 BC 32 00 BF [08:08:51]Write to MH i2c: 01 00 00 BD 32 EF [08:08:51]Write i2c OK [08:08:51]MH_I2C_Read... [08:08:51]Connected sock=10 [08:08:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 43 01 00 00 41 B2 3B 01 E6 0B 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 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 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 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 0A 00 00 00 F4 03 04 00 17 BF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 56 13 00 00 35 04 06 00 74 AD 91 D4 BD C3 C0 1A 64 03 99 84 51 32 [08:08:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 D5 EB 47 00 D9 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 56 13 00 00 F4 03 04 00 DB 6A 45 66 B6 04 01 00 00 A2 D8 50 4E 1D E3 69 8B [08:08:51]CommunicateWithHost err = 0 [08:08:51]CheckOFDResponse [08:08:51]1017 (14) - 77093643461234 [08:08:51]1041 (16) - 0000000000963259 [08:08:51]1040 (4) - 4950 [08:08:51]1012 (4) - 16.05.2024 02:09 [08:08:51]1206 (1) - 0 [08:08:51]OFD Sender: Remove packet 4950 [08:08:51]ProducePacketName [08:08:51]name=ofd_packets/00004950 [08:08:51]NVStorageDeleteData [08:08:52]OFD Sender: No OFD packet to send [08:08:52]*** Cut start [08:08:52]*** Partial cut [08:08:52]*** CUTSNS_PIN = 1 [08:08:52]*** CUTSNS_PIN = 0 [08:08:53]*** Brake cut motor [08:08:53]Read from MH i2c: 01 [08:08:53]MH_I2C_Read... [08:08:53]*** Stop cut motor [08:08:53]*** Cut end [08:08:53]Read from MH i2c: 01 07 00 [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: 01 07 00 BD 32 00 00 00 00 00 FF 0F 04 [08:08:53]process_action close_receipt done [08:08:53]requested_data is exist [08:08:53]produce_requested_data [08:08:53]requested_item fm.sn is exist - process it [08:08:53]wFMCommunicate request_size=4 [08:08:53]MH_SAM_APDU [08:08:53]CAPDU: 80 11 00 00 [08:08:53]Write to MH i2c: E2 08 00 BE 32 80 11 00 00 00 00 00 00 6A [08:08:53]Write i2c OK [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: E2 [08:08:53]MH_I2C_Read... [08:08:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:08:53]Read from MH i2c: E2 17 00 [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: E2 17 00 BE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 BF [08:08:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:08:53]wFMCommunicate OK [08:08:53]requested_item fd.num is exist - process it [08:08:53]SAM_PROTO_GetFieldsCounters [08:08:53]wFMCommunicate request_size=4 [08:08:53]MH_SAM_APDU [08:08:53]CAPDU: 80 13 00 00 [08:08:53]Write to MH i2c: E2 08 00 BF 32 80 13 00 00 00 00 00 00 6D [08:08:53]Write i2c OK [08:08:53]MH_I2C_Read... [08:08:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:08:53]Read from MH i2c: E2 [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: E2 62 00 [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: E2 62 00 BF 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 56 13 00 00 0E 04 04 00 2C 00 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 39 [08:08:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 56 13 00 00 0E 04 04 00 2C 00 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 [08:08:53]wFMCommunicate OK [08:08:53]SAM_PROTO_GetFieldsCounters done [08:08:53]requested_item shift.num is exist - process it [08:08:53]requested_item shift.opened is exist - process it [08:08:53]req_shift_opened [08:08:53]FM_GetShiftState [08:08:53]SAM_PROTO_GetShiftState [08:08:53]wFMCommunicate request_size=4 [08:08:53]MH_SAM_APDU [08:08:53]CAPDU: 80 13 01 00 [08:08:53]Write to MH i2c: E2 08 00 C0 32 80 13 01 00 00 00 00 00 6F [08:08:53]Write i2c OK [08:08:53]MH_I2C_Read... [08:08:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:08:53]Read from MH i2c: E2 [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: E2 0E 00 [08:08:53]MH_I2C_Read... [08:08:53]Read from MH i2c: E2 0E 00 C0 32 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 7B [08:08:53]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:08:53]wFMCommunicate OK [08:08:53]SAM_PROTO_GetShiftState done [08:08:53]FM_GetShiftState done [08:08:53]req_shift_opened done [08:08:53]requested_item shift.open_date is exist - process it [08:08:53]req_shift_open_date [08:08:53]req_shift_open_date done [08:08:53]produce_requested_data done [08:08:53]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4950,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:08:53]process_action_free close_receipt [08:08:53]json_value_free [08:08:53]json_value_free done [08:08:53]process_json_proto returns [08:08:53]Send response to host [08:08:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4950,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:08:53]free response buf [08:08:53]execute_script done [08:08:53]execute_script returns [08:08:53]free content buf [08:08:53]Sock 8.Close socket [08:08:53]Sock 8.Thread stoped [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:32]OFD Sender: No OFD packet to send [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]OFD Sender: No OFD packet to send [08:13:57]OFD Sender: No OFD packet to send [08:14:02]OFD Sender: No OFD packet to send [08:14:07]OFD Sender: No OFD packet to send [08:14:12]OFD Sender: No OFD packet to send [08:14:17]OFD Sender: No OFD packet to send [08:14:22]OFD Sender: No OFD packet to send [08:14:27]OFD Sender: No OFD packet to send [08:14:32]OFD Sender: No OFD packet to send [08:14:37]OFD Sender: No OFD packet to send [08:14:42]OFD Sender: No OFD packet to send [08:14:47]OFD Sender: No OFD packet to send [08:14:52]OFD Sender: No OFD packet to send [08:14:57]OFD Sender: No OFD packet to send [08:15:02]OFD Sender: No OFD packet to send [08:15:07]OFD Sender: No OFD packet to send [08:15:12]OFD Sender: No OFD packet to send [08:15:17]OFD Sender: No OFD packet to send [08:15:22]OFD Sender: No OFD packet to send [08:15:27]OFD Sender: No OFD packet to send [08:15:32]OFD Sender: No OFD packet to send [08:15:37]OFD Sender: No OFD packet to send [08:15:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]OFD Sender: No OFD packet to send [08:16:32]OFD Sender: No OFD packet to send [08:16:37]OFD Sender: No OFD packet to send [08:16:42]OFD Sender: No OFD packet to send [08:16:47]OFD Sender: No OFD packet to send [08:16:48]accept exits with 9 [08:16:48]New connection [08:16:48]New thread 3067444580 created [08:16:48]Thread 3067587940 joined [08:16:48]Waiting for new connection... [08:16:48] Sock 9.Parse request [08:16:48]Sock 9.Check first char [08:16:48]Sock 9.First char is OK [08:16:48]request: POST /json_proto HTTP/1.0 [08:16:48]Method: POST [08:16:48]URL: /json_proto [08:16:48]Method is POST - this is cgi request [08:16:48]url: /json_proto [08:16:48]query_string will be loaded in cgi processing [08:16:48]execute_cgi json_proto POST (null) [08:16:48]execute_cgi path=json_proto method=POST [08:16:48]POST find Content-Length [08:16:48]Host: 172.17.44.4:8080 [08:16:48]Content-Length: 974 [08:16:48]Content-Type: application/json [08:16:48] [08:16:48]POST finish read [08:16:48]Found Content-Length = 974 [08:16:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140964", "tax_sys" : 0, "items" : [ { "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:48]execute_script... [08:16: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)140964", "tax_sys" : 0, "items" : [ { "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 199.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:48]POST & json_proto [08:16:48]process_json_proto [08:16:48]json parsed OK: [08:16:48]protocol is kg_v1.0 [08:16:48]action value=close_receipt [08:16:48]process_action close_receipt [08:16:48]cmd_close_receipt [08:16:48]MH_GetDate [08:16:48]Write to MH i2c: F0 00 00 C1 32 E2 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 09 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: F0 09 00 C1 32 00 F6 C0 45 66 6C E9 28 66 2F [08:16:48]GetLastDocTimeStamp 1715846935 [08:16:48]current date 1715847414 [08:16:48]FM_GetShiftState [08:16:48]SAM_PROTO_GetShiftState [08:16:48]wFMCommunicate request_size=4 [08:16:48]MH_SAM_APDU [08:16:48]CAPDU: 80 13 01 00 [08:16:48]Write to MH i2c: E2 08 00 C2 32 80 13 01 00 00 00 00 00 71 [08:16:48]Write i2c OK [08:16:48]MH_I2C_Read... [08:16:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:48]Read from MH i2c: E2 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 0E 00 [08:16:48]MH_I2C_Read... [08:16:48]Read from MH i2c: E2 0E 00 C2 32 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 7D [08:16:48]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:16:48]wFMCommunicate OK [08:16:48]SAM_PROTO_GetShiftState done [08:16:48]FM_GetShiftState done [08:16:48]opened in 1715818246 [08:16:48]opened+sec_in_day 1715904646 [08:16:48]quantity*price = 14000 [08:16:48]sum+1 = 14001 [08:16:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 199.00 НСП 1% : 1.76 НДС 12% : 21.13 Наличными: 199.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 11 16.05.2024 08:16 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4951 ФПД: 257193294746949 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T081654&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4951&fm=257193294746949&tin=02508201610067®Number=0000000000154221&sum=19900 0 [08:16:49]StoreToDocumentArchive [08:16:49]shift 44 fd 4951 [08:16:49]save to /storage/0044/doc_00004951 [08:16:49]save last doc name /storage/0044/doc_00004951 to /storage/kkm_last_doc_name [08:16:49]save OK [08:16:49]Clear old archive folders... [08:16:49]ProcessDocumentItem done err = 0, tmpTLVsize=411 [08:16:49]tlvbuf is 00CD6BE0 [08:16:49]SAM_PROTO_ClearQueue [08:16:49]wFMCommunicate request_size=4 [08:16:49]MH_SAM_APDU [08:16:49]CAPDU: 80 09 00 00 [08:16:49]Write to MH i2c: E2 08 00 CF 32 80 09 00 00 00 00 00 00 73 [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:49]Read from MH i2c: E2 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 CF 32 00 90 00 75 [08:16:49]RAPDU: 90 00 [08:16:49]wFMCommunicate OK [08:16:49]SAM_PROTO_ClearQueue done [08:16:49]KKMCreateOFDPacket [08:16:49]OFDProtocolAddRootSTLVToBuf [08:16:49]FM_MakeSignedData [08:16:49]FM_MakeSignedData [08:16:49]SAM_PROTO_SignData [08:16:49]wFMCommunicate request_size=4 [08:16:49]MH_SAM_APDU [08:16:49]CAPDU: 80 0D 01 02 [08:16:49]Write to MH i2c: E2 08 00 D0 32 80 0D 01 02 00 00 00 00 7B [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:49]Read from MH i2c: E2 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 D0 32 00 90 00 76 [08:16:49]RAPDU: 90 00 [08:16:49]wFMCommunicate OK [08:16:49]wFMCommunicate request_size=255 [08:16:49]MH_SAM_APDU [08:16:49]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 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 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 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 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [08:16:49]Write to MH i2c: E2 02 01 D1 32 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 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 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 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 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 FE [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:49]Read from MH i2c: E2 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 D1 32 00 90 00 77 [08:16:49]RAPDU: 90 00 [08:16:49]wFMCommunicate OK [08:16:49]wFMCommunicate request_size=170 [08:16:49]MH_SAM_APDU [08:16:49]CAPDU: 80 0D 02 02 A5 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F6 C0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 57 13 00 00 35 04 06 00 E9 EA 7A F8 D5 45 [08:16:49]Write to MH i2c: E2 AD 00 D2 32 80 0D 02 02 A5 00 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F6 C0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 57 13 00 00 35 04 06 00 E9 EA 7A F8 D5 45 00 00 6E [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:49]Read from MH i2c: E2 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 [08:16:49]MH_I2C_Read... [08:16:49]Read from MH i2c: E2 03 00 D2 32 00 90 00 78 [08:16:49]RAPDU: 90 00 [08:16:49]wFMCommunicate OK [08:16:49]wFMCommunicate request_size=4 [08:16:49]MH_SAM_APDU [08:16:49]CAPDU: 80 0D 03 02 [08:16:49]Write to MH i2c: E2 08 00 D3 32 80 0D 03 02 00 00 00 00 80 [08:16:49]Write i2c OK [08:16:49]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 0B 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 0B 00 D3 32 00 3F 80 47 47 B8 B8 8A F2 90 00 BA [08:16:50]RAPDU: 3F 80 47 47 B8 B8 8A F2 90 00 [08:16:50]wFMCommunicate OK [08:16:50]SAM_PROTO_SignData done [08:16:50]FM_MakeSignedData done [08:16:50]CreateOFDProtocolMessage [08:16:50]wFMCommunicate request_size=4 [08:16:50]MH_SAM_APDU [08:16:50]CAPDU: 80 11 00 00 [08:16:50]Write to MH i2c: E2 08 00 D4 32 80 11 00 00 00 00 00 00 80 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:50]Read from MH i2c: E2 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 17 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: E2 17 00 D4 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D5 [08:16:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:16:50]wFMCommunicate OK [08:16:50]CreateOFDProtocolMessage done [08:16:50]OFDSenderStorePacket 4951 [08:16:50]StoreOFDPacket docnum=4951 [08:16:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 AF 01 00 00 68 66 A7 01 4C FC 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 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 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 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 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F6 C0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 57 13 00 00 35 04 06 00 E9 EA 7A F8 D5 45 3F 80 47 47 B8 B8 8A F2 [08:16:50]CheckFolder [08:16:50]dirname=/storage/ofd_packets [08:16:50]CheckFolder done [08:16:50]ProducePacketName [08:16:50]name=ofd_packets/00004951 [08:16:50]NVStorageSaveData ofd_packets/00004951 [08:16:50]File name is /storage/ofd_packets/00004951 [08:16:50]Write 461 bytes [08:16:50]NVStorageSaveData done [08:16:50]OFDSenderStorePacket done [08:16:50]KKMCreateOFDPacket done [08:16:50]NVStorageSaveData kkm_last_timestamp [08:16:50]File name is /storage/kkm_last_timestamp [08:16:50]Write 4 bytes [08:16:50]NVStorageSaveData done [08:16:50]ExternCall_PrintAddStr [08:16:50]wPrintStart [08:16:50]Write to MH i2c: 01 00 00 D5 32 07 [08:16:50]OFD Sender: Processing packet 4951 [packets to send 4, broken 3] [08:16:50]ProducePacketName [08:16:50]name=ofd_packets/00004951 [08:16:50]OFD Sender: To server: pG, [08:16:50]CommunicateWithHost lk.salyk.kg:30040 [08:16:50]Write i2c OK [08:16:50]ConnectInit lk.salyk.kg [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 D5 32 00 00 00 00 00 FF 0F 1C [08:16:50]RasterBufferAndPrint [08:16:50]line Счет N : (3)140964 [08:16:50]line ИНН: 02508201610067 [08:16:50]line Контрольно-Кассовый Чек [08:16:50]line ПРОДАЖА [08:16:50]line Товар: 4870202521285 [08:16:50]line Напиток Сок березовый негаз 0,45л [08:16:50]line 2.000 * 70.00 [08:16:50]line = 140.00 [08:16:50]line НДС 12% НСП 1% [08:16:50]line > о реализуемом товаре [08:16:50]line Товар: 4607065001445 [08:16:50]line Шок батончик Snickers 50,5г [08:16:50]line 1.000 * 59.00 [08:16:50]line = 59.00 [08:16:50]line НДС 12% НСП 1% [08:16:50]line > о реализуемом товаре [08:16:50]line ИТОГО: 199.00 [08:16:50]line НСП 1% : 1.76 [08:16:50]line НДС 12% : 21.13 [08:16:50]line Наличными: 199.00 [08:16:50]line Безнал.: 0.00 [08:16:50]line Место: АЗС № 135 "Партнер Нефть" [08:16:50]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:16:50]line СНО: Общий режим [08:16:50]line Чек 11 16.05.2024 08:16 [08:16:50]line Смена: 44 ФФД: 1.0 [08:16:50]line ЗНМ: 0300000237 [08:16:50]line РНМ: 0000000000154221 [08:16:50]line Версия ККМ: v1.0 [08:16:50]line ФМ: 0000000000963259 [08:16:50]line ФД: 4951 [08:16:50]line ФПД: 257193294746949 [08:16:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T081654&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4951&fm=257193294746949&tin=02508201610067®Number=0000000000154221&sum=19900 [08:16:50]line 0 [08:16:50]written 0, free lines is 4095 [08:16:50]Connected sock=10 [08:16:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 AF 01 00 00 68 66 A7 01 4C FC 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 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 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 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 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 4D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 08 00 00 00 00 07 04 06 00 BC 4D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 F6 C0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 57 13 00 00 35 04 06 00 E9 EA 7A F8 D5 45 3F 80 47 47 B8 B8 8A F2 [08:16:50]Write to MH i2c: 01 00 00 04 33 37 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: 01 07 00 04 33 00 00 00 00 00 FA 0B 43 [08:16:50]RasterBufferAndPrint [08:16:50]line [08:16:50]line [08:16:50]line [08:16:50]line [08:16:50]line [08:16:50]written 0, free lines is 3069 [08:16:50]MH_Cut [08:16:50]Write to MH i2c: D1 01 00 0B 33 01 10 [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: D1 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: D1 01 00 [08:16:50]MH_I2C_Read... [08:16:50]Read from MH i2c: D1 01 00 0B 33 00 0F [08:16:50]Write to MH i2c: 01 00 00 0C 33 3F [08:16:50]Write i2c OK [08:16:50]MH_I2C_Read... [08:16:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 13 E2 47 00 88 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 33 32 35 39 10 04 04 00 57 13 00 00 F4 03 04 00 BA 6C 45 66 B6 04 01 00 00 2A B5 43 1E 11 C3 2B D3 [08:16:50]CommunicateWithHost err = 0 [08:16:50]CheckOFDResponse [08:16:50]1017 (14) - 77093643461234 [08:16:50]1041 (16) - 0000000000963259 [08:16:50]1040 (4) - 4951 [08:16:50]1012 (4) - 16.05.2024 02:17 [08:16:50]1206 (1) - 0 [08:16:50]OFD Sender: Remove packet 4951 [08:16:50]ProducePacketName [08:16:50]name=ofd_packets/00004951 [08:16:50]NVStorageDeleteData [08:16:51]OFD Sender: No OFD packet to send [08:16:52]*** Cut start [08:16:52]*** Partial cut [08:16:52]*** CUTSNS_PIN = 1 [08:16:52]*** CUTSNS_PIN = 0 [08:16:52]*** Brake cut motor [08:16:52]Read from MH i2c: 01 [08:16:52]MH_I2C_Read... [08:16:52]*** Stop cut motor [08:16:52]*** Cut end [08:16:52]Read from MH i2c: 01 07 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: 01 07 00 0C 33 00 00 00 00 00 FF 0F 54 [08:16:52]process_action close_receipt done [08:16:52]requested_data is exist [08:16:52]produce_requested_data [08:16:52]requested_item fm.sn is exist - process it [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 11 00 00 [08:16:52]Write to MH i2c: E2 08 00 0D 33 80 11 00 00 00 00 00 00 BA [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:52]Read from MH i2c: E2 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 17 00 [08:16:52]MH_I2C_Read... [08:16:52]Read from MH i2c: E2 17 00 0D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 0F [08:16:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:16:52]wFMCommunicate OK [08:16:52]requested_item fd.num is exist - process it [08:16:52]SAM_PROTO_GetFieldsCounters [08:16:52]wFMCommunicate request_size=4 [08:16:52]MH_SAM_APDU [08:16:52]CAPDU: 80 13 00 00 [08:16:52]Write to MH i2c: E2 08 00 0E 33 80 13 00 00 00 00 00 00 BD [08:16:52]Write i2c OK [08:16:52]MH_I2C_Read... [08:16:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:53]Read from MH i2c: E2 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 62 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 62 00 0E 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 57 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [08:16:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 57 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:16:53]wFMCommunicate OK [08:16:53]SAM_PROTO_GetFieldsCounters done [08:16:53]requested_item shift.num is exist - process it [08:16:53]requested_item shift.opened is exist - process it [08:16:53]req_shift_opened [08:16:53]FM_GetShiftState [08:16:53]SAM_PROTO_GetShiftState [08:16:53]wFMCommunicate request_size=4 [08:16:53]MH_SAM_APDU [08:16:53]CAPDU: 80 13 01 00 [08:16:53]Write to MH i2c: E2 08 00 0F 33 80 13 01 00 00 00 00 00 BF [08:16:53]Write i2c OK [08:16:53]MH_I2C_Read... [08:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:53]Read from MH i2c: E2 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 0E 00 [08:16:53]MH_I2C_Read... [08:16:53]Read from MH i2c: E2 0E 00 0F 33 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CB [08:16:53]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:16:53]wFMCommunicate OK [08:16:53]SAM_PROTO_GetShiftState done [08:16:53]FM_GetShiftState done [08:16:53]req_shift_opened done [08:16:53]requested_item shift.open_date is exist - process it [08:16:53]req_shift_open_date [08:16:53]req_shift_open_date done [08:16:53]produce_requested_data done [08:16:53]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4951,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:16:53]process_action_free close_receipt [08:16:53]json_value_free [08:16:53]json_value_free done [08:16:53]process_json_proto returns [08:16:53]Send response to host [08:16:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4951,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:16:53]free response buf [08:16:53]execute_script done [08:16:53]execute_script returns [08:16:53]free content buf [08:16:53]Sock 9.Close socket [08:16:53]Sock 9.Thread stoped [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:17:57]accept exits with 8 [08:17:57]New connection [08:17:57]New thread 3067587940 created [08:17:57]Thread 3067444580 joined [08:17:57]Waiting for new connection... [08:17:57] Sock 8.Parse request [08:17:57]Sock 8.Check first char [08:17:57]Sock 8.First char is OK [08:17:57]request: POST /json_proto HTTP/1.0 [08:17:57]Method: POST [08:17:57]URL: /json_proto [08:17:57]Method is POST - this is cgi request [08:17:57]url: /json_proto [08:17:57]query_string will be loaded in cgi processing [08:17:57]execute_cgi json_proto POST (null) [08:17:57]execute_cgi path=json_proto method=POST [08:17:57]POST find Content-Length [08:17:57]Host: 172.17.44.4:8080 [08:17:57]Content-Length: 621 [08:17:57]Content-Type: application/json [08:17:57] [08:17:57]POST finish read [08:17:57]Found Content-Length = 621 [08:17:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140965", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:57]execute_script... [08:17: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)140965", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:17:57]POST & json_proto [08:17:57]process_json_proto [08:17:57]json parsed OK: [08:17:57]protocol is kg_v1.0 [08:17:57]action value=close_receipt [08:17:57]process_action close_receipt [08:17:57]cmd_close_receipt [08:17:57]MH_GetDate [08:17:57]Write to MH i2c: F0 00 00 10 33 32 [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: F0 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: F0 09 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: F0 09 00 10 33 00 3B C1 45 66 6C E9 28 66 C5 [08:17:57]GetLastDocTimeStamp 1715847414 [08:17:57]current date 1715847483 [08:17:57]FM_GetShiftState [08:17:57]SAM_PROTO_GetShiftState [08:17:57]wFMCommunicate request_size=4 [08:17:57]MH_SAM_APDU [08:17:57]CAPDU: 80 13 01 00 [08:17:57]Write to MH i2c: E2 08 00 11 33 80 13 01 00 00 00 00 00 C1 [08:17:57]Write i2c OK [08:17:57]MH_I2C_Read... [08:17:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:17:57]Read from MH i2c: E2 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 0E 00 [08:17:57]MH_I2C_Read... [08:17:57]Read from MH i2c: E2 0E 00 11 33 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CD [08:17:57]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:17:57]wFMCommunicate OK [08:17:57]SAM_PROTO_GetShiftState done [08:17:57]FM_GetShiftState done [08:17:57]opened in 1715818246 [08:17:57]opened+sec_in_day 1715904646 [08:17:57]quantity*price = 13500 [08:17:57]sum+1 = 13501 [08:17:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 12 16.05.2024 08:18 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4952 ФПД: 151067221484489 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T081803&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4952&fm=151067221484489&tin=02508201610067®Number=0000000000154221&sum=13500 0 [08:17:58]StoreToDocumentArchive [08:17:58]shift 44 fd 4952 [08:17:58]save to /storage/0044/doc_00004952 [08:17:58]save last doc name /storage/0044/doc_00004952 to /storage/kkm_last_doc_name [08:17:58]save OK [08:17:58]Clear old archive folders... [08:17:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:17:58]tlvbuf is 00CB7A00 [08:17:58]SAM_PROTO_ClearQueue [08:17:58]wFMCommunicate request_size=4 [08:17:58]MH_SAM_APDU [08:17:58]CAPDU: 80 09 00 00 [08:17:58]Write to MH i2c: E2 08 00 1E 33 80 09 00 00 00 00 00 00 C3 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:17:58]Read from MH i2c: E2 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 03 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 03 00 1E 33 00 90 00 C5 [08:17:58]RAPDU: 90 00 [08:17:58]wFMCommunicate OK [08:17:58]SAM_PROTO_ClearQueue done [08:17:58]KKMCreateOFDPacket [08:17:58]OFDProtocolAddRootSTLVToBuf [08:17:58]FM_MakeSignedData [08:17:58]FM_MakeSignedData [08:17:58]SAM_PROTO_SignData [08:17:58]wFMCommunicate request_size=4 [08:17:58]MH_SAM_APDU [08:17:58]CAPDU: 80 0D 01 02 [08:17:58]Write to MH i2c: E2 08 00 1F 33 80 0D 01 02 00 00 00 00 CB [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:17:58]Read from MH i2c: E2 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 03 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 03 00 1F 33 00 90 00 C6 [08:17:58]RAPDU: 90 00 [08:17:58]wFMCommunicate OK [08:17:58]wFMCommunicate request_size=255 [08:17:58]MH_SAM_APDU [08:17:58]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 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 0C 00 00 00 F4 03 04 00 3B C1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 [08:17:58]Write to MH i2c: E2 02 01 20 33 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 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 0C 00 00 00 F4 03 04 00 3B C1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 00 00 83 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:58]Read from MH i2c: E2 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 03 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 03 00 20 33 00 90 00 C7 [08:17:58]RAPDU: 90 00 [08:17:58]wFMCommunicate OK [08:17:58]wFMCommunicate request_size=32 [08:17:58]MH_SAM_APDU [08:17:58]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 32 35 39 10 04 04 00 58 13 00 00 35 04 06 00 89 65 14 12 E3 C9 [08:17:58]Write to MH i2c: E2 23 00 21 33 80 0D 02 02 1B 00 30 30 30 39 36 33 32 35 39 10 04 04 00 58 13 00 00 35 04 06 00 89 65 14 12 E3 C9 00 00 58 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:17:58]Read from MH i2c: E2 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 03 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 03 00 21 33 00 90 00 C8 [08:17:58]RAPDU: 90 00 [08:17:58]wFMCommunicate OK [08:17:58]wFMCommunicate request_size=4 [08:17:58]MH_SAM_APDU [08:17:58]CAPDU: 80 0D 03 02 [08:17:58]Write to MH i2c: E2 08 00 22 33 80 0D 03 02 00 00 00 00 D0 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:17:58]Read from MH i2c: E2 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 0B 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 0B 00 22 33 00 A3 83 52 85 8D 7D C0 2A 90 00 C2 [08:17:58]RAPDU: A3 83 52 85 8D 7D C0 2A 90 00 [08:17:58]wFMCommunicate OK [08:17:58]SAM_PROTO_SignData done [08:17:58]FM_MakeSignedData done [08:17:58]CreateOFDProtocolMessage [08:17:58]wFMCommunicate request_size=4 [08:17:58]MH_SAM_APDU [08:17:58]CAPDU: 80 11 00 00 [08:17:58]Write to MH i2c: E2 08 00 23 33 80 11 00 00 00 00 00 00 D0 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:17:58]Read from MH i2c: E2 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 17 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: E2 17 00 23 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 25 [08:17:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:17:58]wFMCommunicate OK [08:17:58]CreateOFDProtocolMessage done [08:17:58]OFDSenderStorePacket 4952 [08:17:58]StoreOFDPacket docnum=4952 [08:17:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 25 01 00 00 9D 86 1D 01 CF A3 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 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 0C 00 00 00 F4 03 04 00 3B C1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 58 13 00 00 35 04 06 00 89 65 14 12 E3 C9 A3 83 52 85 8D 7D C0 2A [08:17:58]CheckFolder [08:17:58]dirname=/storage/ofd_packets [08:17:58]CheckFolder done [08:17:58]ProducePacketName [08:17:58]name=ofd_packets/00004952 [08:17:58]NVStorageSaveData ofd_packets/00004952 [08:17:58]File name is /storage/ofd_packets/00004952 [08:17:58]Write 323 bytes [08:17:58]NVStorageSaveData done [08:17:58]OFDSenderStorePacket done [08:17:58]KKMCreateOFDPacket done [08:17:58]NVStorageSaveData kkm_last_timestamp [08:17:58]File name is /storage/kkm_last_timestamp [08:17:58]Write 4 bytes [08:17:58]NVStorageSaveData done [08:17:58]ExternCall_PrintAddStr [08:17:58]wPrintStart [08:17:58]Write to MH i2c: 01 00 00 24 33 57 [08:17:58]Write i2c OK [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: 01 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: 01 07 00 [08:17:58]MH_I2C_Read... [08:17:58]Read from MH i2c: 01 07 00 24 33 00 00 00 00 00 FF 0F 6C [08:17:58]RasterBufferAndPrint [08:17:58]line Счет N : (3)140965 [08:17:58]line ИНН: 02508201610067 [08:17:58]line Контрольно-Кассовый Чек [08:17:58]line ПРОДАЖА [08:17:58]line Товар: 48743570 [08:17:58]line Сигареты Winston XStyle Blue [08:17:58]line 1.000 * 135.00 [08:17:58]line = 135.00 [08:17:58]line НДС 12% НСП 1% [08:17:58]line > о реализуемом товаре [08:17:58]line ИТОГО: 135.00 [08:17:58]line НСП 1% : 1.19 [08:17:58]line НДС 12% : 14.34 [08:17:58]line Наличными: 135.00 [08:17:58]line Безнал.: 0.00 [08:17:58]line Место: АЗС № 135 "Партнер Нефть" [08:17:58]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:17:58]line СНО: Общий режим [08:17:58]line Чек 12 16.05.2024 08:18 [08:17:58]line Смена: 44 ФФД: 1.0 [08:17:58]line ЗНМ: 0300000237 [08:17:58]line РНМ: 0000000000154221 [08:17:59]line Версия ККМ: v1.0 [08:17:59]line ФМ: 0000000000963259 [08:17:59]line ФД: 4952 [08:17:59]line ФПД: 151067221484489 [08:17:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T081803&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4952&fm=151067221484489&tin=02508201610067®Number=0000000000154221&sum=13500 [08:17:59]line 0 [08:17:59]OFD Sender: Processing packet 4952 [packets to send 4, broken 3] [08:17:59]ProducePacketName [08:17:59]name=ofd_packets/00004952 [08:17:59]OFD Sender: To server: pG, [08:17:59]CommunicateWithHost lk.salyk.kg:30040 [08:17:59]ConnectInit lk.salyk.kg [08:17:59]written 0, free lines is 4095 [08:17:59]Connected sock=10 [08:17:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 25 01 00 00 9D 86 1D 01 CF A3 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 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 0C 00 00 00 F4 03 04 00 3B C1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 58 13 00 00 35 04 06 00 89 65 14 12 E3 C9 A3 83 52 85 8D 7D C0 2A [08:17:59]Write to MH i2c: 01 00 00 4C 33 7F [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: 01 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: 01 07 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: 01 07 00 4C 33 00 00 00 00 00 7A 0C 0C [08:17:59]RasterBufferAndPrint [08:17:59]line [08:17:59]line [08:17:59]line [08:17:59]line [08:17:59]line [08:17:59]written 0, free lines is 3199 [08:17:59]MH_Cut [08:17:59]Write to MH i2c: D1 01 00 53 33 01 58 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: D1 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: D1 01 00 [08:17:59]MH_I2C_Read... [08:17:59]Read from MH i2c: D1 01 00 53 33 00 57 [08:17:59]Write to MH i2c: 01 00 00 54 33 87 [08:17:59]Write i2c OK [08:17:59]MH_I2C_Read... [08:17:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 41 32 47 00 38 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 58 13 00 00 F4 03 04 00 FF 6C 45 66 B6 04 01 00 00 33 A8 37 13 6E 77 FA F9 [08:17:59]CommunicateWithHost err = 0 [08:17:59]CheckOFDResponse [08:17:59]1017 (14) - 77093643461234 [08:17:59]1041 (16) - 0000000000963259 [08:17:59]1040 (4) - 4952 [08:17:59]1012 (4) - 16.05.2024 02:18 [08:17:59]1206 (1) - 0 [08:17:59]OFD Sender: Remove packet 4952 [08:17:59]ProducePacketName [08:17:59]name=ofd_packets/00004952 [08:17:59]NVStorageDeleteData [08:18:00]OFD Sender: No OFD packet to send [08:18:00]*** Cut start [08:18:00]*** Partial cut [08:18:00]*** CUTSNS_PIN = 1 [08:18:00]*** CUTSNS_PIN = 0 [08:18:00]*** Brake cut motor [08:18:01]Read from MH i2c: 01 [08:18:01]MH_I2C_Read... [08:18:01]*** Stop cut motor [08:18:01]*** Cut end [08:18:01]Read from MH i2c: 01 07 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: 01 07 00 54 33 00 00 00 00 00 FF 0F 9C [08:18:01]process_action close_receipt done [08:18:01]requested_data is exist [08:18:01]produce_requested_data [08:18:01]requested_item fm.sn is exist - process it [08:18:01]wFMCommunicate request_size=4 [08:18:01]MH_SAM_APDU [08:18:01]CAPDU: 80 11 00 00 [08:18:01]Write to MH i2c: E2 08 00 55 33 80 11 00 00 00 00 00 00 02 [08:18:01]Write i2c OK [08:18:01]MH_I2C_Read... [08:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:18:01]Read from MH i2c: E2 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 17 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 17 00 55 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 57 [08:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:18:01]wFMCommunicate OK [08:18:01]requested_item fd.num is exist - process it [08:18:01]SAM_PROTO_GetFieldsCounters [08:18:01]wFMCommunicate request_size=4 [08:18:01]MH_SAM_APDU [08:18:01]CAPDU: 80 13 00 00 [08:18:01]Write to MH i2c: E2 08 00 56 33 80 13 00 00 00 00 00 00 05 [08:18:01]Write i2c OK [08:18:01]MH_I2C_Read... [08:18:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:18:01]Read from MH i2c: E2 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 62 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 62 00 56 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 58 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 D9 [08:18:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 58 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0C 00 00 00 5E 04 04 00 0C 00 00 00 57 04 04 00 0D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:18:01]wFMCommunicate OK [08:18:01]SAM_PROTO_GetFieldsCounters done [08:18:01]requested_item shift.num is exist - process it [08:18:01]requested_item shift.opened is exist - process it [08:18:01]req_shift_opened [08:18:01]FM_GetShiftState [08:18:01]SAM_PROTO_GetShiftState [08:18:01]wFMCommunicate request_size=4 [08:18:01]MH_SAM_APDU [08:18:01]CAPDU: 80 13 01 00 [08:18:01]Write to MH i2c: E2 08 00 57 33 80 13 01 00 00 00 00 00 07 [08:18:01]Write i2c OK [08:18:01]MH_I2C_Read... [08:18:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:18:01]Read from MH i2c: E2 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 0E 00 [08:18:01]MH_I2C_Read... [08:18:01]Read from MH i2c: E2 0E 00 57 33 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 13 [08:18:01]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:18:01]wFMCommunicate OK [08:18:01]SAM_PROTO_GetShiftState done [08:18:01]FM_GetShiftState done [08:18:01]req_shift_opened done [08:18:01]requested_item shift.open_date is exist - process it [08:18:01]req_shift_open_date [08:18:01]req_shift_open_date done [08:18:01]produce_requested_data done [08:18:01]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4952,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:18:01]process_action_free close_receipt [08:18:01]json_value_free [08:18:01]json_value_free done [08:18:01]process_json_proto returns [08:18:01]Send response to host [08:18:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4952,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:18:01]free response buf [08:18:01]execute_script done [08:18:01]execute_script returns [08:18:01]free content buf [08:18:01]Sock 8.Close socket [08:18:01]Sock 8.Thread stoped [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:16]accept exits with 9 [08:20:16]New connection [08:20:16]New thread 3067444580 created [08:20:16]Thread 3067587940 joined [08:20:16]Waiting for new connection... [08:20:16] Sock 9.Parse request [08:20:16]Sock 9.Check first char [08:20:16]Sock 9.First char is OK [08:20:16]request: POST /json_proto HTTP/1.0 [08:20:16]Method: POST [08:20:16]URL: /json_proto [08:20:16]Method is POST - this is cgi request [08:20:16]url: /json_proto [08:20:16]query_string will be loaded in cgi processing [08:20:16]execute_cgi json_proto POST (null) [08:20:16]execute_cgi path=json_proto method=POST [08:20:16]POST find Content-Length [08:20:16]Host: 172.17.44.4:8080 [08:20:16]Content-Length: 621 [08:20:16]Content-Type: application/json [08:20:16] [08:20:16]POST finish read [08:20:16]Found Content-Length = 621 [08:20:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140966", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:16]execute_script... [08:20: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)140966", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:20:16]POST & json_proto [08:20:16]process_json_proto [08:20:16]json parsed OK: [08:20:16]protocol is kg_v1.0 [08:20:16]action value=close_receipt [08:20:16]process_action close_receipt [08:20:16]cmd_close_receipt [08:20:16]MH_GetDate [08:20:16]Write to MH i2c: F0 00 00 58 33 7A [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: F0 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: F0 09 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: F0 09 00 58 33 00 C6 C1 45 66 6C E9 28 66 98 [08:20:16]GetLastDocTimeStamp 1715847483 [08:20:16]current date 1715847622 [08:20:16]FM_GetShiftState [08:20:16]SAM_PROTO_GetShiftState [08:20:16]wFMCommunicate request_size=4 [08:20:16]MH_SAM_APDU [08:20:16]CAPDU: 80 13 01 00 [08:20:16]Write to MH i2c: E2 08 00 59 33 80 13 01 00 00 00 00 00 09 [08:20:16]Write i2c OK [08:20:16]MH_I2C_Read... [08:20:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:16]Read from MH i2c: E2 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 0E 00 [08:20:16]MH_I2C_Read... [08:20:16]Read from MH i2c: E2 0E 00 59 33 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 15 [08:20:16]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:20:16]wFMCommunicate OK [08:20:16]SAM_PROTO_GetShiftState done [08:20:16]FM_GetShiftState done [08:20:16]opened in 1715818246 [08:20:16]opened+sec_in_day 1715904646 [08:20:16]quantity*price = 13500 [08:20:16]sum+1 = 13501 [08:20:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 13 16.05.2024 08:20 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4953 ФПД: 101772072961559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T082022&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4953&fm=101772072961559&tin=02508201610067®Number=0000000000154221&sum=13500 0 [08:20:17]StoreToDocumentArchive [08:20:17]shift 44 fd 4953 [08:20:17]save to /storage/0044/doc_00004953 [08:20:17]save last doc name /storage/0044/doc_00004953 to /storage/kkm_last_doc_name [08:20:17]save OK [08:20:17]Clear old archive folders... [08:20:17]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:20:17]tlvbuf is 00D65630 [08:20:17]SAM_PROTO_ClearQueue [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 09 00 00 [08:20:17]Write to MH i2c: E2 08 00 66 33 80 09 00 00 00 00 00 00 0B [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 66 33 00 90 00 0D [08:20:17]RAPDU: 90 00 [08:20:17]wFMCommunicate OK [08:20:17]SAM_PROTO_ClearQueue done [08:20:17]KKMCreateOFDPacket [08:20:17]OFDProtocolAddRootSTLVToBuf [08:20:17]FM_MakeSignedData [08:20:17]FM_MakeSignedData [08:20:17]SAM_PROTO_SignData [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 0D 01 02 [08:20:17]Write to MH i2c: E2 08 00 67 33 80 0D 01 02 00 00 00 00 13 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 67 33 00 90 00 0E [08:20:17]RAPDU: 90 00 [08:20:17]wFMCommunicate OK [08:20:17]wFMCommunicate request_size=255 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C6 C1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 [08:20:17]Write to MH i2c: E2 02 01 68 33 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C6 C1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 00 00 43 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 68 33 00 90 00 0F [08:20:17]RAPDU: 90 00 [08:20:17]wFMCommunicate OK [08:20:17]wFMCommunicate request_size=32 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 32 35 39 10 04 04 00 59 13 00 00 35 04 06 00 5C 8F A8 41 C6 17 [08:20:17]Write to MH i2c: E2 23 00 69 33 80 0D 02 02 1B 00 30 30 30 39 36 33 32 35 39 10 04 04 00 59 13 00 00 35 04 06 00 5C 8F A8 41 C6 17 00 00 92 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 03 00 69 33 00 90 00 10 [08:20:17]RAPDU: 90 00 [08:20:17]wFMCommunicate OK [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 0D 03 02 [08:20:17]Write to MH i2c: E2 08 00 6A 33 80 0D 03 02 00 00 00 00 18 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 0B 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 0B 00 6A 33 00 17 43 D5 0E DD 54 9C 99 90 00 BC [08:20:17]RAPDU: 17 43 D5 0E DD 54 9C 99 90 00 [08:20:17]wFMCommunicate OK [08:20:17]SAM_PROTO_SignData done [08:20:17]FM_MakeSignedData done [08:20:17]CreateOFDProtocolMessage [08:20:17]wFMCommunicate request_size=4 [08:20:17]MH_SAM_APDU [08:20:17]CAPDU: 80 11 00 00 [08:20:17]Write to MH i2c: E2 08 00 6B 33 80 11 00 00 00 00 00 00 18 [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:17]Read from MH i2c: E2 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: E2 17 00 [08:20:17]MH_I2C_Read... [08:20:17]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 33 32 35 39 90 00 6D [08:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:20:17]wFMCommunicate OK [08:20:17]CreateOFDProtocolMessage done [08:20:17]OFDSenderStorePacket 4953 [08:20:17]StoreOFDPacket docnum=4953 [08:20:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 25 01 00 00 97 52 1D 01 B1 A8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C6 C1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 59 13 00 00 35 04 06 00 5C 8F A8 41 C6 17 17 43 D5 0E DD 54 9C 99 [08:20:17]CheckFolder [08:20:17]dirname=/storage/ofd_packets [08:20:17]CheckFolder done [08:20:17]ProducePacketName [08:20:17]name=ofd_packets/00004953 [08:20:17]NVStorageSaveData ofd_packets/00004953 [08:20:17]File name is /storage/ofd_packets/00004953 [08:20:17]Write 323 bytes [08:20:17]NVStorageSaveData done [08:20:17]OFDSenderStorePacket done [08:20:17]KKMCreateOFDPacket done [08:20:17]NVStorageSaveData kkm_last_timestamp [08:20:17]File name is /storage/kkm_last_timestamp [08:20:17]Write 4 bytes [08:20:17]NVStorageSaveData done [08:20:17]ExternCall_PrintAddStr [08:20:17]wPrintStart [08:20:17]Write to MH i2c: 01 00 00 6C 33 9F [08:20:17]Write i2c OK [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: 01 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: 01 07 00 [08:20:17]MH_I2C_Read... [08:20:17]Read from MH i2c: 01 07 00 6C 33 00 00 00 00 00 FF 0F B4 [08:20:17]RasterBufferAndPrint [08:20:17]line Счет N : (3)140966 [08:20:17]line ИНН: 02508201610067 [08:20:17]line Контрольно-Кассовый Чек [08:20:17]line ПРОДАЖА [08:20:17]line Товар: 48747059 [08:20:17]line Сигареты Winston Legend Blue [08:20:17]line 1.000 * 135.00 [08:20:17]line = 135.00 [08:20:17]line НДС 12% НСП 1% [08:20:17]line > о реализуемом товаре [08:20:17]line ИТОГО: 135.00 [08:20:17]line НСП 1% : 1.19 [08:20:17]line НДС 12% : 14.34 [08:20:17]line Наличными: 135.00 [08:20:17]line Безнал.: 0.00 [08:20:17]line Место: АЗС № 135 "Партнер Нефть" [08:20:17]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:20:17]line СНО: Общий режим [08:20:17]line Чек 13 16.05.2024 08:20 [08:20:17]line Смена: 44 ФФД: 1.0 [08:20:17]line ЗНМ: 0300000237 [08:20:17]line РНМ: 0000000000154221 [08:20:17]line Версия ККМ: v1.0 [08:20:17]line ФМ: 0000000000963259 [08:20:17]line ФД: 4953 [08:20:17]line ФПД: 101772072961559 [08:20:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T082022&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4953&fm=101772072961559&tin=02508201610067®Number=0000000000154221&sum=13500 [08:20:18]line 0 [08:20:18]OFD Sender: Processing packet 4953 [packets to send 4, broken 3] [08:20:18]ProducePacketName [08:20:18]name=ofd_packets/00004953 [08:20:18]OFD Sender: To server: pG, [08:20:18]CommunicateWithHost lk.salyk.kg:30040 [08:20:18]ConnectInit lk.salyk.kg [08:20:18]written 0, free lines is 4095 [08:20:18]Connected sock=10 [08:20:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 25 01 00 00 97 52 1D 01 B1 A8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 C6 C1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 59 13 00 00 35 04 06 00 5C 8F A8 41 C6 17 17 43 D5 0E DD 54 9C 99 [08:20:18]Write to MH i2c: 01 00 00 95 33 C8 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: 01 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: 01 07 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: 01 07 00 95 33 00 00 00 00 00 6A 0C 45 [08:20:18]RasterBufferAndPrint [08:20:18]line [08:20:18]line [08:20:18]line [08:20:18]line [08:20:18]line [08:20:18]written 0, free lines is 3184 [08:20:18]MH_Cut [08:20:18]Write to MH i2c: D1 01 00 9C 33 01 A1 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: D1 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: D1 01 00 [08:20:18]MH_I2C_Read... [08:20:18]Read from MH i2c: D1 01 00 9C 33 00 A0 [08:20:18]Write to MH i2c: 01 00 00 9D 33 D0 [08:20:18]Write i2c OK [08:20:18]MH_I2C_Read... [08:20:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 8B 49 47 00 80 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 59 13 00 00 F4 03 04 00 8A 6D 45 66 B6 04 01 00 00 59 8F C3 36 23 1A 07 8E [08:20:18]CommunicateWithHost err = 0 [08:20:18]CheckOFDResponse [08:20:18]1017 (14) - 77093643461234 [08:20:18]1041 (16) - 0000000000963259 [08:20:18]1040 (4) - 4953 [08:20:18]1012 (4) - 16.05.2024 02:20 [08:20:18]1206 (1) - 0 [08:20:18]OFD Sender: Remove packet 4953 [08:20:18]ProducePacketName [08:20:18]name=ofd_packets/00004953 [08:20:18]NVStorageDeleteData [08:20:19]OFD Sender: No OFD packet to send [08:20:19]*** Cut start [08:20:19]*** Partial cut [08:20:19]*** CUTSNS_PIN = 1 [08:20:19]*** CUTSNS_PIN = 0 [08:20:20]*** Brake cut motor [08:20:20]Read from MH i2c: 01 [08:20:20]MH_I2C_Read... [08:20:20]*** Stop cut motor [08:20:20]*** Cut end [08:20:20]Read from MH i2c: 01 07 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: 01 07 00 9D 33 00 00 00 00 00 FF 0F E5 [08:20:20]process_action close_receipt done [08:20:20]requested_data is exist [08:20:20]produce_requested_data [08:20:20]requested_item fm.sn is exist - process it [08:20:20]wFMCommunicate request_size=4 [08:20:20]MH_SAM_APDU [08:20:20]CAPDU: 80 11 00 00 [08:20:20]Write to MH i2c: E2 08 00 9E 33 80 11 00 00 00 00 00 00 4B [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 17 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 17 00 9E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A0 [08:20:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:20:20]wFMCommunicate OK [08:20:20]requested_item fd.num is exist - process it [08:20:20]SAM_PROTO_GetFieldsCounters [08:20:20]wFMCommunicate request_size=4 [08:20:20]MH_SAM_APDU [08:20:20]CAPDU: 80 13 00 00 [08:20:20]Write to MH i2c: E2 08 00 9F 33 80 13 00 00 00 00 00 00 4E [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 62 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 62 00 9F 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 59 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [08:20:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 59 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0D 00 00 00 5E 04 04 00 0D 00 00 00 57 04 04 00 0E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:20:20]wFMCommunicate OK [08:20:20]SAM_PROTO_GetFieldsCounters done [08:20:20]requested_item shift.num is exist - process it [08:20:20]requested_item shift.opened is exist - process it [08:20:20]req_shift_opened [08:20:20]FM_GetShiftState [08:20:20]SAM_PROTO_GetShiftState [08:20:20]wFMCommunicate request_size=4 [08:20:20]MH_SAM_APDU [08:20:20]CAPDU: 80 13 01 00 [08:20:20]Write to MH i2c: E2 08 00 A0 33 80 13 01 00 00 00 00 00 50 [08:20:20]Write i2c OK [08:20:20]MH_I2C_Read... [08:20:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:20:20]Read from MH i2c: E2 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 0E 00 [08:20:20]MH_I2C_Read... [08:20:20]Read from MH i2c: E2 0E 00 A0 33 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 5C [08:20:20]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:20:20]wFMCommunicate OK [08:20:20]SAM_PROTO_GetShiftState done [08:20:20]FM_GetShiftState done [08:20:20]req_shift_opened done [08:20:20]requested_item shift.open_date is exist - process it [08:20:20]req_shift_open_date [08:20:20]req_shift_open_date done [08:20:20]produce_requested_data done [08:20:20]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4953,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:20:20]process_action_free close_receipt [08:20:20]json_value_free [08:20:20]json_value_free done [08:20:20]process_json_proto returns [08:20:20]Send response to host [08:20:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4953,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:20:20]free response buf [08:20:20]execute_script done [08:20:20]execute_script returns [08:20:20]free content buf [08:20:20]Sock 9.Close socket [08:20:20]Sock 9.Thread stoped [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:04]OFD Sender: No OFD packet to send [08:23:09]OFD Sender: No OFD packet to send [08:23:14]OFD Sender: No OFD packet to send [08:23:19]OFD Sender: No OFD packet to send [08:23:24]OFD Sender: No OFD packet to send [08:23:29]OFD Sender: No OFD packet to send [08:23:34]OFD Sender: No OFD packet to send [08:23:39]OFD Sender: No OFD packet to send [08:23:44]OFD Sender: No OFD packet to send [08:23:49]OFD Sender: No OFD packet to send [08:23:54]OFD Sender: No OFD packet to send [08:23:59]OFD Sender: No OFD packet to send [08:24:04]OFD Sender: No OFD packet to send [08:24:09]OFD Sender: No OFD packet to send [08:24:14]OFD Sender: No OFD packet to send [08:24:19]OFD Sender: No OFD packet to send [08:24:24]OFD Sender: No OFD packet to send [08:24:29]OFD Sender: No OFD packet to send [08:24:34]OFD Sender: No OFD packet to send [08:24:39]OFD Sender: No OFD packet to send [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:12]accept exits with 8 [08:25:12]New connection [08:25:12]New thread 3067587940 created [08:25:12]Thread 3067444580 joined [08:25:12]Waiting for new connection... [08:25:12] Sock 8.Parse request [08:25:12]Sock 8.Check first char [08:25:12]Sock 8.First char is OK [08:25:12]request: POST /json_proto HTTP/1.0 [08:25:12]Method: POST [08:25:12]URL: /json_proto [08:25:12]Method is POST - this is cgi request [08:25:12]url: /json_proto [08:25:12]query_string will be loaded in cgi processing [08:25:12]execute_cgi json_proto POST (null) [08:25:12]execute_cgi path=json_proto method=POST [08:25:12]POST find Content-Length [08:25:12]Host: 172.17.44.4:8080 [08:25:12]Content-Length: 1072 [08:25:12]Content-Type: application/json [08:25:12] [08:25:12]POST finish read [08:25:12]Found Content-Length = 1072 [08:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140967", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:12]execute_script... [08:25: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)140967", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:12]POST & json_proto [08:25:12]process_json_proto [08:25:12]json parsed OK: [08:25:12]protocol is kg_v1.0 [08:25:12]action value=close_receipt [08:25:12]process_action close_receipt [08:25:12]cmd_close_receipt [08:25:12]MH_GetDate [08:25:12]Write to MH i2c: F0 00 00 A1 33 C3 [08:25:12]Write i2c OK [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: F0 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: F0 09 00 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: F0 09 00 A1 33 00 EE C2 45 66 6C E9 28 66 0A [08:25:12]GetLastDocTimeStamp 1715847622 [08:25:12]current date 1715847918 [08:25:12]FM_GetShiftState [08:25:12]SAM_PROTO_GetShiftState [08:25:12]wFMCommunicate request_size=4 [08:25:12]MH_SAM_APDU [08:25:12]CAPDU: 80 13 01 00 [08:25:12]Write to MH i2c: E2 08 00 A2 33 80 13 01 00 00 00 00 00 52 [08:25:12]Write i2c OK [08:25:12]MH_I2C_Read... [08:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:12]Read from MH i2c: E2 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: E2 0E 00 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: E2 0E 00 A2 33 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 5E [08:25:12]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:25:12]wFMCommunicate OK [08:25:12]SAM_PROTO_GetShiftState done [08:25:12]FM_GetShiftState done [08:25:12]opened in 1715818246 [08:25:12]opened+sec_in_day 1715904646 [08:25:12]quantity*price = 13000 [08:25:12]sum+1 = 13001 [08:25:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.60 Наличными: 0.00 Безнал.: 260.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 14 16.05.2024 08:25 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: Демир КИ Банк ФМ: 0000000000963259 ФД: 4954 ФПД: 39845595228014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T082518&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4954&fm=39845595228014&tin=02508201610067®Number=0000000000154221&sum=26000 0 [08:25:13]StoreToDocumentArchive [08:25:13]shift 44 fd 4954 [08:25:13]save to /storage/0044/doc_00004954 [08:25:13]save last doc name /storage/0044/doc_00004954 to /storage/kkm_last_doc_name [08:25:13]save OK [08:25:13]Clear old archive folders... [08:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=384 [08:25:13]tlvbuf is 00D63340 [08:25:13]SAM_PROTO_ClearQueue [08:25:13]wFMCommunicate request_size=4 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 09 00 00 [08:25:13]Write to MH i2c: E2 08 00 AF 33 80 09 00 00 00 00 00 00 54 [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 AF 33 00 90 00 56 [08:25:13]RAPDU: 90 00 [08:25:13]wFMCommunicate OK [08:25:13]SAM_PROTO_ClearQueue done [08:25:13]KKMCreateOFDPacket [08:25:13]OFDProtocolAddRootSTLVToBuf [08:25:13]FM_MakeSignedData [08:25:13]FM_MakeSignedData [08:25:13]SAM_PROTO_SignData [08:25:13]wFMCommunicate request_size=4 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 0D 01 02 [08:25:13]Write to MH i2c: E2 08 00 B0 33 80 0D 01 02 00 00 00 00 5C [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 B0 33 00 90 00 57 [08:25:13]RAPDU: 90 00 [08:25:13]wFMCommunicate OK [08:25:13]wFMCommunicate request_size=255 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 0D 02 02 FA 03 00 80 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 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 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 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [08:25:13]Write to MH i2c: E2 02 01 B1 33 80 0D 02 02 FA 00 03 00 80 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 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 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 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 AF [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 B1 33 00 90 00 58 [08:25:13]RAPDU: 90 00 [08:25:13]wFMCommunicate OK [08:25:13]wFMCommunicate request_size=143 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 0D 02 02 8A E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EE C2 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5A 13 00 00 35 04 06 00 24 3D 46 8C A7 6E [08:25:13]Write to MH i2c: E2 92 00 B2 33 80 0D 02 02 8A 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EE C2 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5A 13 00 00 35 04 06 00 24 3D 46 8C A7 6E 00 00 8F [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 B2 33 00 90 00 59 [08:25:13]RAPDU: 90 00 [08:25:13]wFMCommunicate OK [08:25:13]wFMCommunicate request_size=4 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 0D 03 02 [08:25:13]Write to MH i2c: E2 08 00 B3 33 80 0D 03 02 00 00 00 00 61 [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:14]Read from MH i2c: E2 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: E2 0B 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: E2 0B 00 B3 33 00 A8 91 6E 50 9F 69 BC FB 90 00 18 [08:25:14]RAPDU: A8 91 6E 50 9F 69 BC FB 90 00 [08:25:14]wFMCommunicate OK [08:25:14]SAM_PROTO_SignData done [08:25:14]FM_MakeSignedData done [08:25:14]CreateOFDProtocolMessage [08:25:14]wFMCommunicate request_size=4 [08:25:14]MH_SAM_APDU [08:25:14]CAPDU: 80 11 00 00 [08:25:14]Write to MH i2c: E2 08 00 B4 33 80 11 00 00 00 00 00 00 61 [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:14]Read from MH i2c: E2 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: E2 17 00 [08:25:14]MH_I2C_Read... [08:25:14]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 33 32 35 39 90 00 B6 [08:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:25:14]wFMCommunicate OK [08:25:14]CreateOFDProtocolMessage done [08:25:14]OFDSenderStorePacket 4954 [08:25:14]StoreOFDPacket docnum=4954 [08:25:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 94 01 00 00 1E 06 8C 01 36 ED 5A 03 01 00 03 00 80 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 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 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 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 C8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EE C2 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5A 13 00 00 35 04 06 00 24 3D 46 8C A7 6E A8 91 6E 50 9F 69 BC FB [08:25:14]CheckFolder [08:25:14]dirname=/storage/ofd_packets [08:25:14]CheckFolder done [08:25:14]ProducePacketName [08:25:14]name=ofd_packets/00004954 [08:25:14]NVStorageSaveData ofd_packets/00004954 [08:25:14]File name is /storage/ofd_packets/00004954 [08:25:14]Write 434 bytes [08:25:14]NVStorageSaveData done [08:25:14]OFDSenderStorePacket done [08:25:14]KKMCreateOFDPacket done [08:25:14]NVStorageSaveData kkm_last_timestamp [08:25:14]File name is /storage/kkm_last_timestamp [08:25:14]Write 4 bytes [08:25:14]NVStorageSaveData done [08:25:14]ExternCall_PrintAddStr [08:25:14]wPrintStart [08:25:14]Write to MH i2c: 01 00 00 B5 33 E8 [08:25:14]OFD Sender: Processing packet 4954 [packets to send 4, broken 3] [08:25:14]ProducePacketName [08:25:14]name=ofd_packets/00004954 [08:25:14]OFD Sender: To server: pG, [08:25:14]CommunicateWithHost lk.salyk.kg:30040 [08:25:14]ConnectInit lk.salyk.kg [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 07 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 07 00 B5 33 00 00 00 00 00 FF 0F FD [08:25:14]RasterBufferAndPrint [08:25:14]line Счет N : (3)140967 [08:25:14]line ИНН: 02508201610067 [08:25:14]line Контрольно-Кассовый Чек [08:25:14]line ПРОДАЖА [08:25:14]line Товар: 48745000 [08:25:14]line Сигареты Winston Purple Mix [08:25:14]line 1.000 * 130.00 [08:25:14]line = 130.00 [08:25:14]line НДС 12% НСП 1% [08:25:14]line > о реализуемом товаре [08:25:14]line Товар: 2000036220012 [08:25:14]line Кофе Капучино XL(GABB TRADE) [08:25:14]line 1.000 * 130.00 [08:25:14]line = 130.00 [08:25:14]line НДС 12% НСП 1% [08:25:14]line > о реализуемом товаре [08:25:14]line ИТОГО: 260.00 [08:25:14]line НСП 1% : 2.30 [08:25:14]line НДС 12% : 27.60 [08:25:14]line Наличными: 0.00 [08:25:14]line Безнал.: 260.00 [08:25:14]line Место: АЗС № 135 "Партнер Нефть" [08:25:14]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:25:14]line СНО: Общий режим [08:25:14]line Чек 14 16.05.2024 08:25 [08:25:14]line Смена: 44 ФФД: 1.0 [08:25:14]line ЗНМ: 0300000237 [08:25:14]line РНМ: 0000000000154221 [08:25:14]line Версия ККМ: v1.0 [08:25:14]line Платежная система: Демир КИ Банк [08:25:14]line ФМ: 0000000000963259 [08:25:14]line ФД: 4954 [08:25:14]line ФПД: 39845595228014 [08:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T082518&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4954&fm=39845595228014&tin=02508201610067®Number=0000000000154221&sum=26000 [08:25:14]line 0 [08:25:14]written 0, free lines is 4095 [08:25:14]Connected sock=10 [08:25:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 94 01 00 00 1E 06 8C 01 36 ED 5A 03 01 00 03 00 80 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 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 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 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 C8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 90 65 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 EE C2 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5A 13 00 00 35 04 06 00 24 3D 46 8C A7 6E A8 91 6E 50 9F 69 BC FB [08:25:14]Write to MH i2c: 01 00 00 E6 33 19 [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 07 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: 01 07 00 E6 33 00 00 00 00 00 DB 0B 06 [08:25:14]RasterBufferAndPrint [08:25:14]line [08:25:14]line [08:25:14]line [08:25:14]line [08:25:14]line [08:25:14]written 0, free lines is 3039 [08:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 D5 7E 47 00 E2 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5A 13 00 00 F4 03 04 00 B2 6E 45 66 B6 04 01 00 00 24 22 C7 1F EB E2 65 B5 [08:25:14]CommunicateWithHost err = 0 [08:25:14]CheckOFDResponse [08:25:14]1017 (14) - 77093643461234 [08:25:14]1041 (16) - 0000000000963259 [08:25:14]1040 (4) - 4954 [08:25:14]1012 (4) - 16.05.2024 02:25 [08:25:14]1206 (1) - 0 [08:25:14]OFD Sender: Remove packet 4954 [08:25:14]ProducePacketName [08:25:14]name=ofd_packets/00004954 [08:25:14]NVStorageDeleteData [08:25:14]MH_Cut [08:25:14]Write to MH i2c: D1 01 00 ED 33 01 F2 [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: D1 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: D1 01 00 [08:25:14]MH_I2C_Read... [08:25:14]Read from MH i2c: D1 01 00 ED 33 00 F1 [08:25:14]Write to MH i2c: 01 00 00 EE 33 21 [08:25:14]Write i2c OK [08:25:14]MH_I2C_Read... [08:25:15]OFD Sender: No OFD packet to send [08:25:16]*** Cut start [08:25:16]*** Partial cut [08:25:16]*** CUTSNS_PIN = 1 [08:25:16]*** CUTSNS_PIN = 0 [08:25:16]*** Brake cut motor [08:25:16]Read from MH i2c: 01 [08:25:16]MH_I2C_Read... [08:25:16]*** Stop cut motor [08:25:16]*** Cut end [08:25:16]Read from MH i2c: 01 07 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: 01 07 00 EE 33 00 00 00 00 00 FF 0F 36 [08:25:16]process_action close_receipt done [08:25:16]requested_data is exist [08:25:16]produce_requested_data [08:25:16]requested_item fm.sn is exist - process it [08:25:16]wFMCommunicate request_size=4 [08:25:16]MH_SAM_APDU [08:25:16]CAPDU: 80 11 00 00 [08:25:16]Write to MH i2c: E2 08 00 EF 33 80 11 00 00 00 00 00 00 9C [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:16]Read from MH i2c: E2 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 17 00 [08:25:16]MH_I2C_Read... [08:25:16]Read from MH i2c: E2 17 00 EF 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F1 [08:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:25:16]wFMCommunicate OK [08:25:16]requested_item fd.num is exist - process it [08:25:16]SAM_PROTO_GetFieldsCounters [08:25:16]wFMCommunicate request_size=4 [08:25:16]MH_SAM_APDU [08:25:16]CAPDU: 80 13 00 00 [08:25:16]Write to MH i2c: E2 08 00 F0 33 80 13 00 00 00 00 00 00 9F [08:25:16]Write i2c OK [08:25:16]MH_I2C_Read... [08:25:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:17]Read from MH i2c: E2 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 62 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 62 00 F0 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [08:25:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:17]wFMCommunicate OK [08:25:17]SAM_PROTO_GetFieldsCounters done [08:25:17]requested_item shift.num is exist - process it [08:25:17]requested_item shift.opened is exist - process it [08:25:17]req_shift_opened [08:25:17]FM_GetShiftState [08:25:17]SAM_PROTO_GetShiftState [08:25:17]wFMCommunicate request_size=4 [08:25:17]MH_SAM_APDU [08:25:17]CAPDU: 80 13 01 00 [08:25:17]Write to MH i2c: E2 08 00 F1 33 80 13 01 00 00 00 00 00 A1 [08:25:17]Write i2c OK [08:25:17]MH_I2C_Read... [08:25:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:17]Read from MH i2c: E2 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 0E 00 [08:25:17]MH_I2C_Read... [08:25:17]Read from MH i2c: E2 0E 00 F1 33 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 AD [08:25:17]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:25:17]wFMCommunicate OK [08:25:17]SAM_PROTO_GetShiftState done [08:25:17]FM_GetShiftState done [08:25:17]req_shift_opened done [08:25:17]requested_item shift.open_date is exist - process it [08:25:17]req_shift_open_date [08:25:17]req_shift_open_date done [08:25:17]produce_requested_data done [08:25:17]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4954,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:25:17]process_action_free close_receipt [08:25:17]json_value_free [08:25:17]json_value_free done [08:25:17]process_json_proto returns [08:25:17]Send response to host [08:25:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4954,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:25:17]free response buf [08:25:17]execute_script done [08:25:17]execute_script returns [08:25:17]free content buf [08:25:17]Sock 8.Close socket [08:25:17]Sock 8.Thread stoped [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:25]accept exits with 9 [08:27:25]New connection [08:27:25]New thread 3067444580 created [08:27:25]Thread 3067587940 joined [08:27:25]Waiting for new connection... [08:27:25] Sock 9.Parse request [08:27:25]Sock 9.Check first char [08:27:25]Sock 9.First char is OK [08:27:25]request: POST /json_proto HTTP/1.0 [08:27:25]Method: POST [08:27:25]URL: /json_proto [08:27:25]Method is POST - this is cgi request [08:27:25]url: /json_proto [08:27:25]query_string will be loaded in cgi processing [08:27:25]execute_cgi json_proto POST (null) [08:27:25]execute_cgi path=json_proto method=POST [08:27:25]POST find Content-Length [08:27:25]Host: 172.17.44.4:8080 [08:27:25]Content-Length: 215 [08:27:25]Content-Type: application/json [08:27:25] [08:27:25]POST finish read [08:27:25]Found Content-Length = 215 [08:27:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:25]execute_script... [08:27:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:25]POST & json_proto [08:27:25]process_json_proto [08:27:25]json parsed OK: [08:27:25]protocol is kg_v1.0 [08:27:25]action value=get_value [08:27:25]process_action get_value [08:27:25]cmd_get_value [08:27:25]process_action get_value done [08:27:25]requested_data is exist [08:27:25]produce_requested_data [08:27:25]requested_item kkm.sn is exist - process it [08:27:25]requested_item kkm.ver is exist - process it [08:27:25]requested_item fm.sn is exist - process it [08:27:25]wFMCommunicate request_size=4 [08:27:25]MH_SAM_APDU [08:27:25]CAPDU: 80 11 00 00 [08:27:25]Write to MH i2c: E2 08 00 F2 33 80 11 00 00 00 00 00 00 9F [08:27:25]Write i2c OK [08:27:25]MH_I2C_Read... [08:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:25]Read from MH i2c: E2 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: E2 17 00 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: E2 17 00 F2 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F4 [08:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:27:25]wFMCommunicate OK [08:27:25]requested_item fd.num is exist - process it [08:27:25]SAM_PROTO_GetFieldsCounters [08:27:25]wFMCommunicate request_size=4 [08:27:25]MH_SAM_APDU [08:27:25]CAPDU: 80 13 00 00 [08:27:25]Write to MH i2c: E2 08 00 F3 33 80 13 00 00 00 00 00 00 A2 [08:27:25]Write i2c OK [08:27:25]MH_I2C_Read... [08:27:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:25]Read from MH i2c: E2 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: E2 62 00 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: E2 62 00 F3 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 7E [08:27:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0E 00 00 00 5E 04 04 00 0E 00 00 00 57 04 04 00 0F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:25]wFMCommunicate OK [08:27:25]SAM_PROTO_GetFieldsCounters done [08:27:25]requested_item shift.num is exist - process it [08:27:25]requested_item shift.opened is exist - process it [08:27:25]req_shift_opened [08:27:25]FM_GetShiftState [08:27:25]SAM_PROTO_GetShiftState [08:27:25]wFMCommunicate request_size=4 [08:27:25]MH_SAM_APDU [08:27:25]CAPDU: 80 13 01 00 [08:27:25]Write to MH i2c: E2 08 00 F4 33 80 13 01 00 00 00 00 00 A4 [08:27:25]Write i2c OK [08:27:25]MH_I2C_Read... [08:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:25]Read from MH i2c: E2 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: E2 0E 00 [08:27:25]MH_I2C_Read... [08:27:25]Read from MH i2c: E2 0E 00 F4 33 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 B0 [08:27:25]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:27:25]wFMCommunicate OK [08:27:25]SAM_PROTO_GetShiftState done [08:27:25]FM_GetShiftState done [08:27:25]req_shift_opened done [08:27:25]requested_item shift.open_date is exist - process it [08:27:25]req_shift_open_date [08:27:25]req_shift_open_date done [08:27:25]produce_requested_data done [08:27:25]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":4954,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:27:25]process_action_free get_value [08:27:25]json_value_free [08:27:25]json_value_free done [08:27:25]process_json_proto returns [08:27:25]Send response to host [08:27:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":4954,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:27:25]free response buf [08:27:25]execute_script done [08:27:25]execute_script returns [08:27:25]free content buf [08:27:25]Sock 9.Close socket [08:27:25]Sock 9.Thread stoped [08:27:25]accept exits with 8 [08:27:25]New connection [08:27:25]New thread 3067587940 created [08:27:25]Thread 3067444580 joined [08:27:25]Waiting for new connection... [08:27:25] Sock 8.Parse request [08:27:25]Sock 8.Check first char [08:27:25]Sock 8.First char is OK [08:27:25]request: POST /json_proto HTTP/1.0 [08:27:25]Method: POST [08:27:25]URL: /json_proto [08:27:25]Method is POST - this is cgi request [08:27:25]url: /json_proto [08:27:25]query_string will be loaded in cgi processing [08:27:25]execute_cgi json_proto POST (null) [08:27:25]execute_cgi path=json_proto method=POST [08:27:25]POST find Content-Length [08:27:25]Host: 172.17.44.4:8080 [08:27:25]Content-Length: 331 [08:27:25]Content-Type: application/json [08:27:25] [08:27:25]POST finish read [08:27:25]Found Content-Length = 331 [08:27:25]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" ] } } [08:27:25]execute_script... [08:27:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [08:27:26]POST & json_proto [08:27:26]process_json_proto [08:27:26]json parsed OK: [08:27:26]protocol is kg_v1.0 [08:27:26]action value=get_value [08:27:26]process_action get_value [08:27:26]cmd_get_value [08:27:26]process_action get_value done [08:27:26]requested_data is exist [08:27:26]produce_requested_data [08:27:26]requested_item fm.sale.total is exist - process it [08:27:26]SAM_PROTO_GetFMData [08:27:26]wFMCommunicate request_size=4 [08:27:26]MH_SAM_APDU [08:27:26]CAPDU: 80 13 03 00 [08:27:26]Write to MH i2c: E2 08 00 F5 33 80 13 03 00 00 00 00 00 A7 [08:27:26]Write i2c OK [08:27:26]MH_I2C_Read... [08:27:26]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [08:27:26]Read from MH i2c: E2 [08:27:26]MH_I2C_Read... [08:27:26]Read from MH i2c: E2 FD 00 [08:27:26]MH_I2C_Read... [08:27:26]Read from MH i2c: E2 FD 00 F5 33 00 BF 04 85 04 BB 04 6E 04 04 00 02 13 00 00 69 04 A0 00 6F 04 04 00 CF 12 00 00 B1 04 04 00 A4 9D 53 0F 70 04 04 00 EC E0 EA 06 72 04 04 00 B8 BC 68 08 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 09 B0 A0 01 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 EC B6 22 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 5C [08:27:26]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 02 13 00 00 69 04 A0 00 6F 04 04 00 CF 12 00 00 B1 04 04 00 A4 9D 53 0F 70 04 04 00 EC E0 EA 06 72 04 04 00 B8 BC 68 08 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 09 B0 A0 01 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 EC B6 22 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [08:27:26]wFMCommunicate OK [08:27:26]wFMCommunicate request_size=4 [08:27:26]MH_SAM_APDU [08:27:26]CAPDU: 80 17 00 00 [08:27:26]Write to MH i2c: E2 08 00 F6 33 80 17 00 00 00 00 00 00 A9 [08:27:26]Write i2c OK [08:27:26]MH_I2C_Read... [08:27:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:27:26]Read from MH i2c: E2 [08:27:26]MH_I2C_Read... [08:27:26]Read from MH i2c: E2 FD 00 [08:27:26]MH_I2C_Read... [08:27:26]Read from MH i2c: E2 FD 00 F6 33 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 46 [08:27:26]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [08:27:26]wFMCommunicate OK [08:27:26]wFMCommunicate request_size=4 [08:27:26]MH_SAM_APDU [08:27:26]CAPDU: 80 17 00 00 [08:27:26]Write to MH i2c: E2 08 00 F7 33 80 17 00 00 00 00 00 00 AA [08:27:26]Write i2c OK [08:27:26]MH_I2C_Read... [08:27:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:27:27]Read from MH i2c: E2 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 FD 00 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 FD 00 F7 33 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [08:27:27]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 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 90 00 [08:27:27]wFMCommunicate OK [08:27:27]wFMCommunicate request_size=4 [08:27:27]MH_SAM_APDU [08:27:27]CAPDU: 80 17 00 00 [08:27:27]Write to MH i2c: E2 08 00 F8 33 80 17 00 00 00 00 00 00 AB [08:27:27]Write i2c OK [08:27:27]MH_I2C_Read... [08:27:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:27:27]Read from MH i2c: E2 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 FD 00 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 FD 00 F8 33 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 25 [08:27:27]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [08:27:27]wFMCommunicate OK [08:27:27]wFMCommunicate request_size=4 [08:27:27]MH_SAM_APDU [08:27:27]CAPDU: 80 17 00 00 [08:27:27]Write to MH i2c: E2 08 00 F9 33 80 17 00 00 00 00 00 00 AC [08:27:27]Write i2c OK [08:27:27]MH_I2C_Read... [08:27:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [08:27:27]Read from MH i2c: E2 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 DC 00 [08:27:27]MH_I2C_Read... [08:27:27]Read from MH i2c: E2 DC 00 F9 33 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 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 90 [08:27:27]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 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 [08:27:27]wFMCommunicate OK [08:27:27]SAM_PROTO_GetFMData done [08:27:27]requested_item fm.sale_refund.total is exist - process it [08:27:27]requested_item fm.buy.total is exist - process it [08:27:27]requested_item shift.sale.total is exist - process it [08:27:27]SAM_PROTO_GetShiftData [08:27:27]wFMCommunicate request_size=4 [08:27:27]MH_SAM_APDU [08:27:27]CAPDU: 80 13 02 00 [08:27:27]Write to MH i2c: E2 08 00 FA 33 80 13 02 00 00 00 00 00 AB [08:27:27]Write i2c OK [08:27:27]MH_I2C_Read... [08:27:28]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [08:27:28]Read from MH i2c: E2 [08:27:28]MH_I2C_Read... [08:27:28]Read from MH i2c: E2 FD 00 [08:27:28]MH_I2C_Read... [08:27:28]Read from MH i2c: E2 FD 00 FA 33 00 AC 04 AA 04 A8 04 6E 04 04 00 0E 00 00 00 69 04 99 00 6F 04 04 00 0E 00 00 00 B1 04 03 00 3C 8D 04 70 04 03 00 AC 27 04 72 04 02 00 90 65 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B9 7B 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 4E 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A6 [08:27:28]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 0E 00 00 00 69 04 99 00 6F 04 04 00 0E 00 00 00 B1 04 03 00 3C 8D 04 70 04 03 00 AC 27 04 72 04 02 00 90 65 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 B9 7B 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 4E 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:27:28]wFMCommunicate OK [08:27:28]wFMCommunicate request_size=4 [08:27:28]MH_SAM_APDU [08:27:28]CAPDU: 80 17 00 00 [08:27:28]Write to MH i2c: E2 08 00 FB 33 80 17 00 00 00 00 00 00 AE [08:27:28]Write i2c OK [08:27:28]MH_I2C_Read... [08:27:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:27:28]Read from MH i2c: E2 [08:27:28]MH_I2C_Read... [08:27:28]Read from MH i2c: E2 FD 00 [08:27:28]MH_I2C_Read... [08:27:28]Read from MH i2c: E2 FD 00 FB 33 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [08:27:28]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:27:28]wFMCommunicate OK [08:27:28]wFMCommunicate request_size=4 [08:27:28]MH_SAM_APDU [08:27:28]CAPDU: 80 17 00 00 [08:27:28]Write to MH i2c: E2 08 00 FC 33 80 17 00 00 00 00 00 00 AF [08:27:28]Write i2c OK [08:27:28]MH_I2C_Read... [08:27:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:27:28]Read from MH i2c: E2 [08:27:28]MH_I2C_Read... [08:27:28]Read from MH i2c: E2 FD 00 [08:27:28]MH_I2C_Read... [08:27:28]Read from MH i2c: E2 FD 00 FC 33 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [08:27:28]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [08:27:28]wFMCommunicate OK [08:27:28]wFMCommunicate request_size=4 [08:27:28]MH_SAM_APDU [08:27:28]CAPDU: 80 17 00 00 [08:27:28]Write to MH i2c: E2 08 00 FD 33 80 17 00 00 00 00 00 00 B0 [08:27:28]Write i2c OK [08:27:28]MH_I2C_Read... [08:27:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [08:27:29]Read from MH i2c: E2 [08:27:29]MH_I2C_Read... [08:27:29]Read from MH i2c: E2 FD 00 [08:27:29]MH_I2C_Read... [08:27:29]Read from MH i2c: E2 FD 00 FD 33 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 90 00 25 [08:27:29]RAPDU: 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 90 00 [08:27:29]wFMCommunicate OK [08:27:29]wFMCommunicate request_size=4 [08:27:29]MH_SAM_APDU [08:27:29]CAPDU: 80 17 00 00 [08:27:29]Write to MH i2c: E2 08 00 FE 33 80 17 00 00 00 00 00 00 B1 [08:27:29]Write i2c OK [08:27:29]MH_I2C_Read... [08:27:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [08:27:29]Read from MH i2c: E2 [08:27:29]MH_I2C_Read... [08:27:29]Read from MH i2c: E2 C9 00 [08:27:29]MH_I2C_Read... [08:27:29]Read from MH i2c: E2 C9 00 FE 33 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 95 [08:27:29]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [08:27:29]wFMCommunicate OK [08:27:29]SAM_PROTO_GetShiftData done [08:27:29]requested_item shift.sale.total_cash is exist - process it [08:27:29]requested_item shift.sale_refund.total is exist - process it [08:27:29]requested_item shift.sale_refund.total_cash is exist - process it [08:27:29]requested_item shift.buy.total is exist - process it [08:27:29]requested_item shift.buy.total_cash is exist - process it [08:27:29]produce_requested_data done [08:27:29]produce_requested_data return {"fm.sale.total":2571380.84,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":2983.00,"shift.sale.total_cash":2723.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} [08:27:29]process_action_free get_value [08:27:29]json_value_free [08:27:29]json_value_free done [08:27:29]process_json_proto returns [08:27:29]Send response to host [08:27:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2571380.84,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":2983.00,"shift.sale.total_cash":2723.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}}} [08:27:29]free response buf [08:27:29]execute_script done [08:27:29]execute_script returns [08:27:29]free content buf [08:27:29]Sock 8.Close socket [08:27:29]Sock 8.Thread stoped [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]accept exits with 9 [08:33:15]New connection [08:33:15]New thread 3067444580 created [08:33:15]Thread 3067587940 joined [08:33:15]Waiting for new connection... [08:33:15] Sock 9.Parse request [08:33:15]Sock 9.Check first char [08:33:15]Sock 9.First char is OK [08:33:15]request: POST /json_proto HTTP/1.0 [08:33:15]Method: POST [08:33:15]URL: /json_proto [08:33:15]Method is POST - this is cgi request [08:33:15]url: /json_proto [08:33:15]query_string will be loaded in cgi processing [08:33:15]execute_cgi json_proto POST (null) [08:33:15]execute_cgi path=json_proto method=POST [08:33:15]POST find Content-Length [08:33:15]Host: 172.17.44.4:8080 [08:33:15]Content-Length: 801 [08:33:15]Content-Type: application/json [08:33:15] [08:33:15]POST finish read [08:33:15]Found Content-Length = 801 [08:33:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 46.860, "sum" : 3500.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3500.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:15]execute_script... [08:33:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 46.860, "sum" : 3500.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 3500.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:15]POST & json_proto [08:33:15]process_json_proto [08:33:15]json parsed OK: [08:33:15]protocol is kg_v1.0 [08:33:15]action value=close_receipt [08:33:15]process_action close_receipt [08:33:15]cmd_close_receipt [08:33:15]MH_GetDate [08:33:15]Write to MH i2c: F0 00 00 FF 33 21 [08:33:15]Write i2c OK [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: F0 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: F0 09 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: F0 09 00 FF 33 00 D2 C4 45 66 6C E9 28 66 4E [08:33:15]GetLastDocTimeStamp 1715847918 [08:33:15]current date 1715848402 [08:33:15]FM_GetShiftState [08:33:15]SAM_PROTO_GetShiftState [08:33:15]wFMCommunicate request_size=4 [08:33:15]MH_SAM_APDU [08:33:15]CAPDU: 80 13 01 00 [08:33:15]Write to MH i2c: E2 08 00 00 34 80 13 01 00 00 00 00 00 B1 [08:33:15]Write i2c OK [08:33:15]MH_I2C_Read... [08:33:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:15]Read from MH i2c: E2 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 0E 00 [08:33:15]MH_I2C_Read... [08:33:15]Read from MH i2c: E2 0E 00 00 34 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 BD [08:33:15]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:33:15]wFMCommunicate OK [08:33:15]SAM_PROTO_GetShiftState done [08:33:15]FM_GetShiftState done [08:33:15]opened in 1715818246 [08:33:15]opened+sec_in_day 1715904646 [08:33:15]quantity*price = 350044 [08:33:15]sum+1 = 350045 [08:33:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.44 НСП 1% : 30.98 НДС 12% : 371.73 Наличными: 0.00 Безнал.: 3500.44 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 15 16.05.2024 08:33 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 4955 ФПД: 95533321080482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083322&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4955&fm=95533321080482&tin=02508201610067®Number=0000000000154221&sum=350044 [08:33:16]StoreToDocumentArchive [08:33:16]shift 44 fd 4955 [08:33:16]save to /storage/0044/doc_00004955 [08:33:16]save last doc name /storage/0044/doc_00004955 to /storage/kkm_last_doc_name [08:33:16]save OK [08:33:16]Clear old archive folders... [08:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:33:16]tlvbuf is 00C9EE20 [08:33:16]SAM_PROTO_ClearQueue [08:33:16]wFMCommunicate request_size=4 [08:33:16]MH_SAM_APDU [08:33:16]CAPDU: 80 09 00 00 [08:33:16]Write to MH i2c: E2 08 00 0D 34 80 09 00 00 00 00 00 00 B3 [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:16]Read from MH i2c: E2 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 03 00 [08:33:16]MH_I2C_Read... [08:33:16]Read from MH i2c: E2 03 00 0D 34 00 90 00 B5 [08:33:16]RAPDU: 90 00 [08:33:16]wFMCommunicate OK [08:33:16]SAM_PROTO_ClearQueue done [08:33:16]KKMCreateOFDPacket [08:33:16]OFDProtocolAddRootSTLVToBuf [08:33:16]FM_MakeSignedData [08:33:16]FM_MakeSignedData [08:33:16]SAM_PROTO_SignData [08:33:16]wFMCommunicate request_size=4 [08:33:16]MH_SAM_APDU [08:33:16]CAPDU: 80 0D 01 02 [08:33:16]Write to MH i2c: E2 08 00 0E 34 80 0D 01 02 00 00 00 00 BB [08:33:16]Write i2c OK [08:33:16]MH_I2C_Read... [08:33:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:17]Read from MH i2c: E2 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 03 00 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 03 00 0E 34 00 90 00 B6 [08:33:17]RAPDU: 90 00 [08:33:17]wFMCommunicate OK [08:33:17]wFMCommunicate request_size=255 [08:33:17]MH_SAM_APDU [08:33:17]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D2 C4 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5B 13 00 00 35 04 06 00 56 E3 15 AA [08:33:17]Write to MH i2c: E2 02 01 0F 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D2 C4 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5B 13 00 00 35 04 06 00 56 E3 15 AA 00 00 14 [08:33:17]Write i2c OK [08:33:17]MH_I2C_Read... [08:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:17]Read from MH i2c: E2 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 03 00 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 03 00 0F 34 00 90 00 B7 [08:33:17]RAPDU: 90 00 [08:33:17]wFMCommunicate OK [08:33:17]wFMCommunicate request_size=7 [08:33:17]MH_SAM_APDU [08:33:17]CAPDU: 80 0D 02 02 02 CE A2 [08:33:17]Write to MH i2c: E2 0A 00 10 34 80 0D 02 02 02 00 CE A2 00 00 32 [08:33:17]Write i2c OK [08:33:17]MH_I2C_Read... [08:33:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:17]Read from MH i2c: E2 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 03 00 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 03 00 10 34 00 90 00 B8 [08:33:17]RAPDU: 90 00 [08:33:17]wFMCommunicate OK [08:33:17]wFMCommunicate request_size=4 [08:33:17]MH_SAM_APDU [08:33:17]CAPDU: 80 0D 03 02 [08:33:17]Write to MH i2c: E2 08 00 11 34 80 0D 03 02 00 00 00 00 C0 [08:33:17]Write i2c OK [08:33:17]MH_I2C_Read... [08:33:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:17]Read from MH i2c: E2 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 0B 00 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 0B 00 11 34 00 3E 73 17 36 4B 02 9A 24 90 00 CA [08:33:17]RAPDU: 3E 73 17 36 4B 02 9A 24 90 00 [08:33:17]wFMCommunicate OK [08:33:17]SAM_PROTO_SignData done [08:33:17]FM_MakeSignedData done [08:33:17]CreateOFDProtocolMessage [08:33:17]wFMCommunicate request_size=4 [08:33:17]MH_SAM_APDU [08:33:17]CAPDU: 80 11 00 00 [08:33:17]Write to MH i2c: E2 08 00 12 34 80 11 00 00 00 00 00 00 C0 [08:33:17]Write i2c OK [08:33:17]MH_I2C_Read... [08:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:17]Read from MH i2c: E2 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 17 00 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: E2 17 00 12 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 15 [08:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:33:17]wFMCommunicate OK [08:33:17]CreateOFDProtocolMessage done [08:33:17]OFDSenderStorePacket 4955 [08:33:17]StoreOFDPacket docnum=4955 [08:33:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0C 01 00 00 F1 D1 04 01 84 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D2 C4 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5B 13 00 00 35 04 06 00 56 E3 15 AA CE A2 3E 73 17 36 4B 02 9A 24 [08:33:17]CheckFolder [08:33:17]dirname=/storage/ofd_packets [08:33:17]CheckFolder done [08:33:17]ProducePacketName [08:33:17]name=ofd_packets/00004955 [08:33:17]NVStorageSaveData ofd_packets/00004955 [08:33:17]File name is /storage/ofd_packets/00004955 [08:33:17]Write 298 bytes [08:33:17]NVStorageSaveData done [08:33:17]OFDSenderStorePacket done [08:33:17]KKMCreateOFDPacket done [08:33:17]NVStorageSaveData kkm_last_timestamp [08:33:17]File name is /storage/kkm_last_timestamp [08:33:17]Write 4 bytes [08:33:17]NVStorageSaveData done [08:33:17]ExternCall_PrintAddStr [08:33:17]wPrintStart [08:33:17]Write to MH i2c: 01 00 00 13 34 47 [08:33:17]Write i2c OK [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: 01 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: 01 07 00 [08:33:17]MH_I2C_Read... [08:33:17]Read from MH i2c: 01 07 00 13 34 00 00 00 00 00 FF 0F 5C [08:33:17]RasterBufferAndPrint [08:33:17]line Счет N : (1)1992587 [08:33:17]line ИНН: 02508201610067 [08:33:17]line Контрольно-Кассовый Чек [08:33:17]line ПРОДАЖА [08:33:17]line ТРК (МРК, ГНК) : 11 [08:33:17]line Товар: 2710194210 [08:33:17]line ДТ-К-5 [08:33:17]line 46.860 * 74.70 [08:33:17]line = 3500.44 [08:33:17]line НДС 12% НСП 1% [08:33:17]line > о реализуемом товаре [08:33:17]line ИТОГО: 3500.44 [08:33:17]line НСП 1% : 30.98 [08:33:17]line НДС 12% : 371.73 [08:33:17]line Наличными: 0.00 [08:33:17]line Безнал.: 3500.44 [08:33:17]line Место: АЗС № 135 "Партнер Нефть" [08:33:17]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:33:17]line СНО: Общий режим [08:33:17]line Чек 15 16.05.2024 08:33 [08:33:17]line Смена: 44 ФФД: 1.0 [08:33:17]line ЗНМ: 0300000237 [08:33:17]line РНМ: 0000000000154221 [08:33:17]line Версия ККМ: v1.0 [08:33:17]line Платежная система: O! деньги [08:33:17]line ФМ: 0000000000963259 [08:33:17]line ФД: 4955 [08:33:17]line ФПД: 95533321080482 [08:33:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083322&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4955&fm=95533321080482&tin=02508201610067®Number=0000000000154221&sum=350044 [08:33:17]OFD Sender: Processing packet 4955 [packets to send 4, broken 3] [08:33:17]ProducePacketName [08:33:17]name=ofd_packets/00004955 [08:33:17]OFD Sender: To server: pG, [08:33:17]CommunicateWithHost lk.salyk.kg:30040 [08:33:17]ConnectInit lk.salyk.kg [08:33:17]written 0, free lines is 4095 [08:33:17]Connected sock=10 [08:33:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0C 01 00 00 F1 D1 04 01 84 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 0C B7 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 5C 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 D2 C4 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5B 13 00 00 35 04 06 00 56 E3 15 AA CE A2 3E 73 17 36 4B 02 9A 24 [08:33:18]Write to MH i2c: 01 00 00 3D 34 71 [08:33:18]Write i2c OK [08:33:18]MH_I2C_Read... [08:33:18]Read from MH i2c: 01 [08:33:18]MH_I2C_Read... [08:33:18]Read from MH i2c: 01 07 00 [08:33:18]MH_I2C_Read... [08:33:18]Read from MH i2c: 01 07 00 3D 34 00 00 00 00 00 7C 0C 00 [08:33:18]RasterBufferAndPrint [08:33:18]line [08:33:18]line [08:33:18]line [08:33:18]line [08:33:18]line [08:33:18]written 0, free lines is 3200 [08:33:18]MH_Cut [08:33:18]Write to MH i2c: D1 01 00 44 34 01 4A [08:33:18]Write i2c OK [08:33:18]MH_I2C_Read... [08:33:18]Read from MH i2c: D1 [08:33:18]MH_I2C_Read... [08:33:18]Read from MH i2c: D1 01 00 [08:33:18]MH_I2C_Read... [08:33:18]Read from MH i2c: D1 01 00 44 34 00 49 [08:33:18]Write to MH i2c: 01 00 00 45 34 79 [08:33:18]Write i2c OK [08:33:18]MH_I2C_Read... [08:33:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 78 7C 47 00 37 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5B 13 00 00 F4 03 04 00 96 70 45 66 B6 04 01 00 00 0C E9 A1 BF 75 6E 02 16 [08:33:18]CommunicateWithHost err = 0 [08:33:18]CheckOFDResponse [08:33:18]1017 (14) - 77093643461234 [08:33:18]1041 (16) - 0000000000963259 [08:33:18]1040 (4) - 4955 [08:33:18]1012 (4) - 16.05.2024 02:33 [08:33:18]1206 (1) - 0 [08:33:18]OFD Sender: Remove packet 4955 [08:33:18]ProducePacketName [08:33:18]name=ofd_packets/00004955 [08:33:18]NVStorageDeleteData [08:33:18]OFD Sender: No OFD packet to send [08:33:19]*** Cut start [08:33:19]*** Partial cut [08:33:19]*** CUTSNS_PIN = 1 [08:33:19]*** CUTSNS_PIN = 0 [08:33:19]*** Brake cut motor [08:33:20]Read from MH i2c: 01 [08:33:20]MH_I2C_Read... [08:33:20]*** Stop cut motor [08:33:20]*** Cut end [08:33:20]Read from MH i2c: 01 07 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: 01 07 00 45 34 00 00 00 00 00 FF 0F 8E [08:33:20]process_action close_receipt done [08:33:20]requested_data is exist [08:33:20]produce_requested_data [08:33:20]requested_item fm.sn is exist - process it [08:33:20]wFMCommunicate request_size=4 [08:33:20]MH_SAM_APDU [08:33:20]CAPDU: 80 11 00 00 [08:33:20]Write to MH i2c: E2 08 00 46 34 80 11 00 00 00 00 00 00 F4 [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:20]Read from MH i2c: E2 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 17 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 17 00 46 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 49 [08:33:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:33:20]wFMCommunicate OK [08:33:20]requested_item fd.num is exist - process it [08:33:20]SAM_PROTO_GetFieldsCounters [08:33:20]wFMCommunicate request_size=4 [08:33:20]MH_SAM_APDU [08:33:20]CAPDU: 80 13 00 00 [08:33:20]Write to MH i2c: E2 08 00 47 34 80 13 00 00 00 00 00 00 F7 [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:20]Read from MH i2c: E2 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 62 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 62 00 47 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5B 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [08:33:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5B 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 0F 00 00 00 5E 04 04 00 0F 00 00 00 57 04 04 00 10 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:20]wFMCommunicate OK [08:33:20]SAM_PROTO_GetFieldsCounters done [08:33:20]requested_item shift.num is exist - process it [08:33:20]requested_item shift.opened is exist - process it [08:33:20]req_shift_opened [08:33:20]FM_GetShiftState [08:33:20]SAM_PROTO_GetShiftState [08:33:20]wFMCommunicate request_size=4 [08:33:20]MH_SAM_APDU [08:33:20]CAPDU: 80 13 01 00 [08:33:20]Write to MH i2c: E2 08 00 48 34 80 13 01 00 00 00 00 00 F9 [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:20]Read from MH i2c: E2 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 0E 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 0E 00 48 34 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 05 [08:33:20]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:33:20]wFMCommunicate OK [08:33:20]SAM_PROTO_GetShiftState done [08:33:20]FM_GetShiftState done [08:33:20]req_shift_opened done [08:33:20]requested_item shift.open_date is exist - process it [08:33:20]req_shift_open_date [08:33:20]req_shift_open_date done [08:33:20]produce_requested_data done [08:33:20]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4955,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:33:20]process_action_free close_receipt [08:33:20]json_value_free [08:33:20]json_value_free done [08:33:20]process_json_proto returns [08:33:20]Send response to host [08:33:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4955,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:33:20]free response buf [08:33:20]execute_script done [08:33:20]execute_script returns [08:33:20]free content buf [08:33:20]Sock 9.Close socket [08:33:20]Sock 9.Thread stoped [08:33:23]OFD Sender: No OFD packet to send [08:33:28]OFD Sender: No OFD packet to send [08:33:33]OFD Sender: No OFD packet to send [08:33:38]OFD Sender: No OFD packet to send [08:33:43]OFD Sender: No OFD packet to send [08:33:48]OFD Sender: No OFD packet to send [08:33:53]OFD Sender: No OFD packet to send [08:33:58]OFD Sender: No OFD packet to send [08:34:03]OFD Sender: No OFD packet to send [08:34:08]OFD Sender: No OFD packet to send [08:34:13]OFD Sender: No OFD packet to send [08:34:18]OFD Sender: No OFD packet to send [08:34:23]OFD Sender: No OFD packet to send [08:34:28]OFD Sender: No OFD packet to send [08:34:33]OFD Sender: No OFD packet to send [08:34:38]OFD Sender: No OFD packet to send [08:34:43]OFD Sender: No OFD packet to send [08:34:48]OFD Sender: No OFD packet to send [08:34:53]OFD Sender: No OFD packet to send [08:34:58]OFD Sender: No OFD packet to send [08:35:03]OFD Sender: No OFD packet to send [08:35:08]OFD Sender: No OFD packet to send [08:35:13]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:33]OFD Sender: No OFD packet to send [08:35:38]OFD Sender: No OFD packet to send [08:35:43]OFD Sender: No OFD packet to send [08:35:48]OFD Sender: No OFD packet to send [08:35:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:04]OFD Sender: No OFD packet to send [08:36:09]OFD Sender: No OFD packet to send [08:36:14]OFD Sender: No OFD packet to send [08:36:19]OFD Sender: No OFD packet to send [08:36:22]accept exits with 8 [08:36:22]New connection [08:36:22]New thread 3067587940 created [08:36:22]Thread 3067444580 joined [08:36:22]Waiting for new connection... [08:36:22] Sock 8.Parse request [08:36:22]Sock 8.Check first char [08:36:22]Sock 8.First char is OK [08:36:22]request: POST /json_proto HTTP/1.0 [08:36:22]Method: POST [08:36:22]URL: /json_proto [08:36:22]Method is POST - this is cgi request [08:36:22]url: /json_proto [08:36:22]query_string will be loaded in cgi processing [08:36:22]execute_cgi json_proto POST (null) [08:36:22]execute_cgi path=json_proto method=POST [08:36:22]POST find Content-Length [08:36:22]Host: 172.17.44.4:8080 [08:36:22]Content-Length: 649 [08:36:22]Content-Type: application/json [08:36:22] [08:36:22]POST finish read [08:36:22]Found Content-Length = 649 [08:36:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140968", "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" : 12.000, "sum" : 1560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:22]execute_script... [08:36: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)140968", "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" : 12.000, "sum" : 1560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1560.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:22]POST & json_proto [08:36:22]process_json_proto [08:36:22]json parsed OK: [08:36:22]protocol is kg_v1.0 [08:36:22]action value=close_receipt [08:36:22]process_action close_receipt [08:36:22]cmd_close_receipt [08:36:22]MH_GetDate [08:36:22]Write to MH i2c: F0 00 00 49 34 6C [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: F0 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: F0 09 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: F0 09 00 49 34 00 8C C5 45 66 6C E9 28 66 54 [08:36:22]GetLastDocTimeStamp 1715848402 [08:36:22]current date 1715848588 [08:36:22]FM_GetShiftState [08:36:22]SAM_PROTO_GetShiftState [08:36:22]wFMCommunicate request_size=4 [08:36:22]MH_SAM_APDU [08:36:22]CAPDU: 80 13 01 00 [08:36:22]Write to MH i2c: E2 08 00 4A 34 80 13 01 00 00 00 00 00 FB [08:36:22]Write i2c OK [08:36:22]MH_I2C_Read... [08:36:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:22]Read from MH i2c: E2 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 0E 00 [08:36:22]MH_I2C_Read... [08:36:22]Read from MH i2c: E2 0E 00 4A 34 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 07 [08:36:22]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:36:22]wFMCommunicate OK [08:36:22]SAM_PROTO_GetShiftState done [08:36:22]FM_GetShiftState done [08:36:22]opened in 1715818246 [08:36:22]opened+sec_in_day 1715904646 [08:36:22]quantity*price = 156000 [08:36:22]sum+1 = 156001 [08:36:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1560.00 НСП 1% : 13.80 НДС 12% : 165.66 Наличными: 1560.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 16 16.05.2024 08:36 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4956 ФПД: 65146462376980 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083628&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4956&fm=65146462376980&tin=02508201610067®Number=0000000000154221&sum=156000 0 [08:36:23]StoreToDocumentArchive [08:36:23]shift 44 fd 4956 [08:36:23]save to /storage/0044/doc_00004956 [08:36:23]save last doc name /storage/0044/doc_00004956 to /storage/kkm_last_doc_name [08:36:23]save OK [08:36:23]Clear old archive folders... [08:36:23]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:36:23]tlvbuf is 00DB23F0 [08:36:23]SAM_PROTO_ClearQueue [08:36:23]wFMCommunicate request_size=4 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 09 00 00 [08:36:23]Write to MH i2c: E2 08 00 57 34 80 09 00 00 00 00 00 00 FD [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 57 34 00 90 00 FF [08:36:23]RAPDU: 90 00 [08:36:23]wFMCommunicate OK [08:36:23]SAM_PROTO_ClearQueue done [08:36:23]KKMCreateOFDPacket [08:36:23]OFDProtocolAddRootSTLVToBuf [08:36:23]FM_MakeSignedData [08:36:23]FM_MakeSignedData [08:36:23]SAM_PROTO_SignData [08:36:23]wFMCommunicate request_size=4 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 0D 01 02 [08:36:23]Write to MH i2c: E2 08 00 58 34 80 0D 01 02 00 00 00 00 05 [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 58 34 00 90 00 00 [08:36:23]RAPDU: 90 00 [08:36:23]wFMCommunicate OK [08:36:23]wFMCommunicate request_size=255 [08:36:23]MH_SAM_APDU [08:36:23]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 E0 2E 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 60 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 61 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 40 00 00 00 00 07 04 06 00 60 61 02 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 8C C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 [08:36:23]Write to MH i2c: E2 02 01 59 34 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 E0 2E 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 60 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 61 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 40 00 00 00 00 07 04 06 00 60 61 02 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 8C C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 00 00 43 [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 59 34 00 90 00 01 [08:36:23]RAPDU: 90 00 [08:36:23]wFMCommunicate OK [08:36:23]wFMCommunicate request_size=41 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5C 13 00 00 35 04 06 00 3B 40 17 BF 94 14 [08:36:23]Write to MH i2c: E2 2C 00 5A 34 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5C 13 00 00 35 04 06 00 3B 40 17 BF 94 14 00 00 41 [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 03 00 5A 34 00 90 00 02 [08:36:23]RAPDU: 90 00 [08:36:23]wFMCommunicate OK [08:36:23]wFMCommunicate request_size=4 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 0D 03 02 [08:36:23]Write to MH i2c: E2 08 00 5B 34 80 0D 03 02 00 00 00 00 0A [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 0B 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 0B 00 5B 34 00 22 0B DD 9B C3 7C 98 89 90 00 10 [08:36:23]RAPDU: 22 0B DD 9B C3 7C 98 89 90 00 [08:36:23]wFMCommunicate OK [08:36:23]SAM_PROTO_SignData done [08:36:23]FM_MakeSignedData done [08:36:23]CreateOFDProtocolMessage [08:36:23]wFMCommunicate request_size=4 [08:36:23]MH_SAM_APDU [08:36:23]CAPDU: 80 11 00 00 [08:36:23]Write to MH i2c: E2 08 00 5C 34 80 11 00 00 00 00 00 00 0A [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:23]Read from MH i2c: E2 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 17 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: E2 17 00 5C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 5F [08:36:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:36:23]wFMCommunicate OK [08:36:23]CreateOFDProtocolMessage done [08:36:23]OFDSenderStorePacket 4956 [08:36:23]StoreOFDPacket docnum=4956 [08:36:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 D4 0D 26 01 2A A1 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 E0 2E 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 60 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 61 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 40 00 00 00 00 07 04 06 00 60 61 02 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 8C C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5C 13 00 00 35 04 06 00 3B 40 17 BF 94 14 22 0B DD 9B C3 7C 98 89 [08:36:23]CheckFolder [08:36:23]dirname=/storage/ofd_packets [08:36:23]CheckFolder done [08:36:23]ProducePacketName [08:36:23]name=ofd_packets/00004956 [08:36:23]NVStorageSaveData ofd_packets/00004956 [08:36:23]File name is /storage/ofd_packets/00004956 [08:36:23]Write 332 bytes [08:36:23]NVStorageSaveData done [08:36:23]OFDSenderStorePacket done [08:36:23]KKMCreateOFDPacket done [08:36:23]NVStorageSaveData kkm_last_timestamp [08:36:23]File name is /storage/kkm_last_timestamp [08:36:23]Write 4 bytes [08:36:23]NVStorageSaveData done [08:36:23]ExternCall_PrintAddStr [08:36:23]wPrintStart [08:36:23]Write to MH i2c: 01 00 00 5D 34 91 [08:36:23]Write i2c OK [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: 01 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: 01 07 00 [08:36:23]MH_I2C_Read... [08:36:23]Read from MH i2c: 01 07 00 5D 34 00 00 00 00 00 FF 0F A6 [08:36:23]RasterBufferAndPrint [08:36:23]line Счет N : (3)140968 [08:36:23]line ИНН: 02508201610067 [08:36:23]line Контрольно-Кассовый Чек [08:36:23]line ПРОДАЖА [08:36:23]line Товар: 2000036220012 [08:36:23]line Кофе Капучино XL(GABB TRADE) [08:36:23]line 12.000 * 130.00 [08:36:23]line = 1560.00 [08:36:23]line НДС 12% НСП 1% [08:36:23]line > о реализуемом товаре [08:36:23]line ИТОГО: 1560.00 [08:36:23]line НСП 1% : 13.80 [08:36:23]line НДС 12% : 165.66 [08:36:23]line Наличными: 1560.00 [08:36:23]line Безнал.: 0.00 [08:36:23]line Место: АЗС № 135 "Партнер Нефть" [08:36:23]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:36:23]line СНО: Общий режим [08:36:23]line Чек 16 16.05.2024 08:36 [08:36:23]line Смена: 44 ФФД: 1.0 [08:36:23]line ЗНМ: 0300000237 [08:36:23]line РНМ: 0000000000154221 [08:36:23]line Версия ККМ: v1.0 [08:36:23]line ФМ: 0000000000963259 [08:36:23]line ФД: 4956 [08:36:23]line ФПД: 65146462376980 [08:36:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083628&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4956&fm=65146462376980&tin=02508201610067®Number=0000000000154221&sum=156000 [08:36:24]line 0 [08:36:24]OFD Sender: Processing packet 4956 [packets to send 4, broken 3] [08:36:24]ProducePacketName [08:36:24]name=ofd_packets/00004956 [08:36:24]OFD Sender: To server: pG, [08:36:24]CommunicateWithHost lk.salyk.kg:30040 [08:36:24]ConnectInit lk.salyk.kg [08:36:24]written 0, free lines is 4095 [08:36:24]Write to MH i2c: 01 00 00 86 34 BA [08:36:24]Write i2c OK [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: 01 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: 01 07 00 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: 01 07 00 86 34 00 00 00 00 00 7A 0C 47 [08:36:24]RasterBufferAndPrint [08:36:24]line [08:36:24]line [08:36:24]line [08:36:24]line [08:36:24]line [08:36:24]written 0, free lines is 3198 [08:36:24]MH_Cut [08:36:24]Write to MH i2c: D1 01 00 8D 34 01 93 [08:36:24]Write i2c OK [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: D1 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: D1 01 00 [08:36:24]MH_I2C_Read... [08:36:24]Read from MH i2c: D1 01 00 8D 34 00 92 [08:36:24]Write to MH i2c: 01 00 00 8E 34 C2 [08:36:24]Write i2c OK [08:36:24]MH_I2C_Read... [08:36:24]Connected sock=10 [08:36:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 D4 0D 26 01 2A A1 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 E0 2E 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 60 61 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 61 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 40 00 00 00 00 07 04 06 00 60 61 02 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 8C C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5C 13 00 00 35 04 06 00 3B 40 17 BF 94 14 22 0B DD 9B C3 7C 98 89 [08:36:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 B9 41 47 00 28 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5C 13 00 00 F4 03 04 00 50 71 45 66 B6 04 01 00 00 E5 C9 1F 82 72 CB A3 B9 [08:36:24]CommunicateWithHost err = 0 [08:36:24]CheckOFDResponse [08:36:24]1017 (14) - 77093643461234 [08:36:24]1041 (16) - 0000000000963259 [08:36:24]1040 (4) - 4956 [08:36:24]1012 (4) - 16.05.2024 02:37 [08:36:24]1206 (1) - 0 [08:36:24]OFD Sender: Remove packet 4956 [08:36:24]ProducePacketName [08:36:24]name=ofd_packets/00004956 [08:36:24]NVStorageDeleteData [08:36:25]OFD Sender: No OFD packet to send [08:36:25]*** Cut start [08:36:25]*** Partial cut [08:36:25]*** CUTSNS_PIN = 1 [08:36:25]*** CUTSNS_PIN = 0 [08:36:25]*** Brake cut motor [08:36:26]Read from MH i2c: 01 [08:36:26]MH_I2C_Read... [08:36:26]*** Stop cut motor [08:36:26]*** Cut end [08:36:26]Read from MH i2c: 01 07 00 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: 01 07 00 8E 34 00 00 00 00 00 FF 0F D7 [08:36:26]process_action close_receipt done [08:36:26]requested_data is exist [08:36:26]produce_requested_data [08:36:26]requested_item fm.sn is exist - process it [08:36:26]wFMCommunicate request_size=4 [08:36:26]MH_SAM_APDU [08:36:26]CAPDU: 80 11 00 00 [08:36:26]Write to MH i2c: E2 08 00 8F 34 80 11 00 00 00 00 00 00 3D [08:36:26]Write i2c OK [08:36:26]MH_I2C_Read... [08:36:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:26]Read from MH i2c: E2 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 17 00 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 17 00 8F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 92 [08:36:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:36:26]wFMCommunicate OK [08:36:26]requested_item fd.num is exist - process it [08:36:26]SAM_PROTO_GetFieldsCounters [08:36:26]wFMCommunicate request_size=4 [08:36:26]MH_SAM_APDU [08:36:26]CAPDU: 80 13 00 00 [08:36:26]Write to MH i2c: E2 08 00 90 34 80 13 00 00 00 00 00 00 40 [08:36:26]Write i2c OK [08:36:26]MH_I2C_Read... [08:36:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:26]Read from MH i2c: E2 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 62 00 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 62 00 90 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5C 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 24 [08:36:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5C 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:26]wFMCommunicate OK [08:36:26]SAM_PROTO_GetFieldsCounters done [08:36:26]requested_item shift.num is exist - process it [08:36:26]requested_item shift.opened is exist - process it [08:36:26]req_shift_opened [08:36:26]FM_GetShiftState [08:36:26]SAM_PROTO_GetShiftState [08:36:26]wFMCommunicate request_size=4 [08:36:26]MH_SAM_APDU [08:36:26]CAPDU: 80 13 01 00 [08:36:26]Write to MH i2c: E2 08 00 91 34 80 13 01 00 00 00 00 00 42 [08:36:26]Write i2c OK [08:36:26]MH_I2C_Read... [08:36:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:26]Read from MH i2c: E2 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 0E 00 [08:36:26]MH_I2C_Read... [08:36:26]Read from MH i2c: E2 0E 00 91 34 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 4E [08:36:26]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:36:26]wFMCommunicate OK [08:36:26]SAM_PROTO_GetShiftState done [08:36:26]FM_GetShiftState done [08:36:26]req_shift_opened done [08:36:26]requested_item shift.open_date is exist - process it [08:36:26]req_shift_open_date [08:36:26]req_shift_open_date done [08:36:26]produce_requested_data done [08:36:26]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4956,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:36:26]process_action_free close_receipt [08:36:26]json_value_free [08:36:26]json_value_free done [08:36:26]process_json_proto returns [08:36:26]Send response to host [08:36:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4956,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:36:26]free response buf [08:36:26]execute_script done [08:36:26]execute_script returns [08:36:26]free content buf [08:36:26]Sock 8.Close socket [08:36:26]Sock 8.Thread stoped [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:37:59]accept exits with 9 [08:37:59]New connection [08:37:59]New thread 3067444580 created [08:37:59]Thread 3067587940 joined [08:37:59]Waiting for new connection... [08:37:59] Sock 9.Parse request [08:37:59]Sock 9.Check first char [08:37:59]Sock 9.First char is OK [08:37:59]request: POST /json_proto HTTP/1.0 [08:37:59]Method: POST [08:37:59]URL: /json_proto [08:37:59]Method is POST - this is cgi request [08:37:59]url: /json_proto [08:37:59]query_string will be loaded in cgi processing [08:37:59]execute_cgi json_proto POST (null) [08:37:59]execute_cgi path=json_proto method=POST [08:37:59]POST find Content-Length [08:37:59]Host: 172.17.44.4:8080 [08:37:59]Content-Length: 628 [08:37:59]Content-Type: application/json [08:37:59] [08:37:59]POST finish read [08:37:59]Found Content-Length = 628 [08:37:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140969", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 4.000, "sum" : 520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 520.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:59]execute_script... [08:37:59]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140969", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 4.000, "sum" : 520.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 520.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:59]POST & json_proto [08:37:59]process_json_proto [08:37:59]json parsed OK: [08:37:59]protocol is kg_v1.0 [08:37:59]action value=close_receipt [08:37:59]process_action close_receipt [08:37:59]cmd_close_receipt [08:37:59]MH_GetDate [08:37:59]Write to MH i2c: F0 00 00 92 34 B5 [08:37:59]Write i2c OK [08:37:59]MH_I2C_Read... [08:37:59]Read from MH i2c: F0 [08:37:59]MH_I2C_Read... [08:37:59]Read from MH i2c: F0 09 00 [08:37:59]MH_I2C_Read... [08:37:59]Read from MH i2c: F0 09 00 92 34 00 ED C5 45 66 6C E9 28 66 FE [08:37:59]GetLastDocTimeStamp 1715848588 [08:37:59]current date 1715848685 [08:37:59]FM_GetShiftState [08:37:59]SAM_PROTO_GetShiftState [08:37:59]wFMCommunicate request_size=4 [08:37:59]MH_SAM_APDU [08:37:59]CAPDU: 80 13 01 00 [08:37:59]Write to MH i2c: E2 08 00 93 34 80 13 01 00 00 00 00 00 44 [08:37:59]Write i2c OK [08:37:59]MH_I2C_Read... [08:37:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:59]Read from MH i2c: E2 [08:37:59]MH_I2C_Read... [08:37:59]Read from MH i2c: E2 0E 00 [08:37:59]MH_I2C_Read... [08:37:59]Read from MH i2c: E2 0E 00 93 34 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 50 [08:37:59]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:37:59]wFMCommunicate OK [08:37:59]SAM_PROTO_GetShiftState done [08:37:59]FM_GetShiftState done [08:37:59]opened in 1715818246 [08:37:59]opened+sec_in_day 1715904646 [08:37:59]quantity*price = 52000 [08:37:59]sum+1 = 52001 [08:37:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 520.00 НСП 1% : 4.60 НДС 12% : 55.22 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 17 16.05.2024 08:38 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4957 ФПД: 178039375419040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083805&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4957&fm=178039375419040&tin=02508201610067®Number=0000000000154221&sum=52000 0 [08:38:00]StoreToDocumentArchive [08:38:00]shift 44 fd 4957 [08:38:00]save to /storage/0044/doc_00004957 [08:38:00]save last doc name /storage/0044/doc_00004957 to /storage/kkm_last_doc_name [08:38:00]save OK [08:38:00]Clear old archive folders... [08:38:00]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:38:00]tlvbuf is 00D0B420 [08:38:00]SAM_PROTO_ClearQueue [08:38:00]wFMCommunicate request_size=4 [08:38:00]MH_SAM_APDU [08:38:00]CAPDU: 80 09 00 00 [08:38:00]Write to MH i2c: E2 08 00 A0 34 80 09 00 00 00 00 00 00 46 [08:38:00]Write i2c OK [08:38:00]MH_I2C_Read... [08:38:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:00]Read from MH i2c: E2 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 03 00 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 03 00 A0 34 00 90 00 48 [08:38:00]RAPDU: 90 00 [08:38:00]wFMCommunicate OK [08:38:00]SAM_PROTO_ClearQueue done [08:38:00]KKMCreateOFDPacket [08:38:00]OFDProtocolAddRootSTLVToBuf [08:38:00]FM_MakeSignedData [08:38:00]FM_MakeSignedData [08:38:00]SAM_PROTO_SignData [08:38:00]wFMCommunicate request_size=4 [08:38:00]MH_SAM_APDU [08:38:00]CAPDU: 80 0D 01 02 [08:38:00]Write to MH i2c: E2 08 00 A1 34 80 0D 01 02 00 00 00 00 4E [08:38:00]Write i2c OK [08:38:00]MH_I2C_Read... [08:38:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:00]Read from MH i2c: E2 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 03 00 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 03 00 A1 34 00 90 00 49 [08:38:00]RAPDU: 90 00 [08:38:00]wFMCommunicate OK [08:38:00]wFMCommunicate request_size=255 [08:38:00]MH_SAM_APDU [08:38: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 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 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 ED C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 [08:38:00]Write to MH i2c: E2 02 01 A2 34 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 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 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 ED C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 00 00 28 [08:38:00]Write i2c OK [08:38:00]MH_I2C_Read... [08:38:00]OFD Sender: No OFD packet to send [08:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:00]Read from MH i2c: E2 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 03 00 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 03 00 A2 34 00 90 00 4A [08:38:00]RAPDU: 90 00 [08:38:00]wFMCommunicate OK [08:38:00]wFMCommunicate request_size=35 [08:38:00]MH_SAM_APDU [08:38:00]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5D 13 00 00 35 04 06 00 A1 ED 05 BA 56 A0 [08:38:00]Write to MH i2c: E2 26 00 A3 34 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5D 13 00 00 35 04 06 00 A1 ED 05 BA 56 A0 00 00 F9 [08:38:00]Write i2c OK [08:38:00]MH_I2C_Read... [08:38:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:00]Read from MH i2c: E2 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 03 00 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 03 00 A3 34 00 90 00 4B [08:38:00]RAPDU: 90 00 [08:38:00]wFMCommunicate OK [08:38:00]wFMCommunicate request_size=4 [08:38:00]MH_SAM_APDU [08:38:00]CAPDU: 80 0D 03 02 [08:38:00]Write to MH i2c: E2 08 00 A4 34 80 0D 03 02 00 00 00 00 53 [08:38:00]Write i2c OK [08:38:00]MH_I2C_Read... [08:38:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:00]Read from MH i2c: E2 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 0B 00 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 0B 00 A4 34 00 03 43 02 0B 87 5C C9 3F 90 00 92 [08:38:00]RAPDU: 03 43 02 0B 87 5C C9 3F 90 00 [08:38:00]wFMCommunicate OK [08:38:00]SAM_PROTO_SignData done [08:38:00]FM_MakeSignedData done [08:38:00]CreateOFDProtocolMessage [08:38:00]wFMCommunicate request_size=4 [08:38:00]MH_SAM_APDU [08:38:00]CAPDU: 80 11 00 00 [08:38:00]Write to MH i2c: E2 08 00 A5 34 80 11 00 00 00 00 00 00 53 [08:38:00]Write i2c OK [08:38:00]MH_I2C_Read... [08:38:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:00]Read from MH i2c: E2 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 17 00 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: E2 17 00 A5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A8 [08:38:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:38:00]wFMCommunicate OK [08:38:00]CreateOFDProtocolMessage done [08:38:00]OFDSenderStorePacket 4957 [08:38:00]StoreOFDPacket docnum=4957 [08:38:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 28 01 00 00 1E 38 20 01 AF CB 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 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 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 ED C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5D 13 00 00 35 04 06 00 A1 ED 05 BA 56 A0 03 43 02 0B 87 5C C9 3F [08:38:00]CheckFolder [08:38:00]dirname=/storage/ofd_packets [08:38:00]CheckFolder done [08:38:00]ProducePacketName [08:38:00]name=ofd_packets/00004957 [08:38:00]NVStorageSaveData ofd_packets/00004957 [08:38:00]File name is /storage/ofd_packets/00004957 [08:38:00]Write 326 bytes [08:38:00]NVStorageSaveData done [08:38:00]OFDSenderStorePacket done [08:38:00]KKMCreateOFDPacket done [08:38:00]NVStorageSaveData kkm_last_timestamp [08:38:00]File name is /storage/kkm_last_timestamp [08:38:00]Write 4 bytes [08:38:00]NVStorageSaveData done [08:38:00]ExternCall_PrintAddStr [08:38:00]wPrintStart [08:38:00]Write to MH i2c: 01 00 00 A6 34 DA [08:38:00]Write i2c OK [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: 01 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: 01 07 00 [08:38:00]MH_I2C_Read... [08:38:00]Read from MH i2c: 01 07 00 A6 34 00 00 00 00 00 FF 0F EF [08:38:00]RasterBufferAndPrint [08:38:00]line Счет N : (3)140969 [08:38:00]line ИНН: 02508201610067 [08:38:00]line Контрольно-Кассовый Чек [08:38:00]line ПРОДАЖА [08:38:00]line Товар: 2000036230011 [08:38:00]line Кофе Латте XL(GABB TRADE) [08:38:00]line 4.000 * 130.00 [08:38:00]line = 520.00 [08:38:00]line НДС 12% НСП 1% [08:38:00]line > о реализуемом товаре [08:38:00]line ИТОГО: 520.00 [08:38:00]line НСП 1% : 4.60 [08:38:00]line НДС 12% : 55.22 [08:38:00]line Наличными: 520.00 [08:38:00]line Безнал.: 0.00 [08:38:00]line Место: АЗС № 135 "Партнер Нефть" [08:38:00]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:38:00]line СНО: Общий режим [08:38:00]line Чек 17 16.05.2024 08:38 [08:38:00]line Смена: 44 ФФД: 1.0 [08:38:00]line ЗНМ: 0300000237 [08:38:00]line РНМ: 0000000000154221 [08:38:00]line Версия ККМ: v1.0 [08:38:00]line ФМ: 0000000000963259 [08:38:00]line ФД: 4957 [08:38:00]line ФПД: 178039375419040 [08:38:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083805&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4957&fm=178039375419040&tin=02508201610067®Number=0000000000154221&sum=52000 [08:38:01]line 0 [08:38:01]OFD Sender: Processing packet 4957 [packets to send 4, broken 3] [08:38:01]ProducePacketName [08:38:01]name=ofd_packets/00004957 [08:38:01]OFD Sender: To server: pG, [08:38:01]CommunicateWithHost lk.salyk.kg:30040 [08:38:01]ConnectInit lk.salyk.kg [08:38:01]written 0, free lines is 4095 [08:38:01]Connected sock=10 [08:38:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 28 01 00 00 1E 38 20 01 AF CB 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 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 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 ED C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5D 13 00 00 35 04 06 00 A1 ED 05 BA 56 A0 03 43 02 0B 87 5C C9 3F [08:38:01]Write to MH i2c: 01 00 00 CE 34 02 [08:38:01]Write i2c OK [08:38:01]MH_I2C_Read... [08:38:01]Read from MH i2c: 01 [08:38:01]MH_I2C_Read... [08:38:01]Read from MH i2c: 01 07 00 [08:38:01]MH_I2C_Read... [08:38:01]Read from MH i2c: 01 07 00 CE 34 00 00 00 00 00 99 0C AE [08:38:01]RasterBufferAndPrint [08:38:01]line [08:38:01]line [08:38:01]line [08:38:01]line [08:38:01]line [08:38:01]written 0, free lines is 3229 [08:38:01]MH_Cut [08:38:01]Write to MH i2c: D1 01 00 D5 34 01 DB [08:38:01]Write i2c OK [08:38:01]MH_I2C_Read... [08:38:01]Read from MH i2c: D1 [08:38:01]MH_I2C_Read... [08:38:01]Read from MH i2c: D1 01 00 [08:38:01]MH_I2C_Read... [08:38:01]Read from MH i2c: D1 01 00 D5 34 00 DA [08:38:01]Write to MH i2c: 01 00 00 D6 34 0A [08:38:01]Write i2c OK [08:38:01]MH_I2C_Read... [08:38:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 D8 3D 47 00 32 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5D 13 00 00 F4 03 04 00 B1 71 45 66 B6 04 01 00 00 89 7D AB 84 78 3C 28 4A [08:38:01]CommunicateWithHost err = 0 [08:38:01]CheckOFDResponse [08:38:01]1017 (14) - 77093643461234 [08:38:01]1041 (16) - 0000000000963259 [08:38:01]1040 (4) - 4957 [08:38:01]1012 (4) - 16.05.2024 02:38 [08:38:01]1206 (1) - 0 [08:38:01]OFD Sender: Remove packet 4957 [08:38:01]ProducePacketName [08:38:01]name=ofd_packets/00004957 [08:38:01]NVStorageDeleteData [08:38:02]OFD Sender: No OFD packet to send [08:38:02]*** Cut start [08:38:02]*** Partial cut [08:38:02]*** CUTSNS_PIN = 1 [08:38:02]*** CUTSNS_PIN = 0 [08:38:02]*** Brake cut motor [08:38:03]Read from MH i2c: 01 [08:38:03]MH_I2C_Read... [08:38:03]*** Stop cut motor [08:38:03]*** Cut end [08:38:03]Read from MH i2c: 01 07 00 [08:38:03]MH_I2C_Read... [08:38:03]Read from MH i2c: 01 07 00 D6 34 00 00 00 00 00 FF 0F 1F [08:38:03]process_action close_receipt done [08:38:03]requested_data is exist [08:38:03]produce_requested_data [08:38:03]requested_item fm.sn is exist - process it [08:38:03]wFMCommunicate request_size=4 [08:38:03]MH_SAM_APDU [08:38:03]CAPDU: 80 11 00 00 [08:38:03]Write to MH i2c: E2 08 00 D7 34 80 11 00 00 00 00 00 00 85 [08:38:03]Write i2c OK [08:38:03]MH_I2C_Read... [08:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:03]Read from MH i2c: E2 [08:38:03]MH_I2C_Read... [08:38:03]Read from MH i2c: E2 17 00 [08:38:03]MH_I2C_Read... [08:38:03]Read from MH i2c: E2 17 00 D7 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 DA [08:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:38:03]wFMCommunicate OK [08:38:03]requested_item fd.num is exist - process it [08:38:03]SAM_PROTO_GetFieldsCounters [08:38:03]wFMCommunicate request_size=4 [08:38:03]MH_SAM_APDU [08:38:03]CAPDU: 80 13 00 00 [08:38:03]Write to MH i2c: E2 08 00 D8 34 80 13 00 00 00 00 00 00 88 [08:38:03]Write i2c OK [08:38:03]MH_I2C_Read... [08:38:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:03]Read from MH i2c: E2 [08:38:03]MH_I2C_Read... [08:38:03]Read from MH i2c: E2 62 00 [08:38:03]MH_I2C_Read... [08:38:03]Read from MH i2c: E2 62 00 D8 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5D 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 70 [08:38:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5D 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:03]wFMCommunicate OK [08:38:03]SAM_PROTO_GetFieldsCounters done [08:38:03]requested_item shift.num is exist - process it [08:38:03]requested_item shift.opened is exist - process it [08:38:03]req_shift_opened [08:38:03]FM_GetShiftState [08:38:03]SAM_PROTO_GetShiftState [08:38:03]wFMCommunicate request_size=4 [08:38:03]MH_SAM_APDU [08:38:03]CAPDU: 80 13 01 00 [08:38:03]Write to MH i2c: E2 08 00 D9 34 80 13 01 00 00 00 00 00 8A [08:38:03]Write i2c OK [08:38:03]MH_I2C_Read... [08:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:03]Read from MH i2c: E2 [08:38:03]MH_I2C_Read... [08:38:03]Read from MH i2c: E2 0E 00 [08:38:03]MH_I2C_Read... [08:38:03]Read from MH i2c: E2 0E 00 D9 34 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 96 [08:38:03]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:38:03]wFMCommunicate OK [08:38:03]SAM_PROTO_GetShiftState done [08:38:03]FM_GetShiftState done [08:38:03]req_shift_opened done [08:38:03]requested_item shift.open_date is exist - process it [08:38:03]req_shift_open_date [08:38:03]req_shift_open_date done [08:38:03]produce_requested_data done [08:38:03]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4957,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:38:03]process_action_free close_receipt [08:38:03]json_value_free [08:38:03]json_value_free done [08:38:03]process_json_proto returns [08:38:03]Send response to host [08:38:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4957,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:38:03]free response buf [08:38:03]execute_script done [08:38:03]execute_script returns [08:38:03]free content buf [08:38:03]Sock 9.Close socket [08:38:03]Sock 9.Thread stoped [08:38:07]OFD Sender: No OFD packet to send [08:38:12]OFD Sender: No OFD packet to send [08:38:17]accept exits with 8 [08:38:17]New connection [08:38:17]New thread 3067587940 created [08:38:17]Thread 3067444580 joined [08:38:17]Waiting for new connection... [08:38:17] Sock 8.Parse request [08:38:17]Sock 8.Check first char [08:38:17]Sock 8.First char is OK [08:38:17]request: POST /json_proto HTTP/1.0 [08:38:17]Method: POST [08:38:17]URL: /json_proto [08:38:17]Method is POST - this is cgi request [08:38:17]url: /json_proto [08:38:17]query_string will be loaded in cgi processing [08:38:17]execute_cgi json_proto POST (null) [08:38:17]execute_cgi path=json_proto method=POST [08:38:17]POST find Content-Length [08:38:17]Host: 172.17.44.4:8080 [08:38:17]Content-Length: 632 [08:38:17]Content-Type: application/json [08:38:17] [08:38:17]POST finish read [08:38:17]Found Content-Length = 632 [08:38:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140970", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:17]execute_script... [08:38: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)140970", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:17]POST & json_proto [08:38:17]process_json_proto [08:38:17]json parsed OK: [08:38:17]protocol is kg_v1.0 [08:38:17]action value=close_receipt [08:38:17]process_action close_receipt [08:38:17]cmd_close_receipt [08:38:17]MH_GetDate [08:38:17]Write to MH i2c: F0 00 00 DA 34 FD [08:38:17]Write i2c OK [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: F0 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: F0 09 00 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: F0 09 00 DA 34 00 FF C5 45 66 6C E9 28 66 58 [08:38:17]GetLastDocTimeStamp 1715848685 [08:38:17]current date 1715848703 [08:38:17]FM_GetShiftState [08:38:17]SAM_PROTO_GetShiftState [08:38:17]wFMCommunicate request_size=4 [08:38:17]MH_SAM_APDU [08:38:17]CAPDU: 80 13 01 00 [08:38:17]Write to MH i2c: E2 08 00 DB 34 80 13 01 00 00 00 00 00 8C [08:38:17]Write i2c OK [08:38:17]MH_I2C_Read... [08:38:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:17]Read from MH i2c: E2 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: E2 0E 00 [08:38:17]MH_I2C_Read... [08:38:17]Read from MH i2c: E2 0E 00 DB 34 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 98 [08:38:17]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:38:17]wFMCommunicate OK [08:38:17]SAM_PROTO_GetShiftState done [08:38:17]FM_GetShiftState done [08:38:17]opened in 1715818246 [08:38:17]opened+sec_in_day 1715904646 [08:38:17]quantity*price = 8000 [08:38:17]sum+1 = 8001 [08:38:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 18 16.05.2024 08:38 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4958 ФПД: 204929073661083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083823&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4958&fm=204929073661083&tin=02508201610067®Number=0000000000154221&sum=8000 0 [08:38:18]StoreToDocumentArchive [08:38:18]shift 44 fd 4958 [08:38:18]save to /storage/0044/doc_00004958 [08:38:18]save last doc name /storage/0044/doc_00004958 to /storage/kkm_last_doc_name [08:38:18]save OK [08:38:18]Clear old archive folders... [08:38:18]ProcessDocumentItem done err = 0, tmpTLVsize=271 [08:38:18]tlvbuf is 00D22860 [08:38:18]SAM_PROTO_ClearQueue [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 09 00 00 [08:38:18]Write to MH i2c: E2 08 00 E8 34 80 09 00 00 00 00 00 00 8E [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 E8 34 00 90 00 90 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]SAM_PROTO_ClearQueue done [08:38:18]KKMCreateOFDPacket [08:38:18]OFDProtocolAddRootSTLVToBuf [08:38:18]FM_MakeSignedData [08:38:18]FM_MakeSignedData [08:38:18]SAM_PROTO_SignData [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 01 02 [08:38:18]Write to MH i2c: E2 08 00 E9 34 80 0D 01 02 00 00 00 00 96 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 E9 34 00 90 00 91 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=255 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 12 00 00 00 F4 03 04 00 FF C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [08:38:18]Write to MH i2c: E2 02 01 EA 34 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 12 00 00 00 F4 03 04 00 FF C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 E9 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 EA 34 00 90 00 92 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=30 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 02 02 19 30 39 36 33 32 35 39 10 04 04 00 5E 13 00 00 35 04 06 00 BA 61 C4 A3 C4 9B [08:38:18]Write to MH i2c: E2 21 00 EB 34 80 0D 02 02 19 00 30 39 36 33 32 35 39 10 04 04 00 5E 13 00 00 35 04 06 00 BA 61 C4 A3 C4 9B 00 00 E6 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 03 00 EB 34 00 90 00 93 [08:38:18]RAPDU: 90 00 [08:38:18]wFMCommunicate OK [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 0D 03 02 [08:38:18]Write to MH i2c: E2 08 00 EC 34 80 0D 03 02 00 00 00 00 9B [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0B 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 0B 00 EC 34 00 BD D1 9D 16 32 A0 A2 7A 90 00 CB [08:38:18]RAPDU: BD D1 9D 16 32 A0 A2 7A 90 00 [08:38:18]wFMCommunicate OK [08:38:18]SAM_PROTO_SignData done [08:38:18]FM_MakeSignedData done [08:38:18]CreateOFDProtocolMessage [08:38:18]wFMCommunicate request_size=4 [08:38:18]MH_SAM_APDU [08:38:18]CAPDU: 80 11 00 00 [08:38:18]Write to MH i2c: E2 08 00 ED 34 80 11 00 00 00 00 00 00 9B [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:18]Read from MH i2c: E2 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 17 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: E2 17 00 ED 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F0 [08:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:38:18]wFMCommunicate OK [08:38:18]CreateOFDProtocolMessage done [08:38:18]OFDSenderStorePacket 4958 [08:38:18]StoreOFDPacket docnum=4958 [08:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 23 01 00 00 7E BE 1B 01 4C 7D 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 12 00 00 00 F4 03 04 00 FF C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5E 13 00 00 35 04 06 00 BA 61 C4 A3 C4 9B BD D1 9D 16 32 A0 A2 7A [08:38:18]CheckFolder [08:38:18]dirname=/storage/ofd_packets [08:38:18]CheckFolder done [08:38:18]ProducePacketName [08:38:18]name=ofd_packets/00004958 [08:38:18]NVStorageSaveData ofd_packets/00004958 [08:38:18]File name is /storage/ofd_packets/00004958 [08:38:18]Write 321 bytes [08:38:18]NVStorageSaveData done [08:38:18]OFDSenderStorePacket done [08:38:18]KKMCreateOFDPacket done [08:38:18]NVStorageSaveData kkm_last_timestamp [08:38:18]File name is /storage/kkm_last_timestamp [08:38:18]Write 4 bytes [08:38:18]NVStorageSaveData done [08:38:18]ExternCall_PrintAddStr [08:38:18]wPrintStart [08:38:18]Write to MH i2c: 01 00 00 EE 34 22 [08:38:18]Write i2c OK [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 07 00 [08:38:18]MH_I2C_Read... [08:38:18]Read from MH i2c: 01 07 00 EE 34 00 00 00 00 00 FF 0F 37 [08:38:18]RasterBufferAndPrint [08:38:18]line Счет N : (3)140970 [08:38:18]line ИНН: 02508201610067 [08:38:18]line Контрольно-Кассовый Чек [08:38:18]line ПРОДАЖА [08:38:18]line Товар: 4700000160211 [08:38:18]line Вода Легенда 0,5л [08:38:18]line 2.000 * 40.00 [08:38:18]line = 80.00 [08:38:18]line НДС 12% НСП 1% [08:38:18]line > о реализуемом товаре [08:38:18]line ИТОГО: 80.00 [08:38:18]line НСП 1% : 0.71 [08:38:18]line НДС 12% : 8.50 [08:38:18]line Наличными: 80.00 [08:38:18]line Безнал.: 0.00 [08:38:18]line Место: АЗС № 135 "Партнер Нефть" [08:38:18]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:38:18]line СНО: Общий режим [08:38:18]line Чек 18 16.05.2024 08:38 [08:38:18]line Смена: 44 ФФД: 1.0 [08:38:18]line ЗНМ: 0300000237 [08:38:18]line РНМ: 0000000000154221 [08:38:18]line Версия ККМ: v1.0 [08:38:18]line ФМ: 0000000000963259 [08:38:18]line ФД: 4958 [08:38:18]line ФПД: 204929073661083 [08:38:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T083823&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4958&fm=204929073661083&tin=02508201610067®Number=0000000000154221&sum=8000 [08:38:19]line 0 [08:38:19]OFD Sender: Processing packet 4958 [packets to send 4, broken 3] [08:38:19]ProducePacketName [08:38:19]name=ofd_packets/00004958 [08:38:19]OFD Sender: To server: pG, [08:38:19]CommunicateWithHost lk.salyk.kg:30040 [08:38:19]ConnectInit lk.salyk.kg [08:38:19]written 0, free lines is 4095 [08:38:19]Connected sock=10 [08:38:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 23 01 00 00 7E BE 1B 01 4C 7D 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 12 00 00 00 F4 03 04 00 FF C5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5E 13 00 00 35 04 06 00 BA 61 C4 A3 C4 9B BD D1 9D 16 32 A0 A2 7A [08:38:19]Write to MH i2c: 01 00 00 16 35 4B [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: 01 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: 01 07 00 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: 01 07 00 16 35 00 00 00 00 00 97 0C F5 [08:38:19]RasterBufferAndPrint [08:38:19]line [08:38:19]line [08:38:19]line [08:38:19]line [08:38:19]line [08:38:19]written 0, free lines is 3226 [08:38:19]MH_Cut [08:38:19]Write to MH i2c: D1 01 00 1D 35 01 24 [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: D1 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: D1 01 00 [08:38:19]MH_I2C_Read... [08:38:19]Read from MH i2c: D1 01 00 1D 35 00 23 [08:38:19]Write to MH i2c: 01 00 00 1E 35 53 [08:38:19]Write i2c OK [08:38:19]MH_I2C_Read... [08:38:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 60 89 47 00 1E 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 33 32 35 39 10 04 04 00 5E 13 00 00 F4 03 04 00 C3 71 45 66 B6 04 01 00 00 13 B2 06 3A 39 D5 31 53 [08:38:19]CommunicateWithHost err = 0 [08:38:19]CheckOFDResponse [08:38:19]1017 (14) - 77093643461234 [08:38:19]1041 (16) - 0000000000963259 [08:38:19]1040 (4) - 4958 [08:38:19]1012 (4) - 16.05.2024 02:38 [08:38:19]1206 (1) - 0 [08:38:19]OFD Sender: Remove packet 4958 [08:38:19]ProducePacketName [08:38:19]name=ofd_packets/00004958 [08:38:19]NVStorageDeleteData [08:38:20]OFD Sender: No OFD packet to send [08:38:20]*** Cut start [08:38:20]*** Partial cut [08:38:20]*** CUTSNS_PIN = 1 [08:38:20]*** CUTSNS_PIN = 0 [08:38:20]*** Brake cut motor [08:38:21]Read from MH i2c: 01 [08:38:21]MH_I2C_Read... [08:38:21]*** Stop cut motor [08:38:21]*** Cut end [08:38:21]Read from MH i2c: 01 07 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: 01 07 00 1E 35 00 00 00 00 00 FF 0F 68 [08:38:21]process_action close_receipt done [08:38:21]requested_data is exist [08:38:21]produce_requested_data [08:38:21]requested_item fm.sn is exist - process it [08:38:21]wFMCommunicate request_size=4 [08:38:21]MH_SAM_APDU [08:38:21]CAPDU: 80 11 00 00 [08:38:21]Write to MH i2c: E2 08 00 1F 35 80 11 00 00 00 00 00 00 CE [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:21]Read from MH i2c: E2 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 17 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 17 00 1F 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 23 [08:38:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:38:21]wFMCommunicate OK [08:38:21]requested_item fd.num is exist - process it [08:38:21]SAM_PROTO_GetFieldsCounters [08:38:21]wFMCommunicate request_size=4 [08:38:21]MH_SAM_APDU [08:38:21]CAPDU: 80 13 00 00 [08:38:21]Write to MH i2c: E2 08 00 20 35 80 13 00 00 00 00 00 00 D1 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:21]Read from MH i2c: E2 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 62 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 62 00 20 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5E 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [08:38:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5E 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:21]wFMCommunicate OK [08:38:21]SAM_PROTO_GetFieldsCounters done [08:38:21]requested_item shift.num is exist - process it [08:38:21]requested_item shift.opened is exist - process it [08:38:21]req_shift_opened [08:38:21]FM_GetShiftState [08:38:21]SAM_PROTO_GetShiftState [08:38:21]wFMCommunicate request_size=4 [08:38:21]MH_SAM_APDU [08:38:21]CAPDU: 80 13 01 00 [08:38:21]Write to MH i2c: E2 08 00 21 35 80 13 01 00 00 00 00 00 D3 [08:38:21]Write i2c OK [08:38:21]MH_I2C_Read... [08:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:21]Read from MH i2c: E2 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 0E 00 [08:38:21]MH_I2C_Read... [08:38:21]Read from MH i2c: E2 0E 00 21 35 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 DF [08:38:21]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:38:21]wFMCommunicate OK [08:38:21]SAM_PROTO_GetShiftState done [08:38:21]FM_GetShiftState done [08:38:21]req_shift_opened done [08:38:21]requested_item shift.open_date is exist - process it [08:38:21]req_shift_open_date [08:38:21]req_shift_open_date done [08:38:21]produce_requested_data done [08:38:21]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4958,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:38:21]process_action_free close_receipt [08:38:21]json_value_free [08:38:21]json_value_free done [08:38:21]process_json_proto returns [08:38:21]Send response to host [08:38:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4958,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:38:21]free response buf [08:38:21]execute_script done [08:38:21]execute_script returns [08:38:21]free content buf [08:38:21]Sock 8.Close socket [08:38:21]Sock 8.Thread stoped [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]accept exits with 9 [08:40:00]New connection [08:40:00]New thread 3067444580 created [08:40:00]Thread 3067587940 joined [08:40:00]Waiting for new connection... [08:40:00] Sock 9.Parse request [08:40:00]Sock 9.Check first char [08:40:00]Sock 9.First char is OK [08:40:00]request: POST /json_proto HTTP/1.0 [08:40:00]Method: POST [08:40:00]URL: /json_proto [08:40:00]Method is POST - this is cgi request [08:40:00]url: /json_proto [08:40:00]query_string will be loaded in cgi processing [08:40:00]execute_cgi json_proto POST (null) [08:40:00]execute_cgi path=json_proto method=POST [08:40:00]POST find Content-Length [08:40:00]Host: 172.17.44.4:8080 [08:40:00]Content-Length: 678 [08:40:00]Content-Type: application/json [08:40:00] [08:40:00]POST finish read [08:40:00]Found Content-Length = 678 [08:40:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:00]execute_script... [08:40:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992590", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:00]POST & json_proto [08:40:00]process_json_proto [08:40:00]json parsed OK: [08:40:00]protocol is kg_v1.0 [08:40:00]action value=close_receipt [08:40:00]process_action close_receipt [08:40:00]cmd_close_receipt [08:40:00]MH_GetDate [08:40:00]Write to MH i2c: F0 00 00 22 35 46 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: F0 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: F0 09 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: F0 09 00 22 35 00 66 C6 45 66 6C E9 28 66 09 [08:40:00]GetLastDocTimeStamp 1715848703 [08:40:00]current date 1715848806 [08:40:00]FM_GetShiftState [08:40:00]SAM_PROTO_GetShiftState [08:40:00]wFMCommunicate request_size=4 [08:40:00]MH_SAM_APDU [08:40:00]CAPDU: 80 13 01 00 [08:40:00]Write to MH i2c: E2 08 00 23 35 80 13 01 00 00 00 00 00 D5 [08:40:00]Write i2c OK [08:40:00]MH_I2C_Read... [08:40:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:00]Read from MH i2c: E2 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 0E 00 [08:40:00]MH_I2C_Read... [08:40:00]Read from MH i2c: E2 0E 00 23 35 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E1 [08:40:00]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:40:00]wFMCommunicate OK [08:40:00]SAM_PROTO_GetShiftState done [08:40:00]FM_GetShiftState done [08:40:00]opened in 1715818246 [08:40:00]opened+sec_in_day 1715904646 [08:40:00]quantity*price = 50033 [08:40:00]sum+1 = 50034 [08:40:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 19 16.05.2024 08:40 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4959 ФПД: 151896054573927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T084006&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4959&fm=151896054573927&tin=02508201610067®Number=0000000000154221&sum=50000 [08:40:01]StoreToDocumentArchive [08:40:01]shift 44 fd 4959 [08:40:01]save to /storage/0044/doc_00004959 [08:40:01]save last doc name /storage/0044/doc_00004959 to /storage/kkm_last_doc_name [08:40:01]save OK [08:40:01]Clear old archive folders... [08:40:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:01]tlvbuf is 00D26320 [08:40:01]SAM_PROTO_ClearQueue [08:40:01]wFMCommunicate request_size=4 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 09 00 00 [08:40:01]Write to MH i2c: E2 08 00 30 35 80 09 00 00 00 00 00 00 D7 [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 30 35 00 90 00 D9 [08:40:01]RAPDU: 90 00 [08:40:01]wFMCommunicate OK [08:40:01]SAM_PROTO_ClearQueue done [08:40:01]KKMCreateOFDPacket [08:40:01]OFDProtocolAddRootSTLVToBuf [08:40:01]FM_MakeSignedData [08:40:01]FM_MakeSignedData [08:40:01]SAM_PROTO_SignData [08:40:01]wFMCommunicate request_size=4 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 0D 01 02 [08:40:01]Write to MH i2c: E2 08 00 31 35 80 0D 01 02 00 00 00 00 DF [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 31 35 00 90 00 DA [08:40:01]RAPDU: 90 00 [08:40:01]wFMCommunicate OK [08:40:01]wFMCommunicate request_size=255 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 66 C6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5F 13 00 00 35 04 06 00 8A [08:40:01]Write to MH i2c: E2 02 01 32 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 66 C6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5F 13 00 00 35 04 06 00 8A 00 00 6E [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 32 35 00 90 00 DB [08:40:01]RAPDU: 90 00 [08:40:01]wFMCommunicate OK [08:40:01]wFMCommunicate request_size=10 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 0D 02 02 05 26 0E 60 2B 67 [08:40:01]Write to MH i2c: E2 0D 00 33 35 80 0D 02 02 05 00 26 0E 60 2B 67 00 00 12 [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 03 00 33 35 00 90 00 DC [08:40:01]RAPDU: 90 00 [08:40:01]wFMCommunicate OK [08:40:01]wFMCommunicate request_size=4 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 0D 03 02 [08:40:01]Write to MH i2c: E2 08 00 34 35 80 0D 03 02 00 00 00 00 E4 [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 0B 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 0B 00 34 35 00 B1 0B C0 8E 46 29 CE 7C 90 00 A8 [08:40:01]RAPDU: B1 0B C0 8E 46 29 CE 7C 90 00 [08:40:01]wFMCommunicate OK [08:40:01]SAM_PROTO_SignData done [08:40:01]FM_MakeSignedData done [08:40:01]CreateOFDProtocolMessage [08:40:01]wFMCommunicate request_size=4 [08:40:01]MH_SAM_APDU [08:40:01]CAPDU: 80 11 00 00 [08:40:01]Write to MH i2c: E2 08 00 35 35 80 11 00 00 00 00 00 00 E4 [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:01]Read from MH i2c: E2 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 17 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: E2 17 00 35 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 39 [08:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:40:01]wFMCommunicate OK [08:40:01]CreateOFDProtocolMessage done [08:40:01]OFDSenderStorePacket 4959 [08:40:01]StoreOFDPacket docnum=4959 [08:40:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 F4 AA 07 01 F6 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 66 C6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5F 13 00 00 35 04 06 00 8A 26 0E 60 2B 67 B1 0B C0 8E 46 29 CE 7C [08:40:01]CheckFolder [08:40:01]dirname=/storage/ofd_packets [08:40:01]CheckFolder done [08:40:01]ProducePacketName [08:40:01]name=ofd_packets/00004959 [08:40:01]NVStorageSaveData ofd_packets/00004959 [08:40:01]File name is /storage/ofd_packets/00004959 [08:40:01]Write 301 bytes [08:40:01]NVStorageSaveData done [08:40:01]OFDSenderStorePacket done [08:40:01]KKMCreateOFDPacket done [08:40:01]NVStorageSaveData kkm_last_timestamp [08:40:01]File name is /storage/kkm_last_timestamp [08:40:01]Write 4 bytes [08:40:01]NVStorageSaveData done [08:40:01]ExternCall_PrintAddStr [08:40:01]wPrintStart [08:40:01]Write to MH i2c: 01 00 00 36 35 6B [08:40:01]Write i2c OK [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: 01 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: 01 07 00 [08:40:01]MH_I2C_Read... [08:40:01]Read from MH i2c: 01 07 00 36 35 00 00 00 00 00 FF 0F 80 [08:40:01]RasterBufferAndPrint [08:40:01]line Счет N : (1)1992590 [08:40:01]line ИНН: 02508201610067 [08:40:01]line Контрольно-Кассовый Чек [08:40:01]line ПРОДАЖА [08:40:01]line ТРК (МРК, ГНК) : 43 [08:40:01]line Товар: 2710124130 [08:40:01]line Аи-92-К-4 [08:40:01]line 7.490 * 66.80 [08:40:01]line = 500.33 [08:40:01]line НДС 12% НСП 1% [08:40:01]line > о реализуемом товаре [08:40:01]line ОКРУГЛЕНИЕ: -0.33 [08:40:01]line ИТОГО: 500.00 [08:40:01]line Внесено: 500.00 [08:40:01]line СДАЧА: 0.00 [08:40:01]line НСП 1% : 4.43 [08:40:01]line НДС 12% : 53.13 [08:40:01]line Наличными: 500.00 [08:40:01]line Безнал.: 0.00 [08:40:01]line Место: АЗС № 135 "Партнер Нефть" [08:40:01]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:40:01]line СНО: Общий режим [08:40:01]line Чек 19 16.05.2024 08:40 [08:40:01]line Смена: 44 ФФД: 1.0 [08:40:01]line ЗНМ: 0300000237 [08:40:01]line РНМ: 0000000000154221 [08:40:01]line Версия ККМ: v1.0 [08:40:01]line ФМ: 0000000000963259 [08:40:01]line ФД: 4959 [08:40:01]line ФПД: 151896054573927 [08:40:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T084006&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4959&fm=151896054573927&tin=02508201610067®Number=0000000000154221&sum=50000 [08:40:02]OFD Sender: Processing packet 4959 [packets to send 4, broken 3] [08:40:02]ProducePacketName [08:40:02]name=ofd_packets/00004959 [08:40:02]OFD Sender: To server: pG, [08:40:02]CommunicateWithHost lk.salyk.kg:30040 [08:40:02]ConnectInit lk.salyk.kg [08:40:02]written 0, free lines is 4095 [08:40:02]Connected sock=11 [08:40:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 F4 AA 07 01 F6 A2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 66 C6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5F 13 00 00 35 04 06 00 8A 26 0E 60 2B 67 B1 0B C0 8E 46 29 CE 7C [08:40:02]Write to MH i2c: 01 00 00 61 35 96 [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: 01 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: 01 07 00 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: 01 07 00 61 35 00 00 00 00 00 6A 0C 13 [08:40:02]RasterBufferAndPrint [08:40:02]line [08:40:02]line [08:40:02]line [08:40:02]line [08:40:02]line [08:40:02]written 0, free lines is 3181 [08:40:02]MH_Cut [08:40:02]Write to MH i2c: D1 01 00 68 35 01 6F [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: D1 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: D1 01 00 [08:40:02]MH_I2C_Read... [08:40:02]Read from MH i2c: D1 01 00 68 35 00 6E [08:40:02]Write to MH i2c: 01 00 00 69 35 9E [08:40:02]Write i2c OK [08:40:02]MH_I2C_Read... [08:40:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 89 2B 47 00 7E 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 5F 13 00 00 F4 03 04 00 2A 72 45 66 B6 04 01 00 00 DC 31 2E 92 0E 4A 34 01 [08:40:02]CommunicateWithHost err = 0 [08:40:02]CheckOFDResponse [08:40:02]1017 (14) - 77093643461234 [08:40:02]1041 (16) - 0000000000963259 [08:40:02]1040 (4) - 4959 [08:40:02]1012 (4) - 16.05.2024 02:40 [08:40:02]1206 (1) - 0 [08:40:02]OFD Sender: Remove packet 4959 [08:40:02]ProducePacketName [08:40:02]name=ofd_packets/00004959 [08:40:02]NVStorageDeleteData [08:40:03]OFD Sender: No OFD packet to send [08:40:03]*** Cut start [08:40:03]*** Partial cut [08:40:03]*** CUTSNS_PIN = 1 [08:40:03]*** CUTSNS_PIN = 0 [08:40:04]*** Brake cut motor [08:40:04]Read from MH i2c: 01 [08:40:04]MH_I2C_Read... [08:40:04]*** Stop cut motor [08:40:04]*** Cut end [08:40:04]Read from MH i2c: 01 07 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: 01 07 00 69 35 00 00 00 00 00 FF 0F B3 [08:40:04]process_action close_receipt done [08:40:04]requested_data is exist [08:40:04]produce_requested_data [08:40:04]requested_item fm.sn is exist - process it [08:40:04]wFMCommunicate request_size=4 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 11 00 00 [08:40:04]Write to MH i2c: E2 08 00 6A 35 80 11 00 00 00 00 00 00 19 [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 17 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 17 00 6A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 6E [08:40:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:40:04]wFMCommunicate OK [08:40:04]requested_item fd.num is exist - process it [08:40:04]SAM_PROTO_GetFieldsCounters [08:40:04]wFMCommunicate request_size=4 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 13 00 00 [08:40:04]Write to MH i2c: E2 08 00 6B 35 80 13 00 00 00 00 00 00 1C [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 62 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 62 00 6B 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5F 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [08:40:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 5F 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:04]wFMCommunicate OK [08:40:04]SAM_PROTO_GetFieldsCounters done [08:40:04]requested_item shift.num is exist - process it [08:40:04]requested_item shift.opened is exist - process it [08:40:04]req_shift_opened [08:40:04]FM_GetShiftState [08:40:04]SAM_PROTO_GetShiftState [08:40:04]wFMCommunicate request_size=4 [08:40:04]MH_SAM_APDU [08:40:04]CAPDU: 80 13 01 00 [08:40:04]Write to MH i2c: E2 08 00 6C 35 80 13 01 00 00 00 00 00 1E [08:40:04]Write i2c OK [08:40:04]MH_I2C_Read... [08:40:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:04]Read from MH i2c: E2 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 0E 00 [08:40:04]MH_I2C_Read... [08:40:04]Read from MH i2c: E2 0E 00 6C 35 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 2A [08:40:04]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:40:04]wFMCommunicate OK [08:40:04]SAM_PROTO_GetShiftState done [08:40:04]FM_GetShiftState done [08:40:04]req_shift_opened done [08:40:04]requested_item shift.open_date is exist - process it [08:40:04]req_shift_open_date [08:40:04]req_shift_open_date done [08:40:04]produce_requested_data done [08:40:04]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4959,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:40:04]process_action_free close_receipt [08:40:04]json_value_free [08:40:04]json_value_free done [08:40:04]process_json_proto returns [08:40:04]Send response to host [08:40:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4959,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:40:04]free response buf [08:40:04]execute_script done [08:40:04]execute_script returns [08:40:04]free content buf [08:40:04]Sock 9.Close socket [08:40:04]Sock 9.Thread stoped [08:40:05]accept exits with 8 [08:40:05]New connection [08:40:05]New thread 3067587940 created [08:40:05]Thread 3067444580 joined [08:40:05]Waiting for new connection... [08:40:05] Sock 8.Parse request [08:40:05]Sock 8.Check first char [08:40:05]Sock 8.First char is OK [08:40:05]request: POST /json_proto HTTP/1.0 [08:40:05]Method: POST [08:40:05]URL: /json_proto [08:40:05]Method is POST - this is cgi request [08:40:05]url: /json_proto [08:40:05]query_string will be loaded in cgi processing [08:40:05]execute_cgi json_proto POST (null) [08:40:05]execute_cgi path=json_proto method=POST [08:40:05]POST find Content-Length [08:40:05]Host: 172.17.44.4:8080 [08:40:05]Content-Length: 804 [08:40:05]Content-Type: application/json [08:40:05] [08:40:05]POST finish read [08:40:05]Found Content-Length = 804 [08:40:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 20.500, "sum" : 1500.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:05]execute_script... [08:40:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 20.500, "sum" : 1500.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.60 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:05]POST & json_proto [08:40:05]process_json_proto [08:40:05]json parsed OK: [08:40:05]protocol is kg_v1.0 [08:40:05]action value=close_receipt [08:40:05]process_action close_receipt [08:40:05]cmd_close_receipt [08:40:05]MH_GetDate [08:40:05]Write to MH i2c: F0 00 00 6D 35 91 [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: F0 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: F0 09 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: F0 09 00 6D 35 00 6B C6 45 66 6C E9 28 66 59 [08:40:05]GetLastDocTimeStamp 1715848806 [08:40:05]current date 1715848811 [08:40:05]FM_GetShiftState [08:40:05]SAM_PROTO_GetShiftState [08:40:05]wFMCommunicate request_size=4 [08:40:05]MH_SAM_APDU [08:40:05]CAPDU: 80 13 01 00 [08:40:05]Write to MH i2c: E2 08 00 6E 35 80 13 01 00 00 00 00 00 20 [08:40:05]Write i2c OK [08:40:05]MH_I2C_Read... [08:40:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:05]Read from MH i2c: E2 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 0E 00 [08:40:05]MH_I2C_Read... [08:40:05]Read from MH i2c: E2 0E 00 6E 35 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 2C [08:40:05]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:40:05]wFMCommunicate OK [08:40:05]SAM_PROTO_GetShiftState done [08:40:05]FM_GetShiftState done [08:40:05]opened in 1715818246 [08:40:05]opened+sec_in_day 1715904646 [08:40:05]quantity*price = 150060 [08:40:05]sum+1 = 150061 [08:40:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.60 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 0.00 Безнал.: 1500.60 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 20 16.05.2024 08:40 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 4960 ФПД: 97731785302824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T084011&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4960&fm=97731785302824&tin=02508201610067®Number=0000000000154221&sum=150060 [08:40:06]StoreToDocumentArchive [08:40:06]shift 44 fd 4960 [08:40:06]save to /storage/0044/doc_00004960 [08:40:06]save last doc name /storage/0044/doc_00004960 to /storage/kkm_last_doc_name [08:40:06]save OK [08:40:06]Clear old archive folders... [08:40:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:06]tlvbuf is 00CFE750 [08:40:06]SAM_PROTO_ClearQueue [08:40:06]wFMCommunicate request_size=4 [08:40:06]MH_SAM_APDU [08:40:06]CAPDU: 80 09 00 00 [08:40:06]Write to MH i2c: E2 08 00 7B 35 80 09 00 00 00 00 00 00 22 [08:40:06]Write i2c OK [08:40:06]MH_I2C_Read... [08:40:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:06]Read from MH i2c: E2 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 03 00 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 03 00 7B 35 00 90 00 24 [08:40:06]RAPDU: 90 00 [08:40:06]wFMCommunicate OK [08:40:06]SAM_PROTO_ClearQueue done [08:40:06]KKMCreateOFDPacket [08:40:06]OFDProtocolAddRootSTLVToBuf [08:40:06]FM_MakeSignedData [08:40:06]FM_MakeSignedData [08:40:06]SAM_PROTO_SignData [08:40:06]wFMCommunicate request_size=4 [08:40:06]MH_SAM_APDU [08:40:06]CAPDU: 80 0D 01 02 [08:40:06]Write to MH i2c: E2 08 00 7C 35 80 0D 01 02 00 00 00 00 2A [08:40:06]Write i2c OK [08:40:06]MH_I2C_Read... [08:40:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:06]Read from MH i2c: E2 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 03 00 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 03 00 7C 35 00 90 00 25 [08:40:06]RAPDU: 90 00 [08:40:06]wFMCommunicate OK [08:40:06]wFMCommunicate request_size=255 [08:40:06]MH_SAM_APDU [08:40:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 50 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 2C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6B C6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 60 13 00 00 35 04 06 00 58 [08:40:06]Write to MH i2c: E2 02 01 7D 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 50 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 2C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6B C6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 60 13 00 00 35 04 06 00 58 00 00 4A [08:40:06]Write i2c OK [08:40:06]MH_I2C_Read... [08:40:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:06]Read from MH i2c: E2 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 03 00 [08:40:06]MH_I2C_Read... [08:40:06]Read from MH i2c: E2 03 00 7D 35 00 90 00 26 [08:40:06]RAPDU: 90 00 [08:40:06]wFMCommunicate OK [08:40:06]wFMCommunicate request_size=10 [08:40:06]MH_SAM_APDU [08:40:06]CAPDU: 80 0D 02 02 05 E2 F4 58 A3 28 [08:40:06]Write to MH i2c: E2 0D 00 7E 35 80 0D 02 02 05 00 E2 F4 58 A3 28 00 00 30 [08:40:06]Write i2c OK [08:40:06]MH_I2C_Read... [08:40:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:07]Read from MH i2c: E2 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 03 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 03 00 7E 35 00 90 00 27 [08:40:07]RAPDU: 90 00 [08:40:07]wFMCommunicate OK [08:40:07]wFMCommunicate request_size=4 [08:40:07]MH_SAM_APDU [08:40:07]CAPDU: 80 0D 03 02 [08:40:07]Write to MH i2c: E2 08 00 7F 35 80 0D 03 02 00 00 00 00 2F [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:07]Read from MH i2c: E2 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 0B 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 0B 00 7F 35 00 49 4B 02 02 54 9B CB 77 90 00 F9 [08:40:07]RAPDU: 49 4B 02 02 54 9B CB 77 90 00 [08:40:07]wFMCommunicate OK [08:40:07]SAM_PROTO_SignData done [08:40:07]FM_MakeSignedData done [08:40:07]CreateOFDProtocolMessage [08:40:07]wFMCommunicate request_size=4 [08:40:07]MH_SAM_APDU [08:40:07]CAPDU: 80 11 00 00 [08:40:07]Write to MH i2c: E2 08 00 80 35 80 11 00 00 00 00 00 00 2F [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:07]Read from MH i2c: E2 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 17 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: E2 17 00 80 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 84 [08:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:40:07]wFMCommunicate OK [08:40:07]CreateOFDProtocolMessage done [08:40:07]OFDSenderStorePacket 4960 [08:40:07]StoreOFDPacket docnum=4960 [08:40:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 32 14 07 01 35 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 50 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 2C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6B C6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 60 13 00 00 35 04 06 00 58 E2 F4 58 A3 28 49 4B 02 02 54 9B CB 77 [08:40:07]CheckFolder [08:40:07]dirname=/storage/ofd_packets [08:40:07]CheckFolder done [08:40:07]ProducePacketName [08:40:07]name=ofd_packets/00004960 [08:40:07]NVStorageSaveData ofd_packets/00004960 [08:40:07]File name is /storage/ofd_packets/00004960 [08:40:07]Write 301 bytes [08:40:07]NVStorageSaveData done [08:40:07]OFDSenderStorePacket done [08:40:07]KKMCreateOFDPacket done [08:40:07]NVStorageSaveData kkm_last_timestamp [08:40:07]File name is /storage/kkm_last_timestamp [08:40:07]Write 4 bytes [08:40:07]NVStorageSaveData done [08:40:07]ExternCall_PrintAddStr [08:40:07]wPrintStart [08:40:07]Write to MH i2c: 01 00 00 81 35 B6 [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: 01 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: 01 07 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: 01 07 00 81 35 00 00 00 00 00 FF 0F CB [08:40:07]RasterBufferAndPrint [08:40:07]line Счет N : (1)1992588 [08:40:07]line ИНН: 02508201610067 [08:40:07]line Контрольно-Кассовый Чек [08:40:07]line ПРОДАЖА [08:40:07]line ТРК (МРК, ГНК) : 32 [08:40:07]line Товар: 2710124500 [08:40:07]line Аи-95-К-5 [08:40:07]line 20.500 * 73.20 [08:40:07]line = 1500.60 [08:40:07]line НДС 12% НСП 1% [08:40:07]line > о реализуемом товаре [08:40:07]line ИТОГО: 1500.60 [08:40:07]line НСП 1% : 13.28 [08:40:07]line НДС 12% : 159.36 [08:40:07]line Наличными: 0.00 [08:40:07]line Безнал.: 1500.60 [08:40:07]line Место: АЗС № 135 "Партнер Нефть" [08:40:07]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:40:07]line СНО: Общий режим [08:40:07]line Чек 20 16.05.2024 08:40 [08:40:07]line Смена: 44 ФФД: 1.0 [08:40:07]line ЗНМ: 0300000237 [08:40:07]line РНМ: 0000000000154221 [08:40:07]line Версия ККМ: v1.0 [08:40:07]line Платежная система: O! деньги [08:40:07]line ФМ: 0000000000963259 [08:40:07]line ФД: 4960 [08:40:07]line ФПД: 97731785302824 [08:40:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T084011&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4960&fm=97731785302824&tin=02508201610067®Number=0000000000154221&sum=150060 [08:40:07]OFD Sender: Processing packet 4960 [packets to send 4, broken 3] [08:40:07]ProducePacketName [08:40:07]name=ofd_packets/00004960 [08:40:07]OFD Sender: To server: pG, [08:40:07]CommunicateWithHost lk.salyk.kg:30040 [08:40:07]ConnectInit lk.salyk.kg [08:40:07]written 0, free lines is 4095 [08:40:07]Write to MH i2c: 01 00 00 AB 35 E0 [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: 01 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: 01 07 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: 01 07 00 AB 35 00 00 00 00 00 8B 0C 7E [08:40:07]RasterBufferAndPrint [08:40:07]line [08:40:07]line [08:40:07]line [08:40:07]line [08:40:07]line [08:40:07]written 0, free lines is 3216 [08:40:07]MH_Cut [08:40:07]Write to MH i2c: D1 01 00 B2 35 01 B9 [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: D1 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: D1 01 00 [08:40:07]MH_I2C_Read... [08:40:07]Read from MH i2c: D1 01 00 B2 35 00 B8 [08:40:07]Write to MH i2c: 01 00 00 B3 35 E8 [08:40:07]Write i2c OK [08:40:07]MH_I2C_Read... [08:40:09]Connected sock=11 [08:40:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 32 14 07 01 35 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 50 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 2C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2C 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 6B C6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D *** Cut start [08:40:09]04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 *** Partial cut [08:40:09]10 00 30 *** CUTSNS_PIN = 1 [08:40:09]30 30 30 30 *** CUTSNS_PIN = 0 [08:40:09]30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 60 13 00 00 35 04 06 00 58 E2 F4 58 A3 28 49 4B 02 02 54 9B CB 77 [08:40:09]*** Brake cut motor [08:40:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 2F 17 47 00 E2 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 60 13 00 00 F4 03 04 00 31 72 45 66 B6 04 01 00 00 84 A3 1B E7 DF 22 71 0E [08:40:09]CommunicateWithHost err = 0 [08:40:09]CheckOFDResponse [08:40:09]1017 (14) - 77093643461234 [08:40:09]1041 (16) - 0000000000963259 [08:40:09]1040 (4) - 4960 [08:40:09]1012 (4) - 16.05.2024 02:40 [08:40:09]1206 (1) - 0 [08:40:09]OFD Sender: Remove packet 4960 [08:40:09]ProducePacketName [08:40:09]name=ofd_packets/00004960 [08:40:09]NVStorageDeleteData [08:40:09]Read from MH i2c: 01 [08:40:09]MH_I2C_Read... [08:40:09]*** Stop cut motor [08:40:09]*** Cut end [08:40:09]Read from MH i2c: 01 07 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: 01 07 00 B3 35 00 00 00 00 00 FF 0F FD [08:40:09]process_action close_receipt done [08:40:09]requested_data is exist [08:40:09]produce_requested_data [08:40:09]requested_item fm.sn is exist - process it [08:40:09]wFMCommunicate request_size=4 [08:40:09]MH_SAM_APDU [08:40:09]CAPDU: 80 11 00 00 [08:40:09]Write to MH i2c: E2 08 00 B4 35 80 11 00 00 00 00 00 00 63 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:09]Read from MH i2c: E2 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 17 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 17 00 B4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 B8 [08:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:40:09]wFMCommunicate OK [08:40:09]requested_item fd.num is exist - process it [08:40:09]SAM_PROTO_GetFieldsCounters [08:40:09]wFMCommunicate request_size=4 [08:40:09]MH_SAM_APDU [08:40:09]CAPDU: 80 13 00 00 [08:40:09]Write to MH i2c: E2 08 00 B5 35 80 13 00 00 00 00 00 00 66 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:09]Read from MH i2c: E2 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 62 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 62 00 B5 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 60 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [08:40:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 60 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:09]wFMCommunicate OK [08:40:09]SAM_PROTO_GetFieldsCounters done [08:40:09]requested_item shift.num is exist - process it [08:40:09]requested_item shift.opened is exist - process it [08:40:09]req_shift_opened [08:40:09]FM_GetShiftState [08:40:09]SAM_PROTO_GetShiftState [08:40:09]wFMCommunicate request_size=4 [08:40:09]MH_SAM_APDU [08:40:09]CAPDU: 80 13 01 00 [08:40:09]Write to MH i2c: E2 08 00 B6 35 80 13 01 00 00 00 00 00 68 [08:40:09]Write i2c OK [08:40:09]MH_I2C_Read... [08:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:09]Read from MH i2c: E2 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 0E 00 [08:40:09]MH_I2C_Read... [08:40:09]Read from MH i2c: E2 0E 00 B6 35 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 74 [08:40:09]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:40:09]wFMCommunicate OK [08:40:09]SAM_PROTO_GetShiftState done [08:40:09]FM_GetShiftState done [08:40:09]req_shift_opened done [08:40:09]requested_item shift.open_date is exist - process it [08:40:09]req_shift_open_date [08:40:09]req_shift_open_date done [08:40:09]produce_requested_data done [08:40:09]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4960,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:40:09]process_action_free close_receipt [08:40:09]json_value_free [08:40:09]json_value_free done [08:40:09]process_json_proto returns [08:40:09]Send response to host [08:40:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4960,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:40:09]free response buf [08:40:09]execute_script done [08:40:09]execute_script returns [08:40:09]free content buf [08:40:09]Sock 8.Close socket [08:40:09]OFD Sender: No OFD packet to send [08:40:09]Sock 8.Thread stoped [08:40:14]OFD Sender: No OFD packet to send [08:40:17]accept exits with 9 [08:40:17]New connection [08:40:17]New thread 3067444580 created [08:40:17]Thread 3067587940 joined [08:40:17]Waiting for new connection... [08:40:17] Sock 9.Parse request [08:40:17]Sock 9.Check first char [08:40:17]Sock 9.First char is OK [08:40:17]request: POST /json_proto HTTP/1.0 [08:40:17]Method: POST [08:40:17]URL: /json_proto [08:40:17]Method is POST - this is cgi request [08:40:17]url: /json_proto [08:40:17]query_string will be loaded in cgi processing [08:40:17]execute_cgi json_proto POST (null) [08:40:17]execute_cgi path=json_proto method=POST [08:40:17]POST find Content-Length [08:40:17]Host: 172.17.44.4:8080 [08:40:17]Content-Length: 1164 [08:40:17]Content-Type: application/json [08:40:17] [08:40:17]POST finish read [08:40:17]Found Content-Length = 1164 [08:40:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-135\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0442\u0430\u043A\u043E\u0437\u0443\u0435\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)1992589\u000A16.05.2024 08:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103677\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:17]execute_script... [08:40:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-135\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0442\u0430\u043A\u043E\u0437\u0443\u0435\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)1992589\u000A16.05.2024 08:32\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 63\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30103677\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:17]POST & json_proto [08:40:17]process_json_proto [08:40:17]json parsed OK: [08:40:17]protocol is kg_v1.0 [08:40:17]action value=print_text [08:40:17]process_action print_text [08:40:17]cmd_print_text [08:40:17]ExternCall_PrintAddStr [08:40:17]wPrintStart [08:40:17]Write to MH i2c: 01 00 00 B7 35 EC [08:40:17]Write i2c OK [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: 01 [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: 01 07 00 [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: 01 07 00 B7 35 00 00 00 00 00 FF 0F 01 [08:40:17]RasterBufferAndPrint [08:40:17]line *****ТОВАРНЫЙ ЧЕК***** [08:40:17]line АЗС-135 [08:40:17]line Партнер нефть [08:40:17]line 02508201610067 [08:40:17]line Кассир : Атакозуев М. [08:40:17]line Счет N : (1)1992589 [08:40:17]line 16.05.2024 08:32 [08:40:17]line ПРОДАЖА [08:40:17]line ТРК (МРК, ГНК): 63 [08:40:17]line Вид ГСМ : 2710124130 [08:40:17]line Аи-92-К-4 [08:40:17]line 15.000 x 66.80 [08:40:17]line ИТОГ: 1002.00 [08:40:17]line Тип оплаты: Талоны: ТК ГПНА Online [08:40:17]line 30103677 [08:40:17]line ______________________ [08:40:17]line (подпись) [08:40:17]written 0, free lines is 4095 [08:40:17]Write to MH i2c: 01 00 00 CB 35 00 [08:40:17]Write i2c OK [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: 01 [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: 01 07 00 [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: 01 07 00 CB 35 00 00 00 00 00 13 0E 28 [08:40:17]RasterBufferAndPrint [08:40:17]line [08:40:17]line [08:40:17]line [08:40:17]line [08:40:17]line [08:40:17]written 0, free lines is 3607 [08:40:17]MH_Cut [08:40:17]Write to MH i2c: D1 01 00 D2 35 01 D9 [08:40:17]Write i2c OK [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: D1 [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: D1 01 00 [08:40:17]MH_I2C_Read... [08:40:17]Read from MH i2c: D1 01 00 D2 35 00 D8 [08:40:17]Write to MH i2c: 01 00 00 D3 35 08 [08:40:17]Write i2c OK [08:40:17]MH_I2C_Read... [08:40:18]*** Cut start [08:40:18]*** Partial cut [08:40:18]*** CUTSNS_PIN = 1 [08:40:18]*** CUTSNS_PIN = 0 [08:40:18]*** Brake cut motor [08:40:19]Read from MH i2c: 01 [08:40:19]MH_I2C_Read... [08:40:19]*** Stop cut motor [08:40:19]*** Cut end [08:40:19]Read from MH i2c: 01 07 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: 01 07 00 D3 35 00 00 00 00 00 FF 0F 1D [08:40:19]process_action print_text done [08:40:19]requested_data is exist [08:40:19]produce_requested_data [08:40:19]requested_item fm.sn is exist - process it [08:40:19]wFMCommunicate request_size=4 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 11 00 00 [08:40:19]Write to MH i2c: E2 08 00 D4 35 80 11 00 00 00 00 00 00 83 [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 17 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 17 00 D4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D8 [08:40:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:40:19]wFMCommunicate OK [08:40:19]requested_item fd.num is exist - process it [08:40:19]SAM_PROTO_GetFieldsCounters [08:40:19]wFMCommunicate request_size=4 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 13 00 00 [08:40:19]Write to MH i2c: E2 08 00 D5 35 80 13 00 00 00 00 00 00 86 [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 62 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 62 00 D5 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 60 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [08:40:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 60 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:19]wFMCommunicate OK [08:40:19]SAM_PROTO_GetFieldsCounters done [08:40:19]requested_item shift.num is exist - process it [08:40:19]requested_item shift.opened is exist - process it [08:40:19]req_shift_opened [08:40:19]FM_GetShiftState [08:40:19]SAM_PROTO_GetShiftState [08:40:19]wFMCommunicate request_size=4 [08:40:19]MH_SAM_APDU [08:40:19]CAPDU: 80 13 01 00 [08:40:19]Write to MH i2c: E2 08 00 D6 35 80 13 01 00 00 00 00 00 88 [08:40:19]Write i2c OK [08:40:19]MH_I2C_Read... [08:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:19]Read from MH i2c: E2 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 0E 00 [08:40:19]MH_I2C_Read... [08:40:19]Read from MH i2c: E2 0E 00 D6 35 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 94 [08:40:19]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:40:19]wFMCommunicate OK [08:40:19]SAM_PROTO_GetShiftState done [08:40:19]FM_GetShiftState done [08:40:19]req_shift_opened done [08:40:19]requested_item shift.open_date is exist - process it [08:40:19]req_shift_open_date [08:40:19]req_shift_open_date done [08:40:19]produce_requested_data done [08:40:19]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4960,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:40:19]process_action_free print_text [08:40:19]json_value_free [08:40:19]json_value_free done [08:40:19]process_json_proto returns [08:40:19]Send response to host [08:40:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4960,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:40:19]free response buf [08:40:19]execute_script done [08:40:19]execute_script returns [08:40:19]free content buf [08:40:19]Sock 9.Close socket [08:40:19]Sock 9.Thread stoped [08:40:19]OFD Sender: No OFD packet to send [08:40:24]OFD Sender: No OFD packet to send [08:40:29]OFD Sender: No OFD packet to send [08:40:34]OFD Sender: No OFD packet to send [08:40: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:43:58]accept exits with 8 [08:43:58]New connection [08:43:58]New thread 3067587940 created [08:43:58]Thread 3067444580 joined [08:43:58]Waiting for new connection... [08:43:58] Sock 8.Parse request [08:43:58]Sock 8.Check first char [08:43:58]Sock 8.First char is OK [08:43:58]request: POST /json_proto HTTP/1.0 [08:43:58]Method: POST [08:43:58]URL: /json_proto [08:43:58]Method is POST - this is cgi request [08:43:58]url: /json_proto [08:43:58]query_string will be loaded in cgi processing [08:43:58]execute_cgi json_proto POST (null) [08:43:58]execute_cgi path=json_proto method=POST [08:43:58]POST find Content-Length [08:43:58]Host: 172.17.44.4:8080 [08:43:58]Content-Length: 646 [08:43:58]Content-Type: application/json [08:43:58] [08:43:58]POST finish read [08:43:58]Found Content-Length = 646 [08:43:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140971", "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" ] } } [08:43:58]execute_script... [08:43: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)140971", "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" ] } } [08:43:58]POST & json_proto [08:43:58]process_json_proto [08:43:58]json parsed OK: [08:43:58]protocol is kg_v1.0 [08:43:58]action value=close_receipt [08:43:58]process_action close_receipt [08:43:58]cmd_close_receipt [08:43:58]MH_GetDate [08:43:58]Write to MH i2c: F0 00 00 D7 35 FB [08:43:58]Write i2c OK [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: F0 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: F0 09 00 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: F0 09 00 D7 35 00 54 C7 45 66 6C E9 28 66 AD [08:43:58]GetLastDocTimeStamp 1715848811 [08:43:58]current date 1715849044 [08:43:58]FM_GetShiftState [08:43:58]SAM_PROTO_GetShiftState [08:43:58]wFMCommunicate request_size=4 [08:43:58]MH_SAM_APDU [08:43:58]CAPDU: 80 13 01 00 [08:43:58]Write to MH i2c: E2 08 00 D8 35 80 13 01 00 00 00 00 00 8A [08:43:58]Write i2c OK [08:43:58]MH_I2C_Read... [08:43:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:43:58]Read from MH i2c: E2 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: E2 0E 00 [08:43:58]MH_I2C_Read... [08:43:58]Read from MH i2c: E2 0E 00 D8 35 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 96 [08:43:58]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:43:58]wFMCommunicate OK [08:43:58]SAM_PROTO_GetShiftState done [08:43:58]FM_GetShiftState done [08:43:58]opened in 1715818246 [08:43:58]opened+sec_in_day 1715904646 [08:43:58]quantity*price = 13000 [08:43:58]sum+1 = 13001 [08:43:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 21 16.05.2024 08:44 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4961 ФПД: 202915255359363 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T084404&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4961&fm=202915255359363&tin=02508201610067®Number=0000000000154221&sum=13000 0 [08:43:59]StoreToDocumentArchive [08:43:59]shift 44 fd 4961 [08:43:59]save to /storage/0044/doc_00004961 [08:43:59]save last doc name /storage/0044/doc_00004961 to /storage/kkm_last_doc_name [08:43:59]save OK [08:43:59]Clear old archive folders... [08:43:59]ProcessDocumentItem done err = 0, tmpTLVsize=282 [08:43:59]tlvbuf is 00CD6A20 [08:43:59]SAM_PROTO_ClearQueue [08:43:59]wFMCommunicate request_size=4 [08:43:59]MH_SAM_APDU [08:43:59]CAPDU: 80 09 00 00 [08:43:59]Write to MH i2c: E2 08 00 E5 35 80 09 00 00 00 00 00 00 8C [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:43:59]Read from MH i2c: E2 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 E5 35 00 90 00 8E [08:43:59]RAPDU: 90 00 [08:43:59]wFMCommunicate OK [08:43:59]SAM_PROTO_ClearQueue done [08:43:59]KKMCreateOFDPacket [08:43:59]OFDProtocolAddRootSTLVToBuf [08:43:59]FM_MakeSignedData [08:43:59]FM_MakeSignedData [08:43:59]SAM_PROTO_SignData [08:43:59]wFMCommunicate request_size=4 [08:43:59]MH_SAM_APDU [08:43:59]CAPDU: 80 0D 01 02 [08:43:59]Write to MH i2c: E2 08 00 E6 35 80 0D 01 02 00 00 00 00 94 [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:43:59]Read from MH i2c: E2 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 E6 35 00 90 00 8F [08:43:59]RAPDU: 90 00 [08:43:59]wFMCommunicate OK [08:43:59]wFMCommunicate request_size=255 [08:43:59]MH_SAM_APDU [08:43:59]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 15 00 00 00 F4 03 04 00 54 C7 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 [08:43:59]Write to MH i2c: E2 02 01 E7 35 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 15 00 00 00 F4 03 04 00 54 C7 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 00 00 A0 [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:59]Read from MH i2c: E2 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 E7 35 00 90 00 90 [08:43:59]RAPDU: 90 00 [08:43:59]wFMCommunicate OK [08:43:59]wFMCommunicate request_size=41 [08:43:59]MH_SAM_APDU [08:43:59]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 61 13 00 00 35 04 06 00 B8 8C E3 B7 17 83 [08:43:59]Write to MH i2c: E2 2C 00 E8 35 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 61 13 00 00 35 04 06 00 B8 8C E3 B7 17 83 00 00 54 [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:43:59]Read from MH i2c: E2 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 03 00 E8 35 00 90 00 91 [08:43:59]RAPDU: 90 00 [08:43:59]wFMCommunicate OK [08:43:59]wFMCommunicate request_size=4 [08:43:59]MH_SAM_APDU [08:43:59]CAPDU: 80 0D 03 02 [08:43:59]Write to MH i2c: E2 08 00 E9 35 80 0D 03 02 00 00 00 00 99 [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:43:59]Read from MH i2c: E2 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 0B 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 0B 00 E9 35 00 01 2F 06 A7 7E 83 DD 1E 90 00 73 [08:43:59]RAPDU: 01 2F 06 A7 7E 83 DD 1E 90 00 [08:43:59]wFMCommunicate OK [08:43:59]SAM_PROTO_SignData done [08:43:59]FM_MakeSignedData done [08:43:59]CreateOFDProtocolMessage [08:43:59]wFMCommunicate request_size=4 [08:43:59]MH_SAM_APDU [08:43:59]CAPDU: 80 11 00 00 [08:43:59]Write to MH i2c: E2 08 00 EA 35 80 11 00 00 00 00 00 00 99 [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:43:59]Read from MH i2c: E2 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 17 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: E2 17 00 EA 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 EE [08:43:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:43:59]wFMCommunicate OK [08:43:59]CreateOFDProtocolMessage done [08:43:59]OFDSenderStorePacket 4961 [08:43:59]StoreOFDPacket docnum=4961 [08:43:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 E2 4A 26 01 DA 8A 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 15 00 00 00 F4 03 04 00 54 C7 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 61 13 00 00 35 04 06 00 B8 8C E3 B7 17 83 01 2F 06 A7 7E 83 DD 1E [08:43:59]CheckFolder [08:43:59]dirname=/storage/ofd_packets [08:43:59]CheckFolder done [08:43:59]ProducePacketName [08:43:59]name=ofd_packets/00004961 [08:43:59]NVStorageSaveData ofd_packets/00004961 [08:43:59]File name is /storage/ofd_packets/00004961 [08:43:59]Write 332 bytes [08:43:59]NVStorageSaveData done [08:43:59]OFDSenderStorePacket done [08:43:59]KKMCreateOFDPacket done [08:43:59]NVStorageSaveData kkm_last_timestamp [08:43:59]File name is /storage/kkm_last_timestamp [08:43:59]OFD Sender: Processing packet 4961 [packets to send 4, broken 3] [08:43:59]ProducePacketName [08:43:59]name=ofd_packets/00004961 [08:43:59]OFD Sender: To server: pG, [08:43:59]CommunicateWithHost lk.salyk.kg:30040 [08:43:59]ConnectInit lk.salyk.kg [08:43:59]Write 4 bytes [08:43:59]NVStorageSaveData done [08:43:59]ExternCall_PrintAddStr [08:43:59]wPrintStart [08:43:59]Write to MH i2c: 01 00 00 EB 35 20 [08:43:59]Write i2c OK [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: 01 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: 01 07 00 [08:43:59]MH_I2C_Read... [08:43:59]Read from MH i2c: 01 07 00 EB 35 00 00 00 00 00 FF 0F 35 [08:43:59]RasterBufferAndPrint [08:43:59]line Счет N : (3)140971 [08:43:59]line ИНН: 02508201610067 [08:43:59]line Контрольно-Кассовый Чек [08:43:59]line ПРОДАЖА [08:43:59]line Товар: 2000036220012 [08:43:59]line Кофе Капучино XL(GABB TRADE) [08:43:59]line 1.000 * 130.00 [08:43:59]line = 130.00 [08:43:59]line НДС 12% НСП 1% [08:43:59]line > о реализуемом товаре [08:43:59]line ИТОГО: 130.00 [08:43:59]line НСП 1% : 1.15 [08:43:59]line НДС 12% : 13.80 [08:43:59]line Наличными: 130.00 [08:43:59]line Безнал.: 0.00 [08:43:59]line Место: АЗС № 135 "Партнер Нефть" [08:43:59]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:43:59]line СНО: Общий режим [08:43:59]line Чек 21 16.05.2024 08:44 [08:44:00]line Смена: 44 ФФД: 1.0 [08:44:00]line ЗНМ: 0300000237 [08:44:00]line РНМ: 0000000000154221 [08:44:00]line Версия ККМ: v1.0 [08:44:00]line ФМ: 0000000000963259 [08:44:00]line ФД: 4961 [08:44:00]line ФПД: 202915255359363 [08:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T084404&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4961&fm=202915255359363&tin=02508201610067®Number=0000000000154221&sum=13000 [08:44:00]line 0 [08:44:00]written 0, free lines is 4095 [08:44:00]Write to MH i2c: 01 00 00 14 36 4A [08:44:00]Write i2c OK [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: 01 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: 01 07 00 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: 01 07 00 14 36 00 00 00 00 00 7F 0C DC [08:44:00]RasterBufferAndPrint [08:44:00]line [08:44:00]line [08:44:00]line [08:44:00]line [08:44:00]line [08:44:00]written 0, free lines is 3205 [08:44:00]MH_Cut [08:44:00]Write to MH i2c: D1 01 00 1B 36 01 23 [08:44:00]Write i2c OK [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: D1 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: D1 01 00 [08:44:00]MH_I2C_Read... [08:44:00]Read from MH i2c: D1 01 00 1B 36 00 22 [08:44:00]Write to MH i2c: 01 00 00 1C 36 52 [08:44:00]Write i2c OK [08:44:00]MH_I2C_Read... [08:44:01]Connected sock=12 [08:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 E2 4A 26 01 DA 8A 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 15 00 00 00 F4 03 04 00 54 C7 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 61 13 00 00 35 04 06 00 B8 8C E3 B7 17 83 01 2F 06 A7 7E 83 DD 1E [08:44:01]*** Cut start [08:44:01]*** Partial cut [08:44:01]*** CUTSNS_PIN = 1 [08:44:01]*** CUTSNS_PIN = 0 [08:44:01]*** Brake cut motor [08:44:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 84 E6 47 00 57 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 61 13 00 00 F4 03 04 00 19 73 45 66 B6 04 01 00 00 5E DA 27 7B 5F 15 CB C4 [08:44:02]CommunicateWithHost err = 0 [08:44:02]CheckOFDResponse [08:44:02]1017 (14) - 77093643461234 [08:44:02]1041 (16) - 0000000000963259 [08:44:02]1040 (4) - 4961 [08:44:02]1012 (4) - 16.05.2024 02:44 [08:44:02]1206 (1) - 0 [08:44:02]OFD Sender: Remove packet 4961 [08:44:02]ProducePacketName [08:44:02]name=ofd_packets/00004961 [08:44:02]NVStorageDeleteData [08:44:02]Read from MH i2c: 01 [08:44:02]MH_I2C_Read... [08:44:02]*** Stop cut motor [08:44:02]*** Cut end [08:44:02]Read from MH i2c: 01 07 00 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: 01 07 00 1C 36 00 00 00 00 00 FF 0F 67 [08:44:02]process_action close_receipt done [08:44:02]requested_data is exist [08:44:02]produce_requested_data [08:44:02]requested_item fm.sn is exist - process it [08:44:02]wFMCommunicate request_size=4 [08:44:02]MH_SAM_APDU [08:44:02]CAPDU: 80 11 00 00 [08:44:02]Write to MH i2c: E2 08 00 1D 36 80 11 00 00 00 00 00 00 CD [08:44:02]Write i2c OK [08:44:02]MH_I2C_Read... [08:44:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:02]Read from MH i2c: E2 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 17 00 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 17 00 1D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 22 [08:44:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:44:02]wFMCommunicate OK [08:44:02]requested_item fd.num is exist - process it [08:44:02]SAM_PROTO_GetFieldsCounters [08:44:02]wFMCommunicate request_size=4 [08:44:02]MH_SAM_APDU [08:44:02]CAPDU: 80 13 00 00 [08:44:02]Write to MH i2c: E2 08 00 1E 36 80 13 00 00 00 00 00 00 D0 [08:44:02]Write i2c OK [08:44:02]MH_I2C_Read... [08:44:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:02]Read from MH i2c: E2 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 62 00 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 62 00 1E 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 61 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [08:44:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 61 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:02]wFMCommunicate OK [08:44:02]SAM_PROTO_GetFieldsCounters done [08:44:02]requested_item shift.num is exist - process it [08:44:02]requested_item shift.opened is exist - process it [08:44:02]req_shift_opened [08:44:02]FM_GetShiftState [08:44:02]SAM_PROTO_GetShiftState [08:44:02]wFMCommunicate request_size=4 [08:44:02]MH_SAM_APDU [08:44:02]CAPDU: 80 13 01 00 [08:44:02]Write to MH i2c: E2 08 00 1F 36 80 13 01 00 00 00 00 00 D2 [08:44:02]Write i2c OK [08:44:02]MH_I2C_Read... [08:44:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:02]Read from MH i2c: E2 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 0E 00 [08:44:02]MH_I2C_Read... [08:44:02]Read from MH i2c: E2 0E 00 1F 36 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 DE [08:44:02]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:44:02]wFMCommunicate OK [08:44:02]SAM_PROTO_GetShiftState done [08:44:02]FM_GetShiftState done [08:44:02]req_shift_opened done [08:44:02]requested_item shift.open_date is exist - process it [08:44:02]req_shift_open_date [08:44:02]req_shift_open_date done [08:44:02]produce_requested_data done [08:44:02]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4961,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:44:02]process_action_free close_receipt [08:44:02]json_value_free [08:44:02]json_value_free done [08:44:02]process_json_proto returns [08:44:02]Send response to host [08:44:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4961,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:44:02]free response buf [08:44:02]execute_script done [08:44:02]execute_script returns [08:44:02]free content buf [08:44:02]Sock 8.Close socket [08:44:02]Sock 8.Thread stoped [08:44:02]OFD Sender: No OFD packet to send [08:44:07]OFD Sender: No OFD packet to send [08:44:12]OFD Sender: No OFD packet to send [08:44:17]OFD Sender: No OFD packet to send [08:44:22]OFD Sender: No OFD packet to send [08:44:27]OFD Sender: No OFD packet to send [08:44:32]OFD Sender: No OFD packet to send [08:44:37]OFD Sender: No OFD packet to send [08:44:42]OFD Sender: No OFD packet to send [08:44:47]OFD Sender: No OFD packet to send [08:44:52]OFD Sender: No OFD packet to send [08:44:57]OFD Sender: No OFD packet to send [08:45:02]OFD Sender: No OFD packet to send [08:45:07]OFD Sender: No OFD packet to send [08:45:12]OFD Sender: No OFD packet to send [08:45:17]OFD Sender: No OFD packet to send [08:45:22]OFD Sender: No OFD packet to send [08:45:27]OFD Sender: No OFD packet to send [08:45:32]OFD Sender: No OFD packet to send [08:45:37]OFD Sender: No OFD packet to send [08:45:42]OFD Sender: No OFD packet to send [08:45:47]OFD Sender: No OFD packet to send [08:45:52]OFD Sender: No OFD packet to send [08:45:57]OFD Sender: No OFD packet to send [08:46:02]OFD Sender: No OFD packet to send [08:46:07]OFD Sender: No OFD packet to send [08:46:12]OFD Sender: No OFD packet to send [08:46:17]OFD Sender: No OFD packet to send [08:46:22]OFD Sender: No OFD packet to send [08:46:27]OFD Sender: No OFD packet to send [08:46:32]OFD Sender: No OFD packet to send [08:46:37]OFD Sender: No OFD packet to send [08:46:42]OFD Sender: No OFD packet to send [08:46:47]OFD Sender: No OFD packet to send [08:46:52]OFD Sender: No OFD packet to send [08:46:57]OFD Sender: No OFD packet to send [08:47:02]OFD Sender: No OFD packet to send [08:47:07]OFD Sender: No OFD packet to send [08:47:12]OFD Sender: No OFD packet to send [08:47:17]OFD Sender: No OFD packet to send [08:47:22]OFD Sender: No OFD packet to send [08:47:27]OFD Sender: No OFD packet to send [08:47:32]OFD Sender: No OFD packet to send [08:47:37]OFD Sender: No OFD packet to send [08:47:42]OFD Sender: No OFD packet to send [08:47:47]OFD Sender: No OFD packet to send [08:47:52]OFD Sender: No OFD packet to send [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:17]OFD Sender: No OFD packet to send [08:48:22]OFD Sender: No OFD packet to send [08:48:27]OFD Sender: No OFD packet to send [08:48:32]OFD Sender: No OFD packet to send [08:48:37]OFD Sender: No OFD packet to send [08:48:42]OFD Sender: No OFD packet to send [08:48:47]OFD Sender: No OFD packet to send [08:48:52]OFD Sender: No OFD packet to send [08:48:57]OFD Sender: No OFD packet to send [08:49:02]OFD Sender: No OFD packet to send [08:49:07]OFD Sender: No OFD packet to send [08:49:12]OFD Sender: No OFD packet to send [08:49:17]OFD Sender: No OFD packet to send [08:49:22]OFD Sender: No OFD packet to send [08:49:27]OFD Sender: No OFD packet to send [08:49:32]OFD Sender: No OFD packet to send [08:49:37]OFD Sender: No OFD packet to send [08:49:42]OFD Sender: No OFD packet to send [08:49:47]OFD Sender: No OFD packet to send [08:49:52]OFD Sender: No OFD packet to send [08:49:57]OFD Sender: No OFD packet to send [08:50:02]OFD Sender: No OFD packet to send [08:50:07]OFD Sender: No OFD packet to send [08:50:12]OFD Sender: No OFD packet to send [08:50:17]OFD Sender: No OFD packet to send [08:50:22]OFD Sender: No OFD packet to send [08:50:27]OFD Sender: No OFD packet to send [08:50:32]OFD Sender: No OFD packet to send [08:50:37]OFD Sender: No OFD packet to send [08:50:42]OFD Sender: No OFD packet to send [08:50:47]OFD Sender: No OFD packet to send [08:50:52]OFD Sender: No OFD packet to send [08:50:57]OFD Sender: No OFD packet to send [08:50:59]accept exits with 10 [08:50:59]New connection [08:50:59]New thread 3067444580 created [08:50:59]Thread 3067587940 joined [08:50:59]Waiting for new connection... [08:50:59] Sock 10.Parse request [08:50:59]Sock 10.Check first char [08:50:59]Sock 10.First char is OK [08:50:59]request: POST /json_proto HTTP/1.0 [08:50:59]Method: POST [08:50:59]URL: /json_proto [08:50:59]Method is POST - this is cgi request [08:50:59]url: /json_proto [08:50:59]query_string will be loaded in cgi processing [08:50:59]execute_cgi json_proto POST (null) [08:50:59]execute_cgi path=json_proto method=POST [08:50:59]POST find Content-Length [08:50:59]Host: 172.17.44.4:8080 [08:50:59]Content-Length: 930 [08:50:59]Content-Type: application/json [08:50:59] [08:50:59]POST finish read [08:50:59]Found Content-Length = 930 [08:50:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140972", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017450726", "name": "\u041A\u0430\u0440. \u0421\u0442\u0440\u0430\u0439\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 11.3\u0433/50\u0448\u0442", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:59]execute_script... [08:50: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)140972", "tax_sys" : 0, "items" : [ { "code": "48745291", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament SOHO NYC COMPACT BLU", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017450726", "name": "\u041A\u0430\u0440. \u0421\u0442\u0440\u0430\u0439\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 11.3\u0433/50\u0448\u0442", "price" : 10.00, "quantity" : 2.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:59]POST & json_proto [08:50:59]process_json_proto [08:50:59]json parsed OK: [08:50:59]protocol is kg_v1.0 [08:50:59]action value=close_receipt [08:50:59]process_action close_receipt [08:50:59]cmd_close_receipt [08:50:59]MH_GetDate [08:50:59]Write to MH i2c: F0 00 00 20 36 45 [08:50:59]Write i2c OK [08:50:59]MH_I2C_Read... [08:50:59]Read from MH i2c: F0 [08:50:59]MH_I2C_Read... [08:50:59]Read from MH i2c: F0 09 00 [08:50:59]MH_I2C_Read... [08:50:59]Read from MH i2c: F0 09 00 20 36 00 F9 C8 45 66 6C E9 28 66 9D [08:50:59]GetLastDocTimeStamp 1715849044 [08:50:59]current date 1715849465 [08:50:59]FM_GetShiftState [08:50:59]SAM_PROTO_GetShiftState [08:50:59]wFMCommunicate request_size=4 [08:50:59]MH_SAM_APDU [08:50:59]CAPDU: 80 13 01 00 [08:50:59]Write to MH i2c: E2 08 00 21 36 80 13 01 00 00 00 00 00 D4 [08:50:59]Write i2c OK [08:50:59]MH_I2C_Read... [08:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:59]Read from MH i2c: E2 [08:50:59]MH_I2C_Read... [08:50:59]Read from MH i2c: E2 0E 00 [08:50:59]MH_I2C_Read... [08:50:59]Read from MH i2c: E2 0E 00 21 36 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E0 [08:50:59]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:50:59]wFMCommunicate OK [08:50:59]SAM_PROTO_GetShiftState done [08:50:59]FM_GetShiftState done [08:50:59]opened in 1715818246 [08:50:59]opened+sec_in_day 1715904646 [08:50:59]quantity*price = 13000 [08:50:59]sum+1 = 13001 [08:50:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620017450726 Кар. Страйк ассорти 11.3г/50шт 2.000 * 10.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.92 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 22 16.05.2024 08:51 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4962 ФПД: 16297602630521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085105&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4962&fm=16297602630521&tin=02508201610067®Number=0000000000154221&sum=15000 0 [08:51:00]StoreToDocumentArchive [08:51:00]shift 44 fd 4962 [08:51:00]save to /storage/0044/doc_00004962 [08:51:00]save last doc name /storage/0044/doc_00004962 to /storage/kkm_last_doc_name [08:51:00]save OK [08:51:00]Clear old archive folders... [08:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=406 [08:51:00]tlvbuf is 00CD6750 [08:51:00]SAM_PROTO_ClearQueue [08:51:00]wFMCommunicate request_size=4 [08:51:00]MH_SAM_APDU [08:51:00]CAPDU: 80 09 00 00 [08:51:00]Write to MH i2c: E2 08 00 2E 36 80 09 00 00 00 00 00 00 D6 [08:51:00]Write i2c OK [08:51:00]MH_I2C_Read... [08:51:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:51:00]Read from MH i2c: E2 [08:51:00]MH_I2C_Read... [08:51:00]Read from MH i2c: E2 03 00 [08:51:00]MH_I2C_Read... [08:51:00]Read from MH i2c: E2 03 00 2E 36 00 90 00 D8 [08:51:00]RAPDU: 90 00 [08:51:00]wFMCommunicate OK [08:51:00]SAM_PROTO_ClearQueue done [08:51:00]KKMCreateOFDPacket [08:51:00]OFDProtocolAddRootSTLVToBuf [08:51:00]FM_MakeSignedData [08:51:00]FM_MakeSignedData [08:51:00]SAM_PROTO_SignData [08:51:00]wFMCommunicate request_size=4 [08:51:00]MH_SAM_APDU [08:51:00]CAPDU: 80 0D 01 02 [08:51:00]Write to MH i2c: E2 08 00 2F 36 80 0D 01 02 00 00 00 00 DE [08:51:00]Write i2c OK [08:51:00]MH_I2C_Read... [08:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:51:00]Read from MH i2c: E2 [08:51:00]MH_I2C_Read... [08:51:00]Read from MH i2c: E2 03 00 [08:51:00]MH_I2C_Read... [08:51:00]Read from MH i2c: E2 03 00 2F 36 00 90 00 D9 [08:51:00]RAPDU: 90 00 [08:51:00]wFMCommunicate OK [08:51:00]wFMCommunicate request_size=255 [08:51:00]MH_SAM_APDU [08:51:00]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 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 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 [08:51:00]Write to MH i2c: E2 02 01 30 36 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 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 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 00 00 12 [08:51:00]Write i2c OK [08:51:00]MH_I2C_Read... [08:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:00]Read from MH i2c: E2 [08:51:00]MH_I2C_Read... [08:51:00]Read from MH i2c: E2 03 00 [08:51:00]MH_I2C_Read... [08:51:00]Read from MH i2c: E2 03 00 30 36 00 90 00 DA [08:51:00]RAPDU: 90 00 [08:51:00]wFMCommunicate OK [08:51:00]wFMCommunicate request_size=165 [08:51:00]MH_SAM_APDU [08:51:00]CAPDU: 80 0D 02 02 A0 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F9 C8 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 62 13 00 00 35 04 06 00 0E D2 94 D0 C3 79 [08:51:00]Write to MH i2c: E2 A8 00 31 36 80 0D 02 02 A0 00 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F9 C8 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 62 13 00 00 35 04 06 00 0E D2 94 D0 C3 79 00 00 C8 [08:51:00]Write i2c OK [08:51:00]MH_I2C_Read... [08:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:51:00]Read from MH i2c: E2 [08:51:00]MH_I2C_Read... [08:51:00]Read from MH i2c: E2 03 00 [08:51:00]MH_I2C_Read... [08:51:00]Read from MH i2c: E2 03 00 31 36 00 90 00 DB [08:51:00]RAPDU: 90 00 [08:51:00]wFMCommunicate OK [08:51:00]wFMCommunicate request_size=4 [08:51:00]MH_SAM_APDU [08:51:00]CAPDU: 80 0D 03 02 [08:51:00]Write to MH i2c: E2 08 00 32 36 80 0D 03 02 00 00 00 00 E3 [08:51:00]Write i2c OK [08:51:00]MH_I2C_Read... [08:51:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:51:00]Read from MH i2c: E2 [08:51:00]MH_I2C_Read... [08:51:00]Read from MH i2c: E2 0B 00 [08:51:00]MH_I2C_Read... [08:51:00]Read from MH i2c: E2 0B 00 32 36 00 57 56 C5 96 BB B0 19 A9 90 00 19 [08:51:00]RAPDU: 57 56 C5 96 BB B0 19 A9 90 00 [08:51:00]wFMCommunicate OK [08:51:00]SAM_PROTO_SignData done [08:51:00]FM_MakeSignedData done [08:51:00]CreateOFDProtocolMessage [08:51:00]wFMCommunicate request_size=4 [08:51:00]MH_SAM_APDU [08:51:00]CAPDU: 80 11 00 00 [08:51:00]Write to MH i2c: E2 08 00 33 36 80 11 00 00 00 00 00 00 E3 [08:51:00]Write i2c OK [08:51:00]MH_I2C_Read... [08:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:01]Read from MH i2c: E2 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: E2 17 00 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: E2 17 00 33 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 38 [08:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:51:01]wFMCommunicate OK [08:51:01]CreateOFDProtocolMessage done [08:51:01]OFDSenderStorePacket 4962 [08:51:01]StoreOFDPacket docnum=4962 [08:51:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 AA 01 00 00 C8 21 A2 01 CC 7F 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 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 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F9 C8 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 62 13 00 00 35 04 06 00 0E D2 94 D0 C3 79 57 56 C5 96 BB B0 19 A9 [08:51:01]CheckFolder [08:51:01]dirname=/storage/ofd_packets [08:51:01]CheckFolder done [08:51:01]ProducePacketName [08:51:01]name=ofd_packets/00004962 [08:51:01]NVStorageSaveData ofd_packets/00004962 [08:51:01]File name is /storage/ofd_packets/00004962 [08:51:01]Write 456 bytes [08:51:01]NVStorageSaveData done [08:51:01]OFDSenderStorePacket done [08:51:01]KKMCreateOFDPacket done [08:51:01]NVStorageSaveData kkm_last_timestamp [08:51:01]File name is /storage/kkm_last_timestamp [08:51:01]Write 4 bytes [08:51:01]NVStorageSaveData done [08:51:01]ExternCall_PrintAddStr [08:51:01]wPrintStart [08:51:01]Write to MH i2c: 01 00 00 34 36 6A [08:51:01]Write i2c OK [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: 01 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: 01 07 00 [08:51:01]MH_I2C_Read... [08:51:01]OFD Sender: Processing packet 4962 [packets to send 4, broken 3] [08:51:01]ProducePacketName [08:51:01]name=ofd_packets/00004962 [08:51:01]OFD Sender: To server: pG, [08:51:01]CommunicateWithHost lk.salyk.kg:30040 [08:51:01]ConnectInit lk.salyk.kg [08:51:01]Read from MH i2c: 01 07 00 34 36 00 00 00 00 00 FF 0F 7F [08:51:01]RasterBufferAndPrint [08:51:01]line Счет N : (3)140972 [08:51:01]line ИНН: 02508201610067 [08:51:01]line Контрольно-Кассовый Чек [08:51:01]line ПРОДАЖА [08:51:01]line Товар: 48745291 [08:51:01]line Сигареты Parliament SOHO NYC COMPACT BLU [08:51:01]line 1.000 * 130.00 [08:51:01]line = 130.00 [08:51:01]line НДС 12% НСП 1% [08:51:01]line > о реализуемом товаре [08:51:01]line Товар: 4620017450726 [08:51:01]line Кар. Страйк ассорти 11.3г/50шт [08:51:01]line 2.000 * 10.00 [08:51:01]line = 20.00 [08:51:01]line НДС 12% НСП 1% [08:51:01]line > о реализуемом товаре [08:51:01]line ИТОГО: 150.00 [08:51:01]line НСП 1% : 1.33 [08:51:01]line НДС 12% : 15.92 [08:51:01]line Наличными: 150.00 [08:51:01]line Безнал.: 0.00 [08:51:01]line Место: АЗС № 135 "Партнер Нефть" [08:51:01]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:51:01]line СНО: Общий режим [08:51:01]line Чек 22 16.05.2024 08:51 [08:51:01]line Смена: 44 ФФД: 1.0 [08:51:01]line ЗНМ: 0300000237 [08:51:01]line РНМ: 0000000000154221 [08:51:01]line Версия ККМ: v1.0 [08:51:01]line ФМ: 0000000000963259 [08:51:01]line ФД: 4962 [08:51:01]line ФПД: 16297602630521 [08:51:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085105&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4962&fm=16297602630521&tin=02508201610067®Number=0000000000154221&sum=15000 [08:51:01]line 0 [08:51:01]written 0, free lines is 4095 [08:51:01]Connected sock=9 [08:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 AA 01 00 00 C8 21 A2 01 CC 7F 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 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 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 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 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 38 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 F9 C8 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 62 13 00 00 35 04 06 00 0E D2 94 D0 C3 79 57 56 C5 96 BB B0 19 A9 [08:51:01]Write to MH i2c: 01 00 00 64 36 9A [08:51:01]Write i2c OK [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: 01 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: 01 07 00 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: 01 07 00 64 36 00 00 00 00 00 F1 0B 9D [08:51:01]RasterBufferAndPrint [08:51:01]line [08:51:01]line [08:51:01]line [08:51:01]line [08:51:01]line [08:51:01]written 0, free lines is 3061 [08:51:01]MH_Cut [08:51:01]Write to MH i2c: D1 01 00 6B 36 01 73 [08:51:01]Write i2c OK [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: D1 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: D1 01 00 [08:51:01]MH_I2C_Read... [08:51:01]Read from MH i2c: D1 01 00 6B 36 00 72 [08:51:01]Write to MH i2c: 01 00 00 6C 36 A2 [08:51:01]Write i2c OK [08:51:01]MH_I2C_Read... [08:51:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 76 99 47 00 E0 99 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 62 13 00 00 F4 03 04 00 BE 74 45 66 B6 04 01 00 00 4C 16 91 CA 5C 53 CA F9 [08:51:02]CommunicateWithHost err = 0 [08:51:02]CheckOFDResponse [08:51:02]1017 (14) - 77093643461234 [08:51:02]1041 (16) - 0000000000963259 [08:51:02]1040 (4) - 4962 [08:51:02]1012 (4) - 16.05.2024 02:51 [08:51:02]1206 (1) - 0 [08:51:02]OFD Sender: Remove packet 4962 [08:51:02]ProducePacketName [08:51:02]name=ofd_packets/00004962 [08:51:02]NVStorageDeleteData [08:51:02]OFD Sender: No OFD packet to send [08:51:03]*** Cut start [08:51:03]*** Partial cut [08:51:03]*** CUTSNS_PIN = 1 [08:51:03]*** CUTSNS_PIN = 0 [08:51:03]*** Brake cut motor [08:51:03]Read from MH i2c: 01 [08:51:03]MH_I2C_Read... [08:51:03]*** Stop cut motor [08:51:03]*** Cut end [08:51:03]Read from MH i2c: 01 07 00 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: 01 07 00 6C 36 00 00 00 00 00 FF 0F B7 [08:51:03]process_action close_receipt done [08:51:03]requested_data is exist [08:51:03]produce_requested_data [08:51:03]requested_item fm.sn is exist - process it [08:51:03]wFMCommunicate request_size=4 [08:51:03]MH_SAM_APDU [08:51:03]CAPDU: 80 11 00 00 [08:51:03]Write to MH i2c: E2 08 00 6D 36 80 11 00 00 00 00 00 00 1D [08:51:03]Write i2c OK [08:51:03]MH_I2C_Read... [08:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:51:03]Read from MH i2c: E2 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 17 00 [08:51:03]MH_I2C_Read... [08:51:03]Read from MH i2c: E2 17 00 6D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 72 [08:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:51:03]wFMCommunicate OK [08:51:03]requested_item fd.num is exist - process it [08:51:03]SAM_PROTO_GetFieldsCounters [08:51:03]wFMCommunicate request_size=4 [08:51:03]MH_SAM_APDU [08:51:03]CAPDU: 80 13 00 00 [08:51:03]Write to MH i2c: E2 08 00 6E 36 80 13 00 00 00 00 00 00 20 [08:51:03]Write i2c OK [08:51:03]MH_I2C_Read... [08:51:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:51:04]Read from MH i2c: E2 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: E2 62 00 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: E2 62 00 6E 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 62 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 1C [08:51:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 62 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:51:04]wFMCommunicate OK [08:51:04]SAM_PROTO_GetFieldsCounters done [08:51:04]requested_item shift.num is exist - process it [08:51:04]requested_item shift.opened is exist - process it [08:51:04]req_shift_opened [08:51:04]FM_GetShiftState [08:51:04]SAM_PROTO_GetShiftState [08:51:04]wFMCommunicate request_size=4 [08:51:04]MH_SAM_APDU [08:51:04]CAPDU: 80 13 01 00 [08:51:04]Write to MH i2c: E2 08 00 6F 36 80 13 01 00 00 00 00 00 22 [08:51:04]Write i2c OK [08:51:04]MH_I2C_Read... [08:51:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:51:04]Read from MH i2c: E2 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: E2 0E 00 [08:51:04]MH_I2C_Read... [08:51:04]Read from MH i2c: E2 0E 00 6F 36 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 2E [08:51:04]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:51:04]wFMCommunicate OK [08:51:04]SAM_PROTO_GetShiftState done [08:51:04]FM_GetShiftState done [08:51:04]req_shift_opened done [08:51:04]requested_item shift.open_date is exist - process it [08:51:04]req_shift_open_date [08:51:04]req_shift_open_date done [08:51:04]produce_requested_data done [08:51:04]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4962,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:51:04]process_action_free close_receipt [08:51:04]json_value_free [08:51:04]json_value_free done [08:51:04]process_json_proto returns [08:51:04]Send response to host [08:51:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4962,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:51:04]free response buf [08:51:04]execute_script done [08:51:04]execute_script returns [08:51:04]free content buf [08:51:04]Sock 10.Close socket [08:51:04]Sock 10.Thread stoped [08:51:07]OFD Sender: No OFD packet to send [08:51:12]OFD Sender: No OFD packet to send [08:51:17]OFD Sender: No OFD packet to send [08:51:22]OFD Sender: No OFD packet to send [08:51:27]OFD Sender: No OFD packet to send [08:51:32]OFD Sender: No OFD packet to send [08:51:37]OFD Sender: No OFD packet to send [08:51:42]OFD Sender: No OFD packet to send [08:51:47]OFD Sender: No OFD packet to send [08:51:52]OFD Sender: No OFD packet to send [08:51:57]OFD Sender: No OFD packet to send [08:52:02]OFD Sender: No OFD packet to send [08:52:07]OFD Sender: No OFD packet to send [08:52:12]OFD Sender: No OFD packet to send [08:52:17]OFD Sender: No OFD packet to send [08:52:22]OFD Sender: No OFD packet to send [08:52:27]OFD Sender: No OFD packet to send [08:52:32]OFD Sender: No OFD packet to send [08:52:37]OFD Sender: No OFD packet to send [08:52:42]OFD Sender: No OFD packet to send [08:52:47]OFD Sender: No OFD packet to send [08:52:52]OFD Sender: No OFD packet to send [08:52:57]OFD Sender: No OFD packet to send [08:53:02]OFD Sender: No OFD packet to send [08:53:07]OFD Sender: No OFD packet to send [08:53:12]OFD Sender: No OFD packet to send [08:53:12]accept exits with 8 [08:53:12]New connection [08:53:12]New thread 3067587940 created [08:53:12]Thread 3067444580 joined [08:53:12]Waiting for new connection... [08:53:12] Sock 8.Parse request [08:53:12]Sock 8.Check first char [08:53:12]Sock 8.First char is OK [08:53:12]request: POST /json_proto HTTP/1.0 [08:53:12]Method: POST [08:53:12]URL: /json_proto [08:53:12]Method is POST - this is cgi request [08:53:12]url: /json_proto [08:53:12]query_string will be loaded in cgi processing [08:53:12]execute_cgi json_proto POST (null) [08:53:12]execute_cgi path=json_proto method=POST [08:53:12]POST find Content-Length [08:53:12]Host: 172.17.44.4:8080 [08:53:12]Content-Length: 728 [08:53:12]Content-Type: application/json [08:53:12] [08:53:12]POST finish read [08:53:12]Found Content-Length = 728 [08:53:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140973", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:12]execute_script... [08:53: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)140973", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:12]POST & json_proto [08:53:12]process_json_proto [08:53:12]json parsed OK: [08:53:12]protocol is kg_v1.0 [08:53:12]action value=close_receipt [08:53:12]process_action close_receipt [08:53:12]cmd_close_receipt [08:53:12]MH_GetDate [08:53:12]Write to MH i2c: F0 00 00 70 36 95 [08:53:12]Write i2c OK [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: F0 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: F0 09 00 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: F0 09 00 70 36 00 7F C9 45 66 6C E9 28 66 74 [08:53:12]GetLastDocTimeStamp 1715849465 [08:53:12]current date 1715849599 [08:53:12]FM_GetShiftState [08:53:12]SAM_PROTO_GetShiftState [08:53:12]wFMCommunicate request_size=4 [08:53:12]MH_SAM_APDU [08:53:12]CAPDU: 80 13 01 00 [08:53:12]Write to MH i2c: E2 08 00 71 36 80 13 01 00 00 00 00 00 24 [08:53:12]Write i2c OK [08:53:12]MH_I2C_Read... [08:53:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:12]Read from MH i2c: E2 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: E2 0E 00 [08:53:12]MH_I2C_Read... [08:53:12]Read from MH i2c: E2 0E 00 71 36 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 30 [08:53:12]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:53:12]wFMCommunicate OK [08:53:12]SAM_PROTO_GetShiftState done [08:53:12]FM_GetShiftState done [08:53:12]opened in 1715818246 [08:53:12]opened+sec_in_day 1715904646 [08:53:12]quantity*price = 6000 [08:53:12]sum+1 = 6001 [08:53:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 23 16.05.2024 08:53 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4963 ФПД: 193392342359549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085319&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4963&fm=193392342359549&tin=02508201610067®Number=0000000000154221&sum=6000 0 [08:53:14]StoreToDocumentArchive [08:53:14]shift 44 fd 4963 [08:53:14]save to /storage/0044/doc_00004963 [08:53:14]save last doc name /storage/0044/doc_00004963 to /storage/kkm_last_doc_name [08:53:14]save OK [08:53:14]Clear old archive folders... [08:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=303 [08:53:14]tlvbuf is 00DA8010 [08:53:14]SAM_PROTO_ClearQueue [08:53:14]wFMCommunicate request_size=4 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 09 00 00 [08:53:14]Write to MH i2c: E2 08 00 7E 36 80 09 00 00 00 00 00 00 26 [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 03 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 03 00 7E 36 00 90 00 28 [08:53:14]RAPDU: 90 00 [08:53:14]wFMCommunicate OK [08:53:14]SAM_PROTO_ClearQueue done [08:53:14]KKMCreateOFDPacket [08:53:14]OFDProtocolAddRootSTLVToBuf [08:53:14]FM_MakeSignedData [08:53:14]FM_MakeSignedData [08:53:14]SAM_PROTO_SignData [08:53:14]wFMCommunicate request_size=4 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 0D 01 02 [08:53:14]Write to MH i2c: E2 08 00 7F 36 80 0D 01 02 00 00 00 00 2E [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 03 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 03 00 7F 36 00 90 00 29 [08:53:14]RAPDU: 90 00 [08:53:14]wFMCommunicate OK [08:53:14]wFMCommunicate request_size=255 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7F C9 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D [08:53:14]Write to MH i2c: E2 02 01 80 36 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7F C9 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 00 00 44 [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 03 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 03 00 80 36 00 90 00 2A [08:53:14]RAPDU: 90 00 [08:53:14]wFMCommunicate OK [08:53:14]wFMCommunicate request_size=62 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 63 13 00 00 35 04 06 00 AF E3 A9 DE 5D FD [08:53:14]Write to MH i2c: E2 41 00 81 36 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 63 13 00 00 35 04 06 00 AF E3 A9 DE 5D FD 00 00 4D [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 03 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 03 00 81 36 00 90 00 2B [08:53:14]RAPDU: 90 00 [08:53:14]wFMCommunicate OK [08:53:14]wFMCommunicate request_size=4 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 0D 03 02 [08:53:14]Write to MH i2c: E2 08 00 82 36 80 0D 03 02 00 00 00 00 33 [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 0B 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 0B 00 82 36 00 E3 BF 33 02 C0 1A 16 D6 90 00 D1 [08:53:14]RAPDU: E3 BF 33 02 C0 1A 16 D6 90 00 [08:53:14]wFMCommunicate OK [08:53:14]SAM_PROTO_SignData done [08:53:14]FM_MakeSignedData done [08:53:14]CreateOFDProtocolMessage [08:53:14]wFMCommunicate request_size=4 [08:53:14]MH_SAM_APDU [08:53:14]CAPDU: 80 11 00 00 [08:53:14]Write to MH i2c: E2 08 00 83 36 80 11 00 00 00 00 00 00 33 [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:14]Read from MH i2c: E2 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 17 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: E2 17 00 83 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 88 [08:53:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:53:14]wFMCommunicate OK [08:53:14]CreateOFDProtocolMessage done [08:53:14]OFDSenderStorePacket 4963 [08:53:14]StoreOFDPacket docnum=4963 [08:53:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 43 01 00 00 A3 DD 3B 01 45 1F 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7F C9 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 63 13 00 00 35 04 06 00 AF E3 A9 DE 5D FD E3 BF 33 02 C0 1A 16 D6 [08:53:14]CheckFolder [08:53:14]dirname=/storage/ofd_packets [08:53:14]CheckFolder done [08:53:14]ProducePacketName [08:53:14]name=ofd_packets/00004963 [08:53:14]NVStorageSaveData ofd_packets/00004963 [08:53:14]File name is /storage/ofd_packets/00004963 [08:53:14]Write 353 bytes [08:53:14]NVStorageSaveData done [08:53:14]OFDSenderStorePacket done [08:53:14]KKMCreateOFDPacket done [08:53:14]NVStorageSaveData kkm_last_timestamp [08:53:14]File name is /storage/kkm_last_timestamp [08:53:14]Write 4 bytes [08:53:14]NVStorageSaveData done [08:53:14]ExternCall_PrintAddStr [08:53:14]wPrintStart [08:53:14]Write to MH i2c: 01 00 00 84 36 BA [08:53:14]Write i2c OK [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: 01 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: 01 07 00 [08:53:14]MH_I2C_Read... [08:53:14]Read from MH i2c: 01 07 00 84 36 00 00 00 00 00 FF 0F CF [08:53:14]RasterBufferAndPrint [08:53:14]line Счет N : (3)140973 [08:53:14]line ИНН: 02508201610067 [08:53:14]line Контрольно-Кассовый Чек [08:53:14]line ПРОДАЖА [08:53:14]line Товар: 4700000160792 [08:53:14]line Снек Курут классический (круглый) [08:53:14]line 1.000 * 60.00 [08:53:14]line = 60.00 [08:53:14]line НДС 12% НСП 1% [08:53:14]line > о реализуемом товаре [08:53:14]line ИТОГО: 60.00 [08:53:14]line НСП 1% : 0.53 [08:53:14]line НДС 12% : 6.37 [08:53:14]line Наличными: 60.00 [08:53:14]line Безнал.: 0.00 [08:53:14]line Место: АЗС № 135 "Партнер Нефть" [08:53:14]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:53:14]line СНО: Общий режим [08:53:14]line Чек 23 16.05.2024 08:53 [08:53:14]line Смена: 44 ФФД: 1.0 [08:53:14]line ЗНМ: 0300000237 [08:53:14]line РНМ: 0000000000154221 [08:53:14]line Версия ККМ: v1.0 [08:53:14]line ФМ: 0000000000963259 [08:53:14]line ФД: 4963 [08:53:14]line ФПД: 193392342359549 [08:53:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085319&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4963&fm=193392342359549&tin=02508201610067®Number=0000000000154221&sum=6000 [08:53:14]line 0 [08:53:14]OFD Sender: Processing packet 4963 [packets to send 4, broken 3] [08:53:14]ProducePacketName [08:53:14]name=ofd_packets/00004963 [08:53:14]OFD Sender: To server: pG, [08:53:14]CommunicateWithHost lk.salyk.kg:30040 [08:53:14]written 0, free lines is 4095 [08:53:14]ConnectInit lk.salyk.kg [08:53:15]Connected sock=9 [08:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 43 01 00 00 A3 DD 3B 01 45 1F 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 7F C9 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 63 13 00 00 35 04 06 00 AF E3 A9 DE 5D FD E3 BF 33 02 C0 1A 16 D6 [08:53:15]Write to MH i2c: 01 00 00 AD 36 E3 [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: 01 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: 01 07 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: 01 07 00 AD 36 00 00 00 00 00 97 0C 8D [08:53:15]RasterBufferAndPrint [08:53:15]line [08:53:15]line [08:53:15]line [08:53:15]line [08:53:15]line [08:53:15]written 0, free lines is 3227 [08:53:15]MH_Cut [08:53:15]Write to MH i2c: D1 01 00 B4 36 01 BC [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: D1 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: D1 01 00 [08:53:15]MH_I2C_Read... [08:53:15]Read from MH i2c: D1 01 00 B4 36 00 BB [08:53:15]Write to MH i2c: 01 00 00 B5 36 EB [08:53:15]Write i2c OK [08:53:15]MH_I2C_Read... [08:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 58 F5 47 00 B9 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 63 13 00 00 F4 03 04 00 43 75 45 66 B6 04 01 00 00 0A 74 80 80 A6 6E 2E 2C [08:53:15]CommunicateWithHost err = 0 [08:53:15]CheckOFDResponse [08:53:15]1017 (14) - 77093643461234 [08:53:15]1041 (16) - 0000000000963259 [08:53:15]1040 (4) - 4963 [08:53:15]1012 (4) - 16.05.2024 02:53 [08:53:15]1206 (1) - 0 [08:53:15]OFD Sender: Remove packet 4963 [08:53:15]ProducePacketName [08:53:15]name=ofd_packets/00004963 [08:53:15]NVStorageDeleteData [08:53:16]OFD Sender: No OFD packet to send [08:53:16]*** Cut start [08:53:16]*** Partial cut [08:53:16]*** CUTSNS_PIN = 1 [08:53:16]*** CUTSNS_PIN = 0 [08:53:16]*** Brake cut motor [08:53:17]Read from MH i2c: 01 [08:53:17]MH_I2C_Read... [08:53:17]*** Stop cut motor [08:53:17]*** Cut end [08:53:17]Read from MH i2c: 01 07 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: 01 07 00 B5 36 00 00 00 00 00 FF 0F 00 [08:53:17]process_action close_receipt done [08:53:17]requested_data is exist [08:53:17]produce_requested_data [08:53:17]requested_item fm.sn is exist - process it [08:53:17]wFMCommunicate request_size=4 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 11 00 00 [08:53:17]Write to MH i2c: E2 08 00 B6 36 80 11 00 00 00 00 00 00 66 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 17 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 17 00 B6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 BB [08:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:53:17]wFMCommunicate OK [08:53:17]requested_item fd.num is exist - process it [08:53:17]SAM_PROTO_GetFieldsCounters [08:53:17]wFMCommunicate request_size=4 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 13 00 00 [08:53:17]Write to MH i2c: E2 08 00 B7 36 80 13 00 00 00 00 00 00 69 [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 62 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 62 00 B7 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 63 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 69 [08:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 63 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:17]wFMCommunicate OK [08:53:17]SAM_PROTO_GetFieldsCounters done [08:53:17]requested_item shift.num is exist - process it [08:53:17]requested_item shift.opened is exist - process it [08:53:17]req_shift_opened [08:53:17]FM_GetShiftState [08:53:17]SAM_PROTO_GetShiftState [08:53:17]wFMCommunicate request_size=4 [08:53:17]MH_SAM_APDU [08:53:17]CAPDU: 80 13 01 00 [08:53:17]Write to MH i2c: E2 08 00 B8 36 80 13 01 00 00 00 00 00 6B [08:53:17]Write i2c OK [08:53:17]MH_I2C_Read... [08:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:17]Read from MH i2c: E2 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 0E 00 [08:53:17]MH_I2C_Read... [08:53:17]Read from MH i2c: E2 0E 00 B8 36 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 77 [08:53:17]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:53:17]wFMCommunicate OK [08:53:17]SAM_PROTO_GetShiftState done [08:53:17]FM_GetShiftState done [08:53:17]req_shift_opened done [08:53:17]requested_item shift.open_date is exist - process it [08:53:17]req_shift_open_date [08:53:17]req_shift_open_date done [08:53:17]produce_requested_data done [08:53:17]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4963,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:53:17]process_action_free close_receipt [08:53:17]json_value_free [08:53:17]json_value_free done [08:53:17]process_json_proto returns [08:53:17]Send response to host [08:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4963,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:53:17]free response buf [08:53:17]execute_script done [08:53:17]execute_script returns [08:53:17]free content buf [08:53:17]Sock 8.Close socket [08:53:17]Sock 8.Thread stoped [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:16]accept exits with 10 [08:56:16]New connection [08:56:16]New thread 3067444580 created [08:56:16]Thread 3067587940 joined [08:56:16]Waiting for new connection... [08:56:16] Sock 10.Parse request [08:56:16]Sock 10.Check first char [08:56:16]Sock 10.First char is OK [08:56:16]request: POST /json_proto HTTP/1.0 [08:56:16]Method: POST [08:56:16]URL: /json_proto [08:56:16]Method is POST - this is cgi request [08:56:16]url: /json_proto [08:56:16]query_string will be loaded in cgi processing [08:56:16]execute_cgi json_proto POST (null) [08:56:16]execute_cgi path=json_proto method=POST [08:56:16]POST find Content-Length [08:56:16]Host: 172.17.44.4:8080 [08:56:16]Content-Length: 1078 [08:56:16]Content-Type: application/json [08:56:16] [08:56:16]POST finish read [08:56:16]Found Content-Length = 1078 [08:56:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140974", "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 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:16]execute_script... [08:56: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)140974", "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 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 268.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:16]POST & json_proto [08:56:16]process_json_proto [08:56:16]json parsed OK: [08:56:16]protocol is kg_v1.0 [08:56:16]action value=close_receipt [08:56:16]process_action close_receipt [08:56:16]cmd_close_receipt [08:56:16]MH_GetDate [08:56:16]Write to MH i2c: F0 00 00 B9 36 DE [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: F0 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: F0 09 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: F0 09 00 B9 36 00 36 CA 45 66 6C E9 28 66 75 [08:56:16]GetLastDocTimeStamp 1715849599 [08:56:16]current date 1715849782 [08:56:16]FM_GetShiftState [08:56:16]SAM_PROTO_GetShiftState [08:56:16]wFMCommunicate request_size=4 [08:56:16]MH_SAM_APDU [08:56:16]CAPDU: 80 13 01 00 [08:56:16]Write to MH i2c: E2 08 00 BA 36 80 13 01 00 00 00 00 00 6D [08:56:16]Write i2c OK [08:56:16]MH_I2C_Read... [08:56:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:16]Read from MH i2c: E2 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 0E 00 [08:56:16]MH_I2C_Read... [08:56:16]Read from MH i2c: E2 0E 00 BA 36 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 79 [08:56:16]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:56:16]wFMCommunicate OK [08:56:16]SAM_PROTO_GetShiftState done [08:56:16]FM_GetShiftState done [08:56:16]opened in 1715818246 [08:56:16]opened+sec_in_day 1715904646 [08:56:16]quantity*price = 13800 [08:56:16]sum+1 = 13801 [08:56:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 268.00 НСП 1% : 2.37 НДС 12% : 28.45 Наличными: 0.00 Безнал.: 268.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 24 16.05.2024 08:56 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: Демир КИ Банк ФМ: 0000000000963259 ФД: 4964 ФПД: 68951945870575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085622&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4964&fm=68951945870575&tin=02508201610067®Number=0000000000154221&sum=26800 0 [08:56:17]StoreToDocumentArchive [08:56:17]shift 44 fd 4964 [08:56:17]save to /storage/0044/doc_00004964 [08:56:17]save last doc name /storage/0044/doc_00004964 to /storage/kkm_last_doc_name [08:56:17]save OK [08:56:17]Clear old archive folders... [08:56:17]ProcessDocumentItem done err = 0, tmpTLVsize=390 [08:56:17]tlvbuf is 00CCA360 [08:56:17]SAM_PROTO_ClearQueue [08:56:17]wFMCommunicate request_size=4 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 09 00 00 [08:56:17]Write to MH i2c: E2 08 00 C7 36 80 09 00 00 00 00 00 00 6F [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 C7 36 00 90 00 71 [08:56:17]RAPDU: 90 00 [08:56:17]wFMCommunicate OK [08:56:17]SAM_PROTO_ClearQueue done [08:56:17]KKMCreateOFDPacket [08:56:17]OFDProtocolAddRootSTLVToBuf [08:56:17]FM_MakeSignedData [08:56:17]FM_MakeSignedData [08:56:17]SAM_PROTO_SignData [08:56:17]wFMCommunicate request_size=4 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 0D 01 02 [08:56:17]Write to MH i2c: E2 08 00 C8 36 80 0D 01 02 00 00 00 00 77 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 C8 36 00 90 00 72 [08:56:17]RAPDU: 90 00 [08:56:17]wFMCommunicate OK [08:56:17]wFMCommunicate request_size=255 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 0D 02 02 FA 03 00 86 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 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 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [08:56:17]Write to MH i2c: E2 02 01 C9 36 80 0D 02 02 FA 00 03 00 86 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 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 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 86 [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 C9 36 00 90 00 73 [08:56:17]RAPDU: 90 00 [08:56:17]wFMCommunicate OK [08:56:17]wFMCommunicate request_size=149 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 36 CA 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 64 13 00 00 35 04 06 00 3E B6 20 3D 7C EF [08:56:17]Write to MH i2c: E2 98 00 CA 36 80 0D 02 02 90 00 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 36 CA 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 64 13 00 00 35 04 06 00 3E B6 20 3D 7C EF 00 00 0F [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 03 00 CA 36 00 90 00 74 [08:56:17]RAPDU: 90 00 [08:56:17]wFMCommunicate OK [08:56:17]wFMCommunicate request_size=4 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 0D 03 02 [08:56:17]Write to MH i2c: E2 08 00 CB 36 80 0D 03 02 00 00 00 00 7C [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:17]Read from MH i2c: E2 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 0B 00 [08:56:17]MH_I2C_Read... [08:56:17]Read from MH i2c: E2 0B 00 CB 36 00 51 16 18 61 65 95 5E 51 90 00 06 [08:56:17]RAPDU: 51 16 18 61 65 95 5E 51 90 00 [08:56:17]wFMCommunicate OK [08:56:17]SAM_PROTO_SignData done [08:56:17]FM_MakeSignedData done [08:56:17]CreateOFDProtocolMessage [08:56:17]wFMCommunicate request_size=4 [08:56:17]MH_SAM_APDU [08:56:17]CAPDU: 80 11 00 00 [08:56:17]Write to MH i2c: E2 08 00 CC 36 80 11 00 00 00 00 00 00 7C [08:56:17]Write i2c OK [08:56:17]MH_I2C_Read... [08:56:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:18]Read from MH i2c: E2 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: E2 17 00 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: E2 17 00 CC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D1 [08:56:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:56:18]wFMCommunicate OK [08:56:18]CreateOFDProtocolMessage done [08:56:18]OFDSenderStorePacket 4964 [08:56:18]StoreOFDPacket docnum=4964 [08:56:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 9A 01 00 00 48 98 92 01 E6 18 5A 03 01 00 03 00 86 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 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 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 36 CA 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 64 13 00 00 35 04 06 00 3E B6 20 3D 7C EF 51 16 18 61 65 95 5E 51 [08:56:18]CheckFolder [08:56:18]dirname=/storage/ofd_packets [08:56:18]CheckFolder done [08:56:18]ProducePacketName [08:56:18]name=ofd_packets/00004964 [08:56:18]NVStorageSaveData ofd_packets/00004964 [08:56:18]File name is /storage/ofd_packets/00004964 [08:56:18]Write 440 bytes [08:56:18]NVStorageSaveData done [08:56:18]OFDSenderStorePacket done [08:56:18]KKMCreateOFDPacket done [08:56:18]NVStorageSaveData kkm_last_timestamp [08:56:18]File name is /storage/kkm_last_timestamp [08:56:18]Write 4 bytes [08:56:18]NVStorageSaveData done [08:56:18]ExternCall_PrintAddStr [08:56:18]wPrintStart [08:56:18]Write to MH i2c: 01 00 00 CD 36 03 [08:56:18]OFD Sender: Processing packet 4964 [packets to send 4, broken 3] [08:56:18]ProducePacketName [08:56:18]name=ofd_packets/00004964 [08:56:18]Write i2c OK [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: 01 [08:56:18]MH_I2C_Read... [08:56:18]OFD Sender: To server: pG, [08:56:18]CommunicateWithHost lk.salyk.kg:30040 [08:56:18]ConnectInit lk.salyk.kg [08:56:18]Read from MH i2c: 01 07 00 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: 01 07 00 CD 36 00 00 00 00 00 FF 0F 18 [08:56:18]RasterBufferAndPrint [08:56:18]line Счет N : (3)140974 [08:56:18]line ИНН: 02508201610067 [08:56:18]line Контрольно-Кассовый Чек [08:56:18]line ПРОДАЖА [08:56:18]line Товар: 4640030092499 [08:56:18]line Сигареты ESSE SENSE Himalaya [08:56:18]line 1.000 * 138.00 [08:56:18]line = 138.00 [08:56:18]line НДС 12% НСП 1% [08:56:18]line > о реализуемом товаре [08:56:18]line Товар: 2000036220012 [08:56:18]line Кофе Капучино XL(GABB TRADE) [08:56:18]line 1.000 * 130.00 [08:56:18]line = 130.00 [08:56:18]line НДС 12% НСП 1% [08:56:18]line > о реализуемом товаре [08:56:18]line ИТОГО: 268.00 [08:56:18]line НСП 1% : 2.37 [08:56:18]line НДС 12% : 28.45 [08:56:18]line Наличными: 0.00 [08:56:18]line Безнал.: 268.00 [08:56:18]line Место: АЗС № 135 "Партнер Нефть" [08:56:18]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [08:56:18]line СНО: Общий режим [08:56:18]line Чек 24 16.05.2024 08:56 [08:56:18]line Смена: 44 ФФД: 1.0 [08:56:18]line ЗНМ: 0300000237 [08:56:18]line РНМ: 0000000000154221 [08:56:18]line Версия ККМ: v1.0 [08:56:18]line Платежная система: Демир КИ Банк [08:56:18]line ФМ: 0000000000963259 [08:56:18]line ФД: 4964 [08:56:18]line ФПД: 68951945870575 [08:56:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T085622&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4964&fm=68951945870575&tin=02508201610067®Number=0000000000154221&sum=26800 [08:56:18]line 0 [08:56:18]written 0, free lines is 4095 [08:56:18]Connected sock=9 [08:56:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 9A 01 00 00 48 98 92 01 E6 18 5A 03 01 00 03 00 86 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 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 B0 68 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 ED 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 68 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 36 CA 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 64 13 00 00 35 04 06 00 3E B6 20 3D 7C EF 51 16 18 61 65 95 5E 51 [08:56:18]Write to MH i2c: 01 00 00 FF 36 35 [08:56:18]Write i2c OK [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: 01 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: 01 07 00 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: 01 07 00 FF 36 00 00 00 00 00 CB 0B 12 [08:56:18]RasterBufferAndPrint [08:56:18]line [08:56:18]line [08:56:18]line [08:56:18]line [08:56:18]line [08:56:18]written 0, free lines is 3023 [08:56:18]MH_Cut [08:56:18]Write to MH i2c: D1 01 00 06 37 01 0F [08:56:18]Write i2c OK [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: D1 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: D1 01 00 [08:56:18]MH_I2C_Read... [08:56:18]Read from MH i2c: D1 01 00 06 37 00 0E [08:56:18]Write to MH i2c: 01 00 00 07 37 3E [08:56:18]Write i2c OK [08:56:18]MH_I2C_Read... [08:56:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 57 42 47 00 1E 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 64 13 00 00 F4 03 04 00 FA 75 45 66 B6 04 01 00 00 96 45 B0 BC 83 71 B7 99 [08:56:18]CommunicateWithHost err = 0 [08:56:18]CheckOFDResponse [08:56:18]1017 (14) - 77093643461234 [08:56:18]1041 (16) - 0000000000963259 [08:56:18]1040 (4) - 4964 [08:56:18]1012 (4) - 16.05.2024 02:56 [08:56:18]1206 (1) - 0 [08:56:18]OFD Sender: Remove packet 4964 [08:56:18]ProducePacketName [08:56:18]name=ofd_packets/00004964 [08:56:18]NVStorageDeleteData [08:56:19]OFD Sender: No OFD packet to send [08:56:20]*** Cut start [08:56:20]*** Partial cut [08:56:20]*** CUTSNS_PIN = 1 [08:56:20]*** CUTSNS_PIN = 0 [08:56:20]*** Brake cut motor [08:56:20]Read from MH i2c: 01 [08:56:20]MH_I2C_Read... [08:56:20]*** Stop cut motor [08:56:20]*** Cut end [08:56:20]Read from MH i2c: 01 07 00 [08:56:20]MH_I2C_Read... [08:56:20]Read from MH i2c: 01 07 00 07 37 00 00 00 00 00 FF 0F 53 [08:56:20]process_action close_receipt done [08:56:20]requested_data is exist [08:56:20]produce_requested_data [08:56:20]requested_item fm.sn is exist - process it [08:56:20]wFMCommunicate request_size=4 [08:56:20]MH_SAM_APDU [08:56:20]CAPDU: 80 11 00 00 [08:56:20]Write to MH i2c: E2 08 00 08 37 80 11 00 00 00 00 00 00 B9 [08:56:20]Write i2c OK [08:56:20]MH_I2C_Read... [08:56:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:20]Read from MH i2c: E2 [08:56:20]MH_I2C_Read... [08:56:20]Read from MH i2c: E2 17 00 [08:56:20]MH_I2C_Read... [08:56:20]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 33 32 35 39 90 00 0E [08:56:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [08:56:20]wFMCommunicate OK [08:56:20]requested_item fd.num is exist - process it [08:56:20]SAM_PROTO_GetFieldsCounters [08:56:20]wFMCommunicate request_size=4 [08:56:20]MH_SAM_APDU [08:56:20]CAPDU: 80 13 00 00 [08:56:20]Write to MH i2c: E2 08 00 09 37 80 13 00 00 00 00 00 00 BC [08:56:20]Write i2c OK [08:56:20]MH_I2C_Read... [08:56:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:21]Read from MH i2c: E2 [08:56:21]MH_I2C_Read... [08:56:21]Read from MH i2c: E2 62 00 [08:56:21]MH_I2C_Read... [08:56:21]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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 64 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [08:56:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 64 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:21]wFMCommunicate OK [08:56:21]SAM_PROTO_GetFieldsCounters done [08:56:21]requested_item shift.num is exist - process it [08:56:21]requested_item shift.opened is exist - process it [08:56:21]req_shift_opened [08:56:21]FM_GetShiftState [08:56:21]SAM_PROTO_GetShiftState [08:56:21]wFMCommunicate request_size=4 [08:56:21]MH_SAM_APDU [08:56:21]CAPDU: 80 13 01 00 [08:56:21]Write to MH i2c: E2 08 00 0A 37 80 13 01 00 00 00 00 00 BE [08:56:21]Write i2c OK [08:56:21]MH_I2C_Read... [08:56:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:21]Read from MH i2c: E2 [08:56:21]MH_I2C_Read... [08:56:21]Read from MH i2c: E2 0E 00 [08:56:21]MH_I2C_Read... [08:56:21]Read from MH i2c: E2 0E 00 0A 37 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CA [08:56:21]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [08:56:21]wFMCommunicate OK [08:56:21]SAM_PROTO_GetShiftState done [08:56:21]FM_GetShiftState done [08:56:21]req_shift_opened done [08:56:21]requested_item shift.open_date is exist - process it [08:56:21]req_shift_open_date [08:56:21]req_shift_open_date done [08:56:21]produce_requested_data done [08:56:21]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4964,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [08:56:21]process_action_free close_receipt [08:56:21]json_value_free [08:56:21]json_value_free done [08:56:21]process_json_proto returns [08:56:21]Send response to host [08:56:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4964,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [08:56:21]free response buf [08:56:21]execute_script done [08:56:21]execute_script returns [08:56:21]free content buf [08:56:21]Sock 10.Close socket [08:56:21]Sock 10.Thread stoped [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:34]OFD Sender: No OFD packet to send [08:58:39]OFD Sender: No OFD packet to send [08:58:44]OFD Sender: No OFD packet to send [08:58:49]OFD Sender: No OFD packet to send [08:58:54]OFD Sender: No OFD packet to send [08:58:59]OFD Sender: No OFD packet to send [08:59:04]OFD Sender: No OFD packet to send [08:59:09]OFD Sender: No OFD packet to send [08:59:14]OFD Sender: No OFD packet to send [08:59:19]OFD Sender: No OFD packet to send [08:59:24]OFD Sender: No OFD packet to send [08:59:29]OFD Sender: No OFD packet to send [08:59:34]OFD Sender: No OFD packet to send [08:59:39]OFD Sender: No OFD packet to send [08:59:44]OFD Sender: No OFD packet to send [08:59:49]OFD Sender: No OFD packet to send [08:59:54]OFD Sender: No OFD packet to send [08:59:59]OFD Sender: No OFD packet to send [09:00:04]OFD Sender: No OFD packet to send [09:00:09]OFD Sender: No OFD packet to send [09:00:14]OFD Sender: No OFD packet to send [09:00:19]OFD Sender: No OFD packet to send [09:00:24]OFD Sender: No OFD packet to send [09:00:29]OFD Sender: No OFD packet to send [09:00:34]OFD Sender: No OFD packet to send [09:00:39]OFD Sender: No OFD packet to send [09:00:44]OFD Sender: No OFD packet to send [09:00:49]OFD Sender: No OFD packet to send [09:00:54]OFD Sender: No OFD packet to send [09:00:59]OFD Sender: No OFD packet to send [09:01:04]OFD Sender: No OFD packet to send [09:01:09]OFD Sender: No OFD packet to send [09:01:14]OFD Sender: No OFD packet to send [09:01:19]OFD Sender: No OFD packet to send [09:01:24]OFD Sender: No OFD packet to send [09:01:29]OFD Sender: No OFD packet to send [09:01:34]OFD Sender: No OFD packet to send [09:01:39]OFD Sender: No OFD packet to send [09:01:44]OFD Sender: No OFD packet to send [09:01:49]OFD Sender: No OFD packet to send [09:01:54]OFD Sender: No OFD packet to send [09:01:59]OFD Sender: No OFD packet to send [09:02:04]OFD Sender: No OFD packet to send [09:02:09]OFD Sender: No OFD packet to send [09:02:14]OFD Sender: No OFD packet to send [09:02:19]OFD Sender: No OFD packet to send [09:02:24]OFD Sender: No OFD packet to send [09:02:29]OFD Sender: No OFD packet to send [09:02:34]OFD Sender: No OFD packet to send [09:02:39]OFD Sender: No OFD packet to send [09:02:44]OFD Sender: No OFD packet to send [09:02:49]OFD Sender: No OFD packet to send [09:02:54]OFD Sender: No OFD packet to send [09:02:59]OFD Sender: No OFD packet to send [09:03:04]OFD Sender: No OFD packet to send [09:03:09]OFD Sender: No OFD packet to send [09:03:14]OFD Sender: No OFD packet to send [09:03:19]OFD Sender: No OFD packet to send [09:03:24]OFD Sender: No OFD packet to send [09:03:29]OFD Sender: No OFD packet to send [09:03:34]OFD Sender: No OFD packet to send [09:03:39]OFD Sender: No OFD packet to send [09:03:44]OFD Sender: No OFD packet to send [09:03:49]OFD Sender: No OFD packet to send [09:03:54]OFD Sender: No OFD packet to send [09:03:59]OFD Sender: No OFD packet to send [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:29]OFD Sender: No OFD packet to send [09:07:34]OFD Sender: No OFD packet to send [09:07:39]OFD Sender: No OFD packet to send [09:07:44]OFD Sender: No OFD packet to send [09:07:49]OFD Sender: No OFD packet to send [09:07:55]OFD Sender: No OFD packet to send [09:08:00]OFD Sender: No OFD packet to send [09:08:05]OFD Sender: No OFD packet to send [09:08:10]OFD Sender: No OFD packet to send [09:08:15]OFD Sender: No OFD packet to send [09:08:20]OFD Sender: No OFD packet to send [09:08:25]OFD Sender: No OFD packet to send [09:08:30]OFD Sender: No OFD packet to send [09:08:35]OFD Sender: No OFD packet to send [09:08:40]OFD Sender: No OFD packet to send [09:08:45]OFD Sender: No OFD packet to send [09:08:50]OFD Sender: No OFD packet to send [09:08:55]OFD Sender: No OFD packet to send [09:09:00]OFD Sender: No OFD packet to send [09:09:05]OFD Sender: No OFD packet to send [09:09:10]OFD Sender: No OFD packet to send [09:09:15]OFD Sender: No OFD packet to send [09:09:20]OFD Sender: No OFD packet to send [09:09:25]OFD Sender: No OFD packet to send [09:09:30]OFD Sender: No OFD packet to send [09:09:35]OFD Sender: No OFD packet to send [09:09:40]OFD Sender: No OFD packet to send [09:09:45]OFD Sender: No OFD packet to send [09:09:50]OFD Sender: No OFD packet to send [09:09:55]OFD Sender: No OFD packet to send [09:10:00]OFD Sender: No OFD packet to send [09:10:05]OFD Sender: No OFD packet to send [09:10:10]OFD Sender: No OFD packet to send [09:10:15]OFD Sender: No OFD packet to send [09:10:20]OFD Sender: No OFD packet to send [09:10:25]OFD Sender: No OFD packet to send [09:10:30]OFD Sender: No OFD packet to send [09:10:35]OFD Sender: No OFD packet to send [09:10:40]OFD Sender: No OFD packet to send [09:10:45]OFD Sender: No OFD packet to send [09:10:50]OFD Sender: No OFD packet to send [09:10:55]OFD Sender: No OFD packet to send [09:11:00]OFD Sender: No OFD packet to send [09:11:05]OFD Sender: No OFD packet to send [09:11:10]OFD Sender: No OFD packet to send [09:11:15]OFD Sender: No OFD packet to send [09:11:20]OFD Sender: No OFD packet to send [09:11:25]OFD Sender: No OFD packet to send [09:11:30]OFD Sender: No OFD packet to send [09:11:35]OFD Sender: No OFD packet to send [09:11:40]OFD Sender: No OFD packet to send [09:11:45]OFD Sender: No OFD packet to send [09:11:50]OFD Sender: No OFD packet to send [09:11:55]OFD Sender: No OFD packet to send [09:12:00]OFD Sender: No OFD packet to send [09:12:05]OFD Sender: No OFD packet to send [09:12:10]OFD Sender: No OFD packet to send [09:12:15]OFD Sender: No OFD packet to send [09:12:20]OFD Sender: No OFD packet to send [09:12:25]OFD Sender: No OFD packet to send [09:12:30]OFD Sender: No OFD packet to send [09:12:35]OFD Sender: No OFD packet to send [09:12:40]OFD Sender: No OFD packet to send [09:12:45]OFD Sender: No OFD packet to send [09:12:50]OFD Sender: No OFD packet to send [09:12:55]OFD Sender: No OFD packet to send [09:13:00]OFD Sender: No OFD packet to send [09:13:05]OFD Sender: No OFD packet to send [09:13:10]OFD Sender: No OFD packet to send [09:13:15]OFD Sender: No OFD packet to send [09:13:20]OFD Sender: No OFD packet to send [09:13:25]OFD Sender: No OFD packet to send [09:13:30]OFD Sender: No OFD packet to send [09:13:35]OFD Sender: No OFD packet to send [09:13:40]OFD Sender: No OFD packet to send [09:13:45]OFD Sender: No OFD packet to send [09:13:50]OFD Sender: No OFD packet to send [09:13:55]OFD Sender: No OFD packet to send [09:14:00]OFD Sender: No OFD packet to send [09:14:05]OFD Sender: No OFD packet to send [09:14:10]OFD Sender: No OFD packet to send [09:14:15]OFD Sender: No OFD packet to send [09:14:20]OFD Sender: No OFD packet to send [09:14:25]OFD Sender: No OFD packet to send [09:14:30]OFD Sender: No OFD packet to send [09:14:35]OFD Sender: No OFD packet to send [09:14:40]OFD Sender: No OFD packet to send [09:14:45]OFD Sender: No OFD packet to send [09:14:50]OFD Sender: No OFD packet to send [09:14:55]OFD Sender: No OFD packet to send [09:15:00]OFD Sender: No OFD packet to send [09:15:05]OFD Sender: No OFD packet to send [09:15:10]OFD Sender: No OFD packet to send [09:15:15]OFD Sender: No OFD packet to send [09:15:20]OFD Sender: No OFD packet to send [09:15:25]OFD Sender: No OFD packet to send [09:15:30]OFD Sender: No OFD packet to send [09:15:35]OFD Sender: No OFD packet to send [09:15:40]OFD Sender: No OFD packet to send [09:15:45]OFD Sender: No OFD packet to send [09:15:50]OFD Sender: No OFD packet to send [09:15:55]OFD Sender: No OFD packet to send [09:16:00]OFD Sender: No OFD packet to send [09:16:05]OFD Sender: No OFD packet to send [09:16:10]OFD Sender: No OFD packet to send [09:16:15]OFD Sender: No OFD packet to send [09:16:20]OFD Sender: No OFD packet to send [09:16:25]OFD Sender: No OFD packet to send [09:16:30]OFD Sender: No OFD packet to send [09:16:35]OFD Sender: No OFD packet to send [09:16:40]OFD Sender: No OFD packet to send [09:16:45]OFD Sender: No OFD packet to send [09:16:50]OFD Sender: No OFD packet to send [09:16:55]OFD Sender: No OFD packet to send [09:17:00]OFD Sender: No OFD packet to send [09:17:05]OFD Sender: No OFD packet to send [09:17:10]OFD Sender: No OFD packet to send [09:17:15]OFD Sender: No OFD packet to send [09:17:20]OFD Sender: No OFD packet to send [09:17:25]OFD Sender: No OFD packet to send [09:17:30]OFD Sender: No OFD packet to send [09:17:35]OFD Sender: No OFD packet to send [09:17:40]OFD Sender: No OFD packet to send [09:17:45]OFD Sender: No OFD packet to send [09:17:50]OFD Sender: No OFD packet to send [09:17:55]OFD Sender: No OFD packet to send [09:18:00]OFD Sender: No OFD packet to send [09:18:05]OFD Sender: No OFD packet to send [09:18:10]OFD Sender: No OFD packet to send [09:18:15]OFD Sender: No OFD packet to send [09:18:20]OFD Sender: No OFD packet to send [09:18:25]OFD Sender: No OFD packet to send [09:18:30]OFD Sender: No OFD packet to send [09:18:35]OFD Sender: No OFD packet to send [09:18:40]OFD Sender: No OFD packet to send [09:18:45]OFD Sender: No OFD packet to send [09:18:50]OFD Sender: No OFD packet to send [09:18:55]OFD Sender: No OFD packet to send [09:19:00]OFD Sender: No OFD packet to send [09:19:05]OFD Sender: No OFD packet to send [09:19:10]OFD Sender: No OFD packet to send [09:19:15]OFD Sender: No OFD packet to send [09:19:20]OFD Sender: No OFD packet to send [09:19:25]OFD Sender: No OFD packet to send [09:19:30]OFD Sender: No OFD packet to send [09:19:35]OFD Sender: No OFD packet to send [09:19:40]OFD Sender: No OFD packet to send [09:19:45]OFD Sender: No OFD packet to send [09:19:50]OFD Sender: No OFD packet to send [09:19:55]OFD Sender: No OFD packet to send [09:20:00]OFD Sender: No OFD packet to send [09:20:05]OFD Sender: No OFD packet to send [09:20:10]OFD Sender: No OFD packet to send [09:20:15]OFD Sender: No OFD packet to send [09:20:20]OFD Sender: No OFD packet to send [09:20:25]OFD Sender: No OFD packet to send [09:20:30]OFD Sender: No OFD packet to send [09:20:35]OFD Sender: No OFD packet to send [09:20:40]OFD Sender: No OFD packet to send [09:20:45]OFD Sender: No OFD packet to send [09:20:50]OFD Sender: No OFD packet to send [09:20:55]OFD Sender: No OFD packet to send [09:21:00]OFD Sender: No OFD packet to send [09:21:05]OFD Sender: No OFD packet to send [09:21:10]OFD Sender: No OFD packet to send [09:21:15]OFD Sender: No OFD packet to send [09:21:20]OFD Sender: No OFD packet to send [09:21:25]OFD Sender: No OFD packet to send [09:21:30]OFD Sender: No OFD packet to send [09:21:35]OFD Sender: No OFD packet to send [09:21:40]OFD Sender: No OFD packet to send [09:21:45]OFD Sender: No OFD packet to send [09:21:50]OFD Sender: No OFD packet to send [09:21:55]OFD Sender: No OFD packet to send [09:22:00]OFD Sender: No OFD packet to send [09:22:05]OFD Sender: No OFD packet to send [09:22:10]OFD Sender: No OFD packet to send [09:22:15]OFD Sender: No OFD packet to send [09:22:20]OFD Sender: No OFD packet to send [09:22:25]OFD Sender: No OFD packet to send [09:22:30]OFD Sender: No OFD packet to send [09:22:35]OFD Sender: No OFD packet to send [09:22:40]OFD Sender: No OFD packet to send [09:22:45]OFD Sender: No OFD packet to send [09:22:50]OFD Sender: No OFD packet to send [09:22:55]OFD Sender: No OFD packet to send [09:23:00]OFD Sender: No OFD packet to send [09:23:05]OFD Sender: No OFD packet to send [09:23:10]OFD Sender: No OFD packet to send [09:23:15]OFD Sender: No OFD packet to send [09:23:20]OFD Sender: No OFD packet to send [09:23:21]accept exits with 8 [09:23:21]New connection [09:23:21]New thread 3067587940 created [09:23:21]Thread 3067444580 joined [09:23:21]Waiting for new connection... [09:23:21] Sock 8.Parse request [09:23:21]Sock 8.Check first char [09:23:21]Sock 8.First char is OK [09:23:21]request: POST /json_proto HTTP/1.0 [09:23:21]Method: POST [09:23:21]URL: /json_proto [09:23:21]Method is POST - this is cgi request [09:23:21]url: /json_proto [09:23:21]query_string will be loaded in cgi processing [09:23:21]execute_cgi json_proto POST (null) [09:23:21]execute_cgi path=json_proto method=POST [09:23:21]POST find Content-Length [09:23:21]Host: 172.17.44.4:8080 [09:23:21]Content-Length: 898 [09:23:21]Content-Type: application/json [09:23:21] [09:23:21]POST finish read [09:23:21]Found Content-Length = 898 [09:23:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140975", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:21]execute_script... [09:23: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)140975", "tax_sys" : 0, "items" : [ { "code": "4870112002775", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI BITES 80\u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ], "payments": [ { "type": 0, "sum" : 110.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:23:21]POST & json_proto [09:23:21]process_json_proto [09:23:21]json parsed OK: [09:23:21]protocol is kg_v1.0 [09:23:21]action value=close_receipt [09:23:21]process_action close_receipt [09:23:21]cmd_close_receipt [09:23:21]MH_GetDate [09:23:21]Write to MH i2c: F0 00 00 0B 37 31 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: F0 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: F0 09 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: F0 09 00 0B 37 00 8F D0 45 66 6C E9 28 66 27 [09:23:21]GetLastDocTimeStamp 1715849782 [09:23:21]current date 1715851407 [09:23:21]FM_GetShiftState [09:23:21]SAM_PROTO_GetShiftState [09:23:21]wFMCommunicate request_size=4 [09:23:21]MH_SAM_APDU [09:23:21]CAPDU: 80 13 01 00 [09:23:21]Write to MH i2c: E2 08 00 0C 37 80 13 01 00 00 00 00 00 C0 [09:23:21]Write i2c OK [09:23:21]MH_I2C_Read... [09:23:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:21]Read from MH i2c: E2 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 0E 00 [09:23:21]MH_I2C_Read... [09:23:21]Read from MH i2c: E2 0E 00 0C 37 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CC [09:23:21]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [09:23:21]wFMCommunicate OK [09:23:21]SAM_PROTO_GetShiftState done [09:23:21]FM_GetShiftState done [09:23:21]opened in 1715818246 [09:23:21]opened+sec_in_day 1715904646 [09:23:21]quantity*price = 6000 [09:23:21]sum+1 = 6001 [09:23:21]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 110.00 НСП 1% : 0.97 НДС 12% : 11.68 Наличными: 110.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 25 16.05.2024 09:23 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4965 ФПД: 259449330497499 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T092327&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4965&fm=259449330497499&tin=02508201610067®Number=0000000000154221&sum=11000 0 [09:23:22]StoreToDocumentArchive [09:23:22]shift 44 fd 4965 [09:23:22]save to /storage/0044/doc_00004965 [09:23:22]save last doc name /storage/0044/doc_00004965 to /storage/kkm_last_doc_name [09:23:22]save OK [09:23:22]Clear old archive folders... [09:23:22]ProcessDocumentItem done err = 0, tmpTLVsize=384 [09:23:22]tlvbuf is 00CAECD0 [09:23:22]SAM_PROTO_ClearQueue [09:23:22]wFMCommunicate request_size=4 [09:23:22]MH_SAM_APDU [09:23:22]CAPDU: 80 09 00 00 [09:23:22]Write to MH i2c: E2 08 00 19 37 80 09 00 00 00 00 00 00 C2 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:23:22]Read from MH i2c: E2 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 03 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 03 00 19 37 00 90 00 C4 [09:23:22]RAPDU: 90 00 [09:23:22]wFMCommunicate OK [09:23:22]SAM_PROTO_ClearQueue done [09:23:22]KKMCreateOFDPacket [09:23:22]OFDProtocolAddRootSTLVToBuf [09:23:22]FM_MakeSignedData [09:23:22]FM_MakeSignedData [09:23:22]SAM_PROTO_SignData [09:23:22]wFMCommunicate request_size=4 [09:23:22]MH_SAM_APDU [09:23:22]CAPDU: 80 0D 01 02 [09:23:22]Write to MH i2c: E2 08 00 1A 37 80 0D 01 02 00 00 00 00 CA [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:23:22]Read from MH i2c: E2 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 03 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 03 00 1A 37 00 90 00 C5 [09:23:22]RAPDU: 90 00 [09:23:22]wFMCommunicate OK [09:23:22]wFMCommunicate request_size=255 [09:23:22]MH_SAM_APDU [09:23:22]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 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 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 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [09:23:22]Write to MH i2c: E2 02 01 1B 37 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 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 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 F8 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 92 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:22]Read from MH i2c: E2 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 03 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 03 00 1B 37 00 90 00 C6 [09:23:22]RAPDU: 90 00 [09:23:22]wFMCommunicate OK [09:23:22]wFMCommunicate request_size=143 [09:23:22]MH_SAM_APDU [09:23:22]CAPDU: 80 0D 02 02 8A 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 19 00 00 00 F4 03 04 00 8F D0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 65 13 00 00 35 04 06 00 EB F7 C1 2E 77 DB [09:23:22]Write to MH i2c: E2 92 00 1C 37 80 0D 02 02 8A 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 19 00 00 00 F4 03 04 00 8F D0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 65 13 00 00 35 04 06 00 EB F7 C1 2E 77 DB 00 00 07 [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:23:22]Read from MH i2c: E2 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 03 00 [09:23:22]MH_I2C_Read... [09:23:22]Read from MH i2c: E2 03 00 1C 37 00 90 00 C7 [09:23:22]RAPDU: 90 00 [09:23:22]wFMCommunicate OK [09:23:22]wFMCommunicate request_size=4 [09:23:22]MH_SAM_APDU [09:23:22]CAPDU: 80 0D 03 02 [09:23:22]Write to MH i2c: E2 08 00 1D 37 80 0D 03 02 00 00 00 00 CF [09:23:22]Write i2c OK [09:23:22]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 0B 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 0B 00 1D 37 00 04 3C 66 CD 74 3F 74 C2 90 00 2C [09:23:23]RAPDU: 04 3C 66 CD 74 3F 74 C2 90 00 [09:23:23]wFMCommunicate OK [09:23:23]SAM_PROTO_SignData done [09:23:23]FM_MakeSignedData done [09:23:23]CreateOFDProtocolMessage [09:23:23]wFMCommunicate request_size=4 [09:23:23]MH_SAM_APDU [09:23:23]CAPDU: 80 11 00 00 [09:23:23]Write to MH i2c: E2 08 00 1E 37 80 11 00 00 00 00 00 00 CF [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:23]Read from MH i2c: E2 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 17 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: E2 17 00 1E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 24 [09:23:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [09:23:23]wFMCommunicate OK [09:23:23]CreateOFDProtocolMessage done [09:23:23]OFDSenderStorePacket 4965 [09:23:23]StoreOFDPacket docnum=4965 [09:23:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 94 01 00 00 72 E2 8C 01 AD 57 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 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 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 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 19 00 00 00 F4 03 04 00 8F D0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 65 13 00 00 35 04 06 00 EB F7 C1 2E 77 DB 04 3C 66 CD 74 3F 74 C2 [09:23:23]CheckFolder [09:23:23]dirname=/storage/ofd_packets [09:23:23]CheckFolder done [09:23:23]ProducePacketName [09:23:23]name=ofd_packets/00004965 [09:23:23]NVStorageSaveData ofd_packets/00004965 [09:23:23]File name is /storage/ofd_packets/00004965 [09:23:23]Write 434 bytes [09:23:23]NVStorageSaveData done [09:23:23]OFDSenderStorePacket done [09:23:23]KKMCreateOFDPacket done [09:23:23]NVStorageSaveData kkm_last_timestamp [09:23:23]File name is /storage/kkm_last_timestamp [09:23:23]Write 4 bytes [09:23:23]NVStorageSaveData done [09:23:23]ExternCall_PrintAddStr [09:23:23]wPrintStart [09:23:23]Write to MH i2c: 01 00 00 1F 37 56 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: 01 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: 01 07 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: 01 07 00 1F 37 00 00 00 00 00 FF 0F 6B [09:23:23]RasterBufferAndPrint [09:23:23]line Счет N : (3)140975 [09:23:23]line ИНН: 02508201610067 [09:23:23]line Контрольно-Кассовый Чек [09:23:23]line ПРОДАЖА [09:23:23]line Товар: 4870112002775 [09:23:23]line Шок батончик ALBENI BITES 80гр [09:23:23]line 1.000 * 60.00 [09:23:23]line = 60.00 [09:23:23]line НДС 12% НСП 1% [09:23:23]line > о реализуемом товаре [09:23:23]line Товар: 4700000160358 [09:23:23]line Вода Легенда 1л [09:23:23]line 1.000 * 50.00 [09:23:23]line = 50.00 [09:23:23]line НДС 12% НСП 1% [09:23:23]line > о реализуемом товаре [09:23:23]line ИТОГО: 110.00 [09:23:23]line НСП 1% : 0.97 [09:23:23]line НДС 12% : 11.68 [09:23:23]line Наличными: 110.00 [09:23:23]line Безнал.: 0.00 [09:23:23]line Место: АЗС № 135 "Партнер Нефть" [09:23:23]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:23:23]line СНО: Общий режим [09:23:23]line Чек 25 16.05.2024 09:23 [09:23:23]line Смена: 44 ФФД: 1.0 [09:23:23]line ЗНМ: 0300000237 [09:23:23]line РНМ: 0000000000154221 [09:23:23]line Версия ККМ: v1.0 [09:23:23]line ФМ: 0000000000963259 [09:23:23]line ФД: 4965 [09:23:23]line ФПД: 259449330497499 [09:23:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T092327&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4965&fm=259449330497499&tin=02508201610067®Number=0000000000154221&sum=11000 [09:23:23]line 0 [09:23:23]OFD Sender: Processing packet 4965 [packets to send 4, broken 3] [09:23:23]ProducePacketName [09:23:23]name=ofd_packets/00004965 [09:23:23]OFD Sender: To server: pG, [09:23:23]CommunicateWithHost lk.salyk.kg:30040 [09:23:23]ConnectInit lk.salyk.kg [09:23:23]written 0, free lines is 4095 [09:23:23]Write to MH i2c: 01 00 00 4E 37 85 [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: 01 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: 01 07 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: 01 07 00 4E 37 00 00 00 00 00 F0 0B 87 [09:23:23]RasterBufferAndPrint [09:23:23]line [09:23:23]line [09:23:23]line [09:23:23]line [09:23:23]line [09:23:23]written 0, free lines is 3060 [09:23:23]MH_Cut [09:23:23]Write to MH i2c: D1 01 00 55 37 01 5E [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: D1 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: D1 01 00 [09:23:23]MH_I2C_Read... [09:23:23]Read from MH i2c: D1 01 00 55 37 00 5D [09:23:23]Write to MH i2c: 01 00 00 56 37 8D [09:23:23]Write i2c OK [09:23:23]MH_I2C_Read... [09:23:24]Connected sock=10 [09:23:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 94 01 00 00 72 E2 8C 01 AD 57 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 37 35 06 04 2B 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 42 49 54 45 53 20 38 30 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 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 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 19 00 00 00 F4 03 04 00 8F D0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 65 13 00 00 35 04 06 00 EB F7 C1 2E 77 DB 04 3C 66 CD 74 3F 74 C2 [09:23:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 42 CB 47 00 64 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 65 13 00 00 F4 03 04 00 54 7C 45 66 B6 04 01 00 00 22 2F 24 56 4B 6D B3 A1 [09:23:24]CommunicateWithHost err = 0 [09:23:24]CheckOFDResponse [09:23:24]1017 (14) - 77093643461234 [09:23:24]1041 (16) - 0000000000963259 [09:23:24]1040 (4) - 4965 [09:23:24]1012 (4) - 16.05.2024 03:24 [09:23:24]1206 (1) - 0 [09:23:24]OFD Sender: Remove packet 4965 [09:23:24]ProducePacketName [09:23:24]name=ofd_packets/00004965 [09:23:24]NVStorageDeleteData [09:23:25]OFD Sender: No OFD packet to send [09:23:25]*** Cut start [09:23:25]*** Partial cut [09:23:25]*** CUTSNS_PIN = 1 [09:23:25]*** CUTSNS_PIN = 0 [09:23:25]*** Brake cut motor [09:23:25]Read from MH i2c: 01 [09:23:25]MH_I2C_Read... [09:23:25]*** Stop cut motor [09:23:25]*** Cut end [09:23:25]Read from MH i2c: 01 07 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: 01 07 00 56 37 00 00 00 00 00 FF 0F A2 [09:23:25]process_action close_receipt done [09:23:25]requested_data is exist [09:23:25]produce_requested_data [09:23:25]requested_item fm.sn is exist - process it [09:23:25]wFMCommunicate request_size=4 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 11 00 00 [09:23:25]Write to MH i2c: E2 08 00 57 37 80 11 00 00 00 00 00 00 08 [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:23:25]Read from MH i2c: E2 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 17 00 [09:23:25]MH_I2C_Read... [09:23:25]Read from MH i2c: E2 17 00 57 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 5D [09:23:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [09:23:25]wFMCommunicate OK [09:23:25]requested_item fd.num is exist - process it [09:23:25]SAM_PROTO_GetFieldsCounters [09:23:25]wFMCommunicate request_size=4 [09:23:25]MH_SAM_APDU [09:23:25]CAPDU: 80 13 00 00 [09:23:25]Write to MH i2c: E2 08 00 58 37 80 13 00 00 00 00 00 00 0B [09:23:25]Write i2c OK [09:23:25]MH_I2C_Read... [09:23:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:23:26]Read from MH i2c: E2 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 62 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 62 00 58 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 65 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [09:23:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 65 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:23:26]wFMCommunicate OK [09:23:26]SAM_PROTO_GetFieldsCounters done [09:23:26]requested_item shift.num is exist - process it [09:23:26]requested_item shift.opened is exist - process it [09:23:26]req_shift_opened [09:23:26]FM_GetShiftState [09:23:26]SAM_PROTO_GetShiftState [09:23:26]wFMCommunicate request_size=4 [09:23:26]MH_SAM_APDU [09:23:26]CAPDU: 80 13 01 00 [09:23:26]Write to MH i2c: E2 08 00 59 37 80 13 01 00 00 00 00 00 0D [09:23:26]Write i2c OK [09:23:26]MH_I2C_Read... [09:23:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:23:26]Read from MH i2c: E2 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 0E 00 [09:23:26]MH_I2C_Read... [09:23:26]Read from MH i2c: E2 0E 00 59 37 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 19 [09:23:26]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [09:23:26]wFMCommunicate OK [09:23:26]SAM_PROTO_GetShiftState done [09:23:26]FM_GetShiftState done [09:23:26]req_shift_opened done [09:23:26]requested_item shift.open_date is exist - process it [09:23:26]req_shift_open_date [09:23:26]req_shift_open_date done [09:23:26]produce_requested_data done [09:23:26]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4965,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [09:23:26]process_action_free close_receipt [09:23:26]json_value_free [09:23:26]json_value_free done [09:23:26]process_json_proto returns [09:23:26]Send response to host [09:23:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4965,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [09:23:26]free response buf [09:23:26]execute_script done [09:23:26]execute_script returns [09:23:26]free content buf [09:23:26]Sock 8.Close socket [09:23:26]Sock 8.Thread stoped [09:23:30]OFD Sender: No OFD packet to send [09:23:35]OFD Sender: No OFD packet to send [09:23:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:35]OFD Sender: No OFD packet to send [09:36:40]OFD Sender: No OFD packet to send [09:36:45]OFD Sender: No OFD packet to send [09:36:50]OFD Sender: No OFD packet to send [09:36:55]OFD Sender: No OFD packet to send [09:37:00]OFD Sender: No OFD packet to send [09:37:05]OFD Sender: No OFD packet to send [09:37:10]OFD Sender: No OFD packet to send [09:37:15]OFD Sender: No OFD packet to send [09:37:20]OFD Sender: No OFD packet to send [09:37:25]OFD Sender: No OFD packet to send [09:37:30]OFD Sender: No OFD packet to send [09:37:35]OFD Sender: No OFD packet to send [09:37:40]OFD Sender: No OFD packet to send [09:37:45]OFD Sender: No OFD packet to send [09:37:50]OFD Sender: No OFD packet to send [09:37:55]OFD Sender: No OFD packet to send [09:38:00]OFD Sender: No OFD packet to send [09:38:05]OFD Sender: No OFD packet to send [09:38:10]OFD Sender: No OFD packet to send [09:38:15]OFD Sender: No OFD packet to send [09:38:20]OFD Sender: No OFD packet to send [09:38:25]OFD Sender: No OFD packet to send [09:38:30]OFD Sender: No OFD packet to send [09:38:35]OFD Sender: No OFD packet to send [09:38:40]OFD Sender: No OFD packet to send [09:38:45]OFD Sender: No OFD packet to send [09:38:50]OFD Sender: No OFD packet to send [09:38:55]OFD Sender: No OFD packet to send [09:39:00]OFD Sender: No OFD packet to send [09:39:05]OFD Sender: No OFD packet to send [09:39:10]OFD Sender: No OFD packet to send [09:39:15]OFD Sender: No OFD packet to send [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:20]OFD Sender: No OFD packet to send [09:40:25]OFD Sender: No OFD packet to send [09:40:30]OFD Sender: No OFD packet to send [09:40:35]OFD Sender: No OFD packet to send [09:40:40]OFD Sender: No OFD packet to send [09:40:45]OFD Sender: No OFD packet to send [09:40:50]OFD Sender: No OFD packet to send [09:40:55]OFD Sender: No OFD packet to send [09:41:00]OFD Sender: No OFD packet to send [09:41:05]OFD Sender: No OFD packet to send [09:41:10]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [09:41:41]OFD Sender: No OFD packet to send [09:41:46]OFD Sender: No OFD packet to send [09:41:51]OFD Sender: No OFD packet to send [09:41:56]OFD Sender: No OFD packet to send [09:42:01]OFD Sender: No OFD packet to send [09:42:06]OFD Sender: No OFD packet to send [09:42:11]OFD Sender: No OFD packet to send [09:42:16]OFD Sender: No OFD packet to send [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:06]accept exits with 9 [09:47:06]New connection [09:47:06]New thread 3067444580 created [09:47:06]Thread 3067587940 joined [09:47:06]Waiting for new connection... [09:47:06] Sock 9.Parse request [09:47:06]Sock 9.Check first char [09:47:06]Sock 9.First char is OK [09:47:06]request: POST /json_proto HTTP/1.0 [09:47:06]Method: POST [09:47:06]URL: /json_proto [09:47:06]Method is POST - this is cgi request [09:47:06]url: /json_proto [09:47:06]query_string will be loaded in cgi processing [09:47:06]execute_cgi json_proto POST (null) [09:47:06]execute_cgi path=json_proto method=POST [09:47:06]POST find Content-Length [09:47:06]Host: 172.17.44.4:8080 [09:47:06]Content-Length: 647 [09:47:06]Content-Type: application/json [09:47:06] [09:47:06]POST finish read [09:47:06]Found Content-Length = 647 [09:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140976", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:06]execute_script... [09:47:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140976", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:06]POST & json_proto [09:47:06]process_json_proto [09:47:06]json parsed OK: [09:47:06]protocol is kg_v1.0 [09:47:06]action value=close_receipt [09:47:06]process_action close_receipt [09:47:06]cmd_close_receipt [09:47:06]MH_GetDate [09:47:06]Write to MH i2c: F0 00 00 5A 37 80 [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: F0 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: F0 09 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: F0 09 00 5A 37 00 21 D6 45 66 6C E9 28 66 0E [09:47:06]GetLastDocTimeStamp 1715851407 [09:47:06]current date 1715852833 [09:47:06]FM_GetShiftState [09:47:06]SAM_PROTO_GetShiftState [09:47:06]wFMCommunicate request_size=4 [09:47:06]MH_SAM_APDU [09:47:06]CAPDU: 80 13 01 00 [09:47:06]Write to MH i2c: E2 08 00 5B 37 80 13 01 00 00 00 00 00 0F [09:47:06]Write i2c OK [09:47:06]MH_I2C_Read... [09:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:06]Read from MH i2c: E2 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 0E 00 [09:47:06]MH_I2C_Read... [09:47:06]Read from MH i2c: E2 0E 00 5B 37 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 1B [09:47:06]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [09:47:06]wFMCommunicate OK [09:47:06]SAM_PROTO_GetShiftState done [09:47:06]FM_GetShiftState done [09:47:06]opened in 1715818246 [09:47:06]opened+sec_in_day 1715904646 [09:47:06]quantity*price = 26500 [09:47:06]sum+1 = 26501 [09:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 26 16.05.2024 09:47 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4966 ФПД: 39410506987648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T094713&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4966&fm=39410506987648&tin=02508201610067®Number=0000000000154221&sum=26500 0 [09:47:07]StoreToDocumentArchive [09:47:07]shift 44 fd 4966 [09:47:07]save to /storage/0044/doc_00004966 [09:47:07]save last doc name /storage/0044/doc_00004966 to /storage/kkm_last_doc_name [09:47:07]save OK [09:47:07]Clear old archive folders... [09:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=279 [09:47:07]tlvbuf is 00D0B520 [09:47:07]SAM_PROTO_ClearQueue [09:47:07]wFMCommunicate request_size=4 [09:47:07]MH_SAM_APDU [09:47:07]CAPDU: 80 09 00 00 [09:47:07]Write to MH i2c: E2 08 00 68 37 80 09 00 00 00 00 00 00 11 [09:47:07]Write i2c OK [09:47:07]MH_I2C_Read... [09:47:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:08]Read from MH i2c: E2 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 03 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 03 00 68 37 00 90 00 13 [09:47:08]RAPDU: 90 00 [09:47:08]wFMCommunicate OK [09:47:08]SAM_PROTO_ClearQueue done [09:47:08]KKMCreateOFDPacket [09:47:08]OFDProtocolAddRootSTLVToBuf [09:47:08]FM_MakeSignedData [09:47:08]FM_MakeSignedData [09:47:08]SAM_PROTO_SignData [09:47:08]wFMCommunicate request_size=4 [09:47:08]MH_SAM_APDU [09:47:08]CAPDU: 80 0D 01 02 [09:47:08]Write to MH i2c: E2 08 00 69 37 80 0D 01 02 00 00 00 00 19 [09:47:08]Write i2c OK [09:47:08]MH_I2C_Read... [09:47:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:08]Read from MH i2c: E2 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 03 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 03 00 69 37 00 90 00 14 [09:47:08]RAPDU: 90 00 [09:47:08]wFMCommunicate OK [09:47:08]wFMCommunicate request_size=255 [09:47:08]MH_SAM_APDU [09:47:08]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 21 D6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 [09:47:08]Write to MH i2c: E2 02 01 6A 37 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 21 D6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 00 00 66 [09:47:08]Write i2c OK [09:47:08]MH_I2C_Read... [09:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:08]Read from MH i2c: E2 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 03 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 03 00 6A 37 00 90 00 15 [09:47:08]RAPDU: 90 00 [09:47:08]wFMCommunicate OK [09:47:08]wFMCommunicate request_size=38 [09:47:08]MH_SAM_APDU [09:47:08]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 66 13 00 00 35 04 06 00 23 D7 F9 44 F8 80 [09:47:08]Write to MH i2c: E2 29 00 6B 37 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 66 13 00 00 35 04 06 00 23 D7 F9 44 F8 80 00 00 CF [09:47:08]Write i2c OK [09:47:08]MH_I2C_Read... [09:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:08]Read from MH i2c: E2 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 03 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 03 00 6B 37 00 90 00 16 [09:47:08]RAPDU: 90 00 [09:47:08]wFMCommunicate OK [09:47:08]wFMCommunicate request_size=4 [09:47:08]MH_SAM_APDU [09:47:08]CAPDU: 80 0D 03 02 [09:47:08]Write to MH i2c: E2 08 00 6C 37 80 0D 03 02 00 00 00 00 1E [09:47:08]Write i2c OK [09:47:08]MH_I2C_Read... [09:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:08]Read from MH i2c: E2 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 0B 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 0B 00 6C 37 00 6E C1 08 C3 6C E8 95 48 90 00 4A [09:47:08]RAPDU: 6E C1 08 C3 6C E8 95 48 90 00 [09:47:08]wFMCommunicate OK [09:47:08]SAM_PROTO_SignData done [09:47:08]FM_MakeSignedData done [09:47:08]CreateOFDProtocolMessage [09:47:08]wFMCommunicate request_size=4 [09:47:08]MH_SAM_APDU [09:47:08]CAPDU: 80 11 00 00 [09:47:08]Write to MH i2c: E2 08 00 6D 37 80 11 00 00 00 00 00 00 1E [09:47:08]Write i2c OK [09:47:08]MH_I2C_Read... [09:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:08]Read from MH i2c: E2 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 17 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: E2 17 00 6D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 73 [09:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [09:47:08]wFMCommunicate OK [09:47:08]CreateOFDProtocolMessage done [09:47:08]OFDSenderStorePacket 4966 [09:47:08]StoreOFDPacket docnum=4966 [09:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2B 01 00 00 92 F9 23 01 17 97 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 21 D6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 66 13 00 00 35 04 06 00 23 D7 F9 44 F8 80 6E C1 08 C3 6C E8 95 48 [09:47:08]CheckFolder [09:47:08]dirname=/storage/ofd_packets [09:47:08]CheckFolder done [09:47:08]ProducePacketName [09:47:08]name=ofd_packets/00004966 [09:47:08]NVStorageSaveData ofd_packets/00004966 [09:47:08]File name is /storage/ofd_packets/00004966 [09:47:08]Write 329 bytes [09:47:08]NVStorageSaveData done [09:47:08]OFDSenderStorePacket done [09:47:08]KKMCreateOFDPacket done [09:47:08]NVStorageSaveData kkm_last_timestamp [09:47:08]File name is /storage/kkm_last_timestamp [09:47:08]Write 4 bytes [09:47:08]NVStorageSaveData done [09:47:08]ExternCall_PrintAddStr [09:47:08]wPrintStart [09:47:08]Write to MH i2c: 01 00 00 6E 37 A5 [09:47:08]Write i2c OK [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: 01 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: 01 07 00 [09:47:08]MH_I2C_Read... [09:47:08]Read from MH i2c: 01 07 00 6E 37 00 00 00 00 00 FF 0F BA [09:47:08]RasterBufferAndPrint [09:47:08]line Счет N : (3)140976 [09:47:08]line ИНН: 02508201610067 [09:47:08]line Контрольно-Кассовый Чек [09:47:08]line ПРОДАЖА [09:47:08]line Товар: 90448300 [09:47:08]line Энерг напиток Red Bull 0,355л [09:47:08]line 1.000 * 265.00 [09:47:08]line = 265.00 [09:47:08]line НДС 12% НСП 1% [09:47:08]line > о реализуемом товаре [09:47:08]line ИТОГО: 265.00 [09:47:08]line НСП 1% : 2.34 [09:47:08]line НДС 12% : 28.14 [09:47:08]line Наличными: 265.00 [09:47:08]line Безнал.: 0.00 [09:47:08]line Место: АЗС № 135 "Партнер Нефть" [09:47:08]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:47:08]line СНО: Общий режим [09:47:08]line Чек 26 16.05.2024 09:47 [09:47:08]line Смена: 44 ФФД: 1.0 [09:47:08]line ЗНМ: 0300000237 [09:47:08]line РНМ: 0000000000154221 [09:47:08]line Версия ККМ: v1.0 [09:47:08]line ФМ: 0000000000963259 [09:47:08]line ФД: 4966 [09:47:08]line ФПД: 39410506987648 [09:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T094713&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4966&fm=39410506987648&tin=02508201610067®Number=0000000000154221&sum=26500 [09:47:08]line 0 [09:47:08]OFD Sender: Processing packet 4966 [packets to send 4, broken 3] [09:47:08]ProducePacketName [09:47:08]name=ofd_packets/00004966 [09:47:08]OFD Sender: To server: pG, [09:47:08]CommunicateWithHost lk.salyk.kg:30040 [09:47:08]ConnectInit lk.salyk.kg [09:47:08]written 0, free lines is 4095 [09:47:09]Connected sock=8 [09:47:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2B 01 00 00 92 F9 23 01 17 97 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 21 D6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 66 13 00 00 35 04 06 00 23 D7 F9 44 F8 80 6E C1 08 C3 6C E8 95 48 [09:47:09]Write to MH i2c: 01 00 00 96 37 CD [09:47:09]Write i2c OK [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: 01 [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: 01 07 00 [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: 01 07 00 96 37 00 00 00 00 00 A2 0C 82 [09:47:09]RasterBufferAndPrint [09:47:09]line [09:47:09]line [09:47:09]line [09:47:09]line [09:47:09]line [09:47:09]written 0, free lines is 3239 [09:47:09]MH_Cut [09:47:09]Write to MH i2c: D1 01 00 9D 37 01 A6 [09:47:09]Write i2c OK [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: D1 [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: D1 01 00 [09:47:09]MH_I2C_Read... [09:47:09]Read from MH i2c: D1 01 00 9D 37 00 A5 [09:47:09]Write to MH i2c: 01 00 00 9E 37 D5 [09:47:09]Write i2c OK [09:47:09]MH_I2C_Read... [09:47:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 55 DA 47 00 CF 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 66 13 00 00 F4 03 04 00 E5 81 45 66 B6 04 01 00 00 81 EA D4 70 D8 F5 55 A7 [09:47:09]CommunicateWithHost err = 0 [09:47:09]CheckOFDResponse [09:47:09]1017 (14) - 77093643461234 [09:47:09]1041 (16) - 0000000000963259 [09:47:09]1040 (4) - 4966 [09:47:09]1012 (4) - 16.05.2024 03:47 [09:47:09]1206 (1) - 0 [09:47:09]OFD Sender: Remove packet 4966 [09:47:09]ProducePacketName [09:47:09]name=ofd_packets/00004966 [09:47:09]NVStorageDeleteData [09:47:09]OFD Sender: No OFD packet to send [09:47:10]*** Cut start [09:47:10]*** Partial cut [09:47:10]*** CUTSNS_PIN = 1 [09:47:10]*** CUTSNS_PIN = 0 [09:47:10]*** Brake cut motor [09:47:11]Read from MH i2c: 01 [09:47:11]MH_I2C_Read... [09:47:11]*** Stop cut motor [09:47:11]*** Cut end [09:47:11]Read from MH i2c: 01 07 00 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: 01 07 00 9E 37 00 00 00 00 00 FF 0F EA [09:47:11]process_action close_receipt done [09:47:11]requested_data is exist [09:47:11]produce_requested_data [09:47:11]requested_item fm.sn is exist - process it [09:47:11]wFMCommunicate request_size=4 [09:47:11]MH_SAM_APDU [09:47:11]CAPDU: 80 11 00 00 [09:47:11]Write to MH i2c: E2 08 00 9F 37 80 11 00 00 00 00 00 00 50 [09:47:11]Write i2c OK [09:47:11]MH_I2C_Read... [09:47:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:11]Read from MH i2c: E2 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: E2 17 00 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: E2 17 00 9F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A5 [09:47:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [09:47:11]wFMCommunicate OK [09:47:11]requested_item fd.num is exist - process it [09:47:11]SAM_PROTO_GetFieldsCounters [09:47:11]wFMCommunicate request_size=4 [09:47:11]MH_SAM_APDU [09:47:11]CAPDU: 80 13 00 00 [09:47:11]Write to MH i2c: E2 08 00 A0 37 80 13 00 00 00 00 00 00 53 [09:47:11]Write i2c OK [09:47:11]MH_I2C_Read... [09:47:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:11]Read from MH i2c: E2 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: E2 62 00 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: E2 62 00 A0 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 66 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [09:47:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 66 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:11]wFMCommunicate OK [09:47:11]SAM_PROTO_GetFieldsCounters done [09:47:11]requested_item shift.num is exist - process it [09:47:11]requested_item shift.opened is exist - process it [09:47:11]req_shift_opened [09:47:11]FM_GetShiftState [09:47:11]SAM_PROTO_GetShiftState [09:47:11]wFMCommunicate request_size=4 [09:47:11]MH_SAM_APDU [09:47:11]CAPDU: 80 13 01 00 [09:47:11]Write to MH i2c: E2 08 00 A1 37 80 13 01 00 00 00 00 00 55 [09:47:11]Write i2c OK [09:47:11]MH_I2C_Read... [09:47:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:11]Read from MH i2c: E2 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: E2 0E 00 [09:47:11]MH_I2C_Read... [09:47:11]Read from MH i2c: E2 0E 00 A1 37 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 61 [09:47:11]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [09:47:11]wFMCommunicate OK [09:47:11]SAM_PROTO_GetShiftState done [09:47:11]FM_GetShiftState done [09:47:11]req_shift_opened done [09:47:11]requested_item shift.open_date is exist - process it [09:47:11]req_shift_open_date [09:47:11]req_shift_open_date done [09:47:11]produce_requested_data done [09:47:11]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4966,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [09:47:11]process_action_free close_receipt [09:47:11]json_value_free [09:47:11]json_value_free done [09:47:11]process_json_proto returns [09:47:11]Send response to host [09:47:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4966,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [09:47:11]free response buf [09:47:11]execute_script done [09:47:11]execute_script returns [09:47:11]free content buf [09:47:11]Sock 9.Close socket [09:47:11]Sock 9.Thread stoped [09:47:14]OFD Sender: No OFD packet to send [09:47:19]OFD Sender: No OFD packet to send [09:47:24]OFD Sender: No OFD packet to send [09:47:29]OFD Sender: No OFD packet to send [09:47:34]OFD Sender: No OFD packet to send [09:47:39]OFD Sender: No OFD packet to send [09:47:44]OFD Sender: No OFD packet to send [09:47:49]OFD Sender: No OFD packet to send [09:47:55]OFD Sender: No OFD packet to send [09:48:00]OFD Sender: No OFD packet to send [09:48:05]OFD Sender: No OFD packet to send [09:48:10]OFD Sender: No OFD packet to send [09:48:15]OFD Sender: No OFD packet to send [09:48:20]OFD Sender: No OFD packet to send [09:48:25]OFD Sender: No OFD packet to send [09:48:30]OFD Sender: No OFD packet to send [09:48:35]OFD Sender: No OFD packet to send [09:48:40]OFD Sender: No OFD packet to send [09:48:45]OFD Sender: No OFD packet to send [09:48:50]OFD Sender: No OFD packet to send [09:48:55]OFD Sender: No OFD packet to send [09:49:00]OFD Sender: No OFD packet to send [09:49:05]OFD Sender: No OFD packet to send [09:49:09]accept exits with 10 [09:49:09]New connection [09:49:09]New thread 3067587940 created [09:49:09]Thread 3067444580 joined [09:49:09]Waiting for new connection... [09:49:09] Sock 10.Parse request [09:49:09]Sock 10.Check first char [09:49:09]Sock 10.First char is OK [09:49:09]request: POST /json_proto HTTP/1.0 [09:49:09]Method: POST [09:49:09]URL: /json_proto [09:49:09]Method is POST - this is cgi request [09:49:09]url: /json_proto [09:49:09]query_string will be loaded in cgi processing [09:49:09]execute_cgi json_proto POST (null) [09:49:09]execute_cgi path=json_proto method=POST [09:49:09]POST find Content-Length [09:49:09]Host: 172.17.44.4:8080 [09:49:09]Content-Length: 678 [09:49:09]Content-Type: application/json [09:49:09] [09:49:09]POST finish read [09:49:09]Found Content-Length = 678 [09:49:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:09]execute_script... [09:49:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992660", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:09]POST & json_proto [09:49:09]process_json_proto [09:49:09]json parsed OK: [09:49:09]protocol is kg_v1.0 [09:49:09]action value=close_receipt [09:49:09]process_action close_receipt [09:49:09]cmd_close_receipt [09:49:09]MH_GetDate [09:49:09]Write to MH i2c: F0 00 00 A2 37 C8 [09:49:09]Write i2c OK [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: F0 [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: F0 09 00 [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: F0 09 00 A2 37 00 9C D6 45 66 6C E9 28 66 D1 [09:49:09]GetLastDocTimeStamp 1715852833 [09:49:09]current date 1715852956 [09:49:09]FM_GetShiftState [09:49:09]SAM_PROTO_GetShiftState [09:49:09]wFMCommunicate request_size=4 [09:49:09]MH_SAM_APDU [09:49:09]CAPDU: 80 13 01 00 [09:49:09]Write to MH i2c: E2 08 00 A3 37 80 13 01 00 00 00 00 00 57 [09:49:09]Write i2c OK [09:49:09]MH_I2C_Read... [09:49:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:09]Read from MH i2c: E2 [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: E2 0E 00 [09:49:09]MH_I2C_Read... [09:49:09]Read from MH i2c: E2 0E 00 A3 37 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 63 [09:49:09]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [09:49:09]wFMCommunicate OK [09:49:09]SAM_PROTO_GetShiftState done [09:49:09]FM_GetShiftState done [09:49:09]opened in 1715818246 [09:49:09]opened+sec_in_day 1715904646 [09:49:09]quantity*price = 40013 [09:49:09]sum+1 = 40014 [09:49:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 27 16.05.2024 09:49 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4967 ФПД: 15541914258008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T094916&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4967&fm=15541914258008&tin=02508201610067®Number=0000000000154221&sum=40000 [09:49:10]StoreToDocumentArchive [09:49:10]shift 44 fd 4967 [09:49:10]save to /storage/0044/doc_00004967 [09:49:10]save last doc name /storage/0044/doc_00004967 to /storage/kkm_last_doc_name [09:49:10]save OK [09:49:10]Clear old archive folders... [09:49:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:49:10]tlvbuf is B6FF09F0 [09:49:10]SAM_PROTO_ClearQueue [09:49:10]wFMCommunicate request_size=4 [09:49:10]MH_SAM_APDU [09:49:10]CAPDU: 80 09 00 00 [09:49:10]Write to MH i2c: E2 08 00 B0 37 80 09 00 00 00 00 00 00 59 [09:49:10]Write i2c OK [09:49:10]MH_I2C_Read... [09:49:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:10]Read from MH i2c: E2 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: E2 03 00 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: E2 03 00 B0 37 00 90 00 5B [09:49:10]RAPDU: 90 00 [09:49:10]wFMCommunicate OK [09:49:10]SAM_PROTO_ClearQueue done [09:49:10]KKMCreateOFDPacket [09:49:10]OFDProtocolAddRootSTLVToBuf [09:49:10]FM_MakeSignedData [09:49:10]FM_MakeSignedData [09:49:10]SAM_PROTO_SignData [09:49:10]wFMCommunicate request_size=4 [09:49:10]MH_SAM_APDU [09:49:10]CAPDU: 80 0D 01 02 [09:49:10]Write to MH i2c: E2 08 00 B1 37 80 0D 01 02 00 00 00 00 61 [09:49:10]Write i2c OK [09:49:10]MH_I2C_Read... [09:49:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:10]Read from MH i2c: E2 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: E2 03 00 [09:49:10]MH_I2C_Read... [09:49:10]Read from MH i2c: E2 03 00 B1 37 00 90 00 5C [09:49:10]RAPDU: 90 00 [09:49:10]wFMCommunicate OK [09:49:10]wFMCommunicate request_size=255 [09:49:10]MH_SAM_APDU [09:49:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9C D6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 67 13 00 00 35 04 06 00 0E [09:49:10]Write to MH i2c: E2 02 01 B2 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9C D6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 67 13 00 00 35 04 06 00 0E 00 00 AA [09:49:10]Write i2c OK [09:49:10]MH_I2C_Read... [09:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:11]Read from MH i2c: E2 [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: E2 03 00 [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: E2 03 00 B2 37 00 90 00 5D [09:49:11]RAPDU: 90 00 [09:49:11]wFMCommunicate OK [09:49:11]wFMCommunicate request_size=10 [09:49:11]MH_SAM_APDU [09:49:11]CAPDU: 80 0D 02 02 05 22 A2 47 4A 58 [09:49:11]Write to MH i2c: E2 0D 00 B3 37 80 0D 02 02 05 00 22 A2 47 4A 58 00 00 1B [09:49:11]Write i2c OK [09:49:11]MH_I2C_Read... [09:49:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:11]Read from MH i2c: E2 [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: E2 03 00 [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: E2 03 00 B3 37 00 90 00 5E [09:49:11]RAPDU: 90 00 [09:49:11]wFMCommunicate OK [09:49:11]wFMCommunicate request_size=4 [09:49:11]MH_SAM_APDU [09:49:11]CAPDU: 80 0D 03 02 [09:49:11]Write to MH i2c: E2 08 00 B4 37 80 0D 03 02 00 00 00 00 66 [09:49:11]Write i2c OK [09:49:11]MH_I2C_Read... [09:49:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:11]Read from MH i2c: E2 [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: E2 0B 00 [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: E2 0B 00 B4 37 00 A1 9F E0 01 D9 77 8E EF 90 00 55 [09:49:11]RAPDU: A1 9F E0 01 D9 77 8E EF 90 00 [09:49:11]wFMCommunicate OK [09:49:11]SAM_PROTO_SignData done [09:49:11]FM_MakeSignedData done [09:49:11]CreateOFDProtocolMessage [09:49:11]wFMCommunicate request_size=4 [09:49:11]MH_SAM_APDU [09:49:11]CAPDU: 80 11 00 00 [09:49:11]Write to MH i2c: E2 08 00 B5 37 80 11 00 00 00 00 00 00 66 [09:49:11]Write i2c OK [09:49:11]MH_I2C_Read... [09:49:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:11]Read from MH i2c: E2 [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: E2 17 00 [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: E2 17 00 B5 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 BB [09:49:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [09:49:11]wFMCommunicate OK [09:49:11]CreateOFDProtocolMessage done [09:49:11]OFDSenderStorePacket 4967 [09:49:11]StoreOFDPacket docnum=4967 [09:49:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 97 5A 07 01 63 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9C D6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 67 13 00 00 35 04 06 00 0E 22 A2 47 4A 58 A1 9F E0 01 D9 77 8E EF [09:49:11]CheckFolder [09:49:11]dirname=/storage/ofd_packets [09:49:11]CheckFolder done [09:49:11]ProducePacketName [09:49:11]name=ofd_packets/00004967 [09:49:11]NVStorageSaveData ofd_packets/00004967 [09:49:11]File name is /storage/ofd_packets/00004967 [09:49:11]Write 301 bytes [09:49:11]NVStorageSaveData done [09:49:11]OFDSenderStorePacket done [09:49:11]KKMCreateOFDPacket done [09:49:11]NVStorageSaveData kkm_last_timestamp [09:49:11]File name is /storage/kkm_last_timestamp [09:49:11]Write 4 bytes [09:49:11]NVStorageSaveData done [09:49:11]ExternCall_PrintAddStr [09:49:11]wPrintStart [09:49:11]Write to MH i2c: 01 00 00 B6 37 ED [09:49:11]Write i2c OK [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: 01 [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: 01 07 00 [09:49:11]MH_I2C_Read... [09:49:11]Read from MH i2c: 01 07 00 B6 37 00 00 00 00 00 FF 0F 02 [09:49:11]RasterBufferAndPrint [09:49:11]line Счет N : (1)1992660 [09:49:11]line ИНН: 02508201610067 [09:49:11]line Контрольно-Кассовый Чек [09:49:11]line ПРОДАЖА [09:49:11]line ТРК (МРК, ГНК) : 53 [09:49:11]line Товар: 2710124130 [09:49:11]line Аи-92-К-4 [09:49:11]line 5.990 * 66.80 [09:49:11]line = 400.13 [09:49:11]line НДС 12% НСП 1% [09:49:11]line > о реализуемом товаре [09:49:11]line ОКРУГЛЕНИЕ: -0.13 [09:49:11]line ИТОГО: 400.00 [09:49:11]line Внесено: 400.00 [09:49:11]line СДАЧА: 0.00 [09:49:11]line НСП 1% : 3.54 [09:49:11]line НДС 12% : 42.49 [09:49:11]line Наличными: 400.00 [09:49:11]line Безнал.: 0.00 [09:49:11]line Место: АЗС № 135 "Партнер Нефть" [09:49:11]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [09:49:11]line СНО: Общий режим [09:49:11]line Чек 27 16.05.2024 09:49 [09:49:11]line Смена: 44 ФФД: 1.0 [09:49:11]line ЗНМ: 0300000237 [09:49:11]line РНМ: 0000000000154221 [09:49:11]line Версия ККМ: v1.0 [09:49:11]line ФМ: 0000000000963259 [09:49:11]line ФД: 4967 [09:49:11]line ФПД: 15541914258008 [09:49:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T094916&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4967&fm=15541914258008&tin=02508201610067®Number=0000000000154221&sum=40000 [09:49:11]OFD Sender: Processing packet 4967 [packets to send 4, broken 3] [09:49:11]ProducePacketName [09:49:11]name=ofd_packets/00004967 [09:49:11]OFD Sender: To server: pG, [09:49:11]CommunicateWithHost lk.salyk.kg:30040 [09:49:11]ConnectInit lk.salyk.kg [09:49:11]written 0, free lines is 4095 [09:49:12]Connected sock=11 [09:49:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 97 5A 07 01 63 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 9C D6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 67 13 00 00 35 04 06 00 0E 22 A2 47 4A 58 A1 9F E0 01 D9 77 8E EF [09:49:12]Write to MH i2c: 01 00 00 E1 37 18 [09:49:12]Write i2c OK [09:49:12]MH_I2C_Read... [09:49:12]Read from MH i2c: 01 [09:49:12]MH_I2C_Read... [09:49:12]Read from MH i2c: 01 07 00 [09:49:12]MH_I2C_Read... [09:49:12]Read from MH i2c: 01 07 00 E1 37 00 00 00 00 00 64 0C 8F [09:49:12]RasterBufferAndPrint [09:49:12]line [09:49:12]line [09:49:12]line [09:49:12]line [09:49:12]line [09:49:12]written 0, free lines is 3176 [09:49:12]MH_Cut [09:49:12]Write to MH i2c: D1 01 00 E8 37 01 F1 [09:49:12]Write i2c OK [09:49:12]MH_I2C_Read... [09:49:12]Read from MH i2c: D1 [09:49:12]MH_I2C_Read... [09:49:12]Read from MH i2c: D1 01 00 [09:49:12]MH_I2C_Read... [09:49:12]Read from MH i2c: D1 01 00 E8 37 00 F0 [09:49:12]Write to MH i2c: 01 00 00 E9 37 20 [09:49:12]Write i2c OK [09:49:12]MH_I2C_Read... [09:49:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 13 48 47 00 76 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 67 13 00 00 F4 03 04 00 60 82 45 66 B6 04 01 00 00 C2 C0 37 2B 37 FD FE CA [09:49:12]CommunicateWithHost err = 0 [09:49:12]CheckOFDResponse [09:49:12]1017 (14) - 77093643461234 [09:49:12]1041 (16) - 0000000000963259 [09:49:12]1040 (4) - 4967 [09:49:12]1012 (4) - 16.05.2024 03:49 [09:49:12]1206 (1) - 0 [09:49:12]OFD Sender: Remove packet 4967 [09:49:12]ProducePacketName [09:49:12]name=ofd_packets/00004967 [09:49:12]NVStorageDeleteData [09:49:12]OFD Sender: No OFD packet to send [09:49:13]*** Cut start [09:49:13]*** Partial cut [09:49:13]*** CUTSNS_PIN = 1 [09:49:13]*** CUTSNS_PIN = 0 [09:49:13]*** Brake cut motor [09:49:13]Read from MH i2c: 01 [09:49:13]MH_I2C_Read... [09:49:13]*** Stop cut motor [09:49:13]*** Cut end [09:49:13]Read from MH i2c: 01 07 00 [09:49:13]MH_I2C_Read... [09:49:13]Read from MH i2c: 01 07 00 E9 37 00 00 00 00 00 FF 0F 35 [09:49:13]process_action close_receipt done [09:49:13]requested_data is exist [09:49:13]produce_requested_data [09:49:13]requested_item fm.sn is exist - process it [09:49:13]wFMCommunicate request_size=4 [09:49:13]MH_SAM_APDU [09:49:13]CAPDU: 80 11 00 00 [09:49:13]Write to MH i2c: E2 08 00 EA 37 80 11 00 00 00 00 00 00 9B [09:49:13]Write i2c OK [09:49:13]MH_I2C_Read... [09:49:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:14]Read from MH i2c: E2 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: E2 17 00 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: E2 17 00 EA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F0 [09:49:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [09:49:14]wFMCommunicate OK [09:49:14]requested_item fd.num is exist - process it [09:49:14]SAM_PROTO_GetFieldsCounters [09:49:14]wFMCommunicate request_size=4 [09:49:14]MH_SAM_APDU [09:49:14]CAPDU: 80 13 00 00 [09:49:14]Write to MH i2c: E2 08 00 EB 37 80 13 00 00 00 00 00 00 9E [09:49:14]Write i2c OK [09:49:14]MH_I2C_Read... [09:49:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:14]Read from MH i2c: E2 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: E2 62 00 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: E2 62 00 EB 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 67 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [09:49:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 67 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:14]wFMCommunicate OK [09:49:14]SAM_PROTO_GetFieldsCounters done [09:49:14]requested_item shift.num is exist - process it [09:49:14]requested_item shift.opened is exist - process it [09:49:14]req_shift_opened [09:49:14]FM_GetShiftState [09:49:14]SAM_PROTO_GetShiftState [09:49:14]wFMCommunicate request_size=4 [09:49:14]MH_SAM_APDU [09:49:14]CAPDU: 80 13 01 00 [09:49:14]Write to MH i2c: E2 08 00 EC 37 80 13 01 00 00 00 00 00 A0 [09:49:14]Write i2c OK [09:49:14]MH_I2C_Read... [09:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:14]Read from MH i2c: E2 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: E2 0E 00 [09:49:14]MH_I2C_Read... [09:49:14]Read from MH i2c: E2 0E 00 EC 37 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 AC [09:49:14]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [09:49:14]wFMCommunicate OK [09:49:14]SAM_PROTO_GetShiftState done [09:49:14]FM_GetShiftState done [09:49:14]req_shift_opened done [09:49:14]requested_item shift.open_date is exist - process it [09:49:14]req_shift_open_date [09:49:14]req_shift_open_date done [09:49:14]produce_requested_data done [09:49:14]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4967,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [09:49:14]process_action_free close_receipt [09:49:14]json_value_free [09:49:14]json_value_free done [09:49:14]process_json_proto returns [09:49:14]Send response to host [09:49:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4967,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [09:49:14]free response buf [09:49:14]execute_script done [09:49:14]execute_script returns [09:49:14]free content buf [09:49:14]Sock 10.Close socket [09:49:14]Sock 10.Thread stoped [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:03]OFD Sender: No OFD packet to send [09:52:08]OFD Sender: No OFD packet to send [09:52:13]OFD Sender: No OFD packet to send [09:52:18]OFD Sender: No OFD packet to send [09:52:23]OFD Sender: No OFD packet to send [09:52:28]OFD Sender: No OFD packet to send [09:52:33]OFD Sender: No OFD packet to send [09:52:38]OFD Sender: No OFD packet to send [09:52:43]OFD Sender: No OFD packet to send [09:52:48]OFD Sender: No OFD packet to send [09:52:53]OFD Sender: No OFD packet to send [09:52:58]OFD Sender: No OFD packet to send [09:53:03]OFD Sender: No OFD packet to send [09:53:08]OFD Sender: No OFD packet to send [09:53:13]OFD Sender: No OFD packet to send [09:53:18]OFD Sender: No OFD packet to send [09:53:23]OFD Sender: No OFD packet to send [09:53:28]OFD Sender: No OFD packet to send [09:53:33]OFD Sender: No OFD packet to send [09:53:38]OFD Sender: No OFD packet to send [09:53:43]OFD Sender: No OFD packet to send [09:53:48]OFD Sender: No OFD packet to send [09:53:53]OFD Sender: No OFD packet to send [09:53:58]OFD Sender: No OFD packet to send [09:54:03]OFD Sender: No OFD packet to send [09:54:08]OFD Sender: No OFD packet to send [09:54:13]OFD Sender: No OFD packet to send [09:54:18]OFD Sender: No OFD packet to send [09:54:23]OFD Sender: No OFD packet to send [09:54:28]OFD Sender: No OFD packet to send [09:54:33]OFD Sender: No OFD packet to send [09:54:38]OFD Sender: No OFD packet to send [09:54:43]OFD Sender: No OFD packet to send [09:54:48]OFD Sender: No OFD packet to send [09:54:53]OFD Sender: No OFD packet to send [09:54:58]OFD Sender: No OFD packet to send [09:55:03]OFD Sender: No OFD packet to send [09:55:08]OFD Sender: No OFD packet to send [09:55:13]OFD Sender: No OFD packet to send [09:55:18]OFD Sender: No OFD packet to send [09:55:23]OFD Sender: No OFD packet to send [09:55:28]OFD Sender: No OFD packet to send [09:55:33]OFD Sender: No OFD packet to send [09:55:38]OFD Sender: No OFD packet to send [09:55:43]OFD Sender: No OFD packet to send [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:03]OFD Sender: No OFD packet to send [09:56:08]OFD Sender: No OFD packet to send [09:56:13]OFD Sender: No OFD packet to send [09:56:18]OFD Sender: No OFD packet to send [09:56:23]OFD Sender: No OFD packet to send [09:56:28]OFD Sender: No OFD packet to send [09:56:33]OFD Sender: No OFD packet to send [09:56:38]OFD Sender: No OFD packet to send [09:56:43]OFD Sender: No OFD packet to send [09:56:48]OFD Sender: No OFD packet to send [09:56:53]OFD Sender: No OFD packet to send [09:56:58]OFD Sender: No OFD packet to send [09:57:03]OFD Sender: No OFD packet to send [09:57:08]OFD Sender: No OFD packet to send [09:57:13]OFD Sender: No OFD packet to send [09:57:18]OFD Sender: No OFD packet to send [09:57:23]OFD Sender: No OFD packet to send [09:57:28]OFD Sender: No OFD packet to send [09:57:33]OFD Sender: No OFD packet to send [09:57:38]OFD Sender: No OFD packet to send [09:57:43]OFD Sender: No OFD packet to send [09:57:48]OFD Sender: No OFD packet to send [09:57:53]OFD Sender: No OFD packet to send [09:57:58]OFD Sender: No OFD packet to send [09:58:03]OFD Sender: No OFD packet to send [09:58:08]OFD Sender: No OFD packet to send [09:58:13]OFD Sender: No OFD packet to send [09:58:18]OFD Sender: No OFD packet to send [09:58:23]OFD Sender: No OFD packet to send [09:58:28]OFD Sender: No OFD packet to send [09:58:33]OFD Sender: No OFD packet to send [09:58:38]OFD Sender: No OFD packet to send [09:58:43]OFD Sender: No OFD packet to send [09:58:48]OFD Sender: No OFD packet to send [09:58:53]OFD Sender: No OFD packet to send [09:58:58]OFD Sender: No OFD packet to send [09:59:03]OFD Sender: No OFD packet to send [09:59:08]OFD Sender: No OFD packet to send [09:59:13]OFD Sender: No OFD packet to send [09:59:18]OFD Sender: No OFD packet to send [09:59:23]OFD Sender: No OFD packet to send [09:59:28]OFD Sender: No OFD packet to send [09:59:33]OFD Sender: No OFD packet to send [09:59:38]OFD Sender: No OFD packet to send [09:59:43]OFD Sender: No OFD packet to send [09:59:48]OFD Sender: No OFD packet to send [09:59:53]OFD Sender: No OFD packet to send [09:59:58]OFD Sender: No OFD packet to send [10:00:03]OFD Sender: No OFD packet to send [10:00:08]OFD Sender: No OFD packet to send [10:00:13]OFD Sender: No OFD packet to send [10:00:18]OFD Sender: No OFD packet to send [10:00: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:58]OFD Sender: No OFD packet to send [10:03:03]OFD Sender: No OFD packet to send [10:03:08]OFD Sender: No OFD packet to send [10:03:13]OFD Sender: No OFD packet to send [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:28]OFD Sender: No OFD packet to send [10:04:33]OFD Sender: No OFD packet to send [10:04:38]OFD Sender: No OFD packet to send [10:04:43]OFD Sender: No OFD packet to send [10:04:48]OFD Sender: No OFD packet to send [10:04:53]OFD Sender: No OFD packet to send [10:04:58]OFD Sender: No OFD packet to send [10:05:03]OFD Sender: No OFD packet to send [10:05:08]OFD Sender: No OFD packet to send [10:05:13]OFD Sender: No OFD packet to send [10:05:18]OFD Sender: No OFD packet to send [10:05:23]OFD Sender: No OFD packet to send [10:05:28]OFD Sender: No OFD packet to send [10:05:33]OFD Sender: No OFD packet to send [10:05:38]OFD Sender: No OFD packet to send [10:05:43]OFD Sender: No OFD packet to send [10:05:48]OFD Sender: No OFD packet to send [10:05:53]OFD Sender: No OFD packet to send [10:05:58]OFD Sender: No OFD packet to send [10:06:03]OFD Sender: No OFD packet to send [10:06:08]OFD Sender: No OFD packet to send [10:06:13]OFD Sender: No OFD packet to send [10:06:18]OFD Sender: No OFD packet to send [10:06:23]OFD Sender: No OFD packet to send [10:06:28]OFD Sender: No OFD packet to send [10:06:33]OFD Sender: No OFD packet to send [10:06:38]OFD Sender: No OFD packet to send [10:06:43]OFD Sender: No OFD packet to send [10:06:48]OFD Sender: No OFD packet to send [10:06:53]OFD Sender: No OFD packet to send [10:06:58]OFD Sender: No OFD packet to send [10:07:03]OFD Sender: No OFD packet to send [10:07:08]OFD Sender: No OFD packet to send [10:07:13]OFD Sender: No OFD packet to send [10:07:18]OFD Sender: No OFD packet to send [10:07:23]OFD Sender: No OFD packet to send [10:07:28]OFD Sender: No OFD packet to send [10:07:33]OFD Sender: No OFD packet to send [10:07:38]OFD Sender: No OFD packet to send [10:07:43]OFD Sender: No OFD packet to send [10:07:48]OFD Sender: No OFD packet to send [10:07:53]OFD Sender: No OFD packet to send [10:07:58]OFD Sender: No OFD packet to send [10:08:03]OFD Sender: No OFD packet to send [10:08:08]OFD Sender: No OFD packet to send [10:08:13]OFD Sender: No OFD packet to send [10:08:18]OFD Sender: No OFD packet to send [10:08:23]OFD Sender: No OFD packet to send [10:08:28]OFD Sender: No OFD packet to send [10:08:33]OFD Sender: No OFD packet to send [10:08:38]OFD Sender: No OFD packet to send [10:08:43]OFD Sender: No OFD packet to send [10:08:48]OFD Sender: No OFD packet to send [10:08:53]OFD Sender: No OFD packet to send [10:08:58]OFD Sender: No OFD packet to send [10:09:03]OFD Sender: No OFD packet to send [10:09:08]OFD Sender: No OFD packet to send [10:09:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:58]OFD Sender: No OFD packet to send [10:10:03]OFD Sender: No OFD packet to send [10:10:08]OFD Sender: No OFD packet to send [10:10:13]OFD Sender: No OFD packet to send [10:10:18]OFD Sender: No OFD packet to send [10:10:23]OFD Sender: No OFD packet to send [10:10:28]OFD Sender: No OFD packet to send [10:10:33]OFD Sender: No OFD packet to send [10:10:38]OFD Sender: No OFD packet to send [10:10:43]OFD Sender: No OFD packet to send [10:10:48]OFD Sender: No OFD packet to send [10:10:53]OFD Sender: No OFD packet to send [10:10:58]OFD Sender: No OFD packet to send [10:11:03]OFD Sender: No OFD packet to send [10:11:08]OFD Sender: No OFD packet to send [10:11:13]OFD Sender: No OFD packet to send [10:11:18]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:21]int [10:13:21]Write to MH i2c: 01 00 00 ED 37 24 [10:13:21]*** FLAG_PRN_PAP1 set [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 ED 37 00 01 00 00 00 FF 0F 3A [10:13:21]state=0 [10:13:21]No paper [10:13:21]int [10:13:21]Write to MH i2c: 01 00 00 EE 37 25 [10:13:21]*** FLAG_PRN_PAP2 set [10:13:21]Write i2c OK [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 [10:13:21]MH_I2C_Read... [10:13:21]Read from MH i2c: 01 07 00 EE 37 00 03 00 00 00 FF 0F 3D [10:13:21]state=0 [10:13:21]No paper [10:13:21]Cover opened [10:13:22]int [10:13:22]Write to MH i2c: 01 00 00 EF 37 26 [10:13:22]*** FLAG_PRN_PAP2 reset [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 07 00 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 07 00 EF 37 00 01 00 00 00 FF 0F 3C [10:13:22]state=3 [10:13:22]No paper [10:13:22]Cover closed [10:13:22]int [10:13:22]Write to MH i2c: 01 00 00 F0 37 27 [10:13:22]*** FLAG_PRN_PAP2 set [10:13:22]Write i2c OK [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 07 00 [10:13:22]MH_I2C_Read... [10:13:22]Read from MH i2c: 01 07 00 F0 37 00 03 00 00 00 FF 0F 3F [10:13:22]state=0 [10:13:22]No paper [10:13:22]Cover opened [10:13:23]OFD Sender: No OFD packet to send [10:13:27]int [10:13:27]Write to MH i2c: 01 00 00 F1 37 28 [10:13:27]Write i2c OK [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 [10:13:27]MH_I2C_Read... [10:13:27]*** FLAG_PRN_PAP2 reset [10:13:27]*** FLAG_PRN_PAP1 reset [10:13:27]Read from MH i2c: 01 07 00 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 07 00 F1 37 00 00 00 00 00 FF 0F 3D [10:13:27]state=3 [10:13:27]Cover closed [10:13:27]int [10:13:27]Write to MH i2c: 01 00 00 F2 37 29 [10:13:27]*** FLAG_PRN_KEY set [10:13:27]Write i2c OK [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 07 00 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 07 00 F2 37 00 08 00 00 00 FF 0F 46 [10:13:27]state=0 [10:13:27]Key pressed [10:13:27]Feed [10:13:27]Write to MH i2c: D8 00 00 F3 37 01 [10:13:27]Write i2c OK [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: D8 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: D8 01 00 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: D8 01 00 F3 37 00 02 [10:13:27]int [10:13:27]Write to MH i2c: 01 00 00 F4 37 2B [10:13:27]Write i2c OK [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 07 00 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 07 00 F4 37 00 48 00 00 00 3C 00 B6 [10:13:27]state=2 [10:13:27]Key pressed [10:13:27]int [10:13:27]Write to MH i2c: 01 00 00 F5 37 2C [10:13:27]*** FLAG_PRN_KEY reset [10:13:27]Write i2c OK [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 07 00 [10:13:27]MH_I2C_Read... [10:13:27]Read from MH i2c: 01 07 00 F5 37 00 00 00 00 00 FF 0F 41 [10:13:27]state=2 [10:13:27]Stop feed [10:13:28]OFD Sender: No OFD packet to send [10:13:31]accept exits with 8 [10:13:31]New connection [10:13:31]New thread 3067444580 created [10:13:31]Thread 3067587940 joined [10:13:31]Waiting for new connection... [10:13:31] Sock 8.Parse request [10:13:31]Sock 8.Check first char [10:13:31]Sock 8.First char is OK [10:13:31]request: POST /json_proto HTTP/1.0 [10:13:31]Method: POST [10:13:31]URL: /json_proto [10:13:31]Method is POST - this is cgi request [10:13:31]url: /json_proto [10:13:31]query_string will be loaded in cgi processing [10:13:31]execute_cgi json_proto POST (null) [10:13:31]execute_cgi path=json_proto method=POST [10:13:31]POST find Content-Length [10:13:31]Host: 172.17.44.4:8080 [10:13:31]Content-Length: 215 [10:13:31]Content-Type: application/json [10:13:31] [10:13:31]POST finish read [10:13:31]Found Content-Length = 215 [10:13:31]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" ] } } [10:13:31]execute_script... [10:13:31]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" ] } } [10:13:31]POST & json_proto [10:13:31]process_json_proto [10:13:31]json parsed OK: [10:13:31]protocol is kg_v1.0 [10:13:31]action value=get_value [10:13:31]process_action get_value [10:13:31]cmd_get_value [10:13:31]process_action get_value done [10:13:31]requested_data is exist [10:13:31]produce_requested_data [10:13:31]requested_item kkm.sn is exist - process it [10:13:31]requested_item kkm.ver is exist - process it [10:13:31]requested_item fm.sn is exist - process it [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 11 00 00 [10:13:31]Write to MH i2c: E2 08 00 F6 37 80 11 00 00 00 00 00 00 A7 [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 17 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 17 00 F6 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 FC [10:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:13:31]wFMCommunicate OK [10:13:31]requested_item fd.num is exist - process it [10:13:31]SAM_PROTO_GetFieldsCounters [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 13 00 00 [10:13:31]Write to MH i2c: E2 08 00 F7 37 80 13 00 00 00 00 00 00 AA [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 62 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 62 00 F7 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 67 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [10:13:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 67 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:31]wFMCommunicate OK [10:13:31]SAM_PROTO_GetFieldsCounters done [10:13:31]requested_item shift.num is exist - process it [10:13:31]requested_item shift.opened is exist - process it [10:13:31]req_shift_opened [10:13:31]FM_GetShiftState [10:13:31]SAM_PROTO_GetShiftState [10:13:31]wFMCommunicate request_size=4 [10:13:31]MH_SAM_APDU [10:13:31]CAPDU: 80 13 01 00 [10:13:31]Write to MH i2c: E2 08 00 F8 37 80 13 01 00 00 00 00 00 AC [10:13:31]Write i2c OK [10:13:31]MH_I2C_Read... [10:13:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:31]Read from MH i2c: E2 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0E 00 [10:13:31]MH_I2C_Read... [10:13:31]Read from MH i2c: E2 0E 00 F8 37 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 B8 [10:13:31]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:13:31]wFMCommunicate OK [10:13:31]SAM_PROTO_GetShiftState done [10:13:31]FM_GetShiftState done [10:13:31]req_shift_opened done [10:13:31]requested_item shift.open_date is exist - process it [10:13:31]req_shift_open_date [10:13:31]req_shift_open_date done [10:13:31]produce_requested_data done [10:13:31]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":4967,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [10:13:31]process_action_free get_value [10:13:31]json_value_free [10:13:31]json_value_free done [10:13:31]process_json_proto returns [10:13:31]Send response to host [10:13:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":4967,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [10:13:31]free response buf [10:13:31]execute_script done [10:13:31]execute_script returns [10:13:31]free content buf [10:13:31]Sock 8.Close socket [10:13:31]Sock 8.Thread stoped [10:13:31]accept exits with 10 [10:13:31]New connection [10:13:31]New thread 3067587940 created [10:13:31]Thread 3067444580 joined [10:13:31]Waiting for new connection... [10:13:31] Sock 10.Parse request [10:13:31]Sock 10.Check first char [10:13:31]Sock 10.First char is OK [10:13:31]request: POST /json_proto HTTP/1.0 [10:13:31]Method: POST [10:13:31]URL: /json_proto [10:13:31]Method is POST - this is cgi request [10:13:31]url: /json_proto [10:13:31]query_string will be loaded in cgi processing [10:13:31]execute_cgi json_proto POST (null) [10:13:31]execute_cgi path=json_proto method=POST [10:13:31]POST find Content-Length [10:13:31]Host: 172.17.44.4:8080 [10:13:31]Content-Length: 331 [10:13:31]Content-Type: application/json [10:13:31] [10:13:31]POST finish read [10:13:31]Found Content-Length = 331 [10:13:31]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" ] } } [10:13:31]execute_script... [10:13:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [10:13:32]POST & json_proto [10:13:32]process_json_proto [10:13:32]json parsed OK: [10:13:32]protocol is kg_v1.0 [10:13:32]action value=get_value [10:13:32]process_action get_value [10:13:32]cmd_get_value [10:13:32]process_action get_value done [10:13:32]requested_data is exist [10:13:32]produce_requested_data [10:13:32]requested_item fm.sale.total is exist - process it [10:13:32]SAM_PROTO_GetFMData [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 13 03 00 [10:13:32]Write to MH i2c: E2 08 00 F9 37 80 13 03 00 00 00 00 00 AF [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 FD 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 FD 00 F9 37 00 BF 04 85 04 BB 04 6E 04 04 00 0F 13 00 00 69 04 A0 00 6F 04 04 00 DC 12 00 00 B1 04 04 00 78 6A 61 0F 70 04 04 00 88 A3 F0 06 72 04 04 00 F0 C6 70 08 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 36 27 A2 01 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 2F D6 22 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 E5 [10:13:32]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 0F 13 00 00 69 04 A0 00 6F 04 04 00 DC 12 00 00 B1 04 04 00 78 6A 61 0F 70 04 04 00 88 A3 F0 06 72 04 04 00 F0 C6 70 08 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 36 27 A2 01 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 2F D6 22 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [10:13:32]wFMCommunicate OK [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 17 00 00 [10:13:32]Write to MH i2c: E2 08 00 FA 37 80 17 00 00 00 00 00 00 B1 [10:13:32]Write i2c OK [10:13:32]MH_I2C_Read... [10:13:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:13:32]Read from MH i2c: E2 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 FD 00 [10:13:32]MH_I2C_Read... [10:13:32]Read from MH i2c: E2 FD 00 FA 37 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 4E [10:13:32]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [10:13:32]wFMCommunicate OK [10:13:32]wFMCommunicate request_size=4 [10:13:32]MH_SAM_APDU [10:13:32]CAPDU: 80 17 00 00 [10:13:32]Write to MH i2c: E2 08 00 FB 37 80 17 00 00 00 00 00 00 B2 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 FD 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 FD 00 FB 37 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 56 [10:13:33]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 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 90 00 [10:13:33]wFMCommunicate OK [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 17 00 00 [10:13:33]Write to MH i2c: E2 08 00 FC 37 80 17 00 00 00 00 00 00 B3 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 FD 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 FD 00 FC 37 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2D [10:13:33]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [10:13:33]wFMCommunicate OK [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 17 00 00 [10:13:33]Write to MH i2c: E2 08 00 FD 37 80 17 00 00 00 00 00 00 B4 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [10:13:33]Read from MH i2c: E2 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 DC 00 [10:13:33]MH_I2C_Read... [10:13:33]Read from MH i2c: E2 DC 00 FD 37 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 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 98 [10:13:33]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 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 [10:13:33]wFMCommunicate OK [10:13:33]SAM_PROTO_GetFMData done [10:13:33]requested_item fm.sale_refund.total is exist - process it [10:13:33]requested_item fm.buy.total is exist - process it [10:13:33]requested_item shift.sale.total is exist - process it [10:13:33]SAM_PROTO_GetShiftData [10:13:33]wFMCommunicate request_size=4 [10:13:33]MH_SAM_APDU [10:13:33]CAPDU: 80 13 02 00 [10:13:33]Write to MH i2c: E2 08 00 FE 37 80 13 02 00 00 00 00 00 B3 [10:13:33]Write i2c OK [10:13:33]MH_I2C_Read... [10:13:34]OFD Sender: No OFD packet to send [10:13:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 FD 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 FD 00 FE 37 00 AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 10 5A 12 70 04 03 00 48 EA 09 72 04 03 00 C8 6F 08 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 E6 F2 01 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 91 29 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 33 [10:13:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 1B 00 00 00 69 04 9B 00 6F 04 04 00 1B 00 00 00 B1 04 03 00 10 5A 12 70 04 03 00 48 EA 09 72 04 03 00 C8 6F 08 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 E6 F2 01 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 91 29 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [10:13:34]wFMCommunicate OK [10:13:34]wFMCommunicate request_size=4 [10:13:34]MH_SAM_APDU [10:13:34]CAPDU: 80 17 00 00 [10:13:34]Write to MH i2c: E2 08 00 FF 37 80 17 00 00 00 00 00 00 B6 [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 FD 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 FD 00 FF 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 D8 [10:13:34]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 [10:13:34]wFMCommunicate OK [10:13:34]wFMCommunicate request_size=4 [10:13:34]MH_SAM_APDU [10:13:34]CAPDU: 80 17 00 00 [10:13:34]Write to MH i2c: E2 08 00 00 38 80 17 00 00 00 00 00 00 B8 [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:13:34]Read from MH i2c: E2 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 FD 00 [10:13:34]MH_I2C_Read... [10:13:34]Read from MH i2c: E2 FD 00 00 38 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F [10:13:34]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 [10:13:34]wFMCommunicate OK [10:13:34]wFMCommunicate request_size=4 [10:13:34]MH_SAM_APDU [10:13:34]CAPDU: 80 17 00 00 [10:13:34]Write to MH i2c: E2 08 00 01 38 80 17 00 00 00 00 00 00 B9 [10:13:34]Write i2c OK [10:13:34]MH_I2C_Read... [10:13:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [10:13:35]Read from MH i2c: E2 [10:13:35]MH_I2C_Read... [10:13:35]Read from MH i2c: E2 FD 00 [10:13:35]MH_I2C_Read... [10:13:35]Read from MH i2c: E2 FD 00 01 38 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 2B [10:13:35]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 [10:13:35]wFMCommunicate OK [10:13:35]wFMCommunicate request_size=4 [10:13:35]MH_SAM_APDU [10:13:35]CAPDU: 80 17 00 00 [10:13:35]Write to MH i2c: E2 08 00 02 38 80 17 00 00 00 00 00 00 BA [10:13:35]Write i2c OK [10:13:35]MH_I2C_Read... [10:13:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [10:13:35]Read from MH i2c: E2 [10:13:35]MH_I2C_Read... [10:13:35]Read from MH i2c: E2 CB 00 [10:13:35]MH_I2C_Read... [10:13:35]Read from MH i2c: E2 CB 00 02 38 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 A3 [10:13:35]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 [10:13:35]wFMCommunicate OK [10:13:35]SAM_PROTO_GetShiftData done [10:13:35]requested_item shift.sale.total_cash is exist - process it [10:13:35]requested_item shift.sale_refund.total is exist - process it [10:13:35]requested_item shift.sale_refund.total_cash is exist - process it [10:13:35]requested_item shift.buy.total is exist - process it [10:13:35]requested_item shift.buy.total_cash is exist - process it [10:13:35]produce_requested_data done [10:13:35]produce_requested_data return {"fm.sale.total":2580424.88,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":12027.04,"shift.sale.total_cash":6498.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} [10:13:35]process_action_free get_value [10:13:35]json_value_free [10:13:35]json_value_free done [10:13:35]process_json_proto returns [10:13:35]Send response to host [10:13:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2580424.88,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":12027.04,"shift.sale.total_cash":6498.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}}} [10:13:35]free response buf [10:13:35]execute_script done [10:13:35]execute_script returns [10:13:35]free content buf [10:13:35]Sock 10.Close socket [10:13:35]Sock 10.Thread stoped [10:13:39]OFD Sender: No OFD packet to send [10:13:44]OFD Sender: No OFD packet to send [10:13:49]OFD Sender: No OFD packet to send [10:13:54]OFD Sender: No OFD packet to send [10:13:59]OFD Sender: No OFD packet to send [10:14:04]OFD Sender: No OFD packet to send [10:14:09]OFD Sender: No OFD packet to send [10:14:14]OFD Sender: No OFD packet to send [10:14:19]OFD Sender: No OFD packet to send [10:14:24]OFD Sender: No OFD packet to send [10:14:29]OFD Sender: No OFD packet to send [10:14:34]OFD Sender: No OFD packet to send [10:14:39]OFD Sender: No OFD packet to send [10:14:44]OFD Sender: No OFD packet to send [10:14:49]OFD Sender: No OFD packet to send [10:14:54]OFD Sender: No OFD packet to send [10:14:59]OFD Sender: No OFD packet to send [10:15:04]OFD Sender: No OFD packet to send [10:15:09]OFD Sender: No OFD packet to send [10:15:14]OFD Sender: No OFD packet to send [10:15:19]OFD Sender: No OFD packet to send [10:15:24]OFD Sender: No OFD packet to send [10:15:29]OFD Sender: No OFD packet to send [10:15:34]OFD Sender: No OFD packet to send [10:15:39]OFD Sender: No OFD packet to send [10:15:44]OFD Sender: No OFD packet to send [10:15:49]OFD Sender: No OFD packet to send [10:15:54]OFD Sender: No OFD packet to send [10:15:59]OFD Sender: No OFD packet to send [10:16:04]OFD Sender: No OFD packet to send [10:16:09]OFD Sender: No OFD packet to send [10:16:14]OFD Sender: No OFD packet to send [10:16:19]OFD Sender: No OFD packet to send [10:16:24]OFD Sender: No OFD packet to send [10:16:29]OFD Sender: No OFD packet to send [10:16:34]OFD Sender: No OFD packet to send [10:16:39]OFD Sender: No OFD packet to send [10:16:44]OFD Sender: No OFD packet to send [10:16:49]OFD Sender: No OFD packet to send [10:16:54]OFD Sender: No OFD packet to send [10:16:59]OFD Sender: No OFD packet to send [10:17:04]OFD Sender: No OFD packet to send [10:17:09]OFD Sender: No OFD packet to send [10:17:14]OFD Sender: No OFD packet to send [10:17:19]OFD Sender: No OFD packet to send [10:17:24]OFD Sender: No OFD packet to send [10:17:29]OFD Sender: No OFD packet to send [10:17:34]OFD Sender: No OFD packet to send [10:17:39]OFD Sender: No OFD packet to send [10:17:44]OFD Sender: No OFD packet to send [10:17:49]OFD Sender: No OFD packet to send [10:17:54]OFD Sender: No OFD packet to send [10:17:59]OFD Sender: No OFD packet to send [10:18:04]OFD Sender: No OFD packet to send [10:18:09]OFD Sender: No OFD packet to send [10:18:14]OFD Sender: No OFD packet to send [10:18:19]OFD Sender: No OFD packet to send [10:18:24]OFD Sender: No OFD packet to send [10:18:29]OFD Sender: No OFD packet to send [10:18:34]OFD Sender: No OFD packet to send [10:18:39]OFD Sender: No OFD packet to send [10:18:44]OFD Sender: No OFD packet to send [10:18:49]OFD Sender: No OFD packet to send [10:18:54]OFD Sender: No OFD packet to send [10:18:59]OFD Sender: No OFD packet to send [10:19:04]OFD Sender: No OFD packet to send [10:19:09]OFD Sender: No OFD packet to send [10:19:14]OFD Sender: No OFD packet to send [10:19:19]OFD Sender: No OFD packet to send [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:24]OFD Sender: No OFD packet to send [10:20:29]OFD Sender: No OFD packet to send [10:20:34]OFD Sender: No OFD packet to send [10:20:39]OFD Sender: No OFD packet to send [10:20:44]OFD Sender: No OFD packet to send [10:20:49]OFD Sender: No OFD packet to send [10:20:54]OFD Sender: No OFD packet to send [10:20:59]OFD Sender: No OFD packet to send [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:54]OFD Sender: No OFD packet to send [10:21:59]OFD Sender: No OFD packet to send [10:22:04]OFD Sender: No OFD packet to send [10:22:09]OFD Sender: No OFD packet to send [10:22:14]OFD Sender: No OFD packet to send [10:22:19]OFD Sender: No OFD packet to send [10:22:24]OFD Sender: No OFD packet to send [10:22:29]OFD Sender: No OFD packet to send [10:22:34]OFD Sender: No OFD packet to send [10:22:39]OFD Sender: No OFD packet to send [10:22:44]OFD Sender: No OFD packet to send [10:22:49]OFD Sender: No OFD packet to send [10:22:54]OFD Sender: No OFD packet to send [10:22:59]OFD Sender: No OFD packet to send [10:23:04]OFD Sender: No OFD packet to send [10:23:09]OFD Sender: No OFD packet to send [10:23:14]OFD Sender: No OFD packet to send [10:23:19]OFD Sender: No OFD packet to send [10:23:24]OFD Sender: No OFD packet to send [10:23:29]OFD Sender: No OFD packet to send [10:23:34]OFD Sender: No OFD packet to send [10:23:39]OFD Sender: No OFD packet to send [10:23:44]OFD Sender: No OFD packet to send [10:23:49]OFD Sender: No OFD packet to send [10:23:54]OFD Sender: No OFD packet to send [10:23:59]OFD Sender: No OFD packet to send [10:24:04]OFD Sender: No OFD packet to send [10:24:09]OFD Sender: No OFD packet to send [10:24:14]OFD Sender: No OFD packet to send [10:24:19]OFD Sender: No OFD packet to send [10:24:24]OFD Sender: No OFD packet to send [10:24:29]OFD Sender: No OFD packet to send [10:24:34]OFD Sender: No OFD packet to send [10:24:39]OFD Sender: No OFD packet to send [10:24:43]accept exits with 8 [10:24:43]New connection [10:24:43]New thread 3067444580 created [10:24:43]Thread 3067587940 joined [10:24:43]Waiting for new connection... [10:24:43] Sock 8.Parse request [10:24:43]Sock 8.Check first char [10:24:43]Sock 8.First char is OK [10:24:43]request: POST /json_proto HTTP/1.0 [10:24:43]Method: POST [10:24:43]URL: /json_proto [10:24:43]Method is POST - this is cgi request [10:24:43]url: /json_proto [10:24:43]query_string will be loaded in cgi processing [10:24:43]execute_cgi json_proto POST (null) [10:24:43]execute_cgi path=json_proto method=POST [10:24:43]POST find Content-Length [10:24:43]Host: 172.17.44.4:8080 [10:24:43]Content-Length: 760 [10:24:43]Content-Type: application/json [10:24:43] [10:24:43]POST finish read [10:24:43]Found Content-Length = 760 [10:24:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140977", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:43]execute_script... [10:24: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)140977", "tax_sys" : 0, "items" : [ { "code": "48744546", "name": "LD Compact Silver", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:43]POST & json_proto [10:24:43]process_json_proto [10:24:43]json parsed OK: [10:24:43]protocol is kg_v1.0 [10:24:43]action value=close_receipt [10:24:43]process_action close_receipt [10:24:43]cmd_close_receipt [10:24:43]MH_GetDate [10:24:43]Write to MH i2c: F0 00 00 03 38 2A [10:24:43]Write i2c OK [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: F0 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: F0 09 00 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: F0 09 00 03 38 00 F2 DE 45 66 6C E9 28 66 91 [10:24:43]GetLastDocTimeStamp 1715852956 [10:24:43]current date 1715855090 [10:24:43]FM_GetShiftState [10:24:43]SAM_PROTO_GetShiftState [10:24:43]wFMCommunicate request_size=4 [10:24:43]MH_SAM_APDU [10:24:43]CAPDU: 80 13 01 00 [10:24:43]Write to MH i2c: E2 08 00 04 38 80 13 01 00 00 00 00 00 B9 [10:24:43]Write i2c OK [10:24:43]MH_I2C_Read... [10:24:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:43]Read from MH i2c: E2 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: E2 0E 00 [10:24:43]MH_I2C_Read... [10:24:43]Read from MH i2c: E2 0E 00 04 38 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 C5 [10:24:43]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:24:43]wFMCommunicate OK [10:24:43]SAM_PROTO_GetShiftState done [10:24:43]FM_GetShiftState done [10:24:43]opened in 1715818246 [10:24:43]opened+sec_in_day 1715904646 [10:24:43]quantity*price = 12500 [10:24:43]sum+1 = 12501 [10:24:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 28 16.05.2024 10:24 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: Демир КИ Банк ФМ: 0000000000963259 ФД: 4968 ФПД: 86003383827831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T102450&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4968&fm=86003383827831&tin=02508201610067®Number=0000000000154221&sum=12500 0 [10:24:44]StoreToDocumentArchive [10:24:44]shift 44 fd 4968 [10:24:44]save to /storage/0044/doc_00004968 [10:24:44]save last doc name /storage/0044/doc_00004968 to /storage/kkm_last_doc_name [10:24:44]save OK [10:24:44]Clear old archive folders... [10:24:44]ProcessDocumentItem done err = 0, tmpTLVsize=254 [10:24:44]tlvbuf is 00CA3FD0 [10:24:44]SAM_PROTO_ClearQueue [10:24:44]wFMCommunicate request_size=4 [10:24:44]MH_SAM_APDU [10:24:44]CAPDU: 80 09 00 00 [10:24:44]Write to MH i2c: E2 08 00 11 38 80 09 00 00 00 00 00 00 BB [10:24:44]Write i2c OK [10:24:44]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 11 38 00 90 00 BD [10:24:45]RAPDU: 90 00 [10:24:45]wFMCommunicate OK [10:24:45]SAM_PROTO_ClearQueue done [10:24:45]KKMCreateOFDPacket [10:24:45]OFDProtocolAddRootSTLVToBuf [10:24:45]FM_MakeSignedData [10:24:45]FM_MakeSignedData [10:24:45]SAM_PROTO_SignData [10:24:45]wFMCommunicate request_size=4 [10:24:45]MH_SAM_APDU [10:24:45]CAPDU: 80 0D 01 02 [10:24:45]Write to MH i2c: E2 08 00 12 38 80 0D 01 02 00 00 00 00 C3 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 12 38 00 90 00 BE [10:24:45]RAPDU: 90 00 [10:24:45]wFMCommunicate OK [10:24:45]wFMCommunicate request_size=255 [10:24:45]MH_SAM_APDU [10:24:45]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 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 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 F2 DE 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 68 13 00 00 35 04 [10:24:45]Write to MH i2c: E2 02 01 13 38 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 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 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 F2 DE 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 68 13 00 00 35 04 00 00 EC [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:45]Read from MH i2c: E2 03 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 13 38 00 90 00 BF [10:24:45]RAPDU: 90 00 [10:24:45]wFMCommunicate OK [10:24:45]wFMCommunicate request_size=13 [10:24:45]MH_SAM_APDU [10:24:45]CAPDU: 80 0D 02 02 08 06 00 4E 38 39 24 7D 77 [10:24:45]Write to MH i2c: E2 10 00 14 38 80 0D 02 02 08 00 06 00 4E 38 39 24 7D 77 00 00 B3 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 03 00 14 38 00 90 00 C0 [10:24:45]RAPDU: 90 00 [10:24:45]wFMCommunicate OK [10:24:45]wFMCommunicate request_size=4 [10:24:45]MH_SAM_APDU [10:24:45]CAPDU: 80 0D 03 02 [10:24:45]Write to MH i2c: E2 08 00 15 38 80 0D 03 02 00 00 00 00 C8 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 0B 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 0B 00 15 38 00 97 FF F9 59 05 0F 23 A6 90 00 8E [10:24:45]RAPDU: 97 FF F9 59 05 0F 23 A6 90 00 [10:24:45]wFMCommunicate OK [10:24:45]SAM_PROTO_SignData done [10:24:45]FM_MakeSignedData done [10:24:45]CreateOFDProtocolMessage [10:24:45]wFMCommunicate request_size=4 [10:24:45]MH_SAM_APDU [10:24:45]CAPDU: 80 11 00 00 [10:24:45]Write to MH i2c: E2 08 00 16 38 80 11 00 00 00 00 00 00 C8 [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:45]Read from MH i2c: E2 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 17 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: E2 17 00 16 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 1D [10:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:24:45]wFMCommunicate OK [10:24:45]CreateOFDProtocolMessage done [10:24:45]OFDSenderStorePacket 4968 [10:24:45]StoreOFDPacket docnum=4968 [10:24:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 12 01 00 00 2E A8 0A 01 9E 35 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 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 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 F2 DE 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 68 13 00 00 35 04 06 00 4E 38 39 24 7D 77 97 FF F9 59 05 0F 23 A6 [10:24:45]CheckFolder [10:24:45]dirname=/storage/ofd_packets [10:24:45]CheckFolder done [10:24:45]ProducePacketName [10:24:45]name=ofd_packets/00004968 [10:24:45]NVStorageSaveData ofd_packets/00004968 [10:24:45]File name is /storage/ofd_packets/00004968 [10:24:45]Write 304 bytes [10:24:45]NVStorageSaveData done [10:24:45]OFDSenderStorePacket done [10:24:45]KKMCreateOFDPacket done [10:24:45]NVStorageSaveData kkm_last_timestamp [10:24:45]File name is /storage/kkm_last_timestamp [10:24:45]Write 4 bytes [10:24:45]NVStorageSaveData done [10:24:45]ExternCall_PrintAddStr [10:24:45]wPrintStart [10:24:45]Write to MH i2c: 01 00 00 17 38 4F [10:24:45]Write i2c OK [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: 01 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: 01 07 00 [10:24:45]MH_I2C_Read... [10:24:45]Read from MH i2c: 01 07 00 17 38 00 00 00 00 00 FF 0F 64 [10:24:45]RasterBufferAndPrint [10:24:45]line Счет N : (3)140977 [10:24:45]line ИНН: 02508201610067 [10:24:45]line Контрольно-Кассовый Чек [10:24:45]line ПРОДАЖА [10:24:45]line Товар: 48744546 [10:24:45]line LD Compact Silver [10:24:45]line 1.000 * 125.00 [10:24:45]line = 125.00 [10:24:45]line НДС 12% НСП 1% [10:24:45]line > о реализуемом товаре [10:24:45]line ИТОГО: 125.00 [10:24:45]line НСП 1% : 1.11 [10:24:45]line НДС 12% : 13.27 [10:24:45]line Наличными: 0.00 [10:24:45]line Безнал.: 125.00 [10:24:45]line Место: АЗС № 135 "Партнер Нефть" [10:24:45]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:24:45]line СНО: Общий режим [10:24:45]line Чек 28 16.05.2024 10:24 [10:24:45]line Смена: 44 ФФД: 1.0 [10:24:45]line ЗНМ: 0300000237 [10:24:45]line РНМ: 0000000000154221 [10:24:45]line Версия ККМ: v1.0 [10:24:45]line Платежная система: Демир КИ Банк [10:24:45]line ФМ: 0000000000963259 [10:24:45]line ФД: 4968 [10:24:45]line ФПД: 86003383827831 [10:24:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T102450&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4968&fm=86003383827831&tin=02508201610067®Number=0000000000154221&sum=12500 [10:24:45]line 0 [10:24:45]OFD Sender: Processing packet 4968 [packets to send 4, broken 3] [10:24:45]ProducePacketName [10:24:45]name=ofd_packets/00004968 [10:24:45]OFD Sender: To server: pG, [10:24:45]CommunicateWithHost lk.salyk.kg:30040 [10:24:45]ConnectInit lk.salyk.kg [10:24:45]written 0, free lines is 4095 [10:24:45]Connected sock=10 [10:24:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 12 01 00 00 2E A8 0A 01 9E 35 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 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 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 F2 DE 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 68 13 00 00 35 04 06 00 4E 38 39 24 7D 77 97 FF F9 59 05 0F 23 A6 [10:24:46]Write to MH i2c: 01 00 00 41 38 79 [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: 01 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: 01 07 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: 01 07 00 41 38 00 00 00 00 00 75 0C 01 [10:24:46]RasterBufferAndPrint [10:24:46]line [10:24:46]line [10:24:46]line [10:24:46]line [10:24:46]line [10:24:46]written 0, free lines is 3192 [10:24:46]MH_Cut [10:24:46]Write to MH i2c: D1 01 00 48 38 01 52 [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: D1 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: D1 01 00 [10:24:46]MH_I2C_Read... [10:24:46]Read from MH i2c: D1 01 00 48 38 00 51 [10:24:46]Write to MH i2c: 01 00 00 49 38 81 [10:24:46]Write i2c OK [10:24:46]MH_I2C_Read... [10:24:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 63 43 47 00 9C EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 68 13 00 00 F4 03 04 00 B6 8A 45 66 B6 04 01 00 00 0F BE D6 4E 73 D0 FF 8B [10:24:46]CommunicateWithHost err = 0 [10:24:46]CheckOFDResponse [10:24:46]1017 (14) - 77093643461234 [10:24:46]1041 (16) - 0000000000963259 [10:24:46]1040 (4) - 4968 [10:24:46]1012 (4) - 16.05.2024 04:25 [10:24:46]1206 (1) - 0 [10:24:46]OFD Sender: Remove packet 4968 [10:24:46]ProducePacketName [10:24:46]name=ofd_packets/00004968 [10:24:46]NVStorageDeleteData [10:24:46]OFD Sender: No OFD packet to send [10:24:47]*** Cut start [10:24:47]*** Partial cut [10:24:47]*** CUTSNS_PIN = 1 [10:24:47]*** CUTSNS_PIN = 0 [10:24:47]*** Brake cut motor [10:24:48]Read from MH i2c: 01 [10:24:48]MH_I2C_Read... [10:24:48]*** Stop cut motor [10:24:48]*** Cut end [10:24:48]Read from MH i2c: 01 07 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: 01 07 00 49 38 00 00 00 00 00 FF 0F 96 [10:24:48]process_action close_receipt done [10:24:48]requested_data is exist [10:24:48]produce_requested_data [10:24:48]requested_item fm.sn is exist - process it [10:24:48]wFMCommunicate request_size=4 [10:24:48]MH_SAM_APDU [10:24:48]CAPDU: 80 11 00 00 [10:24:48]Write to MH i2c: E2 08 00 4A 38 80 11 00 00 00 00 00 00 FC [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:48]Read from MH i2c: E2 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 17 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 17 00 4A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 51 [10:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:24:48]wFMCommunicate OK [10:24:48]requested_item fd.num is exist - process it [10:24:48]SAM_PROTO_GetFieldsCounters [10:24:48]wFMCommunicate request_size=4 [10:24:48]MH_SAM_APDU [10:24:48]CAPDU: 80 13 00 00 [10:24:48]Write to MH i2c: E2 08 00 4B 38 80 13 00 00 00 00 00 00 FF [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:48]Read from MH i2c: E2 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 62 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 62 00 4B 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 68 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [10:24:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 68 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:48]wFMCommunicate OK [10:24:48]SAM_PROTO_GetFieldsCounters done [10:24:48]requested_item shift.num is exist - process it [10:24:48]requested_item shift.opened is exist - process it [10:24:48]req_shift_opened [10:24:48]FM_GetShiftState [10:24:48]SAM_PROTO_GetShiftState [10:24:48]wFMCommunicate request_size=4 [10:24:48]MH_SAM_APDU [10:24:48]CAPDU: 80 13 01 00 [10:24:48]Write to MH i2c: E2 08 00 4C 38 80 13 01 00 00 00 00 00 01 [10:24:48]Write i2c OK [10:24:48]MH_I2C_Read... [10:24:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:48]Read from MH i2c: E2 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 0E 00 [10:24:48]MH_I2C_Read... [10:24:48]Read from MH i2c: E2 0E 00 4C 38 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 0D [10:24:48]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:24:48]wFMCommunicate OK [10:24:48]SAM_PROTO_GetShiftState done [10:24:48]FM_GetShiftState done [10:24:48]req_shift_opened done [10:24:48]requested_item shift.open_date is exist - process it [10:24:48]req_shift_open_date [10:24:48]req_shift_open_date done [10:24:48]produce_requested_data done [10:24:48]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4968,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [10:24:48]process_action_free close_receipt [10:24:48]json_value_free [10:24:48]json_value_free done [10:24:48]process_json_proto returns [10:24:48]Send response to host [10:24:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4968,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [10:24:48]free response buf [10:24:48]execute_script done [10:24:48]execute_script returns [10:24:48]free content buf [10:24:48]Sock 8.Close socket [10:24:48]Sock 8.Thread stoped [10:24:51]OFD Sender: No OFD packet to send [10:24:56]OFD Sender: No OFD packet to send [10:25:01]OFD Sender: No OFD packet to send [10:25:06]OFD Sender: No OFD packet to send [10:25:11]OFD Sender: No OFD packet to send [10:25:16]OFD Sender: No OFD packet to send [10:25:21]OFD Sender: No OFD packet to send [10:25:26]OFD Sender: No OFD packet to send [10:25:31]OFD Sender: No OFD packet to send [10:25:36]OFD Sender: No OFD packet to send [10:25:41]OFD Sender: No OFD packet to send [10:25:46]OFD Sender: No OFD packet to send [10:25:51]OFD Sender: No OFD packet to send [10:25:56]OFD Sender: No OFD packet to send [10:26:01]OFD Sender: No OFD packet to send [10:26:06]accept exits with 9 [10:26:06]New connection [10:26:06]New thread 3067587940 created [10:26:06]Thread 3067444580 joined [10:26:06]Waiting for new connection... [10:26:06] Sock 9.Parse request [10:26:06]Sock 9.Check first char [10:26:06]Sock 9.First char is OK [10:26:06]request: POST /json_proto HTTP/1.0 [10:26:06]Method: POST [10:26:06]URL: /json_proto [10:26:06]Method is POST - this is cgi request [10:26:06]url: /json_proto [10:26:06]query_string will be loaded in cgi processing [10:26:06]execute_cgi json_proto POST (null) [10:26:06]execute_cgi path=json_proto method=POST [10:26:06]POST find Content-Length [10:26:06]Host: 172.17.44.4:8080 [10:26:06]Content-Length: 645 [10:26:06]Content-Type: application/json [10:26:06] [10:26:06]POST finish read [10:26:06]Found Content-Length = 645 [10:26:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140978", "tax_sys" : 0, "items" : [ { "code": "47018716", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\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" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:06]execute_script... [10:26:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140978", "tax_sys" : 0, "items" : [ { "code": "47018716", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\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" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:26:06]POST & json_proto [10:26:06]process_json_proto [10:26:06]json parsed OK: [10:26:06]protocol is kg_v1.0 [10:26:06]action value=close_receipt [10:26:06]process_action close_receipt [10:26:06]cmd_close_receipt [10:26:06]MH_GetDate [10:26:06]Write to MH i2c: F0 00 00 4D 38 74 [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: F0 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: F0 09 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: F0 09 00 4D 38 00 45 DF 45 66 6C E9 28 66 2F [10:26:06]GetLastDocTimeStamp 1715855090 [10:26:06]current date 1715855173 [10:26:06]FM_GetShiftState [10:26:06]SAM_PROTO_GetShiftState [10:26:06]wFMCommunicate request_size=4 [10:26:06]MH_SAM_APDU [10:26:06]CAPDU: 80 13 01 00 [10:26:06]Write to MH i2c: E2 08 00 4E 38 80 13 01 00 00 00 00 00 03 [10:26:06]Write i2c OK [10:26:06]MH_I2C_Read... [10:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:06]Read from MH i2c: E2 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 0E 00 [10:26:06]MH_I2C_Read... [10:26:06]Read from MH i2c: E2 0E 00 4E 38 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 0F [10:26:06]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:26:06]wFMCommunicate OK [10:26:06]SAM_PROTO_GetShiftState done [10:26:06]FM_GetShiftState done [10:26:06]opened in 1715818246 [10:26:06]opened+sec_in_day 1715904646 [10:26:06]quantity*price = 6500 [10:26:06]sum+1 = 6501 [10:26:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 29 16.05.2024 10:26 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4969 ФПД: 128235342685245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T102613&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4969&fm=128235342685245&tin=02508201610067®Number=0000000000154221&sum=6500 0 [10:26:07]StoreToDocumentArchive [10:26:07]shift 44 fd 4969 [10:26:07]save to /storage/0044/doc_00004969 [10:26:07]save last doc name /storage/0044/doc_00004969 to /storage/kkm_last_doc_name [10:26:07]save OK [10:26:07]Clear old archive folders... [10:26:07]ProcessDocumentItem done err = 0, tmpTLVsize=272 [10:26:07]tlvbuf is 00D36160 [10:26:07]SAM_PROTO_ClearQueue [10:26:07]wFMCommunicate request_size=4 [10:26:07]MH_SAM_APDU [10:26:07]CAPDU: 80 09 00 00 [10:26:07]Write to MH i2c: E2 08 00 5B 38 80 09 00 00 00 00 00 00 05 [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:26:07]Read from MH i2c: E2 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 03 00 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 03 00 5B 38 00 90 00 07 [10:26:07]RAPDU: 90 00 [10:26:07]wFMCommunicate OK [10:26:07]SAM_PROTO_ClearQueue done [10:26:07]KKMCreateOFDPacket [10:26:07]OFDProtocolAddRootSTLVToBuf [10:26:07]FM_MakeSignedData [10:26:07]FM_MakeSignedData [10:26:07]SAM_PROTO_SignData [10:26:07]wFMCommunicate request_size=4 [10:26:07]MH_SAM_APDU [10:26:07]CAPDU: 80 0D 01 02 [10:26:07]Write to MH i2c: E2 08 00 5C 38 80 0D 01 02 00 00 00 00 0D [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:26:07]Read from MH i2c: E2 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 03 00 [10:26:07]MH_I2C_Read... [10:26:07]Read from MH i2c: E2 03 00 5C 38 00 90 00 08 [10:26:07]RAPDU: 90 00 [10:26:07]wFMCommunicate OK [10:26:07]wFMCommunicate request_size=255 [10:26:07]MH_SAM_APDU [10:26:07]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 38 37 31 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 45 DF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 [10:26:07]Write to MH i2c: E2 02 01 5D 38 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 38 37 31 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 45 DF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 6B [10:26:07]Write i2c OK [10:26:07]MH_I2C_Read... [10:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:08]Read from MH i2c: E2 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 03 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 03 00 5D 38 00 90 00 09 [10:26:08]RAPDU: 90 00 [10:26:08]wFMCommunicate OK [10:26:08]wFMCommunicate request_size=31 [10:26:08]MH_SAM_APDU [10:26:08]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 32 35 39 10 04 04 00 69 13 00 00 35 04 06 00 74 A1 1E 0C 64 3D [10:26:08]Write to MH i2c: E2 22 00 5E 38 80 0D 02 02 1A 00 30 30 39 36 33 32 35 39 10 04 04 00 69 13 00 00 35 04 06 00 74 A1 1E 0C 64 3D 00 00 99 [10:26:08]Write i2c OK [10:26:08]MH_I2C_Read... [10:26:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:26:08]Read from MH i2c: E2 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 03 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 03 00 5E 38 00 90 00 0A [10:26:08]RAPDU: 90 00 [10:26:08]wFMCommunicate OK [10:26:08]wFMCommunicate request_size=4 [10:26:08]MH_SAM_APDU [10:26:08]CAPDU: 80 0D 03 02 [10:26:08]Write to MH i2c: E2 08 00 5F 38 80 0D 03 02 00 00 00 00 12 [10:26:08]Write i2c OK [10:26:08]MH_I2C_Read... [10:26:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:26:08]Read from MH i2c: E2 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 0B 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 0B 00 5F 38 00 32 C1 47 AA 9C 0A F6 7F 90 00 12 [10:26:08]RAPDU: 32 C1 47 AA 9C 0A F6 7F 90 00 [10:26:08]wFMCommunicate OK [10:26:08]SAM_PROTO_SignData done [10:26:08]FM_MakeSignedData done [10:26:08]CreateOFDProtocolMessage [10:26:08]wFMCommunicate request_size=4 [10:26:08]MH_SAM_APDU [10:26:08]CAPDU: 80 11 00 00 [10:26:08]Write to MH i2c: E2 08 00 60 38 80 11 00 00 00 00 00 00 12 [10:26:08]Write i2c OK [10:26:08]MH_I2C_Read... [10:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:08]Read from MH i2c: E2 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 17 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: E2 17 00 60 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 67 [10:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:26:08]wFMCommunicate OK [10:26:08]CreateOFDProtocolMessage done [10:26:08]OFDSenderStorePacket 4969 [10:26:08]StoreOFDPacket docnum=4969 [10:26:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 24 01 00 00 A0 70 1C 01 F8 42 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 38 37 31 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 45 DF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 69 13 00 00 35 04 06 00 74 A1 1E 0C 64 3D 32 C1 47 AA 9C 0A F6 7F [10:26:08]CheckFolder [10:26:08]dirname=/storage/ofd_packets [10:26:08]CheckFolder done [10:26:08]ProducePacketName [10:26:08]name=ofd_packets/00004969 [10:26:08]NVStorageSaveData ofd_packets/00004969 [10:26:08]File name is /storage/ofd_packets/00004969 [10:26:08]Write 322 bytes [10:26:08]NVStorageSaveData done [10:26:08]OFDSenderStorePacket done [10:26:08]KKMCreateOFDPacket done [10:26:08]NVStorageSaveData kkm_last_timestamp [10:26:08]File name is /storage/kkm_last_timestamp [10:26:08]Write 4 bytes [10:26:08]NVStorageSaveData done [10:26:08]ExternCall_PrintAddStr [10:26:08]wPrintStart [10:26:08]Write to MH i2c: 01 00 00 61 38 99 [10:26:08]Write i2c OK [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: 01 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: 01 07 00 [10:26:08]MH_I2C_Read... [10:26:08]Read from MH i2c: 01 07 00 61 38 00 00 00 00 00 FF 0F AE [10:26:08]RasterBufferAndPrint [10:26:08]line Счет N : (3)140978 [10:26:08]line ИНН: 02508201610067 [10:26:08]line Контрольно-Кассовый Чек [10:26:08]line ПРОДАЖА [10:26:08]line Товар: 47018716 [10:26:08]line Водка Пшеничная 0,1л [10:26:08]line 1.000 * 65.00 [10:26:08]line = 65.00 [10:26:08]line НДС 12% НСП 1% [10:26:08]line > о реализуемом товаре [10:26:08]line ИТОГО: 65.00 [10:26:08]line НСП 1% : 0.57 [10:26:08]line НДС 12% : 6.90 [10:26:08]line Наличными: 65.00 [10:26:08]line Безнал.: 0.00 [10:26:08]line Место: АЗС № 135 "Партнер Нефть" [10:26:08]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:26:08]line СНО: Общий режим [10:26:08]line Чек 29 16.05.2024 10:26 [10:26:08]line Смена: 44 ФФД: 1.0 [10:26:08]line ЗНМ: 0300000237 [10:26:08]line РНМ: 0000000000154221 [10:26:08]line Версия ККМ: v1.0 [10:26:08]line ФМ: 0000000000963259 [10:26:08]line ФД: 4969 [10:26:08]line ФПД: 128235342685245 [10:26:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T102613&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4969&fm=128235342685245&tin=02508201610067®Number=0000000000154221&sum=6500 [10:26:08]line 0 [10:26:08]OFD Sender: Processing packet 4969 [packets to send 4, broken 3] [10:26:08]ProducePacketName [10:26:08]name=ofd_packets/00004969 [10:26:08]OFD Sender: To server: pG, [10:26:08]CommunicateWithHost lk.salyk.kg:30040 [10:26:08]ConnectInit lk.salyk.kg [10:26:08]written 0, free lines is 4095 [10:26:08]Connected sock=10 [10:26:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 24 01 00 00 A0 70 1C 01 F8 42 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 38 37 31 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 45 DF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 69 13 00 00 35 04 06 00 74 A1 1E 0C 64 3D 32 C1 47 AA 9C 0A F6 7F [10:26:09]Write to MH i2c: 01 00 00 89 38 C1 [10:26:09]Write i2c OK [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: 01 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: 01 07 00 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: 01 07 00 89 38 00 00 00 00 00 90 0C 64 [10:26:09]RasterBufferAndPrint [10:26:09]line [10:26:09]line [10:26:09]line [10:26:09]line [10:26:09]line [10:26:09]written 0, free lines is 3220 [10:26:09]MH_Cut [10:26:09]Write to MH i2c: D1 01 00 90 38 01 9A [10:26:09]Write i2c OK [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: D1 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: D1 01 00 [10:26:09]MH_I2C_Read... [10:26:09]Read from MH i2c: D1 01 00 90 38 00 99 [10:26:09]Write to MH i2c: 01 00 00 91 38 C9 [10:26:09]Write i2c OK [10:26:09]MH_I2C_Read... [10:26:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 A8 AC 47 00 2F 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 69 13 00 00 F4 03 04 00 09 8B 45 66 B6 04 01 00 00 E0 17 A0 2A 0D 5C 0E C2 [10:26:09]CommunicateWithHost err = 0 [10:26:09]CheckOFDResponse [10:26:09]1017 (14) - 77093643461234 [10:26:09]1041 (16) - 0000000000963259 [10:26:09]1040 (4) - 4969 [10:26:09]1012 (4) - 16.05.2024 04:26 [10:26:09]1206 (1) - 0 [10:26:09]OFD Sender: Remove packet 4969 [10:26:09]ProducePacketName [10:26:09]name=ofd_packets/00004969 [10:26:09]NVStorageDeleteData [10:26:09]OFD Sender: No OFD packet to send [10:26:10]*** Cut start [10:26:10]*** Partial cut [10:26:10]*** CUTSNS_PIN = 1 [10:26:10]*** CUTSNS_PIN = 0 [10:26:10]*** Brake cut motor [10:26:10]Read from MH i2c: 01 [10:26:10]MH_I2C_Read... [10:26:10]*** Stop cut motor [10:26:10]*** Cut end [10:26:10]Read from MH i2c: 01 07 00 [10:26:10]MH_I2C_Read... [10:26:10]Read from MH i2c: 01 07 00 91 38 00 00 00 00 00 FF 0F DE [10:26:10]process_action close_receipt done [10:26:10]requested_data is exist [10:26:10]produce_requested_data [10:26:10]requested_item fm.sn is exist - process it [10:26:10]wFMCommunicate request_size=4 [10:26:10]MH_SAM_APDU [10:26:10]CAPDU: 80 11 00 00 [10:26:10]Write to MH i2c: E2 08 00 92 38 80 11 00 00 00 00 00 00 44 [10:26:10]Write i2c OK [10:26:10]MH_I2C_Read... [10:26:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:26:11]Read from MH i2c: E2 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 17 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 17 00 92 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 99 [10:26:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:26:11]wFMCommunicate OK [10:26:11]requested_item fd.num is exist - process it [10:26:11]SAM_PROTO_GetFieldsCounters [10:26:11]wFMCommunicate request_size=4 [10:26:11]MH_SAM_APDU [10:26:11]CAPDU: 80 13 00 00 [10:26:11]Write to MH i2c: E2 08 00 93 38 80 13 00 00 00 00 00 00 47 [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:26:11]Read from MH i2c: E2 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 62 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 62 00 93 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 69 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [10:26:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 69 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:26:11]wFMCommunicate OK [10:26:11]SAM_PROTO_GetFieldsCounters done [10:26:11]requested_item shift.num is exist - process it [10:26:11]requested_item shift.opened is exist - process it [10:26:11]req_shift_opened [10:26:11]FM_GetShiftState [10:26:11]SAM_PROTO_GetShiftState [10:26:11]wFMCommunicate request_size=4 [10:26:11]MH_SAM_APDU [10:26:11]CAPDU: 80 13 01 00 [10:26:11]Write to MH i2c: E2 08 00 94 38 80 13 01 00 00 00 00 00 49 [10:26:11]Write i2c OK [10:26:11]MH_I2C_Read... [10:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:26:11]Read from MH i2c: E2 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 0E 00 [10:26:11]MH_I2C_Read... [10:26:11]Read from MH i2c: E2 0E 00 94 38 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 55 [10:26:11]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:26:11]wFMCommunicate OK [10:26:11]SAM_PROTO_GetShiftState done [10:26:11]FM_GetShiftState done [10:26:11]req_shift_opened done [10:26:11]requested_item shift.open_date is exist - process it [10:26:11]req_shift_open_date [10:26:11]req_shift_open_date done [10:26:11]produce_requested_data done [10:26:11]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4969,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [10:26:11]process_action_free close_receipt [10:26:11]json_value_free [10:26:11]json_value_free done [10:26:11]process_json_proto returns [10:26:11]Send response to host [10:26:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4969,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [10:26:11]free response buf [10:26:11]execute_script done [10:26:11]execute_script returns [10:26:11]free content buf [10:26:11]Sock 9.Close socket [10:26:11]Sock 9.Thread stoped [10:26:14]OFD Sender: No OFD packet to send [10:26:19]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:34]OFD Sender: No OFD packet to send [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:34]OFD Sender: No OFD packet to send [10:30:39]OFD Sender: No OFD packet to send [10:30:44]OFD Sender: No OFD packet to send [10:30:49]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:20]OFD Sender: No OFD packet to send [10:35:25]OFD Sender: No OFD packet to send [10:35:30]OFD Sender: No OFD packet to send [10:35:35]OFD Sender: No OFD packet to send [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:41]accept exits with 8 [10:37:41]New connection [10:37:41]New thread 3067444580 created [10:37:41]Thread 3067587940 joined [10:37:41]Waiting for new connection... [10:37:41] Sock 8.Parse request [10:37:41]Sock 8.Check first char [10:37:41]Sock 8.First char is OK [10:37:41]request: POST /json_proto HTTP/1.0 [10:37:41]Method: POST [10:37:41]URL: /json_proto [10:37:41]Method is POST - this is cgi request [10:37:41]url: /json_proto [10:37:41]query_string will be loaded in cgi processing [10:37:41]execute_cgi json_proto POST (null) [10:37:41]execute_cgi path=json_proto method=POST [10:37:41]POST find Content-Length [10:37:41]Host: 172.17.44.4:8080 [10:37:41]Content-Length: 628 [10:37:41]Content-Type: application/json [10:37:41] [10:37:41]POST finish read [10:37:41]Found Content-Length = 628 [10:37:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140979", "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" ] } } [10:37:41]execute_script... [10:37: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)140979", "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" ] } } [10:37:41]POST & json_proto [10:37:41]process_json_proto [10:37:41]json parsed OK: [10:37:41]protocol is kg_v1.0 [10:37:41]action value=close_receipt [10:37:41]process_action close_receipt [10:37:41]cmd_close_receipt [10:37:41]MH_GetDate [10:37:41]Write to MH i2c: F0 00 00 95 38 BC [10:37:41]Write i2c OK [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: F0 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: F0 09 00 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: F0 09 00 95 38 00 FC E1 45 66 6C E9 28 66 30 [10:37:41]GetLastDocTimeStamp 1715855173 [10:37:41]current date 1715855868 [10:37:41]FM_GetShiftState [10:37:41]SAM_PROTO_GetShiftState [10:37:41]wFMCommunicate request_size=4 [10:37:41]MH_SAM_APDU [10:37:41]CAPDU: 80 13 01 00 [10:37:41]Write to MH i2c: E2 08 00 96 38 80 13 01 00 00 00 00 00 4B [10:37:41]Write i2c OK [10:37:41]MH_I2C_Read... [10:37:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:41]Read from MH i2c: E2 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: E2 0E 00 [10:37:41]MH_I2C_Read... [10:37:41]Read from MH i2c: E2 0E 00 96 38 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 57 [10:37:41]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:37:41]wFMCommunicate OK [10:37:41]SAM_PROTO_GetShiftState done [10:37:41]FM_GetShiftState done [10:37:41]opened in 1715818246 [10:37:41]opened+sec_in_day 1715904646 [10:37:41]quantity*price = 13000 [10:37:41]sum+1 = 13001 [10:37:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 30 16.05.2024 10:37 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4970 ФПД: 74599192613803 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T103748&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4970&fm=74599192613803&tin=02508201610067®Number=0000000000154221&sum=13000 0 [10:37:42]StoreToDocumentArchive [10:37:42]shift 44 fd 4970 [10:37:42]save to /storage/0044/doc_00004970 [10:37:42]save last doc name /storage/0044/doc_00004970 to /storage/kkm_last_doc_name [10:37:42]save OK [10:37:42]Clear old archive folders... [10:37:42]ProcessDocumentItem done err = 0, tmpTLVsize=276 [10:37:42]tlvbuf is 00D637D0 [10:37:42]SAM_PROTO_ClearQueue [10:37:42]wFMCommunicate request_size=4 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 09 00 00 [10:37:42]Write to MH i2c: E2 08 00 A3 38 80 09 00 00 00 00 00 00 4D [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:37:42]Read from MH i2c: E2 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 [10:37:42]MH_I2C_Read... [10:37:42]Read from MH i2c: E2 03 00 A3 38 00 90 00 4F [10:37:42]RAPDU: 90 00 [10:37:42]wFMCommunicate OK [10:37:42]SAM_PROTO_ClearQueue done [10:37:42]KKMCreateOFDPacket [10:37:42]OFDProtocolAddRootSTLVToBuf [10:37:42]FM_MakeSignedData [10:37:42]FM_MakeSignedData [10:37:42]SAM_PROTO_SignData [10:37:42]wFMCommunicate request_size=4 [10:37:42]MH_SAM_APDU [10:37:42]CAPDU: 80 0D 01 02 [10:37:42]Write to MH i2c: E2 08 00 A4 38 80 0D 01 02 00 00 00 00 55 [10:37:42]Write i2c OK [10:37:42]MH_I2C_Read... [10:37:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:37:43]Read from MH i2c: E2 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 03 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 03 00 A4 38 00 90 00 50 [10:37:43]RAPDU: 90 00 [10:37:43]wFMCommunicate OK [10:37:43]wFMCommunicate request_size=255 [10:37:43]MH_SAM_APDU [10:37:43]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 1E 00 00 00 F4 03 04 00 FC E1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 [10:37:43]Write to MH i2c: E2 02 01 A5 38 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 1E 00 00 00 F4 03 04 00 FC E1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 00 00 38 [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:43]Read from MH i2c: E2 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 03 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 03 00 A5 38 00 90 00 51 [10:37:43]RAPDU: 90 00 [10:37:43]wFMCommunicate OK [10:37:43]wFMCommunicate request_size=35 [10:37:43]MH_SAM_APDU [10:37:43]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6A 13 00 00 35 04 06 00 43 D8 FA 60 53 AB [10:37:43]Write to MH i2c: E2 26 00 A6 38 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6A 13 00 00 35 04 06 00 43 D8 FA 60 53 AB 00 00 3D [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:37:43]Read from MH i2c: E2 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 03 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 03 00 A6 38 00 90 00 52 [10:37:43]RAPDU: 90 00 [10:37:43]wFMCommunicate OK [10:37:43]wFMCommunicate request_size=4 [10:37:43]MH_SAM_APDU [10:37:43]CAPDU: 80 0D 03 02 [10:37:43]Write to MH i2c: E2 08 00 A7 38 80 0D 03 02 00 00 00 00 5A [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:37:43]Read from MH i2c: E2 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 0B 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 0B 00 A7 38 00 38 EC CA BC AE 0E 0C 03 90 00 D0 [10:37:43]RAPDU: 38 EC CA BC AE 0E 0C 03 90 00 [10:37:43]wFMCommunicate OK [10:37:43]SAM_PROTO_SignData done [10:37:43]FM_MakeSignedData done [10:37:43]CreateOFDProtocolMessage [10:37:43]wFMCommunicate request_size=4 [10:37:43]MH_SAM_APDU [10:37:43]CAPDU: 80 11 00 00 [10:37:43]Write to MH i2c: E2 08 00 A8 38 80 11 00 00 00 00 00 00 5A [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:43]Read from MH i2c: E2 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 17 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: E2 17 00 A8 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 AF [10:37:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:37:43]wFMCommunicate OK [10:37:43]CreateOFDProtocolMessage done [10:37:43]OFDSenderStorePacket 4970 [10:37:43]StoreOFDPacket docnum=4970 [10:37:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 28 01 00 00 48 CD 20 01 4E 20 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 1E 00 00 00 F4 03 04 00 FC E1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6A 13 00 00 35 04 06 00 43 D8 FA 60 53 AB 38 EC CA BC AE 0E 0C 03 [10:37:43]CheckFolder [10:37:43]dirname=/storage/ofd_packets [10:37:43]CheckFolder done [10:37:43]ProducePacketName [10:37:43]name=ofd_packets/00004970 [10:37:43]NVStorageSaveData ofd_packets/00004970 [10:37:43]File name is /storage/ofd_packets/00004970 [10:37:43]Write 326 bytes [10:37:43]NVStorageSaveData done [10:37:43]OFDSenderStorePacket done [10:37:43]KKMCreateOFDPacket done [10:37:43]NVStorageSaveData kkm_last_timestamp [10:37:43]File name is /storage/kkm_last_timestamp [10:37:43]Write 4 bytes [10:37:43]NVStorageSaveData done [10:37:43]ExternCall_PrintAddStr [10:37:43]wPrintStart [10:37:43]Write to MH i2c: 01 00 00 A9 38 E1 [10:37:43]Write i2c OK [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: 01 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: 01 07 00 [10:37:43]MH_I2C_Read... [10:37:43]Read from MH i2c: 01 07 00 A9 38 00 00 00 00 00 FF 0F F6 [10:37:43]RasterBufferAndPrint [10:37:43]line Счет N : (3)140979 [10:37:43]line ИНН: 02508201610067 [10:37:43]line Контрольно-Кассовый Чек [10:37:43]line ПРОДАЖА [10:37:43]line Товар: 2000036230011 [10:37:43]line Кофе Латте XL(GABB TRADE) [10:37:43]line 1.000 * 130.00 [10:37:43]line = 130.00 [10:37:43]line НДС 12% НСП 1% [10:37:43]line > о реализуемом товаре [10:37:43]line ИТОГО: 130.00 [10:37:43]line НСП 1% : 1.15 [10:37:43]line НДС 12% : 13.80 [10:37:43]line Наличными: 130.00 [10:37:43]line Безнал.: 0.00 [10:37:43]line Место: АЗС № 135 "Партнер Нефть" [10:37:43]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:37:43]line СНО: Общий режим [10:37:43]line Чек 30 16.05.2024 10:37 [10:37:43]line Смена: 44 ФФД: 1.0 [10:37:43]line ЗНМ: 0300000237 [10:37:43]line РНМ: 0000000000154221 [10:37:43]line Версия ККМ: v1.0 [10:37:43]line ФМ: 0000000000963259 [10:37:43]line ФД: 4970 [10:37:43]line ФПД: 74599192613803 [10:37:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T103748&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4970&fm=74599192613803&tin=02508201610067®Number=0000000000154221&sum=13000 [10:37:43]line 0 [10:37:43]OFD Sender: Processing packet 4970 [packets to send 4, broken 3] [10:37:43]ProducePacketName [10:37:43]name=ofd_packets/00004970 [10:37:43]OFD Sender: To server: pG, [10:37:43]CommunicateWithHost lk.salyk.kg:30040 [10:37:43]ConnectInit lk.salyk.kg [10:37:43]written 0, free lines is 4095 [10:37:43]Connected sock=9 [10:37:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 28 01 00 00 48 CD 20 01 4E 20 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 1E 00 00 00 F4 03 04 00 FC E1 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6A 13 00 00 35 04 06 00 43 D8 FA 60 53 AB 38 EC CA BC AE 0E 0C 03 [10:37:44]Write to MH i2c: 01 00 00 D1 38 09 [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: 01 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: 01 07 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: 01 07 00 D1 38 00 00 00 00 00 8B 0C A7 [10:37:44]RasterBufferAndPrint [10:37:44]line [10:37:44]line [10:37:44]line [10:37:44]line [10:37:44]line [10:37:44]written 0, free lines is 3216 [10:37:44]MH_Cut [10:37:44]Write to MH i2c: D1 01 00 D8 38 01 E2 [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: D1 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: D1 01 00 [10:37:44]MH_I2C_Read... [10:37:44]Read from MH i2c: D1 01 00 D8 38 00 E1 [10:37:44]Write to MH i2c: 01 00 00 D9 38 11 [10:37:44]Write i2c OK [10:37:44]MH_I2C_Read... [10:37:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 A0 08 47 00 16 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6A 13 00 00 F4 03 04 00 C0 8D 45 66 B6 04 01 00 00 F8 48 75 04 87 6E BA 80 [10:37:44]CommunicateWithHost err = 0 [10:37:44]CheckOFDResponse [10:37:44]1017 (14) - 77093643461234 [10:37:44]1041 (16) - 0000000000963259 [10:37:44]1040 (4) - 4970 [10:37:44]1012 (4) - 16.05.2024 04:38 [10:37:44]1206 (1) - 0 [10:37:44]OFD Sender: Remove packet 4970 [10:37:44]ProducePacketName [10:37:44]name=ofd_packets/00004970 [10:37:44]NVStorageDeleteData [10:37:44]OFD Sender: No OFD packet to send [10:37:45]*** Cut start [10:37:45]*** Partial cut [10:37:45]*** CUTSNS_PIN = 1 [10:37:45]*** CUTSNS_PIN = 0 [10:37:45]*** Brake cut motor [10:37:45]Read from MH i2c: 01 [10:37:45]MH_I2C_Read... [10:37:45]*** Stop cut motor [10:37:46]*** Cut end [10:37:46]Read from MH i2c: 01 07 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: 01 07 00 D9 38 00 00 00 00 00 FF 0F 26 [10:37:46]process_action close_receipt done [10:37:46]requested_data is exist [10:37:46]produce_requested_data [10:37:46]requested_item fm.sn is exist - process it [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 11 00 00 [10:37:46]Write to MH i2c: E2 08 00 DA 38 80 11 00 00 00 00 00 00 8C [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 17 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 17 00 DA 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 E1 [10:37:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:37:46]wFMCommunicate OK [10:37:46]requested_item fd.num is exist - process it [10:37:46]SAM_PROTO_GetFieldsCounters [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 13 00 00 [10:37:46]Write to MH i2c: E2 08 00 DB 38 80 13 00 00 00 00 00 00 8F [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 62 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 62 00 DB 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 AB [10:37:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:37:46]wFMCommunicate OK [10:37:46]SAM_PROTO_GetFieldsCounters done [10:37:46]requested_item shift.num is exist - process it [10:37:46]requested_item shift.opened is exist - process it [10:37:46]req_shift_opened [10:37:46]FM_GetShiftState [10:37:46]SAM_PROTO_GetShiftState [10:37:46]wFMCommunicate request_size=4 [10:37:46]MH_SAM_APDU [10:37:46]CAPDU: 80 13 01 00 [10:37:46]Write to MH i2c: E2 08 00 DC 38 80 13 01 00 00 00 00 00 91 [10:37:46]Write i2c OK [10:37:46]MH_I2C_Read... [10:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:37:46]Read from MH i2c: E2 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 0E 00 [10:37:46]MH_I2C_Read... [10:37:46]Read from MH i2c: E2 0E 00 DC 38 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 9D [10:37:46]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:37:46]wFMCommunicate OK [10:37:46]SAM_PROTO_GetShiftState done [10:37:46]FM_GetShiftState done [10:37:46]req_shift_opened done [10:37:46]requested_item shift.open_date is exist - process it [10:37:46]req_shift_open_date [10:37:46]req_shift_open_date done [10:37:46]produce_requested_data done [10:37:46]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4970,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [10:37:46]process_action_free close_receipt [10:37:46]json_value_free [10:37:46]json_value_free done [10:37:46]process_json_proto returns [10:37:46]Send response to host [10:37:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4970,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [10:37:46]free response buf [10:37:46]execute_script done [10:37:46]execute_script returns [10:37:46]free content buf [10:37:46]Sock 8.Close socket [10:37:46]Sock 8.Thread stoped [10:37:49]OFD Sender: No OFD packet to send [10:37:54]OFD Sender: No OFD packet to send [10:37:59]OFD Sender: No OFD packet to send [10:38:04]OFD Sender: No OFD packet to send [10:38:09]OFD Sender: No OFD packet to send [10:38:14]OFD Sender: No OFD packet to send [10:38:19]OFD Sender: No OFD packet to send [10:38:24]OFD Sender: No OFD packet to send [10:38:29]OFD Sender: No OFD packet to send [10:38:34]OFD Sender: No OFD packet to send [10:38:39]OFD Sender: No OFD packet to send [10:38:44]OFD Sender: No OFD packet to send [10:38:49]OFD Sender: No OFD packet to send [10:38:54]OFD Sender: No OFD packet to send [10:38:59]OFD Sender: No OFD packet to send [10:39:04]OFD Sender: No OFD packet to send [10:39:09]OFD Sender: No OFD packet to send [10:39:14]OFD Sender: No OFD packet to send [10:39:19]OFD Sender: No OFD packet to send [10:39:24]OFD Sender: No OFD packet to send [10:39:29]OFD Sender: No OFD packet to send [10:39:34]OFD Sender: No OFD packet to send [10:39:39]OFD Sender: No OFD packet to send [10:39:44]OFD Sender: No OFD packet to send [10:39:49]OFD Sender: No OFD packet to send [10:39:54]OFD Sender: No OFD packet to send [10:39:59]OFD Sender: No OFD packet to send [10:40:04]OFD Sender: No OFD packet to send [10:40:09]OFD Sender: No OFD packet to send [10:40:14]OFD Sender: No OFD packet to send [10:40:19]OFD Sender: No OFD packet to send [10:40:24]OFD Sender: No OFD packet to send [10:40:29]OFD Sender: No OFD packet to send [10:40:34]OFD Sender: No OFD packet to send [10:40:39]OFD Sender: No OFD packet to send [10:40:44]OFD Sender: No OFD packet to send [10:40:49]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:50]OFD Sender: No OFD packet to send [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:35]OFD Sender: No OFD packet to send [10:43:40]OFD Sender: No OFD packet to send [10:43:45]OFD Sender: No OFD packet to send [10:43:50]OFD Sender: No OFD packet to send [10:43:55]OFD Sender: No OFD packet to send [10:44:00]OFD Sender: No OFD packet to send [10:44:05]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:35]OFD Sender: No OFD packet to send [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:20]OFD Sender: No OFD packet to send [10:45:22]accept exits with 10 [10:45:22]New connection [10:45:22]New thread 3067587940 created [10:45:22]Thread 3067444580 joined [10:45:22]Waiting for new connection... [10:45:22] Sock 10.Parse request [10:45:22]Sock 10.Check first char [10:45:22]Sock 10.First char is OK [10:45:22]request: POST /json_proto HTTP/1.0 [10:45:22]Method: POST [10:45:22]URL: /json_proto [10:45:22]Method is POST - this is cgi request [10:45:22]url: /json_proto [10:45:22]query_string will be loaded in cgi processing [10:45:22]execute_cgi json_proto POST (null) [10:45:22]execute_cgi path=json_proto method=POST [10:45:22]POST find Content-Length [10:45:22]Host: 172.17.44.4:8080 [10:45:22]Content-Length: 613 [10:45:22]Content-Type: application/json [10:45:22] [10:45:22]POST finish read [10:45:22]Found Content-Length = 613 [10:45:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140980", "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" ] } } [10:45:22]execute_script... [10:45: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)140980", "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" ] } } [10:45:22]POST & json_proto [10:45:22]process_json_proto [10:45:22]json parsed OK: [10:45:22]protocol is kg_v1.0 [10:45:22]action value=close_receipt [10:45:22]process_action close_receipt [10:45:22]cmd_close_receipt [10:45:22]MH_GetDate [10:45:22]Write to MH i2c: F0 00 00 DD 38 04 [10:45:22]Write i2c OK [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: F0 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: F0 09 00 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: F0 09 00 DD 38 00 C9 E3 45 66 6C E9 28 66 47 [10:45:22]GetLastDocTimeStamp 1715855868 [10:45:22]current date 1715856329 [10:45:22]FM_GetShiftState [10:45:22]SAM_PROTO_GetShiftState [10:45:22]wFMCommunicate request_size=4 [10:45:22]MH_SAM_APDU [10:45:22]CAPDU: 80 13 01 00 [10:45:22]Write to MH i2c: E2 08 00 DE 38 80 13 01 00 00 00 00 00 93 [10:45:22]Write i2c OK [10:45:22]MH_I2C_Read... [10:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:22]Read from MH i2c: E2 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 0E 00 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 0E 00 DE 38 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 9F [10:45:22]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:45:22]wFMCommunicate OK [10:45:22]SAM_PROTO_GetShiftState done [10:45:22]FM_GetShiftState done [10:45:22]opened in 1715818246 [10:45:22]opened+sec_in_day 1715904646 [10:45:22]quantity*price = 8000 [10:45:22]sum+1 = 8001 [10:45:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 31 16.05.2024 10:45 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4971 ФПД: 80428991927038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T104529&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4971&fm=80428991927038&tin=02508201610067®Number=0000000000154221&sum=8000 0 [10:45:23]StoreToDocumentArchive [10:45:23]shift 44 fd 4971 [10:45:23]save to /storage/0044/doc_00004971 [10:45:23]save last doc name /storage/0044/doc_00004971 to /storage/kkm_last_doc_name [10:45:23]save OK [10:45:23]Clear old archive folders... [10:45:23]ProcessDocumentItem done err = 0, tmpTLVsize=268 [10:45:23]tlvbuf is 00D229E0 [10:45:23]SAM_PROTO_ClearQueue [10:45:23]wFMCommunicate request_size=4 [10:45:23]MH_SAM_APDU [10:45:23]CAPDU: 80 09 00 00 [10:45:23]Write to MH i2c: E2 08 00 EB 38 80 09 00 00 00 00 00 00 95 [10:45:23]Write i2c OK [10:45:23]MH_I2C_Read... [10:45:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:23]Read from MH i2c: E2 [10:45:23]MH_I2C_Read... [10:45:23]Read from MH i2c: E2 03 00 [10:45:23]MH_I2C_Read... [10:45:23]Read from MH i2c: E2 03 00 EB 38 00 90 00 97 [10:45:23]RAPDU: 90 00 [10:45:23]wFMCommunicate OK [10:45:23]SAM_PROTO_ClearQueue done [10:45:23]KKMCreateOFDPacket [10:45:23]OFDProtocolAddRootSTLVToBuf [10:45:23]FM_MakeSignedData [10:45:23]FM_MakeSignedData [10:45:23]SAM_PROTO_SignData [10:45:23]wFMCommunicate request_size=4 [10:45:23]MH_SAM_APDU [10:45:23]CAPDU: 80 0D 01 02 [10:45:23]Write to MH i2c: E2 08 00 EC 38 80 0D 01 02 00 00 00 00 9D [10:45:23]Write i2c OK [10:45:23]MH_I2C_Read... [10:45:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:23]Read from MH i2c: E2 [10:45:23]MH_I2C_Read... [10:45:23]Read from MH i2c: E2 03 00 [10:45:23]MH_I2C_Read... [10:45:23]Read from MH i2c: E2 03 00 EC 38 00 90 00 98 [10:45:23]RAPDU: 90 00 [10:45:23]wFMCommunicate OK [10:45:23]wFMCommunicate request_size=255 [10:45:23]MH_SAM_APDU [10:45:23]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 1F 00 00 00 F4 03 04 00 C9 E3 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [10:45:23]Write to MH i2c: E2 02 01 ED 38 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 1F 00 00 00 F4 03 04 00 C9 E3 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 48 [10:45:23]Write i2c OK [10:45:23]MH_I2C_Read... [10:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:24]Read from MH i2c: E2 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 03 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 03 00 ED 38 00 90 00 99 [10:45:24]RAPDU: 90 00 [10:45:24]wFMCommunicate OK [10:45:24]wFMCommunicate request_size=27 [10:45:24]MH_SAM_APDU [10:45:24]CAPDU: 80 0D 02 02 16 33 32 35 39 10 04 04 00 6B 13 00 00 35 04 06 00 49 26 55 7E 52 FE [10:45:24]Write to MH i2c: E2 1E 00 EE 38 80 0D 02 02 16 00 33 32 35 39 10 04 04 00 6B 13 00 00 35 04 06 00 49 26 55 7E 52 FE 00 00 06 [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 [10:45:24]MH_I2C_Read... [10:45:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:24]Read from MH i2c: E2 03 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 03 00 EE 38 00 90 00 9A [10:45:24]RAPDU: 90 00 [10:45:24]wFMCommunicate OK [10:45:24]wFMCommunicate request_size=4 [10:45:24]MH_SAM_APDU [10:45:24]CAPDU: 80 0D 03 02 [10:45:24]Write to MH i2c: E2 08 00 EF 38 80 0D 03 02 00 00 00 00 A2 [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:24]Read from MH i2c: E2 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 0B 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 0B 00 EF 38 00 08 3D 39 CF A9 34 5B 82 90 00 AA [10:45:24]RAPDU: 08 3D 39 CF A9 34 5B 82 90 00 [10:45:24]wFMCommunicate OK [10:45:24]SAM_PROTO_SignData done [10:45:24]FM_MakeSignedData done [10:45:24]CreateOFDProtocolMessage [10:45:24]wFMCommunicate request_size=4 [10:45:24]MH_SAM_APDU [10:45:24]CAPDU: 80 11 00 00 [10:45:24]Write to MH i2c: E2 08 00 F0 38 80 11 00 00 00 00 00 00 A2 [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:24]Read from MH i2c: E2 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 17 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: E2 17 00 F0 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F7 [10:45:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:45:24]wFMCommunicate OK [10:45:24]CreateOFDProtocolMessage done [10:45:24]OFDSenderStorePacket 4971 [10:45:24]StoreOFDPacket docnum=4971 [10:45:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 20 01 00 00 CC 4E 18 01 5E C2 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 1F 00 00 00 F4 03 04 00 C9 E3 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6B 13 00 00 35 04 06 00 49 26 55 7E 52 FE 08 3D 39 CF A9 34 5B 82 [10:45:24]CheckFolder [10:45:24]dirname=/storage/ofd_packets [10:45:24]CheckFolder done [10:45:24]ProducePacketName [10:45:24]name=ofd_packets/00004971 [10:45:24]NVStorageSaveData ofd_packets/00004971 [10:45:24]File name is /storage/ofd_packets/00004971 [10:45:24]Write 318 bytes [10:45:24]NVStorageSaveData done [10:45:24]OFDSenderStorePacket done [10:45:24]KKMCreateOFDPacket done [10:45:24]NVStorageSaveData kkm_last_timestamp [10:45:24]File name is /storage/kkm_last_timestamp [10:45:24]Write 4 bytes [10:45:24]NVStorageSaveData done [10:45:24]ExternCall_PrintAddStr [10:45:24]wPrintStart [10:45:24]Write to MH i2c: 01 00 00 F1 38 29 [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: 01 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: 01 07 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: 01 07 00 F1 38 00 00 00 00 00 FF 0F 3E [10:45:24]RasterBufferAndPrint [10:45:24]line Счет N : (3)140980 [10:45:24]line ИНН: 02508201610067 [10:45:24]line Контрольно-Кассовый Чек [10:45:24]line ПРОДАЖА [10:45:24]line Товар: 4870001570057 [10:45:24]line Напиток Pepsi 0,5л [10:45:24]line 1.000 * 80.00 [10:45:24]line = 80.00 [10:45:24]line НДС 12% НСП 1% [10:45:24]line > о реализуемом товаре [10:45:24]line ИТОГО: 80.00 [10:45:24]line НСП 1% : 0.71 [10:45:24]line НДС 12% : 8.50 [10:45:24]line Наличными: 80.00 [10:45:24]line Безнал.: 0.00 [10:45:24]line Место: АЗС № 135 "Партнер Нефть" [10:45:24]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:45:24]line СНО: Общий режим [10:45:24]line Чек 31 16.05.2024 10:45 [10:45:24]line Смена: 44 ФФД: 1.0 [10:45:24]line ЗНМ: 0300000237 [10:45:24]line РНМ: 0000000000154221 [10:45:24]line Версия ККМ: v1.0 [10:45:24]line ФМ: 0000000000963259 [10:45:24]line ФД: 4971 [10:45:24]line ФПД: 80428991927038 [10:45:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T104529&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4971&fm=80428991927038&tin=02508201610067®Number=0000000000154221&sum=8000 [10:45:24]line 0 [10:45:24]written 0, free lines is 4095 [10:45:24]OFD Sender: Processing packet 4971 [packets to send 4, broken 3] [10:45:24]ProducePacketName [10:45:24]name=ofd_packets/00004971 [10:45:24]OFD Sender: To server: pG, [10:45:24]CommunicateWithHost lk.salyk.kg:30040 [10:45:24]ConnectInit lk.salyk.kg [10:45:24]Write to MH i2c: 01 00 00 19 39 52 [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: 01 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: 01 07 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: 01 07 00 19 39 00 00 00 00 00 8E 0C F3 [10:45:24]RasterBufferAndPrint [10:45:24]line [10:45:24]line [10:45:24]line [10:45:24]line [10:45:24]line [10:45:24]written 0, free lines is 3219 [10:45:24]MH_Cut [10:45:24]Write to MH i2c: D1 01 00 20 39 01 2B [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: D1 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: D1 01 00 [10:45:24]MH_I2C_Read... [10:45:24]Read from MH i2c: D1 01 00 20 39 00 2A [10:45:24]Write to MH i2c: 01 00 00 21 39 5A [10:45:24]Write i2c OK [10:45:24]MH_I2C_Read... [10:45:25]Connected sock=9 [10:45:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 20 01 00 00 CC 4E 18 01 5E C2 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 1F 00 00 00 F4 03 04 00 C9 E3 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6B 13 00 00 35 04 06 00 49 26 55 7E 52 FE 08 3D 39 CF A9 34 5B 82 [10:45:25]*** Cut start [10:45:25]*** Partial cut [10:45:25]*** CUTSNS_PIN = 1 [10:45:26]*** CUTSNS_PIN = 0 [10:45:26]*** Brake cut motor [10:45:26]Read from MH i2c: 01 [10:45:26]MH_I2C_Read... [10:45:26]*** Stop cut motor [10:45:26]*** Cut end [10:45:26]Read from MH i2c: 01 07 00 [10:45:26]MH_I2C_Read... [10:45:26]Read from MH i2c: 01 07 00 21 39 00 00 00 00 00 FF 0F 6F [10:45:26]process_action close_receipt done [10:45:26]requested_data is exist [10:45:26]produce_requested_data [10:45:26]requested_item fm.sn is exist - process it [10:45:26]wFMCommunicate request_size=4 [10:45:26]MH_SAM_APDU [10:45:26]CAPDU: 80 11 00 00 [10:45:26]Write to MH i2c: E2 08 00 22 39 80 11 00 00 00 00 00 00 D5 [10:45:26]Write i2c OK [10:45:26]MH_I2C_Read... [10:45:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:26]Read from MH i2c: E2 [10:45:26]MH_I2C_Read... [10:45:26]Read from MH i2c: E2 17 00 [10:45:26]MH_I2C_Read... [10:45:26]Read from MH i2c: E2 17 00 22 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 2A [10:45:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:45:26]wFMCommunicate OK [10:45:26]requested_item fd.num is exist - process it [10:45:26]SAM_PROTO_GetFieldsCounters [10:45:26]wFMCommunicate request_size=4 [10:45:26]MH_SAM_APDU [10:45:26]CAPDU: 80 13 00 00 [10:45:26]Write to MH i2c: E2 08 00 23 39 80 13 00 00 00 00 00 00 D8 [10:45:26]Write i2c OK [10:45:26]MH_I2C_Read... [10:45:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:26]Read from MH i2c: E2 [10:45:26]MH_I2C_Read... [10:45:26]Read from MH i2c: E2 62 00 [10:45:26]MH_I2C_Read... [10:45:26]Read from MH i2c: E2 62 00 23 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6B 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 F8 [10:45:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6B 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:26]wFMCommunicate OK [10:45:26]SAM_PROTO_GetFieldsCounters done [10:45:26]requested_item shift.num is exist - process it [10:45:26]requested_item shift.opened is exist - process it [10:45:26]req_shift_opened [10:45:26]FM_GetShiftState [10:45:26]SAM_PROTO_GetShiftState [10:45:26]wFMCommunicate request_size=4 [10:45:26]MH_SAM_APDU [10:45:26]CAPDU: 80 13 01 00 [10:45:26]Write to MH i2c: E2 08 00 24 39 80 13 01 00 00 00 00 00 DA [10:45:26]Write i2c OK [10:45:26]MH_I2C_Read... [10:45:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:26]Read from MH i2c: E2 [10:45:26]MH_I2C_Read... [10:45:26]Read from MH i2c: E2 0E 00 [10:45:26]MH_I2C_Read... [10:45:26]Read from MH i2c: E2 0E 00 24 39 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E6 [10:45:26]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:45:26]wFMCommunicate OK [10:45:26]SAM_PROTO_GetShiftState done [10:45:26]FM_GetShiftState done [10:45:26]req_shift_opened done [10:45:26]requested_item shift.open_date is exist - process it [10:45:26]req_shift_open_date [10:45:26]req_shift_open_date done [10:45:26]produce_requested_data done [10:45:26]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4971,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [10:45:26]process_action_free close_receipt [10:45:26]json_value_free [10:45:26]json_value_free done [10:45:26]process_json_proto returns [10:45:26]Send response to host [10:45:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4971,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [10:45:26]free response buf [10:45:26]execute_script done [10:45:26]execute_script returns [10:45:26]free content buf [10:45:26]Sock 10.Close socket [10:45:26]Sock 10.Thread stoped [10:45:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 73 B8 47 00 72 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6B 13 00 00 F4 03 04 00 90 8F 45 66 B6 04 01 00 00 12 C2 9F F2 1F EE 6B D2 [10:45:29]CommunicateWithHost err = 0 [10:45:29]CheckOFDResponse [10:45:29]1017 (14) - 77093643461234 [10:45:29]1041 (16) - 0000000000963259 [10:45:29]1040 (4) - 4971 [10:45:29]1012 (4) - 16.05.2024 04:46 [10:45:29]1206 (1) - 0 [10:45:29]OFD Sender: Remove packet 4971 [10:45:29]ProducePacketName [10:45:29]name=ofd_packets/00004971 [10:45:29]NVStorageDeleteData [10:45:30]OFD Sender: No OFD packet to send [10:45:35]OFD Sender: No OFD packet to send [10:45:40]OFD Sender: No OFD packet to send [10:45:45]OFD Sender: No OFD packet to send [10:45:50]OFD Sender: No OFD packet to send [10:45:55]OFD Sender: No OFD packet to send [10:46:00]OFD Sender: No OFD packet to send [10:46:05]OFD Sender: No OFD packet to send [10:46:10]OFD Sender: No OFD packet to send [10:46:15]OFD Sender: No OFD packet to send [10:46:20]OFD Sender: No OFD packet to send [10:46:25]OFD Sender: No OFD packet to send [10:46:30]OFD Sender: No OFD packet to send [10:46:35]OFD Sender: No OFD packet to send [10:46:40]OFD Sender: No OFD packet to send [10:46:45]OFD Sender: No OFD packet to send [10:46:50]OFD Sender: No OFD packet to send [10:46:55]OFD Sender: No OFD packet to send [10:47:00]OFD Sender: No OFD packet to send [10:47:05]OFD Sender: No OFD packet to send [10:47:10]OFD Sender: No OFD packet to send [10:47:15]OFD Sender: No OFD packet to send [10:47:20]OFD Sender: No OFD packet to send [10:47:25]OFD Sender: No OFD packet to send [10:47:30]OFD Sender: No OFD packet to send [10:47:35]OFD Sender: No OFD packet to send [10:47:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:40]OFD Sender: No OFD packet to send [10:48:45]OFD Sender: No OFD packet to send [10:48:50]OFD Sender: No OFD packet to send [10:48:55]OFD Sender: No OFD packet to send [10:49:00]OFD Sender: No OFD packet to send [10:49:05]OFD Sender: No OFD packet to send [10:49:10]OFD Sender: No OFD packet to send [10:49:15]OFD Sender: No OFD packet to send [10:49:20]OFD Sender: No OFD packet to send [10:49:25]OFD Sender: No OFD packet to send [10:49:30]OFD Sender: No OFD packet to send [10:49:35]OFD Sender: No OFD packet to send [10:49:40]OFD Sender: No OFD packet to send [10:49:45]OFD Sender: No OFD packet to send [10:49:50]OFD Sender: No OFD packet to send [10:49:55]OFD Sender: No OFD packet to send [10:50:00]OFD Sender: No OFD packet to send [10:50:05]OFD Sender: No OFD packet to send [10:50:10]OFD Sender: No OFD packet to send [10:50:15]OFD Sender: No OFD packet to send [10:50:20]OFD Sender: No OFD packet to send [10:50:25]OFD Sender: No OFD packet to send [10:50:30]OFD Sender: No OFD packet to send [10:50:35]OFD Sender: No OFD packet to send [10:50:40]OFD Sender: No OFD packet to send [10:50:45]OFD Sender: No OFD packet to send [10:50:50]OFD Sender: No OFD packet to send [10:50:55]OFD Sender: No OFD packet to send [10:51:00]OFD Sender: No OFD packet to send [10:51:05]OFD Sender: No OFD packet to send [10:51:10]OFD Sender: No OFD packet to send [10:51:15]OFD Sender: No OFD packet to send [10:51:20]OFD Sender: No OFD packet to send [10:51:25]OFD Sender: No OFD packet to send [10:51:30]OFD Sender: No OFD packet to send [10:51:35]OFD Sender: No OFD packet to send [10:51:40]OFD Sender: No OFD packet to send [10:51:45]OFD Sender: No OFD packet to send [10:51:50]OFD Sender: No OFD packet to send [10:51:55]OFD Sender: No OFD packet to send [10:52:00]OFD Sender: No OFD packet to send [10:52:05]OFD Sender: No OFD packet to send [10:52:10]OFD Sender: No OFD packet to send [10:52:15]OFD Sender: No OFD packet to send [10:52:20]OFD Sender: No OFD packet to send [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:02]accept exits with 8 [10:58:02]New connection [10:58:02]New thread 3067444580 created [10:58:02]Thread 3067587940 joined [10:58:02]Waiting for new connection... [10:58:02] Sock 8.Parse request [10:58:02]Sock 8.Check first char [10:58:02]Sock 8.First char is OK [10:58:02]request: POST /json_proto HTTP/1.0 [10:58:02]Method: POST [10:58:02]URL: /json_proto [10:58:02]Method is POST - this is cgi request [10:58:02]url: /json_proto [10:58:02]query_string will be loaded in cgi processing [10:58:02]execute_cgi json_proto POST (null) [10:58:02]execute_cgi path=json_proto method=POST [10:58:02]POST find Content-Length [10:58:02]Host: 172.17.44.4:8080 [10:58:02]Content-Length: 605 [10:58:02]Content-Type: application/json [10:58:02] [10:58:02]POST finish read [10:58:02]Found Content-Length = 605 [10:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140981", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:02]execute_script... [10:58: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)140981", "tax_sys" : 0, "items" : [ { "code": "50173976", "name": "\u0416\u0435\u0432 Orbit Winterfresh \u043F\u043E\u0434", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:02]POST & json_proto [10:58:02]process_json_proto [10:58:02]json parsed OK: [10:58:02]protocol is kg_v1.0 [10:58:02]action value=close_receipt [10:58:02]process_action close_receipt [10:58:02]cmd_close_receipt [10:58:02]MH_GetDate [10:58:02]Write to MH i2c: F0 00 00 25 39 4D [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: F0 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: F0 09 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: F0 09 00 25 39 00 C1 E6 45 66 6C E9 28 66 8B [10:58:02]GetLastDocTimeStamp 1715856329 [10:58:02]current date 1715857089 [10:58:02]FM_GetShiftState [10:58:02]SAM_PROTO_GetShiftState [10:58:02]wFMCommunicate request_size=4 [10:58:02]MH_SAM_APDU [10:58:02]CAPDU: 80 13 01 00 [10:58:02]Write to MH i2c: E2 08 00 26 39 80 13 01 00 00 00 00 00 DC [10:58:02]Write i2c OK [10:58:02]MH_I2C_Read... [10:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:02]Read from MH i2c: E2 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 0E 00 [10:58:02]MH_I2C_Read... [10:58:02]Read from MH i2c: E2 0E 00 26 39 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E8 [10:58:02]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:58:02]wFMCommunicate OK [10:58:02]SAM_PROTO_GetShiftState done [10:58:02]FM_GetShiftState done [10:58:02]opened in 1715818246 [10:58:02]opened+sec_in_day 1715904646 [10:58:02]quantity*price = 4000 [10:58:02]sum+1 = 4001 [10:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 32 16.05.2024 10:58 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4972 ФПД: 137963225992720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T105809&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4972&fm=137963225992720&tin=02508201610067®Number=0000000000154221&sum=4000 0 [10:58:03]StoreToDocumentArchive [10:58:03]shift 44 fd 4972 [10:58:03]save to /storage/0044/doc_00004972 [10:58:03]save last doc name /storage/0044/doc_00004972 to /storage/kkm_last_doc_name [10:58:03]save OK [10:58:03]Clear old archive folders... [10:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=268 [10:58:03]tlvbuf is 00DD4780 [10:58:03]SAM_PROTO_ClearQueue [10:58:03]wFMCommunicate request_size=4 [10:58:03]MH_SAM_APDU [10:58:03]CAPDU: 80 09 00 00 [10:58:03]Write to MH i2c: E2 08 00 33 39 80 09 00 00 00 00 00 00 DE [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:03]Read from MH i2c: E2 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 33 39 00 90 00 E0 [10:58:03]RAPDU: 90 00 [10:58:03]wFMCommunicate OK [10:58:03]SAM_PROTO_ClearQueue done [10:58:03]KKMCreateOFDPacket [10:58:03]OFDProtocolAddRootSTLVToBuf [10:58:03]FM_MakeSignedData [10:58:03]FM_MakeSignedData [10:58:03]SAM_PROTO_SignData [10:58:03]wFMCommunicate request_size=4 [10:58:03]MH_SAM_APDU [10:58:03]CAPDU: 80 0D 01 02 [10:58:03]Write to MH i2c: E2 08 00 34 39 80 0D 01 02 00 00 00 00 E6 [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:03]Read from MH i2c: E2 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 [10:58:03]MH_I2C_Read... [10:58:03]Read from MH i2c: E2 03 00 34 39 00 90 00 E1 [10:58:03]RAPDU: 90 00 [10:58:03]wFMCommunicate OK [10:58:03]wFMCommunicate request_size=255 [10:58:03]MH_SAM_APDU [10:58:03]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 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 C1 E6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [10:58:03]Write to MH i2c: E2 02 01 35 39 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 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 C1 E6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 3B [10:58:03]Write i2c OK [10:58:03]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 03 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 03 00 35 39 00 90 00 E2 [10:58:04]RAPDU: 90 00 [10:58:04]wFMCommunicate OK [10:58:04]wFMCommunicate request_size=27 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 0D 02 02 16 33 32 35 39 10 04 04 00 6C 13 00 00 35 04 06 00 7D 7A 11 13 CE 10 [10:58:04]Write to MH i2c: E2 1E 00 36 39 80 0D 02 02 16 00 33 32 35 39 10 04 04 00 6C 13 00 00 35 04 06 00 7D 7A 11 13 CE 10 00 00 B7 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 03 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 03 00 36 39 00 90 00 E3 [10:58:04]RAPDU: 90 00 [10:58:04]wFMCommunicate OK [10:58:04]wFMCommunicate request_size=4 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 0D 03 02 [10:58:04]Write to MH i2c: E2 08 00 37 39 80 0D 03 02 00 00 00 00 EB [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 0B 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 0B 00 37 39 00 01 2F 33 35 46 71 A1 5C 90 00 38 [10:58:04]RAPDU: 01 2F 33 35 46 71 A1 5C 90 00 [10:58:04]wFMCommunicate OK [10:58:04]SAM_PROTO_SignData done [10:58:04]FM_MakeSignedData done [10:58:04]CreateOFDProtocolMessage [10:58:04]wFMCommunicate request_size=4 [10:58:04]MH_SAM_APDU [10:58:04]CAPDU: 80 11 00 00 [10:58:04]Write to MH i2c: E2 08 00 38 39 80 11 00 00 00 00 00 00 EB [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:04]Read from MH i2c: E2 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 17 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: E2 17 00 38 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 40 [10:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:58:04]wFMCommunicate OK [10:58:04]CreateOFDProtocolMessage done [10:58:04]OFDSenderStorePacket 4972 [10:58:04]StoreOFDPacket docnum=4972 [10:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 20 01 00 00 51 A2 18 01 D2 DA 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 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 C1 E6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6C 13 00 00 35 04 06 00 7D 7A 11 13 CE 10 01 2F 33 35 46 71 A1 5C [10:58:04]CheckFolder [10:58:04]dirname=/storage/ofd_packets [10:58:04]CheckFolder done [10:58:04]ProducePacketName [10:58:04]name=ofd_packets/00004972 [10:58:04]NVStorageSaveData ofd_packets/00004972 [10:58:04]File name is /storage/ofd_packets/00004972 [10:58:04]Write 318 bytes [10:58:04]NVStorageSaveData done [10:58:04]OFDSenderStorePacket done [10:58:04]KKMCreateOFDPacket done [10:58:04]NVStorageSaveData kkm_last_timestamp [10:58:04]File name is /storage/kkm_last_timestamp [10:58:04]Write 4 bytes [10:58:04]NVStorageSaveData done [10:58:04]ExternCall_PrintAddStr [10:58:04]wPrintStart [10:58:04]Write to MH i2c: 01 00 00 39 39 72 [10:58:04]Write i2c OK [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 07 00 [10:58:04]MH_I2C_Read... [10:58:04]Read from MH i2c: 01 07 00 39 39 00 00 00 00 00 FF 0F 87 [10:58:04]RasterBufferAndPrint [10:58:04]line Счет N : (3)140981 [10:58:04]line ИНН: 02508201610067 [10:58:04]line Контрольно-Кассовый Чек [10:58:04]line ПРОДАЖА [10:58:04]line Товар: 50173976 [10:58:04]line Жев Orbit Winterfresh под [10:58:04]line 1.000 * 40.00 [10:58:04]line = 40.00 [10:58:04]line НДС 12% НСП 1% [10:58:04]line > о реализуемом товаре [10:58:04]line ИТОГО: 40.00 [10:58:04]line НСП 1% : 0.35 [10:58:04]line НДС 12% : 4.25 [10:58:04]line Наличными: 40.00 [10:58:04]line Безнал.: 0.00 [10:58:04]line Место: АЗС № 135 "Партнер Нефть" [10:58:04]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [10:58:04]line СНО: Общий режим [10:58:04]line Чек 32 16.05.2024 10:58 [10:58:04]line Смена: 44 ФФД: 1.0 [10:58:04]line ЗНМ: 0300000237 [10:58:04]line РНМ: 0000000000154221 [10:58:04]line Версия ККМ: v1.0 [10:58:04]line ФМ: 0000000000963259 [10:58:04]line ФД: 4972 [10:58:04]line ФПД: 137963225992720 [10:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T105809&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4972&fm=137963225992720&tin=02508201610067®Number=0000000000154221&sum=4000 [10:58:04]line 0 [10:58:04]OFD Sender: Processing packet 4972 [packets to send 4, broken 3] [10:58:04]ProducePacketName [10:58:04]name=ofd_packets/00004972 [10:58:04]OFD Sender: To server: pG, [10:58:04]CommunicateWithHost lk.salyk.kg:30040 [10:58:04]ConnectInit lk.salyk.kg [10:58:04]written 0, free lines is 4095 [10:58:04]Connected sock=10 [10:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 20 01 00 00 51 A2 18 01 D2 DA 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 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 C1 E6 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6C 13 00 00 35 04 06 00 7D 7A 11 13 CE 10 01 2F 33 35 46 71 A1 5C [10:58:05]Write to MH i2c: 01 00 00 61 39 9A [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: 01 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: 01 07 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: 01 07 00 61 39 00 00 00 00 00 87 0C 34 [10:58:05]RasterBufferAndPrint [10:58:05]line [10:58:05]line [10:58:05]line [10:58:05]line [10:58:05]line [10:58:05]written 0, free lines is 3211 [10:58:05]MH_Cut [10:58:05]Write to MH i2c: D1 01 00 68 39 01 73 [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: D1 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: D1 01 00 [10:58:05]MH_I2C_Read... [10:58:05]Read from MH i2c: D1 01 00 68 39 00 72 [10:58:05]Write to MH i2c: 01 00 00 69 39 A2 [10:58:05]Write i2c OK [10:58:05]MH_I2C_Read... [10:58:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 62 69 47 00 02 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 33 32 35 39 10 04 04 00 6C 13 00 00 F4 03 04 00 85 92 45 66 B6 04 01 00 00 51 D1 55 F7 DE 42 60 97 [10:58:05]CommunicateWithHost err = 0 [10:58:05]CheckOFDResponse [10:58:05]1017 (14) - 77093643461234 [10:58:05]1041 (16) - 0000000000963259 [10:58:05]1040 (4) - 4972 [10:58:05]1012 (4) - 16.05.2024 04:58 [10:58:05]1206 (1) - 0 [10:58:05]OFD Sender: Remove packet 4972 [10:58:05]ProducePacketName [10:58:05]name=ofd_packets/00004972 [10:58:05]NVStorageDeleteData [10:58:05]OFD Sender: No OFD packet to send [10:58:06]*** Cut start [10:58:06]*** Partial cut [10:58:06]*** CUTSNS_PIN = 1 [10:58:06]*** CUTSNS_PIN = 0 [10:58:06]*** Brake cut motor [10:58:06]Read from MH i2c: 01 [10:58:06]MH_I2C_Read... [10:58:06]*** Stop cut motor [10:58:06]*** Cut end [10:58:06]Read from MH i2c: 01 07 00 [10:58:06]MH_I2C_Read... [10:58:06]Read from MH i2c: 01 07 00 69 39 00 00 00 00 00 FF 0F B7 [10:58:06]process_action close_receipt done [10:58:06]requested_data is exist [10:58:06]produce_requested_data [10:58:06]requested_item fm.sn is exist - process it [10:58:06]wFMCommunicate request_size=4 [10:58:06]MH_SAM_APDU [10:58:06]CAPDU: 80 11 00 00 [10:58:06]Write to MH i2c: E2 08 00 6A 39 80 11 00 00 00 00 00 00 1D [10:58:06]Write i2c OK [10:58:06]MH_I2C_Read... [10:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:06]Read from MH i2c: E2 [10:58:06]MH_I2C_Read... [10:58:06]Read from MH i2c: E2 17 00 [10:58:06]MH_I2C_Read... [10:58:06]Read from MH i2c: E2 17 00 6A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 72 [10:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [10:58:06]wFMCommunicate OK [10:58:06]requested_item fd.num is exist - process it [10:58:06]SAM_PROTO_GetFieldsCounters [10:58:06]wFMCommunicate request_size=4 [10:58:06]MH_SAM_APDU [10:58:06]CAPDU: 80 13 00 00 [10:58:06]Write to MH i2c: E2 08 00 6B 39 80 13 00 00 00 00 00 00 20 [10:58:06]Write i2c OK [10:58:06]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 62 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 62 00 6B 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6C 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 44 [10:58:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6C 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_GetFieldsCounters done [10:58:07]requested_item shift.num is exist - process it [10:58:07]requested_item shift.opened is exist - process it [10:58:07]req_shift_opened [10:58:07]FM_GetShiftState [10:58:07]SAM_PROTO_GetShiftState [10:58:07]wFMCommunicate request_size=4 [10:58:07]MH_SAM_APDU [10:58:07]CAPDU: 80 13 01 00 [10:58:07]Write to MH i2c: E2 08 00 6C 39 80 13 01 00 00 00 00 00 22 [10:58:07]Write i2c OK [10:58:07]MH_I2C_Read... [10:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:07]Read from MH i2c: E2 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0E 00 [10:58:07]MH_I2C_Read... [10:58:07]Read from MH i2c: E2 0E 00 6C 39 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 2E [10:58:07]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [10:58:07]wFMCommunicate OK [10:58:07]SAM_PROTO_GetShiftState done [10:58:07]FM_GetShiftState done [10:58:07]req_shift_opened done [10:58:07]requested_item shift.open_date is exist - process it [10:58:07]req_shift_open_date [10:58:07]req_shift_open_date done [10:58:07]produce_requested_data done [10:58:07]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4972,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [10:58:07]process_action_free close_receipt [10:58:07]json_value_free [10:58:07]json_value_free done [10:58:07]process_json_proto returns [10:58:07]Send response to host [10:58:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4972,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [10:58:07]free response buf [10:58:07]execute_script done [10:58:07]execute_script returns [10:58:07]free content buf [10:58:07]Sock 8.Close socket [10:58:07]Sock 8.Thread stoped [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:20]OFD Sender: No OFD packet to send [11:00:25]OFD Sender: No OFD packet to send [11:00:30]OFD Sender: No OFD packet to send [11:00:35]OFD Sender: No OFD packet to send [11:00:40]OFD Sender: No OFD packet to send [11:00:45]OFD Sender: No OFD packet to send [11:00:50]OFD Sender: No OFD packet to send [11:00:55]OFD Sender: No OFD packet to send [11:01:00]OFD Sender: No OFD packet to send [11:01:05]OFD Sender: No OFD packet to send [11:01:10]OFD Sender: No OFD packet to send [11:01:15]OFD Sender: No OFD packet to send [11:01:20]OFD Sender: No OFD packet to send [11:01:25]OFD Sender: No OFD packet to send [11:01:30]OFD Sender: No OFD packet to send [11:01:35]OFD Sender: No OFD packet to send [11:01:40]OFD Sender: No OFD packet to send [11:01:45]OFD Sender: No OFD packet to send [11:01:50]OFD Sender: No OFD packet to send [11:01:55]OFD Sender: No OFD packet to send [11:02:00]OFD Sender: No OFD packet to send [11:02:05]OFD Sender: No OFD packet to send [11:02:10]OFD Sender: No OFD packet to send [11:02:15]OFD Sender: No OFD packet to send [11:02:20]OFD Sender: No OFD packet to send [11:02:25]OFD Sender: No OFD packet to send [11:02:30]OFD Sender: No OFD packet to send [11:02:35]OFD Sender: No OFD packet to send [11:02:40]OFD Sender: No OFD packet to send [11:02:45]OFD Sender: No OFD packet to send [11:02:50]OFD Sender: No OFD packet to send [11:02:55]OFD Sender: No OFD packet to send [11:03:00]OFD Sender: No OFD packet to send [11:03:05]OFD Sender: No OFD packet to send [11:03:10]OFD Sender: No OFD packet to send [11:03:15]OFD Sender: No OFD packet to send [11:03:20]OFD Sender: No OFD packet to send [11:03:25]OFD Sender: No OFD packet to send [11:03:30]OFD Sender: No OFD packet to send [11:03:35]OFD Sender: No OFD packet to send [11:03:40]OFD Sender: No OFD packet to send [11:03:45]OFD Sender: No OFD packet to send [11:03:50]OFD Sender: No OFD packet to send [11:03: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:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:16]OFD Sender: No OFD packet to send [11:13:21]OFD Sender: No OFD packet to send [11:13:26]OFD Sender: No OFD packet to send [11:13:31]OFD Sender: No OFD packet to send [11:13:36]OFD Sender: No OFD packet to send [11:13:41]OFD Sender: No OFD packet to send [11:13:46]OFD Sender: No OFD packet to send [11:13:51]OFD Sender: No OFD packet to send [11:13:56]OFD Sender: No OFD packet to send [11:14:01]OFD Sender: No OFD packet to send [11:14:06]OFD Sender: No OFD packet to send [11:14:11]OFD Sender: No OFD packet to send [11:14:16]OFD Sender: No OFD packet to send [11:14:21]OFD Sender: No OFD packet to send [11:14:26]OFD Sender: No OFD packet to send [11:14:31]OFD Sender: No OFD packet to send [11:14:36]OFD Sender: No OFD packet to send [11:14:41]OFD Sender: No OFD packet to send [11:14:46]OFD Sender: No OFD packet to send [11:14:51]OFD Sender: No OFD packet to send [11:14:56]OFD Sender: No OFD packet to send [11:15:01]OFD Sender: No OFD packet to send [11:15:06]OFD Sender: No OFD packet to send [11:15:11]OFD Sender: No OFD packet to send [11:15:16]OFD Sender: No OFD packet to send [11:15:21]OFD Sender: No OFD packet to send [11:15:26]OFD Sender: No OFD packet to send [11:15:31]OFD Sender: No OFD packet to send [11:15:36]OFD Sender: No OFD packet to send [11:15:41]OFD Sender: No OFD packet to send [11:15:46]OFD Sender: No OFD packet to send [11:15:51]OFD Sender: No OFD packet to send [11:15:56]OFD Sender: No OFD packet to send [11:16:01]OFD Sender: No OFD packet to send [11:16:06]OFD Sender: No OFD packet to send [11:16:11]OFD Sender: No OFD packet to send [11:16:16]OFD Sender: No OFD packet to send [11:16:21]OFD Sender: No OFD packet to send [11:16:26]OFD Sender: No OFD packet to send [11:16:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:36]OFD Sender: No OFD packet to send [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:21]OFD Sender: No OFD packet to send [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:26]OFD Sender: No OFD packet to send [11:19:31]OFD Sender: No OFD packet to send [11:19:36]OFD Sender: No OFD packet to send [11:19:41]OFD Sender: No OFD packet to send [11:19:46]OFD Sender: No OFD packet to send [11:19:51]OFD Sender: No OFD packet to send [11:19:56]OFD Sender: No OFD packet to send [11:20:01]OFD Sender: No OFD packet to send [11:20:06]OFD Sender: No OFD packet to send [11:20:11]OFD Sender: No OFD packet to send [11:20:16]OFD Sender: No OFD packet to send [11:20:21]OFD Sender: No OFD packet to send [11:20:26]OFD Sender: No OFD packet to send [11:20:31]OFD Sender: No OFD packet to send [11:20:36]OFD Sender: No OFD packet to send [11:20:41]OFD Sender: No OFD packet to send [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:41]OFD Sender: No OFD packet to send [11:21:46]OFD Sender: No OFD packet to send [11:21:51]OFD Sender: No OFD packet to send [11:21:56]OFD Sender: No OFD packet to send [11:22:01]OFD Sender: No OFD packet to send [11:22:06]OFD Sender: No OFD packet to send [11:22:11]OFD Sender: No OFD packet to send [11:22:16]OFD Sender: No OFD packet to send [11:22:21]OFD Sender: No OFD packet to send [11:22:26]OFD Sender: No OFD packet to send [11:22:31]OFD Sender: No OFD packet to send [11:22:36]OFD Sender: No OFD packet to send [11:22:41]OFD Sender: No OFD packet to send [11:22:46]OFD Sender: No OFD packet to send [11:22:51]OFD Sender: No OFD packet to send [11:22:56]OFD Sender: No OFD packet to send [11:23:01]OFD Sender: No OFD packet to send [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:36]OFD Sender: No OFD packet to send [11:25:41]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:36:58]accept exits with 9 [11:36:58]New connection [11:36:58]New thread 3067587940 created [11:36:58]Thread 3067444580 joined [11:36:58]Waiting for new connection... [11:36:58] Sock 9.Parse request [11:36:58]Sock 9.Check first char [11:36:58]Sock 9.First char is OK [11:36:58]request: POST /json_proto HTTP/1.0 [11:36:58]Method: POST [11:36:58]URL: /json_proto [11:36:58]Method is POST - this is cgi request [11:36:58]url: /json_proto [11:36:58]query_string will be loaded in cgi processing [11:36:58]execute_cgi json_proto POST (null) [11:36:58]execute_cgi path=json_proto method=POST [11:36:58]POST find Content-Length [11:36:58]Host: 172.17.44.4:8080 [11:36:58]Content-Length: 644 [11:36:58]Content-Type: application/json [11:36:58] [11:36:58]POST finish read [11:36:58]Found Content-Length = 644 [11:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140982", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:58]execute_script... [11:36: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)140982", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:58]POST & json_proto [11:36:58]process_json_proto [11:36:58]json parsed OK: [11:36:58]protocol is kg_v1.0 [11:36:58]action value=close_receipt [11:36:58]process_action close_receipt [11:36:58]cmd_close_receipt [11:36:58]MH_GetDate [11:36:58]Write to MH i2c: F0 00 00 6D 39 95 [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: F0 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: F0 09 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: F0 09 00 6D 39 00 E1 EF 45 66 6C E9 28 66 FC [11:36:58]GetLastDocTimeStamp 1715857089 [11:36:58]current date 1715859425 [11:36:58]FM_GetShiftState [11:36:58]SAM_PROTO_GetShiftState [11:36:58]wFMCommunicate request_size=4 [11:36:58]MH_SAM_APDU [11:36:58]CAPDU: 80 13 01 00 [11:36:58]Write to MH i2c: E2 08 00 6E 39 80 13 01 00 00 00 00 00 24 [11:36:58]Write i2c OK [11:36:58]MH_I2C_Read... [11:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:58]Read from MH i2c: E2 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 0E 00 [11:36:58]MH_I2C_Read... [11:36:58]Read from MH i2c: E2 0E 00 6E 39 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 30 [11:36:58]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [11:36:58]wFMCommunicate OK [11:36:58]SAM_PROTO_GetShiftState done [11:36:58]FM_GetShiftState done [11:36:58]opened in 1715818246 [11:36:58]opened+sec_in_day 1715904646 [11:36:58]quantity*price = 10500 [11:36:58]sum+1 = 10501 [11:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 33 16.05.2024 11:37 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4973 ФПД: 79046887286826 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T113705&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4973&fm=79046887286826&tin=02508201610067®Number=0000000000154221&sum=10500 0 [11:36:59]StoreToDocumentArchive [11:36:59]shift 44 fd 4973 [11:36:59]save to /storage/0044/doc_00004973 [11:36:59]save last doc name /storage/0044/doc_00004973 to /storage/kkm_last_doc_name [11:36:59]save OK [11:36:59]Clear old archive folders... [11:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=280 [11:36:59]tlvbuf is 00C95D90 [11:36:59]SAM_PROTO_ClearQueue [11:36:59]wFMCommunicate request_size=4 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 09 00 00 [11:36:59]Write to MH i2c: E2 08 00 7B 39 80 09 00 00 00 00 00 00 26 [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 7B 39 00 90 00 28 [11:36:59]RAPDU: 90 00 [11:36:59]wFMCommunicate OK [11:36:59]SAM_PROTO_ClearQueue done [11:36:59]KKMCreateOFDPacket [11:36:59]OFDProtocolAddRootSTLVToBuf [11:36:59]FM_MakeSignedData [11:36:59]FM_MakeSignedData [11:36:59]SAM_PROTO_SignData [11:36:59]wFMCommunicate request_size=4 [11:36:59]MH_SAM_APDU [11:36:59]CAPDU: 80 0D 01 02 [11:36:59]Write to MH i2c: E2 08 00 7C 39 80 0D 01 02 00 00 00 00 2E [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:59]Read from MH i2c: E2 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 [11:36:59]MH_I2C_Read... [11:36:59]Read from MH i2c: E2 03 00 7C 39 00 90 00 29 [11:36:59]RAPDU: 90 00 [11:36:59]wFMCommunicate OK [11:36:59]wFMCommunicate request_size=255 [11:36:59]MH_SAM_APDU [11:36:59]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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 21 00 00 00 F4 03 04 00 E1 EF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 [11:36:59]Write to MH i2c: E2 02 01 7D 39 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 21 00 00 00 F4 03 04 00 E1 EF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 00 00 0D [11:36:59]Write i2c OK [11:36:59]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 7D 39 00 90 00 2A [11:37:00]RAPDU: 90 00 [11:37:00]wFMCommunicate OK [11:37:00]wFMCommunicate request_size=39 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6D 13 00 00 35 04 06 00 47 E4 89 A3 28 2A [11:37:00]Write to MH i2c: E2 2A 00 7E 39 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6D 13 00 00 35 04 06 00 47 E4 89 A3 28 2A 00 00 17 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 03 00 7E 39 00 90 00 2B [11:37:00]RAPDU: 90 00 [11:37:00]wFMCommunicate OK [11:37:00]wFMCommunicate request_size=4 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 0D 03 02 [11:37:00]Write to MH i2c: E2 08 00 7F 39 80 0D 03 02 00 00 00 00 33 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 0B 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 0B 00 7F 39 00 35 E5 EB 22 72 11 DD A1 90 00 5C [11:37:00]RAPDU: 35 E5 EB 22 72 11 DD A1 90 00 [11:37:00]wFMCommunicate OK [11:37:00]SAM_PROTO_SignData done [11:37:00]FM_MakeSignedData done [11:37:00]CreateOFDProtocolMessage [11:37:00]wFMCommunicate request_size=4 [11:37:00]MH_SAM_APDU [11:37:00]CAPDU: 80 11 00 00 [11:37:00]Write to MH i2c: E2 08 00 80 39 80 11 00 00 00 00 00 00 33 [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:00]Read from MH i2c: E2 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 17 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: E2 17 00 80 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 88 [11:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [11:37:00]wFMCommunicate OK [11:37:00]CreateOFDProtocolMessage done [11:37:00]OFDSenderStorePacket 4973 [11:37:00]StoreOFDPacket docnum=4973 [11:37:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2C 01 00 00 52 0E 24 01 AE F8 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 21 00 00 00 F4 03 04 00 E1 EF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6D 13 00 00 35 04 06 00 47 E4 89 A3 28 2A 35 E5 EB 22 72 11 DD A1 [11:37:00]CheckFolder [11:37:00]dirname=/storage/ofd_packets [11:37:00]CheckFolder done [11:37:00]ProducePacketName [11:37:00]name=ofd_packets/00004973 [11:37:00]NVStorageSaveData ofd_packets/00004973 [11:37:00]File name is /storage/ofd_packets/00004973 [11:37:00]Write 330 bytes [11:37:00]NVStorageSaveData done [11:37:00]OFDSenderStorePacket done [11:37:00]KKMCreateOFDPacket done [11:37:00]NVStorageSaveData kkm_last_timestamp [11:37:00]File name is /storage/kkm_last_timestamp [11:37:00]Write 4 bytes [11:37:00]NVStorageSaveData done [11:37:00]ExternCall_PrintAddStr [11:37:00]wPrintStart [11:37:00]Write to MH i2c: 01 00 00 81 39 BA [11:37:00]Write i2c OK [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: 01 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: 01 07 00 [11:37:00]MH_I2C_Read... [11:37:00]Read from MH i2c: 01 07 00 81 39 00 00 00 00 00 FF 0F CF [11:37:00]RasterBufferAndPrint [11:37:00]line Счет N : (3)140982 [11:37:00]line ИНН: 02508201610067 [11:37:00]line Контрольно-Кассовый Чек [11:37:00]line ПРОДАЖА [11:37:00]line Товар: 2000036210013 [11:37:00]line Кофе Капучино (GABB TRADE) [11:37:00]line 1.000 * 105.00 [11:37:00]line = 105.00 [11:37:00]line НДС 12% НСП 1% [11:37:00]line > о реализуемом товаре [11:37:00]line ИТОГО: 105.00 [11:37:00]line НСП 1% : 0.93 [11:37:00]line НДС 12% : 11.15 [11:37:00]line Наличными: 105.00 [11:37:00]line Безнал.: 0.00 [11:37:00]line Место: АЗС № 135 "Партнер Нефть" [11:37:00]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:37:00]line СНО: Общий режим [11:37:00]line Чек 33 16.05.2024 11:37 [11:37:00]line Смена: 44 ФФД: 1.0 [11:37:00]line ЗНМ: 0300000237 [11:37:00]line РНМ: 0000000000154221 [11:37:00]line Версия ККМ: v1.0 [11:37:00]line ФМ: 0000000000963259 [11:37:00]line ФД: 4973 [11:37:00]line ФПД: 79046887286826 [11:37:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T113705&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4973&fm=79046887286826&tin=02508201610067®Number=0000000000154221&sum=10500 [11:37:00]line 0 [11:37:00]OFD Sender: Processing packet 4973 [packets to send 4, broken 3] [11:37:00]ProducePacketName [11:37:00]name=ofd_packets/00004973 [11:37:00]OFD Sender: To server: pG, [11:37:00]CommunicateWithHost lk.salyk.kg:30040 [11:37:00]ConnectInit lk.salyk.kg [11:37:00]written 0, free lines is 4095 [11:37:00]Connected sock=10 [11:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2C 01 00 00 52 0E 24 01 AE F8 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 21 00 00 00 F4 03 04 00 E1 EF 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6D 13 00 00 35 04 06 00 47 E4 89 A3 28 2A 35 E5 EB 22 72 11 DD A1 [11:37:01]Write to MH i2c: 01 00 00 A9 39 E2 [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: 01 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: 01 07 00 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: 01 07 00 A9 39 00 00 00 00 00 97 0C 8C [11:37:01]RasterBufferAndPrint [11:37:01]line [11:37:01]line [11:37:01]line [11:37:01]line [11:37:01]line [11:37:01]written 0, free lines is 3227 [11:37:01]MH_Cut [11:37:01]Write to MH i2c: D1 01 00 B0 39 01 BB [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: D1 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: D1 01 00 [11:37:01]MH_I2C_Read... [11:37:01]Read from MH i2c: D1 01 00 B0 39 00 BA [11:37:01]Write to MH i2c: 01 00 00 B1 39 EA [11:37:01]Write i2c OK [11:37:01]MH_I2C_Read... [11:37:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 FA 08 47 00 6A FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6D 13 00 00 F4 03 04 00 A5 9B 45 66 B6 04 01 00 00 59 37 8B 2F CF D7 0F 4F [11:37:01]CommunicateWithHost err = 0 [11:37:01]CheckOFDResponse [11:37:01]1017 (14) - 77093643461234 [11:37:01]1041 (16) - 0000000000963259 [11:37:01]1040 (4) - 4973 [11:37:01]1012 (4) - 16.05.2024 05:37 [11:37:01]1206 (1) - 0 [11:37:01]OFD Sender: Remove packet 4973 [11:37:01]ProducePacketName [11:37:01]name=ofd_packets/00004973 [11:37:01]NVStorageDeleteData [11:37:01]OFD Sender: No OFD packet to send [11:37:02]*** Cut start [11:37:02]*** Partial cut [11:37:02]*** CUTSNS_PIN = 1 [11:37:02]*** CUTSNS_PIN = 0 [11:37:02]*** Brake cut motor [11:37:02]Read from MH i2c: 01 [11:37:02]MH_I2C_Read... [11:37:02]*** Stop cut motor [11:37:02]*** Cut end [11:37:02]Read from MH i2c: 01 07 00 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: 01 07 00 B1 39 00 00 00 00 00 FF 0F FF [11:37:02]process_action close_receipt done [11:37:02]requested_data is exist [11:37:02]produce_requested_data [11:37:02]requested_item fm.sn is exist - process it [11:37:02]wFMCommunicate request_size=4 [11:37:02]MH_SAM_APDU [11:37:02]CAPDU: 80 11 00 00 [11:37:02]Write to MH i2c: E2 08 00 B2 39 80 11 00 00 00 00 00 00 65 [11:37:02]Write i2c OK [11:37:02]MH_I2C_Read... [11:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:02]Read from MH i2c: E2 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 17 00 [11:37:02]MH_I2C_Read... [11:37:02]Read from MH i2c: E2 17 00 B2 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 BA [11:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [11:37:02]wFMCommunicate OK [11:37:02]requested_item fd.num is exist - process it [11:37:02]SAM_PROTO_GetFieldsCounters [11:37:02]wFMCommunicate request_size=4 [11:37:02]MH_SAM_APDU [11:37:02]CAPDU: 80 13 00 00 [11:37:02]Write to MH i2c: E2 08 00 B3 39 80 13 00 00 00 00 00 00 68 [11:37:02]Write i2c OK [11:37:02]MH_I2C_Read... [11:37:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:03]Read from MH i2c: E2 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 62 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 62 00 B3 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6D 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [11:37:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6D 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:03]wFMCommunicate OK [11:37:03]SAM_PROTO_GetFieldsCounters done [11:37:03]requested_item shift.num is exist - process it [11:37:03]requested_item shift.opened is exist - process it [11:37:03]req_shift_opened [11:37:03]FM_GetShiftState [11:37:03]SAM_PROTO_GetShiftState [11:37:03]wFMCommunicate request_size=4 [11:37:03]MH_SAM_APDU [11:37:03]CAPDU: 80 13 01 00 [11:37:03]Write to MH i2c: E2 08 00 B4 39 80 13 01 00 00 00 00 00 6A [11:37:03]Write i2c OK [11:37:03]MH_I2C_Read... [11:37:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:03]Read from MH i2c: E2 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 0E 00 [11:37:03]MH_I2C_Read... [11:37:03]Read from MH i2c: E2 0E 00 B4 39 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 76 [11:37:03]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [11:37:03]wFMCommunicate OK [11:37:03]SAM_PROTO_GetShiftState done [11:37:03]FM_GetShiftState done [11:37:03]req_shift_opened done [11:37:03]requested_item shift.open_date is exist - process it [11:37:03]req_shift_open_date [11:37:03]req_shift_open_date done [11:37:03]produce_requested_data done [11:37:03]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4973,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [11:37:03]process_action_free close_receipt [11:37:03]json_value_free [11:37:03]json_value_free done [11:37:03]process_json_proto returns [11:37:03]Send response to host [11:37:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4973,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [11:37:03]free response buf [11:37:03]execute_script done [11:37:03]execute_script returns [11:37:03]free content buf [11:37:03]Sock 9.Close socket [11:37:03]Sock 9.Thread stoped [11:37:06]OFD Sender: No OFD packet to send [11:37:11]OFD Sender: No OFD packet to send [11:37:16]OFD Sender: No OFD packet to send [11:37:21]OFD Sender: No OFD packet to send [11:37:26]OFD Sender: No OFD packet to send [11:37:31]OFD Sender: No OFD packet to send [11:37:36]OFD Sender: No OFD packet to send [11:37:41]OFD Sender: No OFD packet to send [11:37:46]OFD Sender: No OFD packet to send [11:37:51]OFD Sender: No OFD packet to send [11:37:56]OFD Sender: No OFD packet to send [11:38:01]OFD Sender: No OFD packet to send [11:38:06]OFD Sender: No OFD packet to send [11:38:11]OFD Sender: No OFD packet to send [11:38:16]OFD Sender: No OFD packet to send [11:38:21]OFD Sender: No OFD packet to send [11:38:26]OFD Sender: No OFD packet to send [11:38:31]OFD Sender: No OFD packet to send [11:38:36]OFD Sender: No OFD packet to send [11:38:41]OFD Sender: No OFD packet to send [11:38:46]OFD Sender: No OFD packet to send [11:38:51]OFD Sender: No OFD packet to send [11:38:55]accept exits with 8 [11:38:55]New connection [11:38:55]New thread 3067444580 created [11:38:55]Thread 3067587940 joined [11:38:55]Waiting for new connection... [11:38:55] Sock 8.Parse request [11:38:55]Sock 8.Check first char [11:38:55]Sock 8.First char is OK [11:38:55]request: POST /json_proto HTTP/1.0 [11:38:55]Method: POST [11:38:55]URL: /json_proto [11:38:55]Method is POST - this is cgi request [11:38:55]url: /json_proto [11:38:55]query_string will be loaded in cgi processing [11:38:55]execute_cgi json_proto POST (null) [11:38:55]execute_cgi path=json_proto method=POST [11:38:55]POST find Content-Length [11:38:55]Host: 172.17.44.4:8080 [11:38:55]Content-Length: 630 [11:38:55]Content-Type: application/json [11:38:55] [11:38:55]POST finish read [11:38:55]Found Content-Length = 630 [11:38:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140983", "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 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:55]execute_script... [11: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)140983", "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 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:55]POST & json_proto [11:38:55]process_json_proto [11:38:55]json parsed OK: [11:38:55]protocol is kg_v1.0 [11:38:55]action value=close_receipt [11:38:55]process_action close_receipt [11:38:55]cmd_close_receipt [11:38:55]MH_GetDate [11:38:55]Write to MH i2c: F0 00 00 B5 39 DD [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: F0 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: F0 09 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: F0 09 00 B5 39 00 56 F0 45 66 6C E9 28 66 BA [11:38:55]GetLastDocTimeStamp 1715859425 [11:38:55]current date 1715859542 [11:38:55]FM_GetShiftState [11:38:55]SAM_PROTO_GetShiftState [11:38:55]wFMCommunicate request_size=4 [11:38:55]MH_SAM_APDU [11:38:55]CAPDU: 80 13 01 00 [11:38:55]Write to MH i2c: E2 08 00 B6 39 80 13 01 00 00 00 00 00 6C [11:38:55]Write i2c OK [11:38:55]MH_I2C_Read... [11:38:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:55]Read from MH i2c: E2 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 0E 00 [11:38:55]MH_I2C_Read... [11:38:55]Read from MH i2c: E2 0E 00 B6 39 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 78 [11:38:55]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [11:38:55]wFMCommunicate OK [11:38:55]SAM_PROTO_GetShiftState done [11:38:55]FM_GetShiftState done [11:38:55]opened in 1715818246 [11:38:55]opened+sec_in_day 1715904646 [11:38:55]quantity*price = 5000 [11:38:55]sum+1 = 5001 [11:38:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 34 16.05.2024 11:39 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4974 ФПД: 4816915072349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T113902&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4974&fm=4816915072349&tin=02508201610067®Number=0000000000154221&sum=5000 0 [11:38:56]StoreToDocumentArchive [11:38:56]shift 44 fd 4974 [11:38:56]save to /storage/0044/doc_00004974 [11:38:56]save last doc name /storage/0044/doc_00004974 to /storage/kkm_last_doc_name [11:38:56]save OK [11:38:56]Clear old archive folders... [11:38:56]ProcessDocumentItem done err = 0, tmpTLVsize=269 [11:38:56]tlvbuf is 00DADB50 [11:38:56]SAM_PROTO_ClearQueue [11:38:56]wFMCommunicate request_size=4 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 09 00 00 [11:38:56]Write to MH i2c: E2 08 00 C3 39 80 09 00 00 00 00 00 00 6E [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 C3 39 00 90 00 70 [11:38:56]RAPDU: 90 00 [11:38:56]wFMCommunicate OK [11:38:56]SAM_PROTO_ClearQueue done [11:38:56]KKMCreateOFDPacket [11:38:56]OFDProtocolAddRootSTLVToBuf [11:38:56]FM_MakeSignedData [11:38:56]FM_MakeSignedData [11:38:56]SAM_PROTO_SignData [11:38:56]wFMCommunicate request_size=4 [11:38:56]MH_SAM_APDU [11:38:56]CAPDU: 80 0D 01 02 [11:38:56]Write to MH i2c: E2 08 00 C4 39 80 0D 01 02 00 00 00 00 76 [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:56]Read from MH i2c: E2 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 [11:38:56]MH_I2C_Read... [11:38:56]Read from MH i2c: E2 03 00 C4 39 00 90 00 71 [11:38:56]RAPDU: 90 00 [11:38:56]wFMCommunicate OK [11:38:56]wFMCommunicate request_size=255 [11:38:56]MH_SAM_APDU [11:38:56]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 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 56 F0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [11:38:56]Write to MH i2c: E2 02 01 C5 39 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 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 56 F0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 C3 [11:38:56]Write i2c OK [11:38:56]MH_I2C_Read... [11:38:56]OFD Sender: No OFD packet to send [11:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:57]Read from MH i2c: E2 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: E2 03 00 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: E2 03 00 C5 39 00 90 00 72 [11:38:57]RAPDU: 90 00 [11:38:57]wFMCommunicate OK [11:38:57]wFMCommunicate request_size=28 [11:38:57]MH_SAM_APDU [11:38:57]CAPDU: 80 0D 02 02 17 36 33 32 35 39 10 04 04 00 6E 13 00 00 35 04 06 00 04 61 86 83 05 5D [11:38:57]Write to MH i2c: E2 1F 00 C6 39 80 0D 02 02 17 00 36 33 32 35 39 10 04 04 00 6E 13 00 00 35 04 06 00 04 61 86 83 05 5D 00 00 58 [11:38:57]Write i2c OK [11:38:57]MH_I2C_Read... [11:38:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:57]Read from MH i2c: E2 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: E2 03 00 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: E2 03 00 C6 39 00 90 00 73 [11:38:57]RAPDU: 90 00 [11:38:57]wFMCommunicate OK [11:38:57]wFMCommunicate request_size=4 [11:38:57]MH_SAM_APDU [11:38:57]CAPDU: 80 0D 03 02 [11:38:57]Write to MH i2c: E2 08 00 C7 39 80 0D 03 02 00 00 00 00 7B [11:38:57]Write i2c OK [11:38:57]MH_I2C_Read... [11:38:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:57]Read from MH i2c: E2 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: E2 0B 00 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: E2 0B 00 C7 39 00 41 92 F3 40 FF A4 3F 42 90 00 A6 [11:38:57]RAPDU: 41 92 F3 40 FF A4 3F 42 90 00 [11:38:57]wFMCommunicate OK [11:38:57]SAM_PROTO_SignData done [11:38:57]FM_MakeSignedData done [11:38:57]CreateOFDProtocolMessage [11:38:57]wFMCommunicate request_size=4 [11:38:57]MH_SAM_APDU [11:38:57]CAPDU: 80 11 00 00 [11:38:57]Write to MH i2c: E2 08 00 C8 39 80 11 00 00 00 00 00 00 7B [11:38:57]Write i2c OK [11:38:57]MH_I2C_Read... [11:38:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:57]Read from MH i2c: E2 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: E2 17 00 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: E2 17 00 C8 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D0 [11:38:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [11:38:57]wFMCommunicate OK [11:38:57]CreateOFDProtocolMessage done [11:38:57]OFDSenderStorePacket 4974 [11:38:57]StoreOFDPacket docnum=4974 [11:38:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 21 01 00 00 51 24 19 01 FD 37 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 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 56 F0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6E 13 00 00 35 04 06 00 04 61 86 83 05 5D 41 92 F3 40 FF A4 3F 42 [11:38:57]CheckFolder [11:38:57]dirname=/storage/ofd_packets [11:38:57]CheckFolder done [11:38:57]ProducePacketName [11:38:57]name=ofd_packets/00004974 [11:38:57]NVStorageSaveData ofd_packets/00004974 [11:38:57]File name is /storage/ofd_packets/00004974 [11:38:57]Write 319 bytes [11:38:57]NVStorageSaveData done [11:38:57]OFDSenderStorePacket done [11:38:57]KKMCreateOFDPacket done [11:38:57]NVStorageSaveData kkm_last_timestamp [11:38:57]File name is /storage/kkm_last_timestamp [11:38:57]Write 4 bytes [11:38:57]NVStorageSaveData done [11:38:57]ExternCall_PrintAddStr [11:38:57]wPrintStart [11:38:57]Write to MH i2c: 01 00 00 C9 39 02 [11:38:57]Write i2c OK [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: 01 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: 01 07 00 [11:38:57]MH_I2C_Read... [11:38:57]Read from MH i2c: 01 07 00 C9 39 00 00 00 00 00 FF 0F 17 [11:38:57]RasterBufferAndPrint [11:38:57]line Счет N : (3)140983 [11:38:57]line ИНН: 02508201610067 [11:38:57]line Контрольно-Кассовый Чек [11:38:57]line ПРОДАЖА [11:38:57]line Товар: 4700000160358 [11:38:57]line Вода Легенда 1л [11:38:57]line 1.000 * 50.00 [11:38:57]line = 50.00 [11:38:57]line НДС 12% НСП 1% [11:38:57]line > о реализуемом товаре [11:38:57]line ИТОГО: 50.00 [11:38:57]line НСП 1% : 0.44 [11:38:57]line НДС 12% : 5.31 [11:38:57]line Наличными: 50.00 [11:38:57]line Безнал.: 0.00 [11:38:57]line Место: АЗС № 135 "Партнер Нефть" [11:38:57]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [11:38:57]line СНО: Общий режим [11:38:57]line Чек 34 16.05.2024 11:39 [11:38:57]line Смена: 44 ФФД: 1.0 [11:38:57]line ЗНМ: 0300000237 [11:38:57]line РНМ: 0000000000154221 [11:38:57]line Версия ККМ: v1.0 [11:38:57]line ФМ: 0000000000963259 [11:38:57]line ФД: 4974 [11:38:57]line ФПД: 4816915072349 [11:38:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T113902&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4974&fm=4816915072349&tin=02508201610067®Number=0000000000154221&sum=5000 [11:38:57]line 0 [11:38:57]OFD Sender: Processing packet 4974 [packets to send 4, broken 3] [11:38:57]ProducePacketName [11:38:57]name=ofd_packets/00004974 [11:38:57]OFD Sender: To server: pG, [11:38:57]CommunicateWithHost lk.salyk.kg:30040 [11:38:57]ConnectInit lk.salyk.kg [11:38:57]written 0, free lines is 4095 [11:38:57]Connected sock=10 [11: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 33 32 35 39 21 01 00 00 51 24 19 01 FD 37 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 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 56 F0 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6E 13 00 00 35 04 06 00 04 61 86 83 05 5D 41 92 F3 40 FF A4 3F 42 [11:38:58]Write to MH i2c: 01 00 00 F1 39 2A [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: 01 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: 01 07 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: 01 07 00 F1 39 00 00 00 00 00 A0 0C DD [11:38:58]RasterBufferAndPrint [11:38:58]line [11:38:58]line [11:38:58]line [11:38:58]line [11:38:58]line [11:38:58]written 0, free lines is 3236 [11:38:58]MH_Cut [11:38:58]Write to MH i2c: D1 01 00 F8 39 01 03 [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: D1 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: D1 01 00 [11:38:58]MH_I2C_Read... [11:38:58]Read from MH i2c: D1 01 00 F8 39 00 02 [11:38:58]Write to MH i2c: 01 00 00 F9 39 32 [11:38:58]Write i2c OK [11:38:58]MH_I2C_Read... [11:38:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 1E 64 47 00 B2 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6E 13 00 00 F4 03 04 00 1A 9C 45 66 B6 04 01 00 00 BC 51 0A BE FC 97 F0 AB [11:38:58]CommunicateWithHost err = 0 [11:38:58]CheckOFDResponse [11:38:58]1017 (14) - 77093643461234 [11:38:58]1041 (16) - 0000000000963259 [11:38:58]1040 (4) - 4974 [11:38:58]1012 (4) - 16.05.2024 05:39 [11:38:58]1206 (1) - 0 [11:38:58]OFD Sender: Remove packet 4974 [11:38:58]ProducePacketName [11:38:58]name=ofd_packets/00004974 [11:38:58]NVStorageDeleteData [11:38:58]OFD Sender: No OFD packet to send [11:38:59]*** Cut start [11:38:59]*** Partial cut [11:38:59]*** CUTSNS_PIN = 1 [11:38:59]*** CUTSNS_PIN = 0 [11:38:59]*** Brake cut motor [11:38:59]Read from MH i2c: 01 [11:38:59]MH_I2C_Read... [11:38:59]*** Stop cut motor [11:38:59]*** Cut end [11:38:59]Read from MH i2c: 01 07 00 [11:38:59]MH_I2C_Read... [11:38:59]Read from MH i2c: 01 07 00 F9 39 00 00 00 00 00 FF 0F 47 [11:38:59]process_action close_receipt done [11:38:59]requested_data is exist [11:38:59]produce_requested_data [11:38:59]requested_item fm.sn is exist - process it [11:38:59]wFMCommunicate request_size=4 [11:38:59]MH_SAM_APDU [11:38:59]CAPDU: 80 11 00 00 [11:38:59]Write to MH i2c: E2 08 00 FA 39 80 11 00 00 00 00 00 00 AD [11:38:59]Write i2c OK [11:38:59]MH_I2C_Read... [11:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:59]Read from MH i2c: E2 [11:38:59]MH_I2C_Read... [11:38:59]Read from MH i2c: E2 17 00 [11:38:59]MH_I2C_Read... [11:38:59]Read from MH i2c: E2 17 00 FA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 02 [11:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [11:38:59]wFMCommunicate OK [11:38:59]requested_item fd.num is exist - process it [11:38:59]SAM_PROTO_GetFieldsCounters [11:38:59]wFMCommunicate request_size=4 [11:38:59]MH_SAM_APDU [11:38:59]CAPDU: 80 13 00 00 [11:38:59]Write to MH i2c: E2 08 00 FB 39 80 13 00 00 00 00 00 00 B0 [11:38:59]Write i2c OK [11:38:59]MH_I2C_Read... [11:38:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:59]Read from MH i2c: E2 [11:38:59]MH_I2C_Read... [11:38:59]Read from MH i2c: E2 62 00 [11:38:59]MH_I2C_Read... [11:38:59]Read from MH i2c: E2 62 00 FB 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6E 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 DC [11: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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6E 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:38:59]wFMCommunicate OK [11:38:59]SAM_PROTO_GetFieldsCounters done [11:38:59]requested_item shift.num is exist - process it [11:38:59]requested_item shift.opened is exist - process it [11:38:59]req_shift_opened [11:38:59]FM_GetShiftState [11:38:59]SAM_PROTO_GetShiftState [11:38:59]wFMCommunicate request_size=4 [11:38:59]MH_SAM_APDU [11:38:59]CAPDU: 80 13 01 00 [11:38:59]Write to MH i2c: E2 08 00 FC 39 80 13 01 00 00 00 00 00 B2 [11:38:59]Write i2c OK [11:38:59]MH_I2C_Read... [11:39:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:00]Read from MH i2c: E2 [11:39:00]MH_I2C_Read... [11:39:00]Read from MH i2c: E2 0E 00 [11:39:00]MH_I2C_Read... [11:39:00]Read from MH i2c: E2 0E 00 FC 39 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 BE [11:39:00]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [11:39:00]wFMCommunicate OK [11:39:00]SAM_PROTO_GetShiftState done [11:39:00]FM_GetShiftState done [11:39:00]req_shift_opened done [11:39:00]requested_item shift.open_date is exist - process it [11:39:00]req_shift_open_date [11:39:00]req_shift_open_date done [11:39:00]produce_requested_data done [11:39:00]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4974,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [11:39:00]process_action_free close_receipt [11:39:00]json_value_free [11:39:00]json_value_free done [11:39:00]process_json_proto returns [11:39:00]Send response to host [11:39:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4974,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [11:39:00]free response buf [11:39:00]execute_script done [11:39:00]execute_script returns [11:39:00]free content buf [11:39:00]Sock 8.Close socket [11:39:00]Sock 8.Thread stoped [11:39:03]OFD Sender: No OFD packet to send [11:39:08]OFD Sender: No OFD packet to send [11:39:13]OFD Sender: No OFD packet to send [11:39:18]OFD Sender: No OFD packet to send [11:39:23]OFD Sender: No OFD packet to send [11:39:28]OFD Sender: No OFD packet to send [11:39:33]OFD Sender: No OFD packet to send [11:39:38]OFD Sender: No OFD packet to send [11:39:43]OFD Sender: No OFD packet to send [11:39:48]OFD Sender: No OFD packet to send [11:39:53]OFD Sender: No OFD packet to send [11:39:58]OFD Sender: No OFD packet to send [11:40:03]OFD Sender: No OFD packet to send [11:40:08]OFD Sender: No OFD packet to send [11:40:13]OFD Sender: No OFD packet to send [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:13]OFD Sender: No OFD packet to send [11:42:18]OFD Sender: No OFD packet to send [11:42:23]OFD Sender: No OFD packet to send [11:42:28]OFD Sender: No OFD packet to send [11:42:33]OFD Sender: No OFD packet to send [11:42:38]OFD Sender: No OFD packet to send [11:42:43]OFD Sender: No OFD packet to send [11:42:48]OFD Sender: No OFD packet to send [11:42:53]OFD Sender: No OFD packet to send [11:42:58]OFD Sender: No OFD packet to send [11:43:03]OFD Sender: No OFD packet to send [11:43:08]OFD Sender: No OFD packet to send [11:43:13]OFD Sender: No OFD packet to send [11:43:18]OFD Sender: No OFD packet to send [11:43:23]OFD Sender: No OFD packet to send [11:43:28]OFD Sender: No OFD packet to send [11:43:33]OFD Sender: No OFD packet to send [11:43:38]OFD Sender: No OFD packet to send [11:43:43]OFD Sender: No OFD packet to send [11:43:48]OFD Sender: No OFD packet to send [11:43:53]OFD Sender: No OFD packet to send [11:43:58]OFD Sender: No OFD packet to send [11:44:03]OFD Sender: No OFD packet to send [11:44:08]OFD Sender: No OFD packet to send [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]OFD Sender: No OFD packet to send [11:45:24]OFD Sender: No OFD packet to send [11:45:29]OFD Sender: No OFD packet to send [11:45:34]OFD Sender: No OFD packet to send [11:45:39]OFD Sender: No OFD packet to send [11:45:44]OFD Sender: No OFD packet to send [11:45:49]OFD Sender: No OFD packet to send [11:45:54]OFD Sender: No OFD packet to send [11:45:59]OFD Sender: No OFD packet to send [11:46:04]OFD Sender: No OFD packet to send [11:46:09]OFD Sender: No OFD packet to send [11:46:14]OFD Sender: No OFD packet to send [11:46:19]OFD Sender: No OFD packet to send [11:46:24]OFD Sender: No OFD packet to send [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:44]OFD Sender: No OFD packet to send [11:46:49]OFD Sender: No OFD packet to send [11:46:54]OFD Sender: No OFD packet to send [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:39]OFD Sender: No OFD packet to send [11:47:44]OFD Sender: No OFD packet to send [11:47:49]OFD Sender: No OFD packet to send [11:47:54]OFD Sender: No OFD packet to send [11:47:59]OFD Sender: No OFD packet to send [11:48:04]OFD Sender: No OFD packet to send [11:48:09]OFD Sender: No OFD packet to send [11:48:14]OFD Sender: No OFD packet to send [11:48:19]OFD Sender: No OFD packet to send [11:48:24]OFD Sender: No OFD packet to send [11:48:29]OFD Sender: No OFD packet to send [11:48:34]OFD Sender: No OFD packet to send [11:48:39]OFD Sender: No OFD packet to send [11:48:44]OFD Sender: No OFD packet to send [11:48:49]OFD Sender: No OFD packet to send [11:48:54]OFD Sender: No OFD packet to send [11:48:59]OFD Sender: No OFD packet to send [11:49:04]OFD Sender: No OFD packet to send [11:49:09]OFD Sender: No OFD packet to send [11:49:14]OFD Sender: No OFD packet to send [11:49:19]OFD Sender: No OFD packet to send [11:49:24]OFD Sender: No OFD packet to send [11:49:29]OFD Sender: No OFD packet to send [11:49:34]OFD Sender: No OFD packet to send [11:49:39]OFD Sender: No OFD packet to send [11:49:44]OFD Sender: No OFD packet to send [11:49:49]OFD Sender: No OFD packet to send [11:49:54]OFD Sender: No OFD packet to send [11:49:59]OFD Sender: No OFD packet to send [11:50:04]OFD Sender: No OFD packet to send [11:50:09]OFD Sender: No OFD packet to send [11:50:14]OFD Sender: No OFD packet to send [11:50:19]OFD Sender: No OFD packet to send [11:50:24]OFD Sender: No OFD packet to send [11:50:29]OFD Sender: No OFD packet to send [11:50:34]OFD Sender: No OFD packet to send [11:50:39]OFD Sender: No OFD packet to send [11:50:44]OFD Sender: No OFD packet to send [11:50:49]OFD Sender: No OFD packet to send [11:50:54]OFD Sender: No OFD packet to send [11:50:59]OFD Sender: No OFD packet to send [11:51:04]OFD Sender: No OFD packet to send [11:51:09]OFD Sender: No OFD packet to send [11:51:14]OFD Sender: No OFD packet to send [11:51:19]OFD Sender: No OFD packet to send [11:51:24]OFD Sender: No OFD packet to send [11:51:29]OFD Sender: No OFD packet to send [11:51:34]OFD Sender: No OFD packet to send [11:51:39]OFD Sender: No OFD packet to send [11:51:44]OFD Sender: No OFD packet to send [11:51:49]OFD Sender: No OFD packet to send [11:51:54]OFD Sender: No OFD packet to send [11:51:59]OFD Sender: No OFD packet to send [11:52:04]OFD Sender: No OFD packet to send [11:52:09]OFD Sender: No OFD packet to send [11:52:14]OFD Sender: No OFD packet to send [11:52:19]OFD Sender: No OFD packet to send [11:52:24]OFD Sender: No OFD packet to send [11:52:29]OFD Sender: No OFD packet to send [11:52:34]OFD Sender: No OFD packet to send [11:52:39]OFD Sender: No OFD packet to send [11:52:44]OFD Sender: No OFD packet to send [11:52:49]OFD Sender: No OFD packet to send [11:52:54]OFD Sender: No OFD packet to send [11:52:59]OFD Sender: No OFD packet to send [11:53:04]OFD Sender: No OFD packet to send [11:53:09]OFD Sender: No OFD packet to send [11:53:14]OFD Sender: No OFD packet to send [11:53:19]OFD Sender: No OFD packet to send [11:53:24]OFD Sender: No OFD packet to send [11:53:29]OFD Sender: No OFD packet to send [11:53:34]OFD Sender: No OFD packet to send [11:53:39]OFD Sender: No OFD packet to send [11:53:44]OFD Sender: No OFD packet to send [11:53:49]OFD Sender: No OFD packet to send [11:53:54]OFD Sender: No OFD packet to send [11:53:59]OFD Sender: No OFD packet to send [11:54:04]OFD Sender: No OFD packet to send [11:54:09]OFD Sender: No OFD packet to send [11:54:14]OFD Sender: No OFD packet to send [11:54:19]OFD Sender: No OFD packet to send [11:54:24]OFD Sender: No OFD packet to send [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:55:04]OFD Sender: No OFD packet to send [11:55:09]OFD Sender: No OFD packet to send [11:55:14]OFD Sender: No OFD packet to send [11:55:19]OFD Sender: No OFD packet to send [11:55:24]OFD Sender: No OFD packet to send [11:55:29]OFD Sender: No OFD packet to send [11:55:34]OFD Sender: No OFD packet to send [11:55:39]OFD Sender: No OFD packet to send [11:55:44]OFD Sender: No OFD packet to send [11:55:49]OFD Sender: No OFD packet to send [11:55:54]OFD Sender: No OFD packet to send [11:55:59]OFD Sender: No OFD packet to send [11:56:04]OFD Sender: No OFD packet to send [11:56:09]OFD Sender: No OFD packet to send [11:56:14]OFD Sender: No OFD packet to send [11:56:19]OFD Sender: No OFD packet to send [11:56:24]OFD Sender: No OFD packet to send [11:56:29]OFD Sender: No OFD packet to send [11:56:34]OFD Sender: No OFD packet to send [11:56:39]OFD Sender: No OFD packet to send [11:56:44]OFD Sender: No OFD packet to send [11:56:49]OFD Sender: No OFD packet to send [11:56:54]OFD Sender: No OFD packet to send [11:56:59]OFD Sender: No OFD packet to send [11:57:04]OFD Sender: No OFD packet to send [11:57:09]OFD Sender: No OFD packet to send [11:57:14]OFD Sender: No OFD packet to send [11:57:19]OFD Sender: No OFD packet to send [11:57:24]OFD Sender: No OFD packet to send [11:57:29]OFD Sender: No OFD packet to send [11:57:34]OFD Sender: No OFD packet to send [11:57:39]OFD Sender: No OFD packet to send [11:57:44]OFD Sender: No OFD packet to send [11:57:49]OFD Sender: No OFD packet to send [11:57:54]OFD Sender: No OFD packet to send [11:57:59]OFD Sender: No OFD packet to send [11:58:04]OFD Sender: No OFD packet to send [11:58:09]OFD Sender: No OFD packet to send [11:58:14]OFD Sender: No OFD packet to send [11:58:19]OFD Sender: No OFD packet to send [11:58:24]OFD Sender: No OFD packet to send [11:58:29]OFD Sender: No OFD packet to send [11:58:34]OFD Sender: No OFD packet to send [11:58:39]OFD Sender: No OFD packet to send [11:58:44]OFD Sender: No OFD packet to send [11:58:49]OFD Sender: No OFD packet to send [11:58:54]OFD Sender: No OFD packet to send [11:58:59]OFD Sender: No OFD packet to send [11:59:04]OFD Sender: No OFD packet to send [11:59:09]OFD Sender: No OFD packet to send [11:59:14]OFD Sender: No OFD packet to send [11:59:19]OFD Sender: No OFD packet to send [11:59:24]OFD Sender: No OFD packet to send [11:59:29]OFD Sender: No OFD packet to send [11:59:34]OFD Sender: No OFD packet to send [11:59:39]OFD Sender: No OFD packet to send [11:59:44]OFD Sender: No OFD packet to send [11:59:49]OFD Sender: No OFD packet to send [11:59:54]OFD Sender: No OFD packet to send [11:59:59]OFD Sender: No OFD packet to send [12:00:04]OFD Sender: No OFD packet to send [12:00:09]OFD Sender: No OFD packet to send [12:00:14]OFD Sender: No OFD packet to send [12:00:19]OFD Sender: No OFD packet to send [12:00:24]OFD Sender: No OFD packet to send [12:00:29]OFD Sender: No OFD packet to send [12:00:34]OFD Sender: No OFD packet to send [12:00:39]OFD Sender: No OFD packet to send [12:00:44]OFD Sender: No OFD packet to send [12:00:49]OFD Sender: No OFD packet to send [12:00:54]OFD Sender: No OFD packet to send [12:00:59]OFD Sender: No OFD packet to send [12:01:04]OFD Sender: No OFD packet to send [12:01:09]OFD Sender: No OFD packet to send [12:01:14]OFD Sender: No OFD packet to send [12:01:19]OFD Sender: No OFD packet to send [12:01:24]OFD Sender: No OFD packet to send [12:01:29]OFD Sender: No OFD packet to send [12:01:34]OFD Sender: No OFD packet to send [12:01:39]OFD Sender: No OFD packet to send [12:01:44]OFD Sender: No OFD packet to send [12:01:49]OFD Sender: No OFD packet to send [12:01:54]OFD Sender: No OFD packet to send [12:01:59]OFD Sender: No OFD packet to send [12:02:04]OFD Sender: No OFD packet to send [12:02:09]OFD Sender: No OFD packet to send [12:02:14]OFD Sender: No OFD packet to send [12:02:19]OFD Sender: No OFD packet to send [12:02:24]OFD Sender: No OFD packet to send [12:02:29]OFD Sender: No OFD packet to send [12:02:34]OFD Sender: No OFD packet to send [12:02:35]accept exits with 9 [12:02:35]New connection [12:02:35]New thread 3067587940 created [12:02:35]Thread 3067444580 joined [12:02:35]Waiting for new connection... [12:02:35] Sock 9.Parse request [12:02:35]Sock 9.Check first char [12:02:35]Sock 9.First char is OK [12:02:35]request: POST /json_proto HTTP/1.0 [12:02:35]Method: POST [12:02:35]URL: /json_proto [12:02:35]Method is POST - this is cgi request [12:02:35]url: /json_proto [12:02:35]query_string will be loaded in cgi processing [12:02:35]execute_cgi json_proto POST (null) [12:02:35]execute_cgi path=json_proto method=POST [12:02:35]POST find Content-Length [12:02:35]Host: 172.17.44.4:8080 [12:02:35]Content-Length: 646 [12:02:35]Content-Type: application/json [12:02:35] [12:02:35]POST finish read [12:02:35]Found Content-Length = 646 [12:02:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140984", "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" ] } } [12:02:35]execute_script... [12:02: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)140984", "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" ] } } [12:02:35]POST & json_proto [12:02:35]process_json_proto [12:02:35]json parsed OK: [12:02:35]protocol is kg_v1.0 [12:02:35]action value=close_receipt [12:02:35]process_action close_receipt [12:02:35]cmd_close_receipt [12:02:35]MH_GetDate [12:02:35]Write to MH i2c: F0 00 00 FD 39 25 [12:02:35]Write i2c OK [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: F0 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: F0 09 00 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: F0 09 00 FD 39 00 E2 F5 45 66 6C E9 28 66 93 [12:02:35]GetLastDocTimeStamp 1715859542 [12:02:35]current date 1715860962 [12:02:35]FM_GetShiftState [12:02:35]SAM_PROTO_GetShiftState [12:02:35]wFMCommunicate request_size=4 [12:02:35]MH_SAM_APDU [12:02:35]CAPDU: 80 13 01 00 [12:02:35]Write to MH i2c: E2 08 00 FE 39 80 13 01 00 00 00 00 00 B4 [12:02:35]Write i2c OK [12:02:35]MH_I2C_Read... [12:02:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:35]Read from MH i2c: E2 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 0E 00 [12:02:35]MH_I2C_Read... [12:02:35]Read from MH i2c: E2 0E 00 FE 39 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 C0 [12:02:35]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:02:35]wFMCommunicate OK [12:02:35]SAM_PROTO_GetShiftState done [12:02:35]FM_GetShiftState done [12:02:35]opened in 1715818246 [12:02:35]opened+sec_in_day 1715904646 [12:02:35]quantity*price = 13000 [12:02:35]sum+1 = 13001 [12:02:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 35 16.05.2024 12:02 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4975 ФПД: 96746360280265 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T120242&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4975&fm=96746360280265&tin=02508201610067®Number=0000000000154221&sum=13000 0 [12:02:36]StoreToDocumentArchive [12:02:36]shift 44 fd 4975 [12:02:36]save to /storage/0044/doc_00004975 [12:02:36]save last doc name /storage/0044/doc_00004975 to /storage/kkm_last_doc_name [12:02:36]save OK [12:02:36]Clear old archive folders... [12:02:36]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:02:36]tlvbuf is 00CE7E20 [12:02:36]SAM_PROTO_ClearQueue [12:02:36]wFMCommunicate request_size=4 [12:02:36]MH_SAM_APDU [12:02:36]CAPDU: 80 09 00 00 [12:02:36]Write to MH i2c: E2 08 00 0B 3A 80 09 00 00 00 00 00 00 B7 [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:02:36]Read from MH i2c: E2 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 0B 3A 00 90 00 B9 [12:02:36]RAPDU: 90 00 [12:02:36]wFMCommunicate OK [12:02:36]SAM_PROTO_ClearQueue done [12:02:36]KKMCreateOFDPacket [12:02:36]OFDProtocolAddRootSTLVToBuf [12:02:36]FM_MakeSignedData [12:02:36]FM_MakeSignedData [12:02:36]SAM_PROTO_SignData [12:02:36]wFMCommunicate request_size=4 [12:02:36]MH_SAM_APDU [12:02:36]CAPDU: 80 0D 01 02 [12:02:36]Write to MH i2c: E2 08 00 0C 3A 80 0D 01 02 00 00 00 00 BF [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:02:36]Read from MH i2c: E2 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 [12:02:36]MH_I2C_Read... [12:02:36]Read from MH i2c: E2 03 00 0C 3A 00 90 00 BA [12:02:36]RAPDU: 90 00 [12:02:36]wFMCommunicate OK [12:02:36]wFMCommunicate request_size=255 [12:02:36]MH_SAM_APDU [12:02:36]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 23 00 00 00 F4 03 04 00 E2 F5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 [12:02:36]Write to MH i2c: E2 02 01 0D 3A 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 23 00 00 00 F4 03 04 00 E2 F5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 00 00 95 [12:02:36]Write i2c OK [12:02:36]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 0D 3A 00 90 00 BB [12:02:37]RAPDU: 90 00 [12:02:37]wFMCommunicate OK [12:02:37]wFMCommunicate request_size=41 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6F 13 00 00 35 04 06 00 57 FD 84 70 14 C9 [12:02:37]Write to MH i2c: E2 2C 00 0E 3A 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6F 13 00 00 35 04 06 00 57 FD 84 70 14 C9 00 00 3A [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 03 00 0E 3A 00 90 00 BC [12:02:37]RAPDU: 90 00 [12:02:37]wFMCommunicate OK [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 0D 03 02 [12:02:37]Write to MH i2c: E2 08 00 0F 3A 80 0D 03 02 00 00 00 00 C4 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 0B 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 0B 00 0F 3A 00 44 AE 45 8A 28 6B 64 35 90 00 B2 [12:02:37]RAPDU: 44 AE 45 8A 28 6B 64 35 90 00 [12:02:37]wFMCommunicate OK [12:02:37]SAM_PROTO_SignData done [12:02:37]FM_MakeSignedData done [12:02:37]CreateOFDProtocolMessage [12:02:37]wFMCommunicate request_size=4 [12:02:37]MH_SAM_APDU [12:02:37]CAPDU: 80 11 00 00 [12:02:37]Write to MH i2c: E2 08 00 10 3A 80 11 00 00 00 00 00 00 C4 [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:37]Read from MH i2c: E2 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 17 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: E2 17 00 10 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 19 [12:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:02:37]wFMCommunicate OK [12:02:37]CreateOFDProtocolMessage done [12:02:37]OFDSenderStorePacket 4975 [12:02:37]StoreOFDPacket docnum=4975 [12:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 89 0F 26 01 54 57 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 23 00 00 00 F4 03 04 00 E2 F5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6F 13 00 00 35 04 06 00 57 FD 84 70 14 C9 44 AE 45 8A 28 6B 64 35 [12:02:37]CheckFolder [12:02:37]dirname=/storage/ofd_packets [12:02:37]CheckFolder done [12:02:37]ProducePacketName [12:02:37]name=ofd_packets/00004975 [12:02:37]NVStorageSaveData ofd_packets/00004975 [12:02:37]File name is /storage/ofd_packets/00004975 [12:02:37]Write 332 bytes [12:02:37]NVStorageSaveData done [12:02:37]OFDSenderStorePacket done [12:02:37]KKMCreateOFDPacket done [12:02:37]NVStorageSaveData kkm_last_timestamp [12:02:37]File name is /storage/kkm_last_timestamp [12:02:37]Write 4 bytes [12:02:37]NVStorageSaveData done [12:02:37]ExternCall_PrintAddStr [12:02:37]wPrintStart [12:02:37]Write to MH i2c: 01 00 00 11 3A 4B [12:02:37]Write i2c OK [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 07 00 [12:02:37]MH_I2C_Read... [12:02:37]Read from MH i2c: 01 07 00 11 3A 00 00 00 00 00 FF 0F 60 [12:02:37]RasterBufferAndPrint [12:02:37]line Счет N : (3)140984 [12:02:37]line ИНН: 02508201610067 [12:02:37]line Контрольно-Кассовый Чек [12:02:37]line ПРОДАЖА [12:02:37]line Товар: 2000036220012 [12:02:37]line Кофе Капучино XL(GABB TRADE) [12:02:37]line 1.000 * 130.00 [12:02:37]line = 130.00 [12:02:37]line НДС 12% НСП 1% [12:02:37]line > о реализуемом товаре [12:02:37]line ИТОГО: 130.00 [12:02:37]line НСП 1% : 1.15 [12:02:37]line НДС 12% : 13.80 [12:02:37]line Наличными: 130.00 [12:02:37]line Безнал.: 0.00 [12:02:37]line Место: АЗС № 135 "Партнер Нефть" [12:02:37]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:02:37]line СНО: Общий режим [12:02:37]line Чек 35 16.05.2024 12:02 [12:02:37]line Смена: 44 ФФД: 1.0 [12:02:37]line ЗНМ: 0300000237 [12:02:37]line РНМ: 0000000000154221 [12:02:37]line Версия ККМ: v1.0 [12:02:37]line ФМ: 0000000000963259 [12:02:37]line ФД: 4975 [12:02:37]line ФПД: 96746360280265 [12:02:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T120242&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4975&fm=96746360280265&tin=02508201610067®Number=0000000000154221&sum=13000 [12:02:37]line 0 [12:02:37]OFD Sender: Processing packet 4975 [packets to send 4, broken 3] [12:02:37]ProducePacketName [12:02:37]name=ofd_packets/00004975 [12:02:37]OFD Sender: To server: pG, [12:02:37]CommunicateWithHost lk.salyk.kg:30040 [12:02:37]ConnectInit lk.salyk.kg [12:02:37]written 0, free lines is 4095 [12:02:38]Write to MH i2c: 01 00 00 3A 3A 74 [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: 01 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: 01 07 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: 01 07 00 3A 3A 00 00 00 00 00 73 0C FA [12:02:38]RasterBufferAndPrint [12:02:38]line [12:02:38]line [12:02:38]line [12:02:38]line [12:02:38]line [12:02:38]written 0, free lines is 3193 [12:02:38]MH_Cut [12:02:38]Write to MH i2c: D1 01 00 41 3A 01 4D [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: D1 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: D1 01 00 [12:02:38]MH_I2C_Read... [12:02:38]Read from MH i2c: D1 01 00 41 3A 00 4C [12:02:38]Write to MH i2c: 01 00 00 42 3A 7C [12:02:38]Write i2c OK [12:02:38]MH_I2C_Read... [12:02:38]Connected sock=10 [12:02:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 89 0F 26 01 54 57 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 23 00 00 00 F4 03 04 00 E2 F5 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 6F 13 00 00 35 04 06 00 57 FD 84 70 14 C9 44 AE 45 8A 28 6B 64 35 [12:02:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 C3 3E 47 00 EE 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 33 32 35 39 10 04 04 00 6F 13 00 00 F4 03 04 00 A6 A1 45 66 B6 04 01 00 00 85 DB 04 0A AB 02 1C A4 [12:02:38]CommunicateWithHost err = 0 [12:02:38]CheckOFDResponse [12:02:38]1017 (14) - 77093643461234 [12:02:38]1041 (16) - 0000000000963259 [12:02:38]1040 (4) - 4975 [12:02:38]1012 (4) - 16.05.2024 06:03 [12:02:38]1206 (1) - 0 [12:02:38]OFD Sender: Remove packet 4975 [12:02:38]ProducePacketName [12:02:38]name=ofd_packets/00004975 [12:02:38]NVStorageDeleteData [12:02:38]OFD Sender: No OFD packet to send [12:02:39]*** Cut start [12:02:39]*** Partial cut [12:02:39]*** CUTSNS_PIN = 1 [12:02:39]*** CUTSNS_PIN = 0 [12:02:39]*** Brake cut motor [12:02:39]Read from MH i2c: 01 [12:02:39]MH_I2C_Read... [12:02:39]*** Stop cut motor [12:02:39]*** Cut end [12:02:39]Read from MH i2c: 01 07 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: 01 07 00 42 3A 00 00 00 00 00 FF 0F 91 [12:02:39]process_action close_receipt done [12:02:39]requested_data is exist [12:02:39]produce_requested_data [12:02:39]requested_item fm.sn is exist - process it [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 11 00 00 [12:02:39]Write to MH i2c: E2 08 00 43 3A 80 11 00 00 00 00 00 00 F7 [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:02:39]Read from MH i2c: E2 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 17 00 [12:02:39]MH_I2C_Read... [12:02:39]Read from MH i2c: E2 17 00 43 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 4C [12:02:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:02:39]wFMCommunicate OK [12:02:39]requested_item fd.num is exist - process it [12:02:39]SAM_PROTO_GetFieldsCounters [12:02:39]wFMCommunicate request_size=4 [12:02:39]MH_SAM_APDU [12:02:39]CAPDU: 80 13 00 00 [12:02:39]Write to MH i2c: E2 08 00 44 3A 80 13 00 00 00 00 00 00 FA [12:02:39]Write i2c OK [12:02:39]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 62 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 62 00 44 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6F 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [12:02:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 6F 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:02:40]wFMCommunicate OK [12:02:40]SAM_PROTO_GetFieldsCounters done [12:02:40]requested_item shift.num is exist - process it [12:02:40]requested_item shift.opened is exist - process it [12:02:40]req_shift_opened [12:02:40]FM_GetShiftState [12:02:40]SAM_PROTO_GetShiftState [12:02:40]wFMCommunicate request_size=4 [12:02:40]MH_SAM_APDU [12:02:40]CAPDU: 80 13 01 00 [12:02:40]Write to MH i2c: E2 08 00 45 3A 80 13 01 00 00 00 00 00 FC [12:02:40]Write i2c OK [12:02:40]MH_I2C_Read... [12:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:02:40]Read from MH i2c: E2 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0E 00 [12:02:40]MH_I2C_Read... [12:02:40]Read from MH i2c: E2 0E 00 45 3A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 08 [12:02:40]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:02:40]wFMCommunicate OK [12:02:40]SAM_PROTO_GetShiftState done [12:02:40]FM_GetShiftState done [12:02:40]req_shift_opened done [12:02:40]requested_item shift.open_date is exist - process it [12:02:40]req_shift_open_date [12:02:40]req_shift_open_date done [12:02:40]produce_requested_data done [12:02:40]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4975,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [12:02:40]process_action_free close_receipt [12:02:40]json_value_free [12:02:40]json_value_free done [12:02:40]process_json_proto returns [12:02:40]Send response to host [12:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4975,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [12:02:40]free response buf [12:02:40]execute_script done [12:02:40]execute_script returns [12:02:40]free content buf [12:02:40]Sock 9.Close socket [12:02:40]Sock 9.Thread stoped [12:02:43]OFD Sender: No OFD packet to send [12:02:48]OFD Sender: No OFD packet to send [12:02:53]OFD Sender: No OFD packet to send [12:02:58]OFD Sender: No OFD packet to send [12:03:03]OFD Sender: No OFD packet to send [12:03:08]OFD Sender: No OFD packet to send [12:03:13]OFD Sender: No OFD packet to send [12:03:18]OFD Sender: No OFD packet to send [12:03:23]OFD Sender: No OFD packet to send [12:03:28]OFD Sender: No OFD packet to send [12:03:33]OFD Sender: No OFD packet to send [12:03:38]OFD Sender: No OFD packet to send [12:03:43]OFD Sender: No OFD packet to send [12:03:48]OFD Sender: No OFD packet to send [12:03:53]OFD Sender: No OFD packet to send [12:03:58]OFD Sender: No OFD packet to send [12:04:03]OFD Sender: No OFD packet to send [12:04:08]OFD Sender: No OFD packet to send [12:04:13]OFD Sender: No OFD packet to send [12:04:18]OFD Sender: No OFD packet to send [12:04:23]OFD Sender: No OFD packet to send [12:04:28]OFD Sender: No OFD packet to send [12:04:33]OFD Sender: No OFD packet to send [12:04:38]OFD Sender: No OFD packet to send [12:04:43]OFD Sender: No OFD packet to send [12:04:48]OFD Sender: No OFD packet to send [12:04:53]OFD Sender: No OFD packet to send [12:04:58]OFD Sender: No OFD packet to send [12:05:03]OFD Sender: No OFD packet to send [12:05:08]OFD Sender: No OFD packet to send [12:05:13]OFD Sender: No OFD packet to send [12:05:18]OFD Sender: No OFD packet to send [12:05:23]OFD Sender: No OFD packet to send [12:05:28]OFD Sender: No OFD packet to send [12:05:33]OFD Sender: No OFD packet to send [12:05:38]OFD Sender: No OFD packet to send [12:05:43]OFD Sender: No OFD packet to send [12:05:48]OFD Sender: No OFD packet to send [12:05:53]OFD Sender: No OFD packet to send [12:05:58]OFD Sender: No OFD packet to send [12:06:03]OFD Sender: No OFD packet to send [12:06:08]OFD Sender: No OFD packet to send [12:06:13]OFD Sender: No OFD packet to send [12:06:18]OFD Sender: No OFD packet to send [12:06:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:19]OFD Sender: No OFD packet to send [12:07:24]OFD Sender: No OFD packet to send [12:07:29]OFD Sender: No OFD packet to send [12:07:34]OFD Sender: No OFD packet to send [12:07:39]OFD Sender: No OFD packet to send [12:07:44]OFD Sender: No OFD packet to send [12:07:49]OFD Sender: No OFD packet to send [12:07:54]OFD Sender: No OFD packet to send [12:07:59]OFD Sender: No OFD packet to send [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:37]accept exits with 8 [12:10:37]New connection [12:10:37]New thread 3067444580 created [12:10:37]Thread 3067587940 joined [12:10:37]Waiting for new connection... [12:10:37] Sock 8.Parse request [12:10:37]Sock 8.Check first char [12:10:37]Sock 8.First char is OK [12:10:37]request: POST /json_proto HTTP/1.0 [12:10:37]Method: POST [12:10:37]URL: /json_proto [12:10:37]Method is POST - this is cgi request [12:10:37]url: /json_proto [12:10:37]query_string will be loaded in cgi processing [12:10:37]execute_cgi json_proto POST (null) [12:10:37]execute_cgi path=json_proto method=POST [12:10:37]POST find Content-Length [12:10:37]Host: 172.17.44.4:8080 [12:10:37]Content-Length: 840 [12:10:37]Content-Type: application/json [12:10:37] [12:10:37]POST finish read [12:10:37]Found Content-Length = 840 [12:10:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140985", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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" ] } } [12:10:37]execute_script... [12:10: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)140985", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "42069942", "name": "\u0416\u0435\u0432 Orbit White Fresh Mint", "price" : 40.00, "quantity" : 1.000, "sum" : 40.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" ] } } [12:10:37]POST & json_proto [12:10:37]process_json_proto [12:10:37]json parsed OK: [12:10:37]protocol is kg_v1.0 [12:10:37]action value=close_receipt [12:10:37]process_action close_receipt [12:10:37]cmd_close_receipt [12:10:37]MH_GetDate [12:10:37]Write to MH i2c: F0 00 00 46 3A 6F [12:10:37]Write i2c OK [12:10:37]MH_I2C_Read... [12:10:37]Read from MH i2c: F0 [12:10:37]MH_I2C_Read... [12:10:37]Read from MH i2c: F0 09 00 [12:10:37]MH_I2C_Read... [12:10:37]Read from MH i2c: F0 09 00 46 3A 00 C5 F7 45 66 6C E9 28 66 C2 [12:10:37]GetLastDocTimeStamp 1715860962 [12:10:37]current date 1715861445 [12:10:37]FM_GetShiftState [12:10:37]SAM_PROTO_GetShiftState [12:10:37]wFMCommunicate request_size=4 [12:10:37]MH_SAM_APDU [12:10:37]CAPDU: 80 13 01 00 [12:10:37]Write to MH i2c: E2 08 00 47 3A 80 13 01 00 00 00 00 00 FE [12:10:37]Write i2c OK [12:10:37]MH_I2C_Read... [12:10:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:37]Read from MH i2c: E2 [12:10:37]MH_I2C_Read... [12:10:37]Read from MH i2c: E2 0E 00 [12:10:37]MH_I2C_Read... [12:10:37]Read from MH i2c: E2 0E 00 47 3A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 0A [12:10:37]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:10:37]wFMCommunicate OK [12:10:37]SAM_PROTO_GetShiftState done [12:10:37]FM_GetShiftState done [12:10:37]opened in 1715818246 [12:10:37]opened+sec_in_day 1715904646 [12:10:37]quantity*price = 4000 [12:10:37]sum+1 = 4001 [12:10:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 42069942 Жев Orbit White Fresh Mint 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.70 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 36 16.05.2024 12:10 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4976 ФПД: 176336601767811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T121045&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4976&fm=176336601767811&tin=02508201610067®Number=0000000000154221&sum=8000 0 [12:10:39]StoreToDocumentArchive [12:10:39]shift 44 fd 4976 [12:10:39]save to /storage/0044/doc_00004976 [12:10:39]save last doc name /storage/0044/doc_00004976 to /storage/kkm_last_doc_name [12:10:39]save OK [12:10:39]Clear old archive folders... [12:10:39]ProcessDocumentItem done err = 0, tmpTLVsize=367 [12:10:39]tlvbuf is 00D1A790 [12:10:39]SAM_PROTO_ClearQueue [12:10:39]wFMCommunicate request_size=4 [12:10:39]MH_SAM_APDU [12:10:39]CAPDU: 80 09 00 00 [12:10:39]Write to MH i2c: E2 08 00 54 3A 80 09 00 00 00 00 00 00 00 [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:10:39]Read from MH i2c: E2 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 03 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 03 00 54 3A 00 90 00 02 [12:10:39]RAPDU: 90 00 [12:10:39]wFMCommunicate OK [12:10:39]SAM_PROTO_ClearQueue done [12:10:39]KKMCreateOFDPacket [12:10:39]OFDProtocolAddRootSTLVToBuf [12:10:39]FM_MakeSignedData [12:10:39]FM_MakeSignedData [12:10:39]SAM_PROTO_SignData [12:10:39]wFMCommunicate request_size=4 [12:10:39]MH_SAM_APDU [12:10:39]CAPDU: 80 0D 01 02 [12:10:39]Write to MH i2c: E2 08 00 55 3A 80 0D 01 02 00 00 00 00 08 [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:10:39]Read from MH i2c: E2 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 03 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 03 00 55 3A 00 90 00 03 [12:10:39]RAPDU: 90 00 [12:10:39]wFMCommunicate OK [12:10:39]wFMCommunicate request_size=255 [12:10:39]MH_SAM_APDU [12:10:39]CAPDU: 80 0D 02 02 FA 03 00 6F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 [12:10:39]Write to MH i2c: E2 02 01 56 3A 80 0D 02 02 FA 00 03 00 6F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 00 00 18 [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]OFD Sender: No OFD packet to send [12:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:39]Read from MH i2c: E2 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 03 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 03 00 56 3A 00 90 00 04 [12:10:39]RAPDU: 90 00 [12:10:39]wFMCommunicate OK [12:10:39]wFMCommunicate request_size=126 [12:10:39]MH_SAM_APDU [12:10:39]CAPDU: 80 0D 02 02 79 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 24 00 00 00 F4 03 04 00 C5 F7 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 70 13 00 00 35 04 06 00 A0 60 90 82 5F 83 [12:10:39]Write to MH i2c: E2 81 00 57 3A 80 0D 02 02 79 00 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 24 00 00 00 F4 03 04 00 C5 F7 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 70 13 00 00 35 04 06 00 A0 60 90 82 5F 83 00 00 17 [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:10:39]Read from MH i2c: E2 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 03 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 03 00 57 3A 00 90 00 05 [12:10:39]RAPDU: 90 00 [12:10:39]wFMCommunicate OK [12:10:39]wFMCommunicate request_size=4 [12:10:39]MH_SAM_APDU [12:10:39]CAPDU: 80 0D 03 02 [12:10:39]Write to MH i2c: E2 08 00 58 3A 80 0D 03 02 00 00 00 00 0D [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:10:39]Read from MH i2c: E2 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 0B 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 0B 00 58 3A 00 5B AC 97 BA F0 A7 E7 91 90 00 75 [12:10:39]RAPDU: 5B AC 97 BA F0 A7 E7 91 90 00 [12:10:39]wFMCommunicate OK [12:10:39]SAM_PROTO_SignData done [12:10:39]FM_MakeSignedData done [12:10:39]CreateOFDProtocolMessage [12:10:39]wFMCommunicate request_size=4 [12:10:39]MH_SAM_APDU [12:10:39]CAPDU: 80 11 00 00 [12:10:39]Write to MH i2c: E2 08 00 59 3A 80 11 00 00 00 00 00 00 0D [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:39]Read from MH i2c: E2 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 17 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: E2 17 00 59 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 62 [12:10:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:10:39]wFMCommunicate OK [12:10:39]CreateOFDProtocolMessage done [12:10:39]OFDSenderStorePacket 4976 [12:10:39]StoreOFDPacket docnum=4976 [12:10:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 83 01 00 00 E7 41 7B 01 41 BC 5A 03 01 00 03 00 6F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 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 24 00 00 00 F4 03 04 00 C5 F7 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 70 13 00 00 35 04 06 00 A0 60 90 82 5F 83 5B AC 97 BA F0 A7 E7 91 [12:10:39]CheckFolder [12:10:39]dirname=/storage/ofd_packets [12:10:39]CheckFolder done [12:10:39]ProducePacketName [12:10:39]name=ofd_packets/00004976 [12:10:39]NVStorageSaveData ofd_packets/00004976 [12:10:39]File name is /storage/ofd_packets/00004976 [12:10:39]Write 417 bytes [12:10:39]NVStorageSaveData done [12:10:39]OFDSenderStorePacket done [12:10:39]KKMCreateOFDPacket done [12:10:39]NVStorageSaveData kkm_last_timestamp [12:10:39]File name is /storage/kkm_last_timestamp [12:10:39]Write 4 bytes [12:10:39]NVStorageSaveData done [12:10:39]ExternCall_PrintAddStr [12:10:39]wPrintStart [12:10:39]Write to MH i2c: 01 00 00 5A 3A 94 [12:10:39]Write i2c OK [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: 01 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: 01 07 00 [12:10:39]MH_I2C_Read... [12:10:39]Read from MH i2c: 01 07 00 5A 3A 00 00 00 00 00 FF 0F A9 [12:10:39]RasterBufferAndPrint [12:10:39]line Счет N : (3)140985 [12:10:39]line ИНН: 02508201610067 [12:10:39]line Контрольно-Кассовый Чек [12:10:39]line ПРОДАЖА [12:10:39]line Товар: 4700000160211 [12:10:39]line Вода Легенда 0,5л [12:10:39]line 1.000 * 40.00 [12:10:39]line = 40.00 [12:10:39]line НДС 12% НСП 1% [12:10:39]line > о реализуемом товаре [12:10:39]line Товар: 42069942 [12:10:39]line Жев Orbit White Fresh Mint [12:10:39]line 1.000 * 40.00 [12:10:39]line = 40.00 [12:10:39]line НДС 12% НСП 1% [12:10:39]line > о реализуемом товаре [12:10:39]line ИТОГО: 80.00 [12:10:39]line НСП 1% : 0.70 [12:10:39]line НДС 12% : 8.50 [12:10:39]line Наличными: 80.00 [12:10:39]line Безнал.: 0.00 [12:10:39]line Место: АЗС № 135 "Партнер Нефть" [12:10:39]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:10:39]line СНО: Общий режим [12:10:39]line Чек 36 16.05.2024 12:10 [12:10:39]line Смена: 44 ФФД: 1.0 [12:10:39]line ЗНМ: 0300000237 [12:10:39]line РНМ: 0000000000154221 [12:10:39]line Версия ККМ: v1.0 [12:10:39]line ФМ: 0000000000963259 [12:10:39]line ФД: 4976 [12:10:39]line ФПД: 176336601767811 [12:10:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T121045&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4976&fm=176336601767811&tin=02508201610067®Number=0000000000154221&sum=8000 [12:10:39]OFD Sender: Processing packet 4976 [packets to send 4, broken 3] [12:10:39]ProducePacketName [12:10:39]name=ofd_packets/00004976 [12:10:39]OFD Sender: To server: pG, [12:10:39]CommunicateWithHost lk.salyk.kg:30040 [12:10:39]ConnectInit lk.salyk.kg [12:10:39]line 0 [12:10:39]written 0, free lines is 4095 [12:10:40]Write to MH i2c: 01 00 00 88 3A C2 [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: 01 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: 01 07 00 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: 01 07 00 88 3A 00 00 00 00 00 0C 0C E1 [12:10:40]RasterBufferAndPrint [12:10:40]line [12:10:40]line [12:10:40]line [12:10:40]line [12:10:40]line [12:10:40]written 0, free lines is 3087 [12:10:40]MH_Cut [12:10:40]Write to MH i2c: D1 01 00 8F 3A 01 9B [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: D1 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: D1 01 00 [12:10:40]MH_I2C_Read... [12:10:40]Read from MH i2c: D1 01 00 8F 3A 00 9A [12:10:40]Write to MH i2c: 01 00 00 90 3A CA [12:10:40]Write i2c OK [12:10:40]MH_I2C_Read... [12:10:41]Connected sock=10 [12:10:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 83 01 00 00 E7 41 7B 01 41 BC 5A 03 01 00 03 00 6F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 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 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 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 24 00 00 00 F4 03 04 00 C5 F7 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 70 13 00 00 35 04 06 00 A0 60 90 82 5F 83 5B AC 97 BA F0 A7 E7 91 [12:10:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 15 12 47 00 5A 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 33 32 35 39 10 04 04 00 70 13 00 00 F4 03 04 00 89 A3 45 66 B6 04 01 00 00 D8 4A C1 34 6D B7 C8 67 [12:10:41]CommunicateWithHost err = 0 [12:10:41]CheckOFDResponse [12:10:41]1017 (14) - 77093643461234 [12:10:41]1041 (16) - 0000000000963259 [12:10:41]1040 (4) - 4976 [12:10:41]1012 (4) - 16.05.2024 06:11 [12:10:41]1206 (1) - 0 [12:10:41]OFD Sender: Remove packet 4976 [12:10:41]ProducePacketName [12:10:41]name=ofd_packets/00004976 [12:10:41]NVStorageDeleteData [12:10:41]*** Cut start [12:10:41]*** Partial cut [12:10:41]*** CUTSNS_PIN = 1 [12:10:41]*** CUTSNS_PIN = 0 [12:10:41]OFD Sender: No OFD packet to send [12:10:41]*** Brake cut motor [12:10:42]Read from MH i2c: 01 [12:10:42]MH_I2C_Read... [12:10:42]*** Stop cut motor [12:10:42]*** Cut end [12:10:42]Read from MH i2c: 01 07 00 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: 01 07 00 90 3A 00 00 00 00 00 FF 0F DF [12:10:42]process_action close_receipt done [12:10:42]requested_data is exist [12:10:42]produce_requested_data [12:10:42]requested_item fm.sn is exist - process it [12:10:42]wFMCommunicate request_size=4 [12:10:42]MH_SAM_APDU [12:10:42]CAPDU: 80 11 00 00 [12:10:42]Write to MH i2c: E2 08 00 91 3A 80 11 00 00 00 00 00 00 45 [12:10:42]Write i2c OK [12:10:42]MH_I2C_Read... [12:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:10:42]Read from MH i2c: E2 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: E2 17 00 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: E2 17 00 91 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 9A [12:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:10:42]wFMCommunicate OK [12:10:42]requested_item fd.num is exist - process it [12:10:42]SAM_PROTO_GetFieldsCounters [12:10:42]wFMCommunicate request_size=4 [12:10:42]MH_SAM_APDU [12:10:42]CAPDU: 80 13 00 00 [12:10:42]Write to MH i2c: E2 08 00 92 3A 80 13 00 00 00 00 00 00 48 [12:10:42]Write i2c OK [12:10:42]MH_I2C_Read... [12:10:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:10:42]Read from MH i2c: E2 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: E2 62 00 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: E2 62 00 92 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 70 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [12:10:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 70 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:10:42]wFMCommunicate OK [12:10:42]SAM_PROTO_GetFieldsCounters done [12:10:42]requested_item shift.num is exist - process it [12:10:42]requested_item shift.opened is exist - process it [12:10:42]req_shift_opened [12:10:42]FM_GetShiftState [12:10:42]SAM_PROTO_GetShiftState [12:10:42]wFMCommunicate request_size=4 [12:10:42]MH_SAM_APDU [12:10:42]CAPDU: 80 13 01 00 [12:10:42]Write to MH i2c: E2 08 00 93 3A 80 13 01 00 00 00 00 00 4A [12:10:42]Write i2c OK [12:10:42]MH_I2C_Read... [12:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:10:42]Read from MH i2c: E2 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: E2 0E 00 [12:10:42]MH_I2C_Read... [12:10:42]Read from MH i2c: E2 0E 00 93 3A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 56 [12:10:42]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:10:42]wFMCommunicate OK [12:10:42]SAM_PROTO_GetShiftState done [12:10:42]FM_GetShiftState done [12:10:42]req_shift_opened done [12:10:42]requested_item shift.open_date is exist - process it [12:10:42]req_shift_open_date [12:10:42]req_shift_open_date done [12:10:42]produce_requested_data done [12:10:42]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4976,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [12:10:42]process_action_free close_receipt [12:10:42]json_value_free [12:10:42]json_value_free done [12:10:42]process_json_proto returns [12:10:42]Send response to host [12:10:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4976,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [12:10:42]free response buf [12:10:42]execute_script done [12:10:42]execute_script returns [12:10:42]free content buf [12:10:42]Sock 8.Close socket [12:10:42]Sock 8.Thread stoped [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:52]OFD Sender: No OFD packet to send [12:12:57]OFD Sender: No OFD packet to send [12:13:02]OFD Sender: No OFD packet to send [12:13:07]OFD Sender: No OFD packet to send [12:13:12]OFD Sender: No OFD packet to send [12:13:17]OFD Sender: No OFD packet to send [12:13:22]OFD Sender: No OFD packet to send [12:13:27]OFD Sender: No OFD packet to send [12:13:32]OFD Sender: No OFD packet to send [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:02]OFD Sender: No OFD packet to send [12:14:07]OFD Sender: No OFD packet to send [12:14:12]OFD Sender: No OFD packet to send [12:14:17]OFD Sender: No OFD packet to send [12:14:22]OFD Sender: No OFD packet to send [12:14:27]OFD Sender: No OFD packet to send [12:14:32]OFD Sender: No OFD packet to send [12:14:37]OFD Sender: No OFD packet to send [12:14:42]OFD Sender: No OFD packet to send [12:14:47]OFD Sender: No OFD packet to send [12:14:52]OFD Sender: No OFD packet to send [12:14:57]OFD Sender: No OFD packet to send [12:15:02]OFD Sender: No OFD packet to send [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:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17: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:36]accept exits with 9 [12:20:36]New connection [12:20:36]New thread 3067587940 created [12:20:36]Thread 3067444580 joined [12:20:36]Waiting for new connection... [12:20:36] Sock 9.Parse request [12:20:36]Sock 9.Check first char [12:20:36]Sock 9.First char is OK [12:20:36]request: POST /json_proto HTTP/1.0 [12:20:36]Method: POST [12:20:36]URL: /json_proto [12:20:36]Method is POST - this is cgi request [12:20:36]url: /json_proto [12:20:36]query_string will be loaded in cgi processing [12:20:36]execute_cgi json_proto POST (null) [12:20:36]execute_cgi path=json_proto method=POST [12:20:36]POST find Content-Length [12:20:36]Host: 172.17.44.4:8080 [12:20:36]Content-Length: 706 [12:20:36]Content-Type: application/json [12:20:36] [12:20:36]POST finish read [12:20:36]Found Content-Length = 706 [12:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140986", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:36]execute_script... [12:20: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)140986", "tax_sys" : 0, "items" : [ { "code": "4600338007564", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u043C\u0443\u043B\u044C\u0442\u0438\u0444\u0440\u0443\u043A\u0442 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:36]POST & json_proto [12:20:36]process_json_proto [12:20:36]json parsed OK: [12:20:36]protocol is kg_v1.0 [12:20:36]action value=close_receipt [12:20:36]process_action close_receipt [12:20:36]cmd_close_receipt [12:20:36]MH_GetDate [12:20:36]Write to MH i2c: F0 00 00 94 3A BD [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 09 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: F0 09 00 94 3A 00 1B FA 45 66 6C E9 28 66 69 [12:20:36]GetLastDocTimeStamp 1715861445 [12:20:36]current date 1715862043 [12:20:36]FM_GetShiftState [12:20:36]SAM_PROTO_GetShiftState [12:20:36]wFMCommunicate request_size=4 [12:20:36]MH_SAM_APDU [12:20:36]CAPDU: 80 13 01 00 [12:20:36]Write to MH i2c: E2 08 00 95 3A 80 13 01 00 00 00 00 00 4C [12:20:36]Write i2c OK [12:20:36]MH_I2C_Read... [12:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:36]Read from MH i2c: E2 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 0E 00 [12:20:36]MH_I2C_Read... [12:20:36]Read from MH i2c: E2 0E 00 95 3A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 58 [12:20:36]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:20:36]wFMCommunicate OK [12:20:36]SAM_PROTO_GetShiftState done [12:20:36]FM_GetShiftState done [12:20:36]opened in 1715818246 [12:20:36]opened+sec_in_day 1715904646 [12:20:36]quantity*price = 6500 [12:20:36]sum+1 = 6501 [12:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 37 16.05.2024 12:20 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4977 ФПД: 62136179152571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T122043&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4977&fm=62136179152571&tin=02508201610067®Number=0000000000154221&sum=6500 0 [12:20:37]StoreToDocumentArchive [12:20:37]shift 44 fd 4977 [12:20:37]save to /storage/0044/doc_00004977 [12:20:37]save last doc name /storage/0044/doc_00004977 to /storage/kkm_last_doc_name [12:20:37]save OK [12:20:37]Clear old archive folders... [12:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=297 [12:20:37]tlvbuf is 00DD4F20 [12:20:37]SAM_PROTO_ClearQueue [12:20:37]wFMCommunicate request_size=4 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 09 00 00 [12:20:37]Write to MH i2c: E2 08 00 A2 3A 80 09 00 00 00 00 00 00 4E [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 A2 3A 00 90 00 50 [12:20:37]RAPDU: 90 00 [12:20:37]wFMCommunicate OK [12:20:37]SAM_PROTO_ClearQueue done [12:20:37]KKMCreateOFDPacket [12:20:37]OFDProtocolAddRootSTLVToBuf [12:20:37]FM_MakeSignedData [12:20:37]FM_MakeSignedData [12:20:37]SAM_PROTO_SignData [12:20:37]wFMCommunicate request_size=4 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 0D 01 02 [12:20:37]Write to MH i2c: E2 08 00 A3 3A 80 0D 01 02 00 00 00 00 56 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:37]Read from MH i2c: E2 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 [12:20:37]MH_I2C_Read... [12:20:37]Read from MH i2c: E2 03 00 A3 3A 00 90 00 51 [12:20:37]RAPDU: 90 00 [12:20:37]wFMCommunicate OK [12:20:37]wFMCommunicate request_size=255 [12:20:37]MH_SAM_APDU [12:20:37]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 1B FA 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [12:20:37]Write to MH i2c: E2 02 01 A4 3A 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 1B FA 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 41 [12:20:37]Write i2c OK [12:20:37]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 A4 3A 00 90 00 52 [12:20:38]RAPDU: 90 00 [12:20:38]wFMCommunicate OK [12:20:38]wFMCommunicate request_size=56 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 71 13 00 00 35 04 06 00 38 83 34 E2 D6 BB [12:20:38]Write to MH i2c: E2 3B 00 A5 3A 80 0D 02 02 33 00 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 71 13 00 00 35 04 06 00 38 83 34 E2 D6 BB 00 00 C2 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 03 00 A5 3A 00 90 00 53 [12:20:38]RAPDU: 90 00 [12:20:38]wFMCommunicate OK [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 0D 03 02 [12:20:38]Write to MH i2c: E2 08 00 A6 3A 80 0D 03 02 00 00 00 00 5B [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 0B 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 0B 00 A6 3A 00 BC 5D 57 4D 78 48 FA 69 90 00 3C [12:20:38]RAPDU: BC 5D 57 4D 78 48 FA 69 90 00 [12:20:38]wFMCommunicate OK [12:20:38]SAM_PROTO_SignData done [12:20:38]FM_MakeSignedData done [12:20:38]CreateOFDProtocolMessage [12:20:38]wFMCommunicate request_size=4 [12:20:38]MH_SAM_APDU [12:20:38]CAPDU: 80 11 00 00 [12:20:38]Write to MH i2c: E2 08 00 A7 3A 80 11 00 00 00 00 00 00 5B [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:38]Read from MH i2c: E2 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 17 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: E2 17 00 A7 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 B0 [12:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:20:38]wFMCommunicate OK [12:20:38]CreateOFDProtocolMessage done [12:20:38]OFDSenderStorePacket 4977 [12:20:38]StoreOFDPacket docnum=4977 [12:20:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 3D 01 00 00 7F 91 35 01 CD 76 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 1B FA 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 71 13 00 00 35 04 06 00 38 83 34 E2 D6 BB BC 5D 57 4D 78 48 FA 69 [12:20:38]CheckFolder [12:20:38]dirname=/storage/ofd_packets [12:20:38]CheckFolder done [12:20:38]ProducePacketName [12:20:38]name=ofd_packets/00004977 [12:20:38]NVStorageSaveData ofd_packets/00004977 [12:20:38]File name is /storage/ofd_packets/00004977 [12:20:38]Write 347 bytes [12:20:38]NVStorageSaveData done [12:20:38]OFDSenderStorePacket done [12:20:38]KKMCreateOFDPacket done [12:20:38]NVStorageSaveData kkm_last_timestamp [12:20:38]File name is /storage/kkm_last_timestamp [12:20:38]Write 4 bytes [12:20:38]NVStorageSaveData done [12:20:38]ExternCall_PrintAddStr [12:20:38]wPrintStart [12:20:38]Write to MH i2c: 01 00 00 A8 3A E2 [12:20:38]Write i2c OK [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 [12:20:38]MH_I2C_Read... [12:20:38]Read from MH i2c: 01 07 00 A8 3A 00 00 00 00 00 FF 0F F7 [12:20:38]RasterBufferAndPrint [12:20:38]line Счет N : (3)140986 [12:20:38]line ИНН: 02508201610067 [12:20:38]line Контрольно-Кассовый Чек [12:20:38]line ПРОДАЖА [12:20:38]line Товар: 4600338007564 [12:20:38]line Сок Фруто НЯНЯ мультифрукт 0,2л [12:20:38]line 1.000 * 65.00 [12:20:38]line = 65.00 [12:20:38]line НДС 12% НСП 1% [12:20:38]line > о реализуемом товаре [12:20:38]line ИТОГО: 65.00 [12:20:38]line НСП 1% : 0.57 [12:20:38]line НДС 12% : 6.90 [12:20:38]line Наличными: 65.00 [12:20:38]line Безнал.: 0.00 [12:20:38]line Место: АЗС № 135 "Партнер Нефть" [12:20:38]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:20:38]line СНО: Общий режим [12:20:38]line Чек 37 16.05.2024 12:20 [12:20:38]line Смена: 44 ФФД: 1.0 [12:20:38]line ЗНМ: 0300000237 [12:20:38]line РНМ: 0000000000154221 [12:20:38]line Версия ККМ: v1.0 [12:20:38]line ФМ: 0000000000963259 [12:20:38]line ФД: 4977 [12:20:38]line ФПД: 62136179152571 [12:20:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T122043&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4977&fm=62136179152571&tin=02508201610067®Number=0000000000154221&sum=6500 [12:20:38]line 0 [12:20:38]OFD Sender: Processing packet 4977 [packets to send 4, broken 3] [12:20:38]ProducePacketName [12:20:38]name=ofd_packets/00004977 [12:20:38]OFD Sender: To server: pG, [12:20:38]CommunicateWithHost lk.salyk.kg:30040 [12:20:38]ConnectInit lk.salyk.kg [12:20:38]written 0, free lines is 4095 [12:20:38]Connected sock=10 [12:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 3D 01 00 00 7F 91 35 01 CD 76 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 35 36 34 06 04 37 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D0 BC D1 83 D0 BB D1 8C D1 82 D0 B8 D1 84 D1 80 D1 83 D0 BA D1 82 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 1B FA 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 71 13 00 00 35 04 06 00 38 83 34 E2 D6 BB BC 5D 57 4D 78 48 FA 69 [12:20:39]Write to MH i2c: 01 00 00 D1 3A 0B [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: 01 07 00 D1 3A 00 00 00 00 00 7D 0C 9B [12:20:39]RasterBufferAndPrint [12:20:39]line [12:20:39]line [12:20:39]line [12:20:39]line [12:20:39]line [12:20:39]written 0, free lines is 3203 [12:20:39]MH_Cut [12:20:39]Write to MH i2c: D1 01 00 D8 3A 01 E4 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D1 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D1 01 00 [12:20:39]MH_I2C_Read... [12:20:39]Read from MH i2c: D1 01 00 D8 3A 00 E3 [12:20:39]Write to MH i2c: 01 00 00 D9 3A 13 [12:20:39]Write i2c OK [12:20:39]MH_I2C_Read... [12:20:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 C2 7B 47 00 64 A6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 71 13 00 00 F4 03 04 00 DF A5 45 66 B6 04 01 00 00 BC 30 6B 66 BD 03 09 23 [12:20:39]CommunicateWithHost err = 0 [12:20:39]CheckOFDResponse [12:20:39]1017 (14) - 77093643461234 [12:20:39]1041 (16) - 0000000000963259 [12:20:39]1040 (4) - 4977 [12:20:39]1012 (4) - 16.05.2024 06:21 [12:20:39]1206 (1) - 0 [12:20:39]OFD Sender: Remove packet 4977 [12:20:39]ProducePacketName [12:20:39]name=ofd_packets/00004977 [12:20:39]NVStorageDeleteData [12:20:39]OFD Sender: No OFD packet to send [12:20:40]*** Cut start [12:20:40]*** Partial cut [12:20:40]*** CUTSNS_PIN = 1 [12:20:40]*** CUTSNS_PIN = 0 [12:20:40]*** Brake cut motor [12:20:40]Read from MH i2c: 01 [12:20:40]MH_I2C_Read... [12:20:40]*** Stop cut motor [12:20:40]*** Cut end [12:20:40]Read from MH i2c: 01 07 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: 01 07 00 D9 3A 00 00 00 00 00 FF 0F 28 [12:20:40]process_action close_receipt done [12:20:40]requested_data is exist [12:20:40]produce_requested_data [12:20:40]requested_item fm.sn is exist - process it [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 11 00 00 [12:20:40]Write to MH i2c: E2 08 00 DA 3A 80 11 00 00 00 00 00 00 8E [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:40]Read from MH i2c: E2 17 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 17 00 DA 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 E3 [12:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:20:40]wFMCommunicate OK [12:20:40]requested_item fd.num is exist - process it [12:20:40]SAM_PROTO_GetFieldsCounters [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 13 00 00 [12:20:40]Write to MH i2c: E2 08 00 DB 3A 80 13 00 00 00 00 00 00 91 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 62 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 62 00 DB 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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 71 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [12:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 71 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:40]wFMCommunicate OK [12:20:40]SAM_PROTO_GetFieldsCounters done [12:20:40]requested_item shift.num is exist - process it [12:20:40]requested_item shift.opened is exist - process it [12:20:40]req_shift_opened [12:20:40]FM_GetShiftState [12:20:40]SAM_PROTO_GetShiftState [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 13 01 00 [12:20:40]Write to MH i2c: E2 08 00 DC 3A 80 13 01 00 00 00 00 00 93 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0E 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0E 00 DC 3A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 9F [12:20:41]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:20:41]wFMCommunicate OK [12:20:41]SAM_PROTO_GetShiftState done [12:20:41]FM_GetShiftState done [12:20:41]req_shift_opened done [12:20:41]requested_item shift.open_date is exist - process it [12:20:41]req_shift_open_date [12:20:41]req_shift_open_date done [12:20:41]produce_requested_data done [12:20:41]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4977,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [12:20:41]process_action_free close_receipt [12:20:41]json_value_free [12:20:41]json_value_free done [12:20:41]process_json_proto returns [12:20:41]Send response to host [12:20:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4977,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [12:20:41]free response buf [12:20:41]execute_script done [12:20:41]execute_script returns [12:20:41]free content buf [12:20:41]Sock 9.Close socket [12:20:41]Sock 9.Thread stoped [12:20:44]OFD Sender: No OFD packet to send [12:20:49]OFD Sender: No OFD packet to send [12:20:54]OFD Sender: No OFD packet to send [12:20:59]OFD Sender: No OFD packet to send [12:21:04]OFD Sender: No OFD packet to send [12:21:09]OFD Sender: No OFD packet to send [12:21:14]OFD Sender: No OFD packet to send [12:21:19]OFD Sender: No OFD packet to send [12:21:24]OFD Sender: No OFD packet to send [12:21:29]OFD Sender: No OFD packet to send [12:21:34]OFD Sender: No OFD packet to send [12:21:39]OFD Sender: No OFD packet to send [12:21:44]OFD Sender: No OFD packet to send [12:21:49]OFD Sender: No OFD packet to send [12:21:54]OFD Sender: No OFD packet to send [12:21:59]OFD Sender: No OFD packet to send [12:22:04]OFD Sender: No OFD packet to send [12:22:09]OFD Sender: No OFD packet to send [12:22:14]OFD Sender: No OFD packet to send [12:22:19]OFD Sender: No OFD packet to send [12:22:24]OFD Sender: No OFD packet to send [12:22:29]OFD Sender: No OFD packet to send [12:22:34]OFD Sender: No OFD packet to send [12:22:39]OFD Sender: No OFD packet to send [12:22:44]OFD Sender: No OFD packet to send [12:22:49]OFD Sender: No OFD packet to send [12:22:54]OFD Sender: No OFD packet to send [12:22:59]OFD Sender: No OFD packet to send [12:23:04]OFD Sender: No OFD packet to send [12:23:09]OFD Sender: No OFD packet to send [12:23:14]OFD Sender: No OFD packet to send [12:23:19]OFD Sender: No OFD packet to send [12:23:24]OFD Sender: No OFD packet to send [12:23:29]OFD Sender: No OFD packet to send [12:23:34]OFD Sender: No OFD packet to send [12:23:39]OFD Sender: No OFD packet to send [12:23:44]OFD Sender: No OFD packet to send [12:23:49]OFD Sender: No OFD packet to send [12:23:54]OFD Sender: No OFD packet to send [12:23:59]OFD Sender: No OFD packet to send [12:24:04]OFD Sender: No OFD packet to send [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]OFD Sender: No OFD packet to send [12:26:44]OFD Sender: No OFD packet to send [12:26:49]OFD Sender: No OFD packet to send [12:26:54]OFD Sender: No OFD packet to send [12:26:59]OFD Sender: No OFD packet to send [12:27:04]OFD Sender: No OFD packet to send [12:27:09]OFD Sender: No OFD packet to send [12:27:14]OFD Sender: No OFD packet to send [12:27:19]OFD Sender: No OFD packet to send [12:27:24]OFD Sender: No OFD packet to send [12:27:29]OFD Sender: No OFD packet to send [12:27:34]OFD Sender: No OFD packet to send [12:27:39]OFD Sender: No OFD packet to send [12:27:44]OFD Sender: No OFD packet to send [12:27:49]OFD Sender: No OFD packet to send [12:27:54]OFD Sender: No OFD packet to send [12:27:59]OFD Sender: No OFD packet to send [12:28:04]OFD Sender: No OFD packet to send [12:28:09]OFD Sender: No OFD packet to send [12:28:14]OFD Sender: No OFD packet to send [12:28:19]OFD Sender: No OFD packet to send [12:28:24]OFD Sender: No OFD packet to send [12:28:29]OFD Sender: No OFD packet to send [12:28:34]OFD Sender: No OFD packet to send [12:28:39]OFD Sender: No OFD packet to send [12:28:44]OFD Sender: No OFD packet to send [12:28: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:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33: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:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:16]accept exits with 8 [12:41:16]New connection [12:41:16]New thread 3067444580 created [12:41:16]Thread 3067587940 joined [12:41:16]Waiting for new connection... [12:41:16] Sock 8.Parse request [12:41:16]Sock 8.Check first char [12:41:16]Sock 8.First char is OK [12:41:16]request: POST /json_proto HTTP/1.0 [12:41:16]Method: POST [12:41:16]URL: /json_proto [12:41:16]Method is POST - this is cgi request [12:41:16]url: /json_proto [12:41:16]query_string will be loaded in cgi processing [12:41:16]execute_cgi json_proto POST (null) [12:41:16]execute_cgi path=json_proto method=POST [12:41:16]POST find Content-Length [12:41:16]Host: 172.17.44.4:8080 [12:41:16]Content-Length: 830 [12:41:16]Content-Type: application/json [12:41:16] [12:41:16]POST finish read [12:41:16]Found Content-Length = 830 [12:41:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 9.570, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:16]execute_script... [12:41:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 9.570, "sum" : 700.52, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.52 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:41:16]POST & json_proto [12:41:16]process_json_proto [12:41:16]json parsed OK: [12:41:16]protocol is kg_v1.0 [12:41:16]action value=close_receipt [12:41:16]process_action close_receipt [12:41:16]cmd_close_receipt [12:41:16]MH_GetDate [12:41:16]Write to MH i2c: F0 00 00 DD 3A 06 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: F0 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: F0 09 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: F0 09 00 DD 3A 00 F3 FE 45 66 6C E9 28 66 8E [12:41:16]GetLastDocTimeStamp 1715862043 [12:41:16]current date 1715863283 [12:41:16]FM_GetShiftState [12:41:16]SAM_PROTO_GetShiftState [12:41:16]wFMCommunicate request_size=4 [12:41:16]MH_SAM_APDU [12:41:16]CAPDU: 80 13 01 00 [12:41:16]Write to MH i2c: E2 08 00 DE 3A 80 13 01 00 00 00 00 00 95 [12:41:16]Write i2c OK [12:41:16]MH_I2C_Read... [12:41:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:16]Read from MH i2c: E2 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 0E 00 [12:41:16]MH_I2C_Read... [12:41:16]Read from MH i2c: E2 0E 00 DE 3A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A1 [12:41:16]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:41:16]wFMCommunicate OK [12:41:16]SAM_PROTO_GetShiftState done [12:41:16]FM_GetShiftState done [12:41:16]opened in 1715818246 [12:41:16]opened+sec_in_day 1715904646 [12:41:16]quantity*price = 70052 [12:41:16]sum+1 = 70053 [12:41:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.52 НСП 1% : 6.20 НДС 12% : 74.39 Наличными: 0.00 Безнал.: 700.52 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 38 16.05.2024 12:41 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: Демир КИ Банк ФМ: 0000000000963259 ФД: 4978 ФПД: 99688004964055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T124124&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4978&fm=99688004964055&tin=02508201610067®Number=0000000000154221&sum=70052 [12:41:17]StoreToDocumentArchive [12:41:17]shift 44 fd 4978 [12:41:17]save to /storage/0044/doc_00004978 [12:41:17]save last doc name /storage/0044/doc_00004978 to /storage/kkm_last_doc_name [12:41:17]save OK [12:41:17]Clear old archive folders... [12:41:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:41:17]tlvbuf is 00D36340 [12:41:17]SAM_PROTO_ClearQueue [12:41:17]wFMCommunicate request_size=4 [12:41:17]MH_SAM_APDU [12:41:17]CAPDU: 80 09 00 00 [12:41:17]Write to MH i2c: E2 08 00 EB 3A 80 09 00 00 00 00 00 00 97 [12:41:17]Write i2c OK [12:41:17]MH_I2C_Read... [12:41:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:41:17]Read from MH i2c: E2 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 03 00 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 03 00 EB 3A 00 90 00 99 [12:41:17]RAPDU: 90 00 [12:41:17]wFMCommunicate OK [12:41:17]SAM_PROTO_ClearQueue done [12:41:17]KKMCreateOFDPacket [12:41:17]OFDProtocolAddRootSTLVToBuf [12:41:17]FM_MakeSignedData [12:41:17]FM_MakeSignedData [12:41:17]SAM_PROTO_SignData [12:41:17]wFMCommunicate request_size=4 [12:41:17]MH_SAM_APDU [12:41:17]CAPDU: 80 0D 01 02 [12:41:17]Write to MH i2c: E2 08 00 EC 3A 80 0D 01 02 00 00 00 00 9F [12:41:17]Write i2c OK [12:41:17]MH_I2C_Read... [12:41:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:41:17]Read from MH i2c: E2 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 03 00 [12:41:17]MH_I2C_Read... [12:41:17]Read from MH i2c: E2 03 00 EC 3A 00 90 00 9A [12:41:17]RAPDU: 90 00 [12:41:17]wFMCommunicate OK [12:41:17]wFMCommunicate request_size=255 [12:41:17]MH_SAM_APDU [12:41:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F4 FE 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 72 13 00 00 35 04 06 00 5A [12:41:17]Write to MH i2c: E2 02 01 ED 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F4 FE 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 72 13 00 00 35 04 06 00 5A 00 00 6A [12:41:17]Write i2c OK [12:41:17]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 ED 3A 00 90 00 9B [12:41:18]RAPDU: 90 00 [12:41:18]wFMCommunicate OK [12:41:18]wFMCommunicate request_size=10 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 0D 02 02 05 AA 6C 1F CE D7 [12:41:18]Write to MH i2c: E2 0D 00 EE 3A 80 0D 02 02 05 00 AA 6C 1F CE D7 00 00 86 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 03 00 EE 3A 00 90 00 9C [12:41:18]RAPDU: 90 00 [12:41:18]wFMCommunicate OK [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 0D 03 02 [12:41:18]Write to MH i2c: E2 08 00 EF 3A 80 0D 03 02 00 00 00 00 A4 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 0B 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 0B 00 EF 3A 00 8D 1A ED 4B BB E2 F6 65 90 00 7C [12:41:18]RAPDU: 8D 1A ED 4B BB E2 F6 65 90 00 [12:41:18]wFMCommunicate OK [12:41:18]SAM_PROTO_SignData done [12:41:18]FM_MakeSignedData done [12:41:18]CreateOFDProtocolMessage [12:41:18]wFMCommunicate request_size=4 [12:41:18]MH_SAM_APDU [12:41:18]CAPDU: 80 11 00 00 [12:41:18]Write to MH i2c: E2 08 00 F0 3A 80 11 00 00 00 00 00 00 A4 [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:18]Read from MH i2c: E2 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 17 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: E2 17 00 F0 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F9 [12:41:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:41:18]wFMCommunicate OK [12:41:18]CreateOFDProtocolMessage done [12:41:18]OFDSenderStorePacket 4978 [12:41:18]StoreOFDPacket docnum=4978 [12:41:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 58 B2 07 01 DB C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F4 FE 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 72 13 00 00 35 04 06 00 5A AA 6C 1F CE D7 8D 1A ED 4B BB E2 F6 65 [12:41:18]CheckFolder [12:41:18]dirname=/storage/ofd_packets [12:41:18]CheckFolder done [12:41:18]ProducePacketName [12:41:18]name=ofd_packets/00004978 [12:41:18]NVStorageSaveData ofd_packets/00004978 [12:41:18]File name is /storage/ofd_packets/00004978 [12:41:18]Write 301 bytes [12:41:18]NVStorageSaveData done [12:41:18]OFDSenderStorePacket done [12:41:18]KKMCreateOFDPacket done [12:41:18]NVStorageSaveData kkm_last_timestamp [12:41:18]File name is /storage/kkm_last_timestamp [12:41:18]Write 4 bytes [12:41:18]NVStorageSaveData done [12:41:18]ExternCall_PrintAddStr [12:41:18]wPrintStart [12:41:18]Write to MH i2c: 01 00 00 F1 3A 2B [12:41:18]OFD Sender: Processing packet 4978 [packets to send 4, broken 3] [12:41:18]ProducePacketName [12:41:18]name=ofd_packets/00004978 [12:41:18]OFD Sender: To server: pG, [12:41:18]CommunicateWithHost lk.salyk.kg:30040 [12:41:18]ConnectInit lk.salyk.kg [12:41:18]Write i2c OK [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: 01 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: 01 07 00 [12:41:18]MH_I2C_Read... [12:41:18]Read from MH i2c: 01 07 00 F1 3A 00 00 00 00 00 FF 0F 40 [12:41:18]RasterBufferAndPrint [12:41:18]line Счет N : (1)1992790 [12:41:18]line ИНН: 02508201610067 [12:41:18]line Контрольно-Кассовый Чек [12:41:18]line ПРОДАЖА [12:41:18]line ТРК (МРК, ГНК) : 42 [12:41:18]line Товар: 2710124500 [12:41:18]line Аи-95-К-5 [12:41:18]line 9.570 * 73.20 [12:41:18]line = 700.52 [12:41:18]line НДС 12% НСП 1% [12:41:18]line > о реализуемом товаре [12:41:18]line ИТОГО: 700.52 [12:41:18]line НСП 1% : 6.20 [12:41:18]line НДС 12% : 74.39 [12:41:18]line Наличными: 0.00 [12:41:18]line Безнал.: 700.52 [12:41:18]line Место: АЗС № 135 "Партнер Нефть" [12:41:18]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:41:18]line СНО: Общий режим [12:41:18]line Чек 38 16.05.2024 12:41 [12:41:18]line Смена: 44 ФФД: 1.0 [12:41:18]line ЗНМ: 0300000237 [12:41:18]line РНМ: 0000000000154221 [12:41:18]line Версия ККМ: v1.0 [12:41:18]line Платежная система: Демир КИ Банк [12:41:18]line ФМ: 0000000000963259 [12:41:18]line ФД: 4978 [12:41:18]line ФПД: 99688004964055 [12:41:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T124124&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4978&fm=99688004964055&tin=02508201610067®Number=0000000000154221&sum=70052 [12:41:18]Connected sock=10 [12:41:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 58 B2 07 01 DB C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 25 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 A4 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A4 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 F4 FE 45 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 72 13 00 00 35 04 06 00 5A AA 6C 1F CE D7 8D 1A ED 4B BB E2 F6 65 [12:41:18]written 0, free lines is 4095 [12:41:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 33 1F 47 00 96 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 72 13 00 00 F4 03 04 00 B7 AA 45 66 B6 04 01 00 00 39 B6 A4 0D F5 CB 6F FA [12:41:18]CommunicateWithHost err = 0 [12:41:18]CheckOFDResponse [12:41:18]1017 (14) - 77093643461234 [12:41:18]1041 (16) - 0000000000963259 [12:41:18]1040 (4) - 4978 [12:41:18]1012 (4) - 16.05.2024 06:41 [12:41:18]1206 (1) - 0 [12:41:18]OFD Sender: Remove packet 4978 [12:41:18]ProducePacketName [12:41:18]name=ofd_packets/00004978 [12:41:18]NVStorageDeleteData [12:41:19]Write to MH i2c: 01 00 00 1B 3B 56 [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 07 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: 01 07 00 1B 3B 00 00 00 00 00 7D 0C E6 [12:41:19]RasterBufferAndPrint [12:41:19]line [12:41:19]line [12:41:19]line [12:41:19]line [12:41:19]line [12:41:19]written 0, free lines is 3200 [12:41:19]MH_Cut [12:41:19]Write to MH i2c: D1 01 00 22 3B 01 2F [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: D1 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: D1 01 00 [12:41:19]MH_I2C_Read... [12:41:19]Read from MH i2c: D1 01 00 22 3B 00 2E [12:41:19]Write to MH i2c: 01 00 00 23 3B 5E [12:41:19]Write i2c OK [12:41:19]MH_I2C_Read... [12:41:19]OFD Sender: No OFD packet to send [12:41:20]*** Cut start [12:41:20]*** Partial cut [12:41:20]*** CUTSNS_PIN = 1 [12:41:20]*** CUTSNS_PIN = 0 [12:41:20]*** Brake cut motor [12:41:20]Read from MH i2c: 01 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: 01 07 00 [12:41:20]MH_I2C_Read... [12:41:20]*** Stop cut motor [12:41:20]*** Cut end [12:41:20]Read from MH i2c: 01 07 00 23 3B 00 00 00 00 00 FF 0F 73 [12:41:20]process_action close_receipt done [12:41:20]requested_data is exist [12:41:20]produce_requested_data [12:41:20]requested_item fm.sn is exist - process it [12:41:20]wFMCommunicate request_size=4 [12:41:20]MH_SAM_APDU [12:41:20]CAPDU: 80 11 00 00 [12:41:20]Write to MH i2c: E2 08 00 24 3B 80 11 00 00 00 00 00 00 D9 [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:41:20]Read from MH i2c: E2 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 17 00 [12:41:20]MH_I2C_Read... [12:41:20]Read from MH i2c: E2 17 00 24 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 2E [12:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:41:20]wFMCommunicate OK [12:41:20]requested_item fd.num is exist - process it [12:41:20]SAM_PROTO_GetFieldsCounters [12:41:20]wFMCommunicate request_size=4 [12:41:20]MH_SAM_APDU [12:41:20]CAPDU: 80 13 00 00 [12:41:20]Write to MH i2c: E2 08 00 25 3B 80 13 00 00 00 00 00 00 DC [12:41:20]Write i2c OK [12:41:20]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 62 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 62 00 25 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 72 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [12:41:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 72 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:41:21]wFMCommunicate OK [12:41:21]SAM_PROTO_GetFieldsCounters done [12:41:21]requested_item shift.num is exist - process it [12:41:21]requested_item shift.opened is exist - process it [12:41:21]req_shift_opened [12:41:21]FM_GetShiftState [12:41:21]SAM_PROTO_GetShiftState [12:41:21]wFMCommunicate request_size=4 [12:41:21]MH_SAM_APDU [12:41:21]CAPDU: 80 13 01 00 [12:41:21]Write to MH i2c: E2 08 00 26 3B 80 13 01 00 00 00 00 00 DE [12:41:21]Write i2c OK [12:41:21]MH_I2C_Read... [12:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:41:21]Read from MH i2c: E2 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 0E 00 [12:41:21]MH_I2C_Read... [12:41:21]Read from MH i2c: E2 0E 00 26 3B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 EA [12:41:21]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:41:21]wFMCommunicate OK [12:41:21]SAM_PROTO_GetShiftState done [12:41:21]FM_GetShiftState done [12:41:21]req_shift_opened done [12:41:21]requested_item shift.open_date is exist - process it [12:41:21]req_shift_open_date [12:41:21]req_shift_open_date done [12:41:21]produce_requested_data done [12:41:21]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4978,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [12:41:21]process_action_free close_receipt [12:41:21]json_value_free [12:41:21]json_value_free done [12:41:21]process_json_proto returns [12:41:21]Send response to host [12:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4978,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [12:41:21]free response buf [12:41:21]execute_script done [12:41:21]execute_script returns [12:41:21]free content buf [12:41:21]Sock 8.Close socket [12:41:21]Sock 8.Thread stoped [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]OFD Sender: No OFD packet to send [12:42:29]OFD Sender: No OFD packet to send [12:42:34]OFD Sender: No OFD packet to send [12:42:39]OFD Sender: No OFD packet to send [12:42:44]OFD Sender: No OFD packet to send [12:42:49]OFD Sender: No OFD packet to send [12:42:54]OFD Sender: No OFD packet to send [12:42:59]OFD Sender: No OFD packet to send [12:43:04]OFD Sender: No OFD packet to send [12:43:09]OFD Sender: No OFD packet to send [12:43:14]OFD Sender: No OFD packet to send [12:43:19]OFD Sender: No OFD packet to send [12:43:24]OFD Sender: No OFD packet to send [12:43:29]OFD Sender: No OFD packet to send [12:43:34]OFD Sender: No OFD packet to send [12:43:39]OFD Sender: No OFD packet to send [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:44:04]OFD Sender: No OFD packet to send [12:44:09]OFD Sender: No OFD packet to send [12:44:14]OFD Sender: No OFD packet to send [12:44:19]OFD Sender: No OFD packet to send [12:44:24]OFD Sender: No OFD packet to send [12:44:29]OFD Sender: No OFD packet to send [12:44:34]OFD Sender: No OFD packet to send [12:44:39]OFD Sender: No OFD packet to send [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:14]OFD Sender: No OFD packet to send [12:47:19]OFD Sender: No OFD packet to send [12:47:24]OFD Sender: No OFD packet to send [12:47:29]OFD Sender: No OFD packet to send [12:47:34]accept exits with 9 [12:47:34]New connection [12:47:34]New thread 3067587940 created [12:47:34]Thread 3067444580 joined [12:47:34]Waiting for new connection... [12:47:34] Sock 9.Parse request [12:47:34]Sock 9.Check first char [12:47:34]Sock 9.First char is OK [12:47:34]request: POST /json_proto HTTP/1.0 [12:47:34]Method: POST [12:47:34]URL: /json_proto [12:47:34]Method is POST - this is cgi request [12:47:34]url: /json_proto [12:47:34]query_string will be loaded in cgi processing [12:47:34]execute_cgi json_proto POST (null) [12:47:34]execute_cgi path=json_proto method=POST [12:47:34]POST find Content-Length [12:47:34]Host: 172.17.44.4:8080 [12:47:34]Content-Length: 680 [12:47:34]Content-Type: application/json [12:47:34] [12:47:34]POST finish read [12:47:34]Found Content-Length = 680 [12:47:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140987", "tax_sys" : 0, "items" : [ { "code": "4620017450726", "name": "\u041A\u0430\u0440. \u0421\u0442\u0440\u0430\u0439\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 11.3\u0433/50\u0448\u0442", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:34]execute_script... [12:47: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)140987", "tax_sys" : 0, "items" : [ { "code": "4620017450726", "name": "\u041A\u0430\u0440. \u0421\u0442\u0440\u0430\u0439\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 11.3\u0433/50\u0448\u0442", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:47:34]POST & json_proto [12:47:34]process_json_proto [12:47:34]json parsed OK: [12:47:34]protocol is kg_v1.0 [12:47:34]action value=close_receipt [12:47:34]process_action close_receipt [12:47:34]cmd_close_receipt [12:47:34]MH_GetDate [12:47:34]Write to MH i2c: F0 00 00 27 3B 51 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: F0 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: F0 09 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: F0 09 00 27 3B 00 6D 00 46 66 6C E9 28 66 56 [12:47:34]GetLastDocTimeStamp 1715863284 [12:47:34]current date 1715863661 [12:47:34]FM_GetShiftState [12:47:34]SAM_PROTO_GetShiftState [12:47:34]wFMCommunicate request_size=4 [12:47:34]MH_SAM_APDU [12:47:34]CAPDU: 80 13 01 00 [12:47:34]Write to MH i2c: E2 08 00 28 3B 80 13 01 00 00 00 00 00 E0 [12:47:34]Write i2c OK [12:47:34]MH_I2C_Read... [12:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:34]Read from MH i2c: E2 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 0E 00 [12:47:34]MH_I2C_Read... [12:47:34]Read from MH i2c: E2 0E 00 28 3B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 EC [12:47:34]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:47:34]wFMCommunicate OK [12:47:34]SAM_PROTO_GetShiftState done [12:47:34]FM_GetShiftState done [12:47:34]opened in 1715818246 [12:47:34]opened+sec_in_day 1715904646 [12:47:34]quantity*price = 1000 [12:47:34]sum+1 = 1001 [12:47:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 39 16.05.2024 12:47 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4979 ФПД: 93236250436042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T124741&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4979&fm=93236250436042&tin=02508201610067®Number=0000000000154221&sum=1000 0 [12:47:35]StoreToDocumentArchive [12:47:35]shift 44 fd 4979 [12:47:35]save to /storage/0044/doc_00004979 [12:47:35]save last doc name /storage/0044/doc_00004979 to /storage/kkm_last_doc_name [12:47:35]save OK [12:47:35]Clear old archive folders... [12:47:35]ProcessDocumentItem done err = 0, tmpTLVsize=291 [12:47:35]tlvbuf is 00D72760 [12:47:35]SAM_PROTO_ClearQueue [12:47:35]wFMCommunicate request_size=4 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 09 00 00 [12:47:35]Write to MH i2c: E2 08 00 35 3B 80 09 00 00 00 00 00 00 E2 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 03 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 03 00 35 3B 00 90 00 E4 [12:47:35]RAPDU: 90 00 [12:47:35]wFMCommunicate OK [12:47:35]SAM_PROTO_ClearQueue done [12:47:35]KKMCreateOFDPacket [12:47:35]OFDProtocolAddRootSTLVToBuf [12:47:35]FM_MakeSignedData [12:47:35]FM_MakeSignedData [12:47:35]SAM_PROTO_SignData [12:47:35]wFMCommunicate request_size=4 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 0D 01 02 [12:47:35]Write to MH i2c: E2 08 00 36 3B 80 0D 01 02 00 00 00 00 EA [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 03 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 03 00 36 3B 00 90 00 E5 [12:47:35]RAPDU: 90 00 [12:47:35]wFMCommunicate OK [12:47:35]wFMCommunicate request_size=255 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6D 00 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [12:47:35]Write to MH i2c: E2 02 01 37 3B 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6D 00 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 E1 [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:35]Read from MH i2c: E2 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 03 00 [12:47:35]MH_I2C_Read... [12:47:35]Read from MH i2c: E2 03 00 37 3B 00 90 00 E6 [12:47:35]RAPDU: 90 00 [12:47:35]wFMCommunicate OK [12:47:35]wFMCommunicate request_size=50 [12:47:35]MH_SAM_APDU [12:47:35]CAPDU: 80 0D 02 02 2D 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 73 13 00 00 35 04 06 00 54 CC 41 96 61 CA [12:47:35]Write to MH i2c: E2 35 00 38 3B 80 0D 02 02 2D 00 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 73 13 00 00 35 04 06 00 54 CC 41 96 61 CA 00 00 EC [12:47:35]Write i2c OK [12:47:35]MH_I2C_Read... [12:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 03 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 03 00 38 3B 00 90 00 E7 [12:47:36]RAPDU: 90 00 [12:47:36]wFMCommunicate OK [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 0D 03 02 [12:47:36]Write to MH i2c: E2 08 00 39 3B 80 0D 03 02 00 00 00 00 EF [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 0B 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 0B 00 39 3B 00 13 54 C0 95 C9 BF 23 57 90 00 AE [12:47:36]RAPDU: 13 54 C0 95 C9 BF 23 57 90 00 [12:47:36]wFMCommunicate OK [12:47:36]SAM_PROTO_SignData done [12:47:36]FM_MakeSignedData done [12:47:36]CreateOFDProtocolMessage [12:47:36]wFMCommunicate request_size=4 [12:47:36]MH_SAM_APDU [12:47:36]CAPDU: 80 11 00 00 [12:47:36]Write to MH i2c: E2 08 00 3A 3B 80 11 00 00 00 00 00 00 EF [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:36]Read from MH i2c: E2 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 17 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: E2 17 00 3A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 44 [12:47:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:47:36]wFMCommunicate OK [12:47:36]CreateOFDProtocolMessage done [12:47:36]OFDSenderStorePacket 4979 [12:47:36]StoreOFDPacket docnum=4979 [12:47:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 37 01 00 00 AB AB 2F 01 57 58 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6D 00 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 73 13 00 00 35 04 06 00 54 CC 41 96 61 CA 13 54 C0 95 C9 BF 23 57 [12:47:36]CheckFolder [12:47:36]dirname=/storage/ofd_packets [12:47:36]CheckFolder done [12:47:36]ProducePacketName [12:47:36]name=ofd_packets/00004979 [12:47:36]NVStorageSaveData ofd_packets/00004979 [12:47:36]File name is /storage/ofd_packets/00004979 [12:47:36]Write 341 bytes [12:47:36]NVStorageSaveData done [12:47:36]OFDSenderStorePacket done [12:47:36]KKMCreateOFDPacket done [12:47:36]NVStorageSaveData kkm_last_timestamp [12:47:36]File name is /storage/kkm_last_timestamp [12:47:36]Write 4 bytes [12:47:36]NVStorageSaveData done [12:47:36]ExternCall_PrintAddStr [12:47:36]wPrintStart [12:47:36]Write to MH i2c: 01 00 00 3B 3B 76 [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: 01 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: 01 07 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: 01 07 00 3B 3B 00 00 00 00 00 FF 0F 8B [12:47:36]RasterBufferAndPrint [12:47:36]line Счет N : (3)140987 [12:47:36]line ИНН: 02508201610067 [12:47:36]line Контрольно-Кассовый Чек [12:47:36]line ПРОДАЖА [12:47:36]line Товар: 4620017450726 [12:47:36]line Кар. Страйк ассорти 11.3г/50шт [12:47:36]line 1.000 * 10.00 [12:47:36]line = 10.00 [12:47:36]line НДС 12% НСП 1% [12:47:36]line > о реализуемом товаре [12:47:36]line ИТОГО: 10.00 [12:47:36]line НСП 1% : 0.09 [12:47:36]line НДС 12% : 1.06 [12:47:36]line Наличными: 10.00 [12:47:36]line Безнал.: 0.00 [12:47:36]line Место: АЗС № 135 "Партнер Нефть" [12:47:36]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:47:36]line СНО: Общий режим [12:47:36]line Чек 39 16.05.2024 12:47 [12:47:36]line Смена: 44 ФФД: 1.0 [12:47:36]line ЗНМ: 0300000237 [12:47:36]line РНМ: 0000000000154221 [12:47:36]line Версия ККМ: v1.0 [12:47:36]line ФМ: 0000000000963259 [12:47:36]line ФД: 4979 [12:47:36]line ФПД: 93236250436042 [12:47:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T124741&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4979&fm=93236250436042&tin=02508201610067®Number=0000000000154221&sum=1000 [12:47:36]line 0 [12:47:36]OFD Sender: Processing packet 4979 [packets to send 4, broken 3] [12:47:36]ProducePacketName [12:47:36]name=ofd_packets/00004979 [12:47:36]OFD Sender: To server: pG, [12:47:36]CommunicateWithHost lk.salyk.kg:30040 [12:47:36]ConnectInit lk.salyk.kg [12:47:36]written 0, free lines is 4095 [12:47:36]Connected sock=10 [12:47:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 37 01 00 00 AB AB 2F 01 57 58 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 6D 00 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 73 13 00 00 35 04 06 00 54 CC 41 96 61 CA 13 54 C0 95 C9 BF 23 57 [12:47:36]Write to MH i2c: 01 00 00 64 3B 9F [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: 01 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: 01 07 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: 01 07 00 64 3B 00 00 00 00 00 67 0C 19 [12:47:36]RasterBufferAndPrint [12:47:36]line [12:47:36]line [12:47:36]line [12:47:36]line [12:47:36]line [12:47:36]written 0, free lines is 3179 [12:47:36]MH_Cut [12:47:36]Write to MH i2c: D1 01 00 6B 3B 01 78 [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: D1 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: D1 01 00 [12:47:36]MH_I2C_Read... [12:47:36]Read from MH i2c: D1 01 00 6B 3B 00 77 [12:47:36]Write to MH i2c: 01 00 00 6C 3B A7 [12:47:36]Write i2c OK [12:47:36]MH_I2C_Read... [12:47:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 5B 3C 47 00 AA DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 73 13 00 00 F4 03 04 00 31 AC 45 66 B6 04 01 00 00 1D 70 8C BB 76 DB 9B EA [12:47:36]CommunicateWithHost err = 0 [12:47:36]CheckOFDResponse [12:47:36]1017 (14) - 77093643461234 [12:47:36]1041 (16) - 0000000000963259 [12:47:36]1040 (4) - 4979 [12:47:36]1012 (4) - 16.05.2024 06:48 [12:47:36]1206 (1) - 0 [12:47:36]OFD Sender: Remove packet 4979 [12:47:36]ProducePacketName [12:47:36]name=ofd_packets/00004979 [12:47:36]NVStorageDeleteData [12:47:37]OFD Sender: No OFD packet to send [12:47:38]*** Cut start [12:47:38]*** Partial cut [12:47:38]*** CUTSNS_PIN = 1 [12:47:38]*** CUTSNS_PIN = 0 [12:47:38]*** Brake cut motor [12:47:38]Read from MH i2c: 01 [12:47:38]MH_I2C_Read... [12:47:38]*** Stop cut motor [12:47:38]*** Cut end [12:47:38]Read from MH i2c: 01 07 00 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: 01 07 00 6C 3B 00 00 00 00 00 FF 0F BC [12:47:38]process_action close_receipt done [12:47:38]requested_data is exist [12:47:38]produce_requested_data [12:47:38]requested_item fm.sn is exist - process it [12:47:38]wFMCommunicate request_size=4 [12:47:38]MH_SAM_APDU [12:47:38]CAPDU: 80 11 00 00 [12:47:38]Write to MH i2c: E2 08 00 6D 3B 80 11 00 00 00 00 00 00 22 [12:47:38]Write i2c OK [12:47:38]MH_I2C_Read... [12:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:38]Read from MH i2c: E2 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: E2 17 00 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: E2 17 00 6D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 77 [12:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:47:38]wFMCommunicate OK [12:47:38]requested_item fd.num is exist - process it [12:47:38]SAM_PROTO_GetFieldsCounters [12:47:38]wFMCommunicate request_size=4 [12:47:38]MH_SAM_APDU [12:47:38]CAPDU: 80 13 00 00 [12:47:38]Write to MH i2c: E2 08 00 6E 3B 80 13 00 00 00 00 00 00 25 [12:47:38]Write i2c OK [12:47:38]MH_I2C_Read... [12:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:38]Read from MH i2c: E2 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: E2 62 00 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: E2 62 00 6E 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 73 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 65 [12:47:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 73 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:38]wFMCommunicate OK [12:47:38]SAM_PROTO_GetFieldsCounters done [12:47:38]requested_item shift.num is exist - process it [12:47:38]requested_item shift.opened is exist - process it [12:47:38]req_shift_opened [12:47:38]FM_GetShiftState [12:47:38]SAM_PROTO_GetShiftState [12:47:38]wFMCommunicate request_size=4 [12:47:38]MH_SAM_APDU [12:47:38]CAPDU: 80 13 01 00 [12:47:38]Write to MH i2c: E2 08 00 6F 3B 80 13 01 00 00 00 00 00 27 [12:47:38]Write i2c OK [12:47:38]MH_I2C_Read... [12:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:38]Read from MH i2c: E2 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: E2 0E 00 [12:47:38]MH_I2C_Read... [12:47:38]Read from MH i2c: E2 0E 00 6F 3B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 33 [12:47:38]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:47:38]wFMCommunicate OK [12:47:38]SAM_PROTO_GetShiftState done [12:47:38]FM_GetShiftState done [12:47:38]req_shift_opened done [12:47:38]requested_item shift.open_date is exist - process it [12:47:38]req_shift_open_date [12:47:38]req_shift_open_date done [12:47:38]produce_requested_data done [12:47:38]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4979,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [12:47:38]process_action_free close_receipt [12:47:38]json_value_free [12:47:38]json_value_free done [12:47:38]process_json_proto returns [12:47:38]Send response to host [12:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4979,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [12:47:38]free response buf [12:47:38]execute_script done [12:47:38]execute_script returns [12:47:38]free content buf [12:47:38]Sock 9.Close socket [12:47:38]Sock 9.Thread stoped [12:47:42]OFD Sender: No OFD packet to send [12:47:47]OFD Sender: No OFD packet to send [12:47:52]OFD Sender: No OFD packet to send [12:47:52]accept exits with 8 [12:47:52]New connection [12:47:52]New thread 3067444580 created [12:47:52]Thread 3067587940 joined [12:47:52]Waiting for new connection... [12:47:52] Sock 8.Parse request [12:47:52]Sock 8.Check first char [12:47:52]Sock 8.First char is OK [12:47:52]request: POST /json_proto HTTP/1.0 [12:47:52]Method: POST [12:47:52]URL: /json_proto [12:47:52]Method is POST - this is cgi request [12:47:52]url: /json_proto [12:47:52]query_string will be loaded in cgi processing [12:47:52]execute_cgi json_proto POST (null) [12:47:52]execute_cgi path=json_proto method=POST [12:47:52]POST find Content-Length [12:47:52]Host: 172.17.44.4:8080 [12:47:52]Content-Length: 646 [12:47:52]Content-Type: application/json [12:47:52] [12:47:52]POST finish read [12:47:52]Found Content-Length = 646 [12:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140988", "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" ] } } [12:47:52]execute_script... [12:47: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)140988", "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" ] } } [12:47:52]POST & json_proto [12:47:52]process_json_proto [12:47:52]json parsed OK: [12:47:52]protocol is kg_v1.0 [12:47:52]action value=close_receipt [12:47:52]process_action close_receipt [12:47:52]cmd_close_receipt [12:47:52]MH_GetDate [12:47:52]Write to MH i2c: F0 00 00 70 3B 9A [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: F0 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: F0 09 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: F0 09 00 70 3B 00 7F 00 46 66 6C E9 28 66 B1 [12:47:52]GetLastDocTimeStamp 1715863661 [12:47:52]current date 1715863679 [12:47:52]FM_GetShiftState [12:47:52]SAM_PROTO_GetShiftState [12:47:52]wFMCommunicate request_size=4 [12:47:52]MH_SAM_APDU [12:47:52]CAPDU: 80 13 01 00 [12:47:52]Write to MH i2c: E2 08 00 71 3B 80 13 01 00 00 00 00 00 29 [12:47:52]Write i2c OK [12:47:52]MH_I2C_Read... [12:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:52]Read from MH i2c: E2 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 0E 00 [12:47:52]MH_I2C_Read... [12:47:52]Read from MH i2c: E2 0E 00 71 3B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 35 [12:47:52]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:47:52]wFMCommunicate OK [12:47:52]SAM_PROTO_GetShiftState done [12:47:52]FM_GetShiftState done [12:47:52]opened in 1715818246 [12:47:52]opened+sec_in_day 1715904646 [12:47:52]quantity*price = 13000 [12:47:52]sum+1 = 13001 [12:47:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 40 16.05.2024 12:47 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4980 ФПД: 220947716854799 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T124759&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4980&fm=220947716854799&tin=02508201610067®Number=0000000000154221&sum=13000 0 [12:47:53]StoreToDocumentArchive [12:47:53]shift 44 fd 4980 [12:47:53]save to /storage/0044/doc_00004980 [12:47:53]save last doc name /storage/0044/doc_00004980 to /storage/kkm_last_doc_name [12:47:53]save OK [12:47:53]Clear old archive folders... [12:47:53]ProcessDocumentItem done err = 0, tmpTLVsize=282 [12:47:53]tlvbuf is 00C9F4A0 [12:47:53]SAM_PROTO_ClearQueue [12:47:53]wFMCommunicate request_size=4 [12:47:53]MH_SAM_APDU [12:47:53]CAPDU: 80 09 00 00 [12:47:53]Write to MH i2c: E2 08 00 7E 3B 80 09 00 00 00 00 00 00 2B [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:47:53]Read from MH i2c: E2 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: E2 03 00 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: E2 03 00 7E 3B 00 90 00 2D [12:47:53]RAPDU: 90 00 [12:47:53]wFMCommunicate OK [12:47:53]SAM_PROTO_ClearQueue done [12:47:53]KKMCreateOFDPacket [12:47:53]OFDProtocolAddRootSTLVToBuf [12:47:53]FM_MakeSignedData [12:47:53]FM_MakeSignedData [12:47:53]SAM_PROTO_SignData [12:47:53]wFMCommunicate request_size=4 [12:47:53]MH_SAM_APDU [12:47:53]CAPDU: 80 0D 01 02 [12:47:53]Write to MH i2c: E2 08 00 7F 3B 80 0D 01 02 00 00 00 00 33 [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:47:53]Read from MH i2c: E2 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: E2 03 00 [12:47:53]MH_I2C_Read... [12:47:53]Read from MH i2c: E2 03 00 7F 3B 00 90 00 2E [12:47:53]RAPDU: 90 00 [12:47:53]wFMCommunicate OK [12:47:53]wFMCommunicate request_size=255 [12:47:53]MH_SAM_APDU [12:47:53]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 28 00 00 00 F4 03 04 00 7F 00 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 [12:47:53]Write to MH i2c: E2 02 01 80 3B 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 28 00 00 00 F4 03 04 00 7F 00 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 00 00 B7 [12:47:53]Write i2c OK [12:47:53]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 03 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 03 00 80 3B 00 90 00 2F [12:47:54]RAPDU: 90 00 [12:47:54]wFMCommunicate OK [12:47:54]wFMCommunicate request_size=41 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 74 13 00 00 35 04 06 00 C8 F3 66 2D 54 0F [12:47:54]Write to MH i2c: E2 2C 00 81 3B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 74 13 00 00 35 04 06 00 C8 F3 66 2D 54 0F 00 00 3F [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 03 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 03 00 81 3B 00 90 00 30 [12:47:54]RAPDU: 90 00 [12:47:54]wFMCommunicate OK [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 0D 03 02 [12:47:54]Write to MH i2c: E2 08 00 82 3B 80 0D 03 02 00 00 00 00 38 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0B 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 0B 00 82 3B 00 41 AE FA 91 29 82 BC 5B 90 00 75 [12:47:54]RAPDU: 41 AE FA 91 29 82 BC 5B 90 00 [12:47:54]wFMCommunicate OK [12:47:54]SAM_PROTO_SignData done [12:47:54]FM_MakeSignedData done [12:47:54]CreateOFDProtocolMessage [12:47:54]wFMCommunicate request_size=4 [12:47:54]MH_SAM_APDU [12:47:54]CAPDU: 80 11 00 00 [12:47:54]Write to MH i2c: E2 08 00 83 3B 80 11 00 00 00 00 00 00 38 [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:54]Read from MH i2c: E2 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 17 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: E2 17 00 83 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 8D [12:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:47:54]wFMCommunicate OK [12:47:54]CreateOFDProtocolMessage done [12:47:54]OFDSenderStorePacket 4980 [12:47:54]StoreOFDPacket docnum=4980 [12:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 25 AF 26 01 EC F3 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 28 00 00 00 F4 03 04 00 7F 00 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 74 13 00 00 35 04 06 00 C8 F3 66 2D 54 0F 41 AE FA 91 29 82 BC 5B [12:47:54]CheckFolder [12:47:54]dirname=/storage/ofd_packets [12:47:54]CheckFolder done [12:47:54]ProducePacketName [12:47:54]name=ofd_packets/00004980 [12:47:54]NVStorageSaveData ofd_packets/00004980 [12:47:54]File name is /storage/ofd_packets/00004980 [12:47:54]Write 332 bytes [12:47:54]NVStorageSaveData done [12:47:54]OFDSenderStorePacket done [12:47:54]KKMCreateOFDPacket done [12:47:54]NVStorageSaveData kkm_last_timestamp [12:47:54]File name is /storage/kkm_last_timestamp [12:47:54]Write 4 bytes [12:47:54]NVStorageSaveData done [12:47:54]ExternCall_PrintAddStr [12:47:54]wPrintStart [12:47:54]Write to MH i2c: 01 00 00 84 3B BF [12:47:54]Write i2c OK [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: 01 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: 01 07 00 [12:47:54]MH_I2C_Read... [12:47:54]Read from MH i2c: 01 07 00 84 3B 00 00 00 00 00 FF 0F D4 [12:47:54]RasterBufferAndPrint [12:47:54]line Счет N : (3)140988 [12:47:54]line ИНН: 02508201610067 [12:47:54]line Контрольно-Кассовый Чек [12:47:54]line ПРОДАЖА [12:47:54]line Товар: 2000036220012 [12:47:54]line Кофе Капучино XL(GABB TRADE) [12:47:54]line 1.000 * 130.00 [12:47:54]line = 130.00 [12:47:54]line НДС 12% НСП 1% [12:47:54]line > о реализуемом товаре [12:47:54]line ИТОГО: 130.00 [12:47:54]line НСП 1% : 1.15 [12:47:54]line НДС 12% : 13.80 [12:47:54]line Наличными: 130.00 [12:47:54]line Безнал.: 0.00 [12:47:54]line Место: АЗС № 135 "Партнер Нефть" [12:47:54]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [12:47:54]line СНО: Общий режим [12:47:54]line Чек 40 16.05.2024 12:47 [12:47:54]line Смена: 44 ФФД: 1.0 [12:47:54]line ЗНМ: 0300000237 [12:47:54]line РНМ: 0000000000154221 [12:47:54]line Версия ККМ: v1.0 [12:47:54]line ФМ: 0000000000963259 [12:47:54]line ФД: 4980 [12:47:54]line ФПД: 220947716854799 [12:47:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T124759&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4980&fm=220947716854799&tin=02508201610067®Number=0000000000154221&sum=13000 [12:47:54]line 0 [12:47:54]OFD Sender: Processing packet 4980 [packets to send 4, broken 3] [12:47:54]ProducePacketName [12:47:54]name=ofd_packets/00004980 [12:47:54]OFD Sender: To server: pG, [12:47:54]CommunicateWithHost lk.salyk.kg:30040 [12:47:54]ConnectInit lk.salyk.kg [12:47:54]written 0, free lines is 4095 [12:47:55]Write to MH i2c: 01 00 00 AD 3B E8 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: 01 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: 01 07 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: 01 07 00 AD 3B 00 00 00 00 00 7C 0C 77 [12:47:55]RasterBufferAndPrint [12:47:55]line [12:47:55]line [12:47:55]line [12:47:55]line [12:47:55]line [12:47:55]written 0, free lines is 3202 [12:47:55]MH_Cut [12:47:55]Write to MH i2c: D1 01 00 B4 3B 01 C1 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: D1 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: D1 01 00 [12:47:55]MH_I2C_Read... [12:47:55]Read from MH i2c: D1 01 00 B4 3B 00 C0 [12:47:55]Write to MH i2c: 01 00 00 B5 3B F0 [12:47:55]Write i2c OK [12:47:55]MH_I2C_Read... [12:47:55]Connected sock=10 [12:47:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 25 AF 26 01 EC F3 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 28 00 00 00 F4 03 04 00 7F 00 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 74 13 00 00 35 04 06 00 C8 F3 66 2D 54 0F 41 AE FA 91 29 82 BC 5B [12:47:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 70 35 47 00 9D 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 74 13 00 00 F4 03 04 00 43 AC 45 66 B6 04 01 00 00 5C 7F 51 AB 98 9E 08 4B [12:47:55]CommunicateWithHost err = 0 [12:47:55]CheckOFDResponse [12:47:55]1017 (14) - 77093643461234 [12:47:55]1041 (16) - 0000000000963259 [12:47:55]1040 (4) - 4980 [12:47:55]1012 (4) - 16.05.2024 06:48 [12:47:55]1206 (1) - 0 [12:47:55]OFD Sender: Remove packet 4980 [12:47:55]ProducePacketName [12:47:55]name=ofd_packets/00004980 [12:47:55]NVStorageDeleteData [12:47:55]OFD Sender: No OFD packet to send [12:47:56]*** Cut start [12:47:56]*** Partial cut [12:47:56]*** CUTSNS_PIN = 1 [12:47:56]*** CUTSNS_PIN = 0 [12:47:56]*** Brake cut motor [12:47:56]Read from MH i2c: 01 [12:47:56]MH_I2C_Read... [12:47:56]*** Stop cut motor [12:47:56]*** Cut end [12:47:56]Read from MH i2c: 01 07 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: 01 07 00 B5 3B 00 00 00 00 00 FF 0F 05 [12:47:56]process_action close_receipt done [12:47:56]requested_data is exist [12:47:56]produce_requested_data [12:47:56]requested_item fm.sn is exist - process it [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 11 00 00 [12:47:56]Write to MH i2c: E2 08 00 B6 3B 80 11 00 00 00 00 00 00 6B [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 17 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 17 00 B6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 C0 [12:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [12:47:56]wFMCommunicate OK [12:47:56]requested_item fd.num is exist - process it [12:47:56]SAM_PROTO_GetFieldsCounters [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 13 00 00 [12:47:56]Write to MH i2c: E2 08 00 B7 3B 80 13 00 00 00 00 00 00 6E [12:47:56]Write i2c OK [12:47:56]MH_I2C_Read... [12:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:47:56]Read from MH i2c: E2 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 62 00 [12:47:56]MH_I2C_Read... [12:47:56]Read from MH i2c: E2 62 00 B7 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 74 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [12:47:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 74 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:47:56]wFMCommunicate OK [12:47:56]SAM_PROTO_GetFieldsCounters done [12:47:56]requested_item shift.num is exist - process it [12:47:56]requested_item shift.opened is exist - process it [12:47:56]req_shift_opened [12:47:56]FM_GetShiftState [12:47:56]SAM_PROTO_GetShiftState [12:47:56]wFMCommunicate request_size=4 [12:47:56]MH_SAM_APDU [12:47:56]CAPDU: 80 13 01 00 [12:47:56]Write to MH i2c: E2 08 00 B8 3B 80 13 01 00 00 00 00 00 70 [12:47:57]Write i2c OK [12:47:57]MH_I2C_Read... [12:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:47:57]Read from MH i2c: E2 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 0E 00 [12:47:57]MH_I2C_Read... [12:47:57]Read from MH i2c: E2 0E 00 B8 3B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 7C [12:47:57]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [12:47:57]wFMCommunicate OK [12:47:57]SAM_PROTO_GetShiftState done [12:47:57]FM_GetShiftState done [12:47:57]req_shift_opened done [12:47:57]requested_item shift.open_date is exist - process it [12:47:57]req_shift_open_date [12:47:57]req_shift_open_date done [12:47:57]produce_requested_data done [12:47:57]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4980,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [12:47:57]process_action_free close_receipt [12:47:57]json_value_free [12:47:57]json_value_free done [12:47:57]process_json_proto returns [12:47:57]Send response to host [12:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4980,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [12:47:57]free response buf [12:47:57]execute_script done [12:47:57]execute_script returns [12:47:57]free content buf [12:47:57]Sock 8.Close socket [12:47:57]Sock 8.Thread stoped [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:45]OFD Sender: No OFD packet to send [12:49:50]OFD Sender: No OFD packet to send [12:49:55]OFD Sender: No OFD packet to send [12:50:00]OFD Sender: No OFD packet to send [12:50:05]OFD Sender: No OFD packet to send [12:50:10]OFD Sender: No OFD packet to send [12:50:15]OFD Sender: No OFD packet to send [12:50:20]OFD Sender: No OFD packet to send [12:50:25]OFD Sender: No OFD packet to send [12:50:30]OFD Sender: No OFD packet to send [12:50:35]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:01]OFD Sender: No OFD packet to send [13:01:06]OFD Sender: No OFD packet to send [13:01:11]OFD Sender: No OFD packet to send [13:01:16]OFD Sender: No OFD packet to send [13:01:21]OFD Sender: No OFD packet to send [13:01:26]OFD Sender: No OFD packet to send [13:01:31]OFD Sender: No OFD packet to send [13:01:36]OFD Sender: No OFD packet to send [13:01:41]OFD Sender: No OFD packet to send [13:01:46]OFD Sender: No OFD packet to send [13:01:51]OFD Sender: No OFD packet to send [13:01:56]OFD Sender: No OFD packet to send [13:02:01]OFD Sender: No OFD packet to send [13:02:06]OFD Sender: No OFD packet to send [13:02:11]OFD Sender: No OFD packet to send [13:02:16]OFD Sender: No OFD packet to send [13:02:21]OFD Sender: No OFD packet to send [13:02:26]OFD Sender: No OFD packet to send [13:02:31]OFD Sender: No OFD packet to send [13:02:36]OFD Sender: No OFD packet to send [13:02:41]OFD Sender: No OFD packet to send [13:02:46]OFD Sender: No OFD packet to send [13:02:51]OFD Sender: No OFD packet to send [13:02:56]OFD Sender: No OFD packet to send [13:03:01]OFD Sender: No OFD packet to send [13:03:06]OFD Sender: No OFD packet to send [13:03:11]OFD Sender: No OFD packet to send [13:03:16]OFD Sender: No OFD packet to send [13:03:21]OFD Sender: No OFD packet to send [13:03:26]OFD Sender: No OFD packet to send [13:03:31]OFD Sender: No OFD packet to send [13:03:33]accept exits with 9 [13:03:33]New connection [13:03:33]New thread 3067587940 created [13:03:33]Thread 3067444580 joined [13:03:33]Waiting for new connection... [13:03:33] Sock 9.Parse request [13:03:33]Sock 9.Check first char [13:03:33]Sock 9.First char is OK [13:03:33]request: POST /json_proto HTTP/1.0 [13:03:33]Method: POST [13:03:33]URL: /json_proto [13:03:33]Method is POST - this is cgi request [13:03:33]url: /json_proto [13:03:33]query_string will be loaded in cgi processing [13:03:33]execute_cgi json_proto POST (null) [13:03:33]execute_cgi path=json_proto method=POST [13:03:33]POST find Content-Length [13:03:33]Host: 172.17.44.4:8080 [13:03:33]Content-Length: 851 [13:03:33]Content-Type: application/json [13:03:33] [13:03:33]POST finish read [13:03:33]Found Content-Length = 851 [13:03:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140989", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:33]execute_script... [13:03: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)140989", "tax_sys" : 0, "items" : [ { "code": "48741156", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B LD Blue", "price" : 125.00, "quantity" : 2.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 355.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:33]POST & json_proto [13:03:33]process_json_proto [13:03:33]json parsed OK: [13:03:33]protocol is kg_v1.0 [13:03:33]action value=close_receipt [13:03:33]process_action close_receipt [13:03:33]cmd_close_receipt [13:03:33]MH_GetDate [13:03:33]Write to MH i2c: F0 00 00 B9 3B E3 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: F0 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: F0 09 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: F0 09 00 B9 3B 00 2D 04 46 66 6C E9 28 66 AC [13:03:33]GetLastDocTimeStamp 1715863679 [13:03:33]current date 1715864621 [13:03:33]FM_GetShiftState [13:03:33]SAM_PROTO_GetShiftState [13:03:33]wFMCommunicate request_size=4 [13:03:33]MH_SAM_APDU [13:03:33]CAPDU: 80 13 01 00 [13:03:33]Write to MH i2c: E2 08 00 BA 3B 80 13 01 00 00 00 00 00 72 [13:03:33]Write i2c OK [13:03:33]MH_I2C_Read... [13:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:33]Read from MH i2c: E2 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 0E 00 [13:03:33]MH_I2C_Read... [13:03:33]Read from MH i2c: E2 0E 00 BA 3B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 7E [13:03:33]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:03:33]wFMCommunicate OK [13:03:33]SAM_PROTO_GetShiftState done [13:03:33]FM_GetShiftState done [13:03:33]opened in 1715818246 [13:03:33]opened+sec_in_day 1715904646 [13:03:33]quantity*price = 25000 [13:03:33]sum+1 = 25001 [13:03:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 105.00 = 105.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 355.00 НСП 1% : 3.14 НДС 12% : 37.70 Наличными: 355.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 41 16.05.2024 13:03 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4981 ФПД: 26003960093191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T130341&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4981&fm=26003960093191&tin=02508201610067®Number=0000000000154221&sum=35500 0 [13:03:34]StoreToDocumentArchive [13:03:34]shift 44 fd 4981 [13:03:34]save to /storage/0044/doc_00004981 [13:03:34]save last doc name /storage/0044/doc_00004981 to /storage/kkm_last_doc_name [13:03:34]save OK [13:03:34]Clear old archive folders... [13:03:34]ProcessDocumentItem done err = 0, tmpTLVsize=365 [13:03:34]tlvbuf is B6F75B00 [13:03:34]SAM_PROTO_ClearQueue [13:03:34]wFMCommunicate request_size=4 [13:03:34]MH_SAM_APDU [13:03:34]CAPDU: 80 09 00 00 [13:03:34]Write to MH i2c: E2 08 00 C7 3B 80 09 00 00 00 00 00 00 74 [13:03:34]Write i2c OK [13:03:34]MH_I2C_Read... [13:03:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:34]Read from MH i2c: E2 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 03 00 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 03 00 C7 3B 00 90 00 76 [13:03:34]RAPDU: 90 00 [13:03:34]wFMCommunicate OK [13:03:34]SAM_PROTO_ClearQueue done [13:03:34]KKMCreateOFDPacket [13:03:34]OFDProtocolAddRootSTLVToBuf [13:03:34]FM_MakeSignedData [13:03:34]FM_MakeSignedData [13:03:34]SAM_PROTO_SignData [13:03:34]wFMCommunicate request_size=4 [13:03:34]MH_SAM_APDU [13:03:34]CAPDU: 80 0D 01 02 [13:03:34]Write to MH i2c: E2 08 00 C8 3B 80 0D 01 02 00 00 00 00 7C [13:03:34]Write i2c OK [13:03:34]MH_I2C_Read... [13:03:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:34]Read from MH i2c: E2 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 03 00 [13:03:34]MH_I2C_Read... [13:03:34]Read from MH i2c: E2 03 00 C8 3B 00 90 00 77 [13:03:34]RAPDU: 90 00 [13:03:34]wFMCommunicate OK [13:03:34]wFMCommunicate request_size=255 [13:03:34]MH_SAM_APDU [13:03:34]CAPDU: 80 0D 02 02 FA 03 00 6D 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 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 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 [13:03:34]Write to MH i2c: E2 02 01 C9 3B 80 0D 02 02 FA 00 03 00 6D 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 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 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 82 [13:03:34]Write i2c OK [13:03:34]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 C9 3B 00 90 00 78 [13:03:35]RAPDU: 90 00 [13:03:35]wFMCommunicate OK [13:03:35]wFMCommunicate request_size=124 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 0D 02 02 77 BA 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 2D 04 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 75 13 00 00 35 04 06 00 17 A6 84 CD DA 07 [13:03:35]Write to MH i2c: E2 7F 00 CA 3B 80 0D 02 02 77 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 2D 04 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 75 13 00 00 35 04 06 00 17 A6 84 CD DA 07 00 00 46 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 03 00 CA 3B 00 90 00 79 [13:03:35]RAPDU: 90 00 [13:03:35]wFMCommunicate OK [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 0D 03 02 [13:03:35]Write to MH i2c: E2 08 00 CB 3B 80 0D 03 02 00 00 00 00 81 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 0B 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 0B 00 CB 3B 00 42 B9 D2 F0 1E 8F B4 04 90 00 A4 [13:03:35]RAPDU: 42 B9 D2 F0 1E 8F B4 04 90 00 [13:03:35]wFMCommunicate OK [13:03:35]SAM_PROTO_SignData done [13:03:35]FM_MakeSignedData done [13:03:35]CreateOFDProtocolMessage [13:03:35]wFMCommunicate request_size=4 [13:03:35]MH_SAM_APDU [13:03:35]CAPDU: 80 11 00 00 [13:03:35]Write to MH i2c: E2 08 00 CC 3B 80 11 00 00 00 00 00 00 81 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:35]Read from MH i2c: E2 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 17 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: E2 17 00 CC 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D6 [13:03:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:03:35]wFMCommunicate OK [13:03:35]CreateOFDProtocolMessage done [13:03:35]OFDSenderStorePacket 4981 [13:03:35]StoreOFDPacket docnum=4981 [13:03:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 81 01 00 00 31 95 79 01 33 4D 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 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 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 2D 04 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 75 13 00 00 35 04 06 00 17 A6 84 CD DA 07 42 B9 D2 F0 1E 8F B4 04 [13:03:35]CheckFolder [13:03:35]dirname=/storage/ofd_packets [13:03:35]CheckFolder done [13:03:35]ProducePacketName [13:03:35]name=ofd_packets/00004981 [13:03:35]NVStorageSaveData ofd_packets/00004981 [13:03:35]File name is /storage/ofd_packets/00004981 [13:03:35]Write 415 bytes [13:03:35]NVStorageSaveData done [13:03:35]OFDSenderStorePacket done [13:03:35]KKMCreateOFDPacket done [13:03:35]NVStorageSaveData kkm_last_timestamp [13:03:35]File name is /storage/kkm_last_timestamp [13:03:35]Write 4 bytes [13:03:35]NVStorageSaveData done [13:03:35]ExternCall_PrintAddStr [13:03:35]wPrintStart [13:03:35]Write to MH i2c: 01 00 00 CD 3B 08 [13:03:35]Write i2c OK [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: 01 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: 01 07 00 [13:03:35]MH_I2C_Read... [13:03:35]Read from MH i2c: 01 07 00 CD 3B 00 00 00 00 00 FF 0F 1D [13:03:35]RasterBufferAndPrint [13:03:35]line Счет N : (3)140989 [13:03:35]line ИНН: 02508201610067 [13:03:35]line Контрольно-Кассовый Чек [13:03:35]line ПРОДАЖА [13:03:35]line Товар: 48741156 [13:03:35]line Сигареты LD Blue [13:03:35]line 2.000 * 125.00 [13:03:35]line = 250.00 [13:03:35]line НДС 12% НСП 1% [13:03:35]line > о реализуемом товаре [13:03:35]line Товар: 2000036240010 [13:03:35]line Кофе Латте (GABB TRADE) [13:03:35]line 1.000 * 105.00 [13:03:35]line = 105.00 [13:03:35]line НДС 12% НСП 1% [13:03:35]line > о реализуемом товаре [13:03:35]line ИТОГО: 355.00 [13:03:35]line НСП 1% : 3.14 [13:03:35]line НДС 12% : 37.70 [13:03:35]line Наличными: 355.00 [13:03:35]line Безнал.: 0.00 [13:03:35]line Место: АЗС № 135 "Партнер Нефть" [13:03:35]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [13:03:35]line СНО: Общий режим [13:03:35]line Чек 41 16.05.2024 13:03 [13:03:35]line Смена: 44 ФФД: 1.0 [13:03:35]line ЗНМ: 0300000237 [13:03:35]line РНМ: 0000000000154221 [13:03:35]line Версия ККМ: v1.0 [13:03:35]line ФМ: 0000000000963259 [13:03:35]line ФД: 4981 [13:03:35]line ФПД: 26003960093191 [13:03:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T130341&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4981&fm=26003960093191&tin=02508201610067®Number=0000000000154221&sum=35500 [13:03:35]line 0 [13:03:35]OFD Sender: Processing packet 4981 [packets to send 4, broken 3] [13:03:35]ProducePacketName [13:03:35]name=ofd_packets/00004981 [13:03:35]OFD Sender: To server: pG, [13:03:35]CommunicateWithHost lk.salyk.kg:30040 [13:03:35]ConnectInit lk.salyk.kg [13:03:35]written 0, free lines is 4095 [13:03:36]Write to MH i2c: 01 00 00 FB 3B 36 [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: 01 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: 01 07 00 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: 01 07 00 FB 3B 00 00 00 00 00 29 0C 72 [13:03:36]RasterBufferAndPrint [13:03:36]line [13:03:36]line [13:03:36]line [13:03:36]line [13:03:36]line [13:03:36]written 0, free lines is 3116 [13:03:36]MH_Cut [13:03:36]Write to MH i2c: D1 01 00 02 3C 01 10 [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: D1 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: D1 01 00 [13:03:36]MH_I2C_Read... [13:03:36]Read from MH i2c: D1 01 00 02 3C 00 0F [13:03:36]Write to MH i2c: 01 00 00 03 3C 3F [13:03:36]Write i2c OK [13:03:36]MH_I2C_Read... [13:03:36]Connected sock=11 [13:03:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 81 01 00 00 31 95 79 01 33 4D 5A 03 01 00 03 00 6D 01 1E 04 01 00 01 23 04 57 00 8A 04 08 00 34 38 37 34 31 31 35 36 06 04 18 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4C 44 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 A8 61 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 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 2D 04 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 75 13 00 00 35 04 06 00 17 A6 84 CD DA 07 42 B9 D2 F0 1E 8F B4 04 [13:03:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 E4 EC 47 00 19 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 75 13 00 00 F4 03 04 00 F1 AF 45 66 B6 04 01 00 00 63 88 D0 D2 D8 3A 74 76 [13:03:36]CommunicateWithHost err = 0 [13:03:36]CheckOFDResponse [13:03:36]1017 (14) - 77093643461234 [13:03:36]1041 (16) - 0000000000963259 [13:03:36]1040 (4) - 4981 [13:03:36]1012 (4) - 16.05.2024 07:04 [13:03:36]1206 (1) - 0 [13:03:36]OFD Sender: Remove packet 4981 [13:03:36]ProducePacketName [13:03:36]name=ofd_packets/00004981 [13:03:36]NVStorageDeleteData [13:03:37]OFD Sender: No OFD packet to send [13:03:37]*** Cut start [13:03:37]*** Partial cut [13:03:37]*** CUTSNS_PIN = 1 [13:03:37]*** CUTSNS_PIN = 0 [13:03:37]*** Brake cut motor [13:03:38]Read from MH i2c: 01 [13:03:38]MH_I2C_Read... [13:03:38]*** Stop cut motor [13:03:38]*** Cut end [13:03:38]Read from MH i2c: 01 07 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: 01 07 00 03 3C 00 00 00 00 00 FF 0F 54 [13:03:38]process_action close_receipt done [13:03:38]requested_data is exist [13:03:38]produce_requested_data [13:03:38]requested_item fm.sn is exist - process it [13:03:38]wFMCommunicate request_size=4 [13:03:38]MH_SAM_APDU [13:03:38]CAPDU: 80 11 00 00 [13:03:38]Write to MH i2c: E2 08 00 04 3C 80 11 00 00 00 00 00 00 BA [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:38]Read from MH i2c: E2 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 17 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 17 00 04 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 0F [13:03:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:03:38]wFMCommunicate OK [13:03:38]requested_item fd.num is exist - process it [13:03:38]SAM_PROTO_GetFieldsCounters [13:03:38]wFMCommunicate request_size=4 [13:03:38]MH_SAM_APDU [13:03:38]CAPDU: 80 13 00 00 [13:03:38]Write to MH i2c: E2 08 00 05 3C 80 13 00 00 00 00 00 00 BD [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:38]Read from MH i2c: E2 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 62 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 62 00 05 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 75 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 05 [13:03:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 75 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:38]wFMCommunicate OK [13:03:38]SAM_PROTO_GetFieldsCounters done [13:03:38]requested_item shift.num is exist - process it [13:03:38]requested_item shift.opened is exist - process it [13:03:38]req_shift_opened [13:03:38]FM_GetShiftState [13:03:38]SAM_PROTO_GetShiftState [13:03:38]wFMCommunicate request_size=4 [13:03:38]MH_SAM_APDU [13:03:38]CAPDU: 80 13 01 00 [13:03:38]Write to MH i2c: E2 08 00 06 3C 80 13 01 00 00 00 00 00 BF [13:03:38]Write i2c OK [13:03:38]MH_I2C_Read... [13:03:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:38]Read from MH i2c: E2 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 0E 00 [13:03:38]MH_I2C_Read... [13:03:38]Read from MH i2c: E2 0E 00 06 3C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CB [13:03:38]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:03:38]wFMCommunicate OK [13:03:38]SAM_PROTO_GetShiftState done [13:03:38]FM_GetShiftState done [13:03:38]req_shift_opened done [13:03:38]requested_item shift.open_date is exist - process it [13:03:38]req_shift_open_date [13:03:38]req_shift_open_date done [13:03:38]produce_requested_data done [13:03:38]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4981,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [13:03:38]process_action_free close_receipt [13:03:38]json_value_free [13:03:38]json_value_free done [13:03:38]process_json_proto returns [13:03:38]Send response to host [13:03:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4981,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [13:03:38]free response buf [13:03:38]execute_script done [13:03:38]execute_script returns [13:03:38]free content buf [13:03:38]Sock 9.Close socket [13:03:38]Sock 9.Thread stoped [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:32]accept exits with 8 [13:04:32]New connection [13:04:32]New thread 3067444580 created [13:04:32]Thread 3067587940 joined [13:04:32]Waiting for new connection... [13:04:32] Sock 8.Parse request [13:04:32]Sock 8.Check first char [13:04:32]Sock 8.First char is OK [13:04:32]request: POST /json_proto HTTP/1.0 [13:04:32]Method: POST [13:04:32]URL: /json_proto [13:04:32]Method is POST - this is cgi request [13:04:32]url: /json_proto [13:04:32]query_string will be loaded in cgi processing [13:04:32]execute_cgi json_proto POST (null) [13:04:32]execute_cgi path=json_proto method=POST [13:04:32]POST find Content-Length [13:04:32]Host: 172.17.44.4:8080 [13:04:32]Content-Length: 633 [13:04:32]Content-Type: application/json [13:04:32] [13:04:32]POST finish read [13:04:32]Found Content-Length = 633 [13:04:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140990", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,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" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:32]execute_script... [13:04:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140990", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,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" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:04:32]POST & json_proto [13:04:32]process_json_proto [13:04:32]json parsed OK: [13:04:32]protocol is kg_v1.0 [13:04:32]action value=close_receipt [13:04:32]process_action close_receipt [13:04:32]cmd_close_receipt [13:04:32]MH_GetDate [13:04:32]Write to MH i2c: F0 00 00 07 3C 32 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: F0 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: F0 09 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: F0 09 00 07 3C 00 67 04 46 66 6C E9 28 66 35 [13:04:32]GetLastDocTimeStamp 1715864621 [13:04:32]current date 1715864679 [13:04:32]FM_GetShiftState [13:04:32]SAM_PROTO_GetShiftState [13:04:32]wFMCommunicate request_size=4 [13:04:32]MH_SAM_APDU [13:04:32]CAPDU: 80 13 01 00 [13:04:32]Write to MH i2c: E2 08 00 08 3C 80 13 01 00 00 00 00 00 C1 [13:04:32]Write i2c OK [13:04:32]MH_I2C_Read... [13:04:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:32]Read from MH i2c: E2 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 0E 00 [13:04:32]MH_I2C_Read... [13:04:32]Read from MH i2c: E2 0E 00 08 3C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CD [13:04:32]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:04:32]wFMCommunicate OK [13:04:32]SAM_PROTO_GetShiftState done [13:04:32]FM_GetShiftState done [13:04:32]opened in 1715818246 [13:04:32]opened+sec_in_day 1715904646 [13:04:32]quantity*price = 6500 [13:04:32]sum+1 = 6501 [13:04:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 42 16.05.2024 13:04 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4982 ФПД: 242345305429645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T130439&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4982&fm=242345305429645&tin=02508201610067®Number=0000000000154221&sum=6500 0 [13:04:33]StoreToDocumentArchive [13:04:33]shift 44 fd 4982 [13:04:33]save to /storage/0044/doc_00004982 [13:04:33]save last doc name /storage/0044/doc_00004982 to /storage/kkm_last_doc_name [13:04:33]save OK [13:04:33]Clear old archive folders... [13:04:33]ProcessDocumentItem done err = 0, tmpTLVsize=268 [13:04:33]tlvbuf is 00DE17F0 [13:04:33]SAM_PROTO_ClearQueue [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 09 00 00 [13:04:33]Write to MH i2c: E2 08 00 15 3C 80 09 00 00 00 00 00 00 C3 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 15 3C 00 90 00 C5 [13:04:33]RAPDU: 90 00 [13:04:33]wFMCommunicate OK [13:04:33]SAM_PROTO_ClearQueue done [13:04:33]KKMCreateOFDPacket [13:04:33]OFDProtocolAddRootSTLVToBuf [13:04:33]FM_MakeSignedData [13:04:33]FM_MakeSignedData [13:04:33]SAM_PROTO_SignData [13:04:33]wFMCommunicate request_size=4 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 0D 01 02 [13:04:33]Write to MH i2c: E2 08 00 16 3C 80 0D 01 02 00 00 00 00 CB [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 16 3C 00 90 00 C6 [13:04:33]RAPDU: 90 00 [13:04:33]wFMCommunicate OK [13:04:33]wFMCommunicate request_size=255 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 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 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 67 04 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 [13:04:33]Write to MH i2c: E2 02 01 17 3C 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 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 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 67 04 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 00 00 65 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:33]Read from MH i2c: E2 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 [13:04:33]MH_I2C_Read... [13:04:33]Read from MH i2c: E2 03 00 17 3C 00 90 00 C7 [13:04:33]RAPDU: 90 00 [13:04:33]wFMCommunicate OK [13:04:33]wFMCommunicate request_size=27 [13:04:33]MH_SAM_APDU [13:04:33]CAPDU: 80 0D 02 02 16 33 32 35 39 10 04 04 00 76 13 00 00 35 04 06 00 DC 69 69 D7 D6 8D [13:04:33]Write to MH i2c: E2 1E 00 18 3C 80 0D 02 02 16 00 33 32 35 39 10 04 04 00 76 13 00 00 35 04 06 00 DC 69 69 D7 D6 8D 00 00 95 [13:04:33]Write i2c OK [13:04:33]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 [13:04:34]MH_I2C_Read... [13:04:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:04:34]Read from MH i2c: E2 03 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 03 00 18 3C 00 90 00 C8 [13:04:34]RAPDU: 90 00 [13:04:34]wFMCommunicate OK [13:04:34]wFMCommunicate request_size=4 [13:04:34]MH_SAM_APDU [13:04:34]CAPDU: 80 0D 03 02 [13:04:34]Write to MH i2c: E2 08 00 19 3C 80 0D 03 02 00 00 00 00 D0 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:04:34]Read from MH i2c: E2 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 0B 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 0B 00 19 3C 00 8E 7F 7D 3C A1 C6 66 B2 90 00 16 [13:04:34]RAPDU: 8E 7F 7D 3C A1 C6 66 B2 90 00 [13:04:34]wFMCommunicate OK [13:04:34]SAM_PROTO_SignData done [13:04:34]FM_MakeSignedData done [13:04:34]CreateOFDProtocolMessage [13:04:34]wFMCommunicate request_size=4 [13:04:34]MH_SAM_APDU [13:04:34]CAPDU: 80 11 00 00 [13:04:34]Write to MH i2c: E2 08 00 1A 3C 80 11 00 00 00 00 00 00 D0 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:34]Read from MH i2c: E2 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 17 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: E2 17 00 1A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 25 [13:04:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:04:34]wFMCommunicate OK [13:04:34]CreateOFDProtocolMessage done [13:04:34]OFDSenderStorePacket 4982 [13:04:34]StoreOFDPacket docnum=4982 [13:04:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 20 01 00 00 D6 2F 18 01 CC 67 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 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 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 67 04 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 76 13 00 00 35 04 06 00 DC 69 69 D7 D6 8D 8E 7F 7D 3C A1 C6 66 B2 [13:04:34]CheckFolder [13:04:34]dirname=/storage/ofd_packets [13:04:34]CheckFolder done [13:04:34]ProducePacketName [13:04:34]name=ofd_packets/00004982 [13:04:34]NVStorageSaveData ofd_packets/00004982 [13:04:34]File name is /storage/ofd_packets/00004982 [13:04:34]Write 318 bytes [13:04:34]NVStorageSaveData done [13:04:34]OFDSenderStorePacket done [13:04:34]KKMCreateOFDPacket done [13:04:34]NVStorageSaveData kkm_last_timestamp [13:04:34]File name is /storage/kkm_last_timestamp [13:04:34]Write 4 bytes [13:04:34]NVStorageSaveData done [13:04:34]ExternCall_PrintAddStr [13:04:34]wPrintStart [13:04:34]Write to MH i2c: 01 00 00 1B 3C 57 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 07 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 07 00 1B 3C 00 00 00 00 00 FF 0F 6C [13:04:34]RasterBufferAndPrint [13:04:34]line Счет N : (3)140990 [13:04:34]line ИНН: 02508201610067 [13:04:34]line Контрольно-Кассовый Чек [13:04:34]line ПРОДАЖА [13:04:34]line Товар: 40822938 [13:04:34]line Напиток Фанта 0,5л [13:04:34]line 1.000 * 65.00 [13:04:34]line = 65.00 [13:04:34]line НДС 12% НСП 1% [13:04:34]line > о реализуемом товаре [13:04:34]line ИТОГО: 65.00 [13:04:34]line НСП 1% : 0.57 [13:04:34]line НДС 12% : 6.90 [13:04:34]line Наличными: 65.00 [13:04:34]line Безнал.: 0.00 [13:04:34]line Место: АЗС № 135 "Партнер Нефть" [13:04:34]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [13:04:34]line СНО: Общий режим [13:04:34]line Чек 42 16.05.2024 13:04 [13:04:34]line Смена: 44 ФФД: 1.0 [13:04:34]line ЗНМ: 0300000237 [13:04:34]line РНМ: 0000000000154221 [13:04:34]line Версия ККМ: v1.0 [13:04:34]line ФМ: 0000000000963259 [13:04:34]line ФД: 4982 [13:04:34]line ФПД: 242345305429645 [13:04:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T130439&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4982&fm=242345305429645&tin=02508201610067®Number=0000000000154221&sum=6500 [13:04:34]line 0 [13:04:34]OFD Sender: Processing packet 4982 [packets to send 4, broken 3] [13:04:34]ProducePacketName [13:04:34]name=ofd_packets/00004982 [13:04:34]OFD Sender: To server: pG, [13:04:34]CommunicateWithHost lk.salyk.kg:30040 [13:04:34]ConnectInit lk.salyk.kg [13:04:34]written 0, free lines is 4095 [13:04:34]Connected sock=10 [13:04:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 20 01 00 00 D6 2F 18 01 CC 67 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 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 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 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 67 04 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 76 13 00 00 35 04 06 00 DC 69 69 D7 D6 8D 8E 7F 7D 3C A1 C6 66 B2 [13:04:34]Write to MH i2c: 01 00 00 43 3C 7F [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 07 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: 01 07 00 43 3C 00 00 00 00 00 A4 0C 36 [13:04:34]RasterBufferAndPrint [13:04:34]line [13:04:34]line [13:04:34]line [13:04:34]line [13:04:34]line [13:04:34]written 0, free lines is 3240 [13:04:34]MH_Cut [13:04:34]Write to MH i2c: D1 01 00 4A 3C 01 58 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: D1 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: D1 01 00 [13:04:34]MH_I2C_Read... [13:04:34]Read from MH i2c: D1 01 00 4A 3C 00 57 [13:04:34]Write to MH i2c: 01 00 00 4B 3C 87 [13:04:34]Write i2c OK [13:04:34]MH_I2C_Read... [13:04:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 F3 FE 47 00 65 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 76 13 00 00 F4 03 04 00 2B B0 45 66 B6 04 01 00 00 4E ED 68 A2 22 5B 87 0E [13:04:35]CommunicateWithHost err = 0 [13:04:35]CheckOFDResponse [13:04:35]1017 (14) - 77093643461234 [13:04:35]1041 (16) - 0000000000963259 [13:04:35]1040 (4) - 4982 [13:04:35]1012 (4) - 16.05.2024 07:05 [13:04:35]1206 (1) - 0 [13:04:35]OFD Sender: Remove packet 4982 [13:04:35]ProducePacketName [13:04:35]name=ofd_packets/00004982 [13:04:35]NVStorageDeleteData [13:04:35]OFD Sender: No OFD packet to send [13:04:36]*** Cut start [13:04:36]*** Partial cut [13:04:36]*** CUTSNS_PIN = 1 [13:04:36]*** CUTSNS_PIN = 0 [13:04:36]*** Brake cut motor [13:04:36]Read from MH i2c: 01 [13:04:36]MH_I2C_Read... [13:04:36]*** Stop cut motor [13:04:36]*** Cut end [13:04:36]Read from MH i2c: 01 07 00 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: 01 07 00 4B 3C 00 00 00 00 00 FF 0F 9C [13:04:36]process_action close_receipt done [13:04:36]requested_data is exist [13:04:36]produce_requested_data [13:04:36]requested_item fm.sn is exist - process it [13:04:36]wFMCommunicate request_size=4 [13:04:36]MH_SAM_APDU [13:04:36]CAPDU: 80 11 00 00 [13:04:36]Write to MH i2c: E2 08 00 4C 3C 80 11 00 00 00 00 00 00 02 [13:04:36]Write i2c OK [13:04:36]MH_I2C_Read... [13:04:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:04:36]Read from MH i2c: E2 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 17 00 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 17 00 4C 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 57 [13:04:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:04:36]wFMCommunicate OK [13:04:36]requested_item fd.num is exist - process it [13:04:36]SAM_PROTO_GetFieldsCounters [13:04:36]wFMCommunicate request_size=4 [13:04:36]MH_SAM_APDU [13:04:36]CAPDU: 80 13 00 00 [13:04:36]Write to MH i2c: E2 08 00 4D 3C 80 13 00 00 00 00 00 00 05 [13:04:36]Write i2c OK [13:04:36]MH_I2C_Read... [13:04:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:04:36]Read from MH i2c: E2 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 62 00 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 62 00 4D 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 76 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 51 [13:04:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 76 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:04:36]wFMCommunicate OK [13:04:36]SAM_PROTO_GetFieldsCounters done [13:04:36]requested_item shift.num is exist - process it [13:04:36]requested_item shift.opened is exist - process it [13:04:36]req_shift_opened [13:04:36]FM_GetShiftState [13:04:36]SAM_PROTO_GetShiftState [13:04:36]wFMCommunicate request_size=4 [13:04:36]MH_SAM_APDU [13:04:36]CAPDU: 80 13 01 00 [13:04:36]Write to MH i2c: E2 08 00 4E 3C 80 13 01 00 00 00 00 00 07 [13:04:36]Write i2c OK [13:04:36]MH_I2C_Read... [13:04:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:04:36]Read from MH i2c: E2 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 0E 00 [13:04:36]MH_I2C_Read... [13:04:36]Read from MH i2c: E2 0E 00 4E 3C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 13 [13:04:36]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:04:36]wFMCommunicate OK [13:04:36]SAM_PROTO_GetShiftState done [13:04:36]FM_GetShiftState done [13:04:36]req_shift_opened done [13:04:36]requested_item shift.open_date is exist - process it [13:04:36]req_shift_open_date [13:04:36]req_shift_open_date done [13:04:36]produce_requested_data done [13:04:36]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4982,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [13:04:36]process_action_free close_receipt [13:04:36]json_value_free [13:04:36]json_value_free done [13:04:36]process_json_proto returns [13:04:36]Send response to host [00:00:11] *** EcrCore started. Build 196 *** [00:00:11]MH_InterfaceInit /dev/i2c-1 [00:00:11]Malloc ok [00:00:11]/dev/ttyS4 opened [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 01 00 00 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 D9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 7E [00:00:11]Are we in boot? [00:00:11]We are in boot - try to switch [00:00:11]Write to MH i2c: A0 00 00 02 00 A1 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:11]*** [00:00:11]Read from MH i2c: A0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:11]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:11]*** Waiting for read because exit forced [00:00:11]*** 10 ms more... [00:00:11]*** MH1903S init start (LINUX_LIGHT) [00:00:11]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:11]*** Serial: 3139303353513838 54000000005725D9 (1903SQ88T) [00:00:11]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:11]*** step 0: 5000 (2650, 2350 REF) [00:00:11]*** step 1: 4835 (2500, 2335 REF) [00:00:11]*** step 2: 4676 (2440, 2236 REF) [00:00:11]*** step 3: 4523 (2280, 2243 REF) [00:00:11]*** step 4: 4376 (2160, 2216 REF) [00:00:11]*** step 5: 4235 (2050, 2185 REF) [00:00:11]*** step 6: 4098 (1950, 2148 REF) [00:00:11]*** step 7: 3967 (1870, 2097 REF) [00:00:11]*** step 8: 3840 (1828, 2012 REF) [00:00:11]*** step 9: 3719 (1728, 1991 REF) [00:00:11]*** step 10: 3601 (1675, 1926 REF) [00:00:11]*** step 11: 3488 (1635, 1853 REF) [00:00:11]*** step 12: 3379 (1595, 1784 REF) [00:00:11]*** step 13: 3275 (1565, 1710 REF) [00:00:11]*** step 14: 3174 (1543, 1631 REF) [00:00:11]*** step 15: 3077 (1523, 1554 REF) [00:00:11]*** step 16: 2983 (1503, 1480 REF) [00:00:11]*** step 17: 2893 (1486, 1407 REF) [00:00:11]*** step 18: 2806 (1466, 1340 REF) [00:00:11]*** step 19: 2723 (1426, 1297 REF) [00:00:11]*** step 20: 2642 (1406, 1236 REF) [00:00:11]*** step 21: 2565 (1384, 1181 REF) [00:00:11]*** step 22: 2490 (1364, 1126 REF) [00:00:11]*** step 23: 2418 (1344, 1074 REF) [00:00:11]*** step 24: 2349 (1322, 1027 REF) [00:00:11]*** step 25: 2283 (1302, 981 REF) [00:00:11]*** step 26: 2218 (1282, 936 REF) [00:00:11]*** step 27: 2157 (1262, 895 REF) [00:00:11]*** step 28: 2097 (1242, 855 REF) [00:00:11]*** step 29: 2040 (1222, 818 REF) [00:00:11]*** step 30: 1985 (1202, 783 REF) [00:00:11]*** step 31: 1932 (1191, 741 REF) [00:00:11]*** step 32: 1880 (1181, 699 REF) [00:00:11]*** step 33: 1831 (1171, 660 REF) [00:00:11]*** step 34: 1784 (1161, 623 REF) [00:00:11]*** step 35: 1738 (1151, 587 REF) [00:00:11]*** step 36: 1694 (1141, 553 REF) [00:00:11]*** step 37: 1652 (1131, 521 REF) [00:00:11]*** step 38: 1611 (1121, 490 REF) [00:00:11]*** step 39: 1572 (1111, 461 REF) [00:00:11]*** step 40: 1534 (1103, 431 REF) [00:00:11]*** step 41: 1497 (1093, 404 REF) [00:00:11]*** step 42: 1462 (1083, 379 REF) [00:00:11]*** step 43: 1428 (1073, 355 REF) [00:00:11]*** step 44: 1396 (1063, 333 REF) [00:00:11]*** step 45: 1365 (1053, 312 REF) [00:00:11]*** step 46: 1334 (1043, 291 REF) [00:00:11]*** step 47: 1305 (1033, 272 REF) [00:00:11]*** step 48: 1277 (1023, 254 REF) [00:00:11]*** step 49: 1250 (1013, 237 REF) [00:00:11]*** step 50: 1224 (990, 234 REF) [00:00:11]*** step 51: 1199 (980, 219 REF) [00:00:11]*** step 52: 1175 (970, 205 REF) [00:00:11]*** step 53: 1152 (960, 192 REF) [00:00:11]*** step 54: 1130 (950, 180 REF) [00:00:11]*** step 55: 1108 (940, 168 REF) [00:00:11]*** step 56: 1088 (930, 158 REF) [00:00:11]*** step 57: 1068 (920, 148 REF) [00:00:11]*** step 58: 1049 (910, 139 REF) [00:00:11]*** step 59: 1030 (900, 130 REF) [00:00:11]*** step 60: 1012 (890, 122 REF) [00:00:11]*** step 61: 995 (880, 115 REF) [00:00:11]*** step 62: 979 (870, 109 REF) [00:00:11]*** step 63: 963 (860, 103 REF) [00:00:11]*** step 64: 948 (850, 98 REF) [00:00:11]*** step 65: 933 (840, 93 REF) [00:00:11]*** step 66: 919 (830, 89 REF) [00:00:11]*** step 67: 905 (820, 85 REF) [00:00:11]*** step 68: 892 (810, 82 REF) [00:00:11]*** step 69: 879 (800, 79 REF) [00:00:11]*** step 70: 867 (790, 77 REF) [00:00:11]*** step 71: 855 (780, 75 REF) [00:00:11]*** step 72: 844 (770, 74 REF) [00:00:11]*** step 73: 833 (760, 73 REF) [00:00:11]*** step 74: 822 (750, 72 REF) [00:00:11]*** step 75: 812 (740, 72 REF) [00:00:11]*** step 76: 803 (730, 73 REF) [00:00:11]*** step 77: 793 (720, 73 REF) [00:00:11]*** step 78: 784 (710, 74 REF) [00:00:11]*** step 79: 776 (700, 76 REF) [00:00:11]*** step 80: 767 (690, 77 REF) [00:00:11]*** step 81: 759 (680, 79 REF) [00:00:11]*** step 82: 751 (670, 81 REF) [00:00:11]*** step 83: 744 (660, 84 REF) [00:00:11]*** step 84: 737 (650, 87 REF) [00:00:11]*** step 85: 730 (640, 90 REF) [00:00:11]*** step 86: 723 (630, 93 REF) [00:00:11]*** step 87: 717 (620, 97 REF) [00:00:11]*** step 88: 710 (610, 100 REF) [00:00:11]*** step 89: 705 (600, 105 REF) [00:00:11]*** step 90: 699 [00:00:11]*** step 91: 693 [00:00:11]*** step 92: 688 [00:00:11]*** step 93: 683 [00:00:11]*** step 94: 678 [00:00:11]*** step 95: 673 [00:00:11]*** step 96: 669 [00:00:11]*** step 97: 664 [00:00:11]*** step 98: 660 [00:00:11]*** step 99: 656 [00:00:11]*** step 100: 652 [00:00:11]*** step 101: 648 [00:00:11]*** step 102: 644 [00:00:11]*** step 103: 641 [00:00:11]*** step 104: 638 [00:00:11]*** step 105: 634 [00:00:11]*** step 106: 631 [00:00:11]*** step 107: 628 [00:00:11]*** step 108: 625 [00:00:11]*** step 109: 622 [00:00:11]*** step 110: 620 [00:00:11]*** step 111: 617 [00:00:11]*** step 112: 615 [00:00:11]*** step 113: 612 [00:00:11]*** step 114: 610 [00:00:11]*** step 115: 608 [00:00:11]*** step 116: 605 [00:00:11]*** step 117: 603 [00:00:11]*** step 118: 601 [00:00:11]*** step 119: 599 [00:00:11]*** printer: Printer HW initialized [00:00:11]*** initSamCard finished [00:00:11]*** RTC: 1908749+1713957228=1715865977 [00:00:11]*** BPK Status Register BPK_RDY = 0x0 [00:00:11]*** SEN State Register SEN_STATE = 0x200ff [00:00:11]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:11]*** Analog Control Register 0 SEN_ANA0 = 0x33500622 [00:00:11]*** Is cutter blocked? [00:00:12]MH_GetMetrics [00:00:12]Write to MH i2c: 00 00 00 03 00 02 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 D9 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 7F [00:00:12]Are we in boot? [00:00:12]We are not in boot now [00:00:12]Write to MH i2c: 01 00 00 04 00 04 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:12]Model is 3 [00:00:12]MH firmware is 30620 [00:00:12]MH boot firmware is 3 [00:00:12]MH_SetPrinterDots 448 [00:00:12]HeadWidthInBytes 56 [00:00:12]maxmasksize 7 [00:00:12]Write to MH i2c: D6 06 00 05 00 78 00 40 00 FF FF 96 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:12]Write to MH i2c: D5 00 00 06 00 DA [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]LoadDictionaryFromArray [00:00:12]Load OK [00:00:12]ExternCall_SetCallbacks [00:00:12]NVStorageInit [00:00:12]MH_GetDate [00:00:12]Write to MH i2c: F0 00 00 07 00 F6 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: F0 09 00 07 00 00 7A 09 46 66 6C E9 28 66 11 [13:26:18]Current date/time: 16.05.2024 13:26 [13:26:18]FM_Init [13:26:18]wFMConnect [13:26:18]MH_SAM_On [13:26:18]Write to MH i2c: E0 00 00 08 00 E7 [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]*** iso7816_init finished! [13:26:18]*** atr: [13:26:18]*** 0F 3B D5 18 FF 81 91 FE [13:26:18]*** 1F C3 80 73 C8 21 10 0A [13:26:18]*** 00 00 00 00 00 00 00 00 [13:26:18]*** 00 00 00 00 00 00 00 00 [13:26:18]*** 00 00 00 00 00 00 00 00 [13:26:18]*** 00 00 00 00 00 00 00 00 [13:26:18]*** 00 00 00 00 00 00 00 00 [13:26:18]*** 00 00 00 00 00 00 00 00 [13:26:18]Read from MH i2c: E0 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E0 10 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [13:26:18]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [13:26:18]wFMCommunicate request_size=10 [13:26:18]MH_SAM_APDU [13:26:18]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [13:26:18]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [13:26:18]Read from MH i2c: E2 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 03 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [13:26:18]RAPDU: 90 00 [13:26:18]wFMCommunicate OK [13:26:18]wFMCommunicate request_size=4 [13:26:18]MH_SAM_APDU [13:26:18]CAPDU: 80 11 00 00 [13:26:18]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:18]Read from MH i2c: E2 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 17 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D9 [13:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:26:18]wFMCommunicate OK [13:26:18]Detected FM SN is 0000000000963259 [13:26:18]Stored FM SN is 0000000000963259 [13:26:18]wFMCommunicate request_size=9 [13:26:18]MH_SAM_APDU [13:26:18]CAPDU: 80 16 00 00 04 09 2E 01 00 [13:26:18]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 09 2E 01 00 00 00 CA [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [13:26:18]Read from MH i2c: E2 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 03 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [13:26:18]RAPDU: 90 00 [13:26:18]wFMCommunicate OK [13:26:18]FM PIN OK [13:26:18]wFMCommunicate request_size=8 [13:26:18]MH_SAM_APDU [13:26:18]CAPDU: 80 14 04 00 03 02 00 01 [13:26:18]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [13:26:18]Read from MH i2c: E2 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 03 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [13:26:18]RAPDU: 90 00 [13:26:18]wFMCommunicate OK [13:26:18]wFMCommunicate request_size=13 [13:26:18]MH_SAM_APDU [13:26:18]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [13:26:18]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [13:26:18]Read from MH i2c: E2 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 03 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [13:26:18]RAPDU: 90 00 [13:26:18]wFMCommunicate OK [13:26:18]wFMCommunicate request_size=4 [13:26:18]MH_SAM_APDU [13:26:18]CAPDU: 80 11 00 00 [13:26:18]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:18]Read from MH i2c: E2 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 17 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 DD [13:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:26:18]wFMCommunicate OK [13:26:18]DocumentArchiveInit [13:26:18]Start Httpd... [13:26:18]Httpd thread 3067538788 created [13:26:18]Write to MH i2c: 01 00 00 0F 00 0F [13:26:18]Write i2c OK [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: 01 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: 01 07 00 [13:26:18]MH_I2C_Read... [13:26:18]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [13:26:18]MH Int Process started [13:26:18]Allocated Socket 8 [13:26:18]Bind OK [13:26:18]Listen OK [13:26:18]httpd running on port 8080 [13:26:18]Waiting for new connection... [13:26:18]OFD Sender: Processing packet 4983 [packets to send 4, broken 3] [13:26:18]ProducePacketName [13:26:18]name=ofd_packets/00004983 [13:26:18]OFD Sender: To server: pG, [13:26:18]CommunicateWithHost lk.salyk.kg:30040 [13:26:18]ConnectInit lk.salyk.kg [13:26:18]Connected sock=7 [13:26:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 20 01 00 00 69 C6 18 01 65 99 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 35 36 30 06 04 1A 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AD D0 BD D0 B5 D1 81 D0 B0 D0 B9 20 35 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 75 04 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 77 13 00 00 35 04 06 00 04 F9 65 A0 F9 0E 98 90 9F EE 37 41 69 6A [13:26:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 53 BF 47 00 26 DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 77 13 00 00 F4 03 04 00 3C B5 45 66 B6 04 01 00 00 C6 D5 E1 96 ED 4F B3 A3 [13:26:18]CommunicateWithHost err = 0 [13:26:18]CheckOFDResponse [13:26:18]1017 (14) - 77093643461234 [13:26:18]1041 (16) - 0000000000963259 [13:26:18]1040 (4) - 4983 [13:26:18]1012 (4) - 16.05.2024 07:26 [13:26:18]1206 (1) - 0 [13:26:18]OFD Sender: Remove packet 4983 [13:26:18]ProducePacketName [13:26:18]name=ofd_packets/00004983 [13:26:18]NVStorageDeleteData [13:26:19]OFD Sender: No OFD packet to send [13:26:19]accept exits with 9 [13:26:19]New connection [13:26:19]New thread 3067252068 created [13:26:19]Waiting for new connection... [13:26:19] Sock 9.Parse request [13:26:19]Sock 9.Check first char [13:26:19]Sock 9.First char is OK [13:26:19]request: POST /json_proto HTTP/1.0 [13:26:19]Method: POST [13:26:19]URL: /json_proto [13:26:19]Method is POST - this is cgi request [13:26:19]url: /json_proto [13:26:19]query_string will be loaded in cgi processing [13:26:19]execute_cgi json_proto POST (null) [13:26:19]execute_cgi path=json_proto method=POST [13:26:19]POST find Content-Length [13:26:19]Host: 172.17.44.4:8080 [13:26:19]Content-Length: 215 [13:26:19]Content-Type: application/json [13:26:19] [13:26:19]POST finish read [13:26:19]Found Content-Length = 215 [13:26:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:19]execute_script... [13:26:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:19]POST & json_proto [13:26:19]process_json_proto [13:26:19]json parsed OK: [13:26:19]protocol is kg_v1.0 [13:26:19]action value=get_value [13:26:19]process_action get_value [13:26:19]cmd_get_value [13:26:19]process_action get_value done [13:26:19]requested_data is exist [13:26:19]produce_requested_data [13:26:19]requested_item kkm.sn is exist - process it [13:26:19]requested_item kkm.ver is exist - process it [13:26:19]requested_item fm.sn is exist - process it [13:26:19]wFMCommunicate request_size=4 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 11 00 00 [13:26:19]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:19]Read from MH i2c: E2 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 17 00 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 DF [13:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:26:19]wFMCommunicate OK [13:26:19]requested_item fd.num is exist - process it [13:26:19]SAM_PROTO_GetFieldsCounters [13:26:19]wFMCommunicate request_size=4 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 13 00 00 [13:26:19]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:19]Read from MH i2c: E2 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 62 00 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 77 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [13:26:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 77 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:19]wFMCommunicate OK [13:26:19]SAM_PROTO_GetFieldsCounters done [13:26:19]requested_item shift.num is exist - process it [13:26:19]requested_item shift.opened is exist - process it [13:26:19]req_shift_opened [13:26:19]FM_GetShiftState [13:26:19]SAM_PROTO_GetShiftState [13:26:19]wFMCommunicate request_size=4 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 13 01 00 [13:26:19]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:19]Read from MH i2c: E2 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 0E 00 [13:26:19]MH_I2C_Read... [13:26:19]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 9B [13:26:19]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:26:19]wFMCommunicate OK [13:26:19]SAM_PROTO_GetShiftState done [13:26:19]FM_GetShiftState done [13:26:19]req_shift_opened done [13:26:19]requested_item shift.open_date is exist - process it [13:26:19]req_shift_open_date [13:26:19]req_shift_open_date done [13:26:19]produce_requested_data done [13:26:19]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":4983,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [13:26:19]process_action_free get_value [13:26:19]json_value_free [13:26:19]json_value_free done [13:26:19]process_json_proto returns [13:26:19]Send response to host [13:26:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":4983,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [13:26:19]free response buf [13:26:19]execute_script done [13:26:19]execute_script returns [13:26:19]free content buf [13:26:19]Sock 9.Close socket [13:26:19]Sock 9.Thread stoped [13:26:19]accept exits with 7 [13:26:19]New connection [13:26:19]New thread 3067108708 created [13:26:19]Thread 3067252068 joined [13:26:19]Waiting for new connection... [13:26:19] Sock 7.Parse request [13:26:19]Sock 7.Check first char [13:26:19]Sock 7.First char is OK [13:26:19]request: POST /json_proto HTTP/1.0 [13:26:19]Method: POST [13:26:19]URL: /json_proto [13:26:19]Method is POST - this is cgi request [13:26:19]url: /json_proto [13:26:19]query_string will be loaded in cgi processing [13:26:19]execute_cgi json_proto POST (null) [13:26:19]execute_cgi path=json_proto method=POST [13:26:19]POST find Content-Length [13:26:19]Host: 172.17.44.4:8080 [13:26:19]Content-Length: 331 [13:26:19]Content-Type: application/json [13:26:19] [13:26:19]POST finish read [13:26:19]Found Content-Length = 331 [13:26:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:26:19]execute_script... [13:26:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [13:26:19]POST & json_proto [13:26:19]process_json_proto [13:26:19]json parsed OK: [13:26:19]protocol is kg_v1.0 [13:26:19]action value=get_value [13:26:19]process_action get_value [13:26:19]cmd_get_value [13:26:19]process_action get_value done [13:26:19]requested_data is exist [13:26:19]produce_requested_data [13:26:19]requested_item fm.sale.total is exist - process it [13:26:19]SAM_PROTO_GetFMData [13:26:19]wFMCommunicate request_size=4 [13:26:19]MH_SAM_APDU [13:26:19]CAPDU: 80 13 03 00 [13:26:19]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:26:19]Write i2c OK [13:26:19]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 FD 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 FD 00 13 00 00 BF 04 85 04 BB 04 6E 04 04 00 1F 13 00 00 69 04 A0 00 6F 04 04 00 EC 12 00 00 B1 04 04 00 24 C2 64 0F 70 04 04 00 BC B8 F2 06 72 04 04 00 68 09 72 08 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 12 82 A2 01 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 BF DD 22 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 C5 [13:26:20]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 1F 13 00 00 69 04 A0 00 6F 04 04 00 EC 12 00 00 B1 04 04 00 24 C2 64 0F 70 04 04 00 BC B8 F2 06 72 04 04 00 68 09 72 08 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 12 82 A2 01 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 BF DD 22 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [13:26:20]wFMCommunicate OK [13:26:20]wFMCommunicate request_size=4 [13:26:20]MH_SAM_APDU [13:26:20]CAPDU: 80 17 00 00 [13:26:20]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 FD 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 FD 00 14 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 31 [13:26:20]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:26:20]wFMCommunicate OK [13:26:20]wFMCommunicate request_size=4 [13:26:20]MH_SAM_APDU [13:26:20]CAPDU: 80 17 00 00 [13:26:20]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:26:20]Read from MH i2c: E2 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 FD 00 [13:26:20]MH_I2C_Read... [13:26:20]Read from MH i2c: E2 FD 00 15 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 39 [13:26:20]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 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 90 00 [13:26:20]wFMCommunicate OK [13:26:20]wFMCommunicate request_size=4 [13:26:20]MH_SAM_APDU [13:26:20]CAPDU: 80 17 00 00 [13:26:20]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:26:20]Write i2c OK [13:26:20]MH_I2C_Read... [13:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:26:21]Read from MH i2c: E2 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 FD 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 FD 00 16 00 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 10 [13:26:21]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [13:26:21]wFMCommunicate OK [13:26:21]wFMCommunicate request_size=4 [13:26:21]MH_SAM_APDU [13:26:21]CAPDU: 80 17 00 00 [13:26:21]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [13:26:21]Read from MH i2c: E2 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 DC 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 DC 00 17 00 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 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 7B [13:26:21]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:26:21]wFMCommunicate OK [13:26:21]SAM_PROTO_GetFMData done [13:26:21]requested_item fm.sale_refund.total is exist - process it [13:26:21]requested_item fm.buy.total is exist - process it [13:26:21]requested_item shift.sale.total is exist - process it [13:26:21]SAM_PROTO_GetShiftData [13:26:21]wFMCommunicate request_size=4 [13:26:21]MH_SAM_APDU [13:26:21]CAPDU: 80 13 02 00 [13:26:21]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:26:21]Read from MH i2c: E2 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 FD 00 [13:26:21]MH_I2C_Read... [13:26:21]Read from MH i2c: E2 FD 00 18 00 00 AE 04 AA 04 AA 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 BC B1 15 70 04 03 00 7C FF 0B 72 04 03 00 40 B2 09 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 C2 4D 02 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 21 31 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 13 [13:26:21]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2B 00 00 00 69 04 9B 00 6F 04 04 00 2B 00 00 00 B1 04 03 00 BC B1 15 70 04 03 00 7C FF 0B 72 04 03 00 40 B2 09 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 C2 4D 02 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 21 31 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [13:26:21]wFMCommunicate OK [13:26:21]wFMCommunicate request_size=4 [13:26:21]MH_SAM_APDU [13:26:21]CAPDU: 80 17 00 00 [13:26:21]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:26:21]Write i2c OK [13:26:21]MH_I2C_Read... [13:26:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:26:22]Read from MH i2c: E2 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 FD 00 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 FD 00 19 00 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 BB [13:26:22]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 [13:26:22]wFMCommunicate OK [13:26:22]wFMCommunicate request_size=4 [13:26:22]MH_SAM_APDU [13:26:22]CAPDU: 80 17 00 00 [13:26:22]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:26:22]Write i2c OK [13:26:22]MH_I2C_Read... [13:26:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:26:22]Read from MH i2c: E2 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 FD 00 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 FD 00 1A 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 51 [13:26:22]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 [13:26:22]wFMCommunicate OK [13:26:22]wFMCommunicate request_size=4 [13:26:22]MH_SAM_APDU [13:26:22]CAPDU: 80 17 00 00 [13:26:22]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:26:22]Write i2c OK [13:26:22]MH_I2C_Read... [13:26:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:26:22]Read from MH i2c: E2 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 FD 00 [13:26:22]MH_I2C_Read... [13:26:22]Read from MH i2c: E2 FD 00 1B 00 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 0D [13:26:22]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 [13:26:22]wFMCommunicate OK [13:26:22]wFMCommunicate request_size=4 [13:26:22]MH_SAM_APDU [13:26:22]CAPDU: 80 17 00 00 [13:26:22]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:26:22]Write i2c OK [13:26:22]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 CB 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 CB 00 1C 00 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 85 [13:26:23]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 [13:26:23]wFMCommunicate OK [13:26:23]SAM_PROTO_GetShiftData done [13:26:23]requested_item shift.sale.total_cash is exist - process it [13:26:23]requested_item shift.sale_refund.total is exist - process it [13:26:23]requested_item shift.sale_refund.total_cash is exist - process it [13:26:23]requested_item shift.buy.total is exist - process it [13:26:23]requested_item shift.buy.total_cash is exist - process it [13:26:23]produce_requested_data done [13:26:23]produce_requested_data return {"fm.sale.total":2582615.40,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":14217.56,"shift.sale.total_cash":7863.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:26:23]process_action_free get_value [13:26:23]json_value_free [13:26:23]json_value_free done [13:26:23]process_json_proto returns [13:26:23]Send response to host [13:26:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2582615.40,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":14217.56,"shift.sale.total_cash":7863.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:26:23]free response buf [13:26:23]execute_script done [13:26:23]execute_script returns [13:26:23]free content buf [13:26:23]Sock 7.Close socket [13:26:23]Sock 7.Thread stoped [13:26:23]accept exits with 9 [13:26:23]New connection [13:26:23]New thread 3067252068 created [13:26:23]Thread 3067108708 joined [13:26:23]Waiting for new connection... [13:26:23] Sock 9.Parse request [13:26:23]Sock 9.Check first char [13:26:23]Sock 9.First char is OK [13:26:23]request: POST /json_proto HTTP/1.0 [13:26:23]Method: POST [13:26:23]URL: /json_proto [13:26:23]Method is POST - this is cgi request [13:26:23]url: /json_proto [13:26:23]query_string will be loaded in cgi processing [13:26:23]execute_cgi json_proto POST (null) [13:26:23]execute_cgi path=json_proto method=POST [13:26:23]POST find Content-Length [13:26:23]Host: 172.17.44.4:8080 [13:26:23]Content-Length: 833 [13:26:23]Content-Type: application/json [13:26:23] [13:26:23]POST finish read [13:26:23]Found Content-Length = 833 [13:26:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.20, "quantity" : 8.780, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:23]execute_script... [13:26:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992789", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.20, "quantity" : 8.780, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 300.28 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:26:23]POST & json_proto [13:26:23]process_json_proto [13:26:23]json parsed OK: [13:26:23]protocol is kg_v1.0 [13:26:23]action value=close_receipt [13:26:23]process_action close_receipt [13:26:23]cmd_close_receipt [13:26:23]MH_GetDate [13:26:23]Write to MH i2c: F0 00 00 1D 00 0C [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: F0 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: F0 09 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: F0 09 00 1D 00 00 7F 09 46 66 6C E9 28 66 2C [13:26:23]GetLastDocTimeStamp 1715864693 [13:26:23]current date 1715865983 [13:26:23]FM_GetShiftState [13:26:23]SAM_PROTO_GetShiftState [13:26:23]wFMCommunicate request_size=4 [13:26:23]MH_SAM_APDU [13:26:23]CAPDU: 80 13 01 00 [13:26:23]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [13:26:23]Write i2c OK [13:26:23]MH_I2C_Read... [13:26:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:23]Read from MH i2c: E2 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 0E 00 [13:26:23]MH_I2C_Read... [13:26:23]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A7 [13:26:23]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:26:23]wFMCommunicate OK [13:26:23]SAM_PROTO_GetShiftState done [13:26:23]FM_GetShiftState done [13:26:23]opened in 1715818246 [13:26:23]opened+sec_in_day 1715904646 [13:26:23]quantity*price = 30027 [13:26:23]sum+1 = 30029 [13:26:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.28 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 0.00 Безнал.: 300.28 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 44 16.05.2024 13:26 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: Демир КИ Банк ФМ: 0000000000963259 ФД: 4984 ФПД: 142763441046083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T132623&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4984&fm=142763441046083&tin=02508201610067®Number=0000000000154221&sum=30028 [13:26:24]StoreToDocumentArchive [13:26:24]shift 44 fd 4984 [13:26:24]save to /storage/0044/doc_00004984 [13:26:24]save last doc name /storage/0044/doc_00004984 to /storage/kkm_last_doc_name [13:26:24]save OK [13:26:24]Clear old archive folders... [13:26:24]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:26:24]tlvbuf is 011E3790 [13:26:24]SAM_PROTO_ClearQueue [13:26:24]wFMCommunicate request_size=4 [13:26:24]MH_SAM_APDU [13:26:24]CAPDU: 80 09 00 00 [13:26:24]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:26:24]Write i2c OK [13:26:24]MH_I2C_Read... [13:26:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:26:24]Read from MH i2c: E2 [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: E2 03 00 [13:26:24]MH_I2C_Read... [13:26:24]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:26:24]RAPDU: 90 00 [13:26:24]wFMCommunicate OK [13:26:24]SAM_PROTO_ClearQueue done [13:26:24]KKMCreateOFDPacket [13:26:24]OFDProtocolAddRootSTLVToBuf [13:26:24]FM_MakeSignedData [13:26:24]FM_MakeSignedData [13:26:24]SAM_PROTO_SignData [13:26:24]wFMCommunicate request_size=4 [13:26:24]MH_SAM_APDU [13:26:24]CAPDU: 80 0D 01 02 [13:26:24]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:26:24]Write i2c OK [13:26:24]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:26:25]RAPDU: 90 00 [13:26:25]wFMCommunicate OK [13:26:25]wFMCommunicate request_size=255 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F 09 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 78 13 00 00 35 04 06 00 81 D7 [13:26:25]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F 09 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 78 13 00 00 35 04 06 00 81 D7 00 00 63 [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:26:25]RAPDU: 90 00 [13:26:25]wFMCommunicate OK [13:26:25]wFMCommunicate request_size=9 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 0D 02 02 04 B4 30 C2 43 [13:26:25]Write to MH i2c: E2 0C 00 2E 00 80 0D 02 02 04 00 B4 30 C2 43 00 00 99 [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:26:25]RAPDU: 90 00 [13:26:25]wFMCommunicate OK [13:26:25]wFMCommunicate request_size=4 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 0D 03 02 [13:26:25]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 0B 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 0B 00 2F 00 00 DF D4 61 AA B6 95 70 FF 90 00 23 [13:26:25]RAPDU: DF D4 61 AA B6 95 70 FF 90 00 [13:26:25]wFMCommunicate OK [13:26:25]SAM_PROTO_SignData done [13:26:25]FM_MakeSignedData done [13:26:25]CreateOFDProtocolMessage [13:26:25]wFMCommunicate request_size=4 [13:26:25]MH_SAM_APDU [13:26:25]CAPDU: 80 11 00 00 [13:26:25]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:25]Read from MH i2c: E2 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 17 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 FF [13:26:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:26:25]wFMCommunicate OK [13:26:25]CreateOFDProtocolMessage done [13:26:25]OFDSenderStorePacket 4984 [13:26:25]StoreOFDPacket docnum=4984 [13:26:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0E 01 00 00 5A DE 06 01 4D 30 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F 09 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 78 13 00 00 35 04 06 00 81 D7 B4 30 C2 43 DF D4 61 AA B6 95 70 FF [13:26:25]CheckFolder [13:26:25]dirname=/storage/ofd_packets [13:26:25]CheckFolder done [13:26:25]ProducePacketName [13:26:25]name=ofd_packets/00004984 [13:26:25]NVStorageSaveData ofd_packets/00004984 [13:26:25]File name is /storage/ofd_packets/00004984 [13:26:25]Write 300 bytes [13:26:25]NVStorageSaveData done [13:26:25]OFDSenderStorePacket done [13:26:25]KKMCreateOFDPacket done [13:26:25]NVStorageSaveData kkm_last_timestamp [13:26:25]File name is /storage/kkm_last_timestamp [13:26:25]Write 4 bytes [13:26:25]NVStorageSaveData done [13:26:25]ExternCall_PrintAddStr [13:26:25]wPrintStart [13:26:25]Write to MH i2c: 01 00 00 31 00 31 [13:26:25]Write i2c OK [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: 01 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: 01 07 00 [13:26:25]MH_I2C_Read... [13:26:25]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:26:25]RasterBufferAndPrint [13:26:25]line Счет N : (1)1992789 [13:26:25]OFD Sender: Processing packet 4984 [packets to send 4, broken 3] [13:26:25]ProducePacketName [13:26:25]name=ofd_packets/00004984 [13:26:25]OFD Sender: To server: pG, [13:26:25]CommunicateWithHost lk.salyk.kg:30040 [13:26:25]ConnectInit lk.salyk.kg [13:26:25]line ИНН: 02508201610067 [13:26:25]line Контрольно-Кассовый Чек [13:26:25]line ПРОДАЖА [13:26:25]line ТРК (МРК, ГНК) : 81 [13:26:25]line Товар: 2711190000 [13:26:25]line ГАЗ-К-5 [13:26:25]line 8.780 * 34.20 [13:26:25]line = 300.28 [13:26:25]line НДС 12% НСП 1% [13:26:25]line > о реализуемом товаре [13:26:25]line ИТОГО: 300.28 [13:26:25]line НСП 1% : 2.66 [13:26:25]line НДС 12% : 31.89 [13:26:25]line Наличными: 0.00 [13:26:25]line Безнал.: 300.28 [13:26:25]line Место: АЗС № 135 "Партнер Нефть" [13:26:25]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [13:26:25]line СНО: Общий режим [13:26:25]line Чек 44 16.05.2024 13:26 [13:26:25]line Смена: 44 ФФД: 1.0 [13:26:25]line ЗНМ: 0300000237 [13:26:25]line РНМ: 0000000000154221 [13:26:25]line Версия ККМ: v1.0 [13:26:25]line Платежная система: Демир КИ Банк [13:26:25]line ФМ: 0000000000963259 [13:26:25]line ФД: 4984 [13:26:25]line ФПД: 142763441046083 [13:26:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T132623&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4984&fm=142763441046083&tin=02508201610067®Number=0000000000154221&sum=30028 [13:26:25]written 0, free lines is 4095 [13:26:25]Connected sock=10 [13:26:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0E 01 00 00 5A DE 06 01 4D 30 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 7F 09 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 78 13 00 00 35 04 06 00 81 D7 B4 30 C2 43 DF D4 61 AA B6 95 70 FF [13:26:26]Write to MH i2c: 01 00 00 5B 00 5B [13:26:26]Write i2c OK [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: 01 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: 01 07 00 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: 01 07 00 5B 00 00 00 00 00 00 95 0C 03 [13:26:26]RasterBufferAndPrint [13:26:26]line [13:26:26]line [13:26:26]line [13:26:26]line [13:26:26]line [13:26:26]written 0, free lines is 3241 [13:26:26]MH_Cut [13:26:26]Write to MH i2c: D1 01 00 62 00 01 34 [13:26:26]Write i2c OK [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: D1 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: D1 01 00 [13:26:26]MH_I2C_Read... [13:26:26]Read from MH i2c: D1 01 00 62 00 00 33 [13:26:26]Write to MH i2c: 01 00 00 63 00 63 [13:26:26]Write i2c OK [13:26:26]MH_I2C_Read... [13:26:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 09 98 47 00 EF 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 78 13 00 00 F4 03 04 00 43 B5 45 66 B6 04 01 00 00 6E FD 52 1E E4 68 EC A5 [13:26:26]CommunicateWithHost err = 0 [13:26:26]CheckOFDResponse [13:26:26]1017 (14) - 77093643461234 [13:26:26]1041 (16) - 0000000000963259 [13:26:26]1040 (4) - 4984 [13:26:26]1012 (4) - 16.05.2024 07:26 [13:26:26]1206 (1) - 0 [13:26:26]OFD Sender: Remove packet 4984 [13:26:26]ProducePacketName [13:26:26]name=ofd_packets/00004984 [13:26:26]NVStorageDeleteData [13:26:27]OFD Sender: No OFD packet to send [13:26:27]*** Cut start [13:26:27]*** Partial cut [13:26:27]*** CUTSNS_PIN = 1 [13:26:27]*** CUTSNS_PIN = 0 [13:26:27]*** Brake cut motor [13:26:27]Read from MH i2c: *** Stop cut motor [13:26:27]01 *** Cut end [13:26:27] [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: 01 07 00 [13:26:27]MH_I2C_Read... [13:26:27]Read from MH i2c: 01 07 00 63 00 00 00 00 00 00 FF 0F 78 [13:26:27]process_action close_receipt done [13:26:27]requested_data is exist [13:26:27]produce_requested_data [13:26:27]requested_item fm.sn is exist - process it [13:26:27]wFMCommunicate request_size=4 [13:26:27]MH_SAM_APDU [13:26:27]CAPDU: 80 11 00 00 [13:26:27]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [13:26:27]Write i2c OK [13:26:27]MH_I2C_Read... [13:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:26:28]Read from MH i2c: E2 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 17 00 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 33 [13:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:26:28]wFMCommunicate OK [13:26:28]requested_item fd.num is exist - process it [13:26:28]SAM_PROTO_GetFieldsCounters [13:26:28]wFMCommunicate request_size=4 [13:26:28]MH_SAM_APDU [13:26:28]CAPDU: 80 13 00 00 [13:26:28]Write to MH i2c: E2 08 00 65 00 80 13 00 00 00 00 00 00 E1 [13:26:28]Write i2c OK [13:26:28]MH_I2C_Read... [13:26:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:26:28]Read from MH i2c: E2 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 62 00 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 62 00 65 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 78 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [13:26:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 78 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:26:28]wFMCommunicate OK [13:26:28]SAM_PROTO_GetFieldsCounters done [13:26:28]requested_item shift.num is exist - process it [13:26:28]requested_item shift.opened is exist - process it [13:26:28]req_shift_opened [13:26:28]FM_GetShiftState [13:26:28]SAM_PROTO_GetShiftState [13:26:28]wFMCommunicate request_size=4 [13:26:28]MH_SAM_APDU [13:26:28]CAPDU: 80 13 01 00 [13:26:28]Write to MH i2c: E2 08 00 66 00 80 13 01 00 00 00 00 00 E3 [13:26:28]Write i2c OK [13:26:28]MH_I2C_Read... [13:26:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:26:28]Read from MH i2c: E2 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 0E 00 [13:26:28]MH_I2C_Read... [13:26:28]Read from MH i2c: E2 0E 00 66 00 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 EF [13:26:28]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:26:28]wFMCommunicate OK [13:26:28]SAM_PROTO_GetShiftState done [13:26:28]FM_GetShiftState done [13:26:28]req_shift_opened done [13:26:28]requested_item shift.open_date is exist - process it [13:26:28]req_shift_open_date [13:26:28]req_shift_open_date done [13:26:28]produce_requested_data done [13:26:28]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4984,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [13:26:28]process_action_free close_receipt [13:26:28]json_value_free [13:26:28]json_value_free done [13:26:28]process_json_proto returns [13:26:28]Send response to host [13:26:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4984,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [13:26:28]free response buf [13:26:28]execute_script done [13:26:28]execute_script returns [13:26:28]free content buf [13:26:28]Sock 9.Close socket [13:26:28]Sock 9.Thread stoped [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]OFD Sender: No OFD packet to send [13:28:22]OFD Sender: No OFD packet to send [13:28:27]OFD Sender: No OFD packet to send [13:28:32]OFD Sender: No OFD packet to send [13:28:37]OFD Sender: No OFD packet to send [13:28:42]OFD Sender: No OFD packet to send [13:28:47]OFD Sender: No OFD packet to send [13:28:52]OFD Sender: No OFD packet to send [13:28:57]OFD Sender: No OFD packet to send [13:29:02]OFD Sender: No OFD packet to send [13:29:07]OFD Sender: No OFD packet to send [13:29:12]OFD Sender: No OFD packet to send [13:29:17]OFD Sender: No OFD packet to send [13:29:22]OFD Sender: No OFD packet to send [13:29:27]OFD Sender: No OFD packet to send [13:29:32]OFD Sender: No OFD packet to send [13:29:37]OFD Sender: No OFD packet to send [13:29:42]OFD Sender: No OFD packet to send [13:29:47]OFD Sender: No OFD packet to send [13:29:52]OFD Sender: No OFD packet to send [13:29:57]OFD Sender: No OFD packet to send [13:30:02]OFD Sender: No OFD packet to send [13:30:07]OFD Sender: No OFD packet to send [13:30:12]OFD Sender: No OFD packet to send [13:30:17]OFD Sender: No OFD packet to send [13:30:22]OFD Sender: No OFD packet to send [13:30:27]OFD Sender: No OFD packet to send [13:30:32]OFD Sender: No OFD packet to send [13:30:37]OFD Sender: No OFD packet to send [13:30:42]OFD Sender: No OFD packet to send [13:30:47]OFD Sender: No OFD packet to send [13:30:52]OFD Sender: No OFD packet to send [13:30:57]OFD Sender: No OFD packet to send [13:31:02]OFD Sender: No OFD packet to send [13:31:07]OFD Sender: No OFD packet to send [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:55]accept exits with 7 [13:32:55]New connection [13:32:55]New thread 3067108708 created [13:32:55]Thread 3067252068 joined [13:32:55]Waiting for new connection... [13:32:55] Sock 7.Parse request [13:32:55]Sock 7.Check first char [13:32:55]Sock 7.First char is OK [13:32:55]request: POST /json_proto HTTP/1.0 [13:32:55]Method: POST [13:32:55]URL: /json_proto [13:32:55]Method is POST - this is cgi request [13:32:55]url: /json_proto [13:32:55]query_string will be loaded in cgi processing [13:32:55]execute_cgi json_proto POST (null) [13:32:55]execute_cgi path=json_proto method=POST [13:32:55]POST find Content-Length [13:32:55]Host: 172.17.44.4:8080 [13:32:55]Content-Length: 801 [13:32:55]Content-Type: application/json [13:32:55] [13:32:55]POST finish read [13:32:55]Found Content-Length = 801 [13:32:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:55]execute_script... [13:32:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992830", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:32:55]POST & json_proto [13:32:55]process_json_proto [13:32:55]json parsed OK: [13:32:55]protocol is kg_v1.0 [13:32:55]action value=close_receipt [13:32:55]process_action close_receipt [13:32:55]cmd_close_receipt [13:32:55]MH_GetDate [13:32:55]Write to MH i2c: F0 00 00 67 00 56 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: F0 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: F0 09 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: F0 09 00 67 00 00 07 0B 46 66 6C E9 28 66 00 [13:32:55]GetLastDocTimeStamp 1715865983 [13:32:55]current date 1715866375 [13:32:55]FM_GetShiftState [13:32:55]SAM_PROTO_GetShiftState [13:32:55]wFMCommunicate request_size=4 [13:32:55]MH_SAM_APDU [13:32:55]CAPDU: 80 13 01 00 [13:32:55]Write to MH i2c: E2 08 00 68 00 80 13 01 00 00 00 00 00 E5 [13:32:55]Write i2c OK [13:32:55]MH_I2C_Read... [13:32:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:55]Read from MH i2c: E2 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 0E 00 [13:32:55]MH_I2C_Read... [13:32:55]Read from MH i2c: E2 0E 00 68 00 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F1 [13:32:55]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:32:55]wFMCommunicate OK [13:32:55]SAM_PROTO_GetShiftState done [13:32:55]FM_GetShiftState done [13:32:55]opened in 1715818246 [13:32:55]opened+sec_in_day 1715904646 [13:32:55]quantity*price = 50033 [13:32:55]sum+1 = 50034 [13:32:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 45 16.05.2024 13:32 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 4985 ФПД: 33511042774359 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T133255&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4985&fm=33511042774359&tin=02508201610067®Number=0000000000154221&sum=50033 [13:32:56]StoreToDocumentArchive [13:32:56]shift 44 fd 4985 [13:32:56]save to /storage/0044/doc_00004985 [13:32:56]save last doc name /storage/0044/doc_00004985 to /storage/kkm_last_doc_name [13:32:56]save OK [13:32:56]Clear old archive folders... [13:32:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:32:56]tlvbuf is 011ED700 [13:32:56]SAM_PROTO_ClearQueue [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 09 00 00 [13:32:56]Write to MH i2c: E2 08 00 75 00 80 09 00 00 00 00 00 00 E7 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 75 00 00 90 00 E9 [13:32:56]RAPDU: 90 00 [13:32:56]wFMCommunicate OK [13:32:56]SAM_PROTO_ClearQueue done [13:32:56]KKMCreateOFDPacket [13:32:56]OFDProtocolAddRootSTLVToBuf [13:32:56]FM_MakeSignedData [13:32:56]FM_MakeSignedData [13:32:56]SAM_PROTO_SignData [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 0D 01 02 [13:32:56]Write to MH i2c: E2 08 00 76 00 80 0D 01 02 00 00 00 00 EF [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [13:32:56]RAPDU: 90 00 [13:32:56]wFMCommunicate OK [13:32:56]wFMCommunicate request_size=255 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 07 0B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 79 13 00 00 35 04 06 00 1E [13:32:56]Write to MH i2c: E2 02 01 77 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 07 0B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 79 13 00 00 35 04 06 00 1E 00 00 6F [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [13:32:56]RAPDU: 90 00 [13:32:56]wFMCommunicate OK [13:32:56]wFMCommunicate request_size=10 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 0D 02 02 05 7A 65 CC F5 57 [13:32:56]Write to MH i2c: E2 0D 00 78 00 80 0D 02 02 05 00 7A 65 CC F5 57 00 00 F3 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [13:32:56]RAPDU: 90 00 [13:32:56]wFMCommunicate OK [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 0D 03 02 [13:32:56]Write to MH i2c: E2 08 00 79 00 80 0D 03 02 00 00 00 00 F4 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0B 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 0B 00 79 00 00 B7 CD 9F 27 BD 73 D0 49 90 00 88 [13:32:56]RAPDU: B7 CD 9F 27 BD 73 D0 49 90 00 [13:32:56]wFMCommunicate OK [13:32:56]SAM_PROTO_SignData done [13:32:56]FM_MakeSignedData done [13:32:56]CreateOFDProtocolMessage [13:32:56]wFMCommunicate request_size=4 [13:32:56]MH_SAM_APDU [13:32:56]CAPDU: 80 11 00 00 [13:32:56]Write to MH i2c: E2 08 00 7A 00 80 11 00 00 00 00 00 00 F4 [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:56]Read from MH i2c: E2 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 17 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: E2 17 00 7A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 49 [13:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:32:56]wFMCommunicate OK [13:32:56]CreateOFDProtocolMessage done [13:32:56]OFDSenderStorePacket 4985 [13:32:56]StoreOFDPacket docnum=4985 [13:32:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 CE 56 07 01 A2 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 07 0B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 79 13 00 00 35 04 06 00 1E 7A 65 CC F5 57 B7 CD 9F 27 BD 73 D0 49 [13:32:56]CheckFolder [13:32:56]dirname=/storage/ofd_packets [13:32:56]CheckFolder done [13:32:56]ProducePacketName [13:32:56]name=ofd_packets/00004985 [13:32:56]NVStorageSaveData ofd_packets/00004985 [13:32:56]File name is /storage/ofd_packets/00004985 [13:32:56]Write 301 bytes [13:32:56]NVStorageSaveData done [13:32:56]OFDSenderStorePacket done [13:32:56]KKMCreateOFDPacket done [13:32:56]NVStorageSaveData kkm_last_timestamp [13:32:56]File name is /storage/kkm_last_timestamp [13:32:56]Write 4 bytes [13:32:56]NVStorageSaveData done [13:32:56]ExternCall_PrintAddStr [13:32:56]wPrintStart [13:32:56]Write to MH i2c: 01 00 00 7B 00 7B [13:32:56]Write i2c OK [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 07 00 [13:32:56]MH_I2C_Read... [13:32:56]Read from MH i2c: 01 07 00 7B 00 00 00 00 00 00 FF 0F 90 [13:32:56]RasterBufferAndPrint [13:32:56]line Счет N : (1)1992830 [13:32:56]line ИНН: 02508201610067 [13:32:56]line Контрольно-Кассовый Чек [13:32:56]line ПРОДАЖА [13:32:56]line ТРК (МРК, ГНК) : 43 [13:32:56]line Товар: 2710124130 [13:32:56]line Аи-92-К-4 [13:32:56]line 7.490 * 66.80 [13:32:56]line = 500.33 [13:32:56]line НДС 12% НСП 1% [13:32:56]line > о реализуемом товаре [13:32:56]line ИТОГО: 500.33 [13:32:56]line НСП 1% : 4.43 [13:32:56]line НДС 12% : 53.13 [13:32:56]line Наличными: 0.00 [13:32:56]line Безнал.: 500.33 [13:32:56]line Место: АЗС № 135 "Партнер Нефть" [13:32:56]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [13:32:56]line СНО: Общий режим [13:32:56]line Чек 45 16.05.2024 13:32 [13:32:56]line Смена: 44 ФФД: 1.0 [13:32:56]line ЗНМ: 0300000237 [13:32:56]line РНМ: 0000000000154221 [13:32:56]line Версия ККМ: v1.0 [13:32:56]line Платежная система: O! деньги [13:32:56]line ФМ: 0000000000963259 [13:32:56]line ФД: 4985 [13:32:56]line ФПД: 33511042774359 [13:32:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T133255&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4985&fm=33511042774359&tin=02508201610067®Number=0000000000154221&sum=50033 [13:32:57]OFD Sender: Processing packet 4985 [packets to send 4, broken 3] [13:32:57]ProducePacketName [13:32:57]name=ofd_packets/00004985 [13:32:57]OFD Sender: To server: pG, [13:32:57]CommunicateWithHost lk.salyk.kg:30040 [13:32:57]ConnectInit lk.salyk.kg [13:32:57]written 0, free lines is 4095 [13:32:57]Connected sock=10 [13:32:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 CE 56 07 01 A2 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 07 0B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 79 13 00 00 35 04 06 00 1E 7A 65 CC F5 57 B7 CD 9F 27 BD 73 D0 49 [13:32:57]Write to MH i2c: 01 00 00 A5 00 A5 [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: 01 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: 01 07 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: 01 07 00 A5 00 00 00 00 00 00 82 0C 3A [13:32:57]RasterBufferAndPrint [13:32:57]line [13:32:57]line [13:32:57]line [13:32:57]line [13:32:57]line [13:32:57]written 0, free lines is 3206 [13:32:57]MH_Cut [13:32:57]Write to MH i2c: D1 01 00 AC 00 01 7E [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: D1 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: D1 01 00 [13:32:57]MH_I2C_Read... [13:32:57]Read from MH i2c: D1 01 00 AC 00 00 7D [13:32:57]Write to MH i2c: 01 00 00 AD 00 AD [13:32:57]Write i2c OK [13:32:57]MH_I2C_Read... [13:32:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 C7 A0 47 00 D9 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 79 13 00 00 F4 03 04 00 CA B6 45 66 B6 04 01 00 00 CA D8 16 75 CC F5 8E 99 [13:32:57]CommunicateWithHost err = 0 [13:32:57]CheckOFDResponse [13:32:57]1017 (14) - 77093643461234 [13:32:57]1041 (16) - 0000000000963259 [13:32:57]1040 (4) - 4985 [13:32:57]1012 (4) - 16.05.2024 07:33 [13:32:57]1206 (1) - 0 [13:32:57]OFD Sender: Remove packet 4985 [13:32:57]ProducePacketName [13:32:57]name=ofd_packets/00004985 [13:32:57]NVStorageDeleteData [13:32:58]OFD Sender: No OFD packet to send [13:32:58]*** Cut start [13:32:58]*** Partial cut [13:32:58]*** CUTSNS_PIN = 1 [13:32:58]*** CUTSNS_PIN = 0 [13:32:58]*** Brake cut motor [13:32:59]Read from MH i2c: 01 [13:32:59]MH_I2C_Read... [13:32:59]*** Stop cut motor [13:32:59]*** Cut end [13:32:59]Read from MH i2c: 01 07 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: 01 07 00 AD 00 00 00 00 00 00 FF 0F C2 [13:32:59]process_action close_receipt done [13:32:59]requested_data is exist [13:32:59]produce_requested_data [13:32:59]requested_item fm.sn is exist - process it [13:32:59]wFMCommunicate request_size=4 [13:32:59]MH_SAM_APDU [13:32:59]CAPDU: 80 11 00 00 [13:32:59]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:32:59]Read from MH i2c: E2 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 17 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 7D [13:32:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:32:59]wFMCommunicate OK [13:32:59]requested_item fd.num is exist - process it [13:32:59]SAM_PROTO_GetFieldsCounters [13:32:59]wFMCommunicate request_size=4 [13:32:59]MH_SAM_APDU [13:32:59]CAPDU: 80 13 00 00 [13:32:59]Write to MH i2c: E2 08 00 AF 00 80 13 00 00 00 00 00 00 2B [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:32:59]Read from MH i2c: E2 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 62 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 62 00 AF 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 79 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [13:32:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 79 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:32:59]wFMCommunicate OK [13:32:59]SAM_PROTO_GetFieldsCounters done [13:32:59]requested_item shift.num is exist - process it [13:32:59]requested_item shift.opened is exist - process it [13:32:59]req_shift_opened [13:32:59]FM_GetShiftState [13:32:59]SAM_PROTO_GetShiftState [13:32:59]wFMCommunicate request_size=4 [13:32:59]MH_SAM_APDU [13:32:59]CAPDU: 80 13 01 00 [13:32:59]Write to MH i2c: E2 08 00 B0 00 80 13 01 00 00 00 00 00 2D [13:32:59]Write i2c OK [13:32:59]MH_I2C_Read... [13:32:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:32:59]Read from MH i2c: E2 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 0E 00 [13:32:59]MH_I2C_Read... [13:32:59]Read from MH i2c: E2 0E 00 B0 00 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 39 [13:32:59]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:32:59]wFMCommunicate OK [13:32:59]SAM_PROTO_GetShiftState done [13:32:59]FM_GetShiftState done [13:32:59]req_shift_opened done [13:32:59]requested_item shift.open_date is exist - process it [13:32:59]req_shift_open_date [13:32:59]req_shift_open_date done [13:32:59]produce_requested_data done [13:32:59]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4985,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [13:32:59]process_action_free close_receipt [13:32:59]json_value_free [13:32:59]json_value_free done [13:32:59]process_json_proto returns [13:32:59]Send response to host [13:32:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4985,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [13:32:59]free response buf [13:32:59]execute_script done [13:32:59]execute_script returns [13:32:59]free content buf [13:32:59]Sock 7.Close socket [13:32:59]Sock 7.Thread stoped [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:03]OFD Sender: No OFD packet to send [13:34:08]OFD Sender: No OFD packet to send [13:34:13]OFD Sender: No OFD packet to send [13:34:18]OFD Sender: No OFD packet to send [13:34:22]accept exits with 9 [13:34:22]New connection [13:34:22]New thread 3067252068 created [13:34:22]Thread 3067108708 joined [13:34:22]Waiting for new connection... [13:34:22] Sock 9.Parse request [13:34:22]Sock 9.Check first char [13:34:22]Sock 9.First char is OK [13:34:22]request: POST /json_proto HTTP/1.0 [13:34:22]Method: POST [13:34:22]URL: /json_proto [13:34:22]Method is POST - this is cgi request [13:34:22]url: /json_proto [13:34:22]query_string will be loaded in cgi processing [13:34:22]execute_cgi json_proto POST (null) [13:34:22]execute_cgi path=json_proto method=POST [13:34:22]POST find Content-Length [13:34:22]Host: 172.17.44.4:8080 [13:34:22]Content-Length: 678 [13:34:22]Content-Type: application/json [13:34:22] [13:34:22]POST finish read [13:34:22]Found Content-Length = 678 [13:34:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 6.840, "sum" : 500.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:22]execute_script... [13:34:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992831", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 6.840, "sum" : 500.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:22]POST & json_proto [13:34:22]process_json_proto [13:34:22]json parsed OK: [13:34:22]protocol is kg_v1.0 [13:34:22]action value=close_receipt [13:34:22]process_action close_receipt [13:34:22]cmd_close_receipt [13:34:22]MH_GetDate [13:34:22]Write to MH i2c: F0 00 00 B1 00 A0 [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: F0 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: F0 09 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: F0 09 00 B1 00 00 5E 0B 46 66 6C E9 28 66 A1 [13:34:22]GetLastDocTimeStamp 1715866375 [13:34:22]current date 1715866462 [13:34:22]FM_GetShiftState [13:34:22]SAM_PROTO_GetShiftState [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 13 01 00 [13:34:22]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 0E 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3B [13:34:22]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:34:22]wFMCommunicate OK [13:34:22]SAM_PROTO_GetShiftState done [13:34:22]FM_GetShiftState done [13:34:22]opened in 1715818246 [13:34:22]opened+sec_in_day 1715904646 [13:34:22]quantity*price = 50068 [13:34:22]sum+1 = 50070 [13:34:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 46 16.05.2024 13:34 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4986 ФПД: 158449923513234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T133422&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4986&fm=158449923513234&tin=02508201610067®Number=0000000000154221&sum=50000 [13:34:23]StoreToDocumentArchive [13:34:23]shift 44 fd 4986 [13:34:23]save to /storage/0044/doc_00004986 [13:34:23]save last doc name /storage/0044/doc_00004986 to /storage/kkm_last_doc_name [13:34:23]save OK [13:34:23]Clear old archive folders... [13:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:23]tlvbuf is 011E20F0 [13:34:23]SAM_PROTO_ClearQueue [13:34:23]wFMCommunicate request_size=4 [13:34:23]MH_SAM_APDU [13:34:23]CAPDU: 80 09 00 00 [13:34:23]Write to MH i2c: E2 08 00 BF 00 80 09 00 00 00 00 00 00 31 [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:23]Read from MH i2c: E2 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 03 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 03 00 BF 00 00 90 00 33 [13:34:23]RAPDU: 90 00 [13:34:23]wFMCommunicate OK [13:34:23]SAM_PROTO_ClearQueue done [13:34:23]KKMCreateOFDPacket [13:34:23]OFDProtocolAddRootSTLVToBuf [13:34:23]FM_MakeSignedData [13:34:23]FM_MakeSignedData [13:34:23]SAM_PROTO_SignData [13:34:23]wFMCommunicate request_size=4 [13:34:23]MH_SAM_APDU [13:34:23]CAPDU: 80 0D 01 02 [13:34:23]Write to MH i2c: E2 08 00 C0 00 80 0D 01 02 00 00 00 00 39 [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:23]Read from MH i2c: E2 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 03 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: E2 03 00 C0 00 00 90 00 34 [13:34:23]RAPDU: 90 00 [13:34:23]wFMCommunicate OK [13:34:23]wFMCommunicate request_size=255 [13:34:23]MH_SAM_APDU [13:34:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 95 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5E 0B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7A 13 00 00 35 04 06 00 90 [13:34:23]Write to MH i2c: E2 02 01 C1 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 95 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5E 0B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7A 13 00 00 35 04 06 00 90 00 00 64 [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:24]Read from MH i2c: E2 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: E2 03 00 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [13:34:24]RAPDU: 90 00 [13:34:24]wFMCommunicate OK [13:34:24]wFMCommunicate request_size=10 [13:34:24]MH_SAM_APDU [13:34:24]CAPDU: 80 0D 02 02 05 1B FF 67 DB 92 [13:34:24]Write to MH i2c: E2 0D 00 C2 00 80 0D 02 02 05 00 1B FF 67 DB 92 00 00 34 [13:34:24]Write i2c OK [13:34:24]MH_I2C_Read... [13:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:24]Read from MH i2c: E2 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: E2 03 00 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [13:34:24]RAPDU: 90 00 [13:34:24]wFMCommunicate OK [13:34:24]wFMCommunicate request_size=4 [13:34:24]MH_SAM_APDU [13:34:24]CAPDU: 80 0D 03 02 [13:34:24]Write to MH i2c: E2 08 00 C3 00 80 0D 03 02 00 00 00 00 3E [13:34:24]Write i2c OK [13:34:24]MH_I2C_Read... [13:34:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:24]Read from MH i2c: E2 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: E2 0B 00 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: E2 0B 00 C3 00 00 82 09 D2 74 72 F4 88 AC 90 00 AA [13:34:24]RAPDU: 82 09 D2 74 72 F4 88 AC 90 00 [13:34:24]wFMCommunicate OK [13:34:24]SAM_PROTO_SignData done [13:34:24]FM_MakeSignedData done [13:34:24]CreateOFDProtocolMessage [13:34:24]wFMCommunicate request_size=4 [13:34:24]MH_SAM_APDU [13:34:24]CAPDU: 80 11 00 00 [13:34:24]Write to MH i2c: E2 08 00 C4 00 80 11 00 00 00 00 00 00 3E [13:34:24]Write i2c OK [13:34:24]MH_I2C_Read... [13:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:24]Read from MH i2c: E2 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: E2 17 00 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: E2 17 00 C4 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 93 [13:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:34:24]wFMCommunicate OK [13:34:24]CreateOFDProtocolMessage done [13:34:24]OFDSenderStorePacket 4986 [13:34:24]StoreOFDPacket docnum=4986 [13:34:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 4B 02 07 01 B1 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 95 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5E 0B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7A 13 00 00 35 04 06 00 90 1B FF 67 DB 92 82 09 D2 74 72 F4 88 AC [13:34:24]CheckFolder [13:34:24]dirname=/storage/ofd_packets [13:34:24]CheckFolder done [13:34:24]ProducePacketName [13:34:24]name=ofd_packets/00004986 [13:34:24]NVStorageSaveData ofd_packets/00004986 [13:34:24]File name is /storage/ofd_packets/00004986 [13:34:24]Write 301 bytes [13:34:24]NVStorageSaveData done [13:34:24]OFDSenderStorePacket done [13:34:24]KKMCreateOFDPacket done [13:34:24]NVStorageSaveData kkm_last_timestamp [13:34:24]File name is /storage/kkm_last_timestamp [13:34:24]Write 4 bytes [13:34:24]NVStorageSaveData done [13:34:24]ExternCall_PrintAddStr [13:34:24]wPrintStart [13:34:24]Write to MH i2c: 01 00 00 C5 00 C5 [13:34:24]Write i2c OK [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: 01 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: 01 07 00 [13:34:24]MH_I2C_Read... [13:34:24]Read from MH i2c: 01 07 00 C5 00 00 00 00 00 00 FF 0F DA [13:34:24]RasterBufferAndPrint [13:34:24]line Счет N : (1)1992831 [13:34:24]line ИНН: 02508201610067 [13:34:24]line Контрольно-Кассовый Чек [13:34:24]line ПРОДАЖА [13:34:24]line ТРК (МРК, ГНК) : 62 [13:34:24]line Товар: 2710124500 [13:34:24]line Аи-95-К-5 [13:34:24]line 6.840 * 73.20 [13:34:24]line = 500.69 [13:34:24]line НДС 12% НСП 1% [13:34:24]line > о реализуемом товаре [13:34:24]line ОКРУГЛЕНИЕ: -0.69 [13:34:24]line ИТОГО: 500.00 [13:34:24]line Внесено: 500.00 [13:34:24]line СДАЧА: 0.00 [13:34:24]line НСП 1% : 4.43 [13:34:24]line НДС 12% : 53.17 [13:34:24]line Наличными: 500.00 [13:34:24]line Безнал.: 0.00 [13:34:24]line Место: АЗС № 135 "Партнер Нефть" [13:34:24]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [13:34:24]line СНО: Общий режим [13:34:24]line Чек 46 16.05.2024 13:34 [13:34:24]line Смена: 44 ФФД: 1.0 [13:34:24]line ЗНМ: 0300000237 [13:34:24]line РНМ: 0000000000154221 [13:34:24]line Версия ККМ: v1.0 [13:34:24]line ФМ: 0000000000963259 [13:34:24]line ФД: 4986 [13:34:24]line ФПД: 158449923513234 [13:34:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T133422&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4986&fm=158449923513234&tin=02508201610067®Number=0000000000154221&sum=50000 [13:34:24]OFD Sender: Processing packet 4986 [packets to send 4, broken 3] [13:34:24]ProducePacketName [13:34:24]name=ofd_packets/00004986 [13:34:24]OFD Sender: To server: pG, [13:34:24]CommunicateWithHost lk.salyk.kg:30040 [13:34:24]ConnectInit lk.salyk.kg [13:34:24]written 0, free lines is 4095 [13:34:24]Connected sock=10 [13:34:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 4B 02 07 01 B1 DC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 95 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 5E 0B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7A 13 00 00 35 04 06 00 90 1B FF 67 DB 92 82 09 D2 74 72 F4 88 AC [13:34:25]Write to MH i2c: 01 00 00 F0 00 F0 [13:34:25]Write i2c OK [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: 01 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: 01 07 00 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: 01 07 00 F0 00 00 00 00 00 00 6C 0C 6F [13:34:25]RasterBufferAndPrint [13:34:25]line [13:34:25]line [13:34:25]line [13:34:25]line [13:34:25]line [13:34:25]written 0, free lines is 3183 [13:34:25]MH_Cut [13:34:25]Write to MH i2c: D1 01 00 F7 00 01 C9 [13:34:25]Write i2c OK [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: D1 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: D1 01 00 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: D1 01 00 F7 00 00 C8 [13:34:25]Write to MH i2c: 01 00 00 F8 00 F8 [13:34:25]Write i2c OK [13:34:25]MH_I2C_Read... [13:34:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 59 DC 47 00 F0 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7A 13 00 00 F4 03 04 00 22 B7 45 66 B6 04 01 00 00 88 34 92 2F ED 87 C7 39 [13:34:25]CommunicateWithHost err = 0 [13:34:25]CheckOFDResponse [13:34:25]1017 (14) - 77093643461234 [13:34:25]1041 (16) - 0000000000963259 [13:34:25]1040 (4) - 4986 [13:34:25]1012 (4) - 16.05.2024 07:34 [13:34:25]1206 (1) - 0 [13:34:25]OFD Sender: Remove packet 4986 [13:34:25]ProducePacketName [13:34:25]name=ofd_packets/00004986 [13:34:25]NVStorageDeleteData [13:34:25]OFD Sender: No OFD packet to send [13:34:26]*** Cut start [13:34:26]*** Partial cut [13:34:26]*** CUTSNS_PIN = 1 [13:34:26]*** CUTSNS_PIN = 0 [13:34:26]*** Brake cut motor [13:34:26]Read from MH i2c: 01 [13:34:26]MH_I2C_Read... [13:34:26]*** Stop cut motor [13:34:26]*** Cut end [13:34:26]Read from MH i2c: 01 07 00 [13:34:26]MH_I2C_Read... [13:34:26]Read from MH i2c: 01 07 00 F8 00 00 00 00 00 00 FF 0F 0D [13:34:26]process_action close_receipt done [13:34:26]requested_data is exist [13:34:26]produce_requested_data [13:34:26]requested_item fm.sn is exist - process it [13:34:26]wFMCommunicate request_size=4 [13:34:26]MH_SAM_APDU [13:34:26]CAPDU: 80 11 00 00 [13:34:26]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [13:34:26]Write i2c OK [13:34:26]MH_I2C_Read... [13:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:26]Read from MH i2c: E2 [13:34:26]MH_I2C_Read... [13:34:26]Read from MH i2c: E2 17 00 [13:34:26]MH_I2C_Read... [13:34:26]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 C8 [13:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:34:26]wFMCommunicate OK [13:34:26]requested_item fd.num is exist - process it [13:34:26]SAM_PROTO_GetFieldsCounters [13:34:26]wFMCommunicate request_size=4 [13:34:26]MH_SAM_APDU [13:34:26]CAPDU: 80 13 00 00 [13:34:26]Write to MH i2c: E2 08 00 FA 00 80 13 00 00 00 00 00 00 76 [13:34:26]Write i2c OK [13:34:26]MH_I2C_Read... [13:34:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:27]Read from MH i2c: E2 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: E2 62 00 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: E2 62 00 FA 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [13:34:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:27]wFMCommunicate OK [13:34:27]SAM_PROTO_GetFieldsCounters done [13:34:27]requested_item shift.num is exist - process it [13:34:27]requested_item shift.opened is exist - process it [13:34:27]req_shift_opened [13:34:27]FM_GetShiftState [13:34:27]SAM_PROTO_GetShiftState [13:34:27]wFMCommunicate request_size=4 [13:34:27]MH_SAM_APDU [13:34:27]CAPDU: 80 13 01 00 [13:34:27]Write to MH i2c: E2 08 00 FB 00 80 13 01 00 00 00 00 00 78 [13:34:27]Write i2c OK [13:34:27]MH_I2C_Read... [13:34:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:27]Read from MH i2c: E2 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: E2 0E 00 [13:34:27]MH_I2C_Read... [13:34:27]Read from MH i2c: E2 0E 00 FB 00 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 84 [13:34:27]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:34:27]wFMCommunicate OK [13:34:27]SAM_PROTO_GetShiftState done [13:34:27]FM_GetShiftState done [13:34:27]req_shift_opened done [13:34:27]requested_item shift.open_date is exist - process it [13:34:27]req_shift_open_date [13:34:27]req_shift_open_date done [13:34:27]produce_requested_data done [13:34:27]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4986,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [13:34:27]process_action_free close_receipt [13:34:27]json_value_free [13:34:27]json_value_free done [13:34:27]process_json_proto returns [13:34:27]Send response to host [13:34:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4986,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [13:34:27]free response buf [13:34:27]execute_script done [13:34:27]execute_script returns [13:34:27]free content buf [13:34:27]Sock 9.Close socket [13:34:27]Sock 9.Thread stoped [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:01]accept exits with 7 [13:38:01]New connection [13:38:01]New thread 3067108708 created [13:38:01]Thread 3067252068 joined [13:38:01]Waiting for new connection... [13:38:01] Sock 7.Parse request [13:38:01]Sock 7.Check first char [13:38:01]Sock 7.First char is OK [13:38:01]request: POST /json_proto HTTP/1.0 [13:38:01]Method: POST [13:38:01]URL: /json_proto [13:38:01]Method is POST - this is cgi request [13:38:01]url: /json_proto [13:38:01]query_string will be loaded in cgi processing [13:38:01]execute_cgi json_proto POST (null) [13:38:01]execute_cgi path=json_proto method=POST [13:38:01]POST find Content-Length [13:38:01]Host: 172.17.44.4:8080 [13:38:01]Content-Length: 801 [13:38:01]Content-Type: application/json [13:38:01] [13:38:01]POST finish read [13:38:01]Found Content-Length = 801 [13:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:01]execute_script... [13:38:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992833", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.53 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:01]POST & json_proto [13:38:01]process_json_proto [13:38:01]json parsed OK: [13:38:01]protocol is kg_v1.0 [13:38:01]action value=close_receipt [13:38:01]process_action close_receipt [13:38:01]cmd_close_receipt [13:38:01]MH_GetDate [13:38:01]Write to MH i2c: F0 00 00 FC 00 EB [13:38:01]Write i2c OK [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: F0 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: F0 09 00 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: F0 09 00 FC 00 00 39 0C 46 66 6C E9 28 66 C8 [13:38:01]GetLastDocTimeStamp 1715866462 [13:38:01]current date 1715866681 [13:38:01]FM_GetShiftState [13:38:01]SAM_PROTO_GetShiftState [13:38:01]wFMCommunicate request_size=4 [13:38:01]MH_SAM_APDU [13:38:01]CAPDU: 80 13 01 00 [13:38:01]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [13:38:01]Write i2c OK [13:38:01]MH_I2C_Read... [13:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:01]Read from MH i2c: E2 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: E2 0E 00 [13:38:01]MH_I2C_Read... [13:38:01]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 86 [13:38:01]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:38:01]wFMCommunicate OK [13:38:01]SAM_PROTO_GetShiftState done [13:38:01]FM_GetShiftState done [13:38:01]opened in 1715818246 [13:38:01]opened+sec_in_day 1715904646 [13:38:01]quantity*price = 60053 [13:38:01]sum+1 = 60054 [13:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.53 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 0.00 Безнал.: 600.53 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 47 16.05.2024 13:38 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 4987 ФПД: 23741698959343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T133801&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4987&fm=23741698959343&tin=02508201610067®Number=0000000000154221&sum=60053 [13:38:02]StoreToDocumentArchive [13:38:02]shift 44 fd 4987 [13:38:02]save to /storage/0044/doc_00004987 [13:38:02]save last doc name /storage/0044/doc_00004987 to /storage/kkm_last_doc_name [13:38:02]save OK [13:38:02]Clear old archive folders... [13:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:38:02]tlvbuf is 011799D0 [13:38:02]SAM_PROTO_ClearQueue [13:38:02]wFMCommunicate request_size=4 [13:38:02]MH_SAM_APDU [13:38:02]CAPDU: 80 09 00 00 [13:38:02]Write to MH i2c: E2 08 00 0A 01 80 09 00 00 00 00 00 00 7D [13:38:02]Write i2c OK [13:38:02]MH_I2C_Read... [13:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:02]Read from MH i2c: E2 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 03 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 03 00 0A 01 00 90 00 7F [13:38:02]RAPDU: 90 00 [13:38:02]wFMCommunicate OK [13:38:02]SAM_PROTO_ClearQueue done [13:38:02]KKMCreateOFDPacket [13:38:02]OFDProtocolAddRootSTLVToBuf [13:38:02]FM_MakeSignedData [13:38:02]FM_MakeSignedData [13:38:02]SAM_PROTO_SignData [13:38:02]wFMCommunicate request_size=4 [13:38:02]MH_SAM_APDU [13:38:02]CAPDU: 80 0D 01 02 [13:38:02]Write to MH i2c: E2 08 00 0B 01 80 0D 01 02 00 00 00 00 85 [13:38:02]Write i2c OK [13:38:02]MH_I2C_Read... [13:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:02]Read from MH i2c: E2 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 03 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 03 00 0B 01 00 90 00 80 [13:38:02]RAPDU: 90 00 [13:38:02]wFMCommunicate OK [13:38:02]wFMCommunicate request_size=255 [13:38:02]MH_SAM_APDU [13:38:02]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 39 0C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7B 13 00 00 35 04 06 00 15 [13:38:02]Write to MH i2c: E2 02 01 0C 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 39 0C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7B 13 00 00 35 04 06 00 15 00 00 7B [13:38:02]Write i2c OK [13:38:02]MH_I2C_Read... [13:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:02]Read from MH i2c: E2 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 03 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [13:38:02]RAPDU: 90 00 [13:38:02]wFMCommunicate OK [13:38:02]wFMCommunicate request_size=10 [13:38:02]MH_SAM_APDU [13:38:02]CAPDU: 80 0D 02 02 05 97 CB 88 67 EF [13:38:02]Write to MH i2c: E2 0D 00 0D 01 80 0D 02 02 05 00 97 CB 88 67 EF 00 00 D2 [13:38:02]Write i2c OK [13:38:02]MH_I2C_Read... [13:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:02]Read from MH i2c: E2 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 03 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [13:38:02]RAPDU: 90 00 [13:38:02]wFMCommunicate OK [13:38:02]wFMCommunicate request_size=4 [13:38:02]MH_SAM_APDU [13:38:02]CAPDU: 80 0D 03 02 [13:38:02]Write to MH i2c: E2 08 00 0E 01 80 0D 03 02 00 00 00 00 8A [13:38:02]Write i2c OK [13:38:02]MH_I2C_Read... [13:38:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:02]Read from MH i2c: E2 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 0B 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 0B 00 0E 01 00 AD A6 E3 97 D4 D8 FA 2C 90 00 2A [13:38:02]RAPDU: AD A6 E3 97 D4 D8 FA 2C 90 00 [13:38:02]wFMCommunicate OK [13:38:02]SAM_PROTO_SignData done [13:38:02]FM_MakeSignedData done [13:38:02]CreateOFDProtocolMessage [13:38:02]wFMCommunicate request_size=4 [13:38:02]MH_SAM_APDU [13:38:02]CAPDU: 80 11 00 00 [13:38:02]Write to MH i2c: E2 08 00 0F 01 80 11 00 00 00 00 00 00 8A [13:38:02]Write i2c OK [13:38:02]MH_I2C_Read... [13:38:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:02]Read from MH i2c: E2 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 17 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: E2 17 00 0F 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 DF [13:38:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:38:02]wFMCommunicate OK [13:38:02]CreateOFDProtocolMessage done [13:38:02]OFDSenderStorePacket 4987 [13:38:02]StoreOFDPacket docnum=4987 [13:38:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 1F 90 07 01 71 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 39 0C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7B 13 00 00 35 04 06 00 15 97 CB 88 67 EF AD A6 E3 97 D4 D8 FA 2C [13:38:02]CheckFolder [13:38:02]dirname=/storage/ofd_packets [13:38:02]CheckFolder done [13:38:02]ProducePacketName [13:38:02]name=ofd_packets/00004987 [13:38:02]NVStorageSaveData ofd_packets/00004987 [13:38:02]File name is /storage/ofd_packets/00004987 [13:38:02]Write 301 bytes [13:38:02]NVStorageSaveData done [13:38:02]OFDSenderStorePacket done [13:38:02]KKMCreateOFDPacket done [13:38:02]NVStorageSaveData kkm_last_timestamp [13:38:02]File name is /storage/kkm_last_timestamp [13:38:02]Write 4 bytes [13:38:02]NVStorageSaveData done [13:38:02]ExternCall_PrintAddStr [13:38:02]wPrintStart [13:38:02]Write to MH i2c: 01 00 00 10 01 11 [13:38:02]Write i2c OK [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: 01 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: 01 07 00 [13:38:02]MH_I2C_Read... [13:38:02]Read from MH i2c: 01 07 00 10 01 00 00 00 00 00 FF 0F 26 [13:38:02]RasterBufferAndPrint [13:38:02]line Счет N : (1)1992833 [13:38:02]line ИНН: 02508201610067 [13:38:02]line Контрольно-Кассовый Чек [13:38:02]line ПРОДАЖА [13:38:02]line ТРК (МРК, ГНК) : 43 [13:38:02]line Товар: 2710124130 [13:38:02]line Аи-92-К-4 [13:38:02]line 8.990 * 66.80 [13:38:02]line = 600.53 [13:38:02]line НДС 12% НСП 1% [13:38:02]line > о реализуемом товаре [13:38:02]line ИТОГО: 600.53 [13:38:02]line НСП 1% : 5.31 [13:38:02]line НДС 12% : 63.77 [13:38:02]line Наличными: 0.00 [13:38:02]line Безнал.: 600.53 [13:38:02]line Место: АЗС № 135 "Партнер Нефть" [13:38:02]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [13:38:02]line СНО: Общий режим [13:38:02]line Чек 47 16.05.2024 13:38 [13:38:02]line Смена: 44 ФФД: 1.0 [13:38:02]line ЗНМ: 0300000237 [13:38:02]line РНМ: 0000000000154221 [13:38:02]line Версия ККМ: v1.0 [13:38:02]line Платежная система: O! деньги [13:38:02]line ФМ: 0000000000963259 [13:38:02]line ФД: 4987 [13:38:02]line ФПД: 23741698959343 [13:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T133801&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4987&fm=23741698959343&tin=02508201610067®Number=0000000000154221&sum=60053 [13:38:03]OFD Sender: Processing packet 4987 [packets to send 4, broken 3] [13:38:03]ProducePacketName [13:38:03]name=ofd_packets/00004987 [13:38:03]OFD Sender: To server: pG, [13:38:03]CommunicateWithHost lk.salyk.kg:30040 [13:38:03]ConnectInit lk.salyk.kg [13:38:03]written 0, free lines is 4095 [13:38:03]Write to MH i2c: 01 00 00 3A 01 3B [13:38:03]Write i2c OK [13:38:03]MH_I2C_Read... [13:38:03]Read from MH i2c: 01 [13:38:03]MH_I2C_Read... [13:38:03]Read from MH i2c: 01 07 00 [13:38:03]MH_I2C_Read... [13:38:03]Read from MH i2c: 01 07 00 3A 01 00 00 00 00 00 7D 0C CB [13:38:03]RasterBufferAndPrint [13:38:03]line [13:38:03]line [13:38:03]line [13:38:03]line [13:38:03]line [13:38:03]written 0, free lines is 3200 [13:38:03]MH_Cut [13:38:03]Write to MH i2c: D1 01 00 41 01 01 14 [13:38:03]Write i2c OK [13:38:03]MH_I2C_Read... [13:38:03]Read from MH i2c: D1 [13:38:03]MH_I2C_Read... [13:38:03]Read from MH i2c: D1 01 00 [13:38:03]MH_I2C_Read... [13:38:03]Read from MH i2c: D1 01 00 41 01 00 13 [13:38:03]Write to MH i2c: 01 00 00 42 01 43 [13:38:03]Write i2c OK [13:38:03]MH_I2C_Read... [13:38:03]Connected sock=10 [13: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 33 32 35 39 0F 01 00 00 1F 90 07 01 71 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 39 0C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7B 13 00 00 35 04 06 00 15 97 CB 88 67 EF AD A6 E3 97 D4 D8 FA 2C [13:38:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 58 B2 47 00 D4 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 33 32 35 39 10 04 04 00 7B 13 00 00 F4 03 04 00 FD B7 45 66 B6 04 01 00 00 ED E2 6C 90 2C DD 0B A0 [13:38:03]CommunicateWithHost err = 0 [13:38:03]CheckOFDResponse [13:38:03]1017 (14) - 77093643461234 [13:38:03]1041 (16) - 0000000000963259 [13:38:03]1040 (4) - 4987 [13:38:03]1012 (4) - 16.05.2024 07:38 [13:38:03]1206 (1) - 0 [13:38:03]OFD Sender: Remove packet 4987 [13:38:03]ProducePacketName [13:38:03]name=ofd_packets/00004987 [13:38:03]NVStorageDeleteData [13:38:04]OFD Sender: No OFD packet to send [13:38:04]*** Cut start [13:38:04]*** Partial cut [13:38:04]*** CUTSNS_PIN = 1 [13:38:04]*** CUTSNS_PIN = 0 [13:38:04]*** Brake cut motor [13:38:05]Read from MH i2c: 01 [13:38:05]MH_I2C_Read... [13:38:05]*** Stop cut motor [13:38:05]*** Cut end [13:38:05]Read from MH i2c: 01 07 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: 01 07 00 42 01 00 00 00 00 00 FF 0F 58 [13:38:05]process_action close_receipt done [13:38:05]requested_data is exist [13:38:05]produce_requested_data [13:38:05]requested_item fm.sn is exist - process it [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 11 00 00 [13:38:05]Write to MH i2c: E2 08 00 43 01 80 11 00 00 00 00 00 00 BE [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 17 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 17 00 43 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 13 [13:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:38:05]wFMCommunicate OK [13:38:05]requested_item fd.num is exist - process it [13:38:05]SAM_PROTO_GetFieldsCounters [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 13 00 00 [13:38:05]Write to MH i2c: E2 08 00 44 01 80 13 00 00 00 00 00 00 C1 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 62 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 62 00 44 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7B 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [13: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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7B 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:05]wFMCommunicate OK [13:38:05]SAM_PROTO_GetFieldsCounters done [13:38:05]requested_item shift.num is exist - process it [13:38:05]requested_item shift.opened is exist - process it [13:38:05]req_shift_opened [13:38:05]FM_GetShiftState [13:38:05]SAM_PROTO_GetShiftState [13:38:05]wFMCommunicate request_size=4 [13:38:05]MH_SAM_APDU [13:38:05]CAPDU: 80 13 01 00 [13:38:05]Write to MH i2c: E2 08 00 45 01 80 13 01 00 00 00 00 00 C3 [13:38:05]Write i2c OK [13:38:05]MH_I2C_Read... [13:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:05]Read from MH i2c: E2 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 0E 00 [13:38:05]MH_I2C_Read... [13:38:05]Read from MH i2c: E2 0E 00 45 01 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CF [13:38:05]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:38:05]wFMCommunicate OK [13:38:05]SAM_PROTO_GetShiftState done [13:38:05]FM_GetShiftState done [13:38:05]req_shift_opened done [13:38:05]requested_item shift.open_date is exist - process it [13:38:05]req_shift_open_date [13:38:05]req_shift_open_date done [13:38:05]produce_requested_data done [13:38:05]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4987,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [13:38:05]process_action_free close_receipt [13:38:05]json_value_free [13:38:05]json_value_free done [13:38:05]process_json_proto returns [13:38:05]Send response to host [13:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4987,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [13:38:05]free response buf [13:38:05]execute_script done [13:38:05]execute_script returns [13:38:05]free content buf [13:38:05]Sock 7.Close socket [13:38:05]Sock 7.Thread stoped [13:38:09]OFD Sender: No OFD packet to send [13:38:12]accept exits with 9 [13:38:12]New connection [13:38:12]New thread 3067252068 created [13:38:12]Thread 3067108708 joined [13:38:12]Waiting for new connection... [13:38:12] Sock 9.Parse request [13:38:12]Sock 9.Check first char [13:38:12]Sock 9.First char is OK [13:38:12]request: POST /json_proto HTTP/1.0 [13:38:12]Method: POST [13:38:12]URL: /json_proto [13:38:12]Method is POST - this is cgi request [13:38:12]url: /json_proto [13:38:12]query_string will be loaded in cgi processing [13:38:12]execute_cgi json_proto POST (null) [13:38:12]execute_cgi path=json_proto method=POST [13:38:12]POST find Content-Length [13:38:12]Host: 172.17.44.4:8080 [13:38:12]Content-Length: 799 [13:38:12]Content-Type: application/json [13:38:12] [13:38:12]POST finish read [13:38:12]Found Content-Length = 799 [13:38:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 11.380, "sum" : 850.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 850.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:12]execute_script... [13:38:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992832", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 11.380, "sum" : 850.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 850.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:38:12]POST & json_proto [13:38:12]process_json_proto [13:38:12]json parsed OK: [13:38:12]protocol is kg_v1.0 [13:38:12]action value=close_receipt [13:38:12]process_action close_receipt [13:38:12]cmd_close_receipt [13:38:12]MH_GetDate [13:38:12]Write to MH i2c: F0 00 00 46 01 36 [13:38:12]Write i2c OK [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: F0 [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: F0 09 00 [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: F0 09 00 46 01 00 44 0C 46 66 6C E9 28 66 1E [13:38:12]GetLastDocTimeStamp 1715866681 [13:38:12]current date 1715866692 [13:38:12]FM_GetShiftState [13:38:12]SAM_PROTO_GetShiftState [13:38:12]wFMCommunicate request_size=4 [13:38:12]MH_SAM_APDU [13:38:12]CAPDU: 80 13 01 00 [13:38:12]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [13:38:12]Write i2c OK [13:38:12]MH_I2C_Read... [13:38:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:12]Read from MH i2c: E2 [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: E2 0E 00 [13:38:12]MH_I2C_Read... [13:38:12]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 D1 [13:38:12]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:38:12]wFMCommunicate OK [13:38:12]SAM_PROTO_GetShiftState done [13:38:12]FM_GetShiftState done [13:38:12]opened in 1715818246 [13:38:12]opened+sec_in_day 1715904646 [13:38:12]quantity*price = 85008 [13:38:12]sum+1 = 85010 [13:38:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 850.09 НСП 1% : 7.52 НДС 12% : 90.27 Наличными: 0.00 Безнал.: 850.09 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 48 16.05.2024 13:38 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 4988 ФПД: 199480187037053 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T133812&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4988&fm=199480187037053&tin=02508201610067®Number=0000000000154221&sum=85009 [13:38:13]StoreToDocumentArchive [13:38:13]shift 44 fd 4988 [13:38:13]save to /storage/0044/doc_00004988 [13:38:13]save last doc name /storage/0044/doc_00004988 to /storage/kkm_last_doc_name [13:38:13]save OK [13:38:13]Clear old archive folders... [13:38:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:38:13]tlvbuf is 0117B5F0 [13:38:13]SAM_PROTO_ClearQueue [13:38:13]wFMCommunicate request_size=4 [13:38:13]MH_SAM_APDU [13:38:13]CAPDU: 80 09 00 00 [13:38:13]Write to MH i2c: E2 08 00 54 01 80 09 00 00 00 00 00 00 C7 [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:38:13]Read from MH i2c: E2 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 03 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 03 00 54 01 00 90 00 C9 [13:38:13]RAPDU: 90 00 [13:38:13]wFMCommunicate OK [13:38:13]SAM_PROTO_ClearQueue done [13:38:13]KKMCreateOFDPacket [13:38:13]OFDProtocolAddRootSTLVToBuf [13:38:13]FM_MakeSignedData [13:38:13]FM_MakeSignedData [13:38:13]SAM_PROTO_SignData [13:38:13]wFMCommunicate request_size=4 [13:38:13]MH_SAM_APDU [13:38:13]CAPDU: 80 0D 01 02 [13:38:13]Write to MH i2c: E2 08 00 55 01 80 0D 01 02 00 00 00 00 CF [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:38:13]Read from MH i2c: E2 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 03 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 03 00 55 01 00 90 00 CA [13:38:13]RAPDU: 90 00 [13:38:13]wFMCommunicate OK [13:38:13]wFMCommunicate request_size=255 [13:38:13]MH_SAM_APDU [13:38:13]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 11 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 44 0C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7C 13 00 00 35 04 06 00 B5 6D 19 B0 [13:38:13]Write to MH i2c: E2 02 01 56 01 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 11 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 44 0C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7C 13 00 00 35 04 06 00 B5 6D 19 B0 00 00 53 [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:13]Read from MH i2c: E2 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 03 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [13:38:13]RAPDU: 90 00 [13:38:13]wFMCommunicate OK [13:38:13]wFMCommunicate request_size=7 [13:38:13]MH_SAM_APDU [13:38:13]CAPDU: 80 0D 02 02 02 25 7D [13:38:13]Write to MH i2c: E2 0A 00 57 01 80 0D 02 02 02 00 25 7D 00 00 78 [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:38:13]Read from MH i2c: E2 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 03 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [13:38:13]RAPDU: 90 00 [13:38:13]wFMCommunicate OK [13:38:13]wFMCommunicate request_size=4 [13:38:13]MH_SAM_APDU [13:38:13]CAPDU: 80 0D 03 02 [13:38:13]Write to MH i2c: E2 08 00 58 01 80 0D 03 02 00 00 00 00 D4 [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:38:13]Read from MH i2c: E2 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 0B 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 0B 00 58 01 00 CD F6 DF 86 FB F1 F7 E7 90 00 C7 [13:38:13]RAPDU: CD F6 DF 86 FB F1 F7 E7 90 00 [13:38:13]wFMCommunicate OK [13:38:13]SAM_PROTO_SignData done [13:38:13]FM_MakeSignedData done [13:38:13]CreateOFDProtocolMessage [13:38:13]wFMCommunicate request_size=4 [13:38:13]MH_SAM_APDU [13:38:13]CAPDU: 80 11 00 00 [13:38:13]Write to MH i2c: E2 08 00 59 01 80 11 00 00 00 00 00 00 D4 [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:13]Read from MH i2c: E2 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 17 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: E2 17 00 59 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 29 [13:38:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:38:13]wFMCommunicate OK [13:38:13]CreateOFDProtocolMessage done [13:38:13]OFDSenderStorePacket 4988 [13:38:13]StoreOFDPacket docnum=4988 [13:38:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0C 01 00 00 0C 8C 04 01 83 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 11 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 44 0C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7C 13 00 00 35 04 06 00 B5 6D 19 B0 25 7D CD F6 DF 86 FB F1 F7 E7 [13:38:13]CheckFolder [13:38:13]dirname=/storage/ofd_packets [13:38:13]CheckFolder done [13:38:13]ProducePacketName [13:38:13]name=ofd_packets/00004988 [13:38:13]NVStorageSaveData ofd_packets/00004988 [13:38:13]File name is /storage/ofd_packets/00004988 [13:38:13]Write 298 bytes [13:38:13]NVStorageSaveData done [13:38:13]OFDSenderStorePacket done [13:38:13]KKMCreateOFDPacket done [13:38:13]NVStorageSaveData kkm_last_timestamp [13:38:13]File name is /storage/kkm_last_timestamp [13:38:13]Write 4 bytes [13:38:13]NVStorageSaveData done [13:38:13]ExternCall_PrintAddStr [13:38:13]wPrintStart [13:38:13]Write to MH i2c: 01 00 00 5A 01 5B [13:38:13]Write i2c OK [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: 01 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: 01 07 00 [13:38:13]MH_I2C_Read... [13:38:13]Read from MH i2c: 01 07 00 5A 01 00 00 00 00 00 FF 0F 70 [13:38:13]RasterBufferAndPrint [13:38:13]line Счет N : (1)1992832 [13:38:13]line ИНН: 02508201610067 [13:38:13]line Контрольно-Кассовый Чек [13:38:13]line ПРОДАЖА [13:38:13]line ТРК (МРК, ГНК) : 11 [13:38:13]line Товар: 2710194210 [13:38:13]line ДТ-К-5 [13:38:13]line 11.380 * 74.70 [13:38:13]line = 850.09 [13:38:13]line НДС 12% НСП 1% [13:38:13]line > о реализуемом товаре [13:38:13]line ИТОГО: 850.09 [13:38:13]line НСП 1% : 7.52 [13:38:13]line НДС 12% : 90.27 [13:38:13]line Наличными: 0.00 [13:38:13]line Безнал.: 850.09 [13:38:13]line Место: АЗС № 135 "Партнер Нефть" [13:38:13]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [13:38:13]line СНО: Общий режим [13:38:13]line Чек 48 16.05.2024 13:38 [13:38:13]line Смена: 44 ФФД: 1.0 [13:38:13]line ЗНМ: 0300000237 [13:38:13]line РНМ: 0000000000154221 [13:38:13]line Версия ККМ: v1.0 [13:38:13]line Платежная система: O! деньги [13:38:13]line ФМ: 0000000000963259 [13:38:13]line ФД: 4988 [13:38:13]line ФПД: 199480187037053 [13:38:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T133812&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4988&fm=199480187037053&tin=02508201610067®Number=0000000000154221&sum=85009 [13:38:14]OFD Sender: Processing packet 4988 [packets to send 4, broken 3] [13:38:14]ProducePacketName [13:38:14]name=ofd_packets/00004988 [13:38:14]OFD Sender: To server: pG, [13:38:14]CommunicateWithHost lk.salyk.kg:30040 [13:38:14]ConnectInit lk.salyk.kg [13:38:14]written 0, free lines is 4095 [13:38:14]Connected sock=10 [13:38:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0C 01 00 00 0C 8C 04 01 83 22 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 2C 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 11 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 11 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 11 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 44 0C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7C 13 00 00 35 04 06 00 B5 6D 19 B0 25 7D CD F6 DF 86 FB F1 F7 E7 [13:38:14]Write to MH i2c: 01 00 00 84 01 85 [13:38:14]Write i2c OK [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: 01 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: 01 07 00 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: 01 07 00 84 01 00 00 00 00 00 8A 0C 22 [13:38:14]RasterBufferAndPrint [13:38:14]line [13:38:14]line [13:38:14]line [13:38:14]line [13:38:14]line [13:38:14]written 0, free lines is 3215 [13:38:14]MH_Cut [13:38:14]Write to MH i2c: D1 01 00 8B 01 01 5E [13:38:14]Write i2c OK [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: D1 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: D1 01 00 [13:38:14]MH_I2C_Read... [13:38:14]Read from MH i2c: D1 01 00 8B 01 00 5D [13:38:14]Write to MH i2c: 01 00 00 8C 01 8D [13:38:14]Write i2c OK [13:38:14]MH_I2C_Read... [13:38:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 23 56 47 00 93 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7C 13 00 00 F4 03 04 00 07 B8 45 66 B6 04 01 00 00 CB E2 99 D7 EF 38 F0 45 [13:38:14]CommunicateWithHost err = 0 [13:38:14]CheckOFDResponse [13:38:14]1017 (14) - 77093643461234 [13:38:14]1041 (16) - 0000000000963259 [13:38:14]1040 (4) - 4988 [13:38:14]1012 (4) - 16.05.2024 07:38 [13:38:14]1206 (1) - 0 [13:38:14]OFD Sender: Remove packet 4988 [13:38:14]ProducePacketName [13:38:14]name=ofd_packets/00004988 [13:38:14]NVStorageDeleteData [13:38:15]OFD Sender: No OFD packet to send [13:38:15]*** Cut start [13:38:15]*** Partial cut [13:38:15]*** CUTSNS_PIN = 1 [13:38:15]*** CUTSNS_PIN = 0 [13:38:16]*** Brake cut motor [13:38:16]Read from MH i2c: 01 [13:38:16]MH_I2C_Read... [13:38:16]*** Stop cut motor [13:38:16]*** Cut end [13:38:16]Read from MH i2c: 01 07 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: 01 07 00 8C 01 00 00 00 00 00 FF 0F A2 [13:38:16]process_action close_receipt done [13:38:16]requested_data is exist [13:38:16]produce_requested_data [13:38:16]requested_item fm.sn is exist - process it [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 11 00 00 [13:38:16]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 17 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 5D [13:38:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:38:16]wFMCommunicate OK [13:38:16]requested_item fd.num is exist - process it [13:38:16]SAM_PROTO_GetFieldsCounters [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 13 00 00 [13:38:16]Write to MH i2c: E2 08 00 8E 01 80 13 00 00 00 00 00 00 0B [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 62 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 62 00 8E 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7C 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [13:38:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7C 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:38:16]wFMCommunicate OK [13:38:16]SAM_PROTO_GetFieldsCounters done [13:38:16]requested_item shift.num is exist - process it [13:38:16]requested_item shift.opened is exist - process it [13:38:16]req_shift_opened [13:38:16]FM_GetShiftState [13:38:16]SAM_PROTO_GetShiftState [13:38:16]wFMCommunicate request_size=4 [13:38:16]MH_SAM_APDU [13:38:16]CAPDU: 80 13 01 00 [13:38:16]Write to MH i2c: E2 08 00 8F 01 80 13 01 00 00 00 00 00 0D [13:38:16]Write i2c OK [13:38:16]MH_I2C_Read... [13:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:38:16]Read from MH i2c: E2 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 0E 00 [13:38:16]MH_I2C_Read... [13:38:16]Read from MH i2c: E2 0E 00 8F 01 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 19 [13:38:16]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:38:16]wFMCommunicate OK [13:38:16]SAM_PROTO_GetShiftState done [13:38:16]FM_GetShiftState done [13:38:16]req_shift_opened done [13:38:16]requested_item shift.open_date is exist - process it [13:38:16]req_shift_open_date [13:38:16]req_shift_open_date done [13:38:16]produce_requested_data done [13:38:16]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4988,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [13:38:16]process_action_free close_receipt [13:38:16]json_value_free [13:38:16]json_value_free done [13:38:16]process_json_proto returns [13:38:16]Send response to host [13:38:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4988,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [13:38:16]free response buf [13:38:16]execute_script done [13:38:16]execute_script returns [13:38:16]free content buf [13:38:16]Sock 9.Close socket [13:38:16]Sock 9.Thread stoped [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:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:50:57]accept exits with 7 [13:50:57]New connection [13:50:57]New thread 3067108708 created [13:50:57]Thread 3067252068 joined [13:50:57]Waiting for new connection... [13:50:57] Sock 7.Parse request [13:50:57]Sock 7.Check first char [13:50:57]Sock 7.First char is OK [13:50:57]request: POST /json_proto HTTP/1.0 [13:50:57]Method: POST [13:50:57]URL: /json_proto [13:50:57]Method is POST - this is cgi request [13:50:57]url: /json_proto [13:50:57]query_string will be loaded in cgi processing [13:50:57]execute_cgi json_proto POST (null) [13:50:57]execute_cgi path=json_proto method=POST [13:50:57]POST find Content-Length [13:50:57]Host: 172.17.44.4:8080 [13:50:57]Content-Length: 807 [13:50:57]Content-Type: application/json [13:50:57] [13:50:57]POST finish read [13:50:57]Found Content-Length = 807 [13:50:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.20, "quantity" : 29.240, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:57]execute_script... [13:50:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.20, "quantity" : 29.240, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.01 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:57]POST & json_proto [13:50:57]process_json_proto [13:50:57]json parsed OK: [13:50:57]protocol is kg_v1.0 [13:50:57]action value=close_receipt [13:50:57]process_action close_receipt [13:50:57]cmd_close_receipt [13:50:57]MH_GetDate [13:50:57]Write to MH i2c: F0 00 00 90 01 80 [13:50:57]Write i2c OK [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: F0 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: F0 09 00 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: F0 09 00 90 01 00 41 0F 46 66 6C E9 28 66 68 [13:50:57]GetLastDocTimeStamp 1715866692 [13:50:57]current date 1715867457 [13:50:57]FM_GetShiftState [13:50:57]SAM_PROTO_GetShiftState [13:50:57]wFMCommunicate request_size=4 [13:50:57]MH_SAM_APDU [13:50:57]CAPDU: 80 13 01 00 [13:50:57]Write to MH i2c: E2 08 00 91 01 80 13 01 00 00 00 00 00 0F [13:50:57]Write i2c OK [13:50:57]MH_I2C_Read... [13:50:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:57]Read from MH i2c: E2 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: E2 0E 00 [13:50:57]MH_I2C_Read... [13:50:57]Read from MH i2c: E2 0E 00 91 01 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 1B [13:50:57]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:50:57]wFMCommunicate OK [13:50:57]SAM_PROTO_GetShiftState done [13:50:57]FM_GetShiftState done [13:50:57]opened in 1715818246 [13:50:57]opened+sec_in_day 1715904646 [13:50:57]quantity*price = 100000 [13:50:57]sum+1 = 100002 [13:50:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.01 НСП 1% : 8.85 НДС 12% : 106.20 Наличными: 0.00 Безнал.: 1000.01 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 49 16.05.2024 13:50 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 4989 ФПД: 204346871026060 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T135057&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4989&fm=204346871026060&tin=02508201610067®Number=0000000000154221&sum=100001 [13:50:58]StoreToDocumentArchive [13:50:58]shift 44 fd 4989 [13:50:58]save to /storage/0044/doc_00004989 [13:50:58]save last doc name /storage/0044/doc_00004989 to /storage/kkm_last_doc_name [13:50:58]save OK [13:50:58]Clear old archive folders... [13:50:58]ProcessDocumentItem done err = 0, tmpTLVsize=250 [13:50:58]tlvbuf is 011E78B0 [13:50:58]SAM_PROTO_ClearQueue [13:50:58]wFMCommunicate request_size=4 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 09 00 00 [13:50:58]Write to MH i2c: E2 08 00 9E 01 80 09 00 00 00 00 00 00 11 [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 9E 01 00 90 00 13 [13:50:58]RAPDU: 90 00 [13:50:58]wFMCommunicate OK [13:50:58]SAM_PROTO_ClearQueue done [13:50:58]KKMCreateOFDPacket [13:50:58]OFDProtocolAddRootSTLVToBuf [13:50:58]FM_MakeSignedData [13:50:58]FM_MakeSignedData [13:50:58]SAM_PROTO_SignData [13:50:58]wFMCommunicate request_size=4 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 0D 01 02 [13:50:58]Write to MH i2c: E2 08 00 9F 01 80 0D 01 02 00 00 00 00 19 [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 9F 01 00 90 00 14 [13:50:58]RAPDU: 90 00 [13:50:58]wFMCommunicate OK [13:50:58]wFMCommunicate request_size=255 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 41 0F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7D 13 00 00 35 04 06 00 B9 DA [13:50:58]Write to MH i2c: E2 02 01 A0 01 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 41 0F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7D 13 00 00 35 04 06 00 B9 DA 00 00 E6 [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 A0 01 00 90 00 15 [13:50:58]RAPDU: 90 00 [13:50:58]wFMCommunicate OK [13:50:58]wFMCommunicate request_size=9 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 0D 02 02 04 36 A8 91 8C [13:50:58]Write to MH i2c: E2 0C 00 A1 01 80 0D 02 02 04 00 36 A8 91 8C 00 00 1F [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [13:50:58]RAPDU: 90 00 [13:50:58]wFMCommunicate OK [13:50:58]wFMCommunicate request_size=4 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 0D 03 02 [13:50:58]Write to MH i2c: E2 08 00 A2 01 80 0D 03 02 00 00 00 00 1E [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 0B 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 0B 00 A2 01 00 FA 88 FA 1E 34 61 AB C9 90 00 C2 [13:50:58]RAPDU: FA 88 FA 1E 34 61 AB C9 90 00 [13:50:58]wFMCommunicate OK [13:50:58]SAM_PROTO_SignData done [13:50:58]FM_MakeSignedData done [13:50:58]CreateOFDProtocolMessage [13:50:58]wFMCommunicate request_size=4 [13:50:58]MH_SAM_APDU [13:50:58]CAPDU: 80 11 00 00 [13:50:58]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:58]Read from MH i2c: E2 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 17 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 73 [13:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:50:58]wFMCommunicate OK [13:50:58]CreateOFDProtocolMessage done [13:50:58]OFDSenderStorePacket 4989 [13:50:58]StoreOFDPacket docnum=4989 [13:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0E 01 00 00 F3 66 06 01 C3 4C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 41 0F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7D 13 00 00 35 04 06 00 B9 DA 36 A8 91 8C FA 88 FA 1E 34 61 AB C9 [13:50:58]CheckFolder [13:50:58]dirname=/storage/ofd_packets [13:50:58]CheckFolder done [13:50:58]ProducePacketName [13:50:58]name=ofd_packets/00004989 [13:50:58]NVStorageSaveData ofd_packets/00004989 [13:50:58]File name is /storage/ofd_packets/00004989 [13:50:58]Write 300 bytes [13:50:58]NVStorageSaveData done [13:50:58]OFDSenderStorePacket done [13:50:58]KKMCreateOFDPacket done [13:50:58]NVStorageSaveData kkm_last_timestamp [13:50:58]File name is /storage/kkm_last_timestamp [13:50:58]Write 4 bytes [13:50:58]NVStorageSaveData done [13:50:58]ExternCall_PrintAddStr [13:50:58]wPrintStart [13:50:58]Write to MH i2c: 01 00 00 A4 01 A5 [13:50:58]OFD Sender: Processing packet 4989 [packets to send 4, broken 3] [13:50:58]ProducePacketName [13:50:58]name=ofd_packets/00004989 [13:50:58]OFD Sender: To server: pG, [13:50:58]CommunicateWithHost lk.salyk.kg:30040 [13:50:58]ConnectInit lk.salyk.kg [13:50:58]Write i2c OK [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: 01 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: 01 07 00 [13:50:58]MH_I2C_Read... [13:50:58]Read from MH i2c: 01 07 00 A4 01 00 00 00 00 00 FF 0F BA [13:50:58]RasterBufferAndPrint [13:50:58]line Счет N : (1)1992838 [13:50:58]line ИНН: 02508201610067 [13:50:58]line Контрольно-Кассовый Чек [13:50:58]line ПРОДАЖА [13:50:58]line ТРК (МРК, ГНК) : 81 [13:50:58]line Товар: 2711190000 [13:50:58]line ГАЗ-К-5 [13:50:58]line 29.240 * 34.20 [13:50:58]line = 1000.01 [13:50:58]line НДС 12% НСП 1% [13:50:58]line > о реализуемом товаре [13:50:58]line ИТОГО: 1000.01 [13:50:58]line НСП 1% : 8.85 [13:50:58]line НДС 12% : 106.20 [13:50:58]line Наличными: 0.00 [13:50:58]line Безнал.: 1000.01 [13:50:58]line Место: АЗС № 135 "Партнер Нефть" [13:50:58]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [13:50:58]line СНО: Общий режим [13:50:58]line Чек 49 16.05.2024 13:50 [13:50:58]line Смена: 44 ФФД: 1.0 [13:50:58]line ЗНМ: 0300000237 [13:50:58]line РНМ: 0000000000154221 [13:50:58]line Версия ККМ: v1.0 [13:50:58]line Платежная система: O! деньги [13:50:58]line ФМ: 0000000000963259 [13:50:58]line ФД: 4989 [13:50:58]line ФПД: 204346871026060 [13:50:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T135057&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4989&fm=204346871026060&tin=02508201610067®Number=0000000000154221&sum=100001 [13:50:59]Connected sock=10 [13:50:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0E 01 00 00 F3 66 06 01 C3 4C 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 38 72 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A1 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A1 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 41 0F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7D 13 00 00 35 04 06 00 B9 DA 36 A8 91 8C FA 88 FA 1E 34 61 AB C9 [13:50:59]written 0, free lines is 4095 [13:50:59]Write to MH i2c: 01 00 00 CE 01 CF [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: 01 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: 01 07 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: 01 07 00 CE 01 00 00 00 00 00 7C 0C 5E [13:50:59]RasterBufferAndPrint [13:50:59]line [13:50:59]line [13:50:59]line [13:50:59]line [13:50:59]line [13:50:59]written 0, free lines is 3200 [13:50:59]MH_Cut [13:50:59]Write to MH i2c: D1 01 00 D5 01 01 A8 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: D1 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: D1 01 00 [13:50:59]MH_I2C_Read... [13:50:59]Read from MH i2c: D1 01 00 D5 01 00 A7 [13:50:59]Write to MH i2c: 01 00 00 D6 01 D7 [13:50:59]Write i2c OK [13:50:59]MH_I2C_Read... [13:51:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 40 82 47 00 72 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7D 13 00 00 F4 03 04 00 04 BB 45 66 B6 04 01 00 00 5E 0C B3 3A 8B 18 30 31 [13:51:00]CommunicateWithHost err = 0 [13:51:00]CheckOFDResponse [13:51:00]1017 (14) - 77093643461234 [13:51:00]1041 (16) - 0000000000963259 [13:51:00]1040 (4) - 4989 [13:51:00]1012 (4) - 16.05.2024 07:51 [13:51:00]1206 (1) - 0 [13:51:00]OFD Sender: Remove packet 4989 [13:51:00]ProducePacketName [13:51:00]name=ofd_packets/00004989 [13:51:00]NVStorageDeleteData [13:51:00]OFD Sender: No OFD packet to send [13:51:00]*** Cut start [13:51:00]*** Partial cut [13:51:00]*** CUTSNS_PIN = 1 [13:51:00]*** CUTSNS_PIN = 0 [13:51:01]*** Brake cut motor [13:51:01]Read from MH i2c: 01 [13:51:01]MH_I2C_Read... [13:51:01]*** Stop cut motor [13:51:01]*** Cut end [13:51:01]Read from MH i2c: 01 07 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: 01 07 00 D6 01 00 00 00 00 00 FF 0F EC [13:51:01]process_action close_receipt done [13:51:01]requested_data is exist [13:51:01]produce_requested_data [13:51:01]requested_item fm.sn is exist - process it [13:51:01]wFMCommunicate request_size=4 [13:51:01]MH_SAM_APDU [13:51:01]CAPDU: 80 11 00 00 [13:51:01]Write to MH i2c: E2 08 00 D7 01 80 11 00 00 00 00 00 00 52 [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:51:01]Read from MH i2c: E2 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 17 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 17 00 D7 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A7 [13:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [13:51:01]wFMCommunicate OK [13:51:01]requested_item fd.num is exist - process it [13:51:01]SAM_PROTO_GetFieldsCounters [13:51:01]wFMCommunicate request_size=4 [13:51:01]MH_SAM_APDU [13:51:01]CAPDU: 80 13 00 00 [13:51:01]Write to MH i2c: E2 08 00 D8 01 80 13 00 00 00 00 00 00 55 [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:51:01]Read from MH i2c: E2 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 62 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 62 00 D8 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7D 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [13:51:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7D 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [13:51:01]wFMCommunicate OK [13:51:01]SAM_PROTO_GetFieldsCounters done [13:51:01]requested_item shift.num is exist - process it [13:51:01]requested_item shift.opened is exist - process it [13:51:01]req_shift_opened [13:51:01]FM_GetShiftState [13:51:01]SAM_PROTO_GetShiftState [13:51:01]wFMCommunicate request_size=4 [13:51:01]MH_SAM_APDU [13:51:01]CAPDU: 80 13 01 00 [13:51:01]Write to MH i2c: E2 08 00 D9 01 80 13 01 00 00 00 00 00 57 [13:51:01]Write i2c OK [13:51:01]MH_I2C_Read... [13:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:51:01]Read from MH i2c: E2 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 0E 00 [13:51:01]MH_I2C_Read... [13:51:01]Read from MH i2c: E2 0E 00 D9 01 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 63 [13:51:01]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [13:51:01]wFMCommunicate OK [13:51:01]SAM_PROTO_GetShiftState done [13:51:01]FM_GetShiftState done [13:51:01]req_shift_opened done [13:51:01]requested_item shift.open_date is exist - process it [13:51:01]req_shift_open_date [13:51:01]req_shift_open_date done [13:51:01]produce_requested_data done [13:51:01]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4989,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [13:51:01]process_action_free close_receipt [13:51:01]json_value_free [13:51:01]json_value_free done [13:51:01]process_json_proto returns [13:51:01]Send response to host [13:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4989,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [13:51:01]free response buf [13:51:01]execute_script done [13:51:01]execute_script returns [13:51:01]free content buf [13:51:01]Sock 7.Close socket [13:51:01]Sock 7.Thread stoped [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:46]recv_with_timeout no data received [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:05]recv_with_timeout no data received [13:52:10]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:54:57]ConnectInit Can't connect to host [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:35]accept exits with 9 [14:05:35]New connection [14:05:35]New thread 3067252068 created [14:05:35]Thread 3067108708 joined [14:05:35]Waiting for new connection... [14:05:35] Sock 9.Parse request [14:05:35]Sock 9.Check first char [14:05:35]Sock 9.First char is OK [14:05:35]request: POST /json_proto HTTP/1.0 [14:05:35]Method: POST [14:05:35]URL: /json_proto [14:05:35]Method is POST - this is cgi request [14:05:35]url: /json_proto [14:05:35]query_string will be loaded in cgi processing [14:05:35]execute_cgi json_proto POST (null) [14:05:35]execute_cgi path=json_proto method=POST [14:05:35]POST find Content-Length [14:05:35]Host: 172.17.44.4:8080 [14:05:35]Content-Length: 632 [14:05:35]Content-Type: application/json [14:05:35] [14:05:35]POST finish read [14:05:35]Found Content-Length = 632 [14:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140992", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:35]execute_script... [14:05: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)140992", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:35]POST & json_proto [14:05:35]process_json_proto [14:05:35]json parsed OK: [14:05:35]protocol is kg_v1.0 [14:05:35]action value=close_receipt [14:05:35]process_action close_receipt [14:05:35]cmd_close_receipt [14:05:35]MH_GetDate [14:05:35]Write to MH i2c: F0 00 00 DA 01 CA [14:05:35]Write i2c OK [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: F0 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: F0 09 00 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: F0 09 00 DA 01 00 B0 12 46 66 6C E9 28 66 24 [14:05:35]GetLastDocTimeStamp 1715867457 [14:05:35]current date 1715868336 [14:05:35]FM_GetShiftState [14:05:35]SAM_PROTO_GetShiftState [14:05:35]wFMCommunicate request_size=4 [14:05:35]MH_SAM_APDU [14:05:35]CAPDU: 80 13 01 00 [14:05:35]Write to MH i2c: E2 08 00 DB 01 80 13 01 00 00 00 00 00 59 [14:05:35]Write i2c OK [14:05:35]MH_I2C_Read... [14:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:35]Read from MH i2c: E2 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: E2 0E 00 [14:05:35]MH_I2C_Read... [14:05:35]Read from MH i2c: E2 0E 00 DB 01 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 65 [14:05:35]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:05:35]wFMCommunicate OK [14:05:35]SAM_PROTO_GetShiftState done [14:05:35]FM_GetShiftState done [14:05:35]opened in 1715818246 [14:05:35]opened+sec_in_day 1715904646 [14:05:35]quantity*price = 4000 [14:05:35]sum+1 = 4001 [14:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 50 16.05.2024 14:05 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4990 ФПД: 124025969539099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T140536&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4990&fm=124025969539099&tin=02508201610067®Number=0000000000154221&sum=4000 0 [14:05:36]StoreToDocumentArchive [14:05:36]shift 44 fd 4990 [14:05:36]save to /storage/0044/doc_00004990 [14:05:36]save last doc name /storage/0044/doc_00004990 to /storage/kkm_last_doc_name [14:05:36]save OK [14:05:36]Clear old archive folders... [14:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:05:36]tlvbuf is 011EAB70 [14:05:36]SAM_PROTO_ClearQueue [14:05:36]wFMCommunicate request_size=4 [14:05:36]MH_SAM_APDU [14:05:36]CAPDU: 80 09 00 00 [14:05:36]Write to MH i2c: E2 08 00 E8 01 80 09 00 00 00 00 00 00 5B [14:05:36]Write i2c OK [14:05:36]MH_I2C_Read... [14:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:36]Read from MH i2c: E2 [14:05:36]MH_I2C_Read... [14:05:36]Read from MH i2c: E2 03 00 [14:05:36]MH_I2C_Read... [14:05:36]Read from MH i2c: E2 03 00 E8 01 00 90 00 5D [14:05:36]RAPDU: 90 00 [14:05:36]wFMCommunicate OK [14:05:36]SAM_PROTO_ClearQueue done [14:05:36]KKMCreateOFDPacket [14:05:36]OFDProtocolAddRootSTLVToBuf [14:05:36]FM_MakeSignedData [14:05:36]FM_MakeSignedData [14:05:36]SAM_PROTO_SignData [14:05:36]wFMCommunicate request_size=4 [14:05:36]MH_SAM_APDU [14:05:36]CAPDU: 80 0D 01 02 [14:05:36]Write to MH i2c: E2 08 00 E9 01 80 0D 01 02 00 00 00 00 63 [14:05:36]Write i2c OK [14:05:36]MH_I2C_Read... [14:05:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:36]Read from MH i2c: E2 [14:05:36]MH_I2C_Read... [14:05:36]Read from MH i2c: E2 03 00 [14:05:36]MH_I2C_Read... [14:05:36]Read from MH i2c: E2 03 00 E9 01 00 90 00 5E [14:05:36]RAPDU: 90 00 [14:05:36]wFMCommunicate OK [14:05:36]wFMCommunicate request_size=255 [14:05:36]MH_SAM_APDU [14:05:36]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B0 12 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:05:36]Write to MH i2c: E2 02 01 EA 01 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B0 12 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 0A [14:05:36]Write i2c OK [14:05:36]MH_I2C_Read... [14:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:37]Read from MH i2c: E2 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 03 00 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 03 00 EA 01 00 90 00 5F [14:05:37]RAPDU: 90 00 [14:05:37]wFMCommunicate OK [14:05:37]wFMCommunicate request_size=30 [14:05:37]MH_SAM_APDU [14:05:37]CAPDU: 80 0D 02 02 19 30 39 36 33 32 35 39 10 04 04 00 7E 13 00 00 35 04 06 00 70 CD 0B DB 78 1B [14:05:37]Write to MH i2c: E2 21 00 EB 01 80 0D 02 02 19 00 30 39 36 33 32 35 39 10 04 04 00 7E 13 00 00 35 04 06 00 70 CD 0B DB 78 1B 00 00 A8 [14:05:37]Write i2c OK [14:05:37]MH_I2C_Read... [14:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:37]Read from MH i2c: E2 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 03 00 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [14:05:37]RAPDU: 90 00 [14:05:37]wFMCommunicate OK [14:05:37]wFMCommunicate request_size=4 [14:05:37]MH_SAM_APDU [14:05:37]CAPDU: 80 0D 03 02 [14:05:37]Write to MH i2c: E2 08 00 EC 01 80 0D 03 02 00 00 00 00 68 [14:05:37]Write i2c OK [14:05:37]MH_I2C_Read... [14:05:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:37]Read from MH i2c: E2 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 0B 00 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 0B 00 EC 01 00 2E 1E 77 EE F9 74 48 26 90 00 F5 [14:05:37]RAPDU: 2E 1E 77 EE F9 74 48 26 90 00 [14:05:37]wFMCommunicate OK [14:05:37]SAM_PROTO_SignData done [14:05:37]FM_MakeSignedData done [14:05:37]CreateOFDProtocolMessage [14:05:37]wFMCommunicate request_size=4 [14:05:37]MH_SAM_APDU [14:05:37]CAPDU: 80 11 00 00 [14:05:37]Write to MH i2c: E2 08 00 ED 01 80 11 00 00 00 00 00 00 68 [14:05:37]Write i2c OK [14:05:37]MH_I2C_Read... [14:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:37]Read from MH i2c: E2 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 17 00 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: E2 17 00 ED 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 BD [14:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:05:37]wFMCommunicate OK [14:05:37]CreateOFDProtocolMessage done [14:05:37]OFDSenderStorePacket 4990 [14:05:37]StoreOFDPacket docnum=4990 [14:05:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 23 01 00 00 13 8C 1B 01 4C C0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B0 12 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7E 13 00 00 35 04 06 00 70 CD 0B DB 78 1B 2E 1E 77 EE F9 74 48 26 [14:05:37]CheckFolder [14:05:37]dirname=/storage/ofd_packets [14:05:37]CheckFolder done [14:05:37]ProducePacketName [14:05:37]name=ofd_packets/00004990 [14:05:37]NVStorageSaveData ofd_packets/00004990 [14:05:37]File name is /storage/ofd_packets/00004990 [14:05:37]Write 321 bytes [14:05:37]NVStorageSaveData done [14:05:37]OFDSenderStorePacket done [14:05:37]KKMCreateOFDPacket done [14:05:37]NVStorageSaveData kkm_last_timestamp [14:05:37]File name is /storage/kkm_last_timestamp [14:05:37]Write 4 bytes [14:05:37]NVStorageSaveData done [14:05:37]ExternCall_PrintAddStr [14:05:37]wPrintStart [14:05:37]Write to MH i2c: 01 00 00 EE 01 EF [14:05:37]Write i2c OK [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: 01 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: 01 07 00 [14:05:37]MH_I2C_Read... [14:05:37]Read from MH i2c: 01 07 00 EE 01 00 00 00 00 00 FF 0F 04 [14:05:37]RasterBufferAndPrint [14:05:37]line Счет N : (3)140992 [14:05:37]line ИНН: 02508201610067 [14:05:37]line Контрольно-Кассовый Чек [14:05:37]line ПРОДАЖА [14:05:37]line Товар: 4700000160211 [14:05:37]line Вода Легенда 0,5л [14:05:37]line 1.000 * 40.00 [14:05:37]line = 40.00 [14:05:37]line НДС 12% НСП 1% [14:05:37]line > о реализуемом товаре [14:05:37]line ИТОГО: 40.00 [14:05:37]line НСП 1% : 0.35 [14:05:37]line НДС 12% : 4.25 [14:05:37]line Наличными: 40.00 [14:05:37]line Безнал.: 0.00 [14:05:37]line Место: АЗС № 135 "Партнер Нефть" [14:05:37]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:05:37]line СНО: Общий режим [14:05:37]line Чек 50 16.05.2024 14:05 [14:05:37]line Смена: 44 ФФД: 1.0 [14:05:37]line ЗНМ: 0300000237 [14:05:37]line РНМ: 0000000000154221 [14:05:37]line Версия ККМ: v1.0 [14:05:37]line ФМ: 0000000000963259 [14:05:37]line ФД: 4990 [14:05:37]line ФПД: 124025969539099 [14:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T140536&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4990&fm=124025969539099&tin=02508201610067®Number=0000000000154221&sum=4000 [14:05:37]line 0 [14:05:37]OFD Sender: Processing packet 4990 [packets to send 4, broken 3] [14:05:37]ProducePacketName [14:05:37]name=ofd_packets/00004990 [14:05:37]OFD Sender: To server: pG, [14:05:37]CommunicateWithHost lk.salyk.kg:30040 [14:05:37]ConnectInit lk.salyk.kg [14:05:37]written 0, free lines is 4095 [14:05:37]Connected sock=10 [14:05:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 23 01 00 00 13 8C 1B 01 4C C0 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B0 12 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7E 13 00 00 35 04 06 00 70 CD 0B DB 78 1B 2E 1E 77 EE F9 74 48 26 [14:05:38]Write to MH i2c: 01 00 00 16 02 18 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 07 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: 01 07 00 16 02 00 00 00 00 00 9C 0C C7 [14:05:38]RasterBufferAndPrint [14:05:38]line [14:05:38]line [14:05:38]line [14:05:38]line [14:05:38]line [14:05:38]written 0, free lines is 3232 [14:05:38]MH_Cut [14:05:38]Write to MH i2c: D1 01 00 1D 02 01 F1 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: D1 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: D1 01 00 [14:05:38]MH_I2C_Read... [14:05:38]Read from MH i2c: D1 01 00 1D 02 00 F0 [14:05:38]Write to MH i2c: 01 00 00 1E 02 20 [14:05:38]Write i2c OK [14:05:38]MH_I2C_Read... [14:05:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 5A 8F 47 00 52 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7E 13 00 00 F4 03 04 00 73 BE 45 66 B6 04 01 00 00 CC 17 E8 5D FA AD A6 C7 [14:05:38]CommunicateWithHost err = 0 [14:05:38]CheckOFDResponse [14:05:38]1017 (14) - 77093643461234 [14:05:38]1041 (16) - 0000000000963259 [14:05:38]1040 (4) - 4990 [14:05:38]1012 (4) - 16.05.2024 08:06 [14:05:38]1206 (1) - 0 [14:05:38]OFD Sender: Remove packet 4990 [14:05:38]ProducePacketName [14:05:38]name=ofd_packets/00004990 [14:05:38]NVStorageDeleteData [14:05:38]OFD Sender: No OFD packet to send [14:05:39]*** Cut start [14:05:39]*** Partial cut [14:05:39]*** CUTSNS_PIN = 1 [14:05:39]*** CUTSNS_PIN = 0 [14:05:39]*** Brake cut motor [14:05:39]Read from MH i2c: 01 [14:05:39]MH_I2C_Read... [14:05:39]*** Stop cut motor [14:05:39]*** Cut end [14:05:39]Read from MH i2c: 01 07 00 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: 01 07 00 1E 02 00 00 00 00 00 FF 0F 35 [14:05:39]process_action close_receipt done [14:05:39]requested_data is exist [14:05:39]produce_requested_data [14:05:39]requested_item fm.sn is exist - process it [14:05:39]wFMCommunicate request_size=4 [14:05:39]MH_SAM_APDU [14:05:39]CAPDU: 80 11 00 00 [14:05:39]Write to MH i2c: E2 08 00 1F 02 80 11 00 00 00 00 00 00 9B [14:05:39]Write i2c OK [14:05:39]MH_I2C_Read... [14:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:39]Read from MH i2c: E2 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: E2 17 00 [14:05:39]MH_I2C_Read... [14:05:39]Read from MH i2c: E2 17 00 1F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F0 [14:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:05:39]wFMCommunicate OK [14:05:39]requested_item fd.num is exist - process it [14:05:39]SAM_PROTO_GetFieldsCounters [14:05:39]wFMCommunicate request_size=4 [14:05:39]MH_SAM_APDU [14:05:39]CAPDU: 80 13 00 00 [14:05:39]Write to MH i2c: E2 08 00 20 02 80 13 00 00 00 00 00 00 9E [14:05:39]Write i2c OK [14:05:39]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 62 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 62 00 20 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7E 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [14:05:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7E 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:40]wFMCommunicate OK [14:05:40]SAM_PROTO_GetFieldsCounters done [14:05:40]requested_item shift.num is exist - process it [14:05:40]requested_item shift.opened is exist - process it [14:05:40]req_shift_opened [14:05:40]FM_GetShiftState [14:05:40]SAM_PROTO_GetShiftState [14:05:40]wFMCommunicate request_size=4 [14:05:40]MH_SAM_APDU [14:05:40]CAPDU: 80 13 01 00 [14:05:40]Write to MH i2c: E2 08 00 21 02 80 13 01 00 00 00 00 00 A0 [14:05:40]Write i2c OK [14:05:40]MH_I2C_Read... [14:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:40]Read from MH i2c: E2 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0E 00 [14:05:40]MH_I2C_Read... [14:05:40]Read from MH i2c: E2 0E 00 21 02 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 AC [14:05:40]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:05:40]wFMCommunicate OK [14:05:40]SAM_PROTO_GetShiftState done [14:05:40]FM_GetShiftState done [14:05:40]req_shift_opened done [14:05:40]requested_item shift.open_date is exist - process it [14:05:40]req_shift_open_date [14:05:40]req_shift_open_date done [14:05:40]produce_requested_data done [14:05:40]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4990,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:05:40]process_action_free close_receipt [14:05:40]json_value_free [14:05:40]json_value_free done [14:05:40]process_json_proto returns [14:05:40]Send response to host [14:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4990,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:05:40]free response buf [14:05:40]execute_script done [14:05:40]execute_script returns [14:05:40]free content buf [14:05:40]Sock 9.Close socket [14:05:40]Sock 9.Thread stoped [14:05:43]OFD Sender: No OFD packet to send [14:05:48]OFD Sender: No OFD packet to send [14:05:53]OFD Sender: No OFD packet to send [14:05:58]OFD Sender: No OFD packet to send [14:06:03]OFD Sender: No OFD packet to send [14:06:08]OFD Sender: No OFD packet to send [14:06:13]OFD Sender: No OFD packet to send [14:06:18]OFD Sender: No OFD packet to send [14:06:23]OFD Sender: No OFD packet to send [14:06:28]OFD Sender: No OFD packet to send [14:06:33]OFD Sender: No OFD packet to send [14:06:38]OFD Sender: No OFD packet to send [14:06:43]OFD Sender: No OFD packet to send [14:06:48]OFD Sender: No OFD packet to send [14:06:53]OFD Sender: No OFD packet to send [14:06:58]OFD Sender: No OFD packet to send [14:07:03]OFD Sender: No OFD packet to send [14:07:08]OFD Sender: No OFD packet to send [14:07:13]OFD Sender: No OFD packet to send [14:07:18]OFD Sender: No OFD packet to send [14:07:23]OFD Sender: No OFD packet to send [14:07:28]OFD Sender: No OFD packet to send [14:07:33]OFD Sender: No OFD packet to send [14:07:38]OFD Sender: No OFD packet to send [14:07:43]OFD Sender: No OFD packet to send [14:07:48]OFD Sender: No OFD packet to send [14:07:53]OFD Sender: No OFD packet to send [14:07:58]OFD Sender: No OFD packet to send [14:08:03]OFD Sender: No OFD packet to send [14:08:08]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:04]OFD Sender: No OFD packet to send [14:11:09]OFD Sender: No OFD packet to send [14:11:14]OFD Sender: No OFD packet to send [14:11:19]OFD Sender: No OFD packet to send [14:11:24]OFD Sender: No OFD packet to send [14:11:29]OFD Sender: No OFD packet to send [14:11:34]OFD Sender: No OFD packet to send [14:11:39]OFD Sender: No OFD packet to send [14:11:44]OFD Sender: No OFD packet to send [14:11:49]OFD Sender: No OFD packet to send [14:11:54]OFD Sender: No OFD packet to send [14:11:59]OFD Sender: No OFD packet to send [14:12:04]OFD Sender: No OFD packet to send [14:12:09]OFD Sender: No OFD packet to send [14:12:14]OFD Sender: No OFD packet to send [14:12:19]OFD Sender: No OFD packet to send [14:12:24]OFD Sender: No OFD packet to send [14:12:29]OFD Sender: No OFD packet to send [14:12:34]OFD Sender: No OFD packet to send [14:12:39]OFD Sender: No OFD packet to send [14:12:44]OFD Sender: No OFD packet to send [14:12:49]OFD Sender: No OFD packet to send [14:12:54]OFD Sender: No OFD packet to send [14:12:59]OFD Sender: No OFD packet to send [14:13:04]OFD Sender: No OFD packet to send [14:13:09]OFD Sender: No OFD packet to send [14:13:14]OFD Sender: No OFD packet to send [14:13:19]OFD Sender: No OFD packet to send [14:13:24]OFD Sender: No OFD packet to send [14:13:29]OFD Sender: No OFD packet to send [14:13:34]OFD Sender: No OFD packet to send [14:13:39]OFD Sender: No OFD packet to send [14:13:44]OFD Sender: No OFD packet to send [14:13:49]OFD Sender: No OFD packet to send [14:13:54]OFD Sender: No OFD packet to send [14:13:59]OFD Sender: No OFD packet to send [14:14:04]OFD Sender: No OFD packet to send [14:14:09]OFD Sender: No OFD packet to send [14:14:14]OFD Sender: No OFD packet to send [14:14:19]OFD Sender: No OFD packet to send [14:14:24]OFD Sender: No OFD packet to send [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:09]OFD Sender: No OFD packet to send [14:16:14]OFD Sender: No OFD packet to send [14:16:19]OFD Sender: No OFD packet to send [14:16:24]OFD Sender: No OFD packet to send [14:16:29]OFD Sender: No OFD packet to send [14:16:34]OFD Sender: No OFD packet to send [14:16:39]OFD Sender: No OFD packet to send [14:16:44]OFD Sender: No OFD packet to send [14:16:49]OFD Sender: No OFD packet to send [14:16:54]OFD Sender: No OFD packet to send [14:16:59]OFD Sender: No OFD packet to send [14:17:04]OFD Sender: No OFD packet to send [14:17:09]OFD Sender: No OFD packet to send [14:17:14]OFD Sender: No OFD packet to send [14:17:19]OFD Sender: No OFD packet to send [14:17:24]OFD Sender: No OFD packet to send [14:17:29]OFD Sender: No OFD packet to send [14:17:34]OFD Sender: No OFD packet to send [14:17:39]OFD Sender: No OFD packet to send [14:17:44]OFD Sender: No OFD packet to send [14:17:49]OFD Sender: No OFD packet to send [14:17:54]OFD Sender: No OFD packet to send [14:17:59]OFD Sender: No OFD packet to send [14:18:04]OFD Sender: No OFD packet to send [14:18:09]OFD Sender: No OFD packet to send [14:18:14]OFD Sender: No OFD packet to send [14:18:19]OFD Sender: No OFD packet to send [14:18:24]OFD Sender: No OFD packet to send [14:18:29]OFD Sender: No OFD packet to send [14:18:34]OFD Sender: No OFD packet to send [14:18:39]OFD Sender: No OFD packet to send [14:18:44]OFD Sender: No OFD packet to send [14:18:49]OFD Sender: No OFD packet to send [14:18:54]OFD Sender: No OFD packet to send [14:18:59]OFD Sender: No OFD packet to send [14:19:04]OFD Sender: No OFD packet to send [14:19:09]OFD Sender: No OFD packet to send [14:19:14]OFD Sender: No OFD packet to send [14:19:19]OFD Sender: No OFD packet to send [14:19:24]OFD Sender: No OFD packet to send [14:19:29]OFD Sender: No OFD packet to send [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:50]accept exits with 7 [14:19:50]New connection [14:19:50]New thread 3067108708 created [14:19:50]Thread 3067252068 joined [14:19:50]Waiting for new connection... [14:19:50] Sock 7.Parse request [14:19:50]Sock 7.Check first char [14:19:50]Sock 7.First char is OK [14:19:50]request: POST /json_proto HTTP/1.0 [14:19:50]Method: POST [14:19:50]URL: /json_proto [14:19:50]Method is POST - this is cgi request [14:19:50]url: /json_proto [14:19:50]query_string will be loaded in cgi processing [14:19:50]execute_cgi json_proto POST (null) [14:19:50]execute_cgi path=json_proto method=POST [14:19:50]POST find Content-Length [14:19:50]Host: 172.17.44.4:8080 [14:19:50]Content-Length: 613 [14:19:50]Content-Type: application/json [14:19:50] [14:19:50]POST finish read [14:19:50]Found Content-Length = 613 [14:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140993", "tax_sys" : 0, "items" : [ { "code": "46196798", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "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" ] } } [14:19:50]execute_script... [14:19:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140993", "tax_sys" : 0, "items" : [ { "code": "46196798", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "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" ] } } [14:19:50]POST & json_proto [14:19:50]process_json_proto [14:19:50]json parsed OK: [14:19:50]protocol is kg_v1.0 [14:19:50]action value=close_receipt [14:19:50]process_action close_receipt [14:19:50]cmd_close_receipt [14:19:50]MH_GetDate [14:19:50]Write to MH i2c: F0 00 00 22 02 13 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: F0 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: F0 09 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: F0 09 00 22 02 00 06 16 46 66 6C E9 28 66 C7 [14:19:50]GetLastDocTimeStamp 1715868336 [14:19:50]current date 1715869190 [14:19:50]FM_GetShiftState [14:19:50]SAM_PROTO_GetShiftState [14:19:50]wFMCommunicate request_size=4 [14:19:50]MH_SAM_APDU [14:19:50]CAPDU: 80 13 01 00 [14:19:50]Write to MH i2c: E2 08 00 23 02 80 13 01 00 00 00 00 00 A2 [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:50]Read from MH i2c: E2 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 0E 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 0E 00 23 02 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 AE [14:19:50]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:19:50]wFMCommunicate OK [14:19:50]SAM_PROTO_GetShiftState done [14:19:50]FM_GetShiftState done [14:19:50]opened in 1715818246 [14:19:50]opened+sec_in_day 1715904646 [14:19:50]quantity*price = 15000 [14:19:50]sum+1 = 15001 [14:19:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 51 16.05.2024 14:19 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4991 ФПД: 83167088112824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T141950&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4991&fm=83167088112824&tin=02508201610067®Number=0000000000154221&sum=15000 0 [14:19:51]StoreToDocumentArchive [14:19:51]shift 44 fd 4991 [14:19:51]save to /storage/0044/doc_00004991 [14:19:51]save last doc name /storage/0044/doc_00004991 to /storage/kkm_last_doc_name [14:19:51]save OK [14:19:51]Clear old archive folders... [14:19:51]ProcessDocumentItem done err = 0, tmpTLVsize=265 [14:19:51]tlvbuf is 011DD310 [14:19:51]SAM_PROTO_ClearQueue [14:19:51]wFMCommunicate request_size=4 [14:19:51]MH_SAM_APDU [14:19:51]CAPDU: 80 09 00 00 [14:19:51]Write to MH i2c: E2 08 00 30 02 80 09 00 00 00 00 00 00 A4 [14:19:51]Write i2c OK [14:19:51]MH_I2C_Read... [14:19:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:51]Read from MH i2c: E2 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: E2 03 00 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: E2 03 00 30 02 00 90 00 A6 [14:19:51]RAPDU: 90 00 [14:19:51]wFMCommunicate OK [14:19:51]SAM_PROTO_ClearQueue done [14:19:51]KKMCreateOFDPacket [14:19:51]OFDProtocolAddRootSTLVToBuf [14:19:51]FM_MakeSignedData [14:19:51]FM_MakeSignedData [14:19:51]SAM_PROTO_SignData [14:19:51]wFMCommunicate request_size=4 [14:19:51]MH_SAM_APDU [14:19:51]CAPDU: 80 0D 01 02 [14:19:51]Write to MH i2c: E2 08 00 31 02 80 0D 01 02 00 00 00 00 AC [14:19:51]Write i2c OK [14:19:51]MH_I2C_Read... [14:19:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:51]Read from MH i2c: E2 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: E2 03 00 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: E2 03 00 31 02 00 90 00 A7 [14:19:51]RAPDU: 90 00 [14:19:51]wFMCommunicate OK [14:19:51]wFMCommunicate request_size=255 [14:19:51]MH_SAM_APDU [14:19:51]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 33 00 00 00 F4 03 04 00 06 16 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 [14:19:51]Write to MH i2c: E2 02 01 32 02 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 33 00 00 00 F4 03 04 00 06 16 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 00 00 81 [14:19:51]Write i2c OK [14:19:51]MH_I2C_Read... [14:19:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:51]Read from MH i2c: E2 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: E2 03 00 [14:19:51]MH_I2C_Read... [14:19:51]Read from MH i2c: E2 03 00 32 02 00 90 00 A8 [14:19:51]RAPDU: 90 00 [14:19:51]wFMCommunicate OK [14:19:51]wFMCommunicate request_size=24 [14:19:51]MH_SAM_APDU [14:19:51]CAPDU: 80 0D 02 02 13 39 10 04 04 00 7F 13 00 00 35 04 06 00 4B A3 D8 BE 74 B8 [14:19:51]Write to MH i2c: E2 1B 00 33 02 80 0D 02 02 13 00 39 10 04 04 00 7F 13 00 00 35 04 06 00 4B A3 D8 BE 74 B8 00 00 A7 [14:19:51]Write i2c OK [14:19:51]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 33 02 00 90 00 A9 [14:19:52]RAPDU: 90 00 [14:19:52]wFMCommunicate OK [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 0D 03 02 [14:19:52]Write to MH i2c: E2 08 00 34 02 80 0D 03 02 00 00 00 00 B1 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 0B 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 0B 00 34 02 00 A3 FE 69 C9 12 D4 EE 86 90 00 DF [14:19:52]RAPDU: A3 FE 69 C9 12 D4 EE 86 90 00 [14:19:52]wFMCommunicate OK [14:19:52]SAM_PROTO_SignData done [14:19:52]FM_MakeSignedData done [14:19:52]CreateOFDProtocolMessage [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 11 00 00 [14:19:52]Write to MH i2c: E2 08 00 35 02 80 11 00 00 00 00 00 00 B1 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 17 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 17 00 35 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 06 [14:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:19:52]wFMCommunicate OK [14:19:52]CreateOFDProtocolMessage done [14:19:52]OFDSenderStorePacket 4991 [14:19:52]StoreOFDPacket docnum=4991 [14:19:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 1D 01 00 00 34 09 15 01 8A 47 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 33 00 00 00 F4 03 04 00 06 16 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7F 13 00 00 35 04 06 00 4B A3 D8 BE 74 B8 A3 FE 69 C9 12 D4 EE 86 [14:19:52]CheckFolder [14:19:52]dirname=/storage/ofd_packets [14:19:52]CheckFolder done [14:19:52]ProducePacketName [14:19:52]name=ofd_packets/00004991 [14:19:52]NVStorageSaveData ofd_packets/00004991 [14:19:52]File name is /storage/ofd_packets/00004991 [14:19:52]Write 315 bytes [14:19:52]NVStorageSaveData done [14:19:52]OFDSenderStorePacket done [14:19:52]KKMCreateOFDPacket done [14:19:52]NVStorageSaveData kkm_last_timestamp [14:19:52]File name is /storage/kkm_last_timestamp [14:19:52]Write 4 bytes [14:19:52]NVStorageSaveData done [14:19:52]ExternCall_PrintAddStr [14:19:52]wPrintStart [14:19:52]Write to MH i2c: 01 00 00 36 02 38 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 07 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 07 00 36 02 00 00 00 00 00 FF 0F 4D [14:19:52]RasterBufferAndPrint [14:19:52]line Счет N : (3)140993 [14:19:52]line ИНН: 02508201610067 [14:19:52]line Контрольно-Кассовый Чек [14:19:52]line ПРОДАЖА [14:19:52]line Товар: 46196798 [14:19:52]line Сигареты Mevius Revo [14:19:52]line 1.000 * 150.00 [14:19:52]line = 150.00 [14:19:52]line НДС 12% НСП 1% [14:19:52]line > о реализуемом товаре [14:19:52]line ИТОГО: 150.00 [14:19:52]line НСП 1% : 1.33 [14:19:52]line НДС 12% : 15.93 [14:19:52]line Наличными: 150.00 [14:19:52]line Безнал.: 0.00 [14:19:52]line Место: АЗС № 135 "Партнер Нефть" [14:19:52]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:19:52]line СНО: Общий режим [14:19:52]line Чек 51 16.05.2024 14:19 [14:19:52]line Смена: 44 ФФД: 1.0 [14:19:52]line ЗНМ: 0300000237 [14:19:52]line РНМ: 0000000000154221 [14:19:52]line Версия ККМ: v1.0 [14:19:52]line ФМ: 0000000000963259 [14:19:52]line ФД: 4991 [14:19:52]line ФПД: 83167088112824 [14:19:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T141950&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4991&fm=83167088112824&tin=02508201610067®Number=0000000000154221&sum=15000 [14:19:52]line 0 [14:19:52]OFD Sender: Processing packet 4991 [packets to send 4, broken 3] [14:19:52]ProducePacketName [14:19:52]name=ofd_packets/00004991 [14:19:52]OFD Sender: To server: pG, [14:19:52]CommunicateWithHost lk.salyk.kg:30040 [14:19:52]ConnectInit lk.salyk.kg [14:19:52]written 0, free lines is 4095 [14:19:52]Connected sock=10 [14:19:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 1D 01 00 00 34 09 15 01 8A 47 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 36 31 39 36 37 39 38 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F 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 33 00 00 00 F4 03 04 00 06 16 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7F 13 00 00 35 04 06 00 4B A3 D8 BE 74 B8 A3 FE 69 C9 12 D4 EE 86 [14:19:52]Write to MH i2c: 01 00 00 5E 02 60 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 07 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 07 00 5E 02 00 00 00 00 00 9D 0C 10 [14:19:52]RasterBufferAndPrint [14:19:52]line [14:19:52]line [14:19:52]line [14:19:52]line [14:19:52]line [14:19:52]written 0, free lines is 3234 [14:19:52]MH_Cut [14:19:52]Write to MH i2c: D1 01 00 65 02 01 39 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: D1 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: D1 01 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: D1 01 00 65 02 00 38 [14:19:52]Write to MH i2c: 01 00 00 66 02 68 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 21 3B 47 00 C4 01 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 7F 13 00 00 F4 03 04 00 CA C1 45 66 B6 04 01 00 00 D5 F4 01 21 96 26 1B 49 [14:19:53]CommunicateWithHost err = 0 [14:19:53]CheckOFDResponse [14:19:53]1017 (14) - 77093643461234 [14:19:53]1041 (16) - 0000000000963259 [14:19:53]1040 (4) - 4991 [14:19:53]1012 (4) - 16.05.2024 08:20 [14:19:53]1206 (1) - 0 [14:19:53]OFD Sender: Remove packet 4991 [14:19:53]ProducePacketName [14:19:53]name=ofd_packets/00004991 [14:19:53]NVStorageDeleteData [14:19:53]OFD Sender: No OFD packet to send [14:19:54]*** Cut start [14:19:54]*** Partial cut [14:19:54]*** CUTSNS_PIN = 1 [14:19:54]*** CUTSNS_PIN = 0 [14:19:54]*** Brake cut motor [14:19:54]Read from MH i2c: 01 [14:19:54]MH_I2C_Read... [14:19:54]*** Stop cut motor [14:19:54]*** Cut end [14:19:54]Read from MH i2c: 01 07 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: 01 07 00 66 02 00 00 00 00 00 FF 0F 7D [14:19:54]process_action close_receipt done [14:19:54]requested_data is exist [14:19:54]produce_requested_data [14:19:54]requested_item fm.sn is exist - process it [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 11 00 00 [14:19:54]Write to MH i2c: E2 08 00 67 02 80 11 00 00 00 00 00 00 E3 [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 17 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 17 00 67 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 38 [14:19:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:19:54]wFMCommunicate OK [14:19:54]requested_item fd.num is exist - process it [14:19:54]SAM_PROTO_GetFieldsCounters [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 13 00 00 [14:19:54]Write to MH i2c: E2 08 00 68 02 80 13 00 00 00 00 00 00 E6 [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 62 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 62 00 68 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7F 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 56 [14:19:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 7F 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:54]wFMCommunicate OK [14:19:54]SAM_PROTO_GetFieldsCounters done [14:19:54]requested_item shift.num is exist - process it [14:19:54]requested_item shift.opened is exist - process it [14:19:54]req_shift_opened [14:19:54]FM_GetShiftState [14:19:54]SAM_PROTO_GetShiftState [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 13 01 00 [14:19:54]Write to MH i2c: E2 08 00 69 02 80 13 01 00 00 00 00 00 E8 [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:54]Read from MH i2c: E2 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 0E 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: E2 0E 00 69 02 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F4 [14:19:54]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:19:54]wFMCommunicate OK [14:19:54]SAM_PROTO_GetShiftState done [14:19:54]FM_GetShiftState done [14:19:54]req_shift_opened done [14:19:54]requested_item shift.open_date is exist - process it [14:19:54]req_shift_open_date [14:19:54]req_shift_open_date done [14:19:54]produce_requested_data done [14:19:54]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4991,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:19:54]process_action_free close_receipt [14:19:54]json_value_free [14:19:54]json_value_free done [14:19:54]process_json_proto returns [14:19:54]Send response to host [14:19:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4991,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:19:54]free response buf [14:19:54]execute_script done [14:19:54]execute_script returns [14:19:54]free content buf [14:19:54]Sock 7.Close socket [14:19:54]Sock 7.Thread stoped [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:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:28]OFD Sender: No OFD packet to send [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:23]OFD Sender: No OFD packet to send [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:38]OFD Sender: No OFD packet to send [14:25:43]OFD Sender: No OFD packet to send [14:25:53]OFD Sender: No OFD packet to send [14:25:58]OFD Sender: No OFD packet to send [14:26:03]OFD Sender: No OFD packet to send [14:26:08]OFD Sender: No OFD packet to send [14:26:13]OFD Sender: No OFD packet to send [14:26:18]OFD Sender: No OFD packet to send [14:26:23]OFD Sender: No OFD packet to send [14:26:28]OFD Sender: No OFD packet to send [14:26:33]OFD Sender: No OFD packet to send [14:26:38]OFD Sender: No OFD packet to send [14:26:43]OFD Sender: No OFD packet to send [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:04]ConnectInit Can't connect to host [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:38]OFD Sender: No OFD packet to send [14:28:43]OFD Sender: No OFD packet to send [14:28:48]OFD Sender: No OFD packet to send [14:28:53]OFD Sender: No OFD packet to send [14:28:58]OFD Sender: No OFD packet to send [14:29:03]OFD Sender: No OFD packet to send [14:29:08]OFD Sender: No OFD packet to send [14:29:13]OFD Sender: No OFD packet to send [14:29:18]OFD Sender: No OFD packet to send [14:29:23]OFD Sender: No OFD packet to send [14:29:28]OFD Sender: No OFD packet to send [14:29:33]OFD Sender: No OFD packet to send [14:29:38]OFD Sender: No OFD packet to send [14:29:43]OFD Sender: No OFD packet to send [14:29:48]OFD Sender: No OFD packet to send [14:29:53]OFD Sender: No OFD packet to send [14:29:58]OFD Sender: No OFD packet to send [14:30:03]OFD Sender: No OFD packet to send [14:30:08]OFD Sender: No OFD packet to send [14:30:13]OFD Sender: No OFD packet to send [14:30:18]OFD Sender: No OFD packet to send [14:30:23]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:04]OFD Sender: No OFD packet to send [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:42]accept exits with 9 [14:31:42]New connection [14:31:42]New thread 3067252068 created [14:31:42]Thread 3067108708 joined [14:31:42]Waiting for new connection... [14:31:42] Sock 9.Parse request [14:31:42]Sock 9.Check first char [14:31:42]Sock 9.First char is OK [14:31:42]request: POST /json_proto HTTP/1.0 [14:31:42]Method: POST [14:31:42]URL: /json_proto [14:31:42]Method is POST - this is cgi request [14:31:42]url: /json_proto [14:31:42]query_string will be loaded in cgi processing [14:31:42]execute_cgi json_proto POST (null) [14:31:42]execute_cgi path=json_proto method=POST [14:31:42]POST find Content-Length [14:31:42]Host: 172.17.44.4:8080 [14:31:42]Content-Length: 720 [14:31:42]Content-Type: application/json [14:31:42] [14:31:42]POST finish read [14:31:42]Found Content-Length = 720 [14:31:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140994", "tax_sys" : 0, "items" : [ { "code": "46114709", "name": "\u0416\u0435\u0432 \u041C\u0435\u043D\u0442\u043E\u0441 \u0422\u0443\u0442\u0442\u0438 \u0424\u0440\u0443\u0442\u0442\u0438 8*6*54\u0433 \u0431\u0430\u043D\u043A\u0430", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:42]execute_script... [14:31:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140994", "tax_sys" : 0, "items" : [ { "code": "46114709", "name": "\u0416\u0435\u0432 \u041C\u0435\u043D\u0442\u043E\u0441 \u0422\u0443\u0442\u0442\u0438 \u0424\u0440\u0443\u0442\u0442\u0438 8*6*54\u0433 \u0431\u0430\u043D\u043A\u0430", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:42]POST & json_proto [14:31:42]process_json_proto [14:31:42]json parsed OK: [14:31:42]protocol is kg_v1.0 [14:31:42]action value=close_receipt [14:31:42]process_action close_receipt [14:31:42]cmd_close_receipt [14:31:42]MH_GetDate [14:31:42]Write to MH i2c: F0 00 00 6A 02 5B [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: F0 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: F0 09 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: F0 09 00 6A 02 00 CE 18 46 66 6C E9 28 66 D9 [14:31:42]GetLastDocTimeStamp 1715869190 [14:31:42]current date 1715869902 [14:31:42]FM_GetShiftState [14:31:42]SAM_PROTO_GetShiftState [14:31:42]wFMCommunicate request_size=4 [14:31:42]MH_SAM_APDU [14:31:42]CAPDU: 80 13 01 00 [14:31:42]Write to MH i2c: E2 08 00 6B 02 80 13 01 00 00 00 00 00 EA [14:31:42]Write i2c OK [14:31:42]MH_I2C_Read... [14:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:42]Read from MH i2c: E2 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 0E 00 [14:31:42]MH_I2C_Read... [14:31:42]Read from MH i2c: E2 0E 00 6B 02 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F6 [14:31:42]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:31:42]wFMCommunicate OK [14:31:42]SAM_PROTO_GetShiftState done [14:31:42]FM_GetShiftState done [14:31:42]opened in 1715818246 [14:31:42]opened+sec_in_day 1715904646 [14:31:42]quantity*price = 20500 [14:31:42]sum+1 = 20501 [14:31:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 52 16.05.2024 14:31 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4992 ФПД: 46916943868941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T143143&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4992&fm=46916943868941&tin=02508201610067®Number=0000000000154221&sum=20500 0 [14:31:43]StoreToDocumentArchive [14:31:43]shift 44 fd 4992 [14:31:43]save to /storage/0044/doc_00004992 [14:31:43]save last doc name /storage/0044/doc_00004992 to /storage/kkm_last_doc_name [14:31:43]save OK [14:31:43]Clear old archive folders... [14:31:43]ProcessDocumentItem done err = 0, tmpTLVsize=300 [14:31:43]tlvbuf is 0115C800 [14:31:43]SAM_PROTO_ClearQueue [14:31:43]wFMCommunicate request_size=4 [14:31:43]MH_SAM_APDU [14:31:43]CAPDU: 80 09 00 00 [14:31:43]Write to MH i2c: E2 08 00 78 02 80 09 00 00 00 00 00 00 EC [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:43]Read from MH i2c: E2 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 78 02 00 90 00 EE [14:31:43]RAPDU: 90 00 [14:31:43]wFMCommunicate OK [14:31:43]SAM_PROTO_ClearQueue done [14:31:43]KKMCreateOFDPacket [14:31:43]OFDProtocolAddRootSTLVToBuf [14:31:43]FM_MakeSignedData [14:31:43]FM_MakeSignedData [14:31:43]SAM_PROTO_SignData [14:31:43]wFMCommunicate request_size=4 [14:31:43]MH_SAM_APDU [14:31:43]CAPDU: 80 0D 01 02 [14:31:43]Write to MH i2c: E2 08 00 79 02 80 0D 01 02 00 00 00 00 F4 [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:43]Read from MH i2c: E2 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 [14:31:43]MH_I2C_Read... [14:31:43]Read from MH i2c: E2 03 00 79 02 00 90 00 EF [14:31:43]RAPDU: 90 00 [14:31:43]wFMCommunicate OK [14:31:43]wFMCommunicate request_size=255 [14:31:43]MH_SAM_APDU [14:31:43]CAPDU: 80 0D 02 02 FA 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 CF 18 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 [14:31:43]Write to MH i2c: E2 02 01 7A 02 80 0D 02 02 FA 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 CF 18 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 00 00 FA [14:31:43]Write i2c OK [14:31:43]MH_I2C_Read... [14:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:44]Read from MH i2c: E2 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 03 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 03 00 7A 02 00 90 00 F0 [14:31:44]RAPDU: 90 00 [14:31:44]wFMCommunicate OK [14:31:44]wFMCommunicate request_size=59 [14:31:44]MH_SAM_APDU [14:31:44]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 80 13 00 00 35 04 06 00 2A AB B3 C5 F4 0D [14:31:44]Write to MH i2c: E2 3E 00 7B 02 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 80 13 00 00 35 04 06 00 2A AB B3 C5 F4 0D 00 00 F1 [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]OFD Sender: No OFD packet to send [14:31:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:44]Read from MH i2c: E2 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 03 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 03 00 7B 02 00 90 00 F1 [14:31:44]RAPDU: 90 00 [14:31:44]wFMCommunicate OK [14:31:44]wFMCommunicate request_size=4 [14:31:44]MH_SAM_APDU [14:31:44]CAPDU: 80 0D 03 02 [14:31:44]Write to MH i2c: E2 08 00 7C 02 80 0D 03 02 00 00 00 00 F9 [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:44]Read from MH i2c: E2 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 0B 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 0B 00 7C 02 00 04 38 B0 94 66 EF C0 EE 90 00 7D [14:31:44]RAPDU: 04 38 B0 94 66 EF C0 EE 90 00 [14:31:44]wFMCommunicate OK [14:31:44]SAM_PROTO_SignData done [14:31:44]FM_MakeSignedData done [14:31:44]CreateOFDProtocolMessage [14:31:44]wFMCommunicate request_size=4 [14:31:44]MH_SAM_APDU [14:31:44]CAPDU: 80 11 00 00 [14:31:44]Write to MH i2c: E2 08 00 7D 02 80 11 00 00 00 00 00 00 F9 [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:44]Read from MH i2c: E2 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 17 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: E2 17 00 7D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 4E [14:31:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:31:44]wFMCommunicate OK [14:31:44]CreateOFDProtocolMessage done [14:31:44]OFDSenderStorePacket 4992 [14:31:44]StoreOFDPacket docnum=4992 [14:31:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 40 01 00 00 17 7B 38 01 57 B3 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 CF 18 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 80 13 00 00 35 04 06 00 2A AB B3 C5 F4 0D 04 38 B0 94 66 EF C0 EE [14:31:44]CheckFolder [14:31:44]dirname=/storage/ofd_packets [14:31:44]CheckFolder done [14:31:44]ProducePacketName [14:31:44]name=ofd_packets/00004992 [14:31:44]NVStorageSaveData ofd_packets/00004992 [14:31:44]File name is /storage/ofd_packets/00004992 [14:31:44]Write 350 bytes [14:31:44]NVStorageSaveData done [14:31:44]OFDSenderStorePacket done [14:31:44]KKMCreateOFDPacket done [14:31:44]NVStorageSaveData kkm_last_timestamp [14:31:44]File name is /storage/kkm_last_timestamp [14:31:44]Write 4 bytes [14:31:44]NVStorageSaveData done [14:31:44]ExternCall_PrintAddStr [14:31:44]wPrintStart [14:31:44]Write to MH i2c: 01 00 00 7E 02 80 [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: 01 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: 01 07 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: 01 07 00 7E 02 00 00 00 00 00 FF 0F 95 [14:31:44]RasterBufferAndPrint [14:31:44]line Счет N : (3)140994 [14:31:44]line ИНН: 02508201610067 [14:31:44]line Контрольно-Кассовый Чек [14:31:44]line ПРОДАЖА [14:31:44]line Товар: 46114709 [14:31:44]line Жев Ментос Тутти Фрутти 8*6*54г банка [14:31:44]line 1.000 * 205.00 [14:31:44]line = 205.00 [14:31:44]line НДС 12% НСП 1% [14:31:44]line > о реализуемом товаре [14:31:44]line ИТОГО: 205.00 [14:31:44]line НСП 1% : 1.81 [14:31:44]line НДС 12% : 21.77 [14:31:44]line Наличными: 205.00 [14:31:44]line Безнал.: 0.00 [14:31:44]line Место: АЗС № 135 "Партнер Нефть" [14:31:44]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:31:44]line СНО: Общий режим [14:31:44]line Чек 52 16.05.2024 14:31 [14:31:44]line Смена: 44 ФФД: 1.0 [14:31:44]line ЗНМ: 0300000237 [14:31:44]line РНМ: 0000000000154221 [14:31:44]line Версия ККМ: v1.0 [14:31:44]line ФМ: 0000000000963259 [14:31:44]line ФД: 4992 [14:31:44]line ФПД: 46916943868941 [14:31:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T143143&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4992&fm=46916943868941&tin=02508201610067®Number=0000000000154221&sum=20500 [14:31:44]line 0 [14:31:44]OFD Sender: Processing packet 4992 [packets to send 4, broken 3] [14:31:44]ProducePacketName [14:31:44]name=ofd_packets/00004992 [14:31:44]OFD Sender: To server: pG, [14:31:44]CommunicateWithHost lk.salyk.kg:30040 [14:31:44]ConnectInit lk.salyk.kg [14:31:44]written 0, free lines is 4095 [14:31:44]Write to MH i2c: 01 00 00 A7 02 A9 [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: 01 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: 01 07 00 [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: 01 07 00 A7 02 00 00 00 00 00 82 0C 3E [14:31:44]RasterBufferAndPrint [14:31:44]line [14:31:44]line [14:31:44]line [14:31:44]line [14:31:44]line [14:31:44]written 0, free lines is 3206 [14:31:44]MH_Cut [14:31:44]Write to MH i2c: D1 01 00 AE 02 01 82 [14:31:44]Write i2c OK [14:31:44]MH_I2C_Read... [14:31:44]Read from MH i2c: D1 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: D1 01 00 [14:31:45]MH_I2C_Read... [14:31:45]Read from MH i2c: D1 01 00 AE 02 00 81 [14:31:45]Write to MH i2c: 01 00 00 AF 02 B1 [14:31:45]Write i2c OK [14:31:45]MH_I2C_Read... [14:31:45]Connected sock=10 [14:31:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 40 01 00 00 17 7B 38 01 57 B3 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 31 34 37 30 39 06 04 3F 00 D0 96 D0 B5 D0 B2 20 D0 9C D0 B5 D0 BD D1 82 D0 BE D1 81 20 D0 A2 D1 83 D1 82 D1 82 D0 B8 20 D0 A4 D1 80 D1 83 D1 82 D1 82 D0 B8 20 38 2A 36 2A 35 34 D0 B3 20 D0 B1 D0 B0 D0 BD D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 CF 18 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 80 13 00 00 35 04 06 00 2A AB B3 C5 F4 0D 04 38 B0 94 66 EF C0 EE [14:31:46]*** Cut start [14:31:46]*** Partial cut [14:31:46]*** CUTSNS_PIN = 1 [14:31:46]*** CUTSNS_PIN = 0 [14:31:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 8E D6 47 00 A4 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 80 13 00 00 F4 03 04 00 93 C4 45 66 B6 04 01 00 00 8A 65 B6 41 71 B6 38 00 [14:31:46]CommunicateWithHost err = 0 [14:31:46]CheckOFDResponse [14:31:46]1017 (14) - 77093643461234 [14:31:46]1041 (16) - 0000000000963259 [14:31:46]1040 (4) - 4992 [14:31:46]1012 (4) - 16.05.2024 08:32 [14:31:46]1206 (1) - 0 [14:31:46]OFD Sender: Remove packet 4992 [14:31:46]ProducePacketName [14:31:46]name=ofd_packets/00004992 [14:31:46]NVStorageDeleteData [14:31:46]*** Brake cut motor [14:31:46]OFD Sender: No OFD packet to send [14:31:46]Read from MH i2c: 01 [14:31:46]MH_I2C_Read... [14:31:46]*** Stop cut motor [14:31:46]*** Cut end [14:31:46]Read from MH i2c: 01 07 00 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: 01 07 00 AF 02 00 00 00 00 00 FF 0F C6 [14:31:46]process_action close_receipt done [14:31:46]requested_data is exist [14:31:46]produce_requested_data [14:31:46]requested_item fm.sn is exist - process it [14:31:46]wFMCommunicate request_size=4 [14:31:46]MH_SAM_APDU [14:31:46]CAPDU: 80 11 00 00 [14:31:46]Write to MH i2c: E2 08 00 B0 02 80 11 00 00 00 00 00 00 2C [14:31:46]Write i2c OK [14:31:46]MH_I2C_Read... [14:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:46]Read from MH i2c: E2 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 17 00 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 17 00 B0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 81 [14:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:31:46]wFMCommunicate OK [14:31:46]requested_item fd.num is exist - process it [14:31:46]SAM_PROTO_GetFieldsCounters [14:31:46]wFMCommunicate request_size=4 [14:31:46]MH_SAM_APDU [14:31:46]CAPDU: 80 13 00 00 [14:31:46]Write to MH i2c: E2 08 00 B1 02 80 13 00 00 00 00 00 00 2F [14:31:46]Write i2c OK [14:31:46]MH_I2C_Read... [14:31:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:46]Read from MH i2c: E2 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 62 00 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 62 00 B1 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 80 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [14:31:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 80 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:31:46]wFMCommunicate OK [14:31:46]SAM_PROTO_GetFieldsCounters done [14:31:46]requested_item shift.num is exist - process it [14:31:46]requested_item shift.opened is exist - process it [14:31:46]req_shift_opened [14:31:46]FM_GetShiftState [14:31:46]SAM_PROTO_GetShiftState [14:31:46]wFMCommunicate request_size=4 [14:31:46]MH_SAM_APDU [14:31:46]CAPDU: 80 13 01 00 [14:31:46]Write to MH i2c: E2 08 00 B2 02 80 13 01 00 00 00 00 00 31 [14:31:46]Write i2c OK [14:31:46]MH_I2C_Read... [14:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:46]Read from MH i2c: E2 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 0E 00 [14:31:46]MH_I2C_Read... [14:31:46]Read from MH i2c: E2 0E 00 B2 02 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3D [14:31:46]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:31:46]wFMCommunicate OK [14:31:46]SAM_PROTO_GetShiftState done [14:31:46]FM_GetShiftState done [14:31:46]req_shift_opened done [14:31:46]requested_item shift.open_date is exist - process it [14:31:46]req_shift_open_date [14:31:46]req_shift_open_date done [14:31:46]produce_requested_data done [14:31:46]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4992,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:31:46]process_action_free close_receipt [14:31:46]json_value_free [14:31:46]json_value_free done [14:31:46]process_json_proto returns [14:31:46]Send response to host [14:31:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4992,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:31:46]free response buf [14:31:46]execute_script done [14:31:46]execute_script returns [14:31:46]free content buf [14:31:46]Sock 9.Close socket [14:31:46]Sock 9.Thread stoped [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:12]OFD Sender: No OFD packet to send [14:38:17]OFD Sender: No OFD packet to send [14:38:22]OFD Sender: No OFD packet to send [14:38:27]OFD Sender: No OFD packet to send [14:38:32]OFD Sender: No OFD packet to send [14:38:37]OFD Sender: No OFD packet to send [14:38:42]OFD Sender: No OFD packet to send [14:38:47]OFD Sender: No OFD packet to send [14:38:52]OFD Sender: No OFD packet to send [14:38:57]OFD Sender: No OFD packet to send [14:39:02]OFD Sender: No OFD packet to send [14:39:07]OFD Sender: No OFD packet to send [14:39:12]OFD Sender: No OFD packet to send [14:39:17]OFD Sender: No OFD packet to send [14:39:22]OFD Sender: No OFD packet to send [14:39:27]OFD Sender: No OFD packet to send [14:39:32]OFD Sender: No OFD packet to send [14:39:37]OFD Sender: No OFD packet to send [14:39:42]OFD Sender: No OFD packet to send [14:39:47]OFD Sender: No OFD packet to send [14:39:52]OFD Sender: No OFD packet to send [14:39:57]OFD Sender: No OFD packet to send [14:40:02]OFD Sender: No OFD packet to send [14:40:07]OFD Sender: No OFD packet to send [14:40:07]accept exits with 7 [14:40:07]New connection [14:40:07]New thread 3067108708 created [14:40:07]Thread 3067252068 joined [14:40:07]Waiting for new connection... [14:40:07] Sock 7.Parse request [14:40:07]Sock 7.Check first char [14:40:07]Sock 7.First char is OK [14:40:07]request: POST /json_proto HTTP/1.0 [14:40:07]Method: POST [14:40:07]URL: /json_proto [14:40:07]Method is POST - this is cgi request [14:40:07]url: /json_proto [14:40:07]query_string will be loaded in cgi processing [14:40:07]execute_cgi json_proto POST (null) [14:40:07]execute_cgi path=json_proto method=POST [14:40:07]POST find Content-Length [14:40:07]Host: 172.17.44.4:8080 [14:40:07]Content-Length: 620 [14:40:07]Content-Type: application/json [14:40:07] [14:40:07]POST finish read [14:40:07]Found Content-Length = 620 [14:40:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140995", "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" ] } } [14:40:07]execute_script... [14:40: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)140995", "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" ] } } [14:40:07]POST & json_proto [14:40:07]process_json_proto [14:40:07]json parsed OK: [14:40:07]protocol is kg_v1.0 [14:40:07]action value=close_receipt [14:40:07]process_action close_receipt [14:40:07]cmd_close_receipt [14:40:07]MH_GetDate [14:40:07]Write to MH i2c: F0 00 00 B3 02 A4 [14:40:07]Write i2c OK [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: F0 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: F0 09 00 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: F0 09 00 B3 02 00 C8 1A 46 66 6C E9 28 66 1E [14:40:07]GetLastDocTimeStamp 1715869903 [14:40:07]current date 1715870408 [14:40:07]FM_GetShiftState [14:40:07]SAM_PROTO_GetShiftState [14:40:07]wFMCommunicate request_size=4 [14:40:07]MH_SAM_APDU [14:40:07]CAPDU: 80 13 01 00 [14:40:07]Write to MH i2c: E2 08 00 B4 02 80 13 01 00 00 00 00 00 33 [14:40:07]Write i2c OK [14:40:07]MH_I2C_Read... [14:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:07]Read from MH i2c: E2 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: E2 0E 00 [14:40:07]MH_I2C_Read... [14:40:07]Read from MH i2c: E2 0E 00 B4 02 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3F [14:40:07]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:40:07]wFMCommunicate OK [14:40:07]SAM_PROTO_GetShiftState done [14:40:07]FM_GetShiftState done [14:40:07]opened in 1715818246 [14:40:07]opened+sec_in_day 1715904646 [14:40:07]quantity*price = 13800 [14:40:07]sum+1 = 13801 [14:40:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 53 16.05.2024 14:40 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4993 ФПД: 146995993967983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144008&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4993&fm=146995993967983&tin=02508201610067®Number=0000000000154221&sum=13800 0 [14:40:08]StoreToDocumentArchive [14:40:08]shift 44 fd 4993 [14:40:08]save to /storage/0044/doc_00004993 [14:40:08]save last doc name /storage/0044/doc_00004993 to /storage/kkm_last_doc_name [14:40:08]save OK [14:40:08]Clear old archive folders... [14:40:08]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:40:08]tlvbuf is 011791E0 [14:40:08]SAM_PROTO_ClearQueue [14:40:08]wFMCommunicate request_size=4 [14:40:08]MH_SAM_APDU [14:40:08]CAPDU: 80 09 00 00 [14:40:08]Write to MH i2c: E2 08 00 C1 02 80 09 00 00 00 00 00 00 35 [14:40:08]Write i2c OK [14:40:08]MH_I2C_Read... [14:40:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:40:08]Read from MH i2c: E2 [14:40:08]MH_I2C_Read... [14:40:08]Read from MH i2c: E2 03 00 [14:40:08]MH_I2C_Read... [14:40:08]Read from MH i2c: E2 03 00 C1 02 00 90 00 37 [14:40:08]RAPDU: 90 00 [14:40:08]wFMCommunicate OK [14:40:08]SAM_PROTO_ClearQueue done [14:40:08]KKMCreateOFDPacket [14:40:08]OFDProtocolAddRootSTLVToBuf [14:40:08]FM_MakeSignedData [14:40:08]FM_MakeSignedData [14:40:08]SAM_PROTO_SignData [14:40:08]wFMCommunicate request_size=4 [14:40:08]MH_SAM_APDU [14:40:08]CAPDU: 80 0D 01 02 [14:40:08]Write to MH i2c: E2 08 00 C2 02 80 0D 01 02 00 00 00 00 3D [14:40:08]Write i2c OK [14:40:08]MH_I2C_Read... [14:40:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:40:08]Read from MH i2c: E2 [14:40:08]MH_I2C_Read... [14:40:08]Read from MH i2c: E2 03 00 [14:40:08]MH_I2C_Read... [14:40:08]Read from MH i2c: E2 03 00 C2 02 00 90 00 38 [14:40:08]RAPDU: 90 00 [14:40:08]wFMCommunicate OK [14:40:08]wFMCommunicate request_size=255 [14:40:08]MH_SAM_APDU [14:40:08]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 35 00 00 00 F4 03 04 00 C8 1A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 [14:40:08]Write to MH i2c: E2 02 01 C3 02 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 35 00 00 00 F4 03 04 00 C8 1A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 4A [14:40:08]Write i2c OK [14:40:08]MH_I2C_Read... [14:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:09]Read from MH i2c: E2 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 03 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 03 00 C3 02 00 90 00 39 [14:40:09]RAPDU: 90 00 [14:40:09]wFMCommunicate OK [14:40:09]wFMCommunicate request_size=31 [14:40:09]MH_SAM_APDU [14:40:09]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 32 35 39 10 04 04 00 81 13 00 00 35 04 06 00 85 B1 2C 00 FD 6F [14:40:09]Write to MH i2c: E2 22 00 C4 02 80 0D 02 02 1A 00 30 30 39 36 33 32 35 39 10 04 04 00 81 13 00 00 35 04 06 00 85 B1 2C 00 FD 6F 00 00 CF [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:40:09]Read from MH i2c: E2 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 03 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 03 00 C4 02 00 90 00 3A [14:40:09]RAPDU: 90 00 [14:40:09]wFMCommunicate OK [14:40:09]wFMCommunicate request_size=4 [14:40:09]MH_SAM_APDU [14:40:09]CAPDU: 80 0D 03 02 [14:40:09]Write to MH i2c: E2 08 00 C5 02 80 0D 03 02 00 00 00 00 42 [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:40:09]Read from MH i2c: E2 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 0B 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 0B 00 C5 02 00 40 01 3E 41 BE 0D 18 FB 90 00 E1 [14:40:09]RAPDU: 40 01 3E 41 BE 0D 18 FB 90 00 [14:40:09]wFMCommunicate OK [14:40:09]SAM_PROTO_SignData done [14:40:09]FM_MakeSignedData done [14:40:09]CreateOFDProtocolMessage [14:40:09]wFMCommunicate request_size=4 [14:40:09]MH_SAM_APDU [14:40:09]CAPDU: 80 11 00 00 [14:40:09]Write to MH i2c: E2 08 00 C6 02 80 11 00 00 00 00 00 00 42 [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:09]Read from MH i2c: E2 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 17 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: E2 17 00 C6 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 97 [14:40:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:40:09]wFMCommunicate OK [14:40:09]CreateOFDProtocolMessage done [14:40:09]OFDSenderStorePacket 4993 [14:40:09]StoreOFDPacket docnum=4993 [14:40:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 24 01 00 00 86 D4 1C 01 62 38 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 35 00 00 00 F4 03 04 00 C8 1A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 81 13 00 00 35 04 06 00 85 B1 2C 00 FD 6F 40 01 3E 41 BE 0D 18 FB [14:40:09]CheckFolder [14:40:09]dirname=/storage/ofd_packets [14:40:09]CheckFolder done [14:40:09]ProducePacketName [14:40:09]name=ofd_packets/00004993 [14:40:09]NVStorageSaveData ofd_packets/00004993 [14:40:09]File name is /storage/ofd_packets/00004993 [14:40:09]Write 322 bytes [14:40:09]NVStorageSaveData done [14:40:09]OFDSenderStorePacket done [14:40:09]KKMCreateOFDPacket done [14:40:09]NVStorageSaveData kkm_last_timestamp [14:40:09]File name is /storage/kkm_last_timestamp [14:40:09]Write 4 bytes [14:40:09]NVStorageSaveData done [14:40:09]ExternCall_PrintAddStr [14:40:09]wPrintStart [14:40:09]Write to MH i2c: 01 00 00 C7 02 C9 [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: 01 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: 01 07 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: 01 07 00 C7 02 00 00 00 00 00 FF 0F DE [14:40:09]RasterBufferAndPrint [14:40:09]line Счет N : (3)140995 [14:40:09]line ИНН: 02508201610067 [14:40:09]line Контрольно-Кассовый Чек [14:40:09]line ПРОДАЖА [14:40:09]line Товар: 4640030091607 [14:40:09]line Сигареты ESSE Exchange [14:40:09]line 1.000 * 138.00 [14:40:09]line = 138.00 [14:40:09]line НДС 12% НСП 1% [14:40:09]line > о реализуемом товаре [14:40:09]line ИТОГО: 138.00 [14:40:09]line НСП 1% : 1.22 [14:40:09]line НДС 12% : 14.65 [14:40:09]line Наличными: 138.00 [14:40:09]line Безнал.: 0.00 [14:40:09]line Место: АЗС № 135 "Партнер Нефть" [14:40:09]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:40:09]line СНО: Общий режим [14:40:09]line Чек 53 16.05.2024 14:40 [14:40:09]line Смена: 44 ФФД: 1.0 [14:40:09]line ЗНМ: 0300000237 [14:40:09]line РНМ: 0000000000154221 [14:40:09]line Версия ККМ: v1.0 [14:40:09]line ФМ: 0000000000963259 [14:40:09]line ФД: 4993 [14:40:09]line ФПД: 146995993967983 [14:40:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144008&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4993&fm=146995993967983&tin=02508201610067®Number=0000000000154221&sum=13800 [14:40:09]line 0 [14:40:09]OFD Sender: Processing packet 4993 [packets to send 4, broken 3] [14:40:09]ProducePacketName [14:40:09]name=ofd_packets/00004993 [14:40:09]OFD Sender: To server: pG, [14:40:09]CommunicateWithHost lk.salyk.kg:30040 [14:40:09]ConnectInit lk.salyk.kg [14:40:09]written 0, free lines is 4095 [14:40:09]Connected sock=9 [14:40:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 24 01 00 00 86 D4 1C 01 62 38 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 35 00 00 00 F4 03 04 00 C8 1A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 81 13 00 00 35 04 06 00 85 B1 2C 00 FD 6F 40 01 3E 41 BE 0D 18 FB [14:40:09]Write to MH i2c: 01 00 00 EF 02 F1 [14:40:09]Write i2c OK [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: 01 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: 01 07 00 [14:40:09]MH_I2C_Read... [14:40:09]Read from MH i2c: 01 07 00 EF 02 00 00 00 00 00 A3 0C A7 [14:40:10]RasterBufferAndPrint [14:40:10]line [14:40:10]line [14:40:10]line [14:40:10]line [14:40:10]line [14:40:10]written 0, free lines is 3239 [14:40:10]MH_Cut [14:40:10]Write to MH i2c: D1 01 00 F6 02 01 CA [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: D1 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: D1 01 00 [14:40:10]MH_I2C_Read... [14:40:10]Read from MH i2c: D1 01 00 F6 02 00 C9 [14:40:10]Write to MH i2c: 01 00 00 F7 02 F9 [14:40:10]Write i2c OK [14:40:10]MH_I2C_Read... [14:40:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 6A 38 47 00 BD A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 81 13 00 00 F4 03 04 00 8B C6 45 66 B6 04 01 00 00 3E 00 29 68 F3 B2 15 B6 [14:40:10]CommunicateWithHost err = 0 [14:40:10]CheckOFDResponse [14:40:10]1017 (14) - 77093643461234 [14:40:10]1041 (16) - 0000000000963259 [14:40:10]1040 (4) - 4993 [14:40:10]1012 (4) - 16.05.2024 08:40 [14:40:10]1206 (1) - 0 [14:40:10]OFD Sender: Remove packet 4993 [14:40:10]ProducePacketName [14:40:10]name=ofd_packets/00004993 [14:40:10]NVStorageDeleteData [14:40:10]OFD Sender: No OFD packet to send [14:40:11]*** Cut start [14:40:11]*** Partial cut [14:40:11]*** CUTSNS_PIN = 1 [14:40:11]*** CUTSNS_PIN = 0 [14:40:11]*** Brake cut motor [14:40:11]Read from MH i2c: 01 [14:40:11]MH_I2C_Read... [14:40:11]*** Stop cut motor [14:40:11]*** Cut end [14:40:11]Read from MH i2c: 01 07 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: 01 07 00 F7 02 00 00 00 00 00 FF 0F 0E [14:40:11]process_action close_receipt done [14:40:11]requested_data is exist [14:40:11]produce_requested_data [14:40:11]requested_item fm.sn is exist - process it [14:40:11]wFMCommunicate request_size=4 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 11 00 00 [14:40:11]Write to MH i2c: E2 08 00 F8 02 80 11 00 00 00 00 00 00 74 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:11]Read from MH i2c: E2 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 17 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 17 00 F8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 C9 [14:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:40:11]wFMCommunicate OK [14:40:11]requested_item fd.num is exist - process it [14:40:11]SAM_PROTO_GetFieldsCounters [14:40:11]wFMCommunicate request_size=4 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 13 00 00 [14:40:11]Write to MH i2c: E2 08 00 F9 02 80 13 00 00 00 00 00 00 77 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:11]Read from MH i2c: E2 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 62 00 [14:40:11]MH_I2C_Read... [14:40:11]Read from MH i2c: E2 62 00 F9 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 81 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 EF [14:40:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 81 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:11]wFMCommunicate OK [14:40:11]SAM_PROTO_GetFieldsCounters done [14:40:11]requested_item shift.num is exist - process it [14:40:11]requested_item shift.opened is exist - process it [14:40:11]req_shift_opened [14:40:11]FM_GetShiftState [14:40:11]SAM_PROTO_GetShiftState [14:40:11]wFMCommunicate request_size=4 [14:40:11]MH_SAM_APDU [14:40:11]CAPDU: 80 13 01 00 [14:40:11]Write to MH i2c: E2 08 00 FA 02 80 13 01 00 00 00 00 00 79 [14:40:11]Write i2c OK [14:40:11]MH_I2C_Read... [14:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:12]Read from MH i2c: E2 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 0E 00 [14:40:12]MH_I2C_Read... [14:40:12]Read from MH i2c: E2 0E 00 FA 02 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 85 [14:40:12]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:40:12]wFMCommunicate OK [14:40:12]SAM_PROTO_GetShiftState done [14:40:12]FM_GetShiftState done [14:40:12]req_shift_opened done [14:40:12]requested_item shift.open_date is exist - process it [14:40:12]req_shift_open_date [14:40:12]req_shift_open_date done [14:40:12]produce_requested_data done [14:40:12]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4993,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:40:12]process_action_free close_receipt [14:40:12]json_value_free [14:40:12]json_value_free done [14:40:12]process_json_proto returns [14:40:12]Send response to host [14:40:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4993,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:40:12]free response buf [14:40:12]execute_script done [14:40:12]execute_script returns [14:40:12]free content buf [14:40:12]Sock 7.Close socket [14:40:12]Sock 7.Thread stoped [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:38]accept exits with 10 [14:42:38]New connection [14:42:38]New thread 3067252068 created [14:42:38]Thread 3067108708 joined [14:42:38]Waiting for new connection... [14:42:38] Sock 10.Parse request [14:42:38]Sock 10.Check first char [14:42:38]Sock 10.First char is OK [14:42:38]request: POST /json_proto HTTP/1.0 [14:42:38]Method: POST [14:42:38]URL: /json_proto [14:42:38]Method is POST - this is cgi request [14:42:38]url: /json_proto [14:42:38]query_string will be loaded in cgi processing [14:42:38]execute_cgi json_proto POST (null) [14:42:38]execute_cgi path=json_proto method=POST [14:42:38]POST find Content-Length [14:42:38]Host: 172.17.44.4:8080 [14:42:38]Content-Length: 732 [14:42:38]Content-Type: application/json [14:42:38] [14:42:38]POST finish read [14:42:38]Found Content-Length = 732 [14:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140996", "tax_sys" : 0, "items" : [ { "code": "4870233466333", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041C\u0438\u0448\u0430 \u0419\u043E\u0433\u0443\u0440\u0442 \u0427\u0435\u0440\u043D\u0438\u043A\u0430 80 \u0433\u0440", "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:42:38]execute_script... [14:42:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140996", "tax_sys" : 0, "items" : [ { "code": "4870233466333", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u041C\u0438\u0448\u0430 \u0419\u043E\u0433\u0443\u0440\u0442 \u0427\u0435\u0440\u043D\u0438\u043A\u0430 80 \u0433\u0440", "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:42:38]POST & json_proto [14:42:38]process_json_proto [14:42:38]json parsed OK: [14:42:38]protocol is kg_v1.0 [14:42:38]action value=close_receipt [14:42:38]process_action close_receipt [14:42:38]cmd_close_receipt [14:42:38]MH_GetDate [14:42:38]Write to MH i2c: F0 00 00 FB 02 EC [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: F0 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: F0 09 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: F0 09 00 FB 02 00 5F 1B 46 66 6C E9 28 66 FE [14:42:38]GetLastDocTimeStamp 1715870408 [14:42:38]current date 1715870559 [14:42:38]FM_GetShiftState [14:42:38]SAM_PROTO_GetShiftState [14:42:38]wFMCommunicate request_size=4 [14:42:38]MH_SAM_APDU [14:42:38]CAPDU: 80 13 01 00 [14:42:38]Write to MH i2c: E2 08 00 FC 02 80 13 01 00 00 00 00 00 7B [14:42:38]Write i2c OK [14:42:38]MH_I2C_Read... [14:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:38]Read from MH i2c: E2 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 0E 00 [14:42:38]MH_I2C_Read... [14:42:38]Read from MH i2c: E2 0E 00 FC 02 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 87 [14:42:38]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:42:38]wFMCommunicate OK [14:42:38]SAM_PROTO_GetShiftState done [14:42:38]FM_GetShiftState done [14:42:38]opened in 1715818246 [14:42:38]opened+sec_in_day 1715904646 [14:42:38]quantity*price = 15000 [14:42:38]sum+1 = 15001 [14:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 54 16.05.2024 14:42 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4994 ФПД: 120594630584078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144239&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4994&fm=120594630584078&tin=02508201610067®Number=0000000000154221&sum=15000 0 [14:42:39]StoreToDocumentArchive [14:42:39]shift 44 fd 4994 [14:42:39]save to /storage/0044/doc_00004994 [14:42:39]save last doc name /storage/0044/doc_00004994 to /storage/kkm_last_doc_name [14:42:39]save OK [14:42:39]Clear old archive folders... [14:42:39]ProcessDocumentItem done err = 0, tmpTLVsize=305 [14:42:39]tlvbuf is 011DCAD0 [14:42:39]SAM_PROTO_ClearQueue [14:42:39]wFMCommunicate request_size=4 [14:42:39]MH_SAM_APDU [14:42:39]CAPDU: 80 09 00 00 [14:42:39]Write to MH i2c: E2 08 00 09 03 80 09 00 00 00 00 00 00 7E [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:42:39]Read from MH i2c: E2 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 09 03 00 90 00 80 [14:42:39]RAPDU: 90 00 [14:42:39]wFMCommunicate OK [14:42:39]SAM_PROTO_ClearQueue done [14:42:39]KKMCreateOFDPacket [14:42:39]OFDProtocolAddRootSTLVToBuf [14:42:39]FM_MakeSignedData [14:42:39]FM_MakeSignedData [14:42:39]SAM_PROTO_SignData [14:42:39]wFMCommunicate request_size=4 [14:42:39]MH_SAM_APDU [14:42:39]CAPDU: 80 0D 01 02 [14:42:39]Write to MH i2c: E2 08 00 0A 03 80 0D 01 02 00 00 00 00 86 [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:42:39]Read from MH i2c: E2 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 [14:42:39]MH_I2C_Read... [14:42:39]Read from MH i2c: E2 03 00 0A 03 00 90 00 81 [14:42:39]RAPDU: 90 00 [14:42:39]wFMCommunicate OK [14:42:39]wFMCommunicate request_size=255 [14:42:39]MH_SAM_APDU [14:42:39]CAPDU: 80 0D 02 02 FA 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 33 33 33 06 04 3F 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 99 D0 BE D0 B3 D1 83 D1 80 D1 82 20 D0 A7 D0 B5 D1 80 D0 BD D0 B8 D0 BA D0 B0 20 38 30 20 D0 B3 D1 80 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 36 00 00 00 F4 03 04 00 5F 1B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 [14:42:39]Write to MH i2c: E2 02 01 0B 03 80 0D 02 02 FA 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 33 33 33 06 04 3F 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 99 D0 BE D0 B3 D1 83 D1 80 D1 82 20 D0 A7 D0 B5 D1 80 D0 BD D0 B8 D0 BA D0 B0 20 38 30 20 D0 B3 D1 80 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 36 00 00 00 F4 03 04 00 5F 1B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 00 00 9F [14:42:39]Write i2c OK [14:42:39]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 0B 03 00 90 00 82 [14:42:40]RAPDU: 90 00 [14:42:40]wFMCommunicate OK [14:42:40]wFMCommunicate request_size=64 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 0D 02 02 3B 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 82 13 00 00 35 04 06 00 6D AE 20 1E 27 0E [14:42:40]Write to MH i2c: E2 43 00 0C 03 80 0D 02 02 3B 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 82 13 00 00 35 04 06 00 6D AE 20 1E 27 0E 00 00 F1 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 03 00 0C 03 00 90 00 83 [14:42:40]RAPDU: 90 00 [14:42:40]wFMCommunicate OK [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 0D 03 02 [14:42:40]Write to MH i2c: E2 08 00 0D 03 80 0D 03 02 00 00 00 00 8B [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0B 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 0B 00 0D 03 00 DF 4B 88 4F 36 6E 2F 94 90 00 F4 [14:42:40]RAPDU: DF 4B 88 4F 36 6E 2F 94 90 00 [14:42:40]wFMCommunicate OK [14:42:40]SAM_PROTO_SignData done [14:42:40]FM_MakeSignedData done [14:42:40]CreateOFDProtocolMessage [14:42:40]wFMCommunicate request_size=4 [14:42:40]MH_SAM_APDU [14:42:40]CAPDU: 80 11 00 00 [14:42:40]Write to MH i2c: E2 08 00 0E 03 80 11 00 00 00 00 00 00 8B [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:40]Read from MH i2c: E2 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: E2 17 00 0E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 E0 [14:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:42:40]wFMCommunicate OK [14:42:40]CreateOFDProtocolMessage done [14:42:40]OFDSenderStorePacket 4994 [14:42:40]StoreOFDPacket docnum=4994 [14:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 45 01 00 00 8E 33 3D 01 CF BE 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 33 33 33 06 04 3F 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 99 D0 BE D0 B3 D1 83 D1 80 D1 82 20 D0 A7 D0 B5 D1 80 D0 BD D0 B8 D0 BA D0 B0 20 38 30 20 D0 B3 D1 80 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 36 00 00 00 F4 03 04 00 5F 1B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 82 13 00 00 35 04 06 00 6D AE 20 1E 27 0E DF 4B 88 4F 36 6E 2F 94 [14:42:40]CheckFolder [14:42:40]dirname=/storage/ofd_packets [14:42:40]CheckFolder done [14:42:40]ProducePacketName [14:42:40]name=ofd_packets/00004994 [14:42:40]NVStorageSaveData ofd_packets/00004994 [14:42:40]File name is /storage/ofd_packets/00004994 [14:42:40]Write 355 bytes [14:42:40]NVStorageSaveData done [14:42:40]OFDSenderStorePacket done [14:42:40]KKMCreateOFDPacket done [14:42:40]NVStorageSaveData kkm_last_timestamp [14:42:40]File name is /storage/kkm_last_timestamp [14:42:40]Write 4 bytes [14:42:40]NVStorageSaveData done [14:42:40]ExternCall_PrintAddStr [14:42:40]wPrintStart [14:42:40]Write to MH i2c: 01 00 00 0F 03 12 [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 07 00 0F 03 00 00 00 00 00 FF 0F 27 [14:42:40]RasterBufferAndPrint [14:42:40]line Счет N : (3)140996 [14:42:40]line ИНН: 02508201610067 [14:42:40]line Контрольно-Кассовый Чек [14:42:40]line ПРОДАЖА [14:42:40]line Товар: 4870233466333 [14:42:40]line Мороженое Миша Йогурт Черника 80 гр [14:42:40]line 2.000 * 75.00 [14:42:40]line = 150.00 [14:42:40]line НДС 12% НСП 1% [14:42:40]line > о реализуемом товаре [14:42:40]line ИТОГО: 150.00 [14:42:40]line НСП 1% : 1.33 [14:42:40]line НДС 12% : 15.93 [14:42:40]line Наличными: 150.00 [14:42:40]line Безнал.: 0.00 [14:42:40]line Место: АЗС № 135 "Партнер Нефть" [14:42:40]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:42:40]line СНО: Общий режим [14:42:40]line Чек 54 16.05.2024 14:42 [14:42:40]line Смена: 44 ФФД: 1.0 [14:42:40]line ЗНМ: 0300000237 [14:42:40]line РНМ: 0000000000154221 [14:42:40]line Версия ККМ: v1.0 [14:42:40]line ФМ: 0000000000963259 [14:42:40]line ФД: 4994 [14:42:40]line ФПД: 120594630584078 [14:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144239&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4994&fm=120594630584078&tin=02508201610067®Number=0000000000154221&sum=15000 [14:42:40]line 0 [14:42:40]OFD Sender: Processing packet 4994 [packets to send 4, broken 3] [14:42:40]ProducePacketName [14:42:40]name=ofd_packets/00004994 [14:42:40]OFD Sender: To server: pG, [14:42:40]CommunicateWithHost lk.salyk.kg:30040 [14:42:40]ConnectInit lk.salyk.kg [14:42:40]written 0, free lines is 4095 [14:42:40]Connected sock=9 [14:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 45 01 00 00 8E 33 3D 01 CF BE 5A 03 01 00 03 00 31 01 1E 04 01 00 01 23 04 83 00 8A 04 0D 00 34 38 37 30 32 33 33 34 36 36 33 33 33 06 04 3F 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 9C D0 B8 D1 88 D0 B0 20 D0 99 D0 BE D0 B3 D1 83 D1 80 D1 82 20 D0 A7 D0 B5 D1 80 D0 BD D0 B8 D0 BA D0 B0 20 38 30 20 D0 B3 D1 80 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 36 00 00 00 F4 03 04 00 5F 1B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 82 13 00 00 35 04 06 00 6D AE 20 1E 27 0E DF 4B 88 4F 36 6E 2F 94 [14:42:40]Write to MH i2c: 01 00 00 38 03 3B [14:42:40]Write i2c OK [14:42:40]MH_I2C_Read... [14:42:40]Read from MH i2c: 01 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: 01 07 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: 01 07 00 38 03 00 00 00 00 00 7C 0C CA [14:42:41]RasterBufferAndPrint [14:42:41]line [14:42:41]line [14:42:41]line [14:42:41]line [14:42:41]line [14:42:41]written 0, free lines is 3201 [14:42:41]MH_Cut [14:42:41]Write to MH i2c: D1 01 00 3F 03 01 14 [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: D1 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: D1 01 00 [14:42:41]MH_I2C_Read... [14:42:41]Read from MH i2c: D1 01 00 3F 03 00 13 [14:42:41]Write to MH i2c: 01 00 00 40 03 43 [14:42:41]Write i2c OK [14:42:41]MH_I2C_Read... [14:42:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 09 3D 47 00 DD D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 82 13 00 00 F4 03 04 00 22 C7 45 66 B6 04 01 00 00 5F 56 13 0F 4A 81 06 76 [14:42:41]CommunicateWithHost err = 0 [14:42:41]CheckOFDResponse [14:42:41]1017 (14) - 77093643461234 [14:42:41]1041 (16) - 0000000000963259 [14:42:41]1040 (4) - 4994 [14:42:41]1012 (4) - 16.05.2024 08:43 [14:42:41]1206 (1) - 0 [14:42:41]OFD Sender: Remove packet 4994 [14:42:41]ProducePacketName [14:42:41]name=ofd_packets/00004994 [14:42:41]NVStorageDeleteData [14:42:41]OFD Sender: No OFD packet to send [14:42:42]*** Cut start [14:42:42]*** Partial cut [14:42:42]*** CUTSNS_PIN = 1 [14:42:42]*** CUTSNS_PIN = 0 [14:42:42]*** Brake cut motor [14:42:42]Read from MH i2c: 01 [14:42:42]MH_I2C_Read... [14:42:42]*** Stop cut motor [14:42:42]*** Cut end [14:42:42]Read from MH i2c: 01 07 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: 01 07 00 40 03 00 00 00 00 00 FF 0F 58 [14:42:42]process_action close_receipt done [14:42:42]requested_data is exist [14:42:42]produce_requested_data [14:42:42]requested_item fm.sn is exist - process it [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 11 00 00 [14:42:42]Write to MH i2c: E2 08 00 41 03 80 11 00 00 00 00 00 00 BE [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 17 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 17 00 41 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 13 [14:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:42:42]wFMCommunicate OK [14:42:42]requested_item fd.num is exist - process it [14:42:42]SAM_PROTO_GetFieldsCounters [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 13 00 00 [14:42:42]Write to MH i2c: E2 08 00 42 03 80 13 00 00 00 00 00 00 C1 [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 62 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 62 00 42 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 82 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 3D [14:42:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 82 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:42:42]wFMCommunicate OK [14:42:42]SAM_PROTO_GetFieldsCounters done [14:42:42]requested_item shift.num is exist - process it [14:42:42]requested_item shift.opened is exist - process it [14:42:42]req_shift_opened [14:42:42]FM_GetShiftState [14:42:42]SAM_PROTO_GetShiftState [14:42:42]wFMCommunicate request_size=4 [14:42:42]MH_SAM_APDU [14:42:42]CAPDU: 80 13 01 00 [14:42:42]Write to MH i2c: E2 08 00 43 03 80 13 01 00 00 00 00 00 C3 [14:42:42]Write i2c OK [14:42:42]MH_I2C_Read... [14:42:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:42:42]Read from MH i2c: E2 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0E 00 [14:42:42]MH_I2C_Read... [14:42:42]Read from MH i2c: E2 0E 00 43 03 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CF [14:42:42]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:42:42]wFMCommunicate OK [14:42:42]SAM_PROTO_GetShiftState done [14:42:42]FM_GetShiftState done [14:42:42]req_shift_opened done [14:42:42]requested_item shift.open_date is exist - process it [14:42:42]req_shift_open_date [14:42:42]req_shift_open_date done [14:42:42]produce_requested_data done [14:42:42]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4994,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:42:42]process_action_free close_receipt [14:42:42]json_value_free [14:42:42]json_value_free done [14:42:42]process_json_proto returns [14:42:42]Send response to host [14:42:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4994,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:42:42]free response buf [14:42:42]execute_script done [14:42:42]execute_script returns [14:42:42]free content buf [14:42:42]Sock 10.Close socket [14:42:42]Sock 10.Thread stoped [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:23]accept exits with 7 [14:44:23]New connection [14:44:23]New thread 3067108708 created [14:44:23]Thread 3067252068 joined [14:44:23]Waiting for new connection... [14:44:23] Sock 7.Parse request [14:44:23]Sock 7.Check first char [14:44:23]Sock 7.First char is OK [14:44:23]request: POST /json_proto HTTP/1.0 [14:44:23]Method: POST [14:44:23]URL: /json_proto [14:44:23]Method is POST - this is cgi request [14:44:23]url: /json_proto [14:44:23]query_string will be loaded in cgi processing [14:44:23]execute_cgi json_proto POST (null) [14:44:23]execute_cgi path=json_proto method=POST [14:44:23]POST find Content-Length [14:44:23]Host: 172.17.44.4:8080 [14:44:23]Content-Length: 890 [14:44:23]Content-Type: application/json [14:44:23] [14:44:23]POST finish read [14:44:23]Found Content-Length = 890 [14:44:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140997", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 427.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:23]execute_script... [14:44: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)140997", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 427.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:44:23]POST & json_proto [14:44:23]process_json_proto [14:44:23]json parsed OK: [14:44:23]protocol is kg_v1.0 [14:44:23]action value=close_receipt [14:44:23]process_action close_receipt [14:44:23]cmd_close_receipt [14:44:23]MH_GetDate [14:44:23]Write to MH i2c: F0 00 00 44 03 36 [14:44:23]Write i2c OK [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 09 00 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: F0 09 00 44 03 00 C8 1B 46 66 6C E9 28 66 B1 [14:44:23]GetLastDocTimeStamp 1715870559 [14:44:23]current date 1715870664 [14:44:23]FM_GetShiftState [14:44:23]SAM_PROTO_GetShiftState [14:44:23]wFMCommunicate request_size=4 [14:44:23]MH_SAM_APDU [14:44:23]CAPDU: 80 13 01 00 [14:44:23]Write to MH i2c: E2 08 00 45 03 80 13 01 00 00 00 00 00 C5 [14:44:23]Write i2c OK [14:44:23]MH_I2C_Read... [14:44:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:23]Read from MH i2c: E2 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: E2 0E 00 [14:44:23]MH_I2C_Read... [14:44:23]Read from MH i2c: E2 0E 00 45 03 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 D1 [14:44:23]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:44:23]wFMCommunicate OK [14:44:23]SAM_PROTO_GetShiftState done [14:44:23]FM_GetShiftState done [14:44:23]opened in 1715818246 [14:44:23]opened+sec_in_day 1715904646 [14:44:23]quantity*price = 30200 [14:44:23]sum+1 = 30201 [14:44:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 427.00 НСП 1% : 3.78 НДС 12% : 45.34 Наличными: 427.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 55 16.05.2024 14:44 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4995 ФПД: 33363440357340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144424&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4995&fm=33363440357340&tin=02508201610067®Number=0000000000154221&sum=42700 0 [14:44:24]StoreToDocumentArchive [14:44:24]shift 44 fd 4995 [14:44:24]save to /storage/0044/doc_00004995 [14:44:24]save last doc name /storage/0044/doc_00004995 to /storage/kkm_last_doc_name [14:44:24]save OK [14:44:24]Clear old archive folders... [14:44:24]ProcessDocumentItem done err = 0, tmpTLVsize=388 [14:44:24]tlvbuf is 011DE410 [14:44:24]SAM_PROTO_ClearQueue [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 09 00 00 [14:44:24]Write to MH i2c: E2 08 00 52 03 80 09 00 00 00 00 00 00 C7 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 52 03 00 90 00 C9 [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]SAM_PROTO_ClearQueue done [14:44:24]KKMCreateOFDPacket [14:44:24]OFDProtocolAddRootSTLVToBuf [14:44:24]FM_MakeSignedData [14:44:24]FM_MakeSignedData [14:44:24]SAM_PROTO_SignData [14:44:24]wFMCommunicate request_size=4 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 01 02 [14:44:24]Write to MH i2c: E2 08 00 53 03 80 0D 01 02 00 00 00 00 CF [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:44:24]Read from MH i2c: E2 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 [14:44:24]MH_I2C_Read... [14:44:24]Read from MH i2c: E2 03 00 53 03 00 90 00 CA [14:44:24]RAPDU: 90 00 [14:44:24]wFMCommunicate OK [14:44:24]wFMCommunicate request_size=255 [14:44:24]MH_SAM_APDU [14:44:24]CAPDU: 80 0D 02 02 FA 03 00 84 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 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 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 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 CC A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [14:44:24]Write to MH i2c: E2 02 01 54 03 80 0D 02 02 FA 00 03 00 84 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 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 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 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 CC A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 A4 [14:44:24]Write i2c OK [14:44:24]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 03 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 03 00 54 03 00 90 00 CB [14:44:25]RAPDU: 90 00 [14:44:25]wFMCommunicate OK [14:44:25]wFMCommunicate request_size=147 [14:44:25]MH_SAM_APDU [14:44:25]CAPDU: 80 0D 02 02 8E F7 03 06 00 7A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 11 00 00 00 00 07 04 06 00 CC A6 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 C8 1B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 83 13 00 00 35 04 06 00 1E 58 08 02 CF DC [14:44:25]Write to MH i2c: E2 96 00 55 03 80 0D 02 02 8E 00 F7 03 06 00 7A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 11 00 00 00 00 07 04 06 00 CC A6 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 C8 1B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 83 13 00 00 35 04 06 00 1E 58 08 02 CF DC 00 00 7A [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 03 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 03 00 55 03 00 90 00 CC [14:44:25]RAPDU: 90 00 [14:44:25]wFMCommunicate OK [14:44:25]wFMCommunicate request_size=4 [14:44:25]MH_SAM_APDU [14:44:25]CAPDU: 80 0D 03 02 [14:44:25]Write to MH i2c: E2 08 00 56 03 80 0D 03 02 00 00 00 00 D4 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 0B 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 0B 00 56 03 00 BA 75 B5 50 1F 5B F0 C3 90 00 36 [14:44:25]RAPDU: BA 75 B5 50 1F 5B F0 C3 90 00 [14:44:25]wFMCommunicate OK [14:44:25]SAM_PROTO_SignData done [14:44:25]FM_MakeSignedData done [14:44:25]CreateOFDProtocolMessage [14:44:25]wFMCommunicate request_size=4 [14:44:25]MH_SAM_APDU [14:44:25]CAPDU: 80 11 00 00 [14:44:25]Write to MH i2c: E2 08 00 57 03 80 11 00 00 00 00 00 00 D4 [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:25]Read from MH i2c: E2 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 17 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: E2 17 00 57 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 29 [14:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:44:25]wFMCommunicate OK [14:44:25]CreateOFDProtocolMessage done [14:44:25]OFDSenderStorePacket 4995 [14:44:25]StoreOFDPacket docnum=4995 [14:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 98 01 00 00 0A 81 90 01 16 6F 5A 03 01 00 03 00 84 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 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 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 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 CC A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 11 00 00 00 00 07 04 06 00 CC A6 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 C8 1B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 83 13 00 00 35 04 06 00 1E 58 08 02 CF DC BA 75 B5 50 1F 5B F0 C3 [14:44:25]CheckFolder [14:44:25]dirname=/storage/ofd_packets [14:44:25]CheckFolder done [14:44:25]ProducePacketName [14:44:25]name=ofd_packets/00004995 [14:44:25]NVStorageSaveData ofd_packets/00004995 [14:44:25]File name is /storage/ofd_packets/00004995 [14:44:25]Write 438 bytes [14:44:25]NVStorageSaveData done [14:44:25]OFDSenderStorePacket done [14:44:25]KKMCreateOFDPacket done [14:44:25]NVStorageSaveData kkm_last_timestamp [14:44:25]File name is /storage/kkm_last_timestamp [14:44:25]Write 4 bytes [14:44:25]NVStorageSaveData done [14:44:25]ExternCall_PrintAddStr [14:44:25]wPrintStart [14:44:25]Write to MH i2c: 01 00 00 58 03 5B [14:44:25]OFD Sender: Processing packet 4995 [packets to send 4, broken 3] [14:44:25]ProducePacketName [14:44:25]name=ofd_packets/00004995 [14:44:25]OFD Sender: To server: pG, [14:44:25]CommunicateWithHost lk.salyk.kg:30040 [14:44:25]ConnectInit lk.salyk.kg [14:44:25]Write i2c OK [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 07 00 [14:44:25]MH_I2C_Read... [14:44:25]Read from MH i2c: 01 07 00 58 03 00 00 00 00 00 FF 0F 70 [14:44:25]RasterBufferAndPrint [14:44:25]line Счет N : (3)140997 [14:44:25]line ИНН: 02508201610067 [14:44:25]line Контрольно-Кассовый Чек [14:44:25]line ПРОДАЖА [14:44:25]line Товар: 48741958 [14:44:25]line Сигареты Parliament Aqua Blue [14:44:25]line 2.000 * 151.00 [14:44:25]line = 302.00 [14:44:25]line НДС 12% НСП 1% [14:44:25]line > о реализуемом товаре [14:44:25]line Товар: 2000036190018 [14:44:25]line Кофе Американо XL(GABB TRADE) [14:44:25]line 1.000 * 125.00 [14:44:25]line = 125.00 [14:44:25]line НДС 12% НСП 1% [14:44:25]line > о реализуемом товаре [14:44:25]line ИТОГО: 427.00 [14:44:25]line НСП 1% : 3.78 [14:44:25]line НДС 12% : 45.34 [14:44:25]line Наличными: 427.00 [14:44:25]line Безнал.: 0.00 [14:44:25]line Место: АЗС № 135 "Партнер Нефть" [14:44:25]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:44:25]line СНО: Общий режим [14:44:25]line Чек 55 16.05.2024 14:44 [14:44:25]line Смена: 44 ФФД: 1.0 [14:44:25]line ЗНМ: 0300000237 [14:44:25]line РНМ: 0000000000154221 [14:44:25]line Версия ККМ: v1.0 [14:44:25]line ФМ: 0000000000963259 [14:44:25]line ФД: 4995 [14:44:25]line ФПД: 33363440357340 [14:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144424&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4995&fm=33363440357340&tin=02508201610067®Number=0000000000154221&sum=42700 [14:44:25]line 0 [14:44:25]written 0, free lines is 4095 [14:44:26]Connected sock=10 [14:44:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 98 01 00 00 0A 81 90 01 16 6F 5A 03 01 00 03 00 84 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 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 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 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 CC A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 11 00 00 00 00 07 04 06 00 CC A6 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 C8 1B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 83 13 00 00 35 04 06 00 1E 58 08 02 CF DC BA 75 B5 50 1F 5B F0 C3 [14:44:26]Write to MH i2c: 01 00 00 88 03 8B [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: 01 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: 01 07 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: 01 07 00 88 03 00 00 00 00 00 F1 0B 8E [14:44:26]RasterBufferAndPrint [14:44:26]line [14:44:26]line [14:44:26]line [14:44:26]line [14:44:26]line [14:44:26]written 0, free lines is 3060 [14:44:26]MH_Cut [14:44:26]Write to MH i2c: D1 01 00 8F 03 01 64 [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: D1 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: D1 01 00 [14:44:26]MH_I2C_Read... [14:44:26]Read from MH i2c: D1 01 00 8F 03 00 63 [14:44:26]Write to MH i2c: 01 00 00 90 03 93 [14:44:26]Write i2c OK [14:44:26]MH_I2C_Read... [14:44:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 24 62 47 00 FE 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 83 13 00 00 F4 03 04 00 8B C7 45 66 B6 04 01 00 00 17 76 5C 2F 0D 2E 39 9B [14:44:26]CommunicateWithHost err = 0 [14:44:26]CheckOFDResponse [14:44:26]1017 (14) - 77093643461234 [14:44:26]1041 (16) - 0000000000963259 [14:44:26]1040 (4) - 4995 [14:44:26]1012 (4) - 16.05.2024 08:44 [14:44:26]1206 (1) - 0 [14:44:26]OFD Sender: Remove packet 4995 [14:44:26]ProducePacketName [14:44:26]name=ofd_packets/00004995 [14:44:26]NVStorageDeleteData [14:44:26]OFD Sender: No OFD packet to send [14:44:27]*** Cut start [14:44:27]*** Partial cut [14:44:27]*** CUTSNS_PIN = 1 [14:44:27]*** CUTSNS_PIN = 0 [14:44:27]*** Brake cut motor [14:44:28]Read from MH i2c: 01 [14:44:28]MH_I2C_Read... [14:44:28]*** Stop cut motor [14:44:28]*** Cut end [14:44:28]Read from MH i2c: 01 07 00 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: 01 07 00 90 03 00 00 00 00 00 FF 0F A8 [14:44:28]process_action close_receipt done [14:44:28]requested_data is exist [14:44:28]produce_requested_data [14:44:28]requested_item fm.sn is exist - process it [14:44:28]wFMCommunicate request_size=4 [14:44:28]MH_SAM_APDU [14:44:28]CAPDU: 80 11 00 00 [14:44:28]Write to MH i2c: E2 08 00 91 03 80 11 00 00 00 00 00 00 0E [14:44:28]Write i2c OK [14:44:28]MH_I2C_Read... [14:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:44:28]Read from MH i2c: E2 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: E2 17 00 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: E2 17 00 91 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 63 [14:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:44:28]wFMCommunicate OK [14:44:28]requested_item fd.num is exist - process it [14:44:28]SAM_PROTO_GetFieldsCounters [14:44:28]wFMCommunicate request_size=4 [14:44:28]MH_SAM_APDU [14:44:28]CAPDU: 80 13 00 00 [14:44:28]Write to MH i2c: E2 08 00 92 03 80 13 00 00 00 00 00 00 11 [14:44:28]Write i2c OK [14:44:28]MH_I2C_Read... [14:44:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:44:28]Read from MH i2c: E2 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: E2 62 00 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: E2 62 00 92 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 83 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [14:44:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 83 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:44:28]wFMCommunicate OK [14:44:28]SAM_PROTO_GetFieldsCounters done [14:44:28]requested_item shift.num is exist - process it [14:44:28]requested_item shift.opened is exist - process it [14:44:28]req_shift_opened [14:44:28]FM_GetShiftState [14:44:28]SAM_PROTO_GetShiftState [14:44:28]wFMCommunicate request_size=4 [14:44:28]MH_SAM_APDU [14:44:28]CAPDU: 80 13 01 00 [14:44:28]Write to MH i2c: E2 08 00 93 03 80 13 01 00 00 00 00 00 13 [14:44:28]Write i2c OK [14:44:28]MH_I2C_Read... [14:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:44:28]Read from MH i2c: E2 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: E2 0E 00 [14:44:28]MH_I2C_Read... [14:44:28]Read from MH i2c: E2 0E 00 93 03 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 1F [14:44:28]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:44:28]wFMCommunicate OK [14:44:28]SAM_PROTO_GetShiftState done [14:44:28]FM_GetShiftState done [14:44:28]req_shift_opened done [14:44:28]requested_item shift.open_date is exist - process it [14:44:28]req_shift_open_date [14:44:28]req_shift_open_date done [14:44:28]produce_requested_data done [14:44:28]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4995,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:44:28]process_action_free close_receipt [14:44:28]json_value_free [14:44:28]json_value_free done [14:44:28]process_json_proto returns [14:44:28]Send response to host [14:44:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4995,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:44:28]free response buf [14:44:28]execute_script done [14:44:28]execute_script returns [14:44:28]free content buf [14:44:28]Sock 7.Close socket [14:44:28]Sock 7.Thread stoped [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:44]accept exits with 9 [14:45:44]New connection [14:45:44]New thread 3067252068 created [14:45:44]Thread 3067108708 joined [14:45:44]Waiting for new connection... [14:45:44] Sock 9.Parse request [14:45:44]Sock 9.Check first char [14:45:44]Sock 9.First char is OK [14:45:44]request: POST /json_proto HTTP/1.0 [14:45:44]Method: POST [14:45:44]URL: /json_proto [14:45:44]Method is POST - this is cgi request [14:45:44]url: /json_proto [14:45:44]query_string will be loaded in cgi processing [14:45:44]execute_cgi json_proto POST (null) [14:45:44]execute_cgi path=json_proto method=POST [14:45:44]POST find Content-Length [14:45:44]Host: 172.17.44.4:8080 [14:45:44]Content-Length: 632 [14:45:44]Content-Type: application/json [14:45:44] [14:45:44]POST finish read [14:45:44]Found Content-Length = 632 [14:45:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140998", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:44]execute_script... [14:45: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)140998", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:45:44]POST & json_proto [14:45:44]process_json_proto [14:45:44]json parsed OK: [14:45:44]protocol is kg_v1.0 [14:45:44]action value=close_receipt [14:45:44]process_action close_receipt [14:45:44]cmd_close_receipt [14:45:44]MH_GetDate [14:45:44]Write to MH i2c: F0 00 00 94 03 86 [14:45:44]Write i2c OK [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: F0 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: F0 09 00 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: F0 09 00 94 03 00 19 1C 46 66 6C E9 28 66 53 [14:45:44]GetLastDocTimeStamp 1715870664 [14:45:44]current date 1715870745 [14:45:44]FM_GetShiftState [14:45:44]SAM_PROTO_GetShiftState [14:45:44]wFMCommunicate request_size=4 [14:45:44]MH_SAM_APDU [14:45:44]CAPDU: 80 13 01 00 [14:45:44]Write to MH i2c: E2 08 00 95 03 80 13 01 00 00 00 00 00 15 [14:45:44]Write i2c OK [14:45:44]MH_I2C_Read... [14:45:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:44]Read from MH i2c: E2 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 0E 00 [14:45:44]MH_I2C_Read... [14:45:44]Read from MH i2c: E2 0E 00 95 03 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 21 [14:45:44]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:45:44]wFMCommunicate OK [14:45:44]SAM_PROTO_GetShiftState done [14:45:44]FM_GetShiftState done [14:45:44]opened in 1715818246 [14:45:44]opened+sec_in_day 1715904646 [14:45:44]quantity*price = 4000 [14:45:44]sum+1 = 4001 [14:45:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 56 16.05.2024 14:45 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4996 ФПД: 239919714767379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144545&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4996&fm=239919714767379&tin=02508201610067®Number=0000000000154221&sum=4000 0 [14:45:45]StoreToDocumentArchive [14:45:45]shift 44 fd 4996 [14:45:45]save to /storage/0044/doc_00004996 [14:45:45]save last doc name /storage/0044/doc_00004996 to /storage/kkm_last_doc_name [14:45:45]save OK [14:45:45]Clear old archive folders... [14:45:45]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:45:45]tlvbuf is 011DD2E0 [14:45:45]SAM_PROTO_ClearQueue [14:45:45]wFMCommunicate request_size=4 [14:45:45]MH_SAM_APDU [14:45:45]CAPDU: 80 09 00 00 [14:45:45]Write to MH i2c: E2 08 00 A2 03 80 09 00 00 00 00 00 00 17 [14:45:45]Write i2c OK [14:45:45]MH_I2C_Read... [14:45:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:45:45]Read from MH i2c: E2 [14:45:45]MH_I2C_Read... [14:45:45]Read from MH i2c: E2 03 00 [14:45:45]MH_I2C_Read... [14:45:45]Read from MH i2c: E2 03 00 A2 03 00 90 00 19 [14:45:45]RAPDU: 90 00 [14:45:45]wFMCommunicate OK [14:45:45]SAM_PROTO_ClearQueue done [14:45:45]KKMCreateOFDPacket [14:45:45]OFDProtocolAddRootSTLVToBuf [14:45:45]FM_MakeSignedData [14:45:45]FM_MakeSignedData [14:45:45]SAM_PROTO_SignData [14:45:45]wFMCommunicate request_size=4 [14:45:45]MH_SAM_APDU [14:45:45]CAPDU: 80 0D 01 02 [14:45:45]Write to MH i2c: E2 08 00 A3 03 80 0D 01 02 00 00 00 00 1F [14:45:45]Write i2c OK [14:45:45]MH_I2C_Read... [14:45:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:45:45]Read from MH i2c: E2 [14:45:45]MH_I2C_Read... [14:45:45]Read from MH i2c: E2 03 00 [14:45:45]MH_I2C_Read... [14:45:45]Read from MH i2c: E2 03 00 A3 03 00 90 00 1A [14:45:45]RAPDU: 90 00 [14:45:45]wFMCommunicate OK [14:45:45]wFMCommunicate request_size=255 [14:45:45]MH_SAM_APDU [14:45:45]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 19 1C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:45:45]Write to MH i2c: E2 02 01 A4 03 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 19 1C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 3F [14:45:45]Write i2c OK [14:45:45]MH_I2C_Read... [14:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:46]Read from MH i2c: E2 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: E2 03 00 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: E2 03 00 A4 03 00 90 00 1B [14:45:46]RAPDU: 90 00 [14:45:46]wFMCommunicate OK [14:45:46]wFMCommunicate request_size=30 [14:45:46]MH_SAM_APDU [14:45:46]CAPDU: 80 0D 02 02 19 30 39 36 33 32 35 39 10 04 04 00 84 13 00 00 35 04 06 00 DA 34 A9 5F 92 13 [14:45:46]Write to MH i2c: E2 21 00 A5 03 80 0D 02 02 19 00 30 39 36 33 32 35 39 10 04 04 00 84 13 00 00 35 04 06 00 DA 34 A9 5F 92 13 00 00 6F [14:45:46]Write i2c OK [14:45:46]MH_I2C_Read... [14:45:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:45:46]Read from MH i2c: E2 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: E2 03 00 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: E2 03 00 A5 03 00 90 00 1C [14:45:46]RAPDU: 90 00 [14:45:46]wFMCommunicate OK [14:45:46]wFMCommunicate request_size=4 [14:45:46]MH_SAM_APDU [14:45:46]CAPDU: 80 0D 03 02 [14:45:46]Write to MH i2c: E2 08 00 A6 03 80 0D 03 02 00 00 00 00 24 [14:45:46]Write i2c OK [14:45:46]MH_I2C_Read... [14:45:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:45:46]Read from MH i2c: E2 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: E2 0B 00 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: E2 0B 00 A6 03 00 DD A8 53 16 C8 87 E4 A7 90 00 ED [14:45:46]RAPDU: DD A8 53 16 C8 87 E4 A7 90 00 [14:45:46]wFMCommunicate OK [14:45:46]SAM_PROTO_SignData done [14:45:46]FM_MakeSignedData done [14:45:46]CreateOFDProtocolMessage [14:45:46]wFMCommunicate request_size=4 [14:45:46]MH_SAM_APDU [14:45:46]CAPDU: 80 11 00 00 [14:45:46]Write to MH i2c: E2 08 00 A7 03 80 11 00 00 00 00 00 00 24 [14:45:46]Write i2c OK [14:45:46]MH_I2C_Read... [14:45:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:46]Read from MH i2c: E2 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: E2 17 00 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: E2 17 00 A7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 79 [14:45:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:45:46]wFMCommunicate OK [14:45:46]CreateOFDProtocolMessage done [14:45:46]OFDSenderStorePacket 4996 [14:45:46]StoreOFDPacket docnum=4996 [14:45:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 23 01 00 00 84 EB 1B 01 BD E7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 19 1C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 84 13 00 00 35 04 06 00 DA 34 A9 5F 92 13 DD A8 53 16 C8 87 E4 A7 [14:45:46]CheckFolder [14:45:46]dirname=/storage/ofd_packets [14:45:46]CheckFolder done [14:45:46]ProducePacketName [14:45:46]name=ofd_packets/00004996 [14:45:46]NVStorageSaveData ofd_packets/00004996 [14:45:46]File name is /storage/ofd_packets/00004996 [14:45:46]Write 321 bytes [14:45:46]NVStorageSaveData done [14:45:46]OFDSenderStorePacket done [14:45:46]KKMCreateOFDPacket done [14:45:46]NVStorageSaveData kkm_last_timestamp [14:45:46]File name is /storage/kkm_last_timestamp [14:45:46]Write 4 bytes [14:45:46]NVStorageSaveData done [14:45:46]ExternCall_PrintAddStr [14:45:46]wPrintStart [14:45:46]Write to MH i2c: 01 00 00 A8 03 AB [14:45:46]Write i2c OK [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: 01 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: 01 07 00 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: 01 07 00 A8 03 00 00 00 00 00 FF 0F C0 [14:45:46]RasterBufferAndPrint [14:45:46]line Счет N : (3)140998 [14:45:46]line ИНН: 02508201610067 [14:45:46]line Контрольно-Кассовый Чек [14:45:46]line ПРОДАЖА [14:45:46]line Товар: 4700000160211 [14:45:46]line Вода Легенда 0,5л [14:45:46]line 1.000 * 40.00 [14:45:46]line = 40.00 [14:45:46]line НДС 12% НСП 1% [14:45:46]line > о реализуемом товаре [14:45:46]line ИТОГО: 40.00 [14:45:46]line НСП 1% : 0.35 [14:45:46]line НДС 12% : 4.25 [14:45:46]line Наличными: 40.00 [14:45:46]line Безнал.: 0.00 [14:45:46]line Место: АЗС № 135 "Партнер Нефть" [14:45:46]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:45:46]line СНО: Общий режим [14:45:46]line Чек 56 16.05.2024 14:45 [14:45:46]line Смена: 44 ФФД: 1.0 [14:45:46]line ЗНМ: 0300000237 [14:45:46]line РНМ: 0000000000154221 [14:45:46]line Версия ККМ: v1.0 [14:45:46]line ФМ: 0000000000963259 [14:45:46]line ФД: 4996 [14:45:46]line ФПД: 239919714767379 [14:45:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144545&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4996&fm=239919714767379&tin=02508201610067®Number=0000000000154221&sum=4000 [14:45:46]line 0 [14:45:46]OFD Sender: Processing packet 4996 [packets to send 4, broken 3] [14:45:46]ProducePacketName [14:45:46]name=ofd_packets/00004996 [14:45:46]OFD Sender: To server: pG, [14:45:46]CommunicateWithHost lk.salyk.kg:30040 [14:45:46]ConnectInit lk.salyk.kg [14:45:46]written 0, free lines is 4095 [14:45:46]Connected sock=11 [14:45:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 23 01 00 00 84 EB 1B 01 BD E7 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 19 1C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 84 13 00 00 35 04 06 00 DA 34 A9 5F 92 13 DD A8 53 16 C8 87 E4 A7 [14:45:46]Write to MH i2c: 01 00 00 D0 03 D3 [14:45:46]Write i2c OK [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: 01 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: 01 07 00 [14:45:46]MH_I2C_Read... [14:45:46]Read from MH i2c: 01 07 00 D0 03 00 00 00 00 00 9D 0C 83 [14:45:46]RasterBufferAndPrint [14:45:46]line [14:45:46]line [14:45:46]line [14:45:46]line [14:45:46]line [14:45:46]written 0, free lines is 3233 [14:45:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 43 BE 47 00 E7 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 33 32 35 39 10 04 04 00 84 13 00 00 F4 03 04 00 DC C7 45 66 B6 04 01 00 00 E7 EF 5A DF 6E D1 6E F3 [14:45:47]CommunicateWithHost err = 0 [14:45:47]CheckOFDResponse [14:45:47]1017 (14) - 77093643461234 [14:45:47]1041 (16) - 0000000000963259 [14:45:47]1040 (4) - 4996 [14:45:47]1012 (4) - 16.05.2024 08:46 [14:45:47]1206 (1) - 0 [14:45:47]OFD Sender: Remove packet 4996 [14:45:47]ProducePacketName [14:45:47]name=ofd_packets/00004996 [14:45:47]NVStorageDeleteData [14:45:47]MH_Cut [14:45:47]Write to MH i2c: D1 01 00 D7 03 01 AC [14:45:47]Write i2c OK [14:45:47]MH_I2C_Read... [14:45:47]Read from MH i2c: D1 [14:45:47]MH_I2C_Read... [14:45:47]Read from MH i2c: D1 01 00 [14:45:47]MH_I2C_Read... [14:45:47]Read from MH i2c: D1 01 00 D7 03 00 AB [14:45:47]Write to MH i2c: 01 00 00 D8 03 DB [14:45:47]Write i2c OK [14:45:47]MH_I2C_Read... [14:45:47]OFD Sender: No OFD packet to send [14:45:48]*** Cut start [14:45:48]*** Partial cut [14:45:48]*** CUTSNS_PIN = 1 [14:45:48]*** CUTSNS_PIN = 0 [14:45:48]*** Brake cut motor [14:45:48]Read from MH i2c: 01 [14:45:48]MH_I2C_Read... [14:45:48]*** Stop cut motor [14:45:48]*** Cut end [14:45:48]Read from MH i2c: 01 07 00 [14:45:48]MH_I2C_Read... [14:45:48]Read from MH i2c: 01 07 00 D8 03 00 00 00 00 00 FF 0F F0 [14:45:48]process_action close_receipt done [14:45:48]requested_data is exist [14:45:48]produce_requested_data [14:45:48]requested_item fm.sn is exist - process it [14:45:48]wFMCommunicate request_size=4 [14:45:48]MH_SAM_APDU [14:45:48]CAPDU: 80 11 00 00 [14:45:48]Write to MH i2c: E2 08 00 D9 03 80 11 00 00 00 00 00 00 56 [14:45:48]Write i2c OK [14:45:48]MH_I2C_Read... [14:45:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:45:48]Read from MH i2c: E2 [14:45:48]MH_I2C_Read... [14:45:48]Read from MH i2c: E2 17 00 [14:45:48]MH_I2C_Read... [14:45:48]Read from MH i2c: E2 17 00 D9 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 AB [14:45:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:45:48]wFMCommunicate OK [14:45:48]requested_item fd.num is exist - process it [14:45:48]SAM_PROTO_GetFieldsCounters [14:45:48]wFMCommunicate request_size=4 [14:45:48]MH_SAM_APDU [14:45:48]CAPDU: 80 13 00 00 [14:45:48]Write to MH i2c: E2 08 00 DA 03 80 13 00 00 00 00 00 00 59 [14:45:48]Write i2c OK [14:45:48]MH_I2C_Read... [14:45:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:45:48]Read from MH i2c: E2 [14:45:48]MH_I2C_Read... [14:45:48]Read from MH i2c: E2 62 00 [14:45:48]MH_I2C_Read... [14:45:48]Read from MH i2c: E2 62 00 DA 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 84 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [14:45:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 84 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:45:48]wFMCommunicate OK [14:45:48]SAM_PROTO_GetFieldsCounters done [14:45:48]requested_item shift.num is exist - process it [14:45:48]requested_item shift.opened is exist - process it [14:45:48]req_shift_opened [14:45:48]FM_GetShiftState [14:45:48]SAM_PROTO_GetShiftState [14:45:48]wFMCommunicate request_size=4 [14:45:48]MH_SAM_APDU [14:45:48]CAPDU: 80 13 01 00 [14:45:48]Write to MH i2c: E2 08 00 DB 03 80 13 01 00 00 00 00 00 5B [14:45:48]Write i2c OK [14:45:48]MH_I2C_Read... [14:45:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:45:48]Read from MH i2c: E2 [14:45:48]MH_I2C_Read... [14:45:48]Read from MH i2c: E2 0E 00 [14:45:48]MH_I2C_Read... [14:45:48]Read from MH i2c: E2 0E 00 DB 03 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 67 [14:45:48]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:45:48]wFMCommunicate OK [14:45:48]SAM_PROTO_GetShiftState done [14:45:48]FM_GetShiftState done [14:45:48]req_shift_opened done [14:45:48]requested_item shift.open_date is exist - process it [14:45:48]req_shift_open_date [14:45:48]req_shift_open_date done [14:45:48]produce_requested_data done [14:45:48]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4996,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:45:48]process_action_free close_receipt [14:45:48]json_value_free [14:45:48]json_value_free done [14:45:48]process_json_proto returns [14:45:48]Send response to host [14:45:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4996,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:45:48]free response buf [14:45:48]execute_script done [14:45:48]execute_script returns [14:45:48]free content buf [14:45:48]Sock 9.Close socket [14:45:48]Sock 9.Thread stoped [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:39]accept exits with 7 [14:48:39]New connection [14:48:39]New thread 3067108708 created [14:48:39]Thread 3067252068 joined [14:48:39]Waiting for new connection... [14:48:39] Sock 7.Parse request [14:48:39]Sock 7.Check first char [14:48:39]Sock 7.First char is OK [14:48:39]request: POST /json_proto HTTP/1.0 [14:48:39]Method: POST [14:48:39]URL: /json_proto [14:48:39]Method is POST - this is cgi request [14:48:39]url: /json_proto [14:48:39]query_string will be loaded in cgi processing [14:48:39]execute_cgi json_proto POST (null) [14:48:39]execute_cgi path=json_proto method=POST [14:48:39]POST find Content-Length [14:48:39]Host: 172.17.44.4:8080 [14:48:39]Content-Length: 678 [14:48:39]Content-Type: application/json [14:48:39] [14:48:39]POST finish read [14:48:39]Found Content-Length = 678 [14:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:39]execute_script... [14:48:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992894", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 5.990, "sum" : 400.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:39]POST & json_proto [14:48:39]process_json_proto [14:48:39]json parsed OK: [14:48:39]protocol is kg_v1.0 [14:48:39]action value=close_receipt [14:48:39]process_action close_receipt [14:48:39]cmd_close_receipt [14:48:39]MH_GetDate [14:48:39]Write to MH i2c: F0 00 00 DC 03 CE [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: F0 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: F0 09 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: F0 09 00 DC 03 00 C7 1C 46 66 6C E9 28 66 49 [14:48:39]GetLastDocTimeStamp 1715870745 [14:48:39]current date 1715870919 [14:48:39]FM_GetShiftState [14:48:39]SAM_PROTO_GetShiftState [14:48:39]wFMCommunicate request_size=4 [14:48:39]MH_SAM_APDU [14:48:39]CAPDU: 80 13 01 00 [14:48:39]Write to MH i2c: E2 08 00 DD 03 80 13 01 00 00 00 00 00 5D [14:48:39]Write i2c OK [14:48:39]MH_I2C_Read... [14:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:39]Read from MH i2c: E2 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 0E 00 [14:48:39]MH_I2C_Read... [14:48:39]Read from MH i2c: E2 0E 00 DD 03 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 69 [14:48:39]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:48:39]wFMCommunicate OK [14:48:39]SAM_PROTO_GetShiftState done [14:48:39]FM_GetShiftState done [14:48:39]opened in 1715818246 [14:48:39]opened+sec_in_day 1715904646 [14:48:39]quantity*price = 40013 [14:48:39]sum+1 = 40014 [14:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.13 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.49 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 57 16.05.2024 14:48 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4997 ФПД: 47431600622855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144839&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4997&fm=47431600622855&tin=02508201610067®Number=0000000000154221&sum=40000 [14:48:40]StoreToDocumentArchive [14:48:40]shift 44 fd 4997 [14:48:40]save to /storage/0044/doc_00004997 [14:48:40]save last doc name /storage/0044/doc_00004997 to /storage/kkm_last_doc_name [14:48:40]save OK [14:48:40]Clear old archive folders... [14:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:48:40]tlvbuf is 011DEE90 [14:48:40]SAM_PROTO_ClearQueue [14:48:40]wFMCommunicate request_size=4 [14:48:40]MH_SAM_APDU [14:48:40]CAPDU: 80 09 00 00 [14:48:40]Write to MH i2c: E2 08 00 EA 03 80 09 00 00 00 00 00 00 5F [14:48:40]Write i2c OK [14:48:40]MH_I2C_Read... [14:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:48:40]Read from MH i2c: E2 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 03 00 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 03 00 EA 03 00 90 00 61 [14:48:40]RAPDU: 90 00 [14:48:40]wFMCommunicate OK [14:48:40]SAM_PROTO_ClearQueue done [14:48:40]KKMCreateOFDPacket [14:48:40]OFDProtocolAddRootSTLVToBuf [14:48:40]FM_MakeSignedData [14:48:40]FM_MakeSignedData [14:48:40]SAM_PROTO_SignData [14:48:40]wFMCommunicate request_size=4 [14:48:40]MH_SAM_APDU [14:48:40]CAPDU: 80 0D 01 02 [14:48:40]Write to MH i2c: E2 08 00 EB 03 80 0D 01 02 00 00 00 00 67 [14:48:40]Write i2c OK [14:48:40]MH_I2C_Read... [14:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:48:40]Read from MH i2c: E2 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 03 00 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 03 00 EB 03 00 90 00 62 [14:48:40]RAPDU: 90 00 [14:48:40]wFMCommunicate OK [14:48:40]wFMCommunicate request_size=255 [14:48:40]MH_SAM_APDU [14:48:40]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C7 1C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 85 13 00 00 35 04 06 00 2B [14:48:40]Write to MH i2c: E2 02 01 EC 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C7 1C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 85 13 00 00 35 04 06 00 2B 00 00 7B [14:48:40]Write i2c OK [14:48:40]MH_I2C_Read... [14:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:40]Read from MH i2c: E2 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 03 00 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 03 00 EC 03 00 90 00 63 [14:48:40]RAPDU: 90 00 [14:48:40]wFMCommunicate OK [14:48:40]wFMCommunicate request_size=10 [14:48:40]MH_SAM_APDU [14:48:40]CAPDU: 80 0D 02 02 05 23 87 B4 CD 07 [14:48:40]Write to MH i2c: E2 0D 00 ED 03 80 0D 02 02 05 00 23 87 B4 CD 07 00 00 A6 [14:48:40]Write i2c OK [14:48:40]MH_I2C_Read... [14:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:48:40]Read from MH i2c: E2 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 03 00 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 03 00 ED 03 00 90 00 64 [14:48:40]RAPDU: 90 00 [14:48:40]wFMCommunicate OK [14:48:40]wFMCommunicate request_size=4 [14:48:40]MH_SAM_APDU [14:48:40]CAPDU: 80 0D 03 02 [14:48:40]Write to MH i2c: E2 08 00 EE 03 80 0D 03 02 00 00 00 00 6C [14:48:40]Write i2c OK [14:48:40]MH_I2C_Read... [14:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:48:40]Read from MH i2c: E2 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 0B 00 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 0B 00 EE 03 00 47 AC 86 1F 7F 41 BD A3 90 00 25 [14:48:40]RAPDU: 47 AC 86 1F 7F 41 BD A3 90 00 [14:48:40]wFMCommunicate OK [14:48:40]SAM_PROTO_SignData done [14:48:40]FM_MakeSignedData done [14:48:40]CreateOFDProtocolMessage [14:48:40]wFMCommunicate request_size=4 [14:48:40]MH_SAM_APDU [14:48:40]CAPDU: 80 11 00 00 [14:48:40]Write to MH i2c: E2 08 00 EF 03 80 11 00 00 00 00 00 00 6C [14:48:40]Write i2c OK [14:48:40]MH_I2C_Read... [14:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:40]Read from MH i2c: E2 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 17 00 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: E2 17 00 EF 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 C1 [14:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:48:40]wFMCommunicate OK [14:48:40]CreateOFDProtocolMessage done [14:48:40]OFDSenderStorePacket 4997 [14:48:40]StoreOFDPacket docnum=4997 [14:48:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 61 9A 07 01 BD 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C7 1C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 85 13 00 00 35 04 06 00 2B 23 87 B4 CD 07 47 AC 86 1F 7F 41 BD A3 [14:48:40]CheckFolder [14:48:40]dirname=/storage/ofd_packets [14:48:40]CheckFolder done [14:48:40]ProducePacketName [14:48:40]name=ofd_packets/00004997 [14:48:40]NVStorageSaveData ofd_packets/00004997 [14:48:40]File name is /storage/ofd_packets/00004997 [14:48:40]Write 301 bytes [14:48:40]NVStorageSaveData done [14:48:40]OFDSenderStorePacket done [14:48:40]KKMCreateOFDPacket done [14:48:40]NVStorageSaveData kkm_last_timestamp [14:48:40]File name is /storage/kkm_last_timestamp [14:48:40]Write 4 bytes [14:48:40]NVStorageSaveData done [14:48:40]ExternCall_PrintAddStr [14:48:40]wPrintStart [14:48:40]Write to MH i2c: 01 00 00 F0 03 F3 [14:48:40]Write i2c OK [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: 01 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: 01 07 00 [14:48:40]MH_I2C_Read... [14:48:40]Read from MH i2c: 01 07 00 F0 03 00 00 00 00 00 FF 0F 08 [14:48:40]RasterBufferAndPrint [14:48:40]line Счет N : (1)1992894 [14:48:40]line ИНН: 02508201610067 [14:48:40]line Контрольно-Кассовый Чек [14:48:40]line ПРОДАЖА [14:48:40]line ТРК (МРК, ГНК) : 33 [14:48:40]line Товар: 2710124130 [14:48:40]line Аи-92-К-4 [14:48:40]line 5.990 * 66.80 [14:48:40]line = 400.13 [14:48:40]line НДС 12% НСП 1% [14:48:40]line > о реализуемом товаре [14:48:40]line ОКРУГЛЕНИЕ: -0.13 [14:48:40]line ИТОГО: 400.00 [14:48:40]line Внесено: 400.00 [14:48:40]line СДАЧА: 0.00 [14:48:40]line НСП 1% : 3.54 [14:48:40]line НДС 12% : 42.49 [14:48:40]line Наличными: 400.00 [14:48:40]line Безнал.: 0.00 [14:48:40]line Место: АЗС № 135 "Партнер Нефть" [14:48:40]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:48:40]line СНО: Общий режим [14:48:40]line Чек 57 16.05.2024 14:48 [14:48:40]line Смена: 44 ФФД: 1.0 [14:48:40]line ЗНМ: 0300000237 [14:48:40]line РНМ: 0000000000154221 [14:48:40]line Версия ККМ: v1.0 [14:48:40]line ФМ: 0000000000963259 [14:48:40]line ФД: 4997 [14:48:40]line ФПД: 47431600622855 [14:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T144839&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4997&fm=47431600622855&tin=02508201610067®Number=0000000000154221&sum=40000 [14:48:41]OFD Sender: Processing packet 4997 [packets to send 4, broken 3] [14:48:41]ProducePacketName [14:48:41]name=ofd_packets/00004997 [14:48:41]OFD Sender: To server: pG, [14:48:41]CommunicateWithHost lk.salyk.kg:30040 [14:48:41]ConnectInit lk.salyk.kg [14:48:41]written 0, free lines is 4095 [14:48:41]Connected sock=10 [14:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 61 9A 07 01 BD 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 66 17 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 4D 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 C7 1C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 85 13 00 00 35 04 06 00 2B 23 87 B4 CD 07 47 AC 86 1F 7F 41 BD A3 [14:48:41]Write to MH i2c: 01 00 00 1B 04 1F [14:48:41]Write i2c OK [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: 01 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: 01 07 00 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: 01 07 00 1B 04 00 00 00 00 00 6B 0C 9D [14:48:41]RasterBufferAndPrint [14:48:41]line [14:48:41]line [14:48:41]line [14:48:41]line [14:48:41]line [14:48:41]written 0, free lines is 3183 [14:48:41]MH_Cut [14:48:41]Write to MH i2c: D1 01 00 22 04 01 F8 [14:48:41]Write i2c OK [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: D1 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: D1 01 00 [14:48:41]MH_I2C_Read... [14:48:41]Read from MH i2c: D1 01 00 22 04 00 F7 [14:48:41]Write to MH i2c: 01 00 00 23 04 27 [14:48:41]Write i2c OK [14:48:41]MH_I2C_Read... [14:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 58 B1 47 00 66 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 85 13 00 00 F4 03 04 00 8B C8 45 66 B6 04 01 00 00 93 DC AC 2A D9 18 98 DA [14:48:41]CommunicateWithHost err = 0 [14:48:41]CheckOFDResponse [14:48:41]1017 (14) - 77093643461234 [14:48:41]1041 (16) - 0000000000963259 [14:48:41]1040 (4) - 4997 [14:48:41]1012 (4) - 16.05.2024 08:49 [14:48:41]1206 (1) - 0 [14:48:41]OFD Sender: Remove packet 4997 [14:48:41]ProducePacketName [14:48:41]name=ofd_packets/00004997 [14:48:41]NVStorageDeleteData [14:48:42]OFD Sender: No OFD packet to send [14:48:42]*** Cut start [14:48:42]*** Partial cut [14:48:42]*** CUTSNS_PIN = 1 [14:48:42]*** CUTSNS_PIN = 0 [14:48:43]*** Brake cut motor [14:48:43]Read from MH i2c: 01 [14:48:43]MH_I2C_Read... [14:48:43]*** Stop cut motor [14:48:43]*** Cut end [14:48:43]Read from MH i2c: 01 07 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: 01 07 00 23 04 00 00 00 00 00 FF 0F 3C [14:48:43]process_action close_receipt done [14:48:43]requested_data is exist [14:48:43]produce_requested_data [14:48:43]requested_item fm.sn is exist - process it [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 11 00 00 [14:48:43]Write to MH i2c: E2 08 00 24 04 80 11 00 00 00 00 00 00 A2 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 17 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 17 00 24 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F7 [14:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:48:43]wFMCommunicate OK [14:48:43]requested_item fd.num is exist - process it [14:48:43]SAM_PROTO_GetFieldsCounters [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 13 00 00 [14:48:43]Write to MH i2c: E2 08 00 25 04 80 13 00 00 00 00 00 00 A5 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 62 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 62 00 25 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 85 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [14:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 85 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:48:43]wFMCommunicate OK [14:48:43]SAM_PROTO_GetFieldsCounters done [14:48:43]requested_item shift.num is exist - process it [14:48:43]requested_item shift.opened is exist - process it [14:48:43]req_shift_opened [14:48:43]FM_GetShiftState [14:48:43]SAM_PROTO_GetShiftState [14:48:43]wFMCommunicate request_size=4 [14:48:43]MH_SAM_APDU [14:48:43]CAPDU: 80 13 01 00 [14:48:43]Write to MH i2c: E2 08 00 26 04 80 13 01 00 00 00 00 00 A7 [14:48:43]Write i2c OK [14:48:43]MH_I2C_Read... [14:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:43]Read from MH i2c: E2 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 0E 00 [14:48:43]MH_I2C_Read... [14:48:43]Read from MH i2c: E2 0E 00 26 04 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 B3 [14:48:43]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:48:43]wFMCommunicate OK [14:48:43]SAM_PROTO_GetShiftState done [14:48:43]FM_GetShiftState done [14:48:43]req_shift_opened done [14:48:43]requested_item shift.open_date is exist - process it [14:48:43]req_shift_open_date [14:48:43]req_shift_open_date done [14:48:43]produce_requested_data done [14:48:43]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4997,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:48:43]process_action_free close_receipt [14:48:43]json_value_free [14:48:43]json_value_free done [14:48:43]process_json_proto returns [14:48:43]Send response to host [14:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4997,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:48:43]free response buf [14:48:43]execute_script done [14:48:43]execute_script returns [14:48:43]free content buf [14:48:43]Sock 7.Close socket [14:48:43]Sock 7.Thread stoped [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:22]OFD Sender: No OFD packet to send [14:49:27]OFD Sender: No OFD packet to send [14:49:32]OFD Sender: No OFD packet to send [14:49:37]OFD Sender: No OFD packet to send [14:49:42]OFD Sender: No OFD packet to send [14:49:47]OFD Sender: No OFD packet to send [14:49:52]OFD Sender: No OFD packet to send [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:36]accept exits with 9 [14:50:36]New connection [14:50:36]New thread 3067252068 created [14:50:36]Thread 3067108708 joined [14:50:36]Waiting for new connection... [14:50:36] Sock 9.Parse request [14:50:36]Sock 9.Check first char [14:50:36]Sock 9.First char is OK [14:50:36]request: POST /json_proto HTTP/1.0 [14:50:36]Method: POST [14:50:36]URL: /json_proto [14:50:36]Method is POST - this is cgi request [14:50:36]url: /json_proto [14:50:36]query_string will be loaded in cgi processing [14:50:36]execute_cgi json_proto POST (null) [14:50:36]execute_cgi path=json_proto method=POST [14:50:36]POST find Content-Length [14:50:36]Host: 172.17.44.4:8080 [14:50:36]Content-Length: 630 [14:50:36]Content-Type: application/json [14:50:36] [14:50:36]POST finish read [14:50:36]Found Content-Length = 630 [14:50:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)140999", "tax_sys" : 0, "items" : [ { "code": "6957531032007", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco RAP CHAR X1 \u0410pple 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 271.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:36]execute_script... [14:50: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)140999", "tax_sys" : 0, "items" : [ { "code": "6957531032007", "name": "\u041A\u0430\u0431\u0435\u043B\u044C hoco RAP CHAR X1 \u0410pple 1\u043C", "price" : 271.00, "quantity" : 1.000, "sum" : 271.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 271.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:50:36]POST & json_proto [14:50:36]process_json_proto [14:50:36]json parsed OK: [14:50:36]protocol is kg_v1.0 [14:50:36]action value=close_receipt [14:50:36]process_action close_receipt [14:50:36]cmd_close_receipt [14:50:36]MH_GetDate [14:50:36]Write to MH i2c: F0 00 00 27 04 1A [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: F0 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: F0 09 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: F0 09 00 27 04 00 3C 1D 46 66 6C E9 28 66 0B [14:50:36]GetLastDocTimeStamp 1715870919 [14:50:36]current date 1715871036 [14:50:36]FM_GetShiftState [14:50:36]SAM_PROTO_GetShiftState [14:50:36]wFMCommunicate request_size=4 [14:50:36]MH_SAM_APDU [14:50:36]CAPDU: 80 13 01 00 [14:50:36]Write to MH i2c: E2 08 00 28 04 80 13 01 00 00 00 00 00 A9 [14:50:36]Write i2c OK [14:50:36]MH_I2C_Read... [14:50:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:36]Read from MH i2c: E2 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 0E 00 [14:50:36]MH_I2C_Read... [14:50:36]Read from MH i2c: E2 0E 00 28 04 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 B5 [14:50:36]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:50:36]wFMCommunicate OK [14:50:36]SAM_PROTO_GetShiftState done [14:50:36]FM_GetShiftState done [14:50:36]opened in 1715818246 [14:50:36]opened+sec_in_day 1715904646 [14:50:36]quantity*price = 27100 [14:50:36]sum+1 = 27101 [14:50:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 271.00 НСП 1% : 2.40 НДС 12% : 28.78 Наличными: 271.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 58 16.05.2024 14:50 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4998 ФПД: 268975496934361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145036&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4998&fm=268975496934361&tin=02508201610067®Number=0000000000154221&sum=27100 0 [14:50:37]StoreToDocumentArchive [14:50:37]shift 44 fd 4998 [14:50:37]save to /storage/0044/doc_00004998 [14:50:37]save last doc name /storage/0044/doc_00004998 to /storage/kkm_last_doc_name [14:50:37]save OK [14:50:37]Clear old archive folders... [14:50:37]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:50:37]tlvbuf is 011EC550 [14:50:37]SAM_PROTO_ClearQueue [14:50:37]wFMCommunicate request_size=4 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 09 00 00 [14:50:37]Write to MH i2c: E2 08 00 35 04 80 09 00 00 00 00 00 00 AB [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:50:37]Read from MH i2c: E2 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 35 04 00 90 00 AD [14:50:37]RAPDU: 90 00 [14:50:37]wFMCommunicate OK [14:50:37]SAM_PROTO_ClearQueue done [14:50:37]KKMCreateOFDPacket [14:50:37]OFDProtocolAddRootSTLVToBuf [14:50:37]FM_MakeSignedData [14:50:37]FM_MakeSignedData [14:50:37]SAM_PROTO_SignData [14:50:37]wFMCommunicate request_size=4 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 0D 01 02 [14:50:37]Write to MH i2c: E2 08 00 36 04 80 0D 01 02 00 00 00 00 B3 [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:50:37]Read from MH i2c: E2 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 36 04 00 90 00 AE [14:50:37]RAPDU: 90 00 [14:50:37]wFMCommunicate OK [14:50:37]wFMCommunicate request_size=255 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 30 37 06 04 28 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 D0 90 70 70 6C 65 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3C 1D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 [14:50:37]Write to MH i2c: E2 02 01 37 04 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 30 37 06 04 28 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 D0 90 70 70 6C 65 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3C 1D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 00 00 F8 [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:37]Read from MH i2c: E2 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 [14:50:37]MH_I2C_Read... [14:50:37]Read from MH i2c: E2 03 00 37 04 00 90 00 AF [14:50:37]RAPDU: 90 00 [14:50:37]wFMCommunicate OK [14:50:37]wFMCommunicate request_size=41 [14:50:37]MH_SAM_APDU [14:50:37]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 86 13 00 00 35 04 06 00 F4 A1 BC F2 B3 D9 [14:50:37]Write to MH i2c: E2 2C 00 38 04 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 86 13 00 00 35 04 06 00 F4 A1 BC F2 B3 D9 00 00 EF [14:50:37]Write i2c OK [14:50:37]MH_I2C_Read... [14:50:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:50:38]Read from MH i2c: E2 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 03 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 03 00 38 04 00 90 00 B0 [14:50:38]RAPDU: 90 00 [14:50:38]wFMCommunicate OK [14:50:38]wFMCommunicate request_size=4 [14:50:38]MH_SAM_APDU [14:50:38]CAPDU: 80 0D 03 02 [14:50:38]Write to MH i2c: E2 08 00 39 04 80 0D 03 02 00 00 00 00 B8 [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:50:38]Read from MH i2c: E2 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 0B 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 0B 00 39 04 00 23 43 E7 C2 E0 8D 05 5D 90 00 97 [14:50:38]RAPDU: 23 43 E7 C2 E0 8D 05 5D 90 00 [14:50:38]wFMCommunicate OK [14:50:38]SAM_PROTO_SignData done [14:50:38]FM_MakeSignedData done [14:50:38]CreateOFDProtocolMessage [14:50:38]wFMCommunicate request_size=4 [14:50:38]MH_SAM_APDU [14:50:38]CAPDU: 80 11 00 00 [14:50:38]Write to MH i2c: E2 08 00 3A 04 80 11 00 00 00 00 00 00 B8 [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:38]Read from MH i2c: E2 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 17 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: E2 17 00 3A 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 0D [14:50:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:50:38]wFMCommunicate OK [14:50:38]CreateOFDProtocolMessage done [14:50:38]OFDSenderStorePacket 4998 [14:50:38]StoreOFDPacket docnum=4998 [14:50:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 C2 CF 26 01 1B 53 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 30 37 06 04 28 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 D0 90 70 70 6C 65 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3C 1D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 86 13 00 00 35 04 06 00 F4 A1 BC F2 B3 D9 23 43 E7 C2 E0 8D 05 5D [14:50:38]CheckFolder [14:50:38]dirname=/storage/ofd_packets [14:50:38]CheckFolder done [14:50:38]ProducePacketName [14:50:38]name=ofd_packets/00004998 [14:50:38]NVStorageSaveData ofd_packets/00004998 [14:50:38]File name is /storage/ofd_packets/00004998 [14:50:38]Write 332 bytes [14:50:38]NVStorageSaveData done [14:50:38]OFDSenderStorePacket done [14:50:38]KKMCreateOFDPacket done [14:50:38]NVStorageSaveData kkm_last_timestamp [14:50:38]File name is /storage/kkm_last_timestamp [14:50:38]Write 4 bytes [14:50:38]NVStorageSaveData done [14:50:38]ExternCall_PrintAddStr [14:50:38]wPrintStart [14:50:38]Write to MH i2c: 01 00 00 3B 04 3F [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: 01 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: 01 07 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: 01 07 00 3B 04 00 00 00 00 00 FF 0F 54 [14:50:38]RasterBufferAndPrint [14:50:38]line Счет N : (3)140999 [14:50:38]line ИНН: 02508201610067 [14:50:38]line Контрольно-Кассовый Чек [14:50:38]line ПРОДАЖА [14:50:38]line Товар: 6957531032007 [14:50:38]line Кабель hoco RAP CHAR X1 Аpple 1м [14:50:38]line 1.000 * 271.00 [14:50:38]line = 271.00 [14:50:38]line НДС 12% НСП 1% [14:50:38]line > о реализуемом товаре [14:50:38]line ИТОГО: 271.00 [14:50:38]line НСП 1% : 2.40 [14:50:38]line НДС 12% : 28.78 [14:50:38]line Наличными: 271.00 [14:50:38]line Безнал.: 0.00 [14:50:38]line Место: АЗС № 135 "Партнер Нефть" [14:50:38]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:50:38]line СНО: Общий режим [14:50:38]line Чек 58 16.05.2024 14:50 [14:50:38]line Смена: 44 ФФД: 1.0 [14:50:38]line ЗНМ: 0300000237 [14:50:38]line РНМ: 0000000000154221 [14:50:38]line Версия ККМ: v1.0 [14:50:38]line ФМ: 0000000000963259 [14:50:38]line ФД: 4998 [14:50:38]line ФПД: 268975496934361 [14:50:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145036&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4998&fm=268975496934361&tin=02508201610067®Number=0000000000154221&sum=27100 [14:50:38]line 0 [14:50:38]OFD Sender: Processing packet 4998 [packets to send 4, broken 3] [14:50:38]ProducePacketName [14:50:38]name=ofd_packets/00004998 [14:50:38]OFD Sender: To server: pG, [14:50:38]CommunicateWithHost lk.salyk.kg:30040 [14:50:38]ConnectInit lk.salyk.kg [14:50:38]written 0, free lines is 4095 [14:50:38]Connected sock=11 [14:50:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 C2 CF 26 01 1B 53 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 36 39 35 37 35 33 31 30 33 32 30 30 37 06 04 28 00 D0 9A D0 B0 D0 B1 D0 B5 D0 BB D1 8C 20 68 6F 63 6F 20 52 41 50 20 43 48 41 52 20 58 31 20 D0 90 70 70 6C 65 20 31 D0 BC FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 69 00 00 00 00 13 04 06 00 DC 69 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F0 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 0B 00 00 00 00 07 04 06 00 DC 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 3C 1D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 86 13 00 00 35 04 06 00 F4 A1 BC F2 B3 D9 23 43 E7 C2 E0 8D 05 5D [14:50:38]Write to MH i2c: 01 00 00 64 04 68 [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: 01 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: 01 07 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: 01 07 00 64 04 00 00 00 00 00 7A 0C F5 [14:50:38]RasterBufferAndPrint [14:50:38]line [14:50:38]line [14:50:38]line [14:50:38]line [14:50:38]line [14:50:38]written 0, free lines is 3197 [14:50:38]MH_Cut [14:50:38]Write to MH i2c: D1 01 00 6B 04 01 41 [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: D1 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: D1 01 00 [14:50:38]MH_I2C_Read... [14:50:38]Read from MH i2c: D1 01 00 6B 04 00 40 [14:50:38]Write to MH i2c: 01 00 00 6C 04 70 [14:50:38]Write i2c OK [14:50:38]MH_I2C_Read... [14:50:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 4A 8D 47 00 67 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 86 13 00 00 F4 03 04 00 00 C9 45 66 B6 04 01 00 00 5A 8B 2F CF 3E 1B E2 41 [14:50:38]CommunicateWithHost err = 0 [14:50:38]CheckOFDResponse [14:50:38]1017 (14) - 77093643461234 [14:50:38]1041 (16) - 0000000000963259 [14:50:38]1040 (4) - 4998 [14:50:38]1012 (4) - 16.05.2024 08:51 [14:50:38]1206 (1) - 0 [14:50:38]OFD Sender: Remove packet 4998 [14:50:38]ProducePacketName [14:50:38]name=ofd_packets/00004998 [14:50:38]NVStorageDeleteData [14:50:39]OFD Sender: No OFD packet to send [14:50:40]*** Cut start [14:50:40]*** Partial cut [14:50:40]*** CUTSNS_PIN = 1 [14:50:40]*** CUTSNS_PIN = 0 [14:50:40]*** Brake cut motor [14:50:40]Read from MH i2c: 01 [14:50:40]MH_I2C_Read... [14:50:40]*** Stop cut motor [14:50:40]*** Cut end [14:50:40]Read from MH i2c: 01 07 00 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: 01 07 00 6C 04 00 00 00 00 00 FF 0F 85 [14:50:40]process_action close_receipt done [14:50:40]requested_data is exist [14:50:40]produce_requested_data [14:50:40]requested_item fm.sn is exist - process it [14:50:40]wFMCommunicate request_size=4 [14:50:40]MH_SAM_APDU [14:50:40]CAPDU: 80 11 00 00 [14:50:40]Write to MH i2c: E2 08 00 6D 04 80 11 00 00 00 00 00 00 EB [14:50:40]Write i2c OK [14:50:40]MH_I2C_Read... [14:50:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:50:40]Read from MH i2c: E2 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 17 00 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 17 00 6D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 40 [14:50:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:50:40]wFMCommunicate OK [14:50:40]requested_item fd.num is exist - process it [14:50:40]SAM_PROTO_GetFieldsCounters [14:50:40]wFMCommunicate request_size=4 [14:50:40]MH_SAM_APDU [14:50:40]CAPDU: 80 13 00 00 [14:50:40]Write to MH i2c: E2 08 00 6E 04 80 13 00 00 00 00 00 00 EE [14:50:40]Write i2c OK [14:50:40]MH_I2C_Read... [14:50:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:50:40]Read from MH i2c: E2 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 62 00 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 62 00 6E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 86 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 7A [14:50:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 86 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:50:40]wFMCommunicate OK [14:50:40]SAM_PROTO_GetFieldsCounters done [14:50:40]requested_item shift.num is exist - process it [14:50:40]requested_item shift.opened is exist - process it [14:50:40]req_shift_opened [14:50:40]FM_GetShiftState [14:50:40]SAM_PROTO_GetShiftState [14:50:40]wFMCommunicate request_size=4 [14:50:40]MH_SAM_APDU [14:50:40]CAPDU: 80 13 01 00 [14:50:40]Write to MH i2c: E2 08 00 6F 04 80 13 01 00 00 00 00 00 F0 [14:50:40]Write i2c OK [14:50:40]MH_I2C_Read... [14:50:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:50:40]Read from MH i2c: E2 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 0E 00 [14:50:40]MH_I2C_Read... [14:50:40]Read from MH i2c: E2 0E 00 6F 04 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 FC [14:50:40]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:50:40]wFMCommunicate OK [14:50:40]SAM_PROTO_GetShiftState done [14:50:40]FM_GetShiftState done [14:50:40]req_shift_opened done [14:50:40]requested_item shift.open_date is exist - process it [14:50:40]req_shift_open_date [14:50:40]req_shift_open_date done [14:50:40]produce_requested_data done [14:50:40]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4998,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:50:40]process_action_free close_receipt [14:50:40]json_value_free [14:50:40]json_value_free done [14:50:40]process_json_proto returns [14:50:40]Send response to host [14:50:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4998,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:50:40]free response buf [14:50:40]execute_script done [14:50:40]execute_script returns [14:50:40]free content buf [14:50:40]Sock 9.Close socket [14:50:40]Sock 9.Thread stoped [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:45]accept exits with 7 [14:51:45]New connection [14:51:45]New thread 3067108708 created [14:51:45]Thread 3067252068 joined [14:51:45]Waiting for new connection... [14:51:45] Sock 7.Parse request [14:51:45]Sock 7.Check first char [14:51:45]Sock 7.First char is OK [14:51:45]request: POST /json_proto HTTP/1.0 [14:51:45]Method: POST [14:51:45]URL: /json_proto [14:51:45]Method is POST - this is cgi request [14:51:45]url: /json_proto [14:51:45]query_string will be loaded in cgi processing [14:51:45]execute_cgi json_proto POST (null) [14:51:45]execute_cgi path=json_proto method=POST [14:51:45]POST find Content-Length [14:51:45]Host: 172.17.44.4:8080 [14:51:45]Content-Length: 638 [14:51:45]Content-Type: application/json [14:51:45] [14:51:45]POST finish read [14:51:45]Found Content-Length = 638 [14:51:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141000", "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 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:45]execute_script... [14:51: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)141000", "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 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:45]POST & json_proto [14:51:45]process_json_proto [14:51:45]json parsed OK: [14:51:45]protocol is kg_v1.0 [14:51:45]action value=close_receipt [14:51:45]process_action close_receipt [14:51:45]cmd_close_receipt [14:51:45]MH_GetDate [14:51:45]Write to MH i2c: F0 00 00 70 04 63 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: F0 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: F0 09 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: F0 09 00 70 04 00 82 1D 46 66 6C E9 28 66 9A [14:51:45]GetLastDocTimeStamp 1715871036 [14:51:45]current date 1715871106 [14:51:45]FM_GetShiftState [14:51:45]SAM_PROTO_GetShiftState [14:51:45]wFMCommunicate request_size=4 [14:51:45]MH_SAM_APDU [14:51:45]CAPDU: 80 13 01 00 [14:51:45]Write to MH i2c: E2 08 00 71 04 80 13 01 00 00 00 00 00 F2 [14:51:45]Write i2c OK [14:51:45]MH_I2C_Read... [14:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:45]Read from MH i2c: E2 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 0E 00 [14:51:45]MH_I2C_Read... [14:51:45]Read from MH i2c: E2 0E 00 71 04 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 FE [14:51:45]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:51:45]wFMCommunicate OK [14:51:45]SAM_PROTO_GetShiftState done [14:51:45]FM_GetShiftState done [14:51:45]opened in 1715818246 [14:51:45]opened+sec_in_day 1715904646 [14:51:45]quantity*price = 7000 [14:51:45]sum+1 = 7001 [14:51:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 59 16.05.2024 14:51 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 4999 ФПД: 23912800723446 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145146&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4999&fm=23912800723446&tin=02508201610067®Number=0000000000154221&sum=7000 0 [14:51:46]StoreToDocumentArchive [14:51:46]shift 44 fd 4999 [14:51:46]save to /storage/0044/doc_00004999 [14:51:46]save last doc name /storage/0044/doc_00004999 to /storage/kkm_last_doc_name [14:51:46]save OK [14:51:46]Clear old archive folders... [14:51:46]ProcessDocumentItem done err = 0, tmpTLVsize=273 [14:51:46]tlvbuf is 011F33E0 [14:51:46]SAM_PROTO_ClearQueue [14:51:46]wFMCommunicate request_size=4 [14:51:46]MH_SAM_APDU [14:51:46]CAPDU: 80 09 00 00 [14:51:46]Write to MH i2c: E2 08 00 7E 04 80 09 00 00 00 00 00 00 F4 [14:51:46]Write i2c OK [14:51:46]MH_I2C_Read... [14:51:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:46]Read from MH i2c: E2 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: E2 03 00 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: E2 03 00 7E 04 00 90 00 F6 [14:51:46]RAPDU: 90 00 [14:51:46]wFMCommunicate OK [14:51:46]SAM_PROTO_ClearQueue done [14:51:46]KKMCreateOFDPacket [14:51:46]OFDProtocolAddRootSTLVToBuf [14:51:46]FM_MakeSignedData [14:51:46]FM_MakeSignedData [14:51:46]SAM_PROTO_SignData [14:51:46]wFMCommunicate request_size=4 [14:51:46]MH_SAM_APDU [14:51:46]CAPDU: 80 0D 01 02 [14:51:46]Write to MH i2c: E2 08 00 7F 04 80 0D 01 02 00 00 00 00 FC [14:51:46]Write i2c OK [14:51:46]MH_I2C_Read... [14:51:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:46]Read from MH i2c: E2 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: E2 03 00 [14:51:46]MH_I2C_Read... [14:51:46]Read from MH i2c: E2 03 00 7F 04 00 90 00 F7 [14:51:46]RAPDU: 90 00 [14:51:46]wFMCommunicate OK [14:51:46]wFMCommunicate request_size=255 [14:51:46]MH_SAM_APDU [14:51:46]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 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 82 1D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 [14:51:46]Write to MH i2c: E2 02 01 80 04 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 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 82 1D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 00 00 BF [14:51:46]Write i2c OK [14:51:46]MH_I2C_Read... [14:51:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:47]Read from MH i2c: E2 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 03 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 03 00 80 04 00 90 00 F8 [14:51:47]RAPDU: 90 00 [14:51:47]wFMCommunicate OK [14:51:47]wFMCommunicate request_size=32 [14:51:47]MH_SAM_APDU [14:51:47]CAPDU: 80 0D 02 02 1B 30 30 30 39 36 33 32 35 39 10 04 04 00 87 13 00 00 35 04 06 00 15 BF A1 FE 21 F6 [14:51:47]Write to MH i2c: E2 23 00 81 04 80 0D 02 02 1B 00 30 30 30 39 36 33 32 35 39 10 04 04 00 87 13 00 00 35 04 06 00 15 BF A1 FE 21 F6 00 00 82 [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:47]Read from MH i2c: E2 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 03 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 03 00 81 04 00 90 00 F9 [14:51:47]RAPDU: 90 00 [14:51:47]wFMCommunicate OK [14:51:47]wFMCommunicate request_size=4 [14:51:47]MH_SAM_APDU [14:51:47]CAPDU: 80 0D 03 02 [14:51:47]Write to MH i2c: E2 08 00 82 04 80 0D 03 02 00 00 00 00 01 [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:47]Read from MH i2c: E2 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 0B 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 0B 00 82 04 00 FF B3 AA 83 57 73 16 D8 90 00 99 [14:51:47]RAPDU: FF B3 AA 83 57 73 16 D8 90 00 [14:51:47]wFMCommunicate OK [14:51:47]SAM_PROTO_SignData done [14:51:47]FM_MakeSignedData done [14:51:47]CreateOFDProtocolMessage [14:51:47]wFMCommunicate request_size=4 [14:51:47]MH_SAM_APDU [14:51:47]CAPDU: 80 11 00 00 [14:51:47]Write to MH i2c: E2 08 00 83 04 80 11 00 00 00 00 00 00 01 [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:47]Read from MH i2c: E2 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 17 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: E2 17 00 83 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 56 [14:51:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:51:47]wFMCommunicate OK [14:51:47]CreateOFDProtocolMessage done [14:51:47]OFDSenderStorePacket 4999 [14:51:47]StoreOFDPacket docnum=4999 [14:51:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 25 01 00 00 92 F2 1D 01 F8 C3 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 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 82 1D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 87 13 00 00 35 04 06 00 15 BF A1 FE 21 F6 FF B3 AA 83 57 73 16 D8 [14:51:47]CheckFolder [14:51:47]dirname=/storage/ofd_packets [14:51:47]CheckFolder done [14:51:47]ProducePacketName [14:51:47]name=ofd_packets/00004999 [14:51:47]NVStorageSaveData ofd_packets/00004999 [14:51:47]File name is /storage/ofd_packets/00004999 [14:51:47]Write 323 bytes [14:51:47]NVStorageSaveData done [14:51:47]OFDSenderStorePacket done [14:51:47]KKMCreateOFDPacket done [14:51:47]NVStorageSaveData kkm_last_timestamp [14:51:47]File name is /storage/kkm_last_timestamp [14:51:47]Write 4 bytes [14:51:47]NVStorageSaveData done [14:51:47]ExternCall_PrintAddStr [14:51:47]wPrintStart [14:51:47]Write to MH i2c: 01 00 00 84 04 88 [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: 01 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: 01 07 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: 01 07 00 84 04 00 00 00 00 00 FF 0F 9D [14:51:47]RasterBufferAndPrint [14:51:47]line Счет N : (3)141000 [14:51:47]line ИНН: 02508201610067 [14:51:47]line Контрольно-Кассовый Чек [14:51:47]line ПРОДАЖА [14:51:47]line Товар: 4700002082931 [14:51:47]line Водка Хорошая 0,1л [14:51:47]line 1.000 * 70.00 [14:51:47]line = 70.00 [14:51:47]line НДС 12% НСП 1% [14:51:47]line > о реализуемом товаре [14:51:47]line ИТОГО: 70.00 [14:51:47]line НСП 1% : 0.62 [14:51:47]line НДС 12% : 7.43 [14:51:47]line Наличными: 70.00 [14:51:47]line Безнал.: 0.00 [14:51:47]line Место: АЗС № 135 "Партнер Нефть" [14:51:47]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:51:47]line СНО: Общий режим [14:51:47]line Чек 59 16.05.2024 14:51 [14:51:47]line Смена: 44 ФФД: 1.0 [14:51:47]line ЗНМ: 0300000237 [14:51:47]line РНМ: 0000000000154221 [14:51:47]line Версия ККМ: v1.0 [14:51:47]line ФМ: 0000000000963259 [14:51:47]line ФД: 4999 [14:51:47]line ФПД: 23912800723446 [14:51:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145146&type=1&operation_type=1&fn_number=0000000000963259&fd_number=4999&fm=23912800723446&tin=02508201610067®Number=0000000000154221&sum=7000 [14:51:47]line 0 [14:51:47]OFD Sender: Processing packet 4999 [packets to send 4, broken 3] [14:51:47]ProducePacketName [14:51:47]name=ofd_packets/00004999 [14:51:47]OFD Sender: To server: pG, [14:51:47]CommunicateWithHost lk.salyk.kg:30040 [14:51:47]ConnectInit lk.salyk.kg [14:51:47]written 0, free lines is 4095 [14:51:47]Connected sock=10 [14:51:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 25 01 00 00 92 F2 1D 01 F8 C3 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 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 82 1D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 87 13 00 00 35 04 06 00 15 BF A1 FE 21 F6 FF B3 AA 83 57 73 16 D8 [14:51:47]Write to MH i2c: 01 00 00 AC 04 B0 [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: 01 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: 01 07 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: 01 07 00 AC 04 00 00 00 00 00 9D 0C 60 [14:51:47]RasterBufferAndPrint [14:51:47]line [14:51:47]line [14:51:47]line [14:51:47]line [14:51:47]line [14:51:47]written 0, free lines is 3232 [14:51:47]MH_Cut [14:51:47]Write to MH i2c: D1 01 00 B3 04 01 89 [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: D1 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: D1 01 00 [14:51:47]MH_I2C_Read... [14:51:47]Read from MH i2c: D1 01 00 B3 04 00 88 [14:51:47]Write to MH i2c: 01 00 00 B4 04 B8 [14:51:47]Write i2c OK [14:51:47]MH_I2C_Read... [14:51:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 D1 5E 47 00 40 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 33 32 35 39 10 04 04 00 87 13 00 00 F4 03 04 00 45 C9 45 66 B6 04 01 00 00 F1 B0 67 58 B2 EF BD C5 [14:51:48]CommunicateWithHost err = 0 [14:51:48]CheckOFDResponse [14:51:48]1017 (14) - 77093643461234 [14:51:48]1041 (16) - 0000000000963259 [14:51:48]1040 (4) - 4999 [14:51:48]1012 (4) - 16.05.2024 08:52 [14:51:48]1206 (1) - 0 [14:51:48]OFD Sender: Remove packet 4999 [14:51:48]ProducePacketName [14:51:48]name=ofd_packets/00004999 [14:51:48]NVStorageDeleteData [14:51:48]OFD Sender: No OFD packet to send [14:51:49]*** Cut start [14:51:49]*** Partial cut [14:51:49]*** CUTSNS_PIN = 1 [14:51:49]*** CUTSNS_PIN = 0 [14:51:49]*** Brake cut motor [14:51:49]Read from MH i2c: 01 [14:51:49]MH_I2C_Read... [14:51:49]*** Stop cut motor [14:51:49]*** Cut end [14:51:49]Read from MH i2c: 01 07 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: 01 07 00 B4 04 00 00 00 00 00 FF 0F CD [14:51:49]process_action close_receipt done [14:51:49]requested_data is exist [14:51:49]produce_requested_data [14:51:49]requested_item fm.sn is exist - process it [14:51:49]wFMCommunicate request_size=4 [14:51:49]MH_SAM_APDU [14:51:49]CAPDU: 80 11 00 00 [14:51:49]Write to MH i2c: E2 08 00 B5 04 80 11 00 00 00 00 00 00 33 [14:51:49]Write i2c OK [14:51:49]MH_I2C_Read... [14:51:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:49]Read from MH i2c: E2 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 17 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 17 00 B5 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 88 [14:51:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:51:49]wFMCommunicate OK [14:51:49]requested_item fd.num is exist - process it [14:51:49]SAM_PROTO_GetFieldsCounters [14:51:49]wFMCommunicate request_size=4 [14:51:49]MH_SAM_APDU [14:51:49]CAPDU: 80 13 00 00 [14:51:49]Write to MH i2c: E2 08 00 B6 04 80 13 00 00 00 00 00 00 36 [14:51:49]Write i2c OK [14:51:49]MH_I2C_Read... [14:51:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:49]Read from MH i2c: E2 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 62 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 62 00 B6 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 87 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [14:51:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 87 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:51:49]wFMCommunicate OK [14:51:49]SAM_PROTO_GetFieldsCounters done [14:51:49]requested_item shift.num is exist - process it [14:51:49]requested_item shift.opened is exist - process it [14:51:49]req_shift_opened [14:51:49]FM_GetShiftState [14:51:49]SAM_PROTO_GetShiftState [14:51:49]wFMCommunicate request_size=4 [14:51:49]MH_SAM_APDU [14:51:49]CAPDU: 80 13 01 00 [14:51:49]Write to MH i2c: E2 08 00 B7 04 80 13 01 00 00 00 00 00 38 [14:51:49]Write i2c OK [14:51:49]MH_I2C_Read... [14:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:49]Read from MH i2c: E2 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 0E 00 [14:51:49]MH_I2C_Read... [14:51:49]Read from MH i2c: E2 0E 00 B7 04 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 44 [14:51:49]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:51:49]wFMCommunicate OK [14:51:49]SAM_PROTO_GetShiftState done [14:51:49]FM_GetShiftState done [14:51:49]req_shift_opened done [14:51:49]requested_item shift.open_date is exist - process it [14:51:49]req_shift_open_date [14:51:49]req_shift_open_date done [14:51:49]produce_requested_data done [14:51:49]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":4999,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:51:49]process_action_free close_receipt [14:51:49]json_value_free [14:51:49]json_value_free done [14:51:49]process_json_proto returns [14:51:49]Send response to host [14:51:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":4999,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:51:49]free response buf [14:51:49]execute_script done [14:51:49]execute_script returns [14:51:49]free content buf [14:51:49]Sock 7.Close socket [14:51:49]Sock 7.Thread stoped [14:51:53]OFD Sender: No OFD packet to send [14:51:58]OFD Sender: No OFD packet to send [14:52:03]OFD Sender: No OFD packet to send [14:52:08]OFD Sender: No OFD packet to send [14:52:13]OFD Sender: No OFD packet to send [14:52:18]OFD Sender: No OFD packet to send [14:52:23]OFD Sender: No OFD packet to send [14:52:28]OFD Sender: No OFD packet to send [14:52:33]OFD Sender: No OFD packet to send [14:52:38]OFD Sender: No OFD packet to send [14:52:43]OFD Sender: No OFD packet to send [14:52:48]OFD Sender: No OFD packet to send [14:52:53]OFD Sender: No OFD packet to send [14:52:58]OFD Sender: No OFD packet to send [14:53:03]OFD Sender: No OFD packet to send [14:53:08]OFD Sender: No OFD packet to send [14:53:13]OFD Sender: No OFD packet to send [14:53:18]OFD Sender: No OFD packet to send [14:53:23]OFD Sender: No OFD packet to send [14:53:28]OFD Sender: No OFD packet to send [14:53:33]OFD Sender: No OFD packet to send [14:53:38]OFD Sender: No OFD packet to send [14:53:43]OFD Sender: No OFD packet to send [14:53:48]OFD Sender: No OFD packet to send [14:53:53]OFD Sender: No OFD packet to send [14:53:58]OFD Sender: No OFD packet to send [14:54:03]OFD Sender: No OFD packet to send [14:54:08]OFD Sender: No OFD packet to send [14:54:13]OFD Sender: No OFD packet to send [14:54:18]OFD Sender: No OFD packet to send [14:54:23]OFD Sender: No OFD packet to send [14:54:28]OFD Sender: No OFD packet to send [14:54:33]OFD Sender: No OFD packet to send [14:54:38]OFD Sender: No OFD packet to send [14:54:43]OFD Sender: No OFD packet to send [14:54:48]OFD Sender: No OFD packet to send [14:54:53]OFD Sender: No OFD packet to send [14:54:58]OFD Sender: No OFD packet to send [14:55:03]OFD Sender: No OFD packet to send [14:55:08]OFD Sender: No OFD packet to send [14:55:13]OFD Sender: No OFD packet to send [14:55:18]OFD Sender: No OFD packet to send [14:55:23]OFD Sender: No OFD packet to send [14:55:28]OFD Sender: No OFD packet to send [14:55:33]OFD Sender: No OFD packet to send [14:55:38]OFD Sender: No OFD packet to send [14:55:43]OFD Sender: No OFD packet to send [14:55:48]OFD Sender: No OFD packet to send [14:55:53]OFD Sender: No OFD packet to send [14:55:58]OFD Sender: No OFD packet to send [14:56:03]OFD Sender: No OFD packet to send [14:56:08]OFD Sender: No OFD packet to send [14:56:13]OFD Sender: No OFD packet to send [14:56:18]OFD Sender: No OFD packet to send [14:56:23]OFD Sender: No OFD packet to send [14:56:28]OFD Sender: No OFD packet to send [14:56:33]OFD Sender: No OFD packet to send [14:56:38]OFD Sender: No OFD packet to send [14:56:43]OFD Sender: No OFD packet to send [14:56:48]OFD Sender: No OFD packet to send [14:56:53]OFD Sender: No OFD packet to send [14:56:58]OFD Sender: No OFD packet to send [14:57:03]OFD Sender: No OFD packet to send [14:57:08]OFD Sender: No OFD packet to send [14:57:13]OFD Sender: No OFD packet to send [14:57:18]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:28]OFD Sender: No OFD packet to send [14:57:33]OFD Sender: No OFD packet to send [14:57:38]OFD Sender: No OFD packet to send [14:57:43]OFD Sender: No OFD packet to send [14:57:48]OFD Sender: No OFD packet to send [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:42]accept exits with 9 [14:58:42]New connection [14:58:42]New thread 3067252068 created [14:58:42]Thread 3067108708 joined [14:58:42]Waiting for new connection... [14:58:42] Sock 9.Parse request [14:58:42]Sock 9.Check first char [14:58:42]Sock 9.First char is OK [14:58:42]request: POST /json_proto HTTP/1.0 [14:58:42]Method: POST [14:58:42]URL: /json_proto [14:58:42]Method is POST - this is cgi request [14:58:42]url: /json_proto [14:58:42]query_string will be loaded in cgi processing [14:58:42]execute_cgi json_proto POST (null) [14:58:42]execute_cgi path=json_proto method=POST [14:58:42]POST find Content-Length [14:58:42]Host: 172.17.44.4:8080 [14:58:42]Content-Length: 715 [14:58:42]Content-Type: application/json [14:58:42] [14:58:42]POST finish read [14:58:42]Found Content-Length = 715 [14:58:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141001", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:42]execute_script... [14:58: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)141001", "tax_sys" : 0, "items" : [ { "code": "4700000481965", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u0434\u0438\u043A\u0438\u0435 \u044F\u0433\u043E\u0434\u044B 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:42]POST & json_proto [14:58:42]process_json_proto [14:58:42]json parsed OK: [14:58:42]protocol is kg_v1.0 [14:58:42]action value=close_receipt [14:58:42]process_action close_receipt [14:58:42]cmd_close_receipt [14:58:42]MH_GetDate [14:58:42]Write to MH i2c: F0 00 00 B8 04 AB [14:58:42]Write i2c OK [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: F0 [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: F0 09 00 [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: F0 09 00 B8 04 00 23 1F 46 66 6C E9 28 66 85 [14:58:42]GetLastDocTimeStamp 1715871106 [14:58:42]current date 1715871523 [14:58:42]FM_GetShiftState [14:58:42]SAM_PROTO_GetShiftState [14:58:42]wFMCommunicate request_size=4 [14:58:42]MH_SAM_APDU [14:58:42]CAPDU: 80 13 01 00 [14:58:42]Write to MH i2c: E2 08 00 B9 04 80 13 01 00 00 00 00 00 3A [14:58:42]Write i2c OK [14:58:42]MH_I2C_Read... [14:58:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:42]Read from MH i2c: E2 [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: E2 0E 00 [14:58:42]MH_I2C_Read... [14:58:42]Read from MH i2c: E2 0E 00 B9 04 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 46 [14:58:42]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:58:42]wFMCommunicate OK [14:58:42]SAM_PROTO_GetShiftState done [14:58:42]FM_GetShiftState done [14:58:42]opened in 1715818246 [14:58:42]opened+sec_in_day 1715904646 [14:58:42]quantity*price = 9500 [14:58:42]sum+1 = 9501 [14:58:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 60 16.05.2024 14:58 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5000 ФПД: 108936173391540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145843&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5000&fm=108936173391540&tin=02508201610067®Number=0000000000154221&sum=9500 0 [14:58:43]StoreToDocumentArchive [14:58:43]shift 44 fd 5000 [14:58:43]save to /storage/0044/doc_00005000 [14:58:43]save last doc name /storage/0044/doc_00005000 to /storage/kkm_last_doc_name [14:58:43]save OK [14:58:43]Clear old archive folders... [14:58:43]ProcessDocumentItem done err = 0, tmpTLVsize=306 [14:58:43]tlvbuf is 01174A10 [14:58:43]SAM_PROTO_ClearQueue [14:58:43]wFMCommunicate request_size=4 [14:58:43]MH_SAM_APDU [14:58:43]CAPDU: 80 09 00 00 [14:58:43]Write to MH i2c: E2 08 00 C6 04 80 09 00 00 00 00 00 00 3C [14:58:43]Write i2c OK [14:58:43]MH_I2C_Read... [14:58:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:43]Read from MH i2c: E2 [14:58:43]MH_I2C_Read... [14:58:43]Read from MH i2c: E2 03 00 [14:58:43]MH_I2C_Read... [14:58:43]Read from MH i2c: E2 03 00 C6 04 00 90 00 3E [14:58:43]RAPDU: 90 00 [14:58:43]wFMCommunicate OK [14:58:43]SAM_PROTO_ClearQueue done [14:58:43]KKMCreateOFDPacket [14:58:43]OFDProtocolAddRootSTLVToBuf [14:58:43]FM_MakeSignedData [14:58:43]FM_MakeSignedData [14:58:43]SAM_PROTO_SignData [14:58:43]wFMCommunicate request_size=4 [14:58:43]MH_SAM_APDU [14:58:43]CAPDU: 80 0D 01 02 [14:58:43]Write to MH i2c: E2 08 00 C7 04 80 0D 01 02 00 00 00 00 44 [14:58:43]Write i2c OK [14:58:43]MH_I2C_Read... [14:58:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:43]Read from MH i2c: E2 [14:58:43]MH_I2C_Read... [14:58:43]Read from MH i2c: E2 03 00 [14:58:43]MH_I2C_Read... [14:58:43]Read from MH i2c: E2 03 00 C7 04 00 90 00 3F [14:58:43]RAPDU: 90 00 [14:58:43]wFMCommunicate OK [14:58:43]wFMCommunicate request_size=255 [14:58:43]MH_SAM_APDU [14:58:43]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 00 00 00 F4 03 04 00 23 1F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 [14:58:43]Write to MH i2c: E2 02 01 C8 04 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 00 00 00 F4 03 04 00 23 1F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 00 46 [14:58:43]Write i2c OK [14:58:43]MH_I2C_Read... [14:58:43]OFD Sender: No OFD packet to send [14:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 C8 04 00 90 00 40 [14:58:44]RAPDU: 90 00 [14:58:44]wFMCommunicate OK [14:58:44]wFMCommunicate request_size=65 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 88 13 00 00 35 04 06 00 63 13 AD EB 0E B4 [14:58:44]Write to MH i2c: E2 44 00 C9 04 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 88 13 00 00 35 04 06 00 63 13 AD EB 0E B4 00 00 F9 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 03 00 C9 04 00 90 00 41 [14:58:44]RAPDU: 90 00 [14:58:44]wFMCommunicate OK [14:58:44]wFMCommunicate request_size=4 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 0D 03 02 [14:58:44]Write to MH i2c: E2 08 00 CA 04 80 0D 03 02 00 00 00 00 49 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 0B 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 0B 00 CA 04 00 F1 86 C2 E9 A7 C9 F4 21 90 00 F1 [14:58:44]RAPDU: F1 86 C2 E9 A7 C9 F4 21 90 00 [14:58:44]wFMCommunicate OK [14:58:44]SAM_PROTO_SignData done [14:58:44]FM_MakeSignedData done [14:58:44]CreateOFDProtocolMessage [14:58:44]wFMCommunicate request_size=4 [14:58:44]MH_SAM_APDU [14:58:44]CAPDU: 80 11 00 00 [14:58:44]Write to MH i2c: E2 08 00 CB 04 80 11 00 00 00 00 00 00 49 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:44]Read from MH i2c: E2 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 17 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: E2 17 00 CB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 9E [14:58:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:58:44]wFMCommunicate OK [14:58:44]CreateOFDProtocolMessage done [14:58:44]OFDSenderStorePacket 5000 [14:58:44]StoreOFDPacket docnum=5000 [14:58:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 46 01 00 00 EC 79 3E 01 E0 44 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 00 00 00 F4 03 04 00 23 1F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 88 13 00 00 35 04 06 00 63 13 AD EB 0E B4 F1 86 C2 E9 A7 C9 F4 21 [14:58:44]CheckFolder [14:58:44]dirname=/storage/ofd_packets [14:58:44]CheckFolder done [14:58:44]ProducePacketName [14:58:44]name=ofd_packets/00005000 [14:58:44]NVStorageSaveData ofd_packets/00005000 [14:58:44]File name is /storage/ofd_packets/00005000 [14:58:44]Write 356 bytes [14:58:44]NVStorageSaveData done [14:58:44]OFDSenderStorePacket done [14:58:44]KKMCreateOFDPacket done [14:58:44]NVStorageSaveData kkm_last_timestamp [14:58:44]File name is /storage/kkm_last_timestamp [14:58:44]Write 4 bytes [14:58:44]NVStorageSaveData done [14:58:44]ExternCall_PrintAddStr [14:58:44]wPrintStart [14:58:44]Write to MH i2c: 01 00 00 CC 04 D0 [14:58:44]Write i2c OK [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: 01 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: 01 07 00 [14:58:44]MH_I2C_Read... [14:58:44]Read from MH i2c: 01 07 00 CC 04 00 00 00 00 00 FF 0F E5 [14:58:44]RasterBufferAndPrint [14:58:44]line Счет N : (3)141001 [14:58:44]line ИНН: 02508201610067 [14:58:44]line Контрольно-Кассовый Чек [14:58:44]line ПРОДАЖА [14:58:44]line Товар: 4700000481965 [14:58:44]line Напиток энерг Nitro дикие ягоды 0,45 ж/б [14:58:44]line 1.000 * 95.00 [14:58:44]line = 95.00 [14:58:44]line НДС 12% НСП 1% [14:58:44]line > о реализуемом товаре [14:58:44]line ИТОГО: 95.00 [14:58:44]line НСП 1% : 0.84 [14:58:44]line НДС 12% : 10.09 [14:58:44]line Наличными: 95.00 [14:58:44]line Безнал.: 0.00 [14:58:44]line Место: АЗС № 135 "Партнер Нефть" [14:58:44]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [14:58:44]line СНО: Общий режим [14:58:44]line Чек 60 16.05.2024 14:58 [14:58:44]line Смена: 44 ФФД: 1.0 [14:58:44]line ЗНМ: 0300000237 [14:58:44]line РНМ: 0000000000154221 [14:58:44]line Версия ККМ: v1.0 [14:58:44]line ФМ: 0000000000963259 [14:58:44]line ФД: 5000 [14:58:44]line ФПД: 108936173391540 [14:58:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T145843&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5000&fm=108936173391540&tin=02508201610067®Number=0000000000154221&sum=9500 [14:58:44]line 0 [14:58:44]OFD Sender: Processing packet 5000 [packets to send 4, broken 3] [14:58:44]ProducePacketName [14:58:44]name=ofd_packets/00005000 [14:58:44]OFD Sender: To server: pG, [14:58:44]CommunicateWithHost lk.salyk.kg:30040 [14:58:44]ConnectInit lk.salyk.kg [14:58:44]written 0, free lines is 4095 [14:58:44]Connected sock=7 [14:58:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 46 01 00 00 EC 79 3E 01 E0 44 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 36 35 06 04 40 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 B4 D0 B8 D0 BA D0 B8 D0 B5 20 D1 8F D0 B3 D0 BE D0 B4 D1 8B 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 3C 00 00 00 F4 03 04 00 23 1F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 88 13 00 00 35 04 06 00 63 13 AD EB 0E B4 F1 86 C2 E9 A7 C9 F4 21 [14:58:45]Write to MH i2c: 01 00 00 F5 04 F9 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: 01 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: 01 07 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: 01 07 00 F5 04 00 00 00 00 00 80 0C 8C [14:58:45]RasterBufferAndPrint [14:58:45]line [14:58:45]line [14:58:45]line [14:58:45]line [14:58:45]line [14:58:45]written 0, free lines is 3205 [14:58:45]MH_Cut [14:58:45]Write to MH i2c: D1 01 00 FC 04 01 D2 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: D1 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: D1 01 00 [14:58:45]MH_I2C_Read... [14:58:45]Read from MH i2c: D1 01 00 FC 04 00 D1 [14:58:45]Write to MH i2c: 01 00 00 FD 04 01 [14:58:45]Write i2c OK [14:58:45]MH_I2C_Read... [14:58:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 9F 8A 47 00 9F A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 88 13 00 00 F4 03 04 00 E6 CA 45 66 B6 04 01 00 00 82 C6 C1 D0 C7 2A C5 9F [14:58:45]CommunicateWithHost err = 0 [14:58:45]CheckOFDResponse [14:58:45]1017 (14) - 77093643461234 [14:58:45]1041 (16) - 0000000000963259 [14:58:45]1040 (4) - 5000 [14:58:45]1012 (4) - 16.05.2024 08:59 [14:58:45]1206 (1) - 0 [14:58:45]OFD Sender: Remove packet 5000 [14:58:45]ProducePacketName [14:58:45]name=ofd_packets/00005000 [14:58:45]NVStorageDeleteData [14:58:45]OFD Sender: No OFD packet to send [14:58:46]*** Cut start [14:58:46]*** Partial cut [14:58:46]*** CUTSNS_PIN = 1 [14:58:46]*** CUTSNS_PIN = 0 [14:58:46]*** Brake cut motor [14:58:46]Read from MH i2c: 01 [14:58:46]MH_I2C_Read... [14:58:46]*** Stop cut motor [14:58:46]*** Cut end [14:58:46]Read from MH i2c: 01 07 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: 01 07 00 FD 04 00 00 00 00 00 FF 0F 16 [14:58:46]process_action close_receipt done [14:58:46]requested_data is exist [14:58:46]produce_requested_data [14:58:46]requested_item fm.sn is exist - process it [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 11 00 00 [14:58:46]Write to MH i2c: E2 08 00 FE 04 80 11 00 00 00 00 00 00 7C [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 17 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 17 00 FE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D1 [14:58:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [14:58:46]wFMCommunicate OK [14:58:46]requested_item fd.num is exist - process it [14:58:46]SAM_PROTO_GetFieldsCounters [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 13 00 00 [14:58:46]Write to MH i2c: E2 08 00 FF 04 80 13 00 00 00 00 00 00 7F [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:46]Read from MH i2c: E2 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 62 00 [14:58:46]MH_I2C_Read... [14:58:46]Read from MH i2c: E2 62 00 FF 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 88 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [14:58:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 88 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [14:58:46]wFMCommunicate OK [14:58:46]SAM_PROTO_GetFieldsCounters done [14:58:46]requested_item shift.num is exist - process it [14:58:46]requested_item shift.opened is exist - process it [14:58:46]req_shift_opened [14:58:46]FM_GetShiftState [14:58:46]SAM_PROTO_GetShiftState [14:58:46]wFMCommunicate request_size=4 [14:58:46]MH_SAM_APDU [14:58:46]CAPDU: 80 13 01 00 [14:58:46]Write to MH i2c: E2 08 00 00 05 80 13 01 00 00 00 00 00 82 [14:58:46]Write i2c OK [14:58:46]MH_I2C_Read... [14:58:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:47]Read from MH i2c: E2 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 0E 00 [14:58:47]MH_I2C_Read... [14:58:47]Read from MH i2c: E2 0E 00 00 05 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 8E [14:58:47]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [14:58:47]wFMCommunicate OK [14:58:47]SAM_PROTO_GetShiftState done [14:58:47]FM_GetShiftState done [14:58:47]req_shift_opened done [14:58:47]requested_item shift.open_date is exist - process it [14:58:47]req_shift_open_date [14:58:47]req_shift_open_date done [14:58:47]produce_requested_data done [14:58:47]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5000,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [14:58:47]process_action_free close_receipt [14:58:47]json_value_free [14:58:47]json_value_free done [14:58:47]process_json_proto returns [14:58:47]Send response to host [14:58:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5000,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [14:58:47]free response buf [14:58:47]execute_script done [14:58:47]execute_script returns [14:58:47]free content buf [14:58:47]Sock 9.Close socket [14:58:47]Sock 9.Thread stoped [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:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:17]accept exits with 10 [15:05:17]New connection [15:05:17]New thread 3067108708 created [15:05:17]Thread 3067252068 joined [15:05:17]Waiting for new connection... [15:05:17] Sock 10.Parse request [15:05:17]Sock 10.Check first char [15:05:17]Sock 10.First char is OK [15:05:17]request: POST /json_proto HTTP/1.0 [15:05:17]Method: POST [15:05:17]URL: /json_proto [15:05:17]Method is POST - this is cgi request [15:05:17]url: /json_proto [15:05:17]query_string will be loaded in cgi processing [15:05:17]execute_cgi json_proto POST (null) [15:05:17]execute_cgi path=json_proto method=POST [15:05:17]POST find Content-Length [15:05:17]Host: 172.17.44.4:8080 [15:05:17]Content-Length: 804 [15:05:17]Content-Type: application/json [15:05:17] [15:05:17]POST finish read [15:05:17]Found Content-Length = 804 [15:05:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 17.080, "sum" : 1250.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1250.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:17]execute_script... [15:05:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992902", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 17.080, "sum" : 1250.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 1250.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:17]POST & json_proto [15:05:17]process_json_proto [15:05:17]json parsed OK: [15:05:17]protocol is kg_v1.0 [15:05:17]action value=close_receipt [15:05:17]process_action close_receipt [15:05:17]cmd_close_receipt [15:05:17]MH_GetDate [15:05:17]Write to MH i2c: F0 00 00 01 05 F5 [15:05:17]Write i2c OK [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: F0 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: F0 09 00 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: F0 09 00 01 05 00 AD 20 46 66 6C E9 28 66 5A [15:05:17]GetLastDocTimeStamp 1715871523 [15:05:17]current date 1715871917 [15:05:17]FM_GetShiftState [15:05:17]SAM_PROTO_GetShiftState [15:05:17]wFMCommunicate request_size=4 [15:05:17]MH_SAM_APDU [15:05:17]CAPDU: 80 13 01 00 [15:05:17]Write to MH i2c: E2 08 00 02 05 80 13 01 00 00 00 00 00 84 [15:05:17]Write i2c OK [15:05:17]MH_I2C_Read... [15:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:17]Read from MH i2c: E2 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: E2 0E 00 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: E2 0E 00 02 05 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 90 [15:05:17]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [15:05:17]wFMCommunicate OK [15:05:17]SAM_PROTO_GetShiftState done [15:05:17]FM_GetShiftState done [15:05:17]opened in 1715818246 [15:05:17]opened+sec_in_day 1715904646 [15:05:17]quantity*price = 125025 [15:05:17]sum+1 = 125027 [15:05:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1250.26 НСП 1% : 11.06 НДС 12% : 132.77 Наличными: 0.00 Безнал.: 1250.26 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 61 16.05.2024 15:05 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5001 ФПД: 204541348922151 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T150517&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5001&fm=204541348922151&tin=02508201610067®Number=0000000000154221&sum=125026 [15:05:18]StoreToDocumentArchive [15:05:18]shift 44 fd 5001 [15:05:18]save to /storage/0044/doc_00005001 [15:05:18]save last doc name /storage/0044/doc_00005001 to /storage/kkm_last_doc_name [15:05:18]save OK [15:05:18]Clear old archive folders... [15:05:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:05:18]tlvbuf is 0121AD10 [15:05:18]SAM_PROTO_ClearQueue [15:05:18]wFMCommunicate request_size=4 [15:05:18]MH_SAM_APDU [15:05:18]CAPDU: 80 09 00 00 [15:05:18]Write to MH i2c: E2 08 00 0F 05 80 09 00 00 00 00 00 00 86 [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:18]Read from MH i2c: E2 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 0F 05 00 90 00 88 [15:05:18]RAPDU: 90 00 [15:05:18]wFMCommunicate OK [15:05:18]SAM_PROTO_ClearQueue done [15:05:18]KKMCreateOFDPacket [15:05:18]OFDProtocolAddRootSTLVToBuf [15:05:18]FM_MakeSignedData [15:05:18]FM_MakeSignedData [15:05:18]SAM_PROTO_SignData [15:05:18]wFMCommunicate request_size=4 [15:05:18]MH_SAM_APDU [15:05:18]CAPDU: 80 0D 01 02 [15:05:18]Write to MH i2c: E2 08 00 10 05 80 0D 01 02 00 00 00 00 8E [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:18]Read from MH i2c: E2 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 10 05 00 90 00 89 [15:05:18]RAPDU: 90 00 [15:05:18]wFMCommunicate OK [15:05:18]wFMCommunicate request_size=255 [15:05:18]MH_SAM_APDU [15:05:18]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 42 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 62 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 E8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AD 20 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 89 13 00 00 35 04 06 00 BA [15:05:18]Write to MH i2c: E2 02 01 11 05 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 42 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 62 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 E8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AD 20 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 89 13 00 00 35 04 06 00 BA 00 00 C1 [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:18]Read from MH i2c: E2 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 11 05 00 90 00 8A [15:05:18]RAPDU: 90 00 [15:05:18]wFMCommunicate OK [15:05:18]wFMCommunicate request_size=10 [15:05:18]MH_SAM_APDU [15:05:18]CAPDU: 80 0D 02 02 05 07 7E 71 C3 27 [15:05:18]Write to MH i2c: E2 0D 00 12 05 80 0D 02 02 05 00 07 7E 71 C3 27 00 00 7B [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:18]Read from MH i2c: E2 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 12 05 00 90 00 8B [15:05:18]RAPDU: 90 00 [15:05:18]wFMCommunicate OK [15:05:18]wFMCommunicate request_size=4 [15:05:18]MH_SAM_APDU [15:05:18]CAPDU: 80 0D 03 02 [15:05:18]Write to MH i2c: E2 08 00 13 05 80 0D 03 02 00 00 00 00 93 [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:18]Read from MH i2c: E2 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 0B 00 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 0B 00 13 05 00 99 37 0A 1E 0D FA 10 A7 90 00 4A [15:05:18]RAPDU: 99 37 0A 1E 0D FA 10 A7 90 00 [15:05:18]wFMCommunicate OK [15:05:18]SAM_PROTO_SignData done [15:05:18]FM_MakeSignedData done [15:05:18]CreateOFDProtocolMessage [15:05:18]wFMCommunicate request_size=4 [15:05:18]MH_SAM_APDU [15:05:18]CAPDU: 80 11 00 00 [15:05:18]Write to MH i2c: E2 08 00 14 05 80 11 00 00 00 00 00 00 93 [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:18]Read from MH i2c: E2 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 17 00 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 17 00 14 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 E8 [15:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [15:05:18]wFMCommunicate OK [15:05:18]CreateOFDProtocolMessage done [15:05:18]OFDSenderStorePacket 5001 [15:05:18]StoreOFDPacket docnum=5001 [15:05:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 0A 8C 07 01 4A 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 42 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 62 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 E8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AD 20 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 89 13 00 00 35 04 06 00 BA 07 7E 71 C3 27 99 37 0A 1E 0D FA 10 A7 [15:05:18]CheckFolder [15:05:18]dirname=/storage/ofd_packets [15:05:18]CheckFolder done [15:05:18]ProducePacketName [15:05:18]name=ofd_packets/00005001 [15:05:18]NVStorageSaveData ofd_packets/00005001 [15:05:18]File name is /storage/ofd_packets/00005001 [15:05:18]Write 301 bytes [15:05:18]NVStorageSaveData done [15:05:18]OFDSenderStorePacket done [15:05:18]KKMCreateOFDPacket done [15:05:18]NVStorageSaveData kkm_last_timestamp [15:05:18]File name is /storage/kkm_last_timestamp [15:05:18]Write 4 bytes [15:05:18]NVStorageSaveData done [15:05:18]ExternCall_PrintAddStr [15:05:18]wPrintStart [15:05:18]Write to MH i2c: 01 00 00 15 05 1A [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: 01 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: 01 07 00 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: 01 07 00 15 05 00 00 00 00 00 FF 0F 2F [15:05:18]RasterBufferAndPrint [15:05:18]line Счет N : (1)1992902 [15:05:18]line ИНН: 02508201610067 [15:05:18]line Контрольно-Кассовый Чек [15:05:18]line ПРОДАЖА [15:05:18]line ТРК (МРК, ГНК) : 42 [15:05:18]line Товар: 2710124500 [15:05:18]line Аи-95-К-5 [15:05:18]line 17.080 * 73.20 [15:05:18]line = 1250.26 [15:05:18]line НДС 12% НСП 1% [15:05:18]line > о реализуемом товаре [15:05:18]line ИТОГО: 1250.26 [15:05:18]line НСП 1% : 11.06 [15:05:18]line НДС 12% : 132.77 [15:05:18]line Наличными: 0.00 [15:05:18]line Безнал.: 1250.26 [15:05:18]line Место: АЗС № 135 "Партнер Нефть" [15:05:18]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [15:05:18]line СНО: Общий режим [15:05:18]line Чек 61 16.05.2024 15:05 [15:05:18]line Смена: 44 ФФД: 1.0 [15:05:18]line ЗНМ: 0300000237 [15:05:18]line РНМ: 0000000000154221 [15:05:18]line Версия ККМ: v1.0 [15:05:18]line Платежная система: O! деньги [15:05:18]line ФМ: 0000000000963259 [15:05:18]line ФД: 5001 [15:05:18]line ФПД: 204541348922151 [15:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T150517&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5001&fm=204541348922151&tin=02508201610067®Number=0000000000154221&sum=125026 [15:05:19]OFD Sender: Processing packet 5001 [packets to send 4, broken 3] [15:05:19]ProducePacketName [15:05:19]name=ofd_packets/00005001 [15:05:19]OFD Sender: To server: pG, [15:05:19]CommunicateWithHost lk.salyk.kg:30040 [15:05:19]ConnectInit lk.salyk.kg [15:05:19]written 0, free lines is 4095 [15:05:19]Connected sock=9 [15:05:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 0A 8C 07 01 4A 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 42 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 62 E8 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 62 E8 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 33 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 62 E8 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 AD 20 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 89 13 00 00 35 04 06 00 BA 07 7E 71 C3 27 99 37 0A 1E 0D FA 10 A7 [15:05:19]Write to MH i2c: 01 00 00 3F 05 44 [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 07 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 07 00 3F 05 00 00 00 00 00 7D 0C D4 [15:05:19]RasterBufferAndPrint [15:05:19]line [15:05:19]line [15:05:19]line [15:05:19]line [15:05:19]line [15:05:19]written 0, free lines is 3200 [15:05:19]MH_Cut [15:05:19]Write to MH i2c: D1 01 00 46 05 01 1D [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: D1 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: D1 01 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: D1 01 00 46 05 00 1C [15:05:19]Write to MH i2c: 01 00 00 47 05 4C [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 B0 66 47 00 85 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 89 13 00 00 F4 03 04 00 71 CC 45 66 B6 04 01 00 00 F3 2B E9 82 55 B3 5A CF [15:05:19]CommunicateWithHost err = 0 [15:05:19]CheckOFDResponse [15:05:19]1017 (14) - 77093643461234 [15:05:19]1041 (16) - 0000000000963259 [15:05:19]1040 (4) - 5001 [15:05:19]1012 (4) - 16.05.2024 09:05 [15:05:19]1206 (1) - 0 [15:05:19]OFD Sender: Remove packet 5001 [15:05:19]ProducePacketName [15:05:19]name=ofd_packets/00005001 [15:05:19]NVStorageDeleteData [15:05:20]OFD Sender: No OFD packet to send [15:05:20]*** Cut start [15:05:20]*** Partial cut [15:05:20]*** CUTSNS_PIN = 1 [15:05:20]*** CUTSNS_PIN = 0 [15:05:20]*** Brake cut motor [15:05:21]Read from MH i2c: 01 [15:05:21]MH_I2C_Read... [15:05:21]*** Stop cut motor [15:05:21]*** Cut end [15:05:21]Read from MH i2c: 01 07 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: 01 07 00 47 05 00 00 00 00 00 FF 0F 61 [15:05:21]process_action close_receipt done [15:05:21]requested_data is exist [15:05:21]produce_requested_data [15:05:21]requested_item fm.sn is exist - process it [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 11 00 00 [15:05:21]Write to MH i2c: E2 08 00 48 05 80 11 00 00 00 00 00 00 C7 [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 17 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 17 00 48 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 1C [15:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [15:05:21]wFMCommunicate OK [15:05:21]requested_item fd.num is exist - process it [15:05:21]SAM_PROTO_GetFieldsCounters [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 13 00 00 [15:05:21]Write to MH i2c: E2 08 00 49 05 80 13 00 00 00 00 00 00 CA [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 62 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 62 00 49 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 89 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [15:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 89 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:05:21]wFMCommunicate OK [15:05:21]SAM_PROTO_GetFieldsCounters done [15:05:21]requested_item shift.num is exist - process it [15:05:21]requested_item shift.opened is exist - process it [15:05:21]req_shift_opened [15:05:21]FM_GetShiftState [15:05:21]SAM_PROTO_GetShiftState [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 13 01 00 [15:05:21]Write to MH i2c: E2 08 00 4A 05 80 13 01 00 00 00 00 00 CC [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 4A 05 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 D8 [15:05:21]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [15:05:21]wFMCommunicate OK [15:05:21]SAM_PROTO_GetShiftState done [15:05:21]FM_GetShiftState done [15:05:21]req_shift_opened done [15:05:21]requested_item shift.open_date is exist - process it [15:05:21]req_shift_open_date [15:05:21]req_shift_open_date done [15:05:21]produce_requested_data done [15:05:21]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5001,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [15:05:21]process_action_free close_receipt [15:05:21]json_value_free [15:05:21]json_value_free done [15:05:21]process_json_proto returns [15:05:21]Send response to host [15:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5001,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [15:05:21]free response buf [15:05:21]execute_script done [15:05:21]execute_script returns [15:05:21]free content buf [15:05:21]Sock 10.Close socket [15:05:21]Sock 10.Thread stoped [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:16]accept exits with 7 [15:09:16]New connection [15:09:16]New thread 3067252068 created [15:09:16]Thread 3067108708 joined [15:09:16]Waiting for new connection... [15:09:16] Sock 7.Parse request [15:09:16]Sock 7.Check first char [15:09:16]Sock 7.First char is OK [15:09:16]request: POST /json_proto HTTP/1.0 [15:09:16]Method: POST [15:09:16]URL: /json_proto [15:09:16]Method is POST - this is cgi request [15:09:16]url: /json_proto [15:09:16]query_string will be loaded in cgi processing [15:09:16]execute_cgi json_proto POST (null) [15:09:16]execute_cgi path=json_proto method=POST [15:09:16]POST find Content-Length [15:09:16]Host: 172.17.44.4:8080 [15:09:16]Content-Length: 644 [15:09:16]Content-Type: application/json [15:09:16] [15:09:16]POST finish read [15:09:16]Found Content-Length = 644 [15:09:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141002", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:16]execute_script... [15:09:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141002", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:16]POST & json_proto [15:09:16]process_json_proto [15:09:16]json parsed OK: [15:09:16]protocol is kg_v1.0 [15:09:16]action value=close_receipt [15:09:16]process_action close_receipt [15:09:16]cmd_close_receipt [15:09:16]MH_GetDate [15:09:16]Write to MH i2c: F0 00 00 4B 05 3F [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 09 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: F0 09 00 4B 05 00 9D 21 46 66 6C E9 28 66 95 [15:09:16]GetLastDocTimeStamp 1715871917 [15:09:16]current date 1715872157 [15:09:16]FM_GetShiftState [15:09:16]SAM_PROTO_GetShiftState [15:09:16]wFMCommunicate request_size=4 [15:09:16]MH_SAM_APDU [15:09:16]CAPDU: 80 13 01 00 [15:09:16]Write to MH i2c: E2 08 00 4C 05 80 13 01 00 00 00 00 00 CE [15:09:16]Write i2c OK [15:09:16]MH_I2C_Read... [15:09:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:16]Read from MH i2c: E2 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 0E 00 [15:09:16]MH_I2C_Read... [15:09:16]Read from MH i2c: E2 0E 00 4C 05 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 DA [15:09:16]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [15:09:16]wFMCommunicate OK [15:09:16]SAM_PROTO_GetShiftState done [15:09:16]FM_GetShiftState done [15:09:16]opened in 1715818246 [15:09:16]opened+sec_in_day 1715904646 [15:09:16]quantity*price = 10500 [15:09:16]sum+1 = 10501 [15:09:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 62 16.05.2024 15:09 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5002 ФПД: 224936547113185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T150917&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5002&fm=224936547113185&tin=02508201610067®Number=0000000000154221&sum=10500 0 [15:09:17]StoreToDocumentArchive [15:09:17]shift 44 fd 5002 [15:09:17]save to /storage/0044/doc_00005002 [15:09:17]save last doc name /storage/0044/doc_00005002 to /storage/kkm_last_doc_name [15:09:17]save OK [15:09:17]Clear old archive folders... [15:09:17]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:09:17]tlvbuf is 011F34E0 [15:09:17]SAM_PROTO_ClearQueue [15:09:17]wFMCommunicate request_size=4 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 09 00 00 [15:09:17]Write to MH i2c: E2 08 00 59 05 80 09 00 00 00 00 00 00 D0 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 59 05 00 90 00 D2 [15:09:17]RAPDU: 90 00 [15:09:17]wFMCommunicate OK [15:09:17]SAM_PROTO_ClearQueue done [15:09:17]KKMCreateOFDPacket [15:09:17]OFDProtocolAddRootSTLVToBuf [15:09:17]FM_MakeSignedData [15:09:17]FM_MakeSignedData [15:09:17]SAM_PROTO_SignData [15:09:17]wFMCommunicate request_size=4 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 0D 01 02 [15:09:17]Write to MH i2c: E2 08 00 5A 05 80 0D 01 02 00 00 00 00 D8 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 5A 05 00 90 00 D3 [15:09:17]RAPDU: 90 00 [15:09:17]wFMCommunicate OK [15:09:17]wFMCommunicate request_size=255 [15:09:17]MH_SAM_APDU [15:09:17]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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 3E 00 00 00 F4 03 04 00 9D 21 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 [15:09:17]Write to MH i2c: E2 02 01 5B 05 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 3E 00 00 00 F4 03 04 00 9D 21 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 00 00 C3 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:17]Read from MH i2c: E2 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 [15:09:17]MH_I2C_Read... [15:09:17]Read from MH i2c: E2 03 00 5B 05 00 90 00 D4 [15:09:17]RAPDU: 90 00 [15:09:17]wFMCommunicate OK [15:09:17]wFMCommunicate request_size=39 [15:09:17]MH_SAM_APDU [15:09:17]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8A 13 00 00 35 04 06 00 CC 94 1E FC D8 E1 [15:09:17]Write to MH i2c: E2 2A 00 5C 05 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8A 13 00 00 35 04 06 00 CC 94 1E FC D8 E1 00 00 68 [15:09:17]Write i2c OK [15:09:17]MH_I2C_Read... [15:09:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:18]Read from MH i2c: E2 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 03 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 03 00 5C 05 00 90 00 D5 [15:09:18]RAPDU: 90 00 [15:09:18]wFMCommunicate OK [15:09:18]wFMCommunicate request_size=4 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 0D 03 02 [15:09:18]Write to MH i2c: E2 08 00 5D 05 80 0D 03 02 00 00 00 00 DD [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:18]Read from MH i2c: E2 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 0B 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 0B 00 5D 05 00 2B FC B8 1B 95 47 88 69 90 00 A5 [15:09:18]RAPDU: 2B FC B8 1B 95 47 88 69 90 00 [15:09:18]wFMCommunicate OK [15:09:18]SAM_PROTO_SignData done [15:09:18]FM_MakeSignedData done [15:09:18]CreateOFDProtocolMessage [15:09:18]wFMCommunicate request_size=4 [15:09:18]MH_SAM_APDU [15:09:18]CAPDU: 80 11 00 00 [15:09:18]Write to MH i2c: E2 08 00 5E 05 80 11 00 00 00 00 00 00 DD [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:18]Read from MH i2c: E2 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 17 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: E2 17 00 5E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 32 [15:09:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [15:09:18]wFMCommunicate OK [15:09:18]CreateOFDProtocolMessage done [15:09:18]OFDSenderStorePacket 5002 [15:09:18]StoreOFDPacket docnum=5002 [15:09:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2C 01 00 00 00 E8 24 01 5C EE 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 3E 00 00 00 F4 03 04 00 9D 21 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8A 13 00 00 35 04 06 00 CC 94 1E FC D8 E1 2B FC B8 1B 95 47 88 69 [15:09:18]CheckFolder [15:09:18]dirname=/storage/ofd_packets [15:09:18]CheckFolder done [15:09:18]ProducePacketName [15:09:18]name=ofd_packets/00005002 [15:09:18]NVStorageSaveData ofd_packets/00005002 [15:09:18]File name is /storage/ofd_packets/00005002 [15:09:18]Write 330 bytes [15:09:18]NVStorageSaveData done [15:09:18]OFDSenderStorePacket done [15:09:18]KKMCreateOFDPacket done [15:09:18]NVStorageSaveData kkm_last_timestamp [15:09:18]File name is /storage/kkm_last_timestamp [15:09:18]Write 4 bytes [15:09:18]NVStorageSaveData done [15:09:18]ExternCall_PrintAddStr [15:09:18]wPrintStart [15:09:18]Write to MH i2c: 01 00 00 5F 05 64 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: 01 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: 01 07 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: 01 07 00 5F 05 00 00 00 00 00 FF 0F 79 [15:09:18]RasterBufferAndPrint [15:09:18]line Счет N : (3)141002 [15:09:18]line ИНН: 02508201610067 [15:09:18]line Контрольно-Кассовый Чек [15:09:18]line ПРОДАЖА [15:09:18]line Товар: 2000036210013 [15:09:18]line Кофе Капучино (GABB TRADE) [15:09:18]line 1.000 * 105.00 [15:09:18]line = 105.00 [15:09:18]line НДС 12% НСП 1% [15:09:18]line > о реализуемом товаре [15:09:18]line ИТОГО: 105.00 [15:09:18]line НСП 1% : 0.93 [15:09:18]line НДС 12% : 11.15 [15:09:18]line Наличными: 105.00 [15:09:18]line Безнал.: 0.00 [15:09:18]line Место: АЗС № 135 "Партнер Нефть" [15:09:18]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [15:09:18]line СНО: Общий режим [15:09:18]line Чек 62 16.05.2024 15:09 [15:09:18]line Смена: 44 ФФД: 1.0 [15:09:18]line ЗНМ: 0300000237 [15:09:18]line РНМ: 0000000000154221 [15:09:18]line Версия ККМ: v1.0 [15:09:18]line ФМ: 0000000000963259 [15:09:18]line ФД: 5002 [15:09:18]line ФПД: 224936547113185 [15:09:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T150917&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5002&fm=224936547113185&tin=02508201610067®Number=0000000000154221&sum=10500 [15:09:18]line 0 [15:09:18]OFD Sender: Processing packet 5002 [packets to send 4, broken 3] [15:09:18]ProducePacketName [15:09:18]name=ofd_packets/00005002 [15:09:18]OFD Sender: To server: pG, [15:09:18]CommunicateWithHost lk.salyk.kg:30040 [15:09:18]ConnectInit lk.salyk.kg [15:09:18]written 0, free lines is 4095 [15:09:18]Connected sock=10 [15:09:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2C 01 00 00 00 E8 24 01 5C EE 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 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 3E 00 00 00 F4 03 04 00 9D 21 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8A 13 00 00 35 04 06 00 CC 94 1E FC D8 E1 2B FC B8 1B 95 47 88 69 [15:09:18]Write to MH i2c: 01 00 00 87 05 8C [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: 01 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: 01 07 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: 01 07 00 87 05 00 00 00 00 00 A1 0C 40 [15:09:18]RasterBufferAndPrint [15:09:18]line [15:09:18]line [15:09:18]line [15:09:18]line [15:09:18]line [15:09:18]written 0, free lines is 3237 [15:09:18]MH_Cut [15:09:18]Write to MH i2c: D1 01 00 8E 05 01 65 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: D1 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: D1 01 00 [15:09:18]MH_I2C_Read... [15:09:18]Read from MH i2c: D1 01 00 8E 05 00 64 [15:09:18]Write to MH i2c: 01 00 00 8F 05 94 [15:09:18]Write i2c OK [15:09:18]MH_I2C_Read... [15:09:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 BA 42 47 00 78 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8A 13 00 00 F4 03 04 00 60 CD 45 66 B6 04 01 00 00 3C CF 3D B6 E0 7A 5F 2B [15:09:19]CommunicateWithHost err = 0 [15:09:19]CheckOFDResponse [15:09:19]1017 (14) - 77093643461234 [15:09:19]1041 (16) - 0000000000963259 [15:09:19]1040 (4) - 5002 [15:09:19]1012 (4) - 16.05.2024 09:09 [15:09:19]1206 (1) - 0 [15:09:19]OFD Sender: Remove packet 5002 [15:09:19]ProducePacketName [15:09:19]name=ofd_packets/00005002 [15:09:19]NVStorageDeleteData [15:09:19]OFD Sender: No OFD packet to send [15:09:20]*** Cut start [15:09:20]*** Partial cut [15:09:20]*** CUTSNS_PIN = 1 [15:09:20]*** CUTSNS_PIN = 0 [15:09:20]*** Brake cut motor [15:09:20]Read from MH i2c: 01 [15:09:20]MH_I2C_Read... [15:09:20]*** Stop cut motor [15:09:20]*** Cut end [15:09:20]Read from MH i2c: 01 07 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: 01 07 00 8F 05 00 00 00 00 00 FF 0F A9 [15:09:20]process_action close_receipt done [15:09:20]requested_data is exist [15:09:20]produce_requested_data [15:09:20]requested_item fm.sn is exist - process it [15:09:20]wFMCommunicate request_size=4 [15:09:20]MH_SAM_APDU [15:09:20]CAPDU: 80 11 00 00 [15:09:20]Write to MH i2c: E2 08 00 90 05 80 11 00 00 00 00 00 00 0F [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:20]Read from MH i2c: E2 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 17 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 17 00 90 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 64 [15:09:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [15:09:20]wFMCommunicate OK [15:09:20]requested_item fd.num is exist - process it [15:09:20]SAM_PROTO_GetFieldsCounters [15:09:20]wFMCommunicate request_size=4 [15:09:20]MH_SAM_APDU [15:09:20]CAPDU: 80 13 00 00 [15:09:20]Write to MH i2c: E2 08 00 91 05 80 13 00 00 00 00 00 00 12 [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:20]Read from MH i2c: E2 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 62 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 62 00 91 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [15:09:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:20]wFMCommunicate OK [15:09:20]SAM_PROTO_GetFieldsCounters done [15:09:20]requested_item shift.num is exist - process it [15:09:20]requested_item shift.opened is exist - process it [15:09:20]req_shift_opened [15:09:20]FM_GetShiftState [15:09:20]SAM_PROTO_GetShiftState [15:09:20]wFMCommunicate request_size=4 [15:09:20]MH_SAM_APDU [15:09:20]CAPDU: 80 13 01 00 [15:09:20]Write to MH i2c: E2 08 00 92 05 80 13 01 00 00 00 00 00 14 [15:09:20]Write i2c OK [15:09:20]MH_I2C_Read... [15:09:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:20]Read from MH i2c: E2 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 0E 00 [15:09:20]MH_I2C_Read... [15:09:20]Read from MH i2c: E2 0E 00 92 05 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 20 [15:09:20]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [15:09:20]wFMCommunicate OK [15:09:20]SAM_PROTO_GetShiftState done [15:09:20]FM_GetShiftState done [15:09:20]req_shift_opened done [15:09:20]requested_item shift.open_date is exist - process it [15:09:20]req_shift_open_date [15:09:20]req_shift_open_date done [15:09:20]produce_requested_data done [15:09:20]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5002,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [15:09:20]process_action_free close_receipt [15:09:20]json_value_free [15:09:20]json_value_free done [15:09:20]process_json_proto returns [15:09:20]Send response to host [15:09:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5002,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [15:09:20]free response buf [15:09:20]execute_script done [15:09:20]execute_script returns [15:09:20]free content buf [15:09:20]Sock 7.Close socket [15:09:20]Sock 7.Thread stoped [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:45]OFD Sender: No OFD packet to send [15:14:50]OFD Sender: No OFD packet to send [15:14:55]OFD Sender: No OFD packet to send [15:15:00]OFD Sender: No OFD packet to send [15:15:05]OFD Sender: No OFD packet to send [15:15:10]OFD Sender: No OFD packet to send [15:15:15]OFD Sender: No OFD packet to send [15:15:20]OFD Sender: No OFD packet to send [15:15:25]OFD Sender: No OFD packet to send [15:15:30]OFD Sender: No OFD packet to send [15:15:35]OFD Sender: No OFD packet to send [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:55]OFD Sender: No OFD packet to send [15:17:00]OFD Sender: No OFD packet to send [15:17:05]OFD Sender: No OFD packet to send [15:17:10]OFD Sender: No OFD packet to send [15:17:15]OFD Sender: No OFD packet to send [15:17:20]OFD Sender: No OFD packet to send [15:17:25]OFD Sender: No OFD packet to send [15:17:30]OFD Sender: No OFD packet to send [15:17:35]OFD Sender: No OFD packet to send [15:17:40]OFD Sender: No OFD packet to send [15:17:45]OFD Sender: No OFD packet to send [15:17:50]OFD Sender: No OFD packet to send [15:17:55]OFD Sender: No OFD packet to send [15:18:00]OFD Sender: No OFD packet to send [15:18:05]OFD Sender: No OFD packet to send [15:18:10]OFD Sender: No OFD packet to send [15:18:15]OFD Sender: No OFD packet to send [15:18:20]OFD Sender: No OFD packet to send [15:18:25]OFD Sender: No OFD packet to send [15:18:30]OFD Sender: No OFD packet to send [15:18:35]OFD Sender: No OFD packet to send [15:18:40]OFD Sender: No OFD packet to send [15:18:45]OFD Sender: No OFD packet to send [15:18:50]OFD Sender: No OFD packet to send [15:18:55]OFD Sender: No OFD packet to send [15:19:00]OFD Sender: No OFD packet to send [15:19:05]OFD Sender: No OFD packet to send [15:19:10]OFD Sender: No OFD packet to send [15:19:15]OFD Sender: No OFD packet to send [15:19:20]OFD Sender: No OFD packet to send [15:19:25]OFD Sender: No OFD packet to send [15:19:30]OFD Sender: No OFD packet to send [15:19:35]OFD Sender: No OFD packet to send [15:19:40]OFD Sender: No OFD packet to send [15:19:45]OFD Sender: No OFD packet to send [15:19:50]OFD Sender: No OFD packet to send [15:19:55]OFD Sender: No OFD packet to send [15:20:00]OFD Sender: No OFD packet to send [15:20:05]OFD Sender: No OFD packet to send [15:20:10]OFD Sender: No OFD packet to send [15:20:15]OFD Sender: No OFD packet to send [15:20:20]OFD Sender: No OFD packet to send [15:20:25]OFD Sender: No OFD packet to send [15:20:30]OFD Sender: No OFD packet to send [15:20:35]OFD Sender: No OFD packet to send [15:20:40]OFD Sender: No OFD packet to send [15:20:45]OFD Sender: No OFD packet to send [15:20:50]OFD Sender: No OFD packet to send [15:20:55]OFD Sender: No OFD packet to send [15:21:00]OFD Sender: No OFD packet to send [15:21:05]OFD Sender: No OFD packet to send [15:21:10]OFD Sender: No OFD packet to send [15:21:15]OFD Sender: No OFD packet to send [15:21:20]OFD Sender: No OFD packet to send [15:21:25]OFD Sender: No OFD packet to send [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29: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:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [15:34:30]OFD Sender: No OFD packet to send [15:34:33]accept exits with 9 [15:34:33]New connection [15:34:33]New thread 3067108708 created [15:34:33]Thread 3067252068 joined [15:34:33]Waiting for new connection... [15:34:33] Sock 9.Parse request [15:34:33]Sock 9.Check first char [15:34:33]Sock 9.First char is OK [15:34:33]request: POST /json_proto HTTP/1.0 [15:34:33]Method: POST [15:34:33]URL: /json_proto [15:34:33]Method is POST - this is cgi request [15:34:33]url: /json_proto [15:34:33]query_string will be loaded in cgi processing [15:34:33]execute_cgi json_proto POST (null) [15:34:33]execute_cgi path=json_proto method=POST [15:34:33]POST find Content-Length [15:34:33]Host: 172.17.44.4:8080 [15:34:33]Content-Length: 624 [15:34:33]Content-Type: application/json [15:34:33] [15:34:33]POST finish read [15:34:33]Found Content-Length = 624 [15:34:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141003", "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" ] } } [15:34:33]execute_script... [15:34: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)141003", "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" ] } } [15:34:33]POST & json_proto [15:34:33]process_json_proto [15:34:33]json parsed OK: [15:34:33]protocol is kg_v1.0 [15:34:33]action value=close_receipt [15:34:33]process_action close_receipt [15:34:33]cmd_close_receipt [15:34:33]MH_GetDate [15:34:33]Write to MH i2c: F0 00 00 93 05 87 [15:34:33]Write i2c OK [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: F0 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: F0 09 00 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: F0 09 00 93 05 00 8A 27 46 66 6C E9 28 66 D0 [15:34:33]GetLastDocTimeStamp 1715872157 [15:34:33]current date 1715873674 [15:34:33]FM_GetShiftState [15:34:33]SAM_PROTO_GetShiftState [15:34:33]wFMCommunicate request_size=4 [15:34:33]MH_SAM_APDU [15:34:33]CAPDU: 80 13 01 00 [15:34:33]Write to MH i2c: E2 08 00 94 05 80 13 01 00 00 00 00 00 16 [15:34:33]Write i2c OK [15:34:33]MH_I2C_Read... [15:34:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:33]Read from MH i2c: E2 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 0E 00 [15:34:33]MH_I2C_Read... [15:34:33]Read from MH i2c: E2 0E 00 94 05 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 22 [15:34:33]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [15:34:33]wFMCommunicate OK [15:34:33]SAM_PROTO_GetShiftState done [15:34:33]FM_GetShiftState done [15:34:33]opened in 1715818246 [15:34:33]opened+sec_in_day 1715904646 [15:34:33]quantity*price = 15100 [15:34:33]sum+1 = 15101 [15:34:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 63 16.05.2024 15:34 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5003 ФПД: 159389000063433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T153434&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5003&fm=159389000063433&tin=02508201610067®Number=0000000000154221&sum=15100 0 [15:34:34]StoreToDocumentArchive [15:34:34]shift 44 fd 5003 [15:34:34]save to /storage/0044/doc_00005003 [15:34:34]save last doc name /storage/0044/doc_00005003 to /storage/kkm_last_doc_name [15:34:34]save OK [15:34:34]Clear old archive folders... [15:34:34]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:34:34]tlvbuf is 011DD430 [15:34:34]SAM_PROTO_ClearQueue [15:34:34]wFMCommunicate request_size=4 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 09 00 00 [15:34:34]Write to MH i2c: E2 08 00 A1 05 80 09 00 00 00 00 00 00 18 [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:34]Read from MH i2c: E2 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 A1 05 00 90 00 1A [15:34:34]RAPDU: 90 00 [15:34:34]wFMCommunicate OK [15:34:34]SAM_PROTO_ClearQueue done [15:34:34]KKMCreateOFDPacket [15:34:34]OFDProtocolAddRootSTLVToBuf [15:34:34]FM_MakeSignedData [15:34:34]FM_MakeSignedData [15:34:34]SAM_PROTO_SignData [15:34:34]wFMCommunicate request_size=4 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 0D 01 02 [15:34:34]Write to MH i2c: E2 08 00 A2 05 80 0D 01 02 00 00 00 00 20 [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:34]Read from MH i2c: E2 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 A2 05 00 90 00 1B [15:34:34]RAPDU: 90 00 [15:34:34]wFMCommunicate OK [15:34:34]wFMCommunicate request_size=255 [15:34:34]MH_SAM_APDU [15:34:34]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 3F 00 00 00 F4 03 04 00 8A 27 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 [15:34:34]Write to MH i2c: E2 02 01 A3 05 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 3F 00 00 00 F4 03 04 00 8A 27 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 00 00 30 [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:34]Read from MH i2c: E2 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 A3 05 00 90 00 1C [15:34:34]RAPDU: 90 00 [15:34:34]wFMCommunicate OK [15:34:34]wFMCommunicate request_size=35 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8B 13 00 00 35 04 06 00 90 F6 A4 BA D9 C9 [15:34:34]Write to MH i2c: E2 26 00 A4 05 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8B 13 00 00 35 04 06 00 90 F6 A4 BA D9 C9 00 00 3C [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:34]Read from MH i2c: E2 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 03 00 A4 05 00 90 00 1D [15:34:34]RAPDU: 90 00 [15:34:34]wFMCommunicate OK [15:34:34]wFMCommunicate request_size=4 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 0D 03 02 [15:34:34]Write to MH i2c: E2 08 00 A5 05 80 0D 03 02 00 00 00 00 25 [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:34]Read from MH i2c: E2 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 0B 00 [15:34:34]MH_I2C_Read... [15:34:34]Read from MH i2c: E2 0B 00 A5 05 00 D8 53 8F EB A9 D3 66 63 90 00 10 [15:34:34]RAPDU: D8 53 8F EB A9 D3 66 63 90 00 [15:34:34]wFMCommunicate OK [15:34:34]SAM_PROTO_SignData done [15:34:34]FM_MakeSignedData done [15:34:34]CreateOFDProtocolMessage [15:34:34]wFMCommunicate request_size=4 [15:34:34]MH_SAM_APDU [15:34:34]CAPDU: 80 11 00 00 [15:34:34]Write to MH i2c: E2 08 00 A6 05 80 11 00 00 00 00 00 00 25 [15:34:34]Write i2c OK [15:34:34]MH_I2C_Read... [15:34:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:35]Read from MH i2c: E2 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 17 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: E2 17 00 A6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 7A [15:34:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [15:34:35]wFMCommunicate OK [15:34:35]CreateOFDProtocolMessage done [15:34:35]OFDSenderStorePacket 5003 [15:34:35]StoreOFDPacket docnum=5003 [15:34:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 28 01 00 00 A4 14 20 01 50 2A 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 3F 00 00 00 F4 03 04 00 8A 27 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8B 13 00 00 35 04 06 00 90 F6 A4 BA D9 C9 D8 53 8F EB A9 D3 66 63 [15:34:35]CheckFolder [15:34:35]dirname=/storage/ofd_packets [15:34:35]CheckFolder done [15:34:35]ProducePacketName [15:34:35]name=ofd_packets/00005003 [15:34:35]NVStorageSaveData ofd_packets/00005003 [15:34:35]File name is /storage/ofd_packets/00005003 [15:34:35]Write 326 bytes [15:34:35]NVStorageSaveData done [15:34:35]OFDSenderStorePacket done [15:34:35]KKMCreateOFDPacket done [15:34:35]NVStorageSaveData kkm_last_timestamp [15:34:35]File name is /storage/kkm_last_timestamp [15:34:35]Write 4 bytes [15:34:35]NVStorageSaveData done [15:34:35]ExternCall_PrintAddStr [15:34:35]wPrintStart [15:34:35]Write to MH i2c: 01 00 00 A7 05 AC [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 07 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 07 00 A7 05 00 00 00 00 00 FF 0F C1 [15:34:35]RasterBufferAndPrint [15:34:35]line Счет N : (3)141003 [15:34:35]line ИНН: 02508201610067 [15:34:35]line Контрольно-Кассовый Чек [15:34:35]line ПРОДАЖА [15:34:35]line Товар: 48742245 [15:34:35]line Сигареты Parliament Silver Blue [15:34:35]line 1.000 * 151.00 [15:34:35]line = 151.00 [15:34:35]line НДС 12% НСП 1% [15:34:35]line > о реализуемом товаре [15:34:35]line ИТОГО: 151.00 [15:34:35]line НСП 1% : 1.34 [15:34:35]line НДС 12% : 16.03 [15:34:35]line Наличными: 151.00 [15:34:35]line Безнал.: 0.00 [15:34:35]line Место: АЗС № 135 "Партнер Нефть" [15:34:35]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [15:34:35]line СНО: Общий режим [15:34:35]line Чек 63 16.05.2024 15:34 [15:34:35]line Смена: 44 ФФД: 1.0 [15:34:35]line ЗНМ: 0300000237 [15:34:35]line РНМ: 0000000000154221 [15:34:35]line Версия ККМ: v1.0 [15:34:35]line ФМ: 0000000000963259 [15:34:35]line ФД: 5003 [15:34:35]line ФПД: 159389000063433 [15:34:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T153434&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5003&fm=159389000063433&tin=02508201610067®Number=0000000000154221&sum=15100 [15:34:35]line 0 [15:34:35]OFD Sender: Processing packet 5003 [packets to send 4, broken 3] [15:34:35]ProducePacketName [15:34:35]name=ofd_packets/00005003 [15:34:35]OFD Sender: To server: pG, [15:34:35]CommunicateWithHost lk.salyk.kg:30040 [15:34:35]ConnectInit lk.salyk.kg [15:34:35]written 0, free lines is 4095 [15:34:35]Connected sock=10 [15:34:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 28 01 00 00 A4 14 20 01 50 2A 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 3F 00 00 00 F4 03 04 00 8A 27 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8B 13 00 00 35 04 06 00 90 F6 A4 BA D9 C9 D8 53 8F EB A9 D3 66 63 [15:34:35]Write to MH i2c: 01 00 00 D0 05 D5 [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 07 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: 01 07 00 D0 05 00 00 00 00 00 68 0C 50 [15:34:35]RasterBufferAndPrint [15:34:35]line [15:34:35]line [15:34:35]line [15:34:35]line [15:34:35]line [15:34:35]written 0, free lines is 3180 [15:34:35]MH_Cut [15:34:35]Write to MH i2c: D1 01 00 D7 05 01 AE [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: D1 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: D1 01 00 [15:34:35]MH_I2C_Read... [15:34:35]Read from MH i2c: D1 01 00 D7 05 00 AD [15:34:35]Write to MH i2c: 01 00 00 D8 05 DD [15:34:35]Write i2c OK [15:34:35]MH_I2C_Read... [15:34:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 AF F8 47 00 DC 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8B 13 00 00 F4 03 04 00 4D D3 45 66 B6 04 01 00 00 C9 1A C8 FE A4 AD 20 7E [15:34:35]CommunicateWithHost err = 0 [15:34:35]CheckOFDResponse [15:34:35]1017 (14) - 77093643461234 [15:34:35]1041 (16) - 0000000000963259 [15:34:35]1040 (4) - 5003 [15:34:35]1012 (4) - 16.05.2024 09:35 [15:34:35]1206 (1) - 0 [15:34:35]OFD Sender: Remove packet 5003 [15:34:35]ProducePacketName [15:34:35]name=ofd_packets/00005003 [15:34:35]NVStorageDeleteData [15:34:36]OFD Sender: No OFD packet to send [15:34:36]*** Cut start [15:34:36]*** Partial cut [15:34:36]*** CUTSNS_PIN = 1 [15:34:36]*** CUTSNS_PIN = 0 [15:34:37]*** Brake cut motor [15:34:37]Read from MH i2c: 01 [15:34:37]MH_I2C_Read... [15:34:37]*** Stop cut motor [15:34:37]*** Cut end [15:34:37]Read from MH i2c: 01 07 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: 01 07 00 D8 05 00 00 00 00 00 FF 0F F2 [15:34:37]process_action close_receipt done [15:34:37]requested_data is exist [15:34:37]produce_requested_data [15:34:37]requested_item fm.sn is exist - process it [15:34:37]wFMCommunicate request_size=4 [15:34:37]MH_SAM_APDU [15:34:37]CAPDU: 80 11 00 00 [15:34:37]Write to MH i2c: E2 08 00 D9 05 80 11 00 00 00 00 00 00 58 [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:37]Read from MH i2c: E2 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 17 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 17 00 D9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 AD [15:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [15:34:37]wFMCommunicate OK [15:34:37]requested_item fd.num is exist - process it [15:34:37]SAM_PROTO_GetFieldsCounters [15:34:37]wFMCommunicate request_size=4 [15:34:37]MH_SAM_APDU [15:34:37]CAPDU: 80 13 00 00 [15:34:37]Write to MH i2c: E2 08 00 DA 05 80 13 00 00 00 00 00 00 5B [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:37]Read from MH i2c: E2 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 62 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 62 00 DA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8B 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [15:34:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8B 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:37]wFMCommunicate OK [15:34:37]SAM_PROTO_GetFieldsCounters done [15:34:37]requested_item shift.num is exist - process it [15:34:37]requested_item shift.opened is exist - process it [15:34:37]req_shift_opened [15:34:37]FM_GetShiftState [15:34:37]SAM_PROTO_GetShiftState [15:34:37]wFMCommunicate request_size=4 [15:34:37]MH_SAM_APDU [15:34:37]CAPDU: 80 13 01 00 [15:34:37]Write to MH i2c: E2 08 00 DB 05 80 13 01 00 00 00 00 00 5D [15:34:37]Write i2c OK [15:34:37]MH_I2C_Read... [15:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:37]Read from MH i2c: E2 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 0E 00 [15:34:37]MH_I2C_Read... [15:34:37]Read from MH i2c: E2 0E 00 DB 05 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 69 [15:34:37]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [15:34:37]wFMCommunicate OK [15:34:37]SAM_PROTO_GetShiftState done [15:34:37]FM_GetShiftState done [15:34:37]req_shift_opened done [15:34:37]requested_item shift.open_date is exist - process it [15:34:37]req_shift_open_date [15:34:37]req_shift_open_date done [15:34:37]produce_requested_data done [15:34:37]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5003,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [15:34:37]process_action_free close_receipt [15:34:37]json_value_free [15:34:37]json_value_free done [15:34:37]process_json_proto returns [15:34:37]Send response to host [15:34:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5003,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [15:34:37]free response buf [15:34:37]execute_script done [15:34:37]execute_script returns [15:34:37]free content buf [15:34:37]Sock 9.Close socket [15:34:37]Sock 9.Thread stoped [15:34:41]OFD Sender: No OFD packet to send [15:34:42]accept exits with 7 [15:34:42]New connection [15:34:42]New thread 3067252068 created [15:34:42]Thread 3067108708 joined [15:34:42]Waiting for new connection... [15:34:42] Sock 7.Parse request [15:34:42]Sock 7.Check first char [15:34:42]Sock 7.First char is OK [15:34:42]request: POST /json_proto HTTP/1.0 [15:34:42]Method: POST [15:34:42]URL: /json_proto [15:34:42]Method is POST - this is cgi request [15:34:42]url: /json_proto [15:34:42]query_string will be loaded in cgi processing [15:34:42]execute_cgi json_proto POST (null) [15:34:42]execute_cgi path=json_proto method=POST [15:34:42]POST find Content-Length [15:34:42]Host: 172.17.44.4:8080 [15:34:42]Content-Length: 614 [15:34:42]Content-Type: application/json [15:34:42] [15:34:42]POST finish read [15:34:42]Found Content-Length = 614 [15:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141004", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [15:34:42]execute_script... [15: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)141004", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [15:34:42]POST & json_proto [15:34:42]process_json_proto [15:34:42]json parsed OK: [15:34:42]protocol is kg_v1.0 [15:34:42]action value=close_receipt [15:34:42]process_action close_receipt [15:34:42]cmd_close_receipt [15:34:42]MH_GetDate [15:34:42]Write to MH i2c: F0 00 00 DC 05 D0 [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: F0 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: F0 09 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: F0 09 00 DC 05 00 93 27 46 66 6C E9 28 66 22 [15:34:42]GetLastDocTimeStamp 1715873674 [15:34:42]current date 1715873683 [15:34:42]FM_GetShiftState [15:34:42]SAM_PROTO_GetShiftState [15:34:42]wFMCommunicate request_size=4 [15:34:42]MH_SAM_APDU [15:34:42]CAPDU: 80 13 01 00 [15:34:42]Write to MH i2c: E2 08 00 DD 05 80 13 01 00 00 00 00 00 5F [15:34:42]Write i2c OK [15:34:42]MH_I2C_Read... [15:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:42]Read from MH i2c: E2 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 0E 00 [15:34:42]MH_I2C_Read... [15:34:42]Read from MH i2c: E2 0E 00 DD 05 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 6B [15:34:42]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [15:34:42]wFMCommunicate OK [15:34:42]SAM_PROTO_GetShiftState done [15:34:42]FM_GetShiftState done [15:34:42]opened in 1715818246 [15:34:42]opened+sec_in_day 1715904646 [15:34:42]quantity*price = 13000 [15:34:42]sum+1 = 13001 [15:34:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 64 16.05.2024 15:34 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5004 ФПД: 245725539842590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T153443&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5004&fm=245725539842590&tin=02508201610067®Number=0000000000154221&sum=13000 0 [15:34:43]StoreToDocumentArchive [15:34:43]shift 44 fd 5004 [15:34:43]save to /storage/0044/doc_00005004 [15:34:43]save last doc name /storage/0044/doc_00005004 to /storage/kkm_last_doc_name [15:34:43]save OK [15:34:43]Clear old archive folders... [15:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=266 [15:34:43]tlvbuf is 011FDC60 [15:34:43]SAM_PROTO_ClearQueue [15:34:43]wFMCommunicate request_size=4 [15:34:43]MH_SAM_APDU [15:34:43]CAPDU: 80 09 00 00 [15:34:43]Write to MH i2c: E2 08 00 EA 05 80 09 00 00 00 00 00 00 61 [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:43]Read from MH i2c: E2 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 03 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 03 00 EA 05 00 90 00 63 [15:34:43]RAPDU: 90 00 [15:34:43]wFMCommunicate OK [15:34:43]SAM_PROTO_ClearQueue done [15:34:43]KKMCreateOFDPacket [15:34:43]OFDProtocolAddRootSTLVToBuf [15:34:43]FM_MakeSignedData [15:34:43]FM_MakeSignedData [15:34:43]SAM_PROTO_SignData [15:34:43]wFMCommunicate request_size=4 [15:34:43]MH_SAM_APDU [15:34:43]CAPDU: 80 0D 01 02 [15:34:43]Write to MH i2c: E2 08 00 EB 05 80 0D 01 02 00 00 00 00 69 [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:43]Read from MH i2c: E2 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 03 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 03 00 EB 05 00 90 00 64 [15:34:43]RAPDU: 90 00 [15:34:43]wFMCommunicate OK [15:34:43]wFMCommunicate request_size=255 [15:34:43]MH_SAM_APDU [15:34:43]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 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 40 00 00 00 F4 03 04 00 93 27 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 [15:34:43]Write to MH i2c: E2 02 01 EC 05 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 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 40 00 00 00 F4 03 04 00 93 27 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 00 00 EB [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:43]Read from MH i2c: E2 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 03 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 03 00 EC 05 00 90 00 65 [15:34:43]RAPDU: 90 00 [15:34:43]wFMCommunicate OK [15:34:43]wFMCommunicate request_size=25 [15:34:43]MH_SAM_APDU [15:34:43]CAPDU: 80 0D 02 02 14 35 39 10 04 04 00 8C 13 00 00 35 04 06 00 DF 7C 6F 83 BA 1E [15:34:43]Write to MH i2c: E2 1C 00 ED 05 80 0D 02 02 14 00 35 39 10 04 04 00 8C 13 00 00 35 04 06 00 DF 7C 6F 83 BA 1E 00 00 1D [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 [15:34:43]MH_I2C_Read... [15:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:43]Read from MH i2c: E2 03 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 03 00 ED 05 00 90 00 66 [15:34:43]RAPDU: 90 00 [15:34:43]wFMCommunicate OK [15:34:43]wFMCommunicate request_size=4 [15:34:43]MH_SAM_APDU [15:34:43]CAPDU: 80 0D 03 02 [15:34:43]Write to MH i2c: E2 08 00 EE 05 80 0D 03 02 00 00 00 00 6E [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:43]Read from MH i2c: E2 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 0B 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 0B 00 EE 05 00 09 C0 00 17 DE BE C7 AA 90 00 5C [15:34:43]RAPDU: 09 C0 00 17 DE BE C7 AA 90 00 [15:34:43]wFMCommunicate OK [15:34:43]SAM_PROTO_SignData done [15:34:43]FM_MakeSignedData done [15:34:43]CreateOFDProtocolMessage [15:34:43]wFMCommunicate request_size=4 [15:34:43]MH_SAM_APDU [15:34:43]CAPDU: 80 11 00 00 [15:34:43]Write to MH i2c: E2 08 00 EF 05 80 11 00 00 00 00 00 00 6E [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:43]Read from MH i2c: E2 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 17 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: E2 17 00 EF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 C3 [15:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [15:34:43]wFMCommunicate OK [15:34:43]CreateOFDProtocolMessage done [15:34:43]OFDSenderStorePacket 5004 [15:34:43]StoreOFDPacket docnum=5004 [15:34:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 1E 01 00 00 6C 6B 16 01 4D 79 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 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 40 00 00 00 F4 03 04 00 93 27 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8C 13 00 00 35 04 06 00 DF 7C 6F 83 BA 1E 09 C0 00 17 DE BE C7 AA [15:34:43]CheckFolder [15:34:43]dirname=/storage/ofd_packets [15:34:43]CheckFolder done [15:34:43]ProducePacketName [15:34:43]name=ofd_packets/00005004 [15:34:43]NVStorageSaveData ofd_packets/00005004 [15:34:43]File name is /storage/ofd_packets/00005004 [15:34:43]Write 316 bytes [15:34:43]NVStorageSaveData done [15:34:43]OFDSenderStorePacket done [15:34:43]KKMCreateOFDPacket done [15:34:43]NVStorageSaveData kkm_last_timestamp [15:34:43]File name is /storage/kkm_last_timestamp [15:34:43]Write 4 bytes [15:34:43]NVStorageSaveData done [15:34:43]ExternCall_PrintAddStr [15:34:43]wPrintStart [15:34:43]Write to MH i2c: 01 00 00 F0 05 F5 [15:34:43]Write i2c OK [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: 01 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: 01 07 00 [15:34:43]MH_I2C_Read... [15:34:43]Read from MH i2c: 01 07 00 F0 05 00 00 00 00 00 FF 0F 0A [15:34:43]RasterBufferAndPrint [15:34:43]line Счет N : (3)141004 [15:34:43]line ИНН: 02508201610067 [15:34:43]line Контрольно-Кассовый Чек [15:34:43]line ПРОДАЖА [15:34:44]line Товар: 4870001570071 [15:34:44]line Напиток Pepsi 1л [15:34:44]line 1.000 * 130.00 [15:34:44]line = 130.00 [15:34:44]line НДС 12% НСП 1% [15:34:44]line > о реализуемом товаре [15:34:44]line ИТОГО: 130.00 [15:34:44]line НСП 1% : 1.15 [15:34:44]line НДС 12% : 13.80 [15:34:44]line Наличными: 130.00 [15:34:44]line Безнал.: 0.00 [15:34:44]line Место: АЗС № 135 "Партнер Нефть" [15:34:44]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [15:34:44]line СНО: Общий режим [15:34:44]line Чек 64 16.05.2024 15:34 [15:34:44]line Смена: 44 ФФД: 1.0 [15:34:44]line ЗНМ: 0300000237 [15:34:44]line РНМ: 0000000000154221 [15:34:44]line Версия ККМ: v1.0 [15:34:44]line ФМ: 0000000000963259 [15:34:44]line ФД: 5004 [15:34:44]line ФПД: 245725539842590 [15:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T153443&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5004&fm=245725539842590&tin=02508201610067®Number=0000000000154221&sum=13000 [15:34:44]line 0 [15:34:44]written 0, free lines is 4095 [15:34:44]OFD Sender: Processing packet 5004 [packets to send 4, broken 3] [15:34:44]ProducePacketName [15:34:44]name=ofd_packets/00005004 [15:34:44]OFD Sender: To server: pG, [15:34:44]CommunicateWithHost lk.salyk.kg:30040 [15:34:44]ConnectInit lk.salyk.kg [15:34:44]Write to MH i2c: 01 00 00 18 06 1E [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: 01 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: 01 07 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 A0 0C D1 [15:34:44]RasterBufferAndPrint [15:34:44]line [15:34:44]line [15:34:44]line [15:34:44]line [15:34:44]line [15:34:44]written 0, free lines is 3238 [15:34:44]MH_Cut [15:34:44]Write to MH i2c: D1 01 00 1F 06 01 F7 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: D1 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: D1 01 00 [15:34:44]MH_I2C_Read... [15:34:44]Read from MH i2c: D1 01 00 1F 06 00 F6 [15:34:44]Write to MH i2c: 01 00 00 20 06 26 [15:34:44]Write i2c OK [15:34:44]MH_I2C_Read... [15:34:45]*** Cut start [15:34:45]*** Partial cut [15:34:45]*** CUTSNS_PIN = 1 [15:34:45]*** CUTSNS_PIN = 0 [15:34:45]Connected sock=9 [15:34:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 1E 01 00 00 6C 6B 16 01 4D 79 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 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 40 00 00 00 F4 03 04 00 93 27 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8C 13 00 00 35 04 06 00 DF 7C 6F 83 BA 1E 09 C0 00 17 DE BE C7 AA [15:34:45]*** Brake cut motor [15:34:46]Read from MH i2c: 01 [15:34:46]MH_I2C_Read... [15:34:46]*** Stop cut motor [15:34:46]*** Cut end [15:34:46]Read from MH i2c: 01 07 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: 01 07 00 20 06 00 00 00 00 00 FF 0F 3B [15:34:46]process_action close_receipt done [15:34:46]requested_data is exist [15:34:46]produce_requested_data [15:34:46]requested_item fm.sn is exist - process it [15:34:46]wFMCommunicate request_size=4 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 11 00 00 [15:34:46]Write to MH i2c: E2 08 00 21 06 80 11 00 00 00 00 00 00 A1 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 17 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 17 00 21 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F6 [15:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [15:34:46]wFMCommunicate OK [15:34:46]requested_item fd.num is exist - process it [15:34:46]SAM_PROTO_GetFieldsCounters [15:34:46]wFMCommunicate request_size=4 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 13 00 00 [15:34:46]Write to MH i2c: E2 08 00 22 06 80 13 00 00 00 00 00 00 A4 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 5B E1 47 00 13 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8C 13 00 00 F4 03 04 00 57 D3 45 66 B6 04 01 00 00 72 6F 5A D0 CF AD 74 9D [15:34:46]CommunicateWithHost err = 0 [15:34:46]CheckOFDResponse [15:34:46]1017 (14) - 77093643461234 [15:34:46]1041 (16) - 0000000000963259 [15:34:46]1040 (4) - 5004 [15:34:46]1012 (4) - 16.05.2024 09:35 [15:34:46]1206 (1) - 0 [15:34:46]OFD Sender: Remove packet 5004 [15:34:46]ProducePacketName [15:34:46]name=ofd_packets/00005004 [15:34:46]NVStorageDeleteData [15:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 62 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 62 00 22 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8C 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [15: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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8C 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:46]wFMCommunicate OK [15:34:46]SAM_PROTO_GetFieldsCounters done [15:34:46]requested_item shift.num is exist - process it [15:34:46]requested_item shift.opened is exist - process it [15:34:46]req_shift_opened [15:34:46]FM_GetShiftState [15:34:46]SAM_PROTO_GetShiftState [15:34:46]wFMCommunicate request_size=4 [15:34:46]MH_SAM_APDU [15:34:46]CAPDU: 80 13 01 00 [15:34:46]Write to MH i2c: E2 08 00 23 06 80 13 01 00 00 00 00 00 A6 [15:34:46]Write i2c OK [15:34:46]MH_I2C_Read... [15:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:46]Read from MH i2c: E2 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 0E 00 [15:34:46]MH_I2C_Read... [15:34:46]Read from MH i2c: E2 0E 00 23 06 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 B2 [15:34:46]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [15:34:46]wFMCommunicate OK [15:34:46]SAM_PROTO_GetShiftState done [15:34:46]FM_GetShiftState done [15:34:46]req_shift_opened done [15:34:46]requested_item shift.open_date is exist - process it [15:34:46]req_shift_open_date [15:34:46]req_shift_open_date done [15:34:46]produce_requested_data done [15:34:46]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5004,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [15:34:46]process_action_free close_receipt [15:34:46]json_value_free [15:34:46]json_value_free done [15:34:46]process_json_proto returns [15:34:46]Send response to host [15:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5004,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [15:34:46]free response buf [15:34:46]execute_script done [15:34:46]execute_script returns [15:34:46]free content buf [15:34:46]Sock 7.Close socket [15:34:46]Sock 7.Thread stoped [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:31]OFD Sender: No OFD packet to send [15:35:36]OFD Sender: No OFD packet to send [15:35:41]OFD Sender: No OFD packet to send [15:35:46]OFD Sender: No OFD packet to send [15:35:51]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:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:22]OFD Sender: No OFD packet to send [15:40:27]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:12]OFD Sender: No OFD packet to send [15:41:17]OFD Sender: No OFD packet to send [15:41:22]OFD Sender: No OFD packet to send [15:41:27]OFD Sender: No OFD packet to send [15:41:32]OFD Sender: No OFD packet to send [15:41:37]OFD Sender: No OFD packet to send [15:41:42]OFD Sender: No OFD packet to send [15:41:47]OFD Sender: No OFD packet to send [15:41:52]OFD Sender: No OFD packet to send [15:41:57]OFD Sender: No OFD packet to send [15:42:02]OFD Sender: No OFD packet to send [15:42:07]OFD Sender: No OFD packet to send [15:42:12]OFD Sender: No OFD packet to send [15:42:17]OFD Sender: No OFD packet to send [15:42:22]OFD Sender: No OFD packet to send [15:42:27]OFD Sender: No OFD packet to send [15:42:32]OFD Sender: No OFD packet to send [15:42:37]OFD Sender: No OFD packet to send [15:42:42]OFD Sender: No OFD packet to send [15:42:47]OFD Sender: No OFD packet to send [15:42:52]OFD Sender: No OFD packet to send [15:42:57]OFD Sender: No OFD packet to send [15:43:02]OFD Sender: No OFD packet to send [15:43:07]OFD Sender: No OFD packet to send [15:43:12]OFD Sender: No OFD packet to send [15:43:17]OFD Sender: No OFD packet to send [15:43:22]OFD Sender: No OFD packet to send [15:43:27]OFD Sender: No OFD packet to send [15:43:32]OFD Sender: No OFD packet to send [15:43:37]OFD Sender: No OFD packet to send [15:43:42]OFD Sender: No OFD packet to send [15:43:47]OFD Sender: No OFD packet to send [15:43:52]OFD Sender: No OFD packet to send [15:43:57]OFD Sender: No OFD packet to send [15:44:02]OFD Sender: No OFD packet to send [15:44:07]OFD Sender: No OFD packet to send [15:44:12]OFD Sender: No OFD packet to send [15:44:17]OFD Sender: No OFD packet to send [15:44:22]OFD Sender: No OFD packet to send [15:44:27]OFD Sender: No OFD packet to send [15:44:32]OFD Sender: No OFD packet to send [15:44:37]OFD Sender: No OFD packet to send [15:44:42]OFD Sender: No OFD packet to send [15:44:47]OFD Sender: No OFD packet to send [15:44:52]OFD Sender: No OFD packet to send [15:44:57]OFD Sender: No OFD packet to send [15:45:02]OFD Sender: No OFD packet to send [15:45:07]OFD Sender: No OFD packet to send [15:45:12]OFD Sender: No OFD packet to send [15:45:17]OFD Sender: No OFD packet to send [15:45:22]OFD Sender: No OFD packet to send [15:45:27]OFD Sender: No OFD packet to send [15:45:32]OFD Sender: No OFD packet to send [15:45:37]OFD Sender: No OFD packet to send [15:45:42]OFD Sender: No OFD packet to send [15:45:47]OFD Sender: No OFD packet to send [15:45:52]OFD Sender: No OFD packet to send [15:45:57]OFD Sender: No OFD packet to send [15:46:02]OFD Sender: No OFD packet to send [15:46:07]OFD Sender: No OFD packet to send [15:46:12]OFD Sender: No OFD packet to send [15:46:17]OFD Sender: No OFD packet to send [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:42]OFD Sender: No OFD packet to send [15:46:47]OFD Sender: No OFD packet to send [15:46:52]OFD Sender: No OFD packet to send [15:46:57]OFD Sender: No OFD packet to send [15:47:02]OFD Sender: No OFD packet to send [15:47:07]OFD Sender: No OFD packet to send [15:47:12]OFD Sender: No OFD packet to send [15:47:17]OFD Sender: No OFD packet to send [15:47:22]OFD Sender: No OFD packet to send [15:47:27]OFD Sender: No OFD packet to send [15:47:32]OFD Sender: No OFD packet to send [15:47:37]OFD Sender: No OFD packet to send [15:47:42]OFD Sender: No OFD packet to send [15:47:47]OFD Sender: No OFD packet to send [15:47:52]OFD Sender: No OFD packet to send [15:47:57]OFD Sender: No OFD packet to send [15:48:02]OFD Sender: No OFD packet to send [15:48:07]OFD Sender: No OFD packet to send [15:48:12]OFD Sender: No OFD packet to send [15:48:17]OFD Sender: No OFD packet to send [15:48:22]OFD Sender: No OFD packet to send [15:48:27]OFD Sender: No OFD packet to send [15:48:32]OFD Sender: No OFD packet to send [15:48:37]OFD Sender: No OFD packet to send [15:48:42]OFD Sender: No OFD packet to send [15:48:47]OFD Sender: No OFD packet to send [15:48:52]OFD Sender: No OFD packet to send [15:48:57]OFD Sender: No OFD packet to send [15:49:02]OFD Sender: No OFD packet to send [15:49:07]OFD Sender: No OFD packet to send [15:49:12]OFD Sender: No OFD packet to send [15:49:17]OFD Sender: No OFD packet to send [15:49:22]OFD Sender: No OFD packet to send [15:49:27]OFD Sender: No OFD packet to send [15:49:32]OFD Sender: No OFD packet to send [15:49:37]OFD Sender: No OFD packet to send [15:49:42]OFD Sender: No OFD packet to send [15:49:47]OFD Sender: No OFD packet to send [15:49:52]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:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:37]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:08]accept exits with 10 [15:58:08]New connection [15:58:08]New thread 3067108708 created [15:58:08]Thread 3067252068 joined [15:58:08]Waiting for new connection... [15:58:08] Sock 10.Parse request [15:58:08]Sock 10.Check first char [15:58:08]Sock 10.First char is OK [15:58:08]request: POST /json_proto HTTP/1.0 [15:58:08]Method: POST [15:58:08]URL: /json_proto [15:58:08]Method is POST - this is cgi request [15:58:08]url: /json_proto [15:58:08]query_string will be loaded in cgi processing [15:58:08]execute_cgi json_proto POST (null) [15:58:08]execute_cgi path=json_proto method=POST [15:58:08]POST find Content-Length [15:58:08]Host: 172.17.44.4:8080 [15:58:08]Content-Length: 976 [15:58:08]Content-Type: application/json [15:58:08] [15:58:08]POST finish read [15:58:08]Found Content-Length = 976 [15:58:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141005", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "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 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:08]execute_script... [15:58:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141005", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "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 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:08]POST & json_proto [15:58:08]process_json_proto [15:58:08]json parsed OK: [15:58:08]protocol is kg_v1.0 [15:58:08]action value=close_receipt [15:58:08]process_action close_receipt [15:58:08]cmd_close_receipt [15:58:08]MH_GetDate [15:58:08]Write to MH i2c: F0 00 00 24 06 19 [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: F0 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: F0 09 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: F0 09 00 24 06 00 11 2D 46 66 6C E9 28 66 EF [15:58:08]GetLastDocTimeStamp 1715873683 [15:58:08]current date 1715875089 [15:58:08]FM_GetShiftState [15:58:08]SAM_PROTO_GetShiftState [15:58:08]wFMCommunicate request_size=4 [15:58:08]MH_SAM_APDU [15:58:08]CAPDU: 80 13 01 00 [15:58:08]Write to MH i2c: E2 08 00 25 06 80 13 01 00 00 00 00 00 A8 [15:58:08]Write i2c OK [15:58:08]MH_I2C_Read... [15:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:08]Read from MH i2c: E2 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 0E 00 [15:58:08]MH_I2C_Read... [15:58:08]Read from MH i2c: E2 0E 00 25 06 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 B4 [15:58:08]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [15:58:08]wFMCommunicate OK [15:58:08]SAM_PROTO_GetShiftState done [15:58:08]FM_GetShiftState done [15:58:08]opened in 1715818246 [15:58:08]opened+sec_in_day 1715904646 [15:58:08]quantity*price = 10000 [15:58:08]sum+1 = 10001 [15:58:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 65 16.05.2024 15:58 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5005 ФПД: 268327792133768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T155809&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5005&fm=268327792133768&tin=02508201610067®Number=0000000000154221&sum=23000 0 [15:58:09]StoreToDocumentArchive [15:58:09]shift 44 fd 5005 [15:58:09]save to /storage/0044/doc_00005005 [15:58:09]save last doc name /storage/0044/doc_00005005 to /storage/kkm_last_doc_name [15:58:09]save OK [15:58:09]Clear old archive folders... [15:58:09]ProcessDocumentItem done err = 0, tmpTLVsize=414 [15:58:09]tlvbuf is 011F2DF0 [15:58:09]SAM_PROTO_ClearQueue [15:58:09]wFMCommunicate request_size=4 [15:58:09]MH_SAM_APDU [15:58:09]CAPDU: 80 09 00 00 [15:58:09]Write to MH i2c: E2 08 00 32 06 80 09 00 00 00 00 00 00 AA [15:58:09]Write i2c OK [15:58:09]MH_I2C_Read... [15:58:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:09]Read from MH i2c: E2 [15:58:09]MH_I2C_Read... [15:58:09]Read from MH i2c: E2 03 00 [15:58:09]MH_I2C_Read... [15:58:09]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [15:58:09]RAPDU: 90 00 [15:58:09]wFMCommunicate OK [15:58:09]SAM_PROTO_ClearQueue done [15:58:09]KKMCreateOFDPacket [15:58:09]OFDProtocolAddRootSTLVToBuf [15:58:09]FM_MakeSignedData [15:58:09]FM_MakeSignedData [15:58:09]SAM_PROTO_SignData [15:58:09]wFMCommunicate request_size=4 [15:58:09]MH_SAM_APDU [15:58:09]CAPDU: 80 0D 01 02 [15:58:09]Write to MH i2c: E2 08 00 33 06 80 0D 01 02 00 00 00 00 B2 [15:58:09]Write i2c OK [15:58:09]MH_I2C_Read... [15:58:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:09]Read from MH i2c: E2 [15:58:09]MH_I2C_Read... [15:58:09]Read from MH i2c: E2 03 00 [15:58:09]MH_I2C_Read... [15:58:09]Read from MH i2c: E2 03 00 33 06 00 90 00 AD [15:58:09]RAPDU: 90 00 [15:58:09]wFMCommunicate OK [15:58:09]wFMCommunicate request_size=255 [15:58:09]MH_SAM_APDU [15:58:09]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 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 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 [15:58:09]Write to MH i2c: E2 02 01 34 06 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 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 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 00 00 71 [15:58:09]Write i2c OK [15:58:09]MH_I2C_Read... [15:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:10]Read from MH i2c: E2 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: E2 03 00 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: E2 03 00 34 06 00 90 00 AE [15:58:10]RAPDU: 90 00 [15:58:10]wFMCommunicate OK [15:58:10]wFMCommunicate request_size=173 [15:58:10]MH_SAM_APDU [15:58:10]CAPDU: 80 0D 02 02 A8 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 41 00 00 00 F4 03 04 00 11 2D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8D 13 00 00 35 04 06 00 F4 0A EE BB C6 88 [15:58:10]Write to MH i2c: E2 B0 00 35 06 80 0D 02 02 A8 00 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 41 00 00 00 F4 03 04 00 11 2D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8D 13 00 00 35 04 06 00 F4 0A EE BB C6 88 00 00 ED [15:58:10]Write i2c OK [15:58:10]MH_I2C_Read... [15:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:10]Read from MH i2c: E2 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: E2 03 00 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: E2 03 00 35 06 00 90 00 AF [15:58:10]RAPDU: 90 00 [15:58:10]wFMCommunicate OK [15:58:10]wFMCommunicate request_size=4 [15:58:10]MH_SAM_APDU [15:58:10]CAPDU: 80 0D 03 02 [15:58:10]Write to MH i2c: E2 08 00 36 06 80 0D 03 02 00 00 00 00 B7 [15:58:10]Write i2c OK [15:58:10]MH_I2C_Read... [15:58:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:10]Read from MH i2c: E2 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: E2 0B 00 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: E2 0B 00 36 06 00 E2 11 6D 9C 0D F2 34 14 90 00 FB [15:58:10]RAPDU: E2 11 6D 9C 0D F2 34 14 90 00 [15:58:10]wFMCommunicate OK [15:58:10]SAM_PROTO_SignData done [15:58:10]FM_MakeSignedData done [15:58:10]CreateOFDProtocolMessage [15:58:10]wFMCommunicate request_size=4 [15:58:10]MH_SAM_APDU [15:58:10]CAPDU: 80 11 00 00 [15:58:10]Write to MH i2c: E2 08 00 37 06 80 11 00 00 00 00 00 00 B7 [15:58:10]Write i2c OK [15:58:10]MH_I2C_Read... [15:58:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:10]Read from MH i2c: E2 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: E2 17 00 [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: E2 17 00 37 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 0C [15:58:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [15:58:10]wFMCommunicate OK [15:58:10]CreateOFDProtocolMessage done [15:58:10]OFDSenderStorePacket 5005 [15:58:10]StoreOFDPacket docnum=5005 [15:58:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 B2 01 00 00 5E 21 AA 01 B8 5C 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 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 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 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 41 00 00 00 F4 03 04 00 11 2D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8D 13 00 00 35 04 06 00 F4 0A EE BB C6 88 E2 11 6D 9C 0D F2 34 14 [15:58:10]CheckFolder [15:58:10]dirname=/storage/ofd_packets [15:58:10]CheckFolder done [15:58:10]ProducePacketName [15:58:10]name=ofd_packets/00005005 [15:58:10]NVStorageSaveData ofd_packets/00005005 [15:58:10]File name is /storage/ofd_packets/00005005 [15:58:10]Write 464 bytes [15:58:10]NVStorageSaveData done [15:58:10]OFDSenderStorePacket done [15:58:10]KKMCreateOFDPacket done [15:58:10]NVStorageSaveData kkm_last_timestamp [15:58:10]File name is /storage/kkm_last_timestamp [15:58:10]Write 4 bytes [15:58:10]NVStorageSaveData done [15:58:10]ExternCall_PrintAddStr [15:58:10]wPrintStart [15:58:10]Write to MH i2c: 01 00 00 38 06 3E [15:58:10]Write i2c OK [15:58:10]MH_I2C_Read... [15:58:10]Read from MH i2c: 01 [15:58:10]MH_I2C_Read... [15:58:10]OFD Sender: Processing packet 5005 [packets to send 4, broken 3] [15:58:10]Read from MH i2c: ProducePacketName [15:58:10]01 name=ofd_packets/00005005 [15:58:10]07 00 OFD Sender: To server: pG, [15:58:10] [15:58:10]MH_I2C_Read... [15:58:10]CommunicateWithHost lk.salyk.kg:30040 [15:58:10]ConnectInit lk.salyk.kg [15:58:10]Read from MH i2c: 01 07 00 38 06 00 00 00 00 00 FF 0F 53 [15:58:10]RasterBufferAndPrint [15:58:10]line Счет N : (3)141005 [15:58:10]line ИНН: 02508201610067 [15:58:10]line Контрольно-Кассовый Чек [15:58:10]line ПРОДАЖА [15:58:10]line Товар: 4870001571030 [15:58:10]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [15:58:10]line 1.000 * 100.00 [15:58:10]line = 100.00 [15:58:10]line НДС 12% НСП 1% [15:58:10]line > о реализуемом товаре [15:58:10]line Товар: 2000036220012 [15:58:10]line Кофе Капучино XL(GABB TRADE) [15:58:10]line 1.000 * 130.00 [15:58:10]line = 130.00 [15:58:10]line НДС 12% НСП 1% [15:58:10]line > о реализуемом товаре [15:58:10]line ИТОГО: 230.00 [15:58:10]line НСП 1% : 2.03 [15:58:10]line НДС 12% : 24.42 [15:58:10]line Наличными: 230.00 [15:58:10]line Безнал.: 0.00 [15:58:10]line Место: АЗС № 135 "Партнер Нефть" [15:58:10]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [15:58:10]line СНО: Общий режим [15:58:10]line Чек 65 16.05.2024 15:58 [15:58:10]line Смена: 44 ФФД: 1.0 [15:58:10]line ЗНМ: 0300000237 [15:58:10]line РНМ: 0000000000154221 [15:58:10]line Версия ККМ: v1.0 [15:58:10]line ФМ: 0000000000963259 [15:58:10]line ФД: 5005 [15:58:10]line ФПД: 268327792133768 [15:58:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T155809&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5005&fm=268327792133768&tin=02508201610067®Number=0000000000154221&sum=23000 [15:58:10]line 0 [15:58:10]written 0, free lines is 4095 [15:58:10]Connected sock=7 [15:58:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 B2 01 00 00 5E 21 AA 01 B8 5C 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 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 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 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 41 00 00 00 F4 03 04 00 11 2D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8D 13 00 00 35 04 06 00 F4 0A EE BB C6 88 E2 11 6D 9C 0D F2 34 14 [15:58:11]Write to MH i2c: 01 00 00 68 06 6E [15:58:11]Write i2c OK [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: 01 [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: 01 07 00 [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: 01 07 00 68 06 00 00 00 00 00 FC 0B 7C [15:58:11]RasterBufferAndPrint [15:58:11]line [15:58:11]line [15:58:11]line [15:58:11]line [15:58:11]line [15:58:11]written 0, free lines is 3072 [15:58:11]MH_Cut [15:58:11]Write to MH i2c: D1 01 00 6F 06 01 47 [15:58:11]Write i2c OK [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: D1 [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: D1 01 00 [15:58:11]MH_I2C_Read... [15:58:11]Read from MH i2c: D1 01 00 6F 06 00 46 [15:58:11]Write to MH i2c: 01 00 00 70 06 76 [15:58:11]Write i2c OK [15:58:11]MH_I2C_Read... [15:58:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 70 09 47 00 C9 A8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8D 13 00 00 F4 03 04 00 D4 D8 45 66 B6 04 01 00 00 99 55 29 96 50 7A D7 00 [15:58:11]CommunicateWithHost err = 0 [15:58:11]CheckOFDResponse [15:58:11]1017 (14) - 77093643461234 [15:58:11]1041 (16) - 0000000000963259 [15:58:11]1040 (4) - 5005 [15:58:11]1012 (4) - 16.05.2024 09:58 [15:58:11]1206 (1) - 0 [15:58:11]OFD Sender: Remove packet 5005 [15:58:11]ProducePacketName [15:58:11]name=ofd_packets/00005005 [15:58:11]NVStorageDeleteData [15:58:11]OFD Sender: No OFD packet to send [15:58:12]*** Cut start [15:58:12]*** Partial cut [15:58:12]*** CUTSNS_PIN = 1 [15:58:12]*** CUTSNS_PIN = 0 [15:58:12]*** Brake cut motor [15:58:13]Read from MH i2c: 01 [15:58:13]MH_I2C_Read... [15:58:13]*** Stop cut motor [15:58:13]*** Cut end [15:58:13]Read from MH i2c: 01 07 00 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: 01 07 00 70 06 00 00 00 00 00 FF 0F 8B [15:58:13]process_action close_receipt done [15:58:13]requested_data is exist [15:58:13]produce_requested_data [15:58:13]requested_item fm.sn is exist - process it [15:58:13]wFMCommunicate request_size=4 [15:58:13]MH_SAM_APDU [15:58:13]CAPDU: 80 11 00 00 [15:58:13]Write to MH i2c: E2 08 00 71 06 80 11 00 00 00 00 00 00 F1 [15:58:13]Write i2c OK [15:58:13]MH_I2C_Read... [15:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:13]Read from MH i2c: E2 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: E2 17 00 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: E2 17 00 71 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 46 [15:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [15:58:13]wFMCommunicate OK [15:58:13]requested_item fd.num is exist - process it [15:58:13]SAM_PROTO_GetFieldsCounters [15:58:13]wFMCommunicate request_size=4 [15:58:13]MH_SAM_APDU [15:58:13]CAPDU: 80 13 00 00 [15:58:13]Write to MH i2c: E2 08 00 72 06 80 13 00 00 00 00 00 00 F4 [15:58:13]Write i2c OK [15:58:13]MH_I2C_Read... [15:58:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:13]Read from MH i2c: E2 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: E2 62 00 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: E2 62 00 72 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8D 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [15:58:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8D 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:13]wFMCommunicate OK [15:58:13]SAM_PROTO_GetFieldsCounters done [15:58:13]requested_item shift.num is exist - process it [15:58:13]requested_item shift.opened is exist - process it [15:58:13]req_shift_opened [15:58:13]FM_GetShiftState [15:58:13]SAM_PROTO_GetShiftState [15:58:13]wFMCommunicate request_size=4 [15:58:13]MH_SAM_APDU [15:58:13]CAPDU: 80 13 01 00 [15:58:13]Write to MH i2c: E2 08 00 73 06 80 13 01 00 00 00 00 00 F6 [15:58:13]Write i2c OK [15:58:13]MH_I2C_Read... [15:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:13]Read from MH i2c: E2 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: E2 0E 00 [15:58:13]MH_I2C_Read... [15:58:13]Read from MH i2c: E2 0E 00 73 06 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 02 [15:58:13]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [15:58:13]wFMCommunicate OK [15:58:13]SAM_PROTO_GetShiftState done [15:58:13]FM_GetShiftState done [15:58:13]req_shift_opened done [15:58:13]requested_item shift.open_date is exist - process it [15:58:13]req_shift_open_date [15:58:13]req_shift_open_date done [15:58:13]produce_requested_data done [15:58:13]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5005,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [15:58:13]process_action_free close_receipt [15:58:13]json_value_free [15:58:13]json_value_free done [15:58:13]process_json_proto returns [15:58:13]Send response to host [15:58:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5005,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [15:58:13]free response buf [15:58:13]execute_script done [15:58:13]execute_script returns [15:58:13]free content buf [15:58:13]Sock 10.Close socket [15:58:13]Sock 10.Thread stoped [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:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]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:45]accept exits with 9 [16:17:45]New connection [16:17:45]New thread 3067252068 created [16:17:45]Thread 3067108708 joined [16:17:45]Waiting for new connection... [16:17:45] Sock 9.Parse request [16:17:45]Sock 9.Check first char [16:17:45]Sock 9.First char is OK [16:17:45]request: POST /json_proto HTTP/1.0 [16:17:45]Method: POST [16:17:45]URL: /json_proto [16:17:45]Method is POST - this is cgi request [16:17:45]url: /json_proto [16:17:45]query_string will be loaded in cgi processing [16:17:45]execute_cgi json_proto POST (null) [16:17:45]execute_cgi path=json_proto method=POST [16:17:45]POST find Content-Length [16:17:45]Host: 172.17.44.4:8080 [16:17:45]Content-Length: 623 [16:17:45]Content-Type: application/json [16:17:45] [16:17:45]POST finish read [16:17:45]Found Content-Length = 623 [16:17:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141006", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 135.00, "quantity" : 3.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" ] } } [16:17:45]execute_script... [16:17: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)141006", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 135.00, "quantity" : 3.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" ] } } [16:17:45]POST & json_proto [16:17:45]process_json_proto [16:17:45]json parsed OK: [16:17:45]protocol is kg_v1.0 [16:17:45]action value=close_receipt [16:17:45]process_action close_receipt [16:17:45]cmd_close_receipt [16:17:45]MH_GetDate [16:17:45]Write to MH i2c: F0 00 00 74 06 69 [16:17:45]Write i2c OK [16:17:45]MH_I2C_Read... [16:17:45]Read from MH i2c: F0 [16:17:45]MH_I2C_Read... [16:17:45]Read from MH i2c: F0 09 00 [16:17:45]MH_I2C_Read... [16:17:45]Read from MH i2c: F0 09 00 74 06 00 AA 31 46 66 6C E9 28 66 DC [16:17:45]GetLastDocTimeStamp 1715875089 [16:17:45]current date 1715876266 [16:17:45]FM_GetShiftState [16:17:45]SAM_PROTO_GetShiftState [16:17:45]wFMCommunicate request_size=4 [16:17:45]MH_SAM_APDU [16:17:45]CAPDU: 80 13 01 00 [16:17:45]Write to MH i2c: E2 08 00 75 06 80 13 01 00 00 00 00 00 F8 [16:17:45]Write i2c OK [16:17:45]MH_I2C_Read... [16:17:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:45]Read from MH i2c: E2 [16:17:45]MH_I2C_Read... [16:17:45]Read from MH i2c: E2 0E 00 [16:17:45]MH_I2C_Read... [16:17:45]Read from MH i2c: E2 0E 00 75 06 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 04 [16:17:45]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [16:17:45]wFMCommunicate OK [16:17:45]SAM_PROTO_GetShiftState done [16:17:45]FM_GetShiftState done [16:17:45]opened in 1715818246 [16:17:45]opened+sec_in_day 1715904646 [16:17:45]quantity*price = 40500 [16:17:45]sum+1 = 40501 [16:17:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 66 16.05.2024 16:17 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5006 ФПД: 154629894379518 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T161746&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5006&fm=154629894379518&tin=02508201610067®Number=0000000000154221&sum=40500 0 [16:17:46]StoreToDocumentArchive [16:17:46]shift 44 fd 5006 [16:17:46]save to /storage/0044/doc_00005006 [16:17:46]save last doc name /storage/0044/doc_00005006 to /storage/kkm_last_doc_name [16:17:46]save OK [16:17:46]Clear old archive folders... [16:17:46]ProcessDocumentItem done err = 0, tmpTLVsize=275 [16:17:46]tlvbuf is 011FDAC0 [16:17:46]SAM_PROTO_ClearQueue [16:17:46]wFMCommunicate request_size=4 [16:17:46]MH_SAM_APDU [16:17:46]CAPDU: 80 09 00 00 [16:17:46]Write to MH i2c: E2 08 00 82 06 80 09 00 00 00 00 00 00 FA [16:17:46]Write i2c OK [16:17:46]MH_I2C_Read... [16:17:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:17:46]Read from MH i2c: E2 [16:17:46]MH_I2C_Read... [16:17:46]Read from MH i2c: E2 03 00 [16:17:46]MH_I2C_Read... [16:17:46]Read from MH i2c: E2 03 00 82 06 00 90 00 FC [16:17:46]RAPDU: 90 00 [16:17:46]wFMCommunicate OK [16:17:46]SAM_PROTO_ClearQueue done [16:17:46]KKMCreateOFDPacket [16:17:46]OFDProtocolAddRootSTLVToBuf [16:17:46]FM_MakeSignedData [16:17:46]FM_MakeSignedData [16:17:46]SAM_PROTO_SignData [16:17:46]wFMCommunicate request_size=4 [16:17:46]MH_SAM_APDU [16:17:46]CAPDU: 80 0D 01 02 [16:17:46]Write to MH i2c: E2 08 00 83 06 80 0D 01 02 00 00 00 00 02 [16:17:46]Write i2c OK [16:17:46]MH_I2C_Read... [16:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:17:46]Read from MH i2c: E2 [16:17:46]MH_I2C_Read... [16:17:46]Read from MH i2c: E2 03 00 [16:17:46]MH_I2C_Read... [16:17:46]Read from MH i2c: E2 03 00 83 06 00 90 00 FD [16:17:46]RAPDU: 90 00 [16:17:46]wFMCommunicate OK [16:17:46]wFMCommunicate request_size=255 [16:17:46]MH_SAM_APDU [16:17:46]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 B8 0B 00 00 00 00 00 37 04 06 00 BC 34 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 42 00 00 00 F4 03 04 00 AA 31 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 [16:17:46]Write to MH i2c: E2 02 01 84 06 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 B8 0B 00 00 00 00 00 37 04 06 00 BC 34 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 42 00 00 00 F4 03 04 00 AA 31 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 00 00 17 [16:17:46]Write i2c OK [16:17:46]MH_I2C_Read... [16:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:47]Read from MH i2c: E2 [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: E2 03 00 [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: E2 03 00 84 06 00 90 00 FE [16:17:47]RAPDU: 90 00 [16:17:47]wFMCommunicate OK [16:17:47]wFMCommunicate request_size=34 [16:17:47]MH_SAM_APDU [16:17:47]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8E 13 00 00 35 04 06 00 8C A2 93 ED 17 FE [16:17:47]Write to MH i2c: E2 25 00 85 06 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8E 13 00 00 35 04 06 00 8C A2 93 ED 17 FE 00 00 2C [16:17:47]Write i2c OK [16:17:47]MH_I2C_Read... [16:17:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:17:47]Read from MH i2c: E2 [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: E2 03 00 [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: E2 03 00 85 06 00 90 00 FF [16:17:47]RAPDU: 90 00 [16:17:47]wFMCommunicate OK [16:17:47]wFMCommunicate request_size=4 [16:17:47]MH_SAM_APDU [16:17:47]CAPDU: 80 0D 03 02 [16:17:47]Write to MH i2c: E2 08 00 86 06 80 0D 03 02 00 00 00 00 07 [16:17:47]Write i2c OK [16:17:47]MH_I2C_Read... [16:17:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:17:47]Read from MH i2c: E2 [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: E2 0B 00 [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: E2 0B 00 86 06 00 38 25 67 35 C0 2C D9 0F 90 00 D5 [16:17:47]RAPDU: 38 25 67 35 C0 2C D9 0F 90 00 [16:17:47]wFMCommunicate OK [16:17:47]SAM_PROTO_SignData done [16:17:47]FM_MakeSignedData done [16:17:47]CreateOFDProtocolMessage [16:17:47]wFMCommunicate request_size=4 [16:17:47]MH_SAM_APDU [16:17:47]CAPDU: 80 11 00 00 [16:17:47]Write to MH i2c: E2 08 00 87 06 80 11 00 00 00 00 00 00 07 [16:17:47]Write i2c OK [16:17:47]MH_I2C_Read... [16:17:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:47]Read from MH i2c: E2 [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: E2 17 00 [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: E2 17 00 87 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 5C [16:17:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [16:17:47]wFMCommunicate OK [16:17:47]CreateOFDProtocolMessage done [16:17:47]OFDSenderStorePacket 5006 [16:17:47]StoreOFDPacket docnum=5006 [16:17:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 27 01 00 00 C7 63 1F 01 81 59 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 B8 0B 00 00 00 00 00 37 04 06 00 BC 34 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 42 00 00 00 F4 03 04 00 AA 31 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8E 13 00 00 35 04 06 00 8C A2 93 ED 17 FE 38 25 67 35 C0 2C D9 0F [16:17:47]CheckFolder [16:17:47]dirname=/storage/ofd_packets [16:17:47]CheckFolder done [16:17:47]ProducePacketName [16:17:47]name=ofd_packets/00005006 [16:17:47]NVStorageSaveData ofd_packets/00005006 [16:17:47]File name is /storage/ofd_packets/00005006 [16:17:47]Write 325 bytes [16:17:47]NVStorageSaveData done [16:17:47]OFDSenderStorePacket done [16:17:47]KKMCreateOFDPacket done [16:17:47]NVStorageSaveData kkm_last_timestamp [16:17:47]File name is /storage/kkm_last_timestamp [16:17:47]Write 4 bytes [16:17:47]NVStorageSaveData done [16:17:47]ExternCall_PrintAddStr [16:17:47]wPrintStart [16:17:47]Write to MH i2c: 01 00 00 88 06 8E [16:17:47]Write i2c OK [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: 01 [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: 01 07 00 [16:17:47]MH_I2C_Read... [16:17:47]Read from MH i2c: 01 07 00 88 06 00 00 00 00 00 FF 0F A3 [16:17:47]RasterBufferAndPrint [16:17:47]line Счет N : (3)141006 [16:17:47]line ИНН: 02508201610067 [16:17:47]line Контрольно-Кассовый Чек [16:17:47]line ПРОДАЖА [16:17:47]line Товар: 48743587 [16:17:47]line Сигареты Winston XStyle Silver [16:17:47]line 3.000 * 135.00 [16:17:47]line = 405.00 [16:17:47]line НДС 12% НСП 1% [16:17:47]line > о реализуемом товаре [16:17:47]line ИТОГО: 405.00 [16:17:47]line НСП 1% : 3.58 [16:17:47]line НДС 12% : 43.01 [16:17:47]line Наличными: 405.00 [16:17:47]line Безнал.: 0.00 [16:17:47]line Место: АЗС № 135 "Партнер Нефть" [16:17:47]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [16:17:47]line СНО: Общий режим [16:17:47]line Чек 66 16.05.2024 16:17 [16:17:47]line Смена: 44 ФФД: 1.0 [16:17:47]line ЗНМ: 0300000237 [16:17:47]line РНМ: 0000000000154221 [16:17:47]line Версия ККМ: v1.0 [16:17:47]line ФМ: 0000000000963259 [16:17:47]line ФД: 5006 [16:17:47]line ФПД: 154629894379518 [16:17:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T161746&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5006&fm=154629894379518&tin=02508201610067®Number=0000000000154221&sum=40500 [16:17:47]line 0 [16:17:47]OFD Sender: Processing packet 5006 [packets to send 4, broken 3] [16:17:47]ProducePacketName [16:17:47]name=ofd_packets/00005006 [16:17:47]OFD Sender: To server: pG, [16:17:47]CommunicateWithHost lk.salyk.kg:30040 [16:17:47]ConnectInit lk.salyk.kg [16:17:47]written 0, free lines is 4095 [16:17:47]Connected sock=10 [16:17:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 27 01 00 00 C7 63 1F 01 81 59 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 B8 0B 00 00 00 00 00 37 04 06 00 BC 34 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 42 00 00 00 F4 03 04 00 AA 31 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8E 13 00 00 35 04 06 00 8C A2 93 ED 17 FE 38 25 67 35 C0 2C D9 0F [16:17:48]Write to MH i2c: 01 00 00 B1 06 B7 [16:17:48]Write i2c OK [16:17:48]MH_I2C_Read... [16:17:48]Read from MH i2c: 01 [16:17:48]MH_I2C_Read... [16:17:48]Read from MH i2c: 01 07 00 [16:17:48]MH_I2C_Read... [16:17:48]Read from MH i2c: 01 07 00 B1 06 00 00 00 00 00 87 0C 51 [16:17:48]RasterBufferAndPrint [16:17:48]line [16:17:48]line [16:17:48]line [16:17:48]line [16:17:48]line [16:17:48]written 0, free lines is 3211 [16:17:48]MH_Cut [16:17:48]Write to MH i2c: D1 01 00 B8 06 01 90 [16:17:48]Write i2c OK [16:17:48]MH_I2C_Read... [16:17:48]Read from MH i2c: D1 [16:17:48]MH_I2C_Read... [16:17:48]Read from MH i2c: D1 01 00 [16:17:48]MH_I2C_Read... [16:17:48]Read from MH i2c: D1 01 00 B8 06 00 8F [16:17:48]Write to MH i2c: 01 00 00 B9 06 BF [16:17:48]Write i2c OK [16:17:48]MH_I2C_Read... [16:17:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 71 7C 47 00 2F 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8E 13 00 00 F4 03 04 00 6D DD 45 66 B6 04 01 00 00 97 EE 36 32 3C F0 C8 2E [16:17:48]CommunicateWithHost err = 0 [16:17:48]CheckOFDResponse [16:17:48]1017 (14) - 77093643461234 [16:17:48]1041 (16) - 0000000000963259 [16:17:48]1040 (4) - 5006 [16:17:48]1012 (4) - 16.05.2024 10:18 [16:17:48]1206 (1) - 0 [16:17:48]OFD Sender: Remove packet 5006 [16:17:48]ProducePacketName [16:17:48]name=ofd_packets/00005006 [16:17:48]NVStorageDeleteData [16:17:48]OFD Sender: No OFD packet to send [16:17:49]*** Cut start [16:17:49]*** Partial cut [16:17:49]*** CUTSNS_PIN = 1 [16:17:49]*** CUTSNS_PIN = 0 [16:17:49]*** Brake cut motor [16:17:49]Read from MH i2c: 01 [16:17:49]MH_I2C_Read... [16:17:49]*** Stop cut motor [16:17:49]*** Cut end [16:17:49]Read from MH i2c: 01 07 00 [16:17:49]MH_I2C_Read... [16:17:49]Read from MH i2c: 01 07 00 B9 06 00 00 00 00 00 FF 0F D4 [16:17:49]process_action close_receipt done [16:17:49]requested_data is exist [16:17:49]produce_requested_data [16:17:49]requested_item fm.sn is exist - process it [16:17:49]wFMCommunicate request_size=4 [16:17:49]MH_SAM_APDU [16:17:49]CAPDU: 80 11 00 00 [16:17:49]Write to MH i2c: E2 08 00 BA 06 80 11 00 00 00 00 00 00 3A [16:17:49]Write i2c OK [16:17:49]MH_I2C_Read... [16:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:17:49]Read from MH i2c: E2 [16:17:49]MH_I2C_Read... [16:17:49]Read from MH i2c: E2 17 00 [16:17:49]MH_I2C_Read... [16:17:49]Read from MH i2c: E2 17 00 BA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 8F [16:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [16:17:49]wFMCommunicate OK [16:17:49]requested_item fd.num is exist - process it [16:17:49]SAM_PROTO_GetFieldsCounters [16:17:49]wFMCommunicate request_size=4 [16:17:49]MH_SAM_APDU [16:17:49]CAPDU: 80 13 00 00 [16:17:49]Write to MH i2c: E2 08 00 BB 06 80 13 00 00 00 00 00 00 3D [16:17:49]Write i2c OK [16:17:49]MH_I2C_Read... [16:17:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:17:49]Read from MH i2c: E2 [16:17:49]MH_I2C_Read... [16:17:49]Read from MH i2c: E2 62 00 [16:17:49]MH_I2C_Read... [16:17:49]Read from MH i2c: E2 62 00 BB 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8E 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [16:17:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8E 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:17:49]wFMCommunicate OK [16:17:49]SAM_PROTO_GetFieldsCounters done [16:17:49]requested_item shift.num is exist - process it [16:17:49]requested_item shift.opened is exist - process it [16:17:49]req_shift_opened [16:17:49]FM_GetShiftState [16:17:49]SAM_PROTO_GetShiftState [16:17:49]wFMCommunicate request_size=4 [16:17:49]MH_SAM_APDU [16:17:49]CAPDU: 80 13 01 00 [16:17:49]Write to MH i2c: E2 08 00 BC 06 80 13 01 00 00 00 00 00 3F [16:17:49]Write i2c OK [16:17:49]MH_I2C_Read... [16:17:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:17:50]Read from MH i2c: E2 [16:17:50]MH_I2C_Read... [16:17:50]Read from MH i2c: E2 0E 00 [16:17:50]MH_I2C_Read... [16:17:50]Read from MH i2c: E2 0E 00 BC 06 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 4B [16:17:50]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [16:17:50]wFMCommunicate OK [16:17:50]SAM_PROTO_GetShiftState done [16:17:50]FM_GetShiftState done [16:17:50]req_shift_opened done [16:17:50]requested_item shift.open_date is exist - process it [16:17:50]req_shift_open_date [16:17:50]req_shift_open_date done [16:17:50]produce_requested_data done [16:17:50]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5006,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [16:17:50]process_action_free close_receipt [16:17:50]json_value_free [16:17:50]json_value_free done [16:17:50]process_json_proto returns [16:17:50]Send response to host [16:17:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5006,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [16:17:50]free response buf [16:17:50]execute_script done [16:17:50]execute_script returns [16:17:50]free content buf [16:17:50]Sock 9.Close socket [16:17:50]Sock 9.Thread stoped [16:17:53]OFD Sender: No OFD packet to send [16:17:58]OFD Sender: No OFD packet to send [16:18:03]OFD Sender: No OFD packet to send [16:18:08]OFD Sender: No OFD packet to send [16:18:13]OFD Sender: No OFD packet to send [16:18:18]OFD Sender: No OFD packet to send [16:18:23]OFD Sender: No OFD packet to send [16:18:28]OFD Sender: No OFD packet to send [16:18:33]OFD Sender: No OFD packet to send [16:18:38]OFD Sender: No OFD packet to send [16:18:43]OFD Sender: No OFD packet to send [16:18:48]OFD Sender: No OFD packet to send [16:18:53]OFD Sender: No OFD packet to send [16:18:58]OFD Sender: No OFD packet to send [16:19:03]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:38]OFD Sender: No OFD packet to send [16:20:43]OFD Sender: No OFD packet to send [16:20:48]OFD Sender: No OFD packet to send [16:20:53]OFD Sender: No OFD packet to send [16:20:58]OFD Sender: No OFD packet to send [16:21:03]OFD Sender: No OFD packet to send [16:21:08]OFD Sender: No OFD packet to send [16:21:13]OFD Sender: No OFD packet to send [16:21:18]OFD Sender: No OFD packet to send [16:21:23]OFD Sender: No OFD packet to send [16:21:28]OFD Sender: No OFD packet to send [16:21:33]OFD Sender: No OFD packet to send [16:21:38]OFD Sender: No OFD packet to send [16:21:43]OFD Sender: No OFD packet to send [16:21:48]OFD Sender: No OFD packet to send [16:21:53]OFD Sender: No OFD packet to send [16:21:58]OFD Sender: No OFD packet to send [16:22:03]OFD Sender: No OFD packet to send [16:22:08]OFD Sender: No OFD packet to send [16:22:13]OFD Sender: No OFD packet to send [16:22:18]OFD Sender: No OFD packet to send [16:22:23]OFD Sender: No OFD packet to send [16:22:28]OFD Sender: No OFD packet to send [16:22:33]OFD Sender: No OFD packet to send [16:22:38]OFD Sender: No OFD packet to send [16:22:43]OFD Sender: No OFD packet to send [16:22:48]OFD Sender: No OFD packet to send [16:22:53]OFD Sender: No OFD packet to send [16:22:58]OFD Sender: No OFD packet to send [16:23:03]OFD Sender: No OFD packet to send [16:23:08]OFD Sender: No OFD packet to send [16:23:13]OFD Sender: No OFD packet to send [16:23:18]OFD Sender: No OFD packet to send [16:23:23]OFD Sender: No OFD packet to send [16:23:28]OFD Sender: No OFD packet to send [16:23:33]OFD Sender: No OFD packet to send [16:23:38]OFD Sender: No OFD packet to send [16:23:43]OFD Sender: No OFD packet to send [16:23:48]OFD Sender: No OFD packet to send [16:23:53]OFD Sender: No OFD packet to send [16:23:58]OFD Sender: No OFD packet to send [16:24:01]accept exits with 7 [16:24:01]New connection [16:24:01]New thread 3067108708 created [16:24:01]Thread 3067252068 joined [16:24:01]Waiting for new connection... [16:24:01] Sock 7.Parse request [16:24:01]Sock 7.Check first char [16:24:01]Sock 7.First char is OK [16:24:01]request: POST /json_proto HTTP/1.0 [16:24:01]Method: POST [16:24:01]URL: /json_proto [16:24:01]Method is POST - this is cgi request [16:24:01]url: /json_proto [16:24:01]query_string will be loaded in cgi processing [16:24:01]execute_cgi json_proto POST (null) [16:24:01]execute_cgi path=json_proto method=POST [16:24:01]POST find Content-Length [16:24:01]Host: 172.17.44.4:8080 [16:24:01]Content-Length: 1288 [16:24:01]Content-Type: application/json [16:24:01] [16:24:01]POST finish read [16:24:01]Found Content-Length = 1288 [16:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141007", "tax_sys" : 0, "items" : [ { "code": "46156686", "name": "\u041A\u043E\u043D\u0444 Fruit-tella \u0441\u0442\u0438\u043A \u043A\u043B\u0443\u0431\u043D\u0438\u0447\u043D\u044B\u0439 \u0439\u043E\u0433\u0443\u0440\u0442", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338007724", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E,\u0432\u0438\u0448\u043D\u044F 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:01]execute_script... [16:24: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)141007", "tax_sys" : 0, "items" : [ { "code": "46156686", "name": "\u041A\u043E\u043D\u0444 Fruit-tella \u0441\u0442\u0438\u043A \u043A\u043B\u0443\u0431\u043D\u0438\u0447\u043D\u044B\u0439 \u0439\u043E\u0433\u0443\u0440\u0442", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4600338007724", "name": "\u0421\u043E\u043A \u0424\u0440\u0443\u0442\u043E \u041D\u042F\u041D\u042F \u044F\u0431\u043B\u043E\u043A\u043E,\u0432\u0438\u0448\u043D\u044F 0,2\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "3800020453407", "name": "Nestle KIT-KAT \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A chunky 36x40\u0433", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:24:01]POST & json_proto [16:24:01]process_json_proto [16:24:01]json parsed OK: [16:24:01]protocol is kg_v1.0 [16:24:01]action value=close_receipt [16:24:01]process_action close_receipt [16:24:01]cmd_close_receipt [16:24:01]MH_GetDate [16:24:01]Write to MH i2c: F0 00 00 BD 06 B2 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: F0 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: F0 09 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: F0 09 00 BD 06 00 22 33 46 66 6C E9 28 66 9F [16:24:01]GetLastDocTimeStamp 1715876266 [16:24:01]current date 1715876642 [16:24:01]FM_GetShiftState [16:24:01]SAM_PROTO_GetShiftState [16:24:01]wFMCommunicate request_size=4 [16:24:01]MH_SAM_APDU [16:24:01]CAPDU: 80 13 01 00 [16:24:01]Write to MH i2c: E2 08 00 BE 06 80 13 01 00 00 00 00 00 41 [16:24:01]Write i2c OK [16:24:01]MH_I2C_Read... [16:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:01]Read from MH i2c: E2 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 0E 00 [16:24:01]MH_I2C_Read... [16:24:01]Read from MH i2c: E2 0E 00 BE 06 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 4D [16:24:01]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [16:24:01]wFMCommunicate OK [16:24:01]SAM_PROTO_GetShiftState done [16:24:01]FM_GetShiftState done [16:24:01]opened in 1715818246 [16:24:01]opened+sec_in_day 1715904646 [16:24:01]quantity*price = 7500 [16:24:01]sum+1 = 7501 [16:24:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4600338007724 Сок Фруто НЯНЯ яблоко,вишня 0,2л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 3800020453407 Nestle KIT-KAT батончик chunky 36x40г 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.94 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 67 16.05.2024 16:24 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5007 ФПД: 200768891803477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T162402&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5007&fm=200768891803477&tin=02508201610067®Number=0000000000154221&sum=22000 0 [16:24:02]StoreToDocumentArchive [16:24:02]shift 44 fd 5007 [16:24:02]save to /storage/0044/doc_00005007 [16:24:02]save last doc name /storage/0044/doc_00005007 to /storage/kkm_last_doc_name [16:24:02]save OK [16:24:02]Clear old archive folders... [16:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=546 [16:24:02]tlvbuf is 01174B70 [16:24:02]SAM_PROTO_ClearQueue [16:24:02]wFMCommunicate request_size=4 [16:24:02]MH_SAM_APDU [16:24:02]CAPDU: 80 09 00 00 [16:24:02]Write to MH i2c: E2 08 00 CB 06 80 09 00 00 00 00 00 00 43 [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:24:02]Read from MH i2c: E2 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 CB 06 00 90 00 45 [16:24:02]RAPDU: 90 00 [16:24:02]wFMCommunicate OK [16:24:02]SAM_PROTO_ClearQueue done [16:24:02]KKMCreateOFDPacket [16:24:02]OFDProtocolAddRootSTLVToBuf [16:24:02]FM_MakeSignedData [16:24:02]FM_MakeSignedData [16:24:02]SAM_PROTO_SignData [16:24:02]wFMCommunicate request_size=4 [16:24:02]MH_SAM_APDU [16:24:02]CAPDU: 80 0D 01 02 [16:24:02]Write to MH i2c: E2 08 00 CC 06 80 0D 01 02 00 00 00 00 4B [16:24:02]Write i2c OK [16:24:02]MH_I2C_Read... [16:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:24:02]Read from MH i2c: E2 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 [16:24:02]MH_I2C_Read... [16:24:02]Read from MH i2c: E2 03 00 CC 06 00 90 00 46 [16:24:02]RAPDU: 90 00 [16:24:02]wFMCommunicate OK [16:24:02]wFMCommunicate request_size=255 [16:24:02]MH_SAM_APDU [16:24:02]CAPDU: 80 0D 02 02 FA 03 00 22 02 1E 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 35 36 36 38 36 06 04 3F 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D1 8B D0 B9 20 D0 B9 D0 BE D0 B3 D1 83 D1 80 D1 82 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 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 37 32 34 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 2C D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 [16:24:03]Write to MH i2c: E2 02 01 CD 06 80 0D 02 02 FA 00 03 00 22 02 1E 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 35 36 36 38 36 06 04 3F 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D1 8B D0 B9 20 D0 B9 D0 BE D0 B3 D1 83 D1 80 D1 82 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 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 37 32 34 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 2C D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 3A [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:03]Read from MH i2c: E2 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 03 00 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 03 00 CD 06 00 90 00 47 [16:24:03]RAPDU: 90 00 [16:24:03]wFMCommunicate OK [16:24:03]wFMCommunicate request_size=255 [16:24:03]MH_SAM_APDU [16:24:03]CAPDU: 80 0D 02 02 FA 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 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 22 33 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [16:24:03]Write to MH i2c: E2 02 01 CE 06 80 0D 02 02 FA 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 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 22 33 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 04 [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:03]Read from MH i2c: E2 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 03 00 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 03 00 CE 06 00 90 00 48 [16:24:03]RAPDU: 90 00 [16:24:03]wFMCommunicate OK [16:24:03]wFMCommunicate request_size=55 [16:24:03]MH_SAM_APDU [16:24:03]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8F 13 00 00 35 04 06 00 B6 99 26 7A 57 55 [16:24:03]Write to MH i2c: E2 3A 00 CF 06 80 0D 02 02 32 00 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8F 13 00 00 35 04 06 00 B6 99 26 7A 57 55 00 00 DD [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:24:03]Read from MH i2c: E2 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 03 00 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 03 00 CF 06 00 90 00 49 [16:24:03]RAPDU: 90 00 [16:24:03]wFMCommunicate OK [16:24:03]wFMCommunicate request_size=4 [16:24:03]MH_SAM_APDU [16:24:03]CAPDU: 80 0D 03 02 [16:24:03]Write to MH i2c: E2 08 00 D0 06 80 0D 03 02 00 00 00 00 51 [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:03]OFD Sender: No OFD packet to send [16:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:24:03]Read from MH i2c: E2 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 0B 00 [16:24:03]MH_I2C_Read... [16:24:03]Read from MH i2c: E2 0B 00 D0 06 00 63 4B 11 2D F5 23 E1 87 90 00 BE [16:24:03]RAPDU: 63 4B 11 2D F5 23 E1 87 90 00 [16:24:03]wFMCommunicate OK [16:24:03]SAM_PROTO_SignData done [16:24:03]FM_MakeSignedData done [16:24:03]CreateOFDProtocolMessage [16:24:03]wFMCommunicate request_size=4 [16:24:03]MH_SAM_APDU [16:24:03]CAPDU: 80 11 00 00 [16:24:03]Write to MH i2c: E2 08 00 D1 06 80 11 00 00 00 00 00 00 51 [16:24:03]Write i2c OK [16:24:03]MH_I2C_Read... [16:24:04]Read from MH i2c: E2 [16:24:04]MH_I2C_Read... [16:24:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:04]Read from MH i2c: E2 17 00 [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: E2 17 00 D1 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A6 [16:24:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [16:24:04]wFMCommunicate OK [16:24:04]CreateOFDProtocolMessage done [16:24:04]OFDSenderStorePacket 5007 [16:24:04]StoreOFDPacket docnum=5007 [16:24:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 36 02 00 00 C6 E5 2E 02 26 89 5A 03 01 00 03 00 22 02 1E 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 35 36 36 38 36 06 04 3F 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D1 8B D0 B9 20 D0 B9 D0 BE D0 B3 D1 83 D1 80 D1 82 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 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 37 32 34 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 2C D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 22 33 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8F 13 00 00 35 04 06 00 B6 99 26 7A 57 55 63 4B 11 2D F5 23 E1 87 [16:24:04]CheckFolder [16:24:04]dirname=/storage/ofd_packets [16:24:04]CheckFolder done [16:24:04]ProducePacketName [16:24:04]name=ofd_packets/00005007 [16:24:04]NVStorageSaveData ofd_packets/00005007 [16:24:04]File name is /storage/ofd_packets/00005007 [16:24:04]Write 596 bytes [16:24:04]NVStorageSaveData done [16:24:04]OFDSenderStorePacket done [16:24:04]KKMCreateOFDPacket done [16:24:04]NVStorageSaveData kkm_last_timestamp [16:24:04]File name is /storage/kkm_last_timestamp [16:24:04]Write 4 bytes [16:24:04]NVStorageSaveData done [16:24:04]ExternCall_PrintAddStr [16:24:04]wPrintStart [16:24:04]Write to MH i2c: 01 00 00 D2 06 D8 [16:24:04]Write i2c OK [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: 01 [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: 01 07 00 [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: 01 07 00 D2 06 00 00 00 00 00 FF 0F ED [16:24:04]RasterBufferAndPrint [16:24:04]line Счет N : (3)141007 [16:24:04]line ИНН: 02508201610067 [16:24:04]line Контрольно-Кассовый Чек [16:24:04]line ПРОДАЖА [16:24:04]line Товар: 46156686 [16:24:04]line Конф Fruit-tella стик клубничный йогурт [16:24:04]line 1.000 * 75.00 [16:24:04]line = 75.00 [16:24:04]line НДС 12% НСП 1% [16:24:04]line > о реализуемом товаре [16:24:04]line Товар: 4600338007724 [16:24:04]line Сок Фруто НЯНЯ яблоко,вишня 0,2л [16:24:04]line 1.000 * 65.00 [16:24:04]line = 65.00 [16:24:04]line НДС 12% НСП 1% [16:24:04]line > о реализуемом товаре [16:24:04]line Товар: 3800020453407 [16:24:04]line Nestle KIT-KAT батончик chunky 36x40г [16:24:04]line 1.000 * 80.00 [16:24:04]line = 80.00 [16:24:04]line НДС 12% НСП 1% [16:24:04]line > о реализуемом товаре [16:24:04]line ИТОГО: 220.00 [16:24:04]line НСП 1% : 1.94 [16:24:04]line НДС 12% : 23.36 [16:24:04]line Наличными: 220.00 [16:24:04]line Безнал.: 0.00 [16:24:04]line Место: АЗС № 135 "Партнер Нефть" [16:24:04]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [16:24:04]line СНО: Общий режим [16:24:04]line Чек 67 16.05.2024 16:24 [16:24:04]line Смена: 44 ФФД: 1.0 [16:24:04]line ЗНМ: 0300000237 [16:24:04]line РНМ: 0000000000154221 [16:24:04]line Версия ККМ: v1.0 [16:24:04]line ФМ: 0000000000963259 [16:24:04]line ФД: 5007 [16:24:04]line ФПД: 200768891803477 [16:24:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T162402&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5007&fm=200768891803477&tin=02508201610067®Number=0000000000154221&sum=22000 [16:24:04]line 0 [16:24:04]written 0, free lines is 4095 [16:24:04]OFD Sender: Processing packet 5007 [packets to send 4, broken 3] [16:24:04]ProducePacketName [16:24:04]name=ofd_packets/00005007 [16:24:04]OFD Sender: To server: pG, [16:24:04]CommunicateWithHost lk.salyk.kg:30040 [16:24:04]ConnectInit lk.salyk.kg [16:24:04]Connected sock=10 [16:24:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 36 02 00 00 C6 E5 2E 02 26 89 5A 03 01 00 03 00 22 02 1E 04 01 00 01 23 04 7E 00 8A 04 08 00 34 36 31 35 36 36 38 36 06 04 3F 00 D0 9A D0 BE D0 BD D1 84 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D1 81 D1 82 D0 B8 D0 BA 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D1 87 D0 BD D1 8B D0 B9 20 D0 B9 D0 BE D0 B3 D1 83 D1 80 D1 82 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 7C 00 8A 04 0D 00 34 36 30 30 33 33 38 30 30 37 37 32 34 06 04 38 00 D0 A1 D0 BE D0 BA 20 D0 A4 D1 80 D1 83 D1 82 D0 BE 20 D0 9D D0 AF D0 9D D0 AF 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 2C D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 33 38 30 30 30 32 30 34 35 33 34 30 37 06 04 2E 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 63 68 75 6E 6B 79 20 33 36 78 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 22 33 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 8F 13 00 00 35 04 06 00 B6 99 26 7A 57 55 63 4B 11 2D F5 23 E1 87 [16:24:04]Write to MH i2c: 01 00 00 09 07 10 [16:24:04]Write i2c OK [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: 01 [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: 01 07 00 [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: 01 07 00 09 07 00 00 00 00 00 63 0B 85 [16:24:04]RasterBufferAndPrint [16:24:04]line [16:24:04]line [16:24:04]line [16:24:04]line [16:24:04]line [16:24:04]written 0, free lines is 2920 [16:24:04]MH_Cut [16:24:04]Write to MH i2c: D1 01 00 10 07 01 E9 [16:24:04]Write i2c OK [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: D1 [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: D1 01 00 [16:24:04]MH_I2C_Read... [16:24:04]Read from MH i2c: D1 01 00 10 07 00 E8 [16:24:04]Write to MH i2c: 01 00 00 11 07 18 [16:24:04]Write i2c OK [16:24:04]MH_I2C_Read... [16:24:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 69 58 47 00 87 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 33 32 35 39 10 04 04 00 8F 13 00 00 F4 03 04 00 E6 DE 45 66 B6 04 01 00 00 83 BC 16 23 14 FE 6A 58 [16:24:05]CommunicateWithHost err = 0 [16:24:05]CheckOFDResponse [16:24:05]1017 (14) - 77093643461234 [16:24:05]1041 (16) - 0000000000963259 [16:24:05]1040 (4) - 5007 [16:24:05]1012 (4) - 16.05.2024 10:24 [16:24:05]1206 (1) - 0 [16:24:05]OFD Sender: Remove packet 5007 [16:24:05]ProducePacketName [16:24:05]name=ofd_packets/00005007 [16:24:05]NVStorageDeleteData [16:24:05]OFD Sender: No OFD packet to send [16:24:06]*** Cut start [16:24:06]*** Partial cut [16:24:06]*** CUTSNS_PIN = 1 [16:24:06]*** CUTSNS_PIN = 0 [16:24:06]*** Brake cut motor [16:24:06]Read from MH i2c: 01 [16:24:06]MH_I2C_Read... [16:24:06]*** Stop cut motor [16:24:06]*** Cut end [16:24:06]Read from MH i2c: 01 07 00 [16:24:06]MH_I2C_Read... [16:24:06]Read from MH i2c: 01 07 00 11 07 00 00 00 00 00 FF 0F 2D [16:24:06]process_action close_receipt done [16:24:06]requested_data is exist [16:24:06]produce_requested_data [16:24:06]requested_item fm.sn is exist - process it [16:24:06]wFMCommunicate request_size=4 [16:24:06]MH_SAM_APDU [16:24:06]CAPDU: 80 11 00 00 [16:24:06]Write to MH i2c: E2 08 00 12 07 80 11 00 00 00 00 00 00 93 [16:24:06]Write i2c OK [16:24:06]MH_I2C_Read... [16:24:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:24:07]Read from MH i2c: E2 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 17 00 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 17 00 12 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 E8 [16:24:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [16:24:07]wFMCommunicate OK [16:24:07]requested_item fd.num is exist - process it [16:24:07]SAM_PROTO_GetFieldsCounters [16:24:07]wFMCommunicate request_size=4 [16:24:07]MH_SAM_APDU [16:24:07]CAPDU: 80 13 00 00 [16:24:07]Write to MH i2c: E2 08 00 13 07 80 13 00 00 00 00 00 00 96 [16:24:07]Write i2c OK [16:24:07]MH_I2C_Read... [16:24:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:24:07]Read from MH i2c: E2 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 62 00 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 62 00 13 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8F 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [16:24:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 8F 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:24:07]wFMCommunicate OK [16:24:07]SAM_PROTO_GetFieldsCounters done [16:24:07]requested_item shift.num is exist - process it [16:24:07]requested_item shift.opened is exist - process it [16:24:07]req_shift_opened [16:24:07]FM_GetShiftState [16:24:07]SAM_PROTO_GetShiftState [16:24:07]wFMCommunicate request_size=4 [16:24:07]MH_SAM_APDU [16:24:07]CAPDU: 80 13 01 00 [16:24:07]Write to MH i2c: E2 08 00 14 07 80 13 01 00 00 00 00 00 98 [16:24:07]Write i2c OK [16:24:07]MH_I2C_Read... [16:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:24:07]Read from MH i2c: E2 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 0E 00 [16:24:07]MH_I2C_Read... [16:24:07]Read from MH i2c: E2 0E 00 14 07 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A4 [16:24:07]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [16:24:07]wFMCommunicate OK [16:24:07]SAM_PROTO_GetShiftState done [16:24:07]FM_GetShiftState done [16:24:07]req_shift_opened done [16:24:07]requested_item shift.open_date is exist - process it [16:24:07]req_shift_open_date [16:24:07]req_shift_open_date done [16:24:07]produce_requested_data done [16:24:07]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5007,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [16:24:07]process_action_free close_receipt [16:24:07]json_value_free [16:24:07]json_value_free done [16:24:07]process_json_proto returns [16:24:07]Send response to host [16:24:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5007,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [16:24:07]free response buf [16:24:07]execute_script done [16:24:07]execute_script returns [16:24:07]free content buf [16:24:07]Sock 7.Close socket [16:24:07]Sock 7.Thread stoped [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [16:25:10]OFD Sender: No OFD packet to send [16:25:15]OFD Sender: No OFD packet to send [16:25:20]OFD Sender: No OFD packet to send [16:25:25]OFD Sender: No OFD packet to send [16:25:30]OFD Sender: No OFD packet to send [16:25:35]OFD Sender: No OFD packet to send [16:25:40]OFD Sender: No OFD packet to send [16:25:45]OFD Sender: No OFD packet to send [16:25:50]OFD Sender: No OFD packet to send [16:25:55]OFD Sender: No OFD packet to send [16:26:00]OFD Sender: No OFD packet to send [16:26:05]OFD Sender: No OFD packet to send [16:26:10]OFD Sender: No OFD packet to send [16:26:15]OFD Sender: No OFD packet to send [16:26:20]OFD Sender: No OFD packet to send [16:26:25]OFD Sender: No OFD packet to send [16:26:30]OFD Sender: No OFD packet to send [16:26:35]OFD Sender: No OFD packet to send [16:26:40]OFD Sender: No OFD packet to send [16:26:45]OFD Sender: No OFD packet to send [16:26:50]OFD Sender: No OFD packet to send [16:26:55]OFD Sender: No OFD packet to send [16:27:00]OFD Sender: No OFD packet to send [16:27:05]OFD Sender: No OFD packet to send [16:27:10]OFD Sender: No OFD packet to send [16:27:15]OFD Sender: No OFD packet to send [16:27:20]OFD Sender: No OFD packet to send [16:27:25]OFD Sender: No OFD packet to send [16:27:30]OFD Sender: No OFD packet to send [16:27:35]OFD Sender: No OFD packet to send [16:27:40]OFD Sender: No OFD packet to send [16:27:45]OFD Sender: No OFD packet to send [16:27:50]OFD Sender: No OFD packet to send [16:27:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]accept exits with 9 [16:32:00]New connection [16:32:00]New thread 3067252068 created [16:32:00]Thread 3067108708 joined [16:32:00]Waiting for new connection... [16:32:00] Sock 9.Parse request [16:32:00]Sock 9.Check first char [16:32:00]Sock 9.First char is OK [16:32:00]request: POST /json_proto HTTP/1.0 [16:32:00]Method: POST [16:32:00]URL: /json_proto [16:32:00]Method is POST - this is cgi request [16:32:00]url: /json_proto [16:32:00]query_string will be loaded in cgi processing [16:32:00]execute_cgi json_proto POST (null) [16:32:00]execute_cgi path=json_proto method=POST [16:32:00]POST find Content-Length [16:32:00]Host: 172.17.44.4:8080 [16:32:00]Content-Length: 657 [16:32:00]Content-Type: application/json [16:32:00] [16:32:00]POST finish read [16:32:00]Found Content-Length = 657 [16:32:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141008", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 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" ] } } [16:32:00]execute_script... [16:32: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)141008", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 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" ] } } [16:32:00]POST & json_proto [16:32:00]process_json_proto [16:32:00]json parsed OK: [16:32:00]protocol is kg_v1.0 [16:32:00]action value=close_receipt [16:32:00]process_action close_receipt [16:32:00]cmd_close_receipt [16:32:00]MH_GetDate [16:32:00]Write to MH i2c: F0 00 00 15 07 0B [16:32:00]Write i2c OK [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: F0 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: F0 09 00 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: F0 09 00 15 07 00 01 35 46 66 6C E9 28 66 D9 [16:32:00]GetLastDocTimeStamp 1715876642 [16:32:00]current date 1715877121 [16:32:00]FM_GetShiftState [16:32:00]SAM_PROTO_GetShiftState [16:32:00]wFMCommunicate request_size=4 [16:32:00]MH_SAM_APDU [16:32:00]CAPDU: 80 13 01 00 [16:32:00]Write to MH i2c: E2 08 00 16 07 80 13 01 00 00 00 00 00 9A [16:32:00]Write i2c OK [16:32:00]MH_I2C_Read... [16:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:00]Read from MH i2c: E2 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: E2 0E 00 [16:32:00]MH_I2C_Read... [16:32:00]Read from MH i2c: E2 0E 00 16 07 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A6 [16:32:00]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [16:32:00]wFMCommunicate OK [16:32:00]SAM_PROTO_GetShiftState done [16:32:00]FM_GetShiftState done [16:32:00]opened in 1715818246 [16:32:00]opened+sec_in_day 1715904646 [16:32:00]quantity*price = 9500 [16:32:00]sum+1 = 9501 [16:32:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 68 16.05.2024 16:32 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5008 ФПД: 53521577261582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T163201&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5008&fm=53521577261582&tin=02508201610067®Number=0000000000154221&sum=9500 0 [16:32:01]StoreToDocumentArchive [16:32:01]shift 44 fd 5008 [16:32:01]save to /storage/0044/doc_00005008 [16:32:01]save last doc name /storage/0044/doc_00005008 to /storage/kkm_last_doc_name [16:32:01]save OK [16:32:01]Clear old archive folders... [16:32:01]ProcessDocumentItem done err = 0, tmpTLVsize=288 [16:32:01]tlvbuf is 011F2870 [16:32:01]SAM_PROTO_ClearQueue [16:32:01]wFMCommunicate request_size=4 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 09 00 00 [16:32:01]Write to MH i2c: E2 08 00 23 07 80 09 00 00 00 00 00 00 9C [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 23 07 00 90 00 9E [16:32:01]RAPDU: 90 00 [16:32:01]wFMCommunicate OK [16:32:01]SAM_PROTO_ClearQueue done [16:32:01]KKMCreateOFDPacket [16:32:01]OFDProtocolAddRootSTLVToBuf [16:32:01]FM_MakeSignedData [16:32:01]FM_MakeSignedData [16:32:01]SAM_PROTO_SignData [16:32:01]wFMCommunicate request_size=4 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 0D 01 02 [16:32:01]Write to MH i2c: E2 08 00 24 07 80 0D 01 02 00 00 00 00 A4 [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 24 07 00 90 00 9F [16:32:01]RAPDU: 90 00 [16:32:01]wFMCommunicate OK [16:32:01]wFMCommunicate request_size=255 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 44 00 00 00 F4 03 04 00 01 35 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 [16:32:01]Write to MH i2c: E2 02 01 25 07 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 44 00 00 00 F4 03 04 00 01 35 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 00 00 DE [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 25 07 00 90 00 A0 [16:32:01]RAPDU: 90 00 [16:32:01]wFMCommunicate OK [16:32:01]wFMCommunicate request_size=47 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 0D 02 02 2A 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 90 13 00 00 35 04 06 00 30 AD 76 99 BA 0E [16:32:01]Write to MH i2c: E2 32 00 26 07 80 0D 02 02 2A 00 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 90 13 00 00 35 04 06 00 30 AD 76 99 BA 0E 00 00 B9 [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:01]Read from MH i2c: E2 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 [16:32:01]MH_I2C_Read... [16:32:01]Read from MH i2c: E2 03 00 26 07 00 90 00 A1 [16:32:01]RAPDU: 90 00 [16:32:01]wFMCommunicate OK [16:32:01]wFMCommunicate request_size=4 [16:32:01]MH_SAM_APDU [16:32:01]CAPDU: 80 0D 03 02 [16:32:01]Write to MH i2c: E2 08 00 27 07 80 0D 03 02 00 00 00 00 A9 [16:32:01]Write i2c OK [16:32:01]MH_I2C_Read... [16:32:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:02]Read from MH i2c: E2 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 0B 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 0B 00 27 07 00 14 F1 5D 69 1C 9A E5 1C 90 00 2C [16:32:02]RAPDU: 14 F1 5D 69 1C 9A E5 1C 90 00 [16:32:02]wFMCommunicate OK [16:32:02]SAM_PROTO_SignData done [16:32:02]FM_MakeSignedData done [16:32:02]CreateOFDProtocolMessage [16:32:02]wFMCommunicate request_size=4 [16:32:02]MH_SAM_APDU [16:32:02]CAPDU: 80 11 00 00 [16:32:02]Write to MH i2c: E2 08 00 28 07 80 11 00 00 00 00 00 00 A9 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:02]Read from MH i2c: E2 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 17 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: E2 17 00 28 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 FE [16:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [16:32:02]wFMCommunicate OK [16:32:02]CreateOFDProtocolMessage done [16:32:02]OFDSenderStorePacket 5008 [16:32:02]StoreOFDPacket docnum=5008 [16:32:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 34 01 00 00 E8 8E 2C 01 44 22 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 44 00 00 00 F4 03 04 00 01 35 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 90 13 00 00 35 04 06 00 30 AD 76 99 BA 0E 14 F1 5D 69 1C 9A E5 1C [16:32:02]CheckFolder [16:32:02]dirname=/storage/ofd_packets [16:32:02]CheckFolder done [16:32:02]ProducePacketName [16:32:02]name=ofd_packets/00005008 [16:32:02]NVStorageSaveData ofd_packets/00005008 [16:32:02]File name is /storage/ofd_packets/00005008 [16:32:02]Write 338 bytes [16:32:02]NVStorageSaveData done [16:32:02]OFDSenderStorePacket done [16:32:02]KKMCreateOFDPacket done [16:32:02]NVStorageSaveData kkm_last_timestamp [16:32:02]File name is /storage/kkm_last_timestamp [16:32:02]Write 4 bytes [16:32:02]NVStorageSaveData done [16:32:02]ExternCall_PrintAddStr [16:32:02]wPrintStart [16:32:02]Write to MH i2c: 01 00 00 29 07 30 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: 01 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: 01 07 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: 01 07 00 29 07 00 00 00 00 00 FF 0F 45 [16:32:02]RasterBufferAndPrint [16:32:02]line Счет N : (3)141008 [16:32:02]line ИНН: 02508201610067 [16:32:02]line Контрольно-Кассовый Чек [16:32:02]line ПРОДАЖА [16:32:02]line Товар: 4700000481453 [16:32:02]line Напиток энерг Nitro Max 0,45 ж/б [16:32:02]line 1.000 * 95.00 [16:32:02]line = 95.00 [16:32:02]line НДС 12% НСП 1% [16:32:02]line > о реализуемом товаре [16:32:02]line ИТОГО: 95.00 [16:32:02]line НСП 1% : 0.84 [16:32:02]line НДС 12% : 10.09 [16:32:02]line Наличными: 95.00 [16:32:02]line Безнал.: 0.00 [16:32:02]line Место: АЗС № 135 "Партнер Нефть" [16:32:02]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [16:32:02]line СНО: Общий режим [16:32:02]line Чек 68 16.05.2024 16:32 [16:32:02]line Смена: 44 ФФД: 1.0 [16:32:02]line ЗНМ: 0300000237 [16:32:02]line РНМ: 0000000000154221 [16:32:02]line Версия ККМ: v1.0 [16:32:02]line ФМ: 0000000000963259 [16:32:02]line ФД: 5008 [16:32:02]line ФПД: 53521577261582 [16:32:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T163201&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5008&fm=53521577261582&tin=02508201610067®Number=0000000000154221&sum=9500 [16:32:02]line 0 [16:32:02]OFD Sender: Processing packet 5008 [packets to send 4, broken 3] [16:32:02]ProducePacketName [16:32:02]name=ofd_packets/00005008 [16:32:02]OFD Sender: To server: pG, [16:32:02]CommunicateWithHost lk.salyk.kg:30040 [16:32:02]ConnectInit lk.salyk.kg [16:32:02]written 0, free lines is 4095 [16:32:02]Write to MH i2c: 01 00 00 52 07 59 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: 01 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: 01 07 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: 01 07 00 52 07 00 00 00 00 00 7D 0C E9 [16:32:02]RasterBufferAndPrint [16:32:02]line [16:32:02]line [16:32:02]line [16:32:02]line [16:32:02]line [16:32:02]written 0, free lines is 3201 [16:32:02]MH_Cut [16:32:02]Write to MH i2c: D1 01 00 59 07 01 32 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: D1 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: D1 01 00 [16:32:02]MH_I2C_Read... [16:32:02]Read from MH i2c: D1 01 00 59 07 00 31 [16:32:02]Write to MH i2c: 01 00 00 5A 07 61 [16:32:02]Write i2c OK [16:32:02]MH_I2C_Read... [16:32:02]Connected sock=11 [16:32:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 34 01 00 00 E8 8E 2C 01 44 22 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 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 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 44 00 00 00 F4 03 04 00 01 35 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 90 13 00 00 35 04 06 00 30 AD 76 99 BA 0E 14 F1 5D 69 1C 9A E5 1C [16:32:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 AA 92 47 00 1B 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 33 32 35 39 10 04 04 00 90 13 00 00 F4 03 04 00 C4 E0 45 66 B6 04 01 00 00 6E 1B 64 5A 00 4F AA 54 [16:32:03]CommunicateWithHost err = 0 [16:32:03]CheckOFDResponse [16:32:03]1017 (14) - 77093643461234 [16:32:03]1041 (16) - 0000000000963259 [16:32:03]1040 (4) - 5008 [16:32:03]1012 (4) - 16.05.2024 10:32 [16:32:03]1206 (1) - 0 [16:32:03]OFD Sender: Remove packet 5008 [16:32:03]ProducePacketName [16:32:03]name=ofd_packets/00005008 [16:32:03]NVStorageDeleteData [16:32:03]OFD Sender: No OFD packet to send [16:32:03]*** Cut start [16:32:03]*** Partial cut [16:32:03]*** CUTSNS_PIN = 1 [16:32:04]*** CUTSNS_PIN = 0 [16:32:04]*** Brake cut motor [16:32:04]Read from MH i2c: 01 [16:32:04]MH_I2C_Read... [16:32:04]*** Stop cut motor [16:32:04]*** Cut end [16:32:04]Read from MH i2c: 01 07 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: 01 07 00 5A 07 00 00 00 00 00 FF 0F 76 [16:32:04]process_action close_receipt done [16:32:04]requested_data is exist [16:32:04]produce_requested_data [16:32:04]requested_item fm.sn is exist - process it [16:32:04]wFMCommunicate request_size=4 [16:32:04]MH_SAM_APDU [16:32:04]CAPDU: 80 11 00 00 [16:32:04]Write to MH i2c: E2 08 00 5B 07 80 11 00 00 00 00 00 00 DC [16:32:04]Write i2c OK [16:32:04]MH_I2C_Read... [16:32:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:04]Read from MH i2c: E2 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 17 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 17 00 5B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 31 [16:32:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [16:32:04]wFMCommunicate OK [16:32:04]requested_item fd.num is exist - process it [16:32:04]SAM_PROTO_GetFieldsCounters [16:32:04]wFMCommunicate request_size=4 [16:32:04]MH_SAM_APDU [16:32:04]CAPDU: 80 13 00 00 [16:32:04]Write to MH i2c: E2 08 00 5C 07 80 13 00 00 00 00 00 00 DF [16:32:04]Write i2c OK [16:32:04]MH_I2C_Read... [16:32:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:04]Read from MH i2c: E2 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 62 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 62 00 5C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 90 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 93 [16:32:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 90 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:32:04]wFMCommunicate OK [16:32:04]SAM_PROTO_GetFieldsCounters done [16:32:04]requested_item shift.num is exist - process it [16:32:04]requested_item shift.opened is exist - process it [16:32:04]req_shift_opened [16:32:04]FM_GetShiftState [16:32:04]SAM_PROTO_GetShiftState [16:32:04]wFMCommunicate request_size=4 [16:32:04]MH_SAM_APDU [16:32:04]CAPDU: 80 13 01 00 [16:32:04]Write to MH i2c: E2 08 00 5D 07 80 13 01 00 00 00 00 00 E1 [16:32:04]Write i2c OK [16:32:04]MH_I2C_Read... [16:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:04]Read from MH i2c: E2 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 0E 00 [16:32:04]MH_I2C_Read... [16:32:04]Read from MH i2c: E2 0E 00 5D 07 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 ED [16:32:04]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [16:32:04]wFMCommunicate OK [16:32:04]SAM_PROTO_GetShiftState done [16:32:04]FM_GetShiftState done [16:32:04]req_shift_opened done [16:32:04]requested_item shift.open_date is exist - process it [16:32:04]req_shift_open_date [16:32:04]req_shift_open_date done [16:32:04]produce_requested_data done [16:32:04]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5008,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [16:32:04]process_action_free close_receipt [16:32:04]json_value_free [16:32:04]json_value_free done [16:32:04]process_json_proto returns [16:32:04]Send response to host [16:32:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5008,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [16:32:04]free response buf [16:32:04]execute_script done [16:32:04]execute_script returns [16:32:04]free content buf [16:32:04]Sock 9.Close socket [16:32:04]Sock 9.Thread stoped [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:43]OFD Sender: No OFD packet to send [16:32:48]OFD Sender: No OFD packet to send [16:32:53]OFD Sender: No OFD packet to send [16:32:58]OFD Sender: No OFD packet to send [16:33:03]OFD Sender: No OFD packet to send [16:33:08]OFD Sender: No OFD packet to send [16:33:13]OFD Sender: No OFD packet to send [16:33:18]OFD Sender: No OFD packet to send [16:33:23]OFD Sender: No OFD packet to send [16:33:28]OFD Sender: No OFD packet to send [16:33:33]OFD Sender: No OFD packet to send [16:33:38]OFD Sender: No OFD packet to send [16:33:43]OFD Sender: No OFD packet to send [16:33:48]OFD Sender: No OFD packet to send [16:33:53]OFD Sender: No OFD packet to send [16:33:58]OFD Sender: No OFD packet to send [16:34:03]OFD Sender: No OFD packet to send [16:34:08]OFD Sender: No OFD packet to send [16:34:13]OFD Sender: No OFD packet to send [16:34:18]OFD Sender: No OFD packet to send [16:34:23]OFD Sender: No OFD packet to send [16:34:28]OFD Sender: No OFD packet to send [16:34:33]OFD Sender: No OFD packet to send [16:34:38]OFD Sender: No OFD packet to send [16:34:43]OFD Sender: No OFD packet to send [16:34:48]OFD Sender: No OFD packet to send [16:34:53]OFD Sender: No OFD packet to send [16:34:58]OFD Sender: No OFD packet to send [16:35:03]OFD Sender: No OFD packet to send [16:35:08]OFD Sender: No OFD packet to send [16:35:13]OFD Sender: No OFD packet to send [16:35:18]OFD Sender: No OFD packet to send [16:35:23]OFD Sender: No OFD packet to send [16:35:28]OFD Sender: No OFD packet to send [16:35:33]OFD Sender: No OFD packet to send [16:35:38]OFD Sender: No OFD packet to send [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:38]OFD Sender: No OFD packet to send [16:38:43]OFD Sender: No OFD packet to send [16:38:49]OFD Sender: No OFD packet to send [16:38:54]OFD Sender: No OFD packet to send [16:38:59]OFD Sender: No OFD packet to send [16:39:04]OFD Sender: No OFD packet to send [16:39:09]OFD Sender: No OFD packet to send [16:39:14]OFD Sender: No OFD packet to send [16:39:19]OFD Sender: No OFD packet to send [16:39:24]OFD Sender: No OFD packet to send [16:39:29]OFD Sender: No OFD packet to send [16:39:34]OFD Sender: No OFD packet to send [16:39:39]OFD Sender: No OFD packet to send [16:39:44]OFD Sender: No OFD packet to send [16:39:49]OFD Sender: No OFD packet to send [16:39:54]OFD Sender: No OFD packet to send [16:39:59]OFD Sender: No OFD packet to send [16:40:04]OFD Sender: No OFD packet to send [16:40:09]OFD Sender: No OFD packet to send [16:40:14]OFD Sender: No OFD packet to send [16:40:19]OFD Sender: No OFD packet to send [16:40:24]OFD Sender: No OFD packet to send [16:40:29]OFD Sender: No OFD packet to send [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:40:59]OFD Sender: No OFD packet to send [16:41:04]OFD Sender: No OFD packet to send [16:41:09]OFD Sender: No OFD packet to send [16:41:14]OFD Sender: No OFD packet to send [16:41:19]OFD Sender: No OFD packet to send [16:41:24]OFD Sender: No OFD packet to send [16:41:29]OFD Sender: No OFD packet to send [16:41:34]OFD Sender: No OFD packet to send [16:41:39]OFD Sender: No OFD packet to send [16:41:44]OFD Sender: No OFD packet to send [16:41:49]OFD Sender: No OFD packet to send [16:41:54]OFD Sender: No OFD packet to send [16:41:59]OFD Sender: No OFD packet to send [16:42:04]OFD Sender: No OFD packet to send [16:42:09]OFD Sender: No OFD packet to send [16:42:14]OFD Sender: No OFD packet to send [16:42:19]OFD Sender: No OFD packet to send [16:42:24]OFD Sender: No OFD packet to send [16:42:29]OFD Sender: No OFD packet to send [16:42:34]OFD Sender: No OFD packet to send [16:42:39]OFD Sender: No OFD packet to send [16:42:44]OFD Sender: No OFD packet to send [16:42:49]OFD Sender: No OFD packet to send [16:42:54]OFD Sender: No OFD packet to send [16:42:59]OFD Sender: No OFD packet to send [16:43:04]OFD Sender: No OFD packet to send [16:43:09]OFD Sender: No OFD packet to send [16:43:14]OFD Sender: No OFD packet to send [16:43:19]OFD Sender: No OFD packet to send [16:43:24]OFD Sender: No OFD packet to send [16:43:29]OFD Sender: No OFD packet to send [16:43:34]OFD Sender: No OFD packet to send [16:43:39]OFD Sender: No OFD packet to send [16:43:44]OFD Sender: No OFD packet to send [16:43:49]OFD Sender: No OFD packet to send [16:43:54]OFD Sender: No OFD packet to send [16:43:59]OFD Sender: No OFD packet to send [16:44:04]OFD Sender: No OFD packet to send [16:44:09]OFD Sender: No OFD packet to send [16:44:14]OFD Sender: No OFD packet to send [16:44:19]OFD Sender: No OFD packet to send [16:44:24]OFD Sender: No OFD packet to send [16:44:29]OFD Sender: No OFD packet to send [16:44:34]OFD Sender: No OFD packet to send [16:44:39]OFD Sender: No OFD packet to send [16:44:44]OFD Sender: No OFD packet to send [16:44:49]OFD Sender: No OFD packet to send [16:44:54]OFD Sender: No OFD packet to send [16:44:59]OFD Sender: No OFD packet to send [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:19]OFD Sender: No OFD packet to send [16:46:24]OFD Sender: No OFD packet to send [16:46:25]accept exits with 7 [16:46:25]New connection [16:46:25]New thread 3067108708 created [16:46:25]Thread 3067252068 joined [16:46:25]Waiting for new connection... [16:46:25] Sock 7.Parse request [16:46:25]Sock 7.Check first char [16:46:25]Sock 7.First char is OK [16:46:25]request: POST /json_proto HTTP/1.0 [16:46:25]Method: POST [16:46:25]URL: /json_proto [16:46:25]Method is POST - this is cgi request [16:46:25]url: /json_proto [16:46:25]query_string will be loaded in cgi processing [16:46:25]execute_cgi json_proto POST (null) [16:46:25]execute_cgi path=json_proto method=POST [16:46:25]POST find Content-Length [16:46:25]Host: 172.17.44.4:8080 [16:46:25]Content-Length: 614 [16:46:25]Content-Type: application/json [16:46:25] [16:46:25]POST finish read [16:46:25]Found Content-Length = 614 [16:46:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141009", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [16:46:25]execute_script... [16:46: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)141009", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "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" ] } } [16:46:25]POST & json_proto [16:46:25]process_json_proto [16:46:25]json parsed OK: [16:46:25]protocol is kg_v1.0 [16:46:25]action value=close_receipt [16:46:25]process_action close_receipt [16:46:25]cmd_close_receipt [16:46:25]MH_GetDate [16:46:25]Write to MH i2c: F0 00 00 5E 07 54 [16:46:25]Write i2c OK [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: F0 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: F0 09 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: F0 09 00 5E 07 00 62 38 46 66 6C E9 28 66 86 [16:46:25]GetLastDocTimeStamp 1715877121 [16:46:25]current date 1715877986 [16:46:25]FM_GetShiftState [16:46:25]SAM_PROTO_GetShiftState [16:46:25]wFMCommunicate request_size=4 [16:46:25]MH_SAM_APDU [16:46:25]CAPDU: 80 13 01 00 [16:46:25]Write to MH i2c: E2 08 00 5F 07 80 13 01 00 00 00 00 00 E3 [16:46:25]Write i2c OK [16:46:25]MH_I2C_Read... [16:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:25]Read from MH i2c: E2 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 0E 00 [16:46:25]MH_I2C_Read... [16:46:25]Read from MH i2c: E2 0E 00 5F 07 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 EF [16:46:25]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [16:46:25]wFMCommunicate OK [16:46:25]SAM_PROTO_GetShiftState done [16:46:25]FM_GetShiftState done [16:46:25]opened in 1715818246 [16:46:25]opened+sec_in_day 1715904646 [16:46:25]quantity*price = 13000 [16:46:25]sum+1 = 13001 [16:46:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 69 16.05.2024 16:46 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5009 ФПД: 34554119126679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T164626&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5009&fm=34554119126679&tin=02508201610067®Number=0000000000154221&sum=13000 0 [16:46:26]StoreToDocumentArchive [16:46:26]shift 44 fd 5009 [16:46:26]save to /storage/0044/doc_00005009 [16:46:26]save last doc name /storage/0044/doc_00005009 to /storage/kkm_last_doc_name [16:46:26]save OK [16:46:26]Clear old archive folders... [16:46:26]ProcessDocumentItem done err = 0, tmpTLVsize=266 [16:46:26]tlvbuf is 0120D0B0 [16:46:26]SAM_PROTO_ClearQueue [16:46:26]wFMCommunicate request_size=4 [16:46:26]MH_SAM_APDU [16:46:26]CAPDU: 80 09 00 00 [16:46:26]Write to MH i2c: E2 08 00 6C 07 80 09 00 00 00 00 00 00 E5 [16:46:26]Write i2c OK [16:46:26]MH_I2C_Read... [16:46:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:26]Read from MH i2c: E2 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 03 00 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 03 00 6C 07 00 90 00 E7 [16:46:26]RAPDU: 90 00 [16:46:26]wFMCommunicate OK [16:46:26]SAM_PROTO_ClearQueue done [16:46:26]KKMCreateOFDPacket [16:46:26]OFDProtocolAddRootSTLVToBuf [16:46:26]FM_MakeSignedData [16:46:26]FM_MakeSignedData [16:46:26]SAM_PROTO_SignData [16:46:26]wFMCommunicate request_size=4 [16:46:26]MH_SAM_APDU [16:46:26]CAPDU: 80 0D 01 02 [16:46:26]Write to MH i2c: E2 08 00 6D 07 80 0D 01 02 00 00 00 00 ED [16:46:26]Write i2c OK [16:46:26]MH_I2C_Read... [16:46:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:26]Read from MH i2c: E2 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 03 00 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 03 00 6D 07 00 90 00 E8 [16:46:26]RAPDU: 90 00 [16:46:26]wFMCommunicate OK [16:46:26]wFMCommunicate request_size=255 [16:46:26]MH_SAM_APDU [16:46:26]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 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 45 00 00 00 F4 03 04 00 62 38 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 [16:46:26]Write to MH i2c: E2 02 01 6E 07 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 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 45 00 00 00 F4 03 04 00 62 38 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 00 00 54 [16:46:26]Write i2c OK [16:46:26]MH_I2C_Read... [16:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:26]Read from MH i2c: E2 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 03 00 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 03 00 6E 07 00 90 00 E9 [16:46:26]RAPDU: 90 00 [16:46:26]wFMCommunicate OK [16:46:26]wFMCommunicate request_size=25 [16:46:26]MH_SAM_APDU [16:46:26]CAPDU: 80 0D 02 02 14 35 39 10 04 04 00 91 13 00 00 35 04 06 00 1F 6D 41 FE FE 97 [16:46:26]Write to MH i2c: E2 1C 00 6F 07 80 0D 02 02 14 00 35 39 10 04 04 00 91 13 00 00 35 04 06 00 1F 6D 41 FE FE 97 00 00 E1 [16:46:26]Write i2c OK [16:46:26]MH_I2C_Read... [16:46:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:26]Read from MH i2c: E2 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 03 00 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 03 00 6F 07 00 90 00 EA [16:46:26]RAPDU: 90 00 [16:46:26]wFMCommunicate OK [16:46:26]wFMCommunicate request_size=4 [16:46:26]MH_SAM_APDU [16:46:26]CAPDU: 80 0D 03 02 [16:46:26]Write to MH i2c: E2 08 00 70 07 80 0D 03 02 00 00 00 00 F2 [16:46:26]Write i2c OK [16:46:26]MH_I2C_Read... [16:46:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:26]Read from MH i2c: E2 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 0B 00 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 0B 00 70 07 00 90 74 AB 57 98 D0 CB 41 90 00 6D [16:46:26]RAPDU: 90 74 AB 57 98 D0 CB 41 90 00 [16:46:26]wFMCommunicate OK [16:46:26]SAM_PROTO_SignData done [16:46:26]FM_MakeSignedData done [16:46:26]CreateOFDProtocolMessage [16:46:26]wFMCommunicate request_size=4 [16:46:26]MH_SAM_APDU [16:46:26]CAPDU: 80 11 00 00 [16:46:26]Write to MH i2c: E2 08 00 71 07 80 11 00 00 00 00 00 00 F2 [16:46:26]Write i2c OK [16:46:26]MH_I2C_Read... [16:46:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:26]Read from MH i2c: E2 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 17 00 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: E2 17 00 71 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 47 [16:46:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [16:46:26]wFMCommunicate OK [16:46:26]CreateOFDProtocolMessage done [16:46:26]OFDSenderStorePacket 5009 [16:46:26]StoreOFDPacket docnum=5009 [16:46:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 1E 01 00 00 81 CD 16 01 D9 F1 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 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 45 00 00 00 F4 03 04 00 62 38 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 91 13 00 00 35 04 06 00 1F 6D 41 FE FE 97 90 74 AB 57 98 D0 CB 41 [16:46:26]CheckFolder [16:46:26]dirname=/storage/ofd_packets [16:46:26]CheckFolder done [16:46:26]ProducePacketName [16:46:26]name=ofd_packets/00005009 [16:46:26]NVStorageSaveData ofd_packets/00005009 [16:46:26]File name is /storage/ofd_packets/00005009 [16:46:26]Write 316 bytes [16:46:26]NVStorageSaveData done [16:46:26]OFDSenderStorePacket done [16:46:26]KKMCreateOFDPacket done [16:46:26]NVStorageSaveData kkm_last_timestamp [16:46:26]File name is /storage/kkm_last_timestamp [16:46:26]Write 4 bytes [16:46:26]NVStorageSaveData done [16:46:26]ExternCall_PrintAddStr [16:46:26]wPrintStart [16:46:26]Write to MH i2c: 01 00 00 72 07 79 [16:46:26]Write i2c OK [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: 01 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: 01 07 00 [16:46:26]MH_I2C_Read... [16:46:26]Read from MH i2c: 01 07 00 72 07 00 00 00 00 00 FF 0F 8E [16:46:26]RasterBufferAndPrint [16:46:26]line Счет N : (3)141009 [16:46:26]line ИНН: 02508201610067 [16:46:26]line Контрольно-Кассовый Чек [16:46:26]line ПРОДАЖА [16:46:26]line Товар: 4870001570071 [16:46:26]line Напиток Pepsi 1л [16:46:26]line 1.000 * 130.00 [16:46:26]line = 130.00 [16:46:26]line НДС 12% НСП 1% [16:46:26]line > о реализуемом товаре [16:46:26]line ИТОГО: 130.00 [16:46:26]line НСП 1% : 1.15 [16:46:26]line НДС 12% : 13.80 [16:46:26]line Наличными: 130.00 [16:46:26]line Безнал.: 0.00 [16:46:26]line Место: АЗС № 135 "Партнер Нефть" [16:46:26]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [16:46:26]line СНО: Общий режим [16:46:26]line Чек 69 16.05.2024 16:46 [16:46:26]line Смена: 44 ФФД: 1.0 [16:46:26]line ЗНМ: 0300000237 [16:46:26]line РНМ: 0000000000154221 [16:46:26]line Версия ККМ: v1.0 [16:46:26]line ФМ: 0000000000963259 [16:46:26]line ФД: 5009 [16:46:26]line ФПД: 34554119126679 [16:46:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T164626&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5009&fm=34554119126679&tin=02508201610067®Number=0000000000154221&sum=13000 [16:46:27]line 0 [16:46:27]OFD Sender: Processing packet 5009 [packets to send 4, broken 3] [16:46:27]ProducePacketName [16:46:27]name=ofd_packets/00005009 [16:46:27]OFD Sender: To server: pG, [16:46:27]CommunicateWithHost lk.salyk.kg:30040 [16:46:27]ConnectInit lk.salyk.kg [16:46:27]written 0, free lines is 4095 [16:46:27]Connected sock=11 [16:46:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 1E 01 00 00 81 CD 16 01 D9 F1 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 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 45 00 00 00 F4 03 04 00 62 38 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 91 13 00 00 35 04 06 00 1F 6D 41 FE FE 97 90 74 AB 57 98 D0 CB 41 [16:46:27]Write to MH i2c: 01 00 00 9A 07 A1 [16:46:27]Write i2c OK [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: 01 [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: 01 07 00 [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: 01 07 00 9A 07 00 00 00 00 00 A8 0C 5C [16:46:27]RasterBufferAndPrint [16:46:27]line [16:46:27]line [16:46:27]line [16:46:27]line [16:46:27]line [16:46:27]written 0, free lines is 3243 [16:46:27]MH_Cut [16:46:27]Write to MH i2c: D1 01 00 A1 07 01 7A [16:46:27]Write i2c OK [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: D1 [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: D1 01 00 [16:46:27]MH_I2C_Read... [16:46:27]Read from MH i2c: D1 01 00 A1 07 00 79 [16:46:27]Write to MH i2c: 01 00 00 A2 07 A9 [16:46:27]Write i2c OK [16:46:27]MH_I2C_Read... [16:46:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 C6 57 47 00 FE E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 91 13 00 00 F4 03 04 00 25 E4 45 66 B6 04 01 00 00 9A 30 80 30 81 4F B5 A7 [16:46:27]CommunicateWithHost err = 0 [16:46:27]CheckOFDResponse [16:46:27]1017 (14) - 77093643461234 [16:46:27]1041 (16) - 0000000000963259 [16:46:27]1040 (4) - 5009 [16:46:27]1012 (4) - 16.05.2024 10:47 [16:46:27]1206 (1) - 0 [16:46:27]OFD Sender: Remove packet 5009 [16:46:27]ProducePacketName [16:46:27]name=ofd_packets/00005009 [16:46:27]NVStorageDeleteData [16:46:28]OFD Sender: No OFD packet to send [16:46:28]*** Cut start [16:46:28]*** Partial cut [16:46:28]*** CUTSNS_PIN = 1 [16:46:28]*** CUTSNS_PIN = 0 [16:46:28]*** Brake cut motor [16:46:29]Read from MH i2c: 01 [16:46:29]MH_I2C_Read... [16:46:29]*** Stop cut motor [16:46:29]*** Cut end [16:46:29]Read from MH i2c: 01 07 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: 01 07 00 A2 07 00 00 00 00 00 FF 0F BE [16:46:29]process_action close_receipt done [16:46:29]requested_data is exist [16:46:29]produce_requested_data [16:46:29]requested_item fm.sn is exist - process it [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 11 00 00 [16:46:29]Write to MH i2c: E2 08 00 A3 07 80 11 00 00 00 00 00 00 24 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 17 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 17 00 A3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 79 [16:46:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [16:46:29]wFMCommunicate OK [16:46:29]requested_item fd.num is exist - process it [16:46:29]SAM_PROTO_GetFieldsCounters [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 13 00 00 [16:46:29]Write to MH i2c: E2 08 00 A4 07 80 13 00 00 00 00 00 00 27 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 62 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 62 00 A4 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 91 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [16:46:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 91 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:46:29]wFMCommunicate OK [16:46:29]SAM_PROTO_GetFieldsCounters done [16:46:29]requested_item shift.num is exist - process it [16:46:29]requested_item shift.opened is exist - process it [16:46:29]req_shift_opened [16:46:29]FM_GetShiftState [16:46:29]SAM_PROTO_GetShiftState [16:46:29]wFMCommunicate request_size=4 [16:46:29]MH_SAM_APDU [16:46:29]CAPDU: 80 13 01 00 [16:46:29]Write to MH i2c: E2 08 00 A5 07 80 13 01 00 00 00 00 00 29 [16:46:29]Write i2c OK [16:46:29]MH_I2C_Read... [16:46:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:29]Read from MH i2c: E2 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 0E 00 [16:46:29]MH_I2C_Read... [16:46:29]Read from MH i2c: E2 0E 00 A5 07 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 35 [16:46:29]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [16:46:29]wFMCommunicate OK [16:46:29]SAM_PROTO_GetShiftState done [16:46:29]FM_GetShiftState done [16:46:29]req_shift_opened done [16:46:29]requested_item shift.open_date is exist - process it [16:46:29]req_shift_open_date [16:46:29]req_shift_open_date done [16:46:29]produce_requested_data done [16:46:29]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5009,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [16:46:29]process_action_free close_receipt [16:46:29]json_value_free [16:46:29]json_value_free done [16:46:29]process_json_proto returns [16:46:29]Send response to host [16:46:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5009,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [16:46:29]free response buf [16:46:29]execute_script done [16:46:29]execute_script returns [16:46:29]free content buf [16:46:29]Sock 7.Close socket [16:46:29]Sock 7.Thread stoped [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:02]accept exits with 9 [16:54:02]New connection [16:54:02]New thread 3067252068 created [16:54:02]Thread 3067108708 joined [16:54:02]Waiting for new connection... [16:54:02] Sock 9.Parse request [16:54:02]Sock 9.Check first char [16:54:02]Sock 9.First char is OK [16:54:02]request: POST /json_proto HTTP/1.0 [16:54:02]Method: POST [16:54:02]URL: /json_proto [16:54:02]Method is POST - this is cgi request [16:54:02]url: /json_proto [16:54:02]query_string will be loaded in cgi processing [16:54:02]execute_cgi json_proto POST (null) [16:54:02]execute_cgi path=json_proto method=POST [16:54:02]POST find Content-Length [16:54:02]Host: 172.17.44.4:8080 [16:54:02]Content-Length: 678 [16:54:02]Content-Type: application/json [16:54:02] [16:54:02]POST finish read [16:54:02]Found Content-Length = 678 [16:54:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:02]execute_script... [16:54:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992975", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 8.990, "sum" : 600.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:02]POST & json_proto [16:54:02]process_json_proto [16:54:02]json parsed OK: [16:54:02]protocol is kg_v1.0 [16:54:02]action value=close_receipt [16:54:02]process_action close_receipt [16:54:02]cmd_close_receipt [16:54:02]MH_GetDate [16:54:02]Write to MH i2c: F0 00 00 A6 07 9C [16:54:02]Write i2c OK [16:54:02]MH_I2C_Read... [16:54:02]Read from MH i2c: F0 [16:54:02]MH_I2C_Read... [16:54:02]Read from MH i2c: F0 09 00 [16:54:02]MH_I2C_Read... [16:54:02]Read from MH i2c: F0 09 00 A6 07 00 2B 3A 46 66 6C E9 28 66 99 [16:54:02]GetLastDocTimeStamp 1715877986 [16:54:02]current date 1715878443 [16:54:02]FM_GetShiftState [16:54:02]SAM_PROTO_GetShiftState [16:54:02]wFMCommunicate request_size=4 [16:54:02]MH_SAM_APDU [16:54:02]CAPDU: 80 13 01 00 [16:54:02]Write to MH i2c: E2 08 00 A7 07 80 13 01 00 00 00 00 00 2B [16:54:02]Write i2c OK [16:54:02]MH_I2C_Read... [16:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:02]Read from MH i2c: E2 [16:54:02]MH_I2C_Read... [16:54:02]Read from MH i2c: E2 0E 00 [16:54:02]MH_I2C_Read... [16:54:02]Read from MH i2c: E2 0E 00 A7 07 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 37 [16:54:02]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [16:54:02]wFMCommunicate OK [16:54:02]SAM_PROTO_GetShiftState done [16:54:02]FM_GetShiftState done [16:54:02]opened in 1715818246 [16:54:02]opened+sec_in_day 1715904646 [16:54:02]quantity*price = 60053 [16:54:02]sum+1 = 60054 [16:54:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 70 16.05.2024 16:54 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5010 ФПД: 11556649777497 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T165403&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5010&fm=11556649777497&tin=02508201610067®Number=0000000000154221&sum=60000 [16:54:03]StoreToDocumentArchive [16:54:03]shift 44 fd 5010 [16:54:03]save to /storage/0044/doc_00005010 [16:54:03]save last doc name /storage/0044/doc_00005010 to /storage/kkm_last_doc_name [16:54:03]save OK [16:54:03]Clear old archive folders... [16:54:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:54:03]tlvbuf is 011F2B50 [16:54:03]SAM_PROTO_ClearQueue [16:54:03]wFMCommunicate request_size=4 [16:54:03]MH_SAM_APDU [16:54:03]CAPDU: 80 09 00 00 [16:54:03]Write to MH i2c: E2 08 00 B4 07 80 09 00 00 00 00 00 00 2D [16:54:03]Write i2c OK [16:54:03]MH_I2C_Read... [16:54:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:03]Read from MH i2c: E2 [16:54:03]MH_I2C_Read... [16:54:03]Read from MH i2c: E2 03 00 [16:54:03]MH_I2C_Read... [16:54:03]Read from MH i2c: E2 03 00 B4 07 00 90 00 2F [16:54:03]RAPDU: 90 00 [16:54:03]wFMCommunicate OK [16:54:03]SAM_PROTO_ClearQueue done [16:54:03]KKMCreateOFDPacket [16:54:03]OFDProtocolAddRootSTLVToBuf [16:54:03]FM_MakeSignedData [16:54:03]FM_MakeSignedData [16:54:03]SAM_PROTO_SignData [16:54:03]wFMCommunicate request_size=4 [16:54:03]MH_SAM_APDU [16:54:03]CAPDU: 80 0D 01 02 [16:54:03]Write to MH i2c: E2 08 00 B5 07 80 0D 01 02 00 00 00 00 35 [16:54:03]Write i2c OK [16:54:03]MH_I2C_Read... [16:54:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:03]Read from MH i2c: E2 [16:54:03]MH_I2C_Read... [16:54:03]Read from MH i2c: E2 03 00 [16:54:03]MH_I2C_Read... [16:54:03]Read from MH i2c: E2 03 00 B5 07 00 90 00 30 [16:54:03]RAPDU: 90 00 [16:54:03]wFMCommunicate OK [16:54:03]wFMCommunicate request_size=255 [16:54:03]MH_SAM_APDU [16:54:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2B 3A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 92 13 00 00 35 04 06 00 0A [16:54:03]Write to MH i2c: E2 02 01 B6 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2B 3A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 92 13 00 00 35 04 06 00 0A 00 00 04 [16:54:03]Write i2c OK [16:54:03]MH_I2C_Read... [16:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:04]Read from MH i2c: E2 [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: E2 03 00 [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: E2 03 00 B6 07 00 90 00 31 [16:54:04]RAPDU: 90 00 [16:54:04]wFMCommunicate OK [16:54:04]wFMCommunicate request_size=10 [16:54:04]MH_SAM_APDU [16:54:04]CAPDU: 80 0D 02 02 05 82 BE 01 39 59 [16:54:04]Write to MH i2c: E2 0D 00 B7 07 80 0D 02 02 05 00 82 BE 01 39 59 00 00 15 [16:54:04]Write i2c OK [16:54:04]MH_I2C_Read... [16:54:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:04]Read from MH i2c: E2 [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: E2 03 00 [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: E2 03 00 B7 07 00 90 00 32 [16:54:04]RAPDU: 90 00 [16:54:04]wFMCommunicate OK [16:54:04]wFMCommunicate request_size=4 [16:54:04]MH_SAM_APDU [16:54:04]CAPDU: 80 0D 03 02 [16:54:04]Write to MH i2c: E2 08 00 B8 07 80 0D 03 02 00 00 00 00 3A [16:54:04]Write i2c OK [16:54:04]MH_I2C_Read... [16:54:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:04]Read from MH i2c: E2 [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: E2 0B 00 [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: E2 0B 00 B8 07 00 4D 80 C8 BC 6C 4C CC E6 90 00 F6 [16:54:04]RAPDU: 4D 80 C8 BC 6C 4C CC E6 90 00 [16:54:04]wFMCommunicate OK [16:54:04]SAM_PROTO_SignData done [16:54:04]FM_MakeSignedData done [16:54:04]CreateOFDProtocolMessage [16:54:04]wFMCommunicate request_size=4 [16:54:04]MH_SAM_APDU [16:54:04]CAPDU: 80 11 00 00 [16:54:04]Write to MH i2c: E2 08 00 B9 07 80 11 00 00 00 00 00 00 3A [16:54:04]Write i2c OK [16:54:04]MH_I2C_Read... [16:54:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:04]Read from MH i2c: E2 [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: E2 17 00 [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: E2 17 00 B9 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 8F [16:54:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [16:54:04]wFMCommunicate OK [16:54:04]CreateOFDProtocolMessage done [16:54:04]OFDSenderStorePacket 5010 [16:54:04]StoreOFDPacket docnum=5010 [16:54:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 B1 8F 07 01 A1 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2B 3A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 92 13 00 00 35 04 06 00 0A 82 BE 01 39 59 4D 80 C8 BC 6C 4C CC E6 [16:54:04]CheckFolder [16:54:04]dirname=/storage/ofd_packets [16:54:04]CheckFolder done [16:54:04]ProducePacketName [16:54:04]name=ofd_packets/00005010 [16:54:04]NVStorageSaveData ofd_packets/00005010 [16:54:04]File name is /storage/ofd_packets/00005010 [16:54:04]Write 301 bytes [16:54:04]NVStorageSaveData done [16:54:04]OFDSenderStorePacket done [16:54:04]KKMCreateOFDPacket done [16:54:04]NVStorageSaveData kkm_last_timestamp [16:54:04]File name is /storage/kkm_last_timestamp [16:54:04]Write 4 bytes [16:54:04]NVStorageSaveData done [16:54:04]ExternCall_PrintAddStr [16:54:04]wPrintStart [16:54:04]Write to MH i2c: 01 00 00 BA 07 C1 [16:54:04]Write i2c OK [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: 01 [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: 01 07 00 [16:54:04]MH_I2C_Read... [16:54:04]Read from MH i2c: 01 07 00 BA 07 00 00 00 00 00 FF 0F D6 [16:54:04]RasterBufferAndPrint [16:54:04]line Счет N : (1)1992975 [16:54:04]line ИНН: 02508201610067 [16:54:04]line Контрольно-Кассовый Чек [16:54:04]line ПРОДАЖА [16:54:04]line ТРК (МРК, ГНК) : 43 [16:54:04]line Товар: 2710124130 [16:54:04]line Аи-92-К-4 [16:54:04]line 8.990 * 66.80 [16:54:04]line = 600.53 [16:54:04]line НДС 12% НСП 1% [16:54:04]line > о реализуемом товаре [16:54:04]line ОКРУГЛЕНИЕ: -0.53 [16:54:04]line ИТОГО: 600.00 [16:54:04]line Внесено: 600.00 [16:54:04]line СДАЧА: 0.00 [16:54:04]line НСП 1% : 5.31 [16:54:04]line НДС 12% : 63.77 [16:54:04]line Наличными: 600.00 [16:54:04]line Безнал.: 0.00 [16:54:04]line Место: АЗС № 135 "Партнер Нефть" [16:54:04]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [16:54:04]line СНО: Общий режим [16:54:04]line Чек 70 16.05.2024 16:54 [16:54:04]line Смена: 44 ФФД: 1.0 [16:54:04]line ЗНМ: 0300000237 [16:54:04]line РНМ: 0000000000154221 [16:54:04]line Версия ККМ: v1.0 [16:54:04]line ФМ: 0000000000963259 [16:54:04]line ФД: 5010 [16:54:04]line ФПД: 11556649777497 [16:54:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T165403&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5010&fm=11556649777497&tin=02508201610067®Number=0000000000154221&sum=60000 [16:54:04]OFD Sender: Processing packet 5010 [packets to send 4, broken 3] [16:54:04]ProducePacketName [16:54:04]name=ofd_packets/00005010 [16:54:04]OFD Sender: To server: pG, [16:54:04]CommunicateWithHost lk.salyk.kg:30040 [16:54:04]ConnectInit lk.salyk.kg [16:54:04]written 0, free lines is 4095 [16:54:04]Connected sock=10 [16:54:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 B1 8F 07 01 A1 38 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 1E 23 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 95 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 2B 3A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 92 13 00 00 35 04 06 00 0A 82 BE 01 39 59 4D 80 C8 BC 6C 4C CC E6 [16:54:05]Write to MH i2c: 01 00 00 E5 07 EC [16:54:05]Write i2c OK [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: 01 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: 01 07 00 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: 01 07 00 E5 07 00 00 00 00 00 70 0C 6F [16:54:05]RasterBufferAndPrint [16:54:05]line [16:54:05]line [16:54:05]line [16:54:05]line [16:54:05]line [16:54:05]written 0, free lines is 3187 [16:54:05]MH_Cut [16:54:05]Write to MH i2c: D1 01 00 EC 07 01 C5 [16:54:05]Write i2c OK [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: D1 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: D1 01 00 [16:54:05]MH_I2C_Read... [16:54:05]Read from MH i2c: D1 01 00 EC 07 00 C4 [16:54:05]Write to MH i2c: 01 00 00 ED 07 F4 [16:54:05]Write i2c OK [16:54:05]MH_I2C_Read... [16:54:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 0F BA 47 00 0E 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 92 13 00 00 F4 03 04 00 EE E5 45 66 B6 04 01 00 00 B8 56 B7 D9 6B 3C D9 85 [16:54:05]CommunicateWithHost err = 0 [16:54:05]CheckOFDResponse [16:54:05]1017 (14) - 77093643461234 [16:54:05]1041 (16) - 0000000000963259 [16:54:05]1040 (4) - 5010 [16:54:05]1012 (4) - 16.05.2024 10:54 [16:54:05]1206 (1) - 0 [16:54:05]OFD Sender: Remove packet 5010 [16:54:05]ProducePacketName [16:54:05]name=ofd_packets/00005010 [16:54:05]NVStorageDeleteData [16:54:05]OFD Sender: No OFD packet to send [16:54:06]*** Cut start [16:54:06]*** Partial cut [16:54:06]*** CUTSNS_PIN = 1 [16:54:06]*** CUTSNS_PIN = 0 [16:54:06]*** Brake cut motor [16:54:06]Read from MH i2c: 01 [16:54:06]MH_I2C_Read... [16:54:06]*** Stop cut motor [16:54:06]*** Cut end [16:54:06]Read from MH i2c: 01 07 00 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: 01 07 00 ED 07 00 00 00 00 00 FF 0F 09 [16:54:06]process_action close_receipt done [16:54:06]requested_data is exist [16:54:06]produce_requested_data [16:54:06]requested_item fm.sn is exist - process it [16:54:06]wFMCommunicate request_size=4 [16:54:06]MH_SAM_APDU [16:54:06]CAPDU: 80 11 00 00 [16:54:06]Write to MH i2c: E2 08 00 EE 07 80 11 00 00 00 00 00 00 6F [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:06]Read from MH i2c: E2 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 17 00 [16:54:06]MH_I2C_Read... [16:54:06]Read from MH i2c: E2 17 00 EE 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 C4 [16:54:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [16:54:06]wFMCommunicate OK [16:54:06]requested_item fd.num is exist - process it [16:54:06]SAM_PROTO_GetFieldsCounters [16:54:06]wFMCommunicate request_size=4 [16:54:06]MH_SAM_APDU [16:54:06]CAPDU: 80 13 00 00 [16:54:06]Write to MH i2c: E2 08 00 EF 07 80 13 00 00 00 00 00 00 72 [16:54:06]Write i2c OK [16:54:06]MH_I2C_Read... [16:54:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:07]Read from MH i2c: E2 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 62 00 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 62 00 EF 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 92 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [16:54:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 92 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [16:54:07]wFMCommunicate OK [16:54:07]SAM_PROTO_GetFieldsCounters done [16:54:07]requested_item shift.num is exist - process it [16:54:07]requested_item shift.opened is exist - process it [16:54:07]req_shift_opened [16:54:07]FM_GetShiftState [16:54:07]SAM_PROTO_GetShiftState [16:54:07]wFMCommunicate request_size=4 [16:54:07]MH_SAM_APDU [16:54:07]CAPDU: 80 13 01 00 [16:54:07]Write to MH i2c: E2 08 00 F0 07 80 13 01 00 00 00 00 00 74 [16:54:07]Write i2c OK [16:54:07]MH_I2C_Read... [16:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:07]Read from MH i2c: E2 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 0E 00 [16:54:07]MH_I2C_Read... [16:54:07]Read from MH i2c: E2 0E 00 F0 07 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 80 [16:54:07]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [16:54:07]wFMCommunicate OK [16:54:07]SAM_PROTO_GetShiftState done [16:54:07]FM_GetShiftState done [16:54:07]req_shift_opened done [16:54:07]requested_item shift.open_date is exist - process it [16:54:07]req_shift_open_date [16:54:07]req_shift_open_date done [16:54:07]produce_requested_data done [16:54:07]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5010,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [16:54:07]process_action_free close_receipt [16:54:07]json_value_free [16:54:07]json_value_free done [16:54:07]process_json_proto returns [16:54:07]Send response to host [16:54:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5010,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [16:54:07]free response buf [16:54:07]execute_script done [16:54:07]execute_script returns [16:54:07]free content buf [16:54:07]Sock 9.Close socket [16:54:07]Sock 9.Thread stoped [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:36]OFD Sender: No OFD packet to send [17:01:41]OFD Sender: No OFD packet to send [17:01:46]OFD Sender: No OFD packet to send [17:01:51]OFD Sender: No OFD packet to send [17:01:56]OFD Sender: No OFD packet to send [17:02:01]OFD Sender: No OFD packet to send [17:02:06]OFD Sender: No OFD packet to send [17:02:11]OFD Sender: No OFD packet to send [17:02:16]OFD Sender: No OFD packet to send [17:02:21]OFD Sender: No OFD packet to send [17:02:26]OFD Sender: No OFD packet to send [17:02:31]OFD Sender: No OFD packet to send [17:02:36]OFD Sender: No OFD packet to send [17:02:41]OFD Sender: No OFD packet to send [17:02:46]OFD Sender: No OFD packet to send [17:02:51]OFD Sender: No OFD packet to send [17:02:56]OFD Sender: No OFD packet to send [17:03:01]OFD Sender: No OFD packet to send [17:03:06]OFD Sender: No OFD packet to send [17:03:11]OFD Sender: No OFD packet to send [17:03:16]OFD Sender: No OFD packet to send [17:03:21]OFD Sender: No OFD packet to send [17:03:26]OFD Sender: No OFD packet to send [17:03:31]OFD Sender: No OFD packet to send [17:03:36]OFD Sender: No OFD packet to send [17:03:41]OFD Sender: No OFD packet to send [17:03:46]OFD Sender: No OFD packet to send [17:03:51]OFD Sender: No OFD packet to send [17:03:56]OFD Sender: No OFD packet to send [17:04:01]OFD Sender: No OFD packet to send [17:04:06]OFD Sender: No OFD packet to send [17:04:11]OFD Sender: No OFD packet to send [17:04:16]OFD Sender: No OFD packet to send [17:04:21]OFD Sender: No OFD packet to send [17:04:26]OFD Sender: No OFD packet to send [17:04:31]OFD Sender: No OFD packet to send [17:04:36]OFD Sender: No OFD packet to send [17:04:41]OFD Sender: No OFD packet to send [17:04:42]accept exits with 7 [17:04:42]New connection [17:04:42]New thread 3067108708 created [17:04:42]Thread 3067252068 joined [17:04:42]Waiting for new connection... [17:04:42] Sock 7.Parse request [17:04:42]Sock 7.Check first char [17:04:42]Sock 7.First char is OK [17:04:42]request: POST /json_proto HTTP/1.0 [17:04:42]Method: POST [17:04:42]URL: /json_proto [17:04:42]Method is POST - this is cgi request [17:04:42]url: /json_proto [17:04:42]query_string will be loaded in cgi processing [17:04:42]execute_cgi json_proto POST (null) [17:04:42]execute_cgi path=json_proto method=POST [17:04:42]POST find Content-Length [17:04:42]Host: 172.17.44.4:8080 [17:04:42]Content-Length: 691 [17:04:42]Content-Type: application/json [17:04:42] [17:04:42]POST finish read [17:04:42]Found Content-Length = 691 [17:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141010", "tax_sys" : 0, "items" : [ { "code": "4700003610867", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A SPARKLING \u0433\u0430\u0437 \u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 300\u043C\u043B", "price" : 40.00, "quantity" : 2.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" ] } } [17:04:42]execute_script... [17:04: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)141010", "tax_sys" : 0, "items" : [ { "code": "4700003610867", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A SPARKLING \u0433\u0430\u0437 \u043C\u0430\u0440\u0430\u043A\u0443\u0439\u044F 300\u043C\u043B", "price" : 40.00, "quantity" : 2.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" ] } } [17:04:42]POST & json_proto [17:04:42]process_json_proto [17:04:42]json parsed OK: [17:04:42]protocol is kg_v1.0 [17:04:42]action value=close_receipt [17:04:42]process_action close_receipt [17:04:42]cmd_close_receipt [17:04:42]MH_GetDate [17:04:42]Write to MH i2c: F0 00 00 F1 07 E7 [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: F0 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: F0 09 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: F0 09 00 F1 07 00 AB 3C 46 66 6C E9 28 66 66 [17:04:42]GetLastDocTimeStamp 1715878443 [17:04:42]current date 1715879083 [17:04:42]FM_GetShiftState [17:04:42]SAM_PROTO_GetShiftState [17:04:42]wFMCommunicate request_size=4 [17:04:42]MH_SAM_APDU [17:04:42]CAPDU: 80 13 01 00 [17:04:42]Write to MH i2c: E2 08 00 F2 07 80 13 01 00 00 00 00 00 76 [17:04:42]Write i2c OK [17:04:42]MH_I2C_Read... [17:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:42]Read from MH i2c: E2 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 0E 00 [17:04:42]MH_I2C_Read... [17:04:42]Read from MH i2c: E2 0E 00 F2 07 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 82 [17:04:42]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:04:42]wFMCommunicate OK [17:04:42]SAM_PROTO_GetShiftState done [17:04:42]FM_GetShiftState done [17:04:42]opened in 1715818246 [17:04:42]opened+sec_in_day 1715904646 [17:04:42]quantity*price = 8000 [17:04:42]sum+1 = 8001 [17:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 71 16.05.2024 17:04 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5011 ФПД: 60813849064788 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T170443&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5011&fm=60813849064788&tin=02508201610067®Number=0000000000154221&sum=8000 0 [17:04:43]StoreToDocumentArchive [17:04:43]shift 44 fd 5011 [17:04:43]save to /storage/0044/doc_00005011 [17:04:43]save last doc name /storage/0044/doc_00005011 to /storage/kkm_last_doc_name [17:04:43]save OK [17:04:43]Clear old archive folders... [17:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=298 [17:04:43]tlvbuf is 0120CA10 [17:04:43]SAM_PROTO_ClearQueue [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 09 00 00 [17:04:43]Write to MH i2c: E2 08 00 FF 07 80 09 00 00 00 00 00 00 78 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 FF 07 00 90 00 7A [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]SAM_PROTO_ClearQueue done [17:04:43]KKMCreateOFDPacket [17:04:43]OFDProtocolAddRootSTLVToBuf [17:04:43]FM_MakeSignedData [17:04:43]FM_MakeSignedData [17:04:43]SAM_PROTO_SignData [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 01 02 [17:04:43]Write to MH i2c: E2 08 00 00 08 80 0D 01 02 00 00 00 00 81 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 00 08 00 90 00 7C [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=255 [17:04:43]MH_SAM_APDU [17:04:43]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 33 36 31 30 38 36 37 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 50 41 52 4B 4C 49 4E 47 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 33 30 30 D0 BC D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 47 00 00 00 F4 03 04 00 AB 3C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [17:04:43]Write to MH i2c: E2 02 01 01 08 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 38 36 37 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 50 41 52 4B 4C 49 4E 47 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 33 30 30 D0 BC D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 47 00 00 00 F4 03 04 00 AB 3C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 A7 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 01 08 00 90 00 7D [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=57 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 93 13 00 00 35 04 06 00 37 4F 53 DE F5 54 [17:04:43]Write to MH i2c: E2 3C 00 02 08 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 93 13 00 00 35 04 06 00 37 4F 53 DE F5 54 00 00 DF [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 03 00 02 08 00 90 00 7E [17:04:43]RAPDU: 90 00 [17:04:43]wFMCommunicate OK [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 0D 03 02 [17:04:43]Write to MH i2c: E2 08 00 03 08 80 0D 03 02 00 00 00 00 86 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 0B 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 0B 00 03 08 00 CF CE 1A 89 F2 EA 80 1E 90 00 41 [17:04:43]RAPDU: CF CE 1A 89 F2 EA 80 1E 90 00 [17:04:43]wFMCommunicate OK [17:04:43]SAM_PROTO_SignData done [17:04:43]FM_MakeSignedData done [17:04:43]CreateOFDProtocolMessage [17:04:43]wFMCommunicate request_size=4 [17:04:43]MH_SAM_APDU [17:04:43]CAPDU: 80 11 00 00 [17:04:43]Write to MH i2c: E2 08 00 04 08 80 11 00 00 00 00 00 00 86 [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:43]Read from MH i2c: E2 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 17 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: E2 17 00 04 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 DB [17:04:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:04:43]wFMCommunicate OK [17:04:43]CreateOFDProtocolMessage done [17:04:43]OFDSenderStorePacket 5011 [17:04:43]StoreOFDPacket docnum=5011 [17:04:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 3E 01 00 00 BB C9 36 01 B9 17 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 33 36 31 30 38 36 37 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 50 41 52 4B 4C 49 4E 47 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 33 30 30 D0 BC D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 47 00 00 00 F4 03 04 00 AB 3C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 93 13 00 00 35 04 06 00 37 4F 53 DE F5 54 CF CE 1A 89 F2 EA 80 1E [17:04:43]CheckFolder [17:04:43]dirname=/storage/ofd_packets [17:04:43]CheckFolder done [17:04:43]ProducePacketName [17:04:43]name=ofd_packets/00005011 [17:04:43]NVStorageSaveData ofd_packets/00005011 [17:04:43]File name is /storage/ofd_packets/00005011 [17:04:43]Write 348 bytes [17:04:43]NVStorageSaveData done [17:04:43]OFDSenderStorePacket done [17:04:43]KKMCreateOFDPacket done [17:04:43]NVStorageSaveData kkm_last_timestamp [17:04:43]File name is /storage/kkm_last_timestamp [17:04:43]Write 4 bytes [17:04:43]NVStorageSaveData done [17:04:43]ExternCall_PrintAddStr [17:04:43]wPrintStart [17:04:43]Write to MH i2c: 01 00 00 05 08 0D [17:04:43]OFD Sender: Processing packet 5011 [packets to send 4, broken 3] [17:04:43]ProducePacketName [17:04:43]name=ofd_packets/00005011 [17:04:43]OFD Sender: To server: pG, [17:04:43]CommunicateWithHost lk.salyk.kg:30040 [17:04:43]ConnectInit lk.salyk.kg [17:04:43]Write i2c OK [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 07 00 [17:04:43]MH_I2C_Read... [17:04:43]Read from MH i2c: 01 07 00 05 08 00 00 00 00 00 FF 0F 22 [17:04:43]RasterBufferAndPrint [17:04:43]line Счет N : (3)141010 [17:04:43]line ИНН: 02508201610067 [17:04:43]line Контрольно-Кассовый Чек [17:04:43]line ПРОДАЖА [17:04:43]line Товар: 4700003610867 [17:04:43]line Напиток SPARKLING газ маракуйя 300мл [17:04:43]line 2.000 * 40.00 [17:04:43]line = 80.00 [17:04:43]line НДС 12% НСП 1% [17:04:43]line > о реализуемом товаре [17:04:43]line ИТОГО: 80.00 [17:04:43]line НСП 1% : 0.71 [17:04:43]line НДС 12% : 8.50 [17:04:43]line Наличными: 80.00 [17:04:43]line Безнал.: 0.00 [17:04:43]line Место: АЗС № 135 "Партнер Нефть" [17:04:43]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [17:04:43]line СНО: Общий режим [17:04:43]line Чек 71 16.05.2024 17:04 [17:04:43]line Смена: 44 ФФД: 1.0 [17:04:43]line ЗНМ: 0300000237 [17:04:43]line РНМ: 0000000000154221 [17:04:43]line Версия ККМ: v1.0 [17:04:43]line ФМ: 0000000000963259 [17:04:43]line ФД: 5011 [17:04:43]line ФПД: 60813849064788 [17:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T170443&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5011&fm=60813849064788&tin=02508201610067®Number=0000000000154221&sum=8000 [17:04:44]line 0 [17:04:44]Connected sock=10 [17:04:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 3E 01 00 00 BB C9 36 01 B9 17 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 33 36 31 30 38 36 37 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 50 41 52 4B 4C 49 4E 47 20 D0 B3 D0 B0 D0 B7 20 D0 BC D0 B0 D1 80 D0 B0 D0 BA D1 83 D0 B9 D1 8F 20 33 30 30 D0 BC D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 47 00 00 00 F4 03 04 00 AB 3C 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 93 13 00 00 35 04 06 00 37 4F 53 DE F5 54 CF CE 1A 89 F2 EA 80 1E [17:04:44]written 0, free lines is 4095 [17:04:44]Write to MH i2c: 01 00 00 2E 08 36 [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: 01 07 00 2E 08 00 00 00 00 00 8D 0C D6 [17:04:44]RasterBufferAndPrint [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]line [17:04:44]written 0, free lines is 3219 [17:04:44]MH_Cut [17:04:44]Write to MH i2c: D1 01 00 35 08 01 0F [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 01 00 [17:04:44]MH_I2C_Read... [17:04:44]Read from MH i2c: D1 01 00 35 08 00 0E [17:04:44]Write to MH i2c: 01 00 00 36 08 3E [17:04:44]Write i2c OK [17:04:44]MH_I2C_Read... [17:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 92 0C 47 00 E3 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 93 13 00 00 F4 03 04 00 6E E8 45 66 B6 04 01 00 00 C1 4B 27 95 6F 95 19 BF [17:04:44]CommunicateWithHost err = 0 [17:04:44]CheckOFDResponse [17:04:44]1017 (14) - 77093643461234 [17:04:44]1041 (16) - 0000000000963259 [17:04:44]1040 (4) - 5011 [17:04:44]1012 (4) - 16.05.2024 11:05 [17:04:44]1206 (1) - 0 [17:04:44]OFD Sender: Remove packet 5011 [17:04:44]ProducePacketName [17:04:44]name=ofd_packets/00005011 [17:04:44]NVStorageDeleteData [17:04:45]OFD Sender: No OFD packet to send [17:04:45]*** Cut start [17:04:45]*** Partial cut [17:04:45]*** CUTSNS_PIN = 1 [17:04:45]*** CUTSNS_PIN = 0 [17:04:46]*** Brake cut motor [17:04:46]Read from MH i2c: 01 [17:04:46]MH_I2C_Read... [17:04:46]*** Stop cut motor [17:04:46]*** Cut end [17:04:46]Read from MH i2c: 01 07 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: 01 07 00 36 08 00 00 00 00 00 FF 0F 53 [17:04:46]process_action close_receipt done [17:04:46]requested_data is exist [17:04:46]produce_requested_data [17:04:46]requested_item fm.sn is exist - process it [17:04:46]wFMCommunicate request_size=4 [17:04:46]MH_SAM_APDU [17:04:46]CAPDU: 80 11 00 00 [17:04:46]Write to MH i2c: E2 08 00 37 08 80 11 00 00 00 00 00 00 B9 [17:04:46]Write i2c OK [17:04:46]MH_I2C_Read... [17:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:04:46]Read from MH i2c: E2 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 17 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 17 00 37 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 0E [17:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:04:46]wFMCommunicate OK [17:04:46]requested_item fd.num is exist - process it [17:04:46]SAM_PROTO_GetFieldsCounters [17:04:46]wFMCommunicate request_size=4 [17:04:46]MH_SAM_APDU [17:04:46]CAPDU: 80 13 00 00 [17:04:46]Write to MH i2c: E2 08 00 38 08 80 13 00 00 00 00 00 00 BC [17:04:46]Write i2c OK [17:04:46]MH_I2C_Read... [17:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:04:46]Read from MH i2c: E2 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 62 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 62 00 38 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 93 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [17:04:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 93 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:04:46]wFMCommunicate OK [17:04:46]SAM_PROTO_GetFieldsCounters done [17:04:46]requested_item shift.num is exist - process it [17:04:46]requested_item shift.opened is exist - process it [17:04:46]req_shift_opened [17:04:46]FM_GetShiftState [17:04:46]SAM_PROTO_GetShiftState [17:04:46]wFMCommunicate request_size=4 [17:04:46]MH_SAM_APDU [17:04:46]CAPDU: 80 13 01 00 [17:04:46]Write to MH i2c: E2 08 00 39 08 80 13 01 00 00 00 00 00 BE [17:04:46]Write i2c OK [17:04:46]MH_I2C_Read... [17:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:04:46]Read from MH i2c: E2 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 0E 00 [17:04:46]MH_I2C_Read... [17:04:46]Read from MH i2c: E2 0E 00 39 08 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CA [17:04:46]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:04:46]wFMCommunicate OK [17:04:46]SAM_PROTO_GetShiftState done [17:04:46]FM_GetShiftState done [17:04:46]req_shift_opened done [17:04:46]requested_item shift.open_date is exist - process it [17:04:46]req_shift_open_date [17:04:46]req_shift_open_date done [17:04:46]produce_requested_data done [17:04:46]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5011,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [17:04:46]process_action_free close_receipt [17:04:46]json_value_free [17:04:46]json_value_free done [17:04:46]process_json_proto returns [17:04:46]Send response to host [17:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5011,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [17:04:46]free response buf [17:04:46]execute_script done [17:04:46]execute_script returns [17:04:46]free content buf [17:04:46]Sock 7.Close socket [17:04:46]Sock 7.Thread stoped [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:15]OFD Sender: No OFD packet to send [17:10:20]OFD Sender: No OFD packet to send [17:10:25]OFD Sender: No OFD packet to send [17:10:30]OFD Sender: No OFD packet to send [17:10:35]OFD Sender: No OFD packet to send [17:10:40]OFD Sender: No OFD packet to send [17:10:45]OFD Sender: No OFD packet to send [17:10:50]OFD Sender: No OFD packet to send [17:10:55]OFD Sender: No OFD packet to send [17:11:00]OFD Sender: No OFD packet to send [17:11:05]OFD Sender: No OFD packet to send [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:52]accept exits with 9 [17:14:52]New connection [17:14:52]New thread 3067252068 created [17:14:52]Thread 3067108708 joined [17:14:52]Waiting for new connection... [17:14:52] Sock 9.Parse request [17:14:52]Sock 9.Check first char [17:14:52]Sock 9.First char is OK [17:14:52]request: POST /json_proto HTTP/1.0 [17:14:52]Method: POST [17:14:52]URL: /json_proto [17:14:52]Method is POST - this is cgi request [17:14:52]url: /json_proto [17:14:52]query_string will be loaded in cgi processing [17:14:52]execute_cgi json_proto POST (null) [17:14:52]execute_cgi path=json_proto method=POST [17:14:52]POST find Content-Length [17:14:52]Host: 172.17.44.4:8080 [17:14:52]Content-Length: 683 [17:14:52]Content-Type: application/json [17:14:52] [17:14:52]POST finish read [17:14:52]Found Content-Length = 683 [17:14:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 20.500, "sum" : 1500.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:52]execute_script... [17:14:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1992994", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 20.500, "sum" : 1500.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:52]POST & json_proto [17:14:52]process_json_proto [17:14:52]json parsed OK: [17:14:52]protocol is kg_v1.0 [17:14:52]action value=close_receipt [17:14:52]process_action close_receipt [17:14:52]cmd_close_receipt [17:14:52]MH_GetDate [17:14:52]Write to MH i2c: F0 00 00 3A 08 31 [17:14:52]Write i2c OK [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: F0 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: F0 09 00 [17:14:52]MH_I2C_Read... [17:14:52]Read from MH i2c: F0 09 00 3A 08 00 0E 3F 46 66 6C E9 28 66 16 [17:14:52]GetLastDocTimeStamp 1715879083 [17:14:52]current date 1715879694 [17:14:52]FM_GetShiftState [17:14:52]SAM_PROTO_GetShiftState [17:14:52]wFMCommunicate request_size=4 [17:14:52]MH_SAM_APDU [17:14:52]CAPDU: 80 13 01 00 [17:14:52]Write to MH i2c: E2 08 00 3B 08 80 13 01 00 00 00 00 00 C0 [17:14:52]Write i2c OK [17:14:52]MH_I2C_Read... [17:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:53]Read from MH i2c: E2 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 0E 00 [17:14:53]MH_I2C_Read... [17:14:53]Read from MH i2c: E2 0E 00 3B 08 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CC [17:14:53]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:14:53]wFMCommunicate OK [17:14:53]SAM_PROTO_GetShiftState done [17:14:53]FM_GetShiftState done [17:14:53]opened in 1715818246 [17:14:53]opened+sec_in_day 1715904646 [17:14:53]quantity*price = 150060 [17:14:53]sum+1 = 150061 [17:14:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.36 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 72 16.05.2024 17:14 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5012 ФПД: 16112105699967 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T171454&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5012&fm=16112105699967&tin=02508201610067®Number=0000000000154221&sum=150000 [17:14:54]StoreToDocumentArchive [17:14:54]shift 44 fd 5012 [17:14:54]save to /storage/0044/doc_00005012 [17:14:54]save last doc name /storage/0044/doc_00005012 to /storage/kkm_last_doc_name [17:14:54]save OK [17:14:54]Clear old archive folders... [17:14:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:54]tlvbuf is 0120C0D0 [17:14:54]SAM_PROTO_ClearQueue [17:14:54]wFMCommunicate request_size=4 [17:14:54]MH_SAM_APDU [17:14:54]CAPDU: 80 09 00 00 [17:14:54]Write to MH i2c: E2 08 00 48 08 80 09 00 00 00 00 00 00 C2 [17:14:54]Write i2c OK [17:14:54]MH_I2C_Read... [17:14:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:54]Read from MH i2c: E2 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 48 08 00 90 00 C4 [17:14:54]RAPDU: 90 00 [17:14:54]wFMCommunicate OK [17:14:54]SAM_PROTO_ClearQueue done [17:14:54]KKMCreateOFDPacket [17:14:54]OFDProtocolAddRootSTLVToBuf [17:14:54]FM_MakeSignedData [17:14:54]FM_MakeSignedData [17:14:54]SAM_PROTO_SignData [17:14:54]wFMCommunicate request_size=4 [17:14:54]MH_SAM_APDU [17:14:54]CAPDU: 80 0D 01 02 [17:14:54]Write to MH i2c: E2 08 00 49 08 80 0D 01 02 00 00 00 00 CA [17:14:54]Write i2c OK [17:14:54]MH_I2C_Read... [17:14:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:54]Read from MH i2c: E2 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 49 08 00 90 00 C5 [17:14:54]RAPDU: 90 00 [17:14:54]wFMCommunicate OK [17:14:54]wFMCommunicate request_size=255 [17:14:54]MH_SAM_APDU [17:14:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 50 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 2C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 0E 3F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 94 13 00 00 35 04 06 00 0E [17:14:54]Write to MH i2c: E2 02 01 4A 08 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 50 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 2C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 0E 3F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 94 13 00 00 35 04 06 00 0E 00 00 AB [17:14:54]Write i2c OK [17:14:54]MH_I2C_Read... [17:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:54]Read from MH i2c: E2 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 4A 08 00 90 00 C6 [17:14:54]RAPDU: 90 00 [17:14:54]wFMCommunicate OK [17:14:54]wFMCommunicate request_size=10 [17:14:54]MH_SAM_APDU [17:14:54]CAPDU: 80 0D 02 02 05 A7 64 56 3A 7F [17:14:54]Write to MH i2c: E2 0D 00 4B 08 80 0D 02 02 05 00 A7 64 56 3A 7F 00 00 F1 [17:14:54]Write i2c OK [17:14:54]MH_I2C_Read... [17:14:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:54]Read from MH i2c: E2 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 03 00 4B 08 00 90 00 C7 [17:14:54]RAPDU: 90 00 [17:14:54]wFMCommunicate OK [17:14:54]wFMCommunicate request_size=4 [17:14:54]MH_SAM_APDU [17:14:54]CAPDU: 80 0D 03 02 [17:14:54]Write to MH i2c: E2 08 00 4C 08 80 0D 03 02 00 00 00 00 CF [17:14:54]Write i2c OK [17:14:54]MH_I2C_Read... [17:14:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:54]Read from MH i2c: E2 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 0B 00 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 0B 00 4C 08 00 86 01 08 A9 2C C4 EA BA 90 00 9C [17:14:54]RAPDU: 86 01 08 A9 2C C4 EA BA 90 00 [17:14:54]wFMCommunicate OK [17:14:54]SAM_PROTO_SignData done [17:14:54]FM_MakeSignedData done [17:14:54]CreateOFDProtocolMessage [17:14:54]wFMCommunicate request_size=4 [17:14:54]MH_SAM_APDU [17:14:54]CAPDU: 80 11 00 00 [17:14:54]Write to MH i2c: E2 08 00 4D 08 80 11 00 00 00 00 00 00 CF [17:14:54]Write i2c OK [17:14:54]MH_I2C_Read... [17:14:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:54]Read from MH i2c: E2 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 17 00 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: E2 17 00 4D 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 24 [17:14:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:14:54]wFMCommunicate OK [17:14:54]CreateOFDProtocolMessage done [17:14:54]OFDSenderStorePacket 5012 [17:14:54]StoreOFDPacket docnum=5012 [17:14:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 D2 16 07 01 8A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 50 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 2C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 0E 3F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 94 13 00 00 35 04 06 00 0E A7 64 56 3A 7F 86 01 08 A9 2C C4 EA BA [17:14:54]CheckFolder [17:14:54]dirname=/storage/ofd_packets [17:14:54]CheckFolder done [17:14:54]ProducePacketName [17:14:54]name=ofd_packets/00005012 [17:14:54]NVStorageSaveData ofd_packets/00005012 [17:14:54]File name is /storage/ofd_packets/00005012 [17:14:54]Write 301 bytes [17:14:54]NVStorageSaveData done [17:14:54]OFDSenderStorePacket done [17:14:54]KKMCreateOFDPacket done [17:14:54]NVStorageSaveData kkm_last_timestamp [17:14:54]File name is /storage/kkm_last_timestamp [17:14:54]Write 4 bytes [17:14:54]NVStorageSaveData done [17:14:54]ExternCall_PrintAddStr [17:14:54]wPrintStart [17:14:54]Write to MH i2c: 01 00 00 4E 08 56 [17:14:54]Write i2c OK [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: 01 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: 01 07 00 [17:14:54]MH_I2C_Read... [17:14:54]Read from MH i2c: 01 07 00 4E 08 00 00 00 00 00 FF 0F 6B [17:14:54]RasterBufferAndPrint [17:14:54]line Счет N : (1)1992994 [17:14:54]line ИНН: 02508201610067 [17:14:54]line Контрольно-Кассовый Чек [17:14:54]line ПРОДАЖА [17:14:54]line ТРК (МРК, ГНК) : 42 [17:14:54]line Товар: 2710124500 [17:14:54]line Аи-95-К-5 [17:14:54]line 20.500 * 73.20 [17:14:54]line = 1500.60 [17:14:54]line НДС 12% НСП 1% [17:14:54]line > о реализуемом товаре [17:14:54]line ОКРУГЛЕНИЕ: -0.60 [17:14:54]line ИТОГО: 1500.00 [17:14:54]line Внесено: 1500.00 [17:14:54]line СДАЧА: 0.00 [17:14:54]line НСП 1% : 13.28 [17:14:54]line НДС 12% : 159.36 [17:14:54]line Наличными: 1500.00 [17:14:54]line Безнал.: 0.00 [17:14:54]line Место: АЗС № 135 "Партнер Нефть" [17:14:54]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [17:14:54]line СНО: Общий режим [17:14:54]line Чек 72 16.05.2024 17:14 [17:14:54]line Смена: 44 ФФД: 1.0 [17:14:54]line ЗНМ: 0300000237 [17:14:54]line РНМ: 0000000000154221 [17:14:54]line Версия ККМ: v1.0 [17:14:54]line ФМ: 0000000000963259 [17:14:54]line ФД: 5012 [17:14:54]line ФПД: 16112105699967 [17:14:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T171454&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5012&fm=16112105699967&tin=02508201610067®Number=0000000000154221&sum=150000 [17:14:55]OFD Sender: Processing packet 5012 [packets to send 4, broken 3] [17:14:55]ProducePacketName [17:14:55]name=ofd_packets/00005012 [17:14:55]OFD Sender: To server: pG, [17:14:55]CommunicateWithHost lk.salyk.kg:30040 [17:14:55]ConnectInit lk.salyk.kg [17:14:55]written 0, free lines is 4095 [17:14:55]Write to MH i2c: 01 00 00 79 08 81 [17:14:55]Write i2c OK [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: 01 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: 01 07 00 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: 01 07 00 79 08 00 00 00 00 00 70 0C 04 [17:14:55]RasterBufferAndPrint [17:14:55]line [17:14:55]line [17:14:55]line [17:14:55]line [17:14:55]line [17:14:55]written 0, free lines is 3186 [17:14:55]MH_Cut [17:14:55]Write to MH i2c: D1 01 00 80 08 01 5A [17:14:55]Write i2c OK [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: D1 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: D1 01 00 [17:14:55]MH_I2C_Read... [17:14:55]Read from MH i2c: D1 01 00 80 08 00 59 [17:14:55]Write to MH i2c: 01 00 00 81 08 89 [17:14:55]Write i2c OK [17:14:55]MH_I2C_Read... [17:14:56]Connected sock=11 [17:14:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 D2 16 07 01 8A 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 14 50 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 2C 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 0E 3F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 94 13 00 00 35 04 06 00 0E A7 64 56 3A 7F 86 01 08 A9 2C C4 EA BA [17:14:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 D6 D4 47 00 B8 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 94 13 00 00 F4 03 04 00 D2 EA 45 66 B6 04 01 00 00 F1 77 3D 12 DD D4 44 25 [17:14:56]CommunicateWithHost err = 0 [17:14:56]CheckOFDResponse [17:14:56]1017 (14) - 77093643461234 [17:14:56]1041 (16) - 0000000000963259 [17:14:56]1040 (4) - 5012 [17:14:56]1012 (4) - 16.05.2024 11:15 [17:14:56]1206 (1) - 0 [17:14:56]OFD Sender: Remove packet 5012 [17:14:56]ProducePacketName [17:14:56]name=ofd_packets/00005012 [17:14:56]NVStorageDeleteData [17:14:56]*** Cut start [17:14:56]*** Partial cut [17:14:56]*** CUTSNS_PIN = 1 [17:14:56]*** CUTSNS_PIN = 0 [17:14:56]OFD Sender: No OFD packet to send [17:14:56]*** Brake cut motor [17:14:57]Read from MH i2c: 01 [17:14:57]MH_I2C_Read... [17:14:57]*** Stop cut motor [17:14:57]*** Cut end [17:14:57]Read from MH i2c: 01 07 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: 01 07 00 81 08 00 00 00 00 00 FF 0F 9E [17:14:57]process_action close_receipt done [17:14:57]requested_data is exist [17:14:57]produce_requested_data [17:14:57]requested_item fm.sn is exist - process it [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 11 00 00 [17:14:57]Write to MH i2c: E2 08 00 82 08 80 11 00 00 00 00 00 00 04 [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 17 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 17 00 82 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 59 [17:14:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:14:57]wFMCommunicate OK [17:14:57]requested_item fd.num is exist - process it [17:14:57]SAM_PROTO_GetFieldsCounters [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 13 00 00 [17:14:57]Write to MH i2c: E2 08 00 83 08 80 13 00 00 00 00 00 00 07 [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 62 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 62 00 83 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 94 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [17:14:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 94 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:14:57]wFMCommunicate OK [17:14:57]SAM_PROTO_GetFieldsCounters done [17:14:57]requested_item shift.num is exist - process it [17:14:57]requested_item shift.opened is exist - process it [17:14:57]req_shift_opened [17:14:57]FM_GetShiftState [17:14:57]SAM_PROTO_GetShiftState [17:14:57]wFMCommunicate request_size=4 [17:14:57]MH_SAM_APDU [17:14:57]CAPDU: 80 13 01 00 [17:14:57]Write to MH i2c: E2 08 00 84 08 80 13 01 00 00 00 00 00 09 [17:14:57]Write i2c OK [17:14:57]MH_I2C_Read... [17:14:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:57]Read from MH i2c: E2 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 0E 00 [17:14:57]MH_I2C_Read... [17:14:57]Read from MH i2c: E2 0E 00 84 08 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 15 [17:14:57]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:14:57]wFMCommunicate OK [17:14:57]SAM_PROTO_GetShiftState done [17:14:57]FM_GetShiftState done [17:14:57]req_shift_opened done [17:14:57]requested_item shift.open_date is exist - process it [17:14:57]req_shift_open_date [17:14:57]req_shift_open_date done [17:14:57]produce_requested_data done [17:14:57]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5012,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [17:14:57]process_action_free close_receipt [17:14:57]json_value_free [17:14:57]json_value_free done [17:14:57]process_json_proto returns [17:14:57]Send response to host [17:14:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5012,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [17:14:57]free response buf [17:14:57]execute_script done [17:14:57]execute_script returns [17:14:57]free content buf [17:14:57]Sock 9.Close socket [17:14:57]Sock 9.Thread stoped [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]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:42]OFD Sender: No OFD packet to send [17:18:47]OFD Sender: No OFD packet to send [17:18:52]OFD Sender: No OFD packet to send [17:18:57]OFD Sender: No OFD packet to send [17:19:02]OFD Sender: No OFD packet to send [17:19:07]OFD Sender: No OFD packet to send [17:19:10]accept exits with 7 [17:19:10]New connection [17:19:10]New thread 3067108708 created [17:19:10] Sock 7.Parse request [17:19:10]Thread 3067252068 joined [17:19:10]Sock 7.Check first char [17:19:10]Waiting for new connection... [17:19:10]Sock 7.First char is OK [17:19:10]request: POST /json_proto HTTP/1.0 [17:19:10]Method: POST [17:19:10]URL: /json_proto [17:19:10]Method is POST - this is cgi request [17:19:10]url: /json_proto [17:19:10]query_string will be loaded in cgi processing [17:19:10]execute_cgi json_proto POST (null) [17:19:10]execute_cgi path=json_proto method=POST [17:19:10]POST find Content-Length [17:19:10]Host: 172.17.44.4:8080 [17:19:10]Content-Length: 568 [17:19:10]Content-Type: application/json [17:19:10] [17:19:10]POST finish read [17:19:10]Found Content-Length = 568 [17:19:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141011", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD 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" ] } } [17:19:10]execute_script... [17:19: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)141011", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD 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" ] } } [17:19:10]POST & json_proto [17:19:10]process_json_proto [17:19:10]json parsed OK: [17:19:10]protocol is kg_v1.0 [17:19:10]action value=close_receipt [17:19:10]process_action close_receipt [17:19:10]cmd_close_receipt [17:19:10]MH_GetDate [17:19:10]Write to MH i2c: F0 00 00 85 08 7C [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: F0 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: F0 09 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: F0 09 00 85 08 00 0F 40 46 66 6C E9 28 66 63 [17:19:10]GetLastDocTimeStamp 1715879694 [17:19:10]current date 1715879951 [17:19:10]FM_GetShiftState [17:19:10]SAM_PROTO_GetShiftState [17:19:10]wFMCommunicate request_size=4 [17:19:10]MH_SAM_APDU [17:19:10]CAPDU: 80 13 01 00 [17:19:10]Write to MH i2c: E2 08 00 86 08 80 13 01 00 00 00 00 00 0B [17:19:10]Write i2c OK [17:19:10]MH_I2C_Read... [17:19:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:10]Read from MH i2c: E2 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 0E 00 [17:19:10]MH_I2C_Read... [17:19:10]Read from MH i2c: E2 0E 00 86 08 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 17 [17:19:10]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:19:10]wFMCommunicate OK [17:19:10]SAM_PROTO_GetShiftState done [17:19:10]FM_GetShiftState done [17:19:10]opened in 1715818246 [17:19:10]opened+sec_in_day 1715904646 [17:19:10]quantity*price = 12500 [17:19:10]sum+1 = 12501 [17:19:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 73 16.05.2024 17:19 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5013 ФПД: 84915510733879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T171911&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5013&fm=84915510733879&tin=02508201610067®Number=0000000000154221&sum=12500 0 [17:19:11]StoreToDocumentArchive [17:19:11]shift 44 fd 5013 [17:19:11]save to /storage/0044/doc_00005013 [17:19:11]save last doc name /storage/0044/doc_00005013 to /storage/kkm_last_doc_name [17:19:11]save OK [17:19:11]Clear old archive folders... [17:19:11]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:19:11]tlvbuf is 0115C5C0 [17:19:11]SAM_PROTO_ClearQueue [17:19:11]wFMCommunicate request_size=4 [17:19:11]MH_SAM_APDU [17:19:11]CAPDU: 80 09 00 00 [17:19:11]Write to MH i2c: E2 08 00 93 08 80 09 00 00 00 00 00 00 0D [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:19:11]Read from MH i2c: E2 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 03 00 [17:19:11]MH_I2C_Read... [17:19:11]Read from MH i2c: E2 03 00 93 08 00 90 00 0F [17:19:11]RAPDU: 90 00 [17:19:11]wFMCommunicate OK [17:19:11]SAM_PROTO_ClearQueue done [17:19:11]KKMCreateOFDPacket [17:19:11]OFDProtocolAddRootSTLVToBuf [17:19:11]FM_MakeSignedData [17:19:11]FM_MakeSignedData [17:19:11]SAM_PROTO_SignData [17:19:11]wFMCommunicate request_size=4 [17:19:11]MH_SAM_APDU [17:19:11]CAPDU: 80 0D 01 02 [17:19:11]Write to MH i2c: E2 08 00 94 08 80 0D 01 02 00 00 00 00 15 [17:19:11]Write i2c OK [17:19:11]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 03 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 03 00 94 08 00 90 00 10 [17:19:12]RAPDU: 90 00 [17:19:12]wFMCommunicate OK [17:19:12]wFMCommunicate request_size=255 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 49 00 00 00 F4 03 04 00 0F 40 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 95 13 00 00 35 04 06 00 [17:19:12]Write to MH i2c: E2 02 01 95 08 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 49 00 00 00 F4 03 04 00 0F 40 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 95 13 00 00 35 04 06 00 00 00 2D [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]OFD Sender: No OFD packet to send [17:19:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 03 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 03 00 95 08 00 90 00 11 [17:19:12]RAPDU: 90 00 [17:19:12]wFMCommunicate OK [17:19:12]wFMCommunicate request_size=11 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 0D 02 02 06 4D 3A EE DA 6C 37 [17:19:12]Write to MH i2c: E2 0E 00 96 08 80 0D 02 02 06 00 4D 3A EE DA 6C 37 00 00 16 [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 03 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 03 00 96 08 00 90 00 12 [17:19:12]RAPDU: 90 00 [17:19:12]wFMCommunicate OK [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 0D 03 02 [17:19:12]Write to MH i2c: E2 08 00 97 08 80 0D 03 02 00 00 00 00 1A [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 0B 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 0B 00 97 08 00 1A 0E 96 88 4E 68 77 ED 90 00 7B [17:19:12]RAPDU: 1A 0E 96 88 4E 68 77 ED 90 00 [17:19:12]wFMCommunicate OK [17:19:12]SAM_PROTO_SignData done [17:19:12]FM_MakeSignedData done [17:19:12]CreateOFDProtocolMessage [17:19:12]wFMCommunicate request_size=4 [17:19:12]MH_SAM_APDU [17:19:12]CAPDU: 80 11 00 00 [17:19:12]Write to MH i2c: E2 08 00 98 08 80 11 00 00 00 00 00 00 1A [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:12]Read from MH i2c: E2 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 17 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: E2 17 00 98 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 6F [17:19:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:19:12]wFMCommunicate OK [17:19:12]CreateOFDProtocolMessage done [17:19:12]OFDSenderStorePacket 5013 [17:19:12]StoreOFDPacket docnum=5013 [17:19:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 01 00 00 9A F0 08 01 78 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 49 00 00 00 F4 03 04 00 0F 40 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 95 13 00 00 35 04 06 00 4D 3A EE DA 6C 37 1A 0E 96 88 4E 68 77 ED [17:19:12]CheckFolder [17:19:12]dirname=/storage/ofd_packets [17:19:12]CheckFolder done [17:19:12]ProducePacketName [17:19:12]name=ofd_packets/00005013 [17:19:12]NVStorageSaveData ofd_packets/00005013 [17:19:12]File name is /storage/ofd_packets/00005013 [17:19:12]Write 302 bytes [17:19:12]NVStorageSaveData done [17:19:12]OFDSenderStorePacket done [17:19:12]KKMCreateOFDPacket done [17:19:12]NVStorageSaveData kkm_last_timestamp [17:19:12]File name is /storage/kkm_last_timestamp [17:19:12]Write 4 bytes [17:19:12]NVStorageSaveData done [17:19:12]ExternCall_PrintAddStr [17:19:12]wPrintStart [17:19:12]Write to MH i2c: 01 00 00 99 08 A1 [17:19:12]Write i2c OK [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: 01 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: 01 07 00 [17:19:12]MH_I2C_Read... [17:19:12]Read from MH i2c: 01 07 00 99 08 00 00 00 00 00 FF 0F B6 [17:19:12]RasterBufferAndPrint [17:19:12]line Счет N : (3)141011 [17:19:12]line ИНН: 02508201610067 [17:19:12]line Контрольно-Кассовый Чек [17:19:12]line ПРОДАЖА [17:19:12]line Товар: 48744539 [17:19:12]line LD Compact Blue [17:19:12]line 1.000 * 125.00 [17:19:12]line = 125.00 [17:19:12]line НДС 12% НСП 1% [17:19:12]line > о реализуемом товаре [17:19:12]line ИТОГО: 125.00 [17:19:12]line НСП 1% : 1.11 [17:19:12]line НДС 12% : 13.27 [17:19:12]line Наличными: 125.00 [17:19:12]line Безнал.: 0.00 [17:19:12]line Место: АЗС № 135 "Партнер Нефть" [17:19:12]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [17:19:12]line СНО: Общий режим [17:19:12]line Чек 73 16.05.2024 17:19 [17:19:12]line Смена: 44 ФФД: 1.0 [17:19:12]line ЗНМ: 0300000237 [17:19:12]line РНМ: 0000000000154221 [17:19:12]line Версия ККМ: v1.0 [17:19:12]line ФМ: 0000000000963259 [17:19:12]line ФД: 5013 [17:19:12]line ФПД: 84915510733879 [17:19:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T171911&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5013&fm=84915510733879&tin=02508201610067®Number=0000000000154221&sum=12500 [17:19:12]line 0 [17:19:12]OFD Sender: Processing packet 5013 [packets to send 4, broken 3] [17:19:12]ProducePacketName [17:19:12]name=ofd_packets/00005013 [17:19:12]OFD Sender: To server: pG, [17:19:12]CommunicateWithHost lk.salyk.kg:30040 [17:19:12]ConnectInit lk.salyk.kg [17:19:12]written 0, free lines is 4095 [17:19:12]Connected sock=10 [17:19:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 01 00 00 9A F0 08 01 78 37 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 49 00 00 00 F4 03 04 00 0F 40 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 95 13 00 00 35 04 06 00 4D 3A EE DA 6C 37 1A 0E 96 88 4E 68 77 ED [17:19:13]Write to MH i2c: 01 00 00 C1 08 C9 [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: 01 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: 01 07 00 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: 01 07 00 C1 08 00 00 00 00 00 A4 0C 80 [17:19:13]RasterBufferAndPrint [17:19:13]line [17:19:13]line [17:19:13]line [17:19:13]line [17:19:13]line [17:19:13]written 0, free lines is 3240 [17:19:13]MH_Cut [17:19:13]Write to MH i2c: D1 01 00 C8 08 01 A2 [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: D1 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: D1 01 00 [17:19:13]MH_I2C_Read... [17:19:13]Read from MH i2c: D1 01 00 C8 08 00 A1 [17:19:13]Write to MH i2c: 01 00 00 C9 08 D1 [17:19:13]Write i2c OK [17:19:13]MH_I2C_Read... [17:19:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 D4 85 47 00 DE 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 95 13 00 00 F4 03 04 00 D2 EB 45 66 B6 04 01 00 00 72 29 79 AF 98 8F E0 12 [17:19:13]CommunicateWithHost err = 0 [17:19:13]CheckOFDResponse [17:19:13]1017 (14) - 77093643461234 [17:19:13]1041 (16) - 0000000000963259 [17:19:13]1040 (4) - 5013 [17:19:13]1012 (4) - 16.05.2024 11:19 [17:19:13]1206 (1) - 0 [17:19:13]OFD Sender: Remove packet 5013 [17:19:13]ProducePacketName [17:19:13]name=ofd_packets/00005013 [17:19:13]NVStorageDeleteData [17:19:13]OFD Sender: No OFD packet to send [17:19:14]*** Cut start [17:19:14]*** Partial cut [17:19:14]*** CUTSNS_PIN = 1 [17:19:14]*** CUTSNS_PIN = 0 [17:19:14]*** Brake cut motor [17:19:14]Read from MH i2c: 01 [17:19:14]MH_I2C_Read... [17:19:14]*** Stop cut motor [17:19:14]*** Cut end [17:19:14]Read from MH i2c: 01 07 00 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: 01 07 00 C9 08 00 00 00 00 00 FF 0F E6 [17:19:14]process_action close_receipt done [17:19:14]requested_data is exist [17:19:14]produce_requested_data [17:19:14]requested_item fm.sn is exist - process it [17:19:14]wFMCommunicate request_size=4 [17:19:14]MH_SAM_APDU [17:19:14]CAPDU: 80 11 00 00 [17:19:14]Write to MH i2c: E2 08 00 CA 08 80 11 00 00 00 00 00 00 4C [17:19:14]Write i2c OK [17:19:14]MH_I2C_Read... [17:19:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:19:14]Read from MH i2c: E2 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: E2 17 00 [17:19:14]MH_I2C_Read... [17:19:14]Read from MH i2c: E2 17 00 CA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A1 [17:19:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:19:14]wFMCommunicate OK [17:19:14]requested_item fd.num is exist - process it [17:19:14]SAM_PROTO_GetFieldsCounters [17:19:14]wFMCommunicate request_size=4 [17:19:14]MH_SAM_APDU [17:19:14]CAPDU: 80 13 00 00 [17:19:14]Write to MH i2c: E2 08 00 CB 08 80 13 00 00 00 00 00 00 4F [17:19:14]Write i2c OK [17:19:14]MH_I2C_Read... [17:19:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:19:15]Read from MH i2c: E2 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: E2 62 00 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: E2 62 00 CB 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 95 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [17:19:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 95 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:19:15]wFMCommunicate OK [17:19:15]SAM_PROTO_GetFieldsCounters done [17:19:15]requested_item shift.num is exist - process it [17:19:15]requested_item shift.opened is exist - process it [17:19:15]req_shift_opened [17:19:15]FM_GetShiftState [17:19:15]SAM_PROTO_GetShiftState [17:19:15]wFMCommunicate request_size=4 [17:19:15]MH_SAM_APDU [17:19:15]CAPDU: 80 13 01 00 [17:19:15]Write to MH i2c: E2 08 00 CC 08 80 13 01 00 00 00 00 00 51 [17:19:15]Write i2c OK [17:19:15]MH_I2C_Read... [17:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:15]Read from MH i2c: E2 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: E2 0E 00 [17:19:15]MH_I2C_Read... [17:19:15]Read from MH i2c: E2 0E 00 CC 08 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 5D [17:19:15]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:19:15]wFMCommunicate OK [17:19:15]SAM_PROTO_GetShiftState done [17:19:15]FM_GetShiftState done [17:19:15]req_shift_opened done [17:19:15]requested_item shift.open_date is exist - process it [17:19:15]req_shift_open_date [17:19:15]req_shift_open_date done [17:19:15]produce_requested_data done [17:19:15]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5013,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [17:19:15]process_action_free close_receipt [17:19:15]json_value_free [17:19:15]json_value_free done [17:19:15]process_json_proto returns [17:19:15]Send response to host [17:19:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5013,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [17:19:15]free response buf [17:19:15]execute_script done [17:19:15]execute_script returns [17:19:15]free content buf [17:19:15]Sock 7.Close socket [17:19:15]Sock 7.Thread stoped [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:42]accept exits with 9 [17:21:42]New connection [17:21:42]New thread 3067252068 created [17:21:42]Thread 3067108708 joined [17:21:42]Waiting for new connection... [17:21:42] Sock 9.Parse request [17:21:42]Sock 9.Check first char [17:21:42]Sock 9.First char is OK [17:21:42]request: POST /json_proto HTTP/1.0 [17:21:42]Method: POST [17:21:42]URL: /json_proto [17:21:42]Method is POST - this is cgi request [17:21:42]url: /json_proto [17:21:42]query_string will be loaded in cgi processing [17:21:42]execute_cgi json_proto POST (null) [17:21:42]execute_cgi path=json_proto method=POST [17:21:42]POST find Content-Length [17:21:42]Host: 172.17.44.4:8080 [17:21:42]Content-Length: 649 [17:21:42]Content-Type: application/json [17:21:42] [17:21:42]POST finish read [17:21:42]Found Content-Length = 649 [17:21:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141012", "tax_sys" : 0, "items" : [ { "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 63.00, "quantity" : 1.000, "sum" : 63.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 63.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:42]execute_script... [17:21: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)141012", "tax_sys" : 0, "items" : [ { "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 63.00, "quantity" : 1.000, "sum" : 63.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 63.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:21:42]POST & json_proto [17:21:42]process_json_proto [17:21:42]json parsed OK: [17:21:42]protocol is kg_v1.0 [17:21:42]action value=close_receipt [17:21:42]process_action close_receipt [17:21:42]cmd_close_receipt [17:21:42]MH_GetDate [17:21:42]Write to MH i2c: F0 00 00 CD 08 C4 [17:21:42]Write i2c OK [17:21:42]MH_I2C_Read... [17:21:42]Read from MH i2c: F0 [17:21:42]MH_I2C_Read... [17:21:42]Read from MH i2c: F0 09 00 [17:21:42]MH_I2C_Read... [17:21:42]Read from MH i2c: F0 09 00 CD 08 00 A7 40 46 66 6C E9 28 66 43 [17:21:42]GetLastDocTimeStamp 1715879951 [17:21:42]current date 1715880103 [17:21:42]FM_GetShiftState [17:21:42]SAM_PROTO_GetShiftState [17:21:42]wFMCommunicate request_size=4 [17:21:42]MH_SAM_APDU [17:21:42]CAPDU: 80 13 01 00 [17:21:42]Write to MH i2c: E2 08 00 CE 08 80 13 01 00 00 00 00 00 53 [17:21:42]Write i2c OK [17:21:42]MH_I2C_Read... [17:21:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:42]Read from MH i2c: E2 [17:21:42]MH_I2C_Read... [17:21:42]Read from MH i2c: E2 0E 00 [17:21:42]MH_I2C_Read... [17:21:42]Read from MH i2c: E2 0E 00 CE 08 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 5F [17:21:42]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:21:42]wFMCommunicate OK [17:21:42]SAM_PROTO_GetShiftState done [17:21:42]FM_GetShiftState done [17:21:42]opened in 1715818246 [17:21:42]opened+sec_in_day 1715904646 [17:21:42]quantity*price = 6300 [17:21:42]sum+1 = 6301 [17:21:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 63.00 НСП 1% : 0.56 НДС 12% : 6.69 Наличными: 63.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 74 16.05.2024 17:21 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5014 ФПД: 85795862149668 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T172143&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5014&fm=85795862149668&tin=02508201610067®Number=0000000000154221&sum=6300 0 [17:21:43]StoreToDocumentArchive [17:21:43]shift 44 fd 5014 [17:21:43]save to /storage/0044/doc_00005014 [17:21:43]save last doc name /storage/0044/doc_00005014 to /storage/kkm_last_doc_name [17:21:43]save OK [17:21:43]Clear old archive folders... [17:21:43]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:21:43]tlvbuf is 011F7490 [17:21:43]SAM_PROTO_ClearQueue [17:21:43]wFMCommunicate request_size=4 [17:21:43]MH_SAM_APDU [17:21:43]CAPDU: 80 09 00 00 [17:21:43]Write to MH i2c: E2 08 00 DB 08 80 09 00 00 00 00 00 00 55 [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 DB 08 00 90 00 57 [17:21:43]RAPDU: 90 00 [17:21:43]wFMCommunicate OK [17:21:43]SAM_PROTO_ClearQueue done [17:21:43]KKMCreateOFDPacket [17:21:43]OFDProtocolAddRootSTLVToBuf [17:21:43]FM_MakeSignedData [17:21:43]FM_MakeSignedData [17:21:43]SAM_PROTO_SignData [17:21:43]wFMCommunicate request_size=4 [17:21:43]MH_SAM_APDU [17:21:43]CAPDU: 80 0D 01 02 [17:21:43]Write to MH i2c: E2 08 00 DC 08 80 0D 01 02 00 00 00 00 5D [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 DC 08 00 90 00 58 [17:21:43]RAPDU: 90 00 [17:21:43]wFMCommunicate OK [17:21:43]wFMCommunicate request_size=255 [17:21:43]MH_SAM_APDU [17:21:43]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A7 40 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 [17:21:43]Write to MH i2c: E2 02 01 DD 08 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A7 40 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 00 00 B0 [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 DD 08 00 90 00 59 [17:21:43]RAPDU: 90 00 [17:21:43]wFMCommunicate OK [17:21:43]wFMCommunicate request_size=38 [17:21:43]MH_SAM_APDU [17:21:43]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 96 13 00 00 35 04 06 00 4E 07 E7 E2 FA 24 [17:21:43]Write to MH i2c: E2 29 00 DE 08 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 96 13 00 00 35 04 06 00 4E 07 E7 E2 FA 24 00 00 D0 [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 03 00 DE 08 00 90 00 5A [17:21:43]RAPDU: 90 00 [17:21:43]wFMCommunicate OK [17:21:43]wFMCommunicate request_size=4 [17:21:43]MH_SAM_APDU [17:21:43]CAPDU: 80 0D 03 02 [17:21:43]Write to MH i2c: E2 08 00 DF 08 80 0D 03 02 00 00 00 00 62 [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 0B 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 0B 00 DF 08 00 FD 33 4F A6 CC F9 1A 38 90 00 9F [17:21:43]RAPDU: FD 33 4F A6 CC F9 1A 38 90 00 [17:21:43]wFMCommunicate OK [17:21:43]SAM_PROTO_SignData done [17:21:43]FM_MakeSignedData done [17:21:43]CreateOFDProtocolMessage [17:21:43]wFMCommunicate request_size=4 [17:21:43]MH_SAM_APDU [17:21:43]CAPDU: 80 11 00 00 [17:21:43]Write to MH i2c: E2 08 00 E0 08 80 11 00 00 00 00 00 00 62 [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:43]Read from MH i2c: E2 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 17 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: E2 17 00 E0 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 B7 [17:21:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:21:43]wFMCommunicate OK [17:21:43]CreateOFDProtocolMessage done [17:21:43]OFDSenderStorePacket 5014 [17:21:43]StoreOFDPacket docnum=5014 [17:21:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2B 01 00 00 CA C7 23 01 CC 50 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A7 40 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 96 13 00 00 35 04 06 00 4E 07 E7 E2 FA 24 FD 33 4F A6 CC F9 1A 38 [17:21:43]CheckFolder [17:21:43]dirname=/storage/ofd_packets [17:21:43]CheckFolder done [17:21:43]ProducePacketName [17:21:43]name=ofd_packets/00005014 [17:21:43]NVStorageSaveData ofd_packets/00005014 [17:21:43]File name is /storage/ofd_packets/00005014 [17:21:43]Write 329 bytes [17:21:43]NVStorageSaveData done [17:21:43]OFDSenderStorePacket done [17:21:43]KKMCreateOFDPacket done [17:21:43]NVStorageSaveData kkm_last_timestamp [17:21:43]File name is /storage/kkm_last_timestamp [17:21:43]Write 4 bytes [17:21:43]NVStorageSaveData done [17:21:43]ExternCall_PrintAddStr [17:21:43]wPrintStart [17:21:43]Write to MH i2c: 01 00 00 E1 08 E9 [17:21:43]Write i2c OK [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: 01 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: 01 07 00 [17:21:43]MH_I2C_Read... [17:21:43]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [17:21:43]RasterBufferAndPrint [17:21:43]line Счет N : (3)141012 [17:21:43]line ИНН: 02508201610067 [17:21:43]line Контрольно-Кассовый Чек [17:21:43]line ПРОДАЖА [17:21:43]line Товар: 4607065000790 [17:21:43]line Шок M&M`s с арахисом 45г [17:21:43]line 1.000 * 63.00 [17:21:43]line = 63.00 [17:21:43]line НДС 12% НСП 1% [17:21:43]line > о реализуемом товаре [17:21:43]line ИТОГО: 63.00 [17:21:43]line НСП 1% : 0.56 [17:21:43]line НДС 12% : 6.69 [17:21:43]line Наличными: 63.00 [17:21:43]line Безнал.: 0.00 [17:21:43]line Место: АЗС № 135 "Партнер Нефть" [17:21:43]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [17:21:43]line СНО: Общий режим [17:21:43]line Чек 74 16.05.2024 17:21 [17:21:43]line Смена: 44 ФФД: 1.0 [17:21:43]line ЗНМ: 0300000237 [17:21:43]line РНМ: 0000000000154221 [17:21:43]line Версия ККМ: v1.0 [17:21:43]line ФМ: 0000000000963259 [17:21:43]line ФД: 5014 [17:21:43]line ФПД: 85795862149668 [17:21:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T172143&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5014&fm=85795862149668&tin=02508201610067®Number=0000000000154221&sum=6300 [17:21:44]line 0 [17:21:44]OFD Sender: Processing packet 5014 [packets to send 4, broken 3] [17:21:44]ProducePacketName [17:21:44]name=ofd_packets/00005014 [17:21:44]OFD Sender: To server: pG, [17:21:44]CommunicateWithHost lk.salyk.kg:30040 [17:21:44]ConnectInit lk.salyk.kg [17:21:44]written 0, free lines is 4095 [17:21:44]Connected sock=7 [17:21:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2B 01 00 00 CA C7 23 01 CC 50 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 9C 18 00 00 00 00 13 04 06 00 9C 18 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 9C 18 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 A7 40 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 96 13 00 00 35 04 06 00 4E 07 E7 E2 FA 24 FD 33 4F A6 CC F9 1A 38 [17:21:44]Write to MH i2c: 01 00 00 09 09 12 [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: 01 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: 01 07 00 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: 01 07 00 09 09 00 00 00 00 00 A8 0C CD [17:21:44]RasterBufferAndPrint [17:21:44]line [17:21:44]line [17:21:44]line [17:21:44]line [17:21:44]line [17:21:44]written 0, free lines is 3244 [17:21:44]MH_Cut [17:21:44]Write to MH i2c: D1 01 00 10 09 01 EB [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: D1 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: D1 01 00 [17:21:44]MH_I2C_Read... [17:21:44]Read from MH i2c: D1 01 00 10 09 00 EA [17:21:44]Write to MH i2c: 01 00 00 11 09 1A [17:21:44]Write i2c OK [17:21:44]MH_I2C_Read... [17:21:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 39 FD 47 00 56 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 96 13 00 00 F4 03 04 00 6A EC 45 66 B6 04 01 00 00 74 1A 39 11 D6 08 8B 94 [17:21:44]CommunicateWithHost err = 0 [17:21:44]CheckOFDResponse [17:21:44]1017 (14) - 77093643461234 [17:21:44]1041 (16) - 0000000000963259 [17:21:44]1040 (4) - 5014 [17:21:44]1012 (4) - 16.05.2024 11:22 [17:21:44]1206 (1) - 0 [17:21:44]OFD Sender: Remove packet 5014 [17:21:44]ProducePacketName [17:21:44]name=ofd_packets/00005014 [17:21:44]NVStorageDeleteData [17:21:45]OFD Sender: No OFD packet to send [17:21:45]*** Cut start [17:21:45]*** Partial cut [17:21:45]*** CUTSNS_PIN = 1 [17:21:45]*** CUTSNS_PIN = 0 [17:21:45]*** Brake cut motor [17:21:46]Read from MH i2c: 01 [17:21:46]MH_I2C_Read... [17:21:46]*** Stop cut motor [17:21:46]*** Cut end [17:21:46]Read from MH i2c: 01 07 00 [17:21:46]MH_I2C_Read... [17:21:46]Read from MH i2c: 01 07 00 11 09 00 00 00 00 00 FF 0F 2F [17:21:46]process_action close_receipt done [17:21:46]requested_data is exist [17:21:46]produce_requested_data [17:21:46]requested_item fm.sn is exist - process it [17:21:46]wFMCommunicate request_size=4 [17:21:46]MH_SAM_APDU [17:21:46]CAPDU: 80 11 00 00 [17:21:46]Write to MH i2c: E2 08 00 12 09 80 11 00 00 00 00 00 00 95 [17:21:46]Write i2c OK [17:21:46]MH_I2C_Read... [17:21:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:46]Read from MH i2c: E2 [17:21:46]MH_I2C_Read... [17:21:46]Read from MH i2c: E2 17 00 [17:21:46]MH_I2C_Read... [17:21:46]Read from MH i2c: E2 17 00 12 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 EA [17:21:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:21:46]wFMCommunicate OK [17:21:46]requested_item fd.num is exist - process it [17:21:46]SAM_PROTO_GetFieldsCounters [17:21:46]wFMCommunicate request_size=4 [17:21:46]MH_SAM_APDU [17:21:46]CAPDU: 80 13 00 00 [17:21:46]Write to MH i2c: E2 08 00 13 09 80 13 00 00 00 00 00 00 98 [17:21:46]Write i2c OK [17:21:46]MH_I2C_Read... [17:21:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:46]Read from MH i2c: E2 [17:21:46]MH_I2C_Read... [17:21:46]Read from MH i2c: E2 62 00 [17:21:46]MH_I2C_Read... [17:21:46]Read from MH i2c: E2 62 00 13 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 96 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [17:21:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 96 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:46]wFMCommunicate OK [17:21:46]SAM_PROTO_GetFieldsCounters done [17:21:46]requested_item shift.num is exist - process it [17:21:46]requested_item shift.opened is exist - process it [17:21:46]req_shift_opened [17:21:46]FM_GetShiftState [17:21:46]SAM_PROTO_GetShiftState [17:21:46]wFMCommunicate request_size=4 [17:21:46]MH_SAM_APDU [17:21:46]CAPDU: 80 13 01 00 [17:21:46]Write to MH i2c: E2 08 00 14 09 80 13 01 00 00 00 00 00 9A [17:21:46]Write i2c OK [17:21:46]MH_I2C_Read... [17:21:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:46]Read from MH i2c: E2 [17:21:46]MH_I2C_Read... [17:21:46]Read from MH i2c: E2 0E 00 [17:21:46]MH_I2C_Read... [17:21:46]Read from MH i2c: E2 0E 00 14 09 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A6 [17:21:46]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:21:46]wFMCommunicate OK [17:21:46]SAM_PROTO_GetShiftState done [17:21:46]FM_GetShiftState done [17:21:46]req_shift_opened done [17:21:46]requested_item shift.open_date is exist - process it [17:21:46]req_shift_open_date [17:21:46]req_shift_open_date done [17:21:46]produce_requested_data done [17:21:46]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5014,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [17:21:46]process_action_free close_receipt [17:21:46]json_value_free [17:21:46]json_value_free done [17:21:46]process_json_proto returns [17:21:46]Send response to host [17:21:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5014,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [17:21:46]free response buf [17:21:46]execute_script done [17:21:46]execute_script returns [17:21:46]free content buf [17:21:46]Sock 9.Close socket [17:21:46]Sock 9.Thread stoped [17:21:50]OFD Sender: No OFD packet to send [17:21:55]OFD Sender: No OFD packet to send [17:22:00]OFD Sender: No OFD packet to send [17:22:05]OFD Sender: No OFD packet to send [17:22:10]OFD Sender: No OFD packet to send [17:22:15]OFD Sender: No OFD packet to send [17:22:20]OFD Sender: No OFD packet to send [17:22:25]OFD Sender: No OFD packet to send [17:22:30]OFD Sender: No OFD packet to send [17:22:35]OFD Sender: No OFD packet to send [17:22:40]OFD Sender: No OFD packet to send [17:22:45]OFD Sender: No OFD packet to send [17:22:50]OFD Sender: No OFD packet to send [17:22:55]OFD Sender: No OFD packet to send [17:23:00]OFD Sender: No OFD packet to send [17:23:05]OFD Sender: No OFD packet to send [17:23:10]OFD Sender: No OFD packet to send [17:23:15]OFD Sender: No OFD packet to send [17:23:20]OFD Sender: No OFD packet to send [17:23:25]OFD Sender: No OFD packet to send [17:23:30]OFD Sender: No OFD packet to send [17:23:35]OFD Sender: No OFD packet to send [17:23:40]OFD Sender: No OFD packet to send [17:23:45]OFD Sender: No OFD packet to send [17:23:50]OFD Sender: No OFD packet to send [17:23:55]OFD Sender: No OFD packet to send [17:24:00]OFD Sender: No OFD packet to send [17:24:05]OFD Sender: No OFD packet to send [17:24:10]OFD Sender: No OFD packet to send [17:24:15]OFD Sender: No OFD packet to send [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:50]OFD Sender: No OFD packet to send [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:13]accept exits with 10 [17:27:13]New connection [17:27:13]New thread 3067108708 created [17:27:13]Thread 3067252068 joined [17:27:13]Waiting for new connection... [17:27:13] Sock 10.Parse request [17:27:13]Sock 10.Check first char [17:27:13]Sock 10.First char is OK [17:27:13]request: POST /json_proto HTTP/1.0 [17:27:13]Method: POST [17:27:13]URL: /json_proto [17:27:13]Method is POST - this is cgi request [17:27:13]url: /json_proto [17:27:13]query_string will be loaded in cgi processing [17:27:13]execute_cgi json_proto POST (null) [17:27:13]execute_cgi path=json_proto method=POST [17:27:13]POST find Content-Length [17:27:13]Host: 172.17.44.4:8080 [17:27:13]Content-Length: 678 [17:27:13]Content-Type: application/json [17:27:13] [17:27:13]POST finish read [17:27:13]Found Content-Length = 678 [17:27:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:13]execute_script... [17:27:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993003", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:13]POST & json_proto [17:27:13]process_json_proto [17:27:13]json parsed OK: [17:27:13]protocol is kg_v1.0 [17:27:13]action value=close_receipt [17:27:13]process_action close_receipt [17:27:13]cmd_close_receipt [17:27:13]MH_GetDate [17:27:13]Write to MH i2c: F0 00 00 15 09 0D [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: F0 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: F0 09 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: F0 09 00 15 09 00 F2 41 46 66 6C E9 28 66 D8 [17:27:13]GetLastDocTimeStamp 1715880103 [17:27:13]current date 1715880434 [17:27:13]FM_GetShiftState [17:27:13]SAM_PROTO_GetShiftState [17:27:13]wFMCommunicate request_size=4 [17:27:13]MH_SAM_APDU [17:27:13]CAPDU: 80 13 01 00 [17:27:13]Write to MH i2c: E2 08 00 16 09 80 13 01 00 00 00 00 00 9C [17:27:13]Write i2c OK [17:27:13]MH_I2C_Read... [17:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:13]Read from MH i2c: E2 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 0E 00 [17:27:13]MH_I2C_Read... [17:27:13]Read from MH i2c: E2 0E 00 16 09 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A8 [17:27:13]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:27:13]wFMCommunicate OK [17:27:13]SAM_PROTO_GetShiftState done [17:27:13]FM_GetShiftState done [17:27:13]opened in 1715818246 [17:27:13]opened+sec_in_day 1715904646 [17:27:13]quantity*price = 50033 [17:27:13]sum+1 = 50034 [17:27:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 75 16.05.2024 17:27 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5015 ФПД: 254105254600061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T172714&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5015&fm=254105254600061&tin=02508201610067®Number=0000000000154221&sum=50000 [17:27:14]StoreToDocumentArchive [17:27:14]shift 44 fd 5015 [17:27:14]save to /storage/0044/doc_00005015 [17:27:14]save last doc name /storage/0044/doc_00005015 to /storage/kkm_last_doc_name [17:27:14]save OK [17:27:14]Clear old archive folders... [17:27:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:14]tlvbuf is 011F25C0 [17:27:14]SAM_PROTO_ClearQueue [17:27:14]wFMCommunicate request_size=4 [17:27:14]MH_SAM_APDU [17:27:14]CAPDU: 80 09 00 00 [17:27:14]Write to MH i2c: E2 08 00 23 09 80 09 00 00 00 00 00 00 9E [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:14]Read from MH i2c: E2 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: E2 03 00 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: E2 03 00 23 09 00 90 00 A0 [17:27:14]RAPDU: 90 00 [17:27:14]wFMCommunicate OK [17:27:14]SAM_PROTO_ClearQueue done [17:27:14]KKMCreateOFDPacket [17:27:14]OFDProtocolAddRootSTLVToBuf [17:27:14]FM_MakeSignedData [17:27:14]FM_MakeSignedData [17:27:14]SAM_PROTO_SignData [17:27:14]wFMCommunicate request_size=4 [17:27:14]MH_SAM_APDU [17:27:14]CAPDU: 80 0D 01 02 [17:27:14]Write to MH i2c: E2 08 00 24 09 80 0D 01 02 00 00 00 00 A6 [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:14]Read from MH i2c: E2 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: E2 03 00 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: E2 03 00 24 09 00 90 00 A1 [17:27:14]RAPDU: 90 00 [17:27:14]wFMCommunicate OK [17:27:14]wFMCommunicate request_size=255 [17:27:14]MH_SAM_APDU [17:27:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F2 41 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 97 13 00 00 35 04 06 00 E7 [17:27:14]Write to MH i2c: E2 02 01 25 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F2 41 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 97 13 00 00 35 04 06 00 E7 00 00 0A [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:14]Read from MH i2c: E2 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: E2 03 00 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: E2 03 00 25 09 00 90 00 A2 [17:27:14]RAPDU: 90 00 [17:27:14]wFMCommunicate OK [17:27:14]wFMCommunicate request_size=10 [17:27:14]MH_SAM_APDU [17:27:14]CAPDU: 80 0D 02 02 05 1B 7D 6F 9D 7D [17:27:14]Write to MH i2c: E2 0D 00 26 09 80 0D 02 02 05 00 1B 7D 6F 9D 7D 00 00 D4 [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:14]Read from MH i2c: E2 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: E2 03 00 [17:27:14]MH_I2C_Read... [17:27:14]Read from MH i2c: E2 03 00 26 09 00 90 00 A3 [17:27:14]RAPDU: 90 00 [17:27:14]wFMCommunicate OK [17:27:14]wFMCommunicate request_size=4 [17:27:14]MH_SAM_APDU [17:27:14]CAPDU: 80 0D 03 02 [17:27:14]Write to MH i2c: E2 08 00 27 09 80 0D 03 02 00 00 00 00 AB [17:27:14]Write i2c OK [17:27:14]MH_I2C_Read... [17:27:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:15]Read from MH i2c: E2 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 0B 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 0B 00 27 09 00 E3 7F C8 70 18 C9 78 F4 90 00 93 [17:27:15]RAPDU: E3 7F C8 70 18 C9 78 F4 90 00 [17:27:15]wFMCommunicate OK [17:27:15]SAM_PROTO_SignData done [17:27:15]FM_MakeSignedData done [17:27:15]CreateOFDProtocolMessage [17:27:15]wFMCommunicate request_size=4 [17:27:15]MH_SAM_APDU [17:27:15]CAPDU: 80 11 00 00 [17:27:15]Write to MH i2c: E2 08 00 28 09 80 11 00 00 00 00 00 00 AB [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:15]Read from MH i2c: E2 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 17 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: E2 17 00 28 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 00 [17:27:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:27:15]wFMCommunicate OK [17:27:15]CreateOFDProtocolMessage done [17:27:15]OFDSenderStorePacket 5015 [17:27:15]StoreOFDPacket docnum=5015 [17:27:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 75 CF 07 01 AE 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F2 41 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 97 13 00 00 35 04 06 00 E7 1B 7D 6F 9D 7D E3 7F C8 70 18 C9 78 F4 [17:27:15]CheckFolder [17:27:15]dirname=/storage/ofd_packets [17:27:15]CheckFolder done [17:27:15]ProducePacketName [17:27:15]name=ofd_packets/00005015 [17:27:15]NVStorageSaveData ofd_packets/00005015 [17:27:15]File name is /storage/ofd_packets/00005015 [17:27:15]Write 301 bytes [17:27:15]NVStorageSaveData done [17:27:15]OFDSenderStorePacket done [17:27:15]KKMCreateOFDPacket done [17:27:15]NVStorageSaveData kkm_last_timestamp [17:27:15]File name is /storage/kkm_last_timestamp [17:27:15]Write 4 bytes [17:27:15]NVStorageSaveData done [17:27:15]ExternCall_PrintAddStr [17:27:15]wPrintStart [17:27:15]Write to MH i2c: 01 00 00 29 09 32 [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: 01 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: 01 07 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: 01 07 00 29 09 00 00 00 00 00 FF 0F 47 [17:27:15]RasterBufferAndPrint [17:27:15]line Счет N : (1)1993003 [17:27:15]line ИНН: 02508201610067 [17:27:15]line Контрольно-Кассовый Чек [17:27:15]line ПРОДАЖА [17:27:15]line ТРК (МРК, ГНК) : 63 [17:27:15]line Товар: 2710124130 [17:27:15]line Аи-92-К-4 [17:27:15]line 7.490 * 66.80 [17:27:15]line = 500.33 [17:27:15]line НДС 12% НСП 1% [17:27:15]line > о реализуемом товаре [17:27:15]line ОКРУГЛЕНИЕ: -0.33 [17:27:15]line ИТОГО: 500.00 [17:27:15]line Внесено: 500.00 [17:27:15]line СДАЧА: 0.00 [17:27:15]line НСП 1% : 4.43 [17:27:15]line НДС 12% : 53.13 [17:27:15]line Наличными: 500.00 [17:27:15]line Безнал.: 0.00 [17:27:15]line Место: АЗС № 135 "Партнер Нефть" [17:27:15]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [17:27:15]line СНО: Общий режим [17:27:15]line Чек 75 16.05.2024 17:27 [17:27:15]line Смена: 44 ФФД: 1.0 [17:27:15]line ЗНМ: 0300000237 [17:27:15]line РНМ: 0000000000154221 [17:27:15]line Версия ККМ: v1.0 [17:27:15]line ФМ: 0000000000963259 [17:27:15]line ФД: 5015 [17:27:15]line ФПД: 254105254600061 [17:27:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T172714&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5015&fm=254105254600061&tin=02508201610067®Number=0000000000154221&sum=50000 [17:27:15]OFD Sender: Processing packet 5015 [packets to send 4, broken 3] [17:27:15]ProducePacketName [17:27:15]name=ofd_packets/00005015 [17:27:15]OFD Sender: To server: pG, [17:27:15]CommunicateWithHost lk.salyk.kg:30040 [17:27:15]ConnectInit lk.salyk.kg [17:27:15]written 0, free lines is 4095 [17:27:15]Write to MH i2c: 01 00 00 54 09 5D [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: 01 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: 01 07 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: 01 07 00 54 09 00 00 00 00 00 6D 0C DD [17:27:15]RasterBufferAndPrint [17:27:15]line [17:27:15]line [17:27:15]line [17:27:15]line [17:27:15]line [17:27:15]written 0, free lines is 3184 [17:27:15]MH_Cut [17:27:15]Write to MH i2c: D1 01 00 5B 09 01 36 [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: D1 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: D1 01 00 [17:27:15]MH_I2C_Read... [17:27:15]Read from MH i2c: D1 01 00 5B 09 00 35 [17:27:15]Write to MH i2c: 01 00 00 5C 09 65 [17:27:15]Write i2c OK [17:27:15]MH_I2C_Read... [17:27:15]Connected sock=9 [17:27:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 75 CF 07 01 AE 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 F2 41 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 97 13 00 00 35 04 06 00 E7 1B 7D 6F 9D 7D E3 7F C8 70 18 C9 78 F4 [17:27:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 A0 D5 47 00 AF 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 97 13 00 00 F4 03 04 00 B5 ED 45 66 B6 04 01 00 00 8C 74 D6 74 3E A8 BA ED [17:27:16]CommunicateWithHost err = 0 [17:27:16]CheckOFDResponse [17:27:16]1017 (14) - 77093643461234 [17:27:16]1041 (16) - 0000000000963259 [17:27:16]1040 (4) - 5015 [17:27:16]1012 (4) - 16.05.2024 11:27 [17:27:16]1206 (1) - 0 [17:27:16]OFD Sender: Remove packet 5015 [17:27:16]ProducePacketName [17:27:16]name=ofd_packets/00005015 [17:27:16]NVStorageDeleteData [17:27:16]OFD Sender: No OFD packet to send [17:27:17]*** Cut start [17:27:17]*** Partial cut [17:27:17]*** CUTSNS_PIN = 1 [17:27:17]*** CUTSNS_PIN = 0 [17:27:17]*** Brake cut motor [17:27:17]Read from MH i2c: 01 [17:27:17]MH_I2C_Read... [17:27:17]*** Stop cut motor [17:27:17]*** Cut end [17:27:17]Read from MH i2c: 01 07 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: 01 07 00 5C 09 00 00 00 00 00 FF 0F 7A [17:27:17]process_action close_receipt done [17:27:17]requested_data is exist [17:27:17]produce_requested_data [17:27:17]requested_item fm.sn is exist - process it [17:27:17]wFMCommunicate request_size=4 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 11 00 00 [17:27:17]Write to MH i2c: E2 08 00 5D 09 80 11 00 00 00 00 00 00 E0 [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 17 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 17 00 5D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 35 [17:27:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:27:17]wFMCommunicate OK [17:27:17]requested_item fd.num is exist - process it [17:27:17]SAM_PROTO_GetFieldsCounters [17:27:17]wFMCommunicate request_size=4 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 13 00 00 [17:27:17]Write to MH i2c: E2 08 00 5E 09 80 13 00 00 00 00 00 00 E3 [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 62 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 62 00 5E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 97 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [17:27:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 97 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:27:17]wFMCommunicate OK [17:27:17]SAM_PROTO_GetFieldsCounters done [17:27:17]requested_item shift.num is exist - process it [17:27:17]requested_item shift.opened is exist - process it [17:27:17]req_shift_opened [17:27:17]FM_GetShiftState [17:27:17]SAM_PROTO_GetShiftState [17:27:17]wFMCommunicate request_size=4 [17:27:17]MH_SAM_APDU [17:27:17]CAPDU: 80 13 01 00 [17:27:17]Write to MH i2c: E2 08 00 5F 09 80 13 01 00 00 00 00 00 E5 [17:27:17]Write i2c OK [17:27:17]MH_I2C_Read... [17:27:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:17]Read from MH i2c: E2 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 0E 00 [17:27:17]MH_I2C_Read... [17:27:17]Read from MH i2c: E2 0E 00 5F 09 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F1 [17:27:17]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:27:17]wFMCommunicate OK [17:27:17]SAM_PROTO_GetShiftState done [17:27:17]FM_GetShiftState done [17:27:17]req_shift_opened done [17:27:17]requested_item shift.open_date is exist - process it [17:27:17]req_shift_open_date [17:27:17]req_shift_open_date done [17:27:17]produce_requested_data done [17:27:17]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5015,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [17:27:17]process_action_free close_receipt [17:27:17]json_value_free [17:27:17]json_value_free done [17:27:17]process_json_proto returns [17:27:17]Send response to host [17:27:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5015,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [17:27:17]free response buf [17:27:17]execute_script done [17:27:17]execute_script returns [17:27:17]free content buf [17:27:17]Sock 10.Close socket [17:27:17]Sock 10.Thread stoped [17:27:21]OFD Sender: No OFD packet to send [17:27:26]OFD Sender: No OFD packet to send [17:27:31]OFD Sender: No OFD packet to send [17:27:36]OFD Sender: No OFD packet to send [17:27:41]OFD Sender: No OFD packet to send [17:27:46]OFD Sender: No OFD packet to send [17:27:51]OFD Sender: No OFD packet to send [17:27:56]OFD Sender: No OFD packet to send [17:28:01]OFD Sender: No OFD packet to send [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:38]accept exits with 7 [17:30:38]New connection [17:30:38]New thread 3067252068 created [17:30:38]Thread 3067108708 joined [17:30:38]Waiting for new connection... [17:30:38] Sock 7.Parse request [17:30:38]Sock 7.Check first char [17:30:38]Sock 7.First char is OK [17:30:38]request: POST /json_proto HTTP/1.0 [17:30:38]Method: POST [17:30:38]URL: /json_proto [17:30:38]Method is POST - this is cgi request [17:30:38]url: /json_proto [17:30:38]query_string will be loaded in cgi processing [17:30:38]execute_cgi json_proto POST (null) [17:30:38]execute_cgi path=json_proto method=POST [17:30:38]POST find Content-Length [17:30:38]Host: 172.17.44.4:8080 [17:30:38]Content-Length: 678 [17:30:38]Content-Type: application/json [17:30:38] [17:30:38]POST finish read [17:30:38]Found Content-Length = 678 [17:30:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 6.840, "sum" : 500.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:38]execute_script... [17:30:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993006", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 6.840, "sum" : 500.69, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:38]POST & json_proto [17:30:38]process_json_proto [17:30:38]json parsed OK: [17:30:38]protocol is kg_v1.0 [17:30:38]action value=close_receipt [17:30:38]process_action close_receipt [17:30:38]cmd_close_receipt [17:30:38]MH_GetDate [17:30:38]Write to MH i2c: F0 00 00 60 09 58 [17:30:38]Write i2c OK [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: F0 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: F0 09 00 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: F0 09 00 60 09 00 BF 42 46 66 6C E9 28 66 F1 [17:30:38]GetLastDocTimeStamp 1715880434 [17:30:38]current date 1715880639 [17:30:38]FM_GetShiftState [17:30:38]SAM_PROTO_GetShiftState [17:30:38]wFMCommunicate request_size=4 [17:30:38]MH_SAM_APDU [17:30:38]CAPDU: 80 13 01 00 [17:30:38]Write to MH i2c: E2 08 00 61 09 80 13 01 00 00 00 00 00 E7 [17:30:38]Write i2c OK [17:30:38]MH_I2C_Read... [17:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:38]Read from MH i2c: E2 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: E2 0E 00 [17:30:38]MH_I2C_Read... [17:30:38]Read from MH i2c: E2 0E 00 61 09 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F3 [17:30:38]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:30:38]wFMCommunicate OK [17:30:38]SAM_PROTO_GetShiftState done [17:30:38]FM_GetShiftState done [17:30:38]opened in 1715818246 [17:30:38]opened+sec_in_day 1715904646 [17:30:38]quantity*price = 50068 [17:30:38]sum+1 = 50070 [17:30:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.69 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.17 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 76 16.05.2024 17:30 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5016 ФПД: 85205317239852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T173039&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5016&fm=85205317239852&tin=02508201610067®Number=0000000000154221&sum=50000 [17:30:39]StoreToDocumentArchive [17:30:39]shift 44 fd 5016 [17:30:39]save to /storage/0044/doc_00005016 [17:30:39]save last doc name /storage/0044/doc_00005016 to /storage/kkm_last_doc_name [17:30:39]save OK [17:30:39]Clear old archive folders... [17:30:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:30:39]tlvbuf is 011782F0 [17:30:39]SAM_PROTO_ClearQueue [17:30:39]wFMCommunicate request_size=4 [17:30:39]MH_SAM_APDU [17:30:39]CAPDU: 80 09 00 00 [17:30:39]Write to MH i2c: E2 08 00 6E 09 80 09 00 00 00 00 00 00 E9 [17:30:39]Write i2c OK [17:30:39]MH_I2C_Read... [17:30:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:39]Read from MH i2c: E2 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: E2 03 00 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: E2 03 00 6E 09 00 90 00 EB [17:30:39]RAPDU: 90 00 [17:30:39]wFMCommunicate OK [17:30:39]SAM_PROTO_ClearQueue done [17:30:39]KKMCreateOFDPacket [17:30:39]OFDProtocolAddRootSTLVToBuf [17:30:39]FM_MakeSignedData [17:30:39]FM_MakeSignedData [17:30:39]SAM_PROTO_SignData [17:30:39]wFMCommunicate request_size=4 [17:30:39]MH_SAM_APDU [17:30:39]CAPDU: 80 0D 01 02 [17:30:39]Write to MH i2c: E2 08 00 6F 09 80 0D 01 02 00 00 00 00 F1 [17:30:39]Write i2c OK [17:30:39]MH_I2C_Read... [17:30:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:39]Read from MH i2c: E2 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: E2 03 00 [17:30:39]MH_I2C_Read... [17:30:39]Read from MH i2c: E2 03 00 6F 09 00 90 00 EC [17:30:39]RAPDU: 90 00 [17:30:39]wFMCommunicate OK [17:30:39]wFMCommunicate request_size=255 [17:30:39]MH_SAM_APDU [17:30:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 95 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BF 42 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 98 13 00 00 35 04 06 00 4D [17:30:39]Write to MH i2c: E2 02 01 70 09 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 95 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BF 42 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 98 13 00 00 35 04 06 00 4D 00 00 AD [17:30:40]Write i2c OK [17:30:40]MH_I2C_Read... [17:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:40]Read from MH i2c: E2 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: E2 03 00 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: E2 03 00 70 09 00 90 00 ED [17:30:40]RAPDU: 90 00 [17:30:40]wFMCommunicate OK [17:30:40]wFMCommunicate request_size=10 [17:30:40]MH_SAM_APDU [17:30:40]CAPDU: 80 0D 02 02 05 7E 68 AA C4 2C [17:30:40]Write to MH i2c: E2 0D 00 71 09 80 0D 02 02 05 00 7E 68 AA C4 2C 00 00 7E [17:30:40]Write i2c OK [17:30:40]MH_I2C_Read... [17:30:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:40]Read from MH i2c: E2 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: E2 03 00 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: E2 03 00 71 09 00 90 00 EE [17:30:40]RAPDU: 90 00 [17:30:40]wFMCommunicate OK [17:30:40]wFMCommunicate request_size=4 [17:30:40]MH_SAM_APDU [17:30:40]CAPDU: 80 0D 03 02 [17:30:40]Write to MH i2c: E2 08 00 72 09 80 0D 03 02 00 00 00 00 F6 [17:30:40]Write i2c OK [17:30:40]MH_I2C_Read... [17:30:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:40]Read from MH i2c: E2 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: E2 0B 00 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: E2 0B 00 72 09 00 45 4A 67 60 A1 D1 7D F9 90 00 35 [17:30:40]RAPDU: 45 4A 67 60 A1 D1 7D F9 90 00 [17:30:40]wFMCommunicate OK [17:30:40]SAM_PROTO_SignData done [17:30:40]FM_MakeSignedData done [17:30:40]CreateOFDProtocolMessage [17:30:40]wFMCommunicate request_size=4 [17:30:40]MH_SAM_APDU [17:30:40]CAPDU: 80 11 00 00 [17:30:40]Write to MH i2c: E2 08 00 73 09 80 11 00 00 00 00 00 00 F6 [17:30:40]Write i2c OK [17:30:40]MH_I2C_Read... [17:30:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:40]Read from MH i2c: E2 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: E2 17 00 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: E2 17 00 73 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 4B [17:30:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:30:40]wFMCommunicate OK [17:30:40]CreateOFDProtocolMessage done [17:30:40]OFDSenderStorePacket 5016 [17:30:40]StoreOFDPacket docnum=5016 [17:30:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 E3 6C 07 01 08 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 95 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BF 42 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 98 13 00 00 35 04 06 00 4D 7E 68 AA C4 2C 45 4A 67 60 A1 D1 7D F9 [17:30:40]CheckFolder [17:30:40]dirname=/storage/ofd_packets [17:30:40]CheckFolder done [17:30:40]ProducePacketName [17:30:40]name=ofd_packets/00005016 [17:30:40]NVStorageSaveData ofd_packets/00005016 [17:30:40]File name is /storage/ofd_packets/00005016 [17:30:40]Write 301 bytes [17:30:40]NVStorageSaveData done [17:30:40]OFDSenderStorePacket done [17:30:40]KKMCreateOFDPacket done [17:30:40]NVStorageSaveData kkm_last_timestamp [17:30:40]File name is /storage/kkm_last_timestamp [17:30:40]Write 4 bytes [17:30:40]NVStorageSaveData done [17:30:40]ExternCall_PrintAddStr [17:30:40]wPrintStart [17:30:40]Write to MH i2c: 01 00 00 74 09 7D [17:30:40]Write i2c OK [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: 01 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: 01 07 00 [17:30:40]MH_I2C_Read... [17:30:40]Read from MH i2c: 01 07 00 74 09 00 00 00 00 00 FF 0F 92 [17:30:40]RasterBufferAndPrint [17:30:40]line Счет N : (1)1993006 [17:30:40]line ИНН: 02508201610067 [17:30:40]line Контрольно-Кассовый Чек [17:30:40]line ПРОДАЖА [17:30:40]line ТРК (МРК, ГНК) : 42 [17:30:40]line Товар: 2710124500 [17:30:40]line Аи-95-К-5 [17:30:40]line 6.840 * 73.20 [17:30:40]line = 500.69 [17:30:40]line НДС 12% НСП 1% [17:30:40]line > о реализуемом товаре [17:30:40]line ОКРУГЛЕНИЕ: -0.69 [17:30:40]line ИТОГО: 500.00 [17:30:40]line Внесено: 500.00 [17:30:40]line СДАЧА: 0.00 [17:30:40]line НСП 1% : 4.43 [17:30:40]line НДС 12% : 53.17 [17:30:40]line Наличными: 500.00 [17:30:40]line Безнал.: 0.00 [17:30:40]line Место: АЗС № 135 "Партнер Нефть" [17:30:40]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [17:30:40]line СНО: Общий режим [17:30:40]line Чек 76 16.05.2024 17:30 [17:30:40]line Смена: 44 ФФД: 1.0 [17:30:40]line ЗНМ: 0300000237 [17:30:40]line РНМ: 0000000000154221 [17:30:40]line Версия ККМ: v1.0 [17:30:40]line ФМ: 0000000000963259 [17:30:40]line ФД: 5016 [17:30:40]line ФПД: 85205317239852 [17:30:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T173039&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5016&fm=85205317239852&tin=02508201610067®Number=0000000000154221&sum=50000 [17:30:40]OFD Sender: Processing packet 5016 [packets to send 4, broken 3] [17:30:40]ProducePacketName [17:30:40]name=ofd_packets/00005016 [17:30:40]OFD Sender: To server: pG, [17:30:40]CommunicateWithHost lk.salyk.kg:30040 [17:30:40]ConnectInit lk.salyk.kg [17:30:40]written 0, free lines is 4095 [17:30:41]Connected sock=10 [17:30:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 E3 6C 07 01 08 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 1A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 95 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 BF 42 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 98 13 00 00 35 04 06 00 4D 7E 68 AA C4 2C 45 4A 67 60 A1 D1 7D F9 [17:30:41]Write to MH i2c: 01 00 00 9F 09 A8 [17:30:41]Write i2c OK [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: 01 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: 01 07 00 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: 01 07 00 9F 09 00 00 00 00 00 72 0C 2D [17:30:41]RasterBufferAndPrint [17:30:41]line [17:30:41]line [17:30:41]line [17:30:41]line [17:30:41]line [17:30:41]written 0, free lines is 3187 [17:30:41]MH_Cut [17:30:41]Write to MH i2c: D1 01 00 A6 09 01 81 [17:30:41]Write i2c OK [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: D1 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: D1 01 00 [17:30:41]MH_I2C_Read... [17:30:41]Read from MH i2c: D1 01 00 A6 09 00 80 [17:30:41]Write to MH i2c: 01 00 00 A7 09 B0 [17:30:41]Write i2c OK [17:30:41]MH_I2C_Read... [17:30:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 F9 43 47 00 DD 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 33 32 35 39 10 04 04 00 98 13 00 00 F4 03 04 00 83 EE 45 66 B6 04 01 00 00 82 F3 CC 07 02 D8 C7 15 [17:30:41]CommunicateWithHost err = 0 [17:30:41]CheckOFDResponse [17:30:41]1017 (14) - 77093643461234 [17:30:41]1041 (16) - 0000000000963259 [17:30:41]1040 (4) - 5016 [17:30:41]1012 (4) - 16.05.2024 11:31 [17:30:41]1206 (1) - 0 [17:30:41]OFD Sender: Remove packet 5016 [17:30:41]ProducePacketName [17:30:41]name=ofd_packets/00005016 [17:30:41]NVStorageDeleteData [17:30:41]OFD Sender: No OFD packet to send [17:30:42]*** Cut start [17:30:42]*** Partial cut [17:30:42]*** CUTSNS_PIN = 1 [17:30:42]*** CUTSNS_PIN = 0 [17:30:42]*** Brake cut motor [17:30:42]Read from MH i2c: 01 [17:30:42]MH_I2C_Read... [17:30:42]*** Stop cut motor [17:30:42]*** Cut end [17:30:42]Read from MH i2c: 01 07 00 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: 01 07 00 A7 09 00 00 00 00 00 FF 0F C5 [17:30:42]process_action close_receipt done [17:30:42]requested_data is exist [17:30:42]produce_requested_data [17:30:42]requested_item fm.sn is exist - process it [17:30:42]wFMCommunicate request_size=4 [17:30:42]MH_SAM_APDU [17:30:42]CAPDU: 80 11 00 00 [17:30:42]Write to MH i2c: E2 08 00 A8 09 80 11 00 00 00 00 00 00 2B [17:30:42]Write i2c OK [17:30:42]MH_I2C_Read... [17:30:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:42]Read from MH i2c: E2 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: E2 17 00 [17:30:42]MH_I2C_Read... [17:30:42]Read from MH i2c: E2 17 00 A8 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 80 [17:30:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:30:42]wFMCommunicate OK [17:30:42]requested_item fd.num is exist - process it [17:30:42]SAM_PROTO_GetFieldsCounters [17:30:42]wFMCommunicate request_size=4 [17:30:42]MH_SAM_APDU [17:30:42]CAPDU: 80 13 00 00 [17:30:42]Write to MH i2c: E2 08 00 A9 09 80 13 00 00 00 00 00 00 2E [17:30:42]Write i2c OK [17:30:42]MH_I2C_Read... [17:30:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:43]Read from MH i2c: E2 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: E2 62 00 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: E2 62 00 A9 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 98 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [17:30:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 98 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:43]wFMCommunicate OK [17:30:43]SAM_PROTO_GetFieldsCounters done [17:30:43]requested_item shift.num is exist - process it [17:30:43]requested_item shift.opened is exist - process it [17:30:43]req_shift_opened [17:30:43]FM_GetShiftState [17:30:43]SAM_PROTO_GetShiftState [17:30:43]wFMCommunicate request_size=4 [17:30:43]MH_SAM_APDU [17:30:43]CAPDU: 80 13 01 00 [17:30:43]Write to MH i2c: E2 08 00 AA 09 80 13 01 00 00 00 00 00 30 [17:30:43]Write i2c OK [17:30:43]MH_I2C_Read... [17:30:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:43]Read from MH i2c: E2 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: E2 0E 00 [17:30:43]MH_I2C_Read... [17:30:43]Read from MH i2c: E2 0E 00 AA 09 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3C [17:30:43]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:30:43]wFMCommunicate OK [17:30:43]SAM_PROTO_GetShiftState done [17:30:43]FM_GetShiftState done [17:30:43]req_shift_opened done [17:30:43]requested_item shift.open_date is exist - process it [17:30:43]req_shift_open_date [17:30:43]req_shift_open_date done [17:30:43]produce_requested_data done [17:30:43]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5016,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [17:30:43]process_action_free close_receipt [17:30:43]json_value_free [17:30:43]json_value_free done [17:30:43]process_json_proto returns [17:30:43]Send response to host [17:30:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5016,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [17:30:43]free response buf [17:30:43]execute_script done [17:30:43]execute_script returns [17:30:43]free content buf [17:30:43]Sock 7.Close socket [17:30:43]Sock 7.Thread stoped [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:37]accept exits with 9 [17:32:37]New connection [17:32:37]New thread 3067108708 created [17:32:37]Thread 3067252068 joined [17:32:37]Waiting for new connection... [17:32:37] Sock 9.Parse request [17:32:37]Sock 9.Check first char [17:32:37]Sock 9.First char is OK [17:32:37]request: POST /json_proto HTTP/1.0 [17:32:37]Method: POST [17:32:37]URL: /json_proto [17:32:37]Method is POST - this is cgi request [17:32:37]url: /json_proto [17:32:37]query_string will be loaded in cgi processing [17:32:37]execute_cgi json_proto POST (null) [17:32:37]execute_cgi path=json_proto method=POST [17:32:37]POST find Content-Length [17:32:37]Host: 172.17.44.4:8080 [17:32:37]Content-Length: 620 [17:32:37]Content-Type: application/json [17:32:37] [17:32:37]POST finish read [17:32:37]Found Content-Length = 620 [17:32:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141013", "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" ] } } [17:32:37]execute_script... [17:32: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)141013", "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" ] } } [17:32:37]POST & json_proto [17:32:37]process_json_proto [17:32:37]json parsed OK: [17:32:37]protocol is kg_v1.0 [17:32:37]action value=close_receipt [17:32:37]process_action close_receipt [17:32:37]cmd_close_receipt [17:32:37]MH_GetDate [17:32:37]Write to MH i2c: F0 00 00 AB 09 A3 [17:32:37]Write i2c OK [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: F0 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: F0 09 00 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: F0 09 00 AB 09 00 36 43 46 66 6C E9 28 66 B4 [17:32:37]GetLastDocTimeStamp 1715880639 [17:32:37]current date 1715880758 [17:32:37]FM_GetShiftState [17:32:37]SAM_PROTO_GetShiftState [17:32:37]wFMCommunicate request_size=4 [17:32:37]MH_SAM_APDU [17:32:37]CAPDU: 80 13 01 00 [17:32:37]Write to MH i2c: E2 08 00 AC 09 80 13 01 00 00 00 00 00 32 [17:32:37]Write i2c OK [17:32:37]MH_I2C_Read... [17:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:37]Read from MH i2c: E2 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: E2 0E 00 [17:32:37]MH_I2C_Read... [17:32:37]Read from MH i2c: E2 0E 00 AC 09 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3E [17:32:37]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:32:37]wFMCommunicate OK [17:32:37]SAM_PROTO_GetShiftState done [17:32:37]FM_GetShiftState done [17:32:37]opened in 1715818246 [17:32:37]opened+sec_in_day 1715904646 [17:32:37]quantity*price = 13800 [17:32:37]sum+1 = 13801 [17:32:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 77 16.05.2024 17:32 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5017 ФПД: 41044649509703 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T173238&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5017&fm=41044649509703&tin=02508201610067®Number=0000000000154221&sum=13800 0 [17:32:38]StoreToDocumentArchive [17:32:38]shift 44 fd 5017 [17:32:38]save to /storage/0044/doc_00005017 [17:32:38]save last doc name /storage/0044/doc_00005017 to /storage/kkm_last_doc_name [17:32:38]save OK [17:32:38]Clear old archive folders... [17:32:38]ProcessDocumentItem done err = 0, tmpTLVsize=272 [17:32:38]tlvbuf is 0117B1C0 [17:32:38]SAM_PROTO_ClearQueue [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 09 00 00 [17:32:38]Write to MH i2c: E2 08 00 B9 09 80 09 00 00 00 00 00 00 34 [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 B9 09 00 90 00 36 [17:32:38]RAPDU: 90 00 [17:32:38]wFMCommunicate OK [17:32:38]SAM_PROTO_ClearQueue done [17:32:38]KKMCreateOFDPacket [17:32:38]OFDProtocolAddRootSTLVToBuf [17:32:38]FM_MakeSignedData [17:32:38]FM_MakeSignedData [17:32:38]SAM_PROTO_SignData [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 0D 01 02 [17:32:38]Write to MH i2c: E2 08 00 BA 09 80 0D 01 02 00 00 00 00 3C [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 BA 09 00 90 00 37 [17:32:38]RAPDU: 90 00 [17:32:38]wFMCommunicate OK [17:32:38]wFMCommunicate request_size=255 [17:32:38]MH_SAM_APDU [17:32:38]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 4D 00 00 00 F4 03 04 00 36 43 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 [17:32:38]Write to MH i2c: E2 02 01 BB 09 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 4D 00 00 00 F4 03 04 00 36 43 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 F8 [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 BB 09 00 90 00 38 [17:32:38]RAPDU: 90 00 [17:32:38]wFMCommunicate OK [17:32:38]wFMCommunicate request_size=31 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 32 35 39 10 04 04 00 99 13 00 00 35 04 06 00 25 54 73 C1 03 47 [17:32:38]Write to MH i2c: E2 22 00 BC 09 80 0D 02 02 1A 00 30 30 39 36 33 32 35 39 10 04 04 00 99 13 00 00 35 04 06 00 25 54 73 C1 03 47 00 00 0F [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 03 00 BC 09 00 90 00 39 [17:32:38]RAPDU: 90 00 [17:32:38]wFMCommunicate OK [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 0D 03 02 [17:32:38]Write to MH i2c: E2 08 00 BD 09 80 0D 03 02 00 00 00 00 41 [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 0B 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 0B 00 BD 09 00 AF EB 02 71 1F F0 AC 08 90 00 12 [17:32:38]RAPDU: AF EB 02 71 1F F0 AC 08 90 00 [17:32:38]wFMCommunicate OK [17:32:38]SAM_PROTO_SignData done [17:32:38]FM_MakeSignedData done [17:32:38]CreateOFDProtocolMessage [17:32:38]wFMCommunicate request_size=4 [17:32:38]MH_SAM_APDU [17:32:38]CAPDU: 80 11 00 00 [17:32:38]Write to MH i2c: E2 08 00 BE 09 80 11 00 00 00 00 00 00 41 [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:38]Read from MH i2c: E2 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 17 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: E2 17 00 BE 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 96 [17:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:32:38]wFMCommunicate OK [17:32:38]CreateOFDProtocolMessage done [17:32:38]OFDSenderStorePacket 5017 [17:32:38]StoreOFDPacket docnum=5017 [17:32:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 24 01 00 00 A2 81 1C 01 8C 19 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 4D 00 00 00 F4 03 04 00 36 43 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 99 13 00 00 35 04 06 00 25 54 73 C1 03 47 AF EB 02 71 1F F0 AC 08 [17:32:38]CheckFolder [17:32:38]dirname=/storage/ofd_packets [17:32:38]CheckFolder done [17:32:38]ProducePacketName [17:32:38]name=ofd_packets/00005017 [17:32:38]NVStorageSaveData ofd_packets/00005017 [17:32:38]File name is /storage/ofd_packets/00005017 [17:32:38]Write 322 bytes [17:32:38]NVStorageSaveData done [17:32:38]OFDSenderStorePacket done [17:32:38]KKMCreateOFDPacket done [17:32:38]NVStorageSaveData kkm_last_timestamp [17:32:38]File name is /storage/kkm_last_timestamp [17:32:38]Write 4 bytes [17:32:38]NVStorageSaveData done [17:32:38]ExternCall_PrintAddStr [17:32:38]wPrintStart [17:32:38]Write to MH i2c: 01 00 00 BF 09 C8 [17:32:38]Write i2c OK [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: 01 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: 01 07 00 [17:32:38]MH_I2C_Read... [17:32:38]Read from MH i2c: 01 07 00 BF 09 00 00 00 00 00 FF 0F DD [17:32:38]RasterBufferAndPrint [17:32:38]line Счет N : (3)141013 [17:32:38]line ИНН: 02508201610067 [17:32:38]line Контрольно-Кассовый Чек [17:32:38]line ПРОДАЖА [17:32:38]line Товар: 4640030091607 [17:32:38]line Сигареты ESSE Exchange [17:32:38]line 1.000 * 138.00 [17:32:38]line = 138.00 [17:32:38]line НДС 12% НСП 1% [17:32:38]line > о реализуемом товаре [17:32:38]line ИТОГО: 138.00 [17:32:38]line НСП 1% : 1.22 [17:32:38]line НДС 12% : 14.65 [17:32:38]line Наличными: 138.00 [17:32:38]line Безнал.: 0.00 [17:32:38]line Место: АЗС № 135 "Партнер Нефть" [17:32:38]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [17:32:38]line СНО: Общий режим [17:32:38]line Чек 77 16.05.2024 17:32 [17:32:38]line Смена: 44 ФФД: 1.0 [17:32:38]line ЗНМ: 0300000237 [17:32:38]line РНМ: 0000000000154221 [17:32:38]line Версия ККМ: v1.0 [17:32:38]line ФМ: 0000000000963259 [17:32:38]line ФД: 5017 [17:32:38]line ФПД: 41044649509703 [17:32:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T173238&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5017&fm=41044649509703&tin=02508201610067®Number=0000000000154221&sum=13800 [17:32:39]line 0 [17:32:39]OFD Sender: Processing packet 5017 [packets to send 4, broken 3] [17:32:39]ProducePacketName [17:32:39]name=ofd_packets/00005017 [17:32:39]OFD Sender: To server: pG, [17:32:39]CommunicateWithHost lk.salyk.kg:30040 [17:32:39]ConnectInit lk.salyk.kg [17:32:39]written 0, free lines is 4095 [17:32:39]Connected sock=10 [17:32:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 24 01 00 00 A2 81 1C 01 8C 19 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 4D 00 00 00 F4 03 04 00 36 43 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 99 13 00 00 35 04 06 00 25 54 73 C1 03 47 AF EB 02 71 1F F0 AC 08 [17:32:39]Write to MH i2c: 01 00 00 E7 09 F0 [17:32:39]Write i2c OK [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: 01 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: 01 07 00 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: 01 07 00 E7 09 00 00 00 00 00 9F 0C A2 [17:32:39]RasterBufferAndPrint [17:32:39]line [17:32:39]line [17:32:39]line [17:32:39]line [17:32:39]line [17:32:39]written 0, free lines is 3236 [17:32:39]MH_Cut [17:32:39]Write to MH i2c: D1 01 00 EE 09 01 C9 [17:32:39]Write i2c OK [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: D1 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: D1 01 00 [17:32:39]MH_I2C_Read... [17:32:39]Read from MH i2c: D1 01 00 EE 09 00 C8 [17:32:39]Write to MH i2c: 01 00 00 EF 09 F8 [17:32:39]Write i2c OK [17:32:39]MH_I2C_Read... [17:32:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 6B 2E 47 00 31 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 33 32 35 39 10 04 04 00 99 13 00 00 F4 03 04 00 F9 EE 45 66 B6 04 01 00 00 0B 19 03 AE D9 26 E2 E3 [17:32:39]CommunicateWithHost err = 0 [17:32:39]CheckOFDResponse [17:32:39]1017 (14) - 77093643461234 [17:32:39]1041 (16) - 0000000000963259 [17:32:39]1040 (4) - 5017 [17:32:39]1012 (4) - 16.05.2024 11:33 [17:32:39]1206 (1) - 0 [17:32:39]OFD Sender: Remove packet 5017 [17:32:39]ProducePacketName [17:32:39]name=ofd_packets/00005017 [17:32:39]NVStorageDeleteData [17:32:40]OFD Sender: No OFD packet to send [17:32:40]*** Cut start [17:32:40]*** Partial cut [17:32:40]*** CUTSNS_PIN = 1 [17:32:40]*** CUTSNS_PIN = 0 [17:32:40]*** Brake cut motor [17:32:41]Read from MH i2c: 01 [17:32:41]MH_I2C_Read... [17:32:41]*** Stop cut motor [17:32:41]*** Cut end [17:32:41]Read from MH i2c: 01 07 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: 01 07 00 EF 09 00 00 00 00 00 FF 0F 0D [17:32:41]process_action close_receipt done [17:32:41]requested_data is exist [17:32:41]produce_requested_data [17:32:41]requested_item fm.sn is exist - process it [17:32:41]wFMCommunicate request_size=4 [17:32:41]MH_SAM_APDU [17:32:41]CAPDU: 80 11 00 00 [17:32:41]Write to MH i2c: E2 08 00 F0 09 80 11 00 00 00 00 00 00 73 [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:32:41]Read from MH i2c: E2 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 17 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 17 00 F0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 C8 [17:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:32:41]wFMCommunicate OK [17:32:41]requested_item fd.num is exist - process it [17:32:41]SAM_PROTO_GetFieldsCounters [17:32:41]wFMCommunicate request_size=4 [17:32:41]MH_SAM_APDU [17:32:41]CAPDU: 80 13 00 00 [17:32:41]Write to MH i2c: E2 08 00 F1 09 80 13 00 00 00 00 00 00 76 [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:32:41]Read from MH i2c: E2 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 62 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 62 00 F1 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 99 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [17:32:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 99 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:32:41]wFMCommunicate OK [17:32:41]SAM_PROTO_GetFieldsCounters done [17:32:41]requested_item shift.num is exist - process it [17:32:41]requested_item shift.opened is exist - process it [17:32:41]req_shift_opened [17:32:41]FM_GetShiftState [17:32:41]SAM_PROTO_GetShiftState [17:32:41]wFMCommunicate request_size=4 [17:32:41]MH_SAM_APDU [17:32:41]CAPDU: 80 13 01 00 [17:32:41]Write to MH i2c: E2 08 00 F2 09 80 13 01 00 00 00 00 00 78 [17:32:41]Write i2c OK [17:32:41]MH_I2C_Read... [17:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:32:41]Read from MH i2c: E2 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 0E 00 [17:32:41]MH_I2C_Read... [17:32:41]Read from MH i2c: E2 0E 00 F2 09 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 84 [17:32:41]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:32:41]wFMCommunicate OK [17:32:41]SAM_PROTO_GetShiftState done [17:32:41]FM_GetShiftState done [17:32:41]req_shift_opened done [17:32:41]requested_item shift.open_date is exist - process it [17:32:41]req_shift_open_date [17:32:41]req_shift_open_date done [17:32:41]produce_requested_data done [17:32:41]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5017,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [17:32:41]process_action_free close_receipt [17:32:41]json_value_free [17:32:41]json_value_free done [17:32:41]process_json_proto returns [17:32:41]Send response to host [17:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5017,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [17:32:41]free response buf [17:32:41]execute_script done [17:32:41]execute_script returns [17:32:41]free content buf [17:32:41]Sock 9.Close socket [17:32:41]Sock 9.Thread stoped [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:30]OFD Sender: No OFD packet to send [17:37:35]OFD Sender: No OFD packet to send [17:37:40]OFD Sender: No OFD packet to send [17:37:45]OFD Sender: No OFD packet to send [17:37:50]OFD Sender: No OFD packet to send [17:37:55]OFD Sender: No OFD packet to send [17:38:00]OFD Sender: No OFD packet to send [17:38:05]OFD Sender: No OFD packet to send [17:38:10]OFD Sender: No OFD packet to send [17:38:15]OFD Sender: No OFD packet to send [17:38:20]OFD Sender: No OFD packet to send [17:38:25]OFD Sender: No OFD packet to send [17:38:30]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:35]OFD Sender: No OFD packet to send [17:39:40]OFD Sender: No OFD packet to send [17:39:45]OFD Sender: No OFD packet to send [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:20]OFD Sender: No OFD packet to send [17:40:25]OFD Sender: No OFD packet to send [17:40:30]OFD Sender: No OFD packet to send [17:40:35]OFD Sender: No OFD packet to send [17:40:40]OFD Sender: No OFD packet to send [17:40:45]OFD Sender: No OFD packet to send [17:40:50]OFD Sender: No OFD packet to send [17:40:55]OFD Sender: No OFD packet to send [17:41:00]OFD Sender: No OFD packet to send [17:41:05]OFD Sender: No OFD packet to send [17:41:10]OFD Sender: No OFD packet to send [17:41:15]OFD Sender: No OFD packet to send [17:41:20]OFD Sender: No OFD packet to send [17:41:25]OFD Sender: No OFD packet to send [17:41:30]OFD Sender: No OFD packet to send [17:41:35]OFD Sender: No OFD packet to send [17:41:40]OFD Sender: No OFD packet to send [17:41:45]OFD Sender: No OFD packet to send [17:41:50]OFD Sender: No OFD packet to send [17:41:55]OFD Sender: No OFD packet to send [17:42:00]OFD Sender: No OFD packet to send [17:42:05]OFD Sender: No OFD packet to send [17:42:10]OFD Sender: No OFD packet to send [17:42:15]OFD Sender: No OFD packet to send [17:42:20]OFD Sender: No OFD packet to send [17:42:25]OFD Sender: No OFD packet to send [17:42:30]OFD Sender: No OFD packet to send [17:42:35]OFD Sender: No OFD packet to send [17:42:40]OFD Sender: No OFD packet to send [17:42:45]OFD Sender: No OFD packet to send [17:42:50]OFD Sender: No OFD packet to send [17:42:55]OFD Sender: No OFD packet to send [17:43:00]OFD Sender: No OFD packet to send [17:43:05]OFD Sender: No OFD packet to send [17:43:10]OFD Sender: No OFD packet to send [17:43:15]OFD Sender: No OFD packet to send [17:43:20]OFD Sender: No OFD packet to send [17:43:25]OFD Sender: No OFD packet to send [17:43:30]OFD Sender: No OFD packet to send [17:43:35]OFD Sender: No OFD packet to send [17:43:40]OFD Sender: No OFD packet to send [17:43:45]OFD Sender: No OFD packet to send [17:43:50]OFD Sender: No OFD packet to send [17:43:55]OFD Sender: No OFD packet to send [17:44:00]OFD Sender: No OFD packet to send [17:44:05]OFD Sender: No OFD packet to send [17:44:10]OFD Sender: No OFD packet to send [17:44:15]OFD Sender: No OFD packet to send [17:44:20]OFD Sender: No OFD packet to send [17:44:25]OFD Sender: No OFD packet to send [17:44:30]OFD Sender: No OFD packet to send [17:44:35]OFD Sender: No OFD packet to send [17:44:40]OFD Sender: No OFD packet to send [17:44:45]OFD Sender: No OFD packet to send [17:44:50]OFD Sender: No OFD packet to send [17:44:55]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49: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:44]accept exits with 7 [17:51:44]New connection [17:51:44]New thread 3067252068 created [17:51:44]Thread 3067108708 joined [17:51:44]Waiting for new connection... [17:51:44] Sock 7.Parse request [17:51:44]Sock 7.Check first char [17:51:44]Sock 7.First char is OK [17:51:44]request: POST /json_proto HTTP/1.0 [17:51:44]Method: POST [17:51:44]URL: /json_proto [17:51:44]Method is POST - this is cgi request [17:51:44]url: /json_proto [17:51:44]query_string will be loaded in cgi processing [17:51:44]execute_cgi json_proto POST (null) [17:51:44]execute_cgi path=json_proto method=POST [17:51:44]POST find Content-Length [17:51:44]Host: 172.17.44.4:8080 [17:51:44]Content-Length: 624 [17:51:44]Content-Type: application/json [17:51:44] [17:51:44]POST finish read [17:51:44]Found Content-Length = 624 [17:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141014", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "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" ] } } [17:51:44]execute_script... [17:51: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)141014", "tax_sys" : 0, "items" : [ { "code": "48744683", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster+", "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" ] } } [17:51:44]POST & json_proto [17:51:44]process_json_proto [17:51:44]json parsed OK: [17:51:44]protocol is kg_v1.0 [17:51:44]action value=close_receipt [17:51:44]process_action close_receipt [17:51:44]cmd_close_receipt [17:51:44]MH_GetDate [17:51:44]Write to MH i2c: F0 00 00 F3 09 EB [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: F0 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: F0 09 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: F0 09 00 F3 09 00 B1 47 46 66 6C E9 28 66 7B [17:51:44]GetLastDocTimeStamp 1715880758 [17:51:44]current date 1715881905 [17:51:44]FM_GetShiftState [17:51:44]SAM_PROTO_GetShiftState [17:51:44]wFMCommunicate request_size=4 [17:51:44]MH_SAM_APDU [17:51:44]CAPDU: 80 13 01 00 [17:51:44]Write to MH i2c: E2 08 00 F4 09 80 13 01 00 00 00 00 00 7A [17:51:44]Write i2c OK [17:51:44]MH_I2C_Read... [17:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:44]Read from MH i2c: E2 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 0E 00 [17:51:44]MH_I2C_Read... [17:51:44]Read from MH i2c: E2 0E 00 F4 09 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 86 [17:51:44]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:51:44]wFMCommunicate OK [17:51:44]SAM_PROTO_GetShiftState done [17:51:44]FM_GetShiftState done [17:51:44]opened in 1715818246 [17:51:44]opened+sec_in_day 1715904646 [17:51:44]quantity*price = 13800 [17:51:44]sum+1 = 13801 [17:51:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 78 16.05.2024 17:51 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5018 ФПД: 216875496792125 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T175145&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5018&fm=216875496792125&tin=02508201610067®Number=0000000000154221&sum=13800 0 [17:51:45]StoreToDocumentArchive [17:51:45]shift 44 fd 5018 [17:51:45]save to /storage/0044/doc_00005018 [17:51:45]save last doc name /storage/0044/doc_00005018 to /storage/kkm_last_doc_name [17:51:45]save OK [17:51:45]Clear old archive folders... [17:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=276 [17:51:45]tlvbuf is 011EB9C0 [17:51:45]SAM_PROTO_ClearQueue [17:51:45]wFMCommunicate request_size=4 [17:51:45]MH_SAM_APDU [17:51:45]CAPDU: 80 09 00 00 [17:51:45]Write to MH i2c: E2 08 00 01 0A 80 09 00 00 00 00 00 00 7D [17:51:45]Write i2c OK [17:51:45]MH_I2C_Read... [17:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:45]Read from MH i2c: E2 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 03 00 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 03 00 01 0A 00 90 00 7F [17:51:45]RAPDU: 90 00 [17:51:45]wFMCommunicate OK [17:51:45]SAM_PROTO_ClearQueue done [17:51:45]KKMCreateOFDPacket [17:51:45]OFDProtocolAddRootSTLVToBuf [17:51:45]FM_MakeSignedData [17:51:45]FM_MakeSignedData [17:51:45]SAM_PROTO_SignData [17:51:45]wFMCommunicate request_size=4 [17:51:45]MH_SAM_APDU [17:51:45]CAPDU: 80 0D 01 02 [17:51:45]Write to MH i2c: E2 08 00 02 0A 80 0D 01 02 00 00 00 00 85 [17:51:45]Write i2c OK [17:51:45]MH_I2C_Read... [17:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:45]Read from MH i2c: E2 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 03 00 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 03 00 02 0A 00 90 00 80 [17:51:45]RAPDU: 90 00 [17:51:45]wFMCommunicate OK [17:51:45]wFMCommunicate request_size=255 [17:51:45]MH_SAM_APDU [17:51:45]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 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 4E 00 00 00 F4 03 04 00 B1 47 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 [17:51:45]Write to MH i2c: E2 02 01 03 0A 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 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 4E 00 00 00 F4 03 04 00 B1 47 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 00 00 D6 [17:51:45]Write i2c OK [17:51:45]MH_I2C_Read... [17:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:45]Read from MH i2c: E2 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 03 00 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 03 00 03 0A 00 90 00 81 [17:51:45]RAPDU: 90 00 [17:51:45]wFMCommunicate OK [17:51:45]wFMCommunicate request_size=35 [17:51:45]MH_SAM_APDU [17:51:45]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9A 13 00 00 35 04 06 00 C5 3F 42 F2 60 3D [17:51:45]Write to MH i2c: E2 26 00 04 0A 80 0D 02 02 1E 00 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9A 13 00 00 35 04 06 00 C5 3F 42 F2 60 3D 00 00 FF [17:51:45]Write i2c OK [17:51:45]MH_I2C_Read... [17:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:45]Read from MH i2c: E2 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 03 00 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 03 00 04 0A 00 90 00 82 [17:51:45]RAPDU: 90 00 [17:51:45]wFMCommunicate OK [17:51:45]wFMCommunicate request_size=4 [17:51:45]MH_SAM_APDU [17:51:45]CAPDU: 80 0D 03 02 [17:51:45]Write to MH i2c: E2 08 00 05 0A 80 0D 03 02 00 00 00 00 8A [17:51:45]Write i2c OK [17:51:45]MH_I2C_Read... [17:51:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:45]Read from MH i2c: E2 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 0B 00 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 0B 00 05 0A 00 BD B3 70 26 CD 54 18 F5 90 00 BF [17:51:45]RAPDU: BD B3 70 26 CD 54 18 F5 90 00 [17:51:45]wFMCommunicate OK [17:51:45]SAM_PROTO_SignData done [17:51:45]FM_MakeSignedData done [17:51:45]CreateOFDProtocolMessage [17:51:45]wFMCommunicate request_size=4 [17:51:45]MH_SAM_APDU [17:51:45]CAPDU: 80 11 00 00 [17:51:45]Write to MH i2c: E2 08 00 06 0A 80 11 00 00 00 00 00 00 8A [17:51:45]Write i2c OK [17:51:45]MH_I2C_Read... [17:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:45]Read from MH i2c: E2 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 17 00 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: E2 17 00 06 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 DF [17:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:51:45]wFMCommunicate OK [17:51:45]CreateOFDProtocolMessage done [17:51:45]OFDSenderStorePacket 5018 [17:51:45]StoreOFDPacket docnum=5018 [17:51:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 28 01 00 00 9A C4 20 01 75 B9 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 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 4E 00 00 00 F4 03 04 00 B1 47 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9A 13 00 00 35 04 06 00 C5 3F 42 F2 60 3D BD B3 70 26 CD 54 18 F5 [17:51:45]CheckFolder [17:51:45]dirname=/storage/ofd_packets [17:51:45]CheckFolder done [17:51:45]ProducePacketName [17:51:45]name=ofd_packets/00005018 [17:51:45]NVStorageSaveData ofd_packets/00005018 [17:51:45]File name is /storage/ofd_packets/00005018 [17:51:45]Write 326 bytes [17:51:45]NVStorageSaveData done [17:51:45]OFDSenderStorePacket done [17:51:45]KKMCreateOFDPacket done [17:51:45]NVStorageSaveData kkm_last_timestamp [17:51:45]File name is /storage/kkm_last_timestamp [17:51:45]Write 4 bytes [17:51:45]NVStorageSaveData done [17:51:45]ExternCall_PrintAddStr [17:51:45]wPrintStart [17:51:45]Write to MH i2c: 01 00 00 07 0A 11 [17:51:45]Write i2c OK [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: 01 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: 01 07 00 [17:51:45]MH_I2C_Read... [17:51:45]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 FF 0F 26 [17:51:45]RasterBufferAndPrint [17:51:45]line Счет N : (3)141014 [17:51:45]line ИНН: 02508201610067 [17:51:45]line Контрольно-Кассовый Чек [17:51:45]line ПРОДАЖА [17:51:45]line Товар: 48744683 [17:51:45]line Сигареты Winston XStyle Caster+ [17:51:45]line 1.000 * 138.00 [17:51:45]line = 138.00 [17:51:45]line НДС 12% НСП 1% [17:51:45]line > о реализуемом товаре [17:51:45]line ИТОГО: 138.00 [17:51:45]line НСП 1% : 1.22 [17:51:45]line НДС 12% : 14.65 [17:51:45]line Наличными: 138.00 [17:51:45]line Безнал.: 0.00 [17:51:45]line Место: АЗС № 135 "Партнер Нефть" [17:51:45]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [17:51:45]line СНО: Общий режим [17:51:45]line Чек 78 16.05.2024 17:51 [17:51:45]line Смена: 44 ФФД: 1.0 [17:51:45]line ЗНМ: 0300000237 [17:51:46]line РНМ: 0000000000154221 [17:51:46]line Версия ККМ: v1.0 [17:51:46]line ФМ: 0000000000963259 [17:51:46]line ФД: 5018 [17:51:46]line ФПД: 216875496792125 [17:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T175145&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5018&fm=216875496792125&tin=02508201610067®Number=0000000000154221&sum=13800 [17:51:46]line 0 [17:51:46]OFD Sender: Processing packet 5018 [packets to send 4, broken 3] [17:51:46]ProducePacketName [17:51:46]name=ofd_packets/00005018 [17:51:46]OFD Sender: To server: pG, [17:51:46]CommunicateWithHost lk.salyk.kg:30040 [17:51:46]ConnectInit lk.salyk.kg [17:51:46]written 0, free lines is 4095 [17:51:46]Connected sock=10 [17:51:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 28 01 00 00 9A C4 20 01 75 B9 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 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 4E 00 00 00 F4 03 04 00 B1 47 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9A 13 00 00 35 04 06 00 C5 3F 42 F2 60 3D BD B3 70 26 CD 54 18 F5 [17:51:46]Write to MH i2c: 01 00 00 30 0A 3A [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: 01 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: 01 07 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 7D 0C CA [17:51:46]RasterBufferAndPrint [17:51:46]line [17:51:46]line [17:51:46]line [17:51:46]line [17:51:46]line [17:51:46]written 0, free lines is 3202 [17:51:46]MH_Cut [17:51:46]Write to MH i2c: D1 01 00 37 0A 01 13 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: D1 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: D1 01 00 [17:51:46]MH_I2C_Read... [17:51:46]Read from MH i2c: D1 01 00 37 0A 00 12 [17:51:46]Write to MH i2c: 01 00 00 38 0A 42 [17:51:46]Write i2c OK [17:51:46]MH_I2C_Read... [17:51:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 67 00 47 00 54 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9A 13 00 00 F4 03 04 00 74 F3 45 66 B6 04 01 00 00 7D B7 A0 B9 DB E4 4B EE [17:51:46]CommunicateWithHost err = 0 [17:51:46]CheckOFDResponse [17:51:46]1017 (14) - 77093643461234 [17:51:46]1041 (16) - 0000000000963259 [17:51:46]1040 (4) - 5018 [17:51:46]1012 (4) - 16.05.2024 11:52 [17:51:46]1206 (1) - 0 [17:51:46]OFD Sender: Remove packet 5018 [17:51:46]ProducePacketName [17:51:46]name=ofd_packets/00005018 [17:51:46]NVStorageDeleteData [17:51:47]OFD Sender: No OFD packet to send [17:51:47]*** Cut start [17:51:47]*** Partial cut [17:51:47]*** CUTSNS_PIN = 1 [17:51:47]*** CUTSNS_PIN = 0 [17:51:47]*** Brake cut motor [17:51:48]Read from MH i2c: 01 [17:51:48]MH_I2C_Read... [17:51:48]*** Stop cut motor [17:51:48]*** Cut end [17:51:48]Read from MH i2c: 01 07 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: 01 07 00 38 0A 00 00 00 00 00 FF 0F 57 [17:51:48]process_action close_receipt done [17:51:48]requested_data is exist [17:51:48]produce_requested_data [17:51:48]requested_item fm.sn is exist - process it [17:51:48]wFMCommunicate request_size=4 [17:51:48]MH_SAM_APDU [17:51:48]CAPDU: 80 11 00 00 [17:51:48]Write to MH i2c: E2 08 00 39 0A 80 11 00 00 00 00 00 00 BD [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 [17:51:48]MH_I2C_Read... [17:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:48]Read from MH i2c: E2 17 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 17 00 39 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 12 [17:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [17:51:48]wFMCommunicate OK [17:51:48]requested_item fd.num is exist - process it [17:51:48]SAM_PROTO_GetFieldsCounters [17:51:48]wFMCommunicate request_size=4 [17:51:48]MH_SAM_APDU [17:51:48]CAPDU: 80 13 00 00 [17:51:48]Write to MH i2c: E2 08 00 3A 0A 80 13 00 00 00 00 00 00 C0 [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:48]Read from MH i2c: E2 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 62 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 62 00 3A 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 9C [17:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9A 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:48]wFMCommunicate OK [17:51:48]SAM_PROTO_GetFieldsCounters done [17:51:48]requested_item shift.num is exist - process it [17:51:48]requested_item shift.opened is exist - process it [17:51:48]req_shift_opened [17:51:48]FM_GetShiftState [17:51:48]SAM_PROTO_GetShiftState [17:51:48]wFMCommunicate request_size=4 [17:51:48]MH_SAM_APDU [17:51:48]CAPDU: 80 13 01 00 [17:51:48]Write to MH i2c: E2 08 00 3B 0A 80 13 01 00 00 00 00 00 C2 [17:51:48]Write i2c OK [17:51:48]MH_I2C_Read... [17:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:48]Read from MH i2c: E2 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 0E 00 [17:51:48]MH_I2C_Read... [17:51:48]Read from MH i2c: E2 0E 00 3B 0A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CE [17:51:48]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [17:51:48]wFMCommunicate OK [17:51:48]SAM_PROTO_GetShiftState done [17:51:48]FM_GetShiftState done [17:51:48]req_shift_opened done [17:51:48]requested_item shift.open_date is exist - process it [17:51:48]req_shift_open_date [17:51:48]req_shift_open_date done [17:51:48]produce_requested_data done [17:51:48]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5018,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [17:51:48]process_action_free close_receipt [17:51:48]json_value_free [17:51:48]json_value_free done [17:51:48]process_json_proto returns [17:51:48]Send response to host [17:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5018,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [17:51:48]free response buf [17:51:48]execute_script done [17:51:48]execute_script returns [17:51:48]free content buf [17:51:48]Sock 7.Close socket [17:51:48]Sock 7.Thread stoped [17:51:52]OFD Sender: No OFD packet to send [17:51:57]OFD Sender: No OFD packet to send [17:52:02]OFD Sender: No OFD packet to send [17:52:07]OFD Sender: No OFD packet to send [17:52:12]OFD Sender: No OFD packet to send [17:52:17]OFD Sender: No OFD packet to send [17:52:22]OFD Sender: No OFD packet to send [17:52:27]OFD Sender: No OFD packet to send [17:52:32]OFD Sender: No OFD packet to send [17:52:37]OFD Sender: No OFD packet to send [17:52:42]OFD Sender: No OFD packet to send [17:52:47]OFD Sender: No OFD packet to send [17:52:52]OFD Sender: No OFD packet to send [17:52:57]OFD Sender: No OFD packet to send [17:53:02]OFD Sender: No OFD packet to send [17:53:07]OFD Sender: No OFD packet to send [17:53:12]OFD Sender: No OFD packet to send [17:53:17]OFD Sender: No OFD packet to send [17:53:22]OFD Sender: No OFD packet to send [17:53:27]OFD Sender: No OFD packet to send [17:53:32]OFD Sender: No OFD packet to send [17:53:37]OFD Sender: No OFD packet to send [17:53:42]OFD Sender: No OFD packet to send [17:53:47]OFD Sender: No OFD packet to send [17:53:52]OFD Sender: No OFD packet to send [17:53:57]OFD Sender: No OFD packet to send [17:54:02]OFD Sender: No OFD packet to send [17:54:07]OFD Sender: No OFD packet to send [17:54:12]OFD Sender: No OFD packet to send [17:54:17]OFD Sender: No OFD packet to send [17:54:22]OFD Sender: No OFD packet to send [17:54:27]OFD Sender: No OFD packet to send [17:54:32]OFD Sender: No OFD packet to send [17:54:37]OFD Sender: No OFD packet to send [17:54:42]OFD Sender: No OFD packet to send [17:54:47]OFD Sender: No OFD packet to send [17:54:52]OFD Sender: No OFD packet to send [17:54:57]OFD Sender: No OFD packet to send [17:55:02]OFD Sender: No OFD packet to send [17:55:07]OFD Sender: No OFD packet to send [17:55:12]OFD Sender: No OFD packet to send [17:55:17]OFD Sender: No OFD packet to send [17:55:22]OFD Sender: No OFD packet to send [17:55:27]OFD Sender: No OFD packet to send [17:55:32]OFD Sender: No OFD packet to send [17:55:37]OFD Sender: No OFD packet to send [17:55:42]OFD Sender: No OFD packet to send [17:55:47]OFD Sender: No OFD packet to send [17:55:52]OFD Sender: No OFD packet to send [17:55:57]OFD Sender: No OFD packet to send [17:56:02]OFD Sender: No OFD packet to send [17:56:07]OFD Sender: No OFD packet to send [17:56:12]OFD Sender: No OFD packet to send [17:56:17]OFD Sender: No OFD packet to send [17:56:22]OFD Sender: No OFD packet to send [17:56:27]OFD Sender: No OFD packet to send [17:56:32]OFD Sender: No OFD packet to send [17:56:37]OFD Sender: No OFD packet to send [17:56:42]OFD Sender: No OFD packet to send [17:56:47]OFD Sender: No OFD packet to send [17:56:52]OFD Sender: No OFD packet to send [17:56:57]OFD Sender: No OFD packet to send [17:57:02]OFD Sender: No OFD packet to send [17:57:07]OFD Sender: No OFD packet to send [17:57:12]OFD Sender: No OFD packet to send [17:57:17]OFD Sender: No OFD packet to send [17:57:22]OFD Sender: No OFD packet to send [17:57:27]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:17]OFD Sender: No OFD packet to send [18:01:22]OFD Sender: No OFD packet to send [18:01:27]OFD Sender: No OFD packet to send [18:01:32]OFD Sender: No OFD packet to send [18:01:37]OFD Sender: No OFD packet to send [18:01:42]OFD Sender: No OFD packet to send [18:01:47]OFD Sender: No OFD packet to send [18:01:52]OFD Sender: No OFD packet to send [18:01:57]OFD Sender: No OFD packet to send [18:02:02]OFD Sender: No OFD packet to send [18:02:07]OFD Sender: No OFD packet to send [18:02:12]OFD Sender: No OFD packet to send [18:02:17]OFD Sender: No OFD packet to send [18:02:22]OFD Sender: No OFD packet to send [18:02:27]OFD Sender: No OFD packet to send [18:02:32]OFD Sender: No OFD packet to send [18:02:37]OFD Sender: No OFD packet to send [18:02:42]OFD Sender: No OFD packet to send [18:02:47]OFD Sender: No OFD packet to send [18:02:52]OFD Sender: No OFD packet to send [18:02:57]OFD Sender: No OFD packet to send [18:03:02]OFD Sender: No OFD packet to send [18:03:07]OFD Sender: No OFD packet to send [18:03:12]OFD Sender: No OFD packet to send [18:03:17]OFD Sender: No OFD packet to send [18:03:22]OFD Sender: No OFD packet to send [18:03:27]OFD Sender: No OFD packet to send [18:03:32]OFD Sender: No OFD packet to send [18:03:37]OFD Sender: No OFD packet to send [18:03:42]OFD Sender: No OFD packet to send [18:03:47]OFD Sender: No OFD packet to send [18:03:52]OFD Sender: No OFD packet to send [18:03:57]OFD Sender: No OFD packet to send [18:04:02]OFD Sender: No OFD packet to send [18:04:07]OFD Sender: No OFD packet to send [18:04:12]OFD Sender: No OFD packet to send [18:04:17]OFD Sender: No OFD packet to send [18:04:22]OFD Sender: No OFD packet to send [18:04:27]OFD Sender: No OFD packet to send [18:04:32]OFD Sender: No OFD packet to send [18:04:37]OFD Sender: No OFD packet to send [18:04:42]OFD Sender: No OFD packet to send [18:04:47]OFD Sender: No OFD packet to send [18:04:52]OFD Sender: No OFD packet to send [18:04:57]OFD Sender: No OFD packet to send [18:05:02]OFD Sender: No OFD packet to send [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08: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:23]OFD Sender: No OFD packet to send [18:10:28]OFD Sender: No OFD packet to send [18:10:33]OFD Sender: No OFD packet to send [18:10:38]OFD Sender: No OFD packet to send [18:10:43]OFD Sender: No OFD packet to send [18:10:48]OFD Sender: No OFD packet to send [18:10:53]OFD Sender: No OFD packet to send [18:10:58]OFD Sender: No OFD packet to send [18:11:03]OFD Sender: No OFD packet to send [18:11:08]OFD Sender: No OFD packet to send [18:11:13]OFD Sender: No OFD packet to send [18:11:18]OFD Sender: No OFD packet to send [18:11:23]OFD Sender: No OFD packet to send [18:11:28]OFD Sender: No OFD packet to send [18:11:33]OFD Sender: No OFD packet to send [18:11:38]OFD Sender: No OFD packet to send [18:11:43]OFD Sender: No OFD packet to send [18:11:48]OFD Sender: No OFD packet to send [18:11:53]OFD Sender: No OFD packet to send [18:11:58]OFD Sender: No OFD packet to send [18:12:03]OFD Sender: No OFD packet to send [18:12:08]OFD Sender: No OFD packet to send [18:12:13]OFD Sender: No OFD packet to send [18:12:18]OFD Sender: No OFD packet to send [18:12:23]OFD Sender: No OFD packet to send [18:12:28]OFD Sender: No OFD packet to send [18:12:33]OFD Sender: No OFD packet to send [18:12:38]OFD Sender: No OFD packet to send [18:12:43]OFD Sender: No OFD packet to send [18:12:48]OFD Sender: No OFD packet to send [18:12:53]OFD Sender: No OFD packet to send [18:12:58]OFD Sender: No OFD packet to send [18:13:03]OFD Sender: No OFD packet to send [18:13:08]OFD Sender: No OFD packet to send [18:13:13]OFD Sender: No OFD packet to send [18:13:18]OFD Sender: No OFD packet to send [18:13:23]OFD Sender: No OFD packet to send [18:13:28]OFD Sender: No OFD packet to send [18:13:33]OFD Sender: No OFD packet to send [18:13:38]OFD Sender: No OFD packet to send [18:13:43]OFD Sender: No OFD packet to send [18:13:48]OFD Sender: No OFD packet to send [18:13:53]OFD Sender: No OFD packet to send [18:13:58]OFD Sender: No OFD packet to send [18:14:03]OFD Sender: No OFD packet to send [18:14:08]OFD Sender: No OFD packet to send [18:14:13]OFD Sender: No OFD packet to send [18:14:18]OFD Sender: No OFD packet to send [18:14:23]OFD Sender: No OFD packet to send [18:14:28]OFD Sender: No OFD packet to send [18:14:33]OFD Sender: No OFD packet to send [18:14:38]OFD Sender: No OFD packet to send [18:14:43]OFD Sender: No OFD packet to send [18:14:48]OFD Sender: No OFD packet to send [18:14:53]OFD Sender: No OFD packet to send [18:14:58]OFD Sender: No OFD packet to send [18:15:03]OFD Sender: No OFD packet to send [18:15:08]OFD Sender: No OFD packet to send [18:15:13]OFD Sender: No OFD packet to send [18:15:18]OFD Sender: No OFD packet to send [18:15:23]OFD Sender: No OFD packet to send [18:15:28]OFD Sender: No OFD packet to send [18:15:33]OFD Sender: No OFD packet to send [18:15:38]OFD Sender: No OFD packet to send [18:15:43]OFD Sender: No OFD packet to send [18:15:48]OFD Sender: No OFD packet to send [18:15:53]OFD Sender: No OFD packet to send [18:15:58]OFD Sender: No OFD packet to send [18:16:03]OFD Sender: No OFD packet to send [18:16:08]OFD Sender: No OFD packet to send [18:16:13]OFD Sender: No OFD packet to send [18:16:18]OFD Sender: No OFD packet to send [18:16:23]OFD Sender: No OFD packet to send [18:16:28]OFD Sender: No OFD packet to send [18:16:33]OFD Sender: No OFD packet to send [18:16:38]OFD Sender: No OFD packet to send [18:16:43]OFD Sender: No OFD packet to send [18:16:48]OFD Sender: No OFD packet to send [18:16:53]OFD Sender: No OFD packet to send [18:16:58]OFD Sender: No OFD packet to send [18:17:03]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [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:25]accept exits with 9 [18:20:25]New connection [18:20:25]New thread 3067108708 created [18:20:25]Thread 3067252068 joined [18:20:25]Waiting for new connection... [18:20:25] Sock 9.Parse request [18:20:25]Sock 9.Check first char [18:20:25]Sock 9.First char is OK [18:20:25]request: POST /json_proto HTTP/1.0 [18:20:25]Method: POST [18:20:25]URL: /json_proto [18:20:25]Method is POST - this is cgi request [18:20:25]url: /json_proto [18:20:25]query_string will be loaded in cgi processing [18:20:25]execute_cgi json_proto POST (null) [18:20:25]execute_cgi path=json_proto method=POST [18:20:25]POST find Content-Length [18:20:25]Host: 172.17.44.4:8080 [18:20:25]Content-Length: 673 [18:20:25]Content-Type: application/json [18:20:25] [18:20:25]POST finish read [18:20:25]Found Content-Length = 673 [18:20:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141015", "tax_sys" : 0, "items" : [ { "code": "4700003610836", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A SPARKLING \u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D 300\u043C\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" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:25]execute_script... [18:20: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)141015", "tax_sys" : 0, "items" : [ { "code": "4700003610836", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A SPARKLING \u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D 300\u043C\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" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:20:25]POST & json_proto [18:20:25]process_json_proto [18:20:25]json parsed OK: [18:20:25]protocol is kg_v1.0 [18:20:25]action value=close_receipt [18:20:25]process_action close_receipt [18:20:25]cmd_close_receipt [18:20:25]MH_GetDate [18:20:25]Write to MH i2c: F0 00 00 3C 0A 35 [18:20:25]Write i2c OK [18:20:25]MH_I2C_Read... [18:20:25]Read from MH i2c: F0 [18:20:25]MH_I2C_Read... [18:20:25]Read from MH i2c: F0 09 00 [18:20:25]MH_I2C_Read... [18:20:25]Read from MH i2c: F0 09 00 3C 0A 00 6B 4E 46 66 6C E9 28 66 86 [18:20:25]GetLastDocTimeStamp 1715881905 [18:20:25]current date 1715883627 [18:20:25]FM_GetShiftState [18:20:25]SAM_PROTO_GetShiftState [18:20:25]wFMCommunicate request_size=4 [18:20:25]MH_SAM_APDU [18:20:25]CAPDU: 80 13 01 00 [18:20:25]Write to MH i2c: E2 08 00 3D 0A 80 13 01 00 00 00 00 00 C4 [18:20:25]Write i2c OK [18:20:25]MH_I2C_Read... [18:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:26]Read from MH i2c: E2 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: E2 0E 00 [18:20:26]MH_I2C_Read... [18:20:26]Read from MH i2c: E2 0E 00 3D 0A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 D0 [18:20:26]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:20:26]wFMCommunicate OK [18:20:26]SAM_PROTO_GetShiftState done [18:20:26]FM_GetShiftState done [18:20:26]opened in 1715818246 [18:20:26]opened+sec_in_day 1715904646 [18:20:26]quantity*price = 4000 [18:20:26]sum+1 = 4001 [18:20:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 79 16.05.2024 18:20 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5019 ФПД: 57657423680633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T182027&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5019&fm=57657423680633&tin=02508201610067®Number=0000000000154221&sum=4000 0 [18:20:27]StoreToDocumentArchive [18:20:27]shift 44 fd 5019 [18:20:27]save to /storage/0044/doc_00005019 [18:20:27]save last doc name /storage/0044/doc_00005019 to /storage/kkm_last_doc_name [18:20:27]save OK [18:20:27]Clear old archive folders... [18:20:27]ProcessDocumentItem done err = 0, tmpTLVsize=292 [18:20:27]tlvbuf is 011FE330 [18:20:27]SAM_PROTO_ClearQueue [18:20:27]wFMCommunicate request_size=4 [18:20:27]MH_SAM_APDU [18:20:27]CAPDU: 80 09 00 00 [18:20:27]Write to MH i2c: E2 08 00 4A 0A 80 09 00 00 00 00 00 00 C6 [18:20:27]Write i2c OK [18:20:27]MH_I2C_Read... [18:20:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:20:27]Read from MH i2c: E2 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 03 00 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 03 00 4A 0A 00 90 00 C8 [18:20:27]RAPDU: 90 00 [18:20:27]wFMCommunicate OK [18:20:27]SAM_PROTO_ClearQueue done [18:20:27]KKMCreateOFDPacket [18:20:27]OFDProtocolAddRootSTLVToBuf [18:20:27]FM_MakeSignedData [18:20:27]FM_MakeSignedData [18:20:27]SAM_PROTO_SignData [18:20:27]wFMCommunicate request_size=4 [18:20:27]MH_SAM_APDU [18:20:27]CAPDU: 80 0D 01 02 [18:20:27]Write to MH i2c: E2 08 00 4B 0A 80 0D 01 02 00 00 00 00 CE [18:20:27]Write i2c OK [18:20:27]MH_I2C_Read... [18:20:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:20:27]Read from MH i2c: E2 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 03 00 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 03 00 4B 0A 00 90 00 C9 [18:20:27]RAPDU: 90 00 [18:20:27]wFMCommunicate OK [18:20:27]wFMCommunicate request_size=255 [18:20:27]MH_SAM_APDU [18:20:27]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 38 33 36 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 50 41 52 4B 4C 49 4E 47 20 D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 33 30 30 D0 BC 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 6B 4E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [18:20:27]Write to MH i2c: E2 02 01 4C 0A 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 38 33 36 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 50 41 52 4B 4C 49 4E 47 20 D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 33 30 30 D0 BC 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 6B 4E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 23 [18:20:27]Write i2c OK [18:20:27]MH_I2C_Read... [18:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:27]Read from MH i2c: E2 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 03 00 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 03 00 4C 0A 00 90 00 CA [18:20:27]RAPDU: 90 00 [18:20:27]wFMCommunicate OK [18:20:27]wFMCommunicate request_size=51 [18:20:27]MH_SAM_APDU [18:20:27]CAPDU: 80 0D 02 02 2E 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9B 13 00 00 35 04 06 00 34 70 6A 41 D4 79 [18:20:27]Write to MH i2c: E2 36 00 4D 0A 80 0D 02 02 2E 00 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9B 13 00 00 35 04 06 00 34 70 6A 41 D4 79 00 00 A4 [18:20:27]Write i2c OK [18:20:27]MH_I2C_Read... [18:20:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:20:27]Read from MH i2c: E2 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 03 00 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 03 00 4D 0A 00 90 00 CB [18:20:27]RAPDU: 90 00 [18:20:27]wFMCommunicate OK [18:20:27]wFMCommunicate request_size=4 [18:20:27]MH_SAM_APDU [18:20:27]CAPDU: 80 0D 03 02 [18:20:27]Write to MH i2c: E2 08 00 4E 0A 80 0D 03 02 00 00 00 00 D3 [18:20:27]Write i2c OK [18:20:27]MH_I2C_Read... [18:20:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:20:27]Read from MH i2c: E2 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 0B 00 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 0B 00 4E 0A 00 FA 4D A2 BC FF 13 D0 BC 90 00 17 [18:20:27]RAPDU: FA 4D A2 BC FF 13 D0 BC 90 00 [18:20:27]wFMCommunicate OK [18:20:27]SAM_PROTO_SignData done [18:20:27]FM_MakeSignedData done [18:20:27]CreateOFDProtocolMessage [18:20:27]wFMCommunicate request_size=4 [18:20:27]MH_SAM_APDU [18:20:27]CAPDU: 80 11 00 00 [18:20:27]Write to MH i2c: E2 08 00 4F 0A 80 11 00 00 00 00 00 00 D3 [18:20:27]Write i2c OK [18:20:27]MH_I2C_Read... [18:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:27]Read from MH i2c: E2 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 17 00 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: E2 17 00 4F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 28 [18:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:20:27]wFMCommunicate OK [18:20:27]CreateOFDProtocolMessage done [18:20:27]OFDSenderStorePacket 5019 [18:20:27]StoreOFDPacket docnum=5019 [18:20:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 38 01 00 00 30 55 30 01 62 F2 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 38 33 36 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 50 41 52 4B 4C 49 4E 47 20 D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 33 30 30 D0 BC 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 6B 4E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9B 13 00 00 35 04 06 00 34 70 6A 41 D4 79 FA 4D A2 BC FF 13 D0 BC [18:20:27]CheckFolder [18:20:27]dirname=/storage/ofd_packets [18:20:27]CheckFolder done [18:20:27]ProducePacketName [18:20:27]name=ofd_packets/00005019 [18:20:27]NVStorageSaveData ofd_packets/00005019 [18:20:27]File name is /storage/ofd_packets/00005019 [18:20:27]Write 342 bytes [18:20:27]NVStorageSaveData done [18:20:27]OFDSenderStorePacket done [18:20:27]KKMCreateOFDPacket done [18:20:27]NVStorageSaveData kkm_last_timestamp [18:20:27]File name is /storage/kkm_last_timestamp [18:20:27]Write 4 bytes [18:20:27]NVStorageSaveData done [18:20:27]ExternCall_PrintAddStr [18:20:27]wPrintStart [18:20:27]Write to MH i2c: 01 00 00 50 0A 5A [18:20:27]Write i2c OK [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: 01 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: 01 07 00 [18:20:27]MH_I2C_Read... [18:20:27]Read from MH i2c: 01 07 00 50 0A 00 00 00 00 00 FF 0F 6F [18:20:27]RasterBufferAndPrint [18:20:27]line Счет N : (3)141015 [18:20:27]line ИНН: 02508201610067 [18:20:27]line Контрольно-Кассовый Чек [18:20:27]line ПРОДАЖА [18:20:27]line Товар: 4700003610836 [18:20:27]line Напиток SPARKLING газ лимон 300мл [18:20:27]line 1.000 * 40.00 [18:20:27]line = 40.00 [18:20:27]line НДС 12% НСП 1% [18:20:27]line > о реализуемом товаре [18:20:27]line ИТОГО: 40.00 [18:20:27]line НСП 1% : 0.35 [18:20:27]line НДС 12% : 4.25 [18:20:27]line Наличными: 40.00 [18:20:27]line Безнал.: 0.00 [18:20:27]line Место: АЗС № 135 "Партнер Нефть" [18:20:27]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [18:20:27]line СНО: Общий режим [18:20:27]line Чек 79 16.05.2024 18:20 [18:20:27]line Смена: 44 ФФД: 1.0 [18:20:28]line ЗНМ: 0300000237 [18:20:28]line РНМ: 0000000000154221 [18:20:28]line Версия ККМ: v1.0 [18:20:28]line ФМ: 0000000000963259 [18:20:28]line ФД: 5019 [18:20:28]line ФПД: 57657423680633 [18:20:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T182027&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5019&fm=57657423680633&tin=02508201610067®Number=0000000000154221&sum=4000 [18:20:28]line 0 [18:20:28]OFD Sender: Processing packet 5019 [packets to send 4, broken 3] [18:20:28]ProducePacketName [18:20:28]name=ofd_packets/00005019 [18:20:28]OFD Sender: To server: pG, [18:20:28]CommunicateWithHost lk.salyk.kg:30040 [18:20:28]ConnectInit lk.salyk.kg [18:20:28]written 0, free lines is 4095 [18:20:28]Connected sock=10 [18:20:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 38 01 00 00 30 55 30 01 62 F2 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 36 31 30 38 33 36 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 53 50 41 52 4B 4C 49 4E 47 20 D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 33 30 30 D0 BC 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 6B 4E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9B 13 00 00 35 04 06 00 34 70 6A 41 D4 79 FA 4D A2 BC FF 13 D0 BC [18:20:28]Write to MH i2c: 01 00 00 79 0A 83 [18:20:28]Write i2c OK [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: 01 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: 01 07 00 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: 01 07 00 79 0A 00 00 00 00 00 85 0C 1B [18:20:28]RasterBufferAndPrint [18:20:28]line [18:20:28]line [18:20:28]line [18:20:28]line [18:20:28]line [18:20:28]written 0, free lines is 3210 [18:20:28]MH_Cut [18:20:28]Write to MH i2c: D1 01 00 80 0A 01 5C [18:20:28]Write i2c OK [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: D1 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: D1 01 00 [18:20:28]MH_I2C_Read... [18:20:28]Read from MH i2c: D1 01 00 80 0A 00 5B [18:20:28]Write to MH i2c: 01 00 00 81 0A 8B [18:20:28]Write i2c OK [18:20:28]MH_I2C_Read... [18:20:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 33 CE 47 00 17 AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9B 13 00 00 F4 03 04 00 2E FA 45 66 B6 04 01 00 00 59 5C E6 F7 61 AC 42 54 [18:20:28]CommunicateWithHost err = 0 [18:20:28]CheckOFDResponse [18:20:28]1017 (14) - 77093643461234 [18:20:28]1041 (16) - 0000000000963259 [18:20:28]1040 (4) - 5019 [18:20:28]1012 (4) - 16.05.2024 12:21 [18:20:28]1206 (1) - 0 [18:20:28]OFD Sender: Remove packet 5019 [18:20:28]ProducePacketName [18:20:28]name=ofd_packets/00005019 [18:20:28]NVStorageDeleteData [18:20:28]OFD Sender: No OFD packet to send [18:20:29]*** Cut start [18:20:29]*** Partial cut [18:20:29]*** CUTSNS_PIN = 1 [18:20:29]*** CUTSNS_PIN = 0 [18:20:29]*** Brake cut motor [18:20:30]Read from MH i2c: 01 [18:20:30]MH_I2C_Read... [18:20:30]*** Stop cut motor [18:20:30]*** Cut end [18:20:30]Read from MH i2c: 01 07 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: 01 07 00 81 0A 00 00 00 00 00 FF 0F A0 [18:20:30]process_action close_receipt done [18:20:30]requested_data is exist [18:20:30]produce_requested_data [18:20:30]requested_item fm.sn is exist - process it [18:20:30]wFMCommunicate request_size=4 [18:20:30]MH_SAM_APDU [18:20:30]CAPDU: 80 11 00 00 [18:20:30]Write to MH i2c: E2 08 00 82 0A 80 11 00 00 00 00 00 00 06 [18:20:30]Write i2c OK [18:20:30]MH_I2C_Read... [18:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:20:30]Read from MH i2c: E2 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 17 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 17 00 82 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 5B [18:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:20:30]wFMCommunicate OK [18:20:30]requested_item fd.num is exist - process it [18:20:30]SAM_PROTO_GetFieldsCounters [18:20:30]wFMCommunicate request_size=4 [18:20:30]MH_SAM_APDU [18:20:30]CAPDU: 80 13 00 00 [18:20:30]Write to MH i2c: E2 08 00 83 0A 80 13 00 00 00 00 00 00 09 [18:20:30]Write i2c OK [18:20:30]MH_I2C_Read... [18:20:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:20:30]Read from MH i2c: E2 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 62 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 62 00 83 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9B 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [18:20:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9B 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:20:30]wFMCommunicate OK [18:20:30]SAM_PROTO_GetFieldsCounters done [18:20:30]requested_item shift.num is exist - process it [18:20:30]requested_item shift.opened is exist - process it [18:20:30]req_shift_opened [18:20:30]FM_GetShiftState [18:20:30]SAM_PROTO_GetShiftState [18:20:30]wFMCommunicate request_size=4 [18:20:30]MH_SAM_APDU [18:20:30]CAPDU: 80 13 01 00 [18:20:30]Write to MH i2c: E2 08 00 84 0A 80 13 01 00 00 00 00 00 0B [18:20:30]Write i2c OK [18:20:30]MH_I2C_Read... [18:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:20:30]Read from MH i2c: E2 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 0E 00 [18:20:30]MH_I2C_Read... [18:20:30]Read from MH i2c: E2 0E 00 84 0A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 17 [18:20:30]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:20:30]wFMCommunicate OK [18:20:30]SAM_PROTO_GetShiftState done [18:20:30]FM_GetShiftState done [18:20:30]req_shift_opened done [18:20:30]requested_item shift.open_date is exist - process it [18:20:30]req_shift_open_date [18:20:30]req_shift_open_date done [18:20:30]produce_requested_data done [18:20:30]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5019,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [18:20:30]process_action_free close_receipt [18:20:30]json_value_free [18:20:30]json_value_free done [18:20:30]process_json_proto returns [18:20:30]Send response to host [18:20:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5019,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [18:20:30]free response buf [18:20:30]execute_script done [18:20:30]execute_script returns [18:20:30]free content buf [18:20:30]Sock 9.Close socket [18:20:30]Sock 9.Thread stoped [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:59]OFD Sender: No OFD packet to send [18:21:04]OFD Sender: No OFD packet to send [18:21:09]OFD Sender: No OFD packet to send [18:21:09]accept exits with 7 [18:21:09]New connection [18:21:09]New thread 3067252068 created [18:21:09]Thread 3067108708 joined [18:21:09]Waiting for new connection... [18:21:09] Sock 7.Parse request [18:21:09]Sock 7.Check first char [18:21:09]Sock 7.First char is OK [18:21:09]request: POST /json_proto HTTP/1.0 [18:21:09]Method: POST [18:21:09]URL: /json_proto [18:21:09]Method is POST - this is cgi request [18:21:09]url: /json_proto [18:21:09]query_string will be loaded in cgi processing [18:21:09]execute_cgi json_proto POST (null) [18:21:09]execute_cgi path=json_proto method=POST [18:21:09]POST find Content-Length [18:21:09]Host: 172.17.44.4:8080 [18:21:09]Content-Length: 655 [18:21:09]Content-Type: application/json [18:21:09] [18:21:09]POST finish read [18:21:09]Found Content-Length = 655 [18:21:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141016", "tax_sys" : 0, "items" : [ { "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:09]execute_script... [18:21: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)141016", "tax_sys" : 0, "items" : [ { "code": "4607065000868", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043E\u043C 45\u0433", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:09]POST & json_proto [18:21:09]process_json_proto [18:21:09]json parsed OK: [18:21:09]protocol is kg_v1.0 [18:21:09]action value=close_receipt [18:21:09]process_action close_receipt [18:21:09]cmd_close_receipt [18:21:09]MH_GetDate [18:21:09]Write to MH i2c: F0 00 00 85 0A 7E [18:21:09]Write i2c OK [18:21:09]MH_I2C_Read... [18:21:09]Read from MH i2c: F0 [18:21:09]MH_I2C_Read... [18:21:09]Read from MH i2c: F0 09 00 [18:21:09]MH_I2C_Read... [18:21:09]Read from MH i2c: F0 09 00 85 0A 00 97 4E 46 66 6C E9 28 66 FB [18:21:09]GetLastDocTimeStamp 1715883627 [18:21:09]current date 1715883671 [18:21:09]FM_GetShiftState [18:21:09]SAM_PROTO_GetShiftState [18:21:09]wFMCommunicate request_size=4 [18:21:09]MH_SAM_APDU [18:21:09]CAPDU: 80 13 01 00 [18:21:09]Write to MH i2c: E2 08 00 86 0A 80 13 01 00 00 00 00 00 0D [18:21:09]Write i2c OK [18:21:09]MH_I2C_Read... [18:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:09]Read from MH i2c: E2 [18:21:09]MH_I2C_Read... [18:21:09]Read from MH i2c: E2 0E 00 [18:21:09]MH_I2C_Read... [18:21:09]Read from MH i2c: E2 0E 00 86 0A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 19 [18:21:09]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:21:09]wFMCommunicate OK [18:21:09]SAM_PROTO_GetShiftState done [18:21:09]FM_GetShiftState done [18:21:09]opened in 1715818246 [18:21:09]opened+sec_in_day 1715904646 [18:21:09]quantity*price = 6900 [18:21:09]sum+1 = 6901 [18:21:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 80 16.05.2024 18:21 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5020 ФПД: 172793321096525 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T182111&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5020&fm=172793321096525&tin=02508201610067®Number=0000000000154221&sum=6900 0 [18:21:11]StoreToDocumentArchive [18:21:11]shift 44 fd 5020 [18:21:11]save to /storage/0044/doc_00005020 [18:21:11]save last doc name /storage/0044/doc_00005020 to /storage/kkm_last_doc_name [18:21:11]save OK [18:21:11]Clear old archive folders... [18:21:11]ProcessDocumentItem done err = 0, tmpTLVsize=281 [18:21:11]tlvbuf is 0115BA70 [18:21:11]SAM_PROTO_ClearQueue [18:21:11]wFMCommunicate request_size=4 [18:21:11]MH_SAM_APDU [18:21:11]CAPDU: 80 09 00 00 [18:21:11]Write to MH i2c: E2 08 00 93 0A 80 09 00 00 00 00 00 00 0F [18:21:11]Write i2c OK [18:21:11]MH_I2C_Read... [18:21:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:11]Read from MH i2c: E2 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 93 0A 00 90 00 11 [18:21:11]RAPDU: 90 00 [18:21:11]wFMCommunicate OK [18:21:11]SAM_PROTO_ClearQueue done [18:21:11]KKMCreateOFDPacket [18:21:11]OFDProtocolAddRootSTLVToBuf [18:21:11]FM_MakeSignedData [18:21:11]FM_MakeSignedData [18:21:11]SAM_PROTO_SignData [18:21:11]wFMCommunicate request_size=4 [18:21:11]MH_SAM_APDU [18:21:11]CAPDU: 80 0D 01 02 [18:21:11]Write to MH i2c: E2 08 00 94 0A 80 0D 01 02 00 00 00 00 17 [18:21:11]Write i2c OK [18:21:11]MH_I2C_Read... [18:21:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:11]Read from MH i2c: E2 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 94 0A 00 90 00 12 [18:21:11]RAPDU: 90 00 [18:21:11]wFMCommunicate OK [18:21:11]wFMCommunicate request_size=255 [18:21:11]MH_SAM_APDU [18:21:11]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 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 50 00 00 00 F4 03 04 00 97 4E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 [18:21:11]Write to MH i2c: E2 02 01 95 0A 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 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 50 00 00 00 F4 03 04 00 97 4E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 00 04 [18:21:11]Write i2c OK [18:21:11]MH_I2C_Read... [18:21:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:11]Read from MH i2c: E2 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 95 0A 00 90 00 13 [18:21:11]RAPDU: 90 00 [18:21:11]wFMCommunicate OK [18:21:11]wFMCommunicate request_size=40 [18:21:11]MH_SAM_APDU [18:21:11]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9C 13 00 00 35 04 06 00 9D 27 94 86 05 4D [18:21:11]Write to MH i2c: E2 2B 00 96 0A 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9C 13 00 00 35 04 06 00 9D 27 94 86 05 4D 00 00 B8 [18:21:11]Write i2c OK [18:21:11]MH_I2C_Read... [18:21:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:11]Read from MH i2c: E2 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 03 00 96 0A 00 90 00 14 [18:21:11]RAPDU: 90 00 [18:21:11]wFMCommunicate OK [18:21:11]wFMCommunicate request_size=4 [18:21:11]MH_SAM_APDU [18:21:11]CAPDU: 80 0D 03 02 [18:21:11]Write to MH i2c: E2 08 00 97 0A 80 0D 03 02 00 00 00 00 1C [18:21:11]Write i2c OK [18:21:11]MH_I2C_Read... [18:21:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:11]Read from MH i2c: E2 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 0B 00 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 0B 00 97 0A 00 33 BD 5E 22 F2 1A 1B DD 90 00 91 [18:21:11]RAPDU: 33 BD 5E 22 F2 1A 1B DD 90 00 [18:21:11]wFMCommunicate OK [18:21:11]SAM_PROTO_SignData done [18:21:11]FM_MakeSignedData done [18:21:11]CreateOFDProtocolMessage [18:21:11]wFMCommunicate request_size=4 [18:21:11]MH_SAM_APDU [18:21:11]CAPDU: 80 11 00 00 [18:21:11]Write to MH i2c: E2 08 00 98 0A 80 11 00 00 00 00 00 00 1C [18:21:11]Write i2c OK [18:21:11]MH_I2C_Read... [18:21:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:11]Read from MH i2c: E2 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 17 00 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: E2 17 00 98 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 71 [18:21:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:21:11]wFMCommunicate OK [18:21:11]CreateOFDProtocolMessage done [18:21:11]OFDSenderStorePacket 5020 [18:21:11]StoreOFDPacket docnum=5020 [18:21:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2D 01 00 00 18 D3 25 01 05 AD 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 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 50 00 00 00 F4 03 04 00 97 4E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9C 13 00 00 35 04 06 00 9D 27 94 86 05 4D 33 BD 5E 22 F2 1A 1B DD [18:21:11]CheckFolder [18:21:11]dirname=/storage/ofd_packets [18:21:11]CheckFolder done [18:21:11]ProducePacketName [18:21:11]name=ofd_packets/00005020 [18:21:11]NVStorageSaveData ofd_packets/00005020 [18:21:11]File name is /storage/ofd_packets/00005020 [18:21:11]Write 331 bytes [18:21:11]NVStorageSaveData done [18:21:11]OFDSenderStorePacket done [18:21:11]KKMCreateOFDPacket done [18:21:11]NVStorageSaveData kkm_last_timestamp [18:21:11]File name is /storage/kkm_last_timestamp [18:21:11]Write 4 bytes [18:21:11]NVStorageSaveData done [18:21:11]ExternCall_PrintAddStr [18:21:11]wPrintStart [18:21:11]Write to MH i2c: 01 00 00 99 0A A3 [18:21:11]Write i2c OK [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: 01 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: 01 07 00 [18:21:11]MH_I2C_Read... [18:21:11]Read from MH i2c: 01 07 00 99 0A 00 00 00 00 00 FF 0F B8 [18:21:11]RasterBufferAndPrint [18:21:11]line Счет N : (3)141016 [18:21:11]line ИНН: 02508201610067 [18:21:11]line Контрольно-Кассовый Чек [18:21:11]line ПРОДАЖА [18:21:11]line Товар: 4607065000868 [18:21:11]line Шок M&M`s с шоколадом 45г [18:21:11]line 1.000 * 69.00 [18:21:11]line = 69.00 [18:21:11]line НДС 12% НСП 1% [18:21:11]line > о реализуемом товаре [18:21:11]line ИТОГО: 69.00 [18:21:11]line НСП 1% : 0.61 [18:21:11]line НДС 12% : 7.33 [18:21:11]line Наличными: 69.00 [18:21:11]line Безнал.: 0.00 [18:21:11]line Место: АЗС № 135 "Партнер Нефть" [18:21:11]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [18:21:11]line СНО: Общий режим [18:21:11]line Чек 80 16.05.2024 18:21 [18:21:11]line Смена: 44 ФФД: 1.0 [18:21:11]line ЗНМ: 0300000237 [18:21:11]line РНМ: 0000000000154221 [18:21:11]line Версия ККМ: v1.0 [18:21:11]line ФМ: 0000000000963259 [18:21:11]line ФД: 5020 [18:21:11]line ФПД: 172793321096525 [18:21:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T182111&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5020&fm=172793321096525&tin=02508201610067®Number=0000000000154221&sum=6900 [18:21:11]line 0 [18:21:11]OFD Sender: Processing packet 5020 [packets to send 4, broken 3] [18:21:11]ProducePacketName [18:21:11]name=ofd_packets/00005020 [18:21:11]OFD Sender: To server: pG, [18:21:11]CommunicateWithHost lk.salyk.kg:30040 [18:21:11]ConnectInit lk.salyk.kg [18:21:11]written 0, free lines is 4095 [18:21:12]Connected sock=11 [18:21:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2D 01 00 00 18 D3 25 01 05 AD 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 38 36 38 06 04 27 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 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 50 00 00 00 F4 03 04 00 97 4E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9C 13 00 00 35 04 06 00 9D 27 94 86 05 4D 33 BD 5E 22 F2 1A 1B DD [18:21:12]Write to MH i2c: 01 00 00 C1 0A CB [18:21:12]Write i2c OK [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: 01 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: 01 07 00 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: 01 07 00 C1 0A 00 00 00 00 00 9F 0C 7D [18:21:12]RasterBufferAndPrint [18:21:12]line [18:21:12]line [18:21:12]line [18:21:12]line [18:21:12]line [18:21:12]written 0, free lines is 3234 [18:21:12]MH_Cut [18:21:12]Write to MH i2c: D1 01 00 C8 0A 01 A4 [18:21:12]Write i2c OK [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: D1 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: D1 01 00 [18:21:12]MH_I2C_Read... [18:21:12]Read from MH i2c: D1 01 00 C8 0A 00 A3 [18:21:12]Write to MH i2c: 01 00 00 C9 0A D3 [18:21:12]Write i2c OK [18:21:12]MH_I2C_Read... [18:21:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 D5 B4 47 00 A1 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 33 32 35 39 10 04 04 00 9C 13 00 00 F4 03 04 00 5A FA 45 66 B6 04 01 00 00 4A ED 98 0E 5D A3 8B CE [18:21:12]CommunicateWithHost err = 0 [18:21:12]CheckOFDResponse [18:21:12]1017 (14) - 77093643461234 [18:21:12]1041 (16) - 0000000000963259 [18:21:12]1040 (4) - 5020 [18:21:12]1012 (4) - 16.05.2024 12:21 [18:21:12]1206 (1) - 0 [18:21:12]OFD Sender: Remove packet 5020 [18:21:12]ProducePacketName [18:21:12]name=ofd_packets/00005020 [18:21:12]NVStorageDeleteData [18:21:12]OFD Sender: No OFD packet to send [18:21:13]*** Cut start [18:21:13]*** Partial cut [18:21:13]*** CUTSNS_PIN = 1 [18:21:13]*** CUTSNS_PIN = 0 [18:21:13]*** Brake cut motor [18:21:14]Read from MH i2c: 01 [18:21:14]MH_I2C_Read... [18:21:14]*** Stop cut motor [18:21:14]*** Cut end [18:21:14]Read from MH i2c: 01 07 00 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: 01 07 00 C9 0A 00 00 00 00 00 FF 0F E8 [18:21:14]process_action close_receipt done [18:21:14]requested_data is exist [18:21:14]produce_requested_data [18:21:14]requested_item fm.sn is exist - process it [18:21:14]wFMCommunicate request_size=4 [18:21:14]MH_SAM_APDU [18:21:14]CAPDU: 80 11 00 00 [18:21:14]Write to MH i2c: E2 08 00 CA 0A 80 11 00 00 00 00 00 00 4E [18:21:14]Write i2c OK [18:21:14]MH_I2C_Read... [18:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:14]Read from MH i2c: E2 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 17 00 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 17 00 CA 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A3 [18:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:21:14]wFMCommunicate OK [18:21:14]requested_item fd.num is exist - process it [18:21:14]SAM_PROTO_GetFieldsCounters [18:21:14]wFMCommunicate request_size=4 [18:21:14]MH_SAM_APDU [18:21:14]CAPDU: 80 13 00 00 [18:21:14]Write to MH i2c: E2 08 00 CB 0A 80 13 00 00 00 00 00 00 51 [18:21:14]Write i2c OK [18:21:14]MH_I2C_Read... [18:21:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:14]Read from MH i2c: E2 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 62 00 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 62 00 CB 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9C 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 35 [18:21:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9C 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:21:14]wFMCommunicate OK [18:21:14]SAM_PROTO_GetFieldsCounters done [18:21:14]requested_item shift.num is exist - process it [18:21:14]requested_item shift.opened is exist - process it [18:21:14]req_shift_opened [18:21:14]FM_GetShiftState [18:21:14]SAM_PROTO_GetShiftState [18:21:14]wFMCommunicate request_size=4 [18:21:14]MH_SAM_APDU [18:21:14]CAPDU: 80 13 01 00 [18:21:14]Write to MH i2c: E2 08 00 CC 0A 80 13 01 00 00 00 00 00 53 [18:21:14]Write i2c OK [18:21:14]MH_I2C_Read... [18:21:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:14]Read from MH i2c: E2 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 0E 00 [18:21:14]MH_I2C_Read... [18:21:14]Read from MH i2c: E2 0E 00 CC 0A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 5F [18:21:14]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:21:14]wFMCommunicate OK [18:21:14]SAM_PROTO_GetShiftState done [18:21:14]FM_GetShiftState done [18:21:14]req_shift_opened done [18:21:14]requested_item shift.open_date is exist - process it [18:21:14]req_shift_open_date [18:21:14]req_shift_open_date done [18:21:14]produce_requested_data done [18:21:14]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5020,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [18:21:14]process_action_free close_receipt [18:21:14]json_value_free [18:21:14]json_value_free done [18:21:14]process_json_proto returns [18:21:14]Send response to host [18:21:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5020,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [18:21:14]free response buf [18:21:14]execute_script done [18:21:14]execute_script returns [18:21:14]free content buf [18:21:14]Sock 7.Close socket [18:21:14]Sock 7.Thread stoped [18:21:17]OFD Sender: No OFD packet to send [18:21:22]OFD Sender: No OFD packet to send [18:21:27]OFD Sender: No OFD packet to send [18:21:32]OFD Sender: No OFD packet to send [18:21:37]OFD Sender: No OFD packet to send [18:21:42]OFD Sender: No OFD packet to send [18:21:47]OFD Sender: No OFD packet to send [18:21:52]OFD Sender: No OFD packet to send [18:21:57]OFD Sender: No OFD packet to send [18:22:02]OFD Sender: No OFD packet to send [18:22:07]OFD Sender: No OFD packet to send [18:22: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:58]OFD Sender: No OFD packet to send [18:31:03]OFD Sender: No OFD packet to send [18:31:08]OFD Sender: No OFD packet to send [18:31:13]OFD Sender: No OFD packet to send [18:31:18]OFD Sender: No OFD packet to send [18:31:23]OFD Sender: No OFD packet to send [18:31:28]OFD Sender: No OFD packet to send [18:31:33]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:48]OFD Sender: No OFD packet to send [18:33:53]OFD Sender: No OFD packet to send [18:33:57]accept exits with 9 [18:33:57]New connection [18:33:57]New thread 3067108708 created [18:33:57]Thread 3067252068 joined [18:33:57]Waiting for new connection... [18:33:57] Sock 9.Parse request [18:33:57]Sock 9.Check first char [18:33:57]Sock 9.First char is OK [18:33:57]request: POST /json_proto HTTP/1.0 [18:33:57]Method: POST [18:33:57]URL: /json_proto [18:33:57]Method is POST - this is cgi request [18:33:57]url: /json_proto [18:33:57]query_string will be loaded in cgi processing [18:33:57]execute_cgi json_proto POST (null) [18:33:57]execute_cgi path=json_proto method=POST [18:33:57]POST find Content-Length [18:33:57]Host: 172.17.44.4:8080 [18:33:57]Content-Length: 644 [18:33:57]Content-Type: application/json [18:33:57] [18:33:57]POST finish read [18:33:57]Found Content-Length = 644 [18:33:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141017", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:57]execute_script... [18:33: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)141017", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:57]POST & json_proto [18:33:57]process_json_proto [18:33:57]json parsed OK: [18:33:57]protocol is kg_v1.0 [18:33:57]action value=close_receipt [18:33:57]process_action close_receipt [18:33:57]cmd_close_receipt [18:33:57]MH_GetDate [18:33:57]Write to MH i2c: F0 00 00 CD 0A C6 [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: F0 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: F0 09 00 [18:33:57]MH_I2C_Read... [18:33:57]Read from MH i2c: F0 09 00 CD 0A 00 97 51 46 66 6C E9 28 66 46 [18:33:57]GetLastDocTimeStamp 1715883671 [18:33:57]current date 1715884439 [18:33:57]FM_GetShiftState [18:33:57]SAM_PROTO_GetShiftState [18:33:57]wFMCommunicate request_size=4 [18:33:57]MH_SAM_APDU [18:33:57]CAPDU: 80 13 01 00 [18:33:57]Write to MH i2c: E2 08 00 CE 0A 80 13 01 00 00 00 00 00 55 [18:33:57]Write i2c OK [18:33:57]MH_I2C_Read... [18:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:58]Read from MH i2c: E2 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 0E 00 [18:33:58]MH_I2C_Read... [18:33:58]Read from MH i2c: E2 0E 00 CE 0A 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 61 [18:33:58]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:33:58]wFMCommunicate OK [18:33:58]SAM_PROTO_GetShiftState done [18:33:58]FM_GetShiftState done [18:33:58]opened in 1715818246 [18:33:58]opened+sec_in_day 1715904646 [18:33:58]quantity*price = 3500 [18:33:58]sum+1 = 3501 [18:33:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 81 16.05.2024 18:33 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5021 ФПД: 186535914578883 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183359&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5021&fm=186535914578883&tin=02508201610067®Number=0000000000154221&sum=3500 0 [18:33:59]StoreToDocumentArchive [18:33:59]shift 44 fd 5021 [18:33:59]save to /storage/0044/doc_00005021 [18:33:59]save last doc name /storage/0044/doc_00005021 to /storage/kkm_last_doc_name [18:33:59]save OK [18:33:59]Clear old archive folders... [18:33:59]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:33:59]tlvbuf is 01189720 [18:33:59]SAM_PROTO_ClearQueue [18:33:59]wFMCommunicate request_size=4 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 09 00 00 [18:33:59]Write to MH i2c: E2 08 00 DB 0A 80 09 00 00 00 00 00 00 57 [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 DB 0A 00 90 00 59 [18:33:59]RAPDU: 90 00 [18:33:59]wFMCommunicate OK [18:33:59]SAM_PROTO_ClearQueue done [18:33:59]KKMCreateOFDPacket [18:33:59]OFDProtocolAddRootSTLVToBuf [18:33:59]FM_MakeSignedData [18:33:59]FM_MakeSignedData [18:33:59]SAM_PROTO_SignData [18:33:59]wFMCommunicate request_size=4 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 0D 01 02 [18:33:59]Write to MH i2c: E2 08 00 DC 0A 80 0D 01 02 00 00 00 00 5F [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 DC 0A 00 90 00 5A [18:33:59]RAPDU: 90 00 [18:33:59]wFMCommunicate OK [18:33:59]wFMCommunicate request_size=255 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 97 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 [18:33:59]Write to MH i2c: E2 02 01 DD 0A 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 97 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 00 00 4E [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 DD 0A 00 90 00 5B [18:33:59]RAPDU: 90 00 [18:33:59]wFMCommunicate OK [18:33:59]wFMCommunicate request_size=34 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9D 13 00 00 35 04 06 00 A9 A7 46 ED 23 C3 [18:33:59]Write to MH i2c: E2 25 00 DE 0A 80 0D 02 02 1D 00 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9D 13 00 00 35 04 06 00 A9 A7 46 ED 23 C3 00 00 3E [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 03 00 DE 0A 00 90 00 5C [18:33:59]RAPDU: 90 00 [18:33:59]wFMCommunicate OK [18:33:59]wFMCommunicate request_size=4 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 0D 03 02 [18:33:59]Write to MH i2c: E2 08 00 DF 0A 80 0D 03 02 00 00 00 00 64 [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 0B 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 0B 00 DF 0A 00 9A 13 41 6A 48 22 46 B0 90 00 1D [18:33:59]RAPDU: 9A 13 41 6A 48 22 46 B0 90 00 [18:33:59]wFMCommunicate OK [18:33:59]SAM_PROTO_SignData done [18:33:59]FM_MakeSignedData done [18:33:59]CreateOFDProtocolMessage [18:33:59]wFMCommunicate request_size=4 [18:33:59]MH_SAM_APDU [18:33:59]CAPDU: 80 11 00 00 [18:33:59]Write to MH i2c: E2 08 00 E0 0A 80 11 00 00 00 00 00 00 64 [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:59]Read from MH i2c: E2 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 17 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: E2 17 00 E0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 B9 [18:33:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:33:59]wFMCommunicate OK [18:33:59]CreateOFDProtocolMessage done [18:33:59]OFDSenderStorePacket 5021 [18:33:59]StoreOFDPacket docnum=5021 [18:33:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 27 01 00 00 D1 F1 1F 01 22 65 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 97 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9D 13 00 00 35 04 06 00 A9 A7 46 ED 23 C3 9A 13 41 6A 48 22 46 B0 [18:33:59]CheckFolder [18:33:59]dirname=/storage/ofd_packets [18:33:59]CheckFolder done [18:33:59]ProducePacketName [18:33:59]name=ofd_packets/00005021 [18:33:59]NVStorageSaveData ofd_packets/00005021 [18:33:59]File name is /storage/ofd_packets/00005021 [18:33:59]Write 325 bytes [18:33:59]NVStorageSaveData done [18:33:59]OFDSenderStorePacket done [18:33:59]KKMCreateOFDPacket done [18:33:59]NVStorageSaveData kkm_last_timestamp [18:33:59]File name is /storage/kkm_last_timestamp [18:33:59]Write 4 bytes [18:33:59]NVStorageSaveData done [18:33:59]ExternCall_PrintAddStr [18:33:59]wPrintStart [18:33:59]Write to MH i2c: 01 00 00 E1 0A EB [18:33:59]Write i2c OK [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: 01 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: 01 07 00 [18:33:59]MH_I2C_Read... [18:33:59]Read from MH i2c: 01 07 00 E1 0A 00 00 00 00 00 FF 0F 00 [18:33:59]RasterBufferAndPrint [18:33:59]line Счет N : (3)141017 [18:33:59]line ИНН: 02508201610067 [18:33:59]line Контрольно-Кассовый Чек [18:33:59]line ПРОДАЖА [18:33:59]line Товар: 4700000310326 [18:33:59]line Вода Адыгене 1л б/г [18:33:59]line 1.000 * 35.00 [18:33:59]line = 35.00 [18:33:59]line НДС 12% НСП 1% [18:33:59]line > о реализуемом товаре [18:33:59]line ИТОГО: 35.00 [18:33:59]line НСП 1% : 0.31 [18:33:59]line НДС 12% : 3.72 [18:33:59]line Наличными: 35.00 [18:33:59]line Безнал.: 0.00 [18:33:59]line Место: АЗС № 135 "Партнер Нефть" [18:33:59]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [18:33:59]line СНО: Общий режим [18:33:59]line Чек 81 16.05.2024 18:33 [18:33:59]line Смена: 44 ФФД: 1.0 [18:33:59]line ЗНМ: 0300000237 [18:33:59]line РНМ: 0000000000154221 [18:33:59]line Версия ККМ: v1.0 [18:33:59]line ФМ: 0000000000963259 [18:33:59]line ФД: 5021 [18:33:59]line ФПД: 186535914578883 [18:33:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183359&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5021&fm=186535914578883&tin=02508201610067®Number=0000000000154221&sum=3500 [18:33:59]line 0 [18:33:59]OFD Sender: Processing packet 5021 [packets to send 4, broken 3] [18:33:59]ProducePacketName [18:33:59]name=ofd_packets/00005021 [18:33:59]OFD Sender: To server: pG, [18:33:59]CommunicateWithHost lk.salyk.kg:30040 [18:33:59]ConnectInit lk.salyk.kg [18:33:59]written 0, free lines is 4095 [18:34:00]Connected sock=10 [18:34:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 27 01 00 00 D1 F1 1F 01 22 65 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 97 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9D 13 00 00 35 04 06 00 A9 A7 46 ED 23 C3 9A 13 41 6A 48 22 46 B0 [18:34:00]Write to MH i2c: 01 00 00 09 0B 14 [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: 01 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: 01 07 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 9D 0C C4 [18:34:00]RasterBufferAndPrint [18:34:00]line [18:34:00]line [18:34:00]line [18:34:00]line [18:34:00]line [18:34:00]written 0, free lines is 3233 [18:34:00]MH_Cut [18:34:00]Write to MH i2c: D1 01 00 10 0B 01 ED [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: D1 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: D1 01 00 [18:34:00]MH_I2C_Read... [18:34:00]Read from MH i2c: D1 01 00 10 0B 00 EC [18:34:00]Write to MH i2c: 01 00 00 11 0B 1C [18:34:00]Write i2c OK [18:34:00]MH_I2C_Read... [18:34:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 D5 FF 47 00 F4 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9D 13 00 00 F4 03 04 00 5A FD 45 66 B6 04 01 00 00 CF F6 38 D0 D4 D2 A8 DA [18:34:00]CommunicateWithHost err = 0 [18:34:00]CheckOFDResponse [18:34:00]1017 (14) - 77093643461234 [18:34:00]1041 (16) - 0000000000963259 [18:34:00]1040 (4) - 5021 [18:34:00]1012 (4) - 16.05.2024 12:34 [18:34:00]1206 (1) - 0 [18:34:00]OFD Sender: Remove packet 5021 [18:34:00]ProducePacketName [18:34:00]name=ofd_packets/00005021 [18:34:00]NVStorageDeleteData [18:34:01]OFD Sender: No OFD packet to send [18:34:01]*** Cut start [18:34:01]*** Partial cut [18:34:01]*** CUTSNS_PIN = 1 [18:34:01]*** CUTSNS_PIN = 0 [18:34:01]*** Brake cut motor [18:34:02]Read from MH i2c: 01 [18:34:02]MH_I2C_Read... [18:34:02]*** Stop cut motor [18:34:02]*** Cut end [18:34:02]Read from MH i2c: 01 07 00 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: 01 07 00 11 0B 00 00 00 00 00 FF 0F 31 [18:34:02]process_action close_receipt done [18:34:02]requested_data is exist [18:34:02]produce_requested_data [18:34:02]requested_item fm.sn is exist - process it [18:34:02]wFMCommunicate request_size=4 [18:34:02]MH_SAM_APDU [18:34:02]CAPDU: 80 11 00 00 [18:34:02]Write to MH i2c: E2 08 00 12 0B 80 11 00 00 00 00 00 00 97 [18:34:02]Write i2c OK [18:34:02]MH_I2C_Read... [18:34:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:02]Read from MH i2c: E2 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: E2 17 00 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: E2 17 00 12 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 EC [18:34:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:34:02]wFMCommunicate OK [18:34:02]requested_item fd.num is exist - process it [18:34:02]SAM_PROTO_GetFieldsCounters [18:34:02]wFMCommunicate request_size=4 [18:34:02]MH_SAM_APDU [18:34:02]CAPDU: 80 13 00 00 [18:34:02]Write to MH i2c: E2 08 00 13 0B 80 13 00 00 00 00 00 00 9A [18:34:02]Write i2c OK [18:34:02]MH_I2C_Read... [18:34:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:02]Read from MH i2c: E2 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: E2 62 00 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: E2 62 00 13 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9D 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 82 [18:34:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9D 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:02]wFMCommunicate OK [18:34:02]SAM_PROTO_GetFieldsCounters done [18:34:02]requested_item shift.num is exist - process it [18:34:02]requested_item shift.opened is exist - process it [18:34:02]req_shift_opened [18:34:02]FM_GetShiftState [18:34:02]SAM_PROTO_GetShiftState [18:34:02]wFMCommunicate request_size=4 [18:34:02]MH_SAM_APDU [18:34:02]CAPDU: 80 13 01 00 [18:34:02]Write to MH i2c: E2 08 00 14 0B 80 13 01 00 00 00 00 00 9C [18:34:02]Write i2c OK [18:34:02]MH_I2C_Read... [18:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:02]Read from MH i2c: E2 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: E2 0E 00 [18:34:02]MH_I2C_Read... [18:34:02]Read from MH i2c: E2 0E 00 14 0B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A8 [18:34:02]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:34:02]wFMCommunicate OK [18:34:02]SAM_PROTO_GetShiftState done [18:34:02]FM_GetShiftState done [18:34:02]req_shift_opened done [18:34:02]requested_item shift.open_date is exist - process it [18:34:02]req_shift_open_date [18:34:02]req_shift_open_date done [18:34:02]produce_requested_data done [18:34:02]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5021,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [18:34:02]process_action_free close_receipt [18:34:02]json_value_free [18:34:02]json_value_free done [18:34:02]process_json_proto returns [18:34:02]Send response to host [18:34:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5021,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [18:34:02]free response buf [18:34:02]execute_script done [18:34:02]execute_script returns [18:34:02]free content buf [18:34:02]Sock 9.Close socket [18:34:02]Sock 9.Thread stoped [18:34:06]OFD Sender: No OFD packet to send [18:34:07]accept exits with 7 [18:34:07]New connection [18:34:07]New thread 3067252068 created [18:34:07]Thread 3067108708 joined [18:34:07]Waiting for new connection... [18:34:07] Sock 7.Parse request [18:34:07]Sock 7.Check first char [18:34:07]Sock 7.First char is OK [18:34:07]request: POST /json_proto HTTP/1.0 [18:34:07]Method: POST [18:34:07]URL: /json_proto [18:34:07]Method is POST - this is cgi request [18:34:07]url: /json_proto [18:34:07]query_string will be loaded in cgi processing [18:34:07]execute_cgi json_proto POST (null) [18:34:07]execute_cgi path=json_proto method=POST [18:34:07]POST find Content-Length [18:34:07]Host: 172.17.44.4:8080 [18:34:07]Content-Length: 682 [18:34:07]Content-Type: application/json [18:34:07] [18:34:07]POST finish read [18:34:07]Found Content-Length = 682 [18:34:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.20, "quantity" : 23.100, "sum" : 790.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 790.00, "total" : 790.00, "payments": [ { "type": 0, "sum" : 790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:07]execute_script... [18:34:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.20, "quantity" : 23.100, "sum" : 790.02, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 790.00, "total" : 790.00, "payments": [ { "type": 0, "sum" : 790.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:34:07]POST & json_proto [18:34:07]process_json_proto [18:34:07]json parsed OK: [18:34:07]protocol is kg_v1.0 [18:34:07]action value=close_receipt [18:34:07]process_action close_receipt [18:34:07]cmd_close_receipt [18:34:07]MH_GetDate [18:34:07]Write to MH i2c: F0 00 00 15 0B 0F [18:34:07]Write i2c OK [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: F0 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: F0 09 00 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: F0 09 00 15 0B 00 A0 51 46 66 6C E9 28 66 98 [18:34:07]GetLastDocTimeStamp 1715884439 [18:34:07]current date 1715884448 [18:34:07]FM_GetShiftState [18:34:07]SAM_PROTO_GetShiftState [18:34:07]wFMCommunicate request_size=4 [18:34:07]MH_SAM_APDU [18:34:07]CAPDU: 80 13 01 00 [18:34:07]Write to MH i2c: E2 08 00 16 0B 80 13 01 00 00 00 00 00 9E [18:34:07]Write i2c OK [18:34:07]MH_I2C_Read... [18:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:07]Read from MH i2c: E2 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: E2 0E 00 [18:34:07]MH_I2C_Read... [18:34:07]Read from MH i2c: E2 0E 00 16 0B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 AA [18:34:07]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:34:07]wFMCommunicate OK [18:34:07]SAM_PROTO_GetShiftState done [18:34:07]FM_GetShiftState done [18:34:07]opened in 1715818246 [18:34:07]opened+sec_in_day 1715904646 [18:34:07]quantity*price = 79002 [18:34:07]sum+1 = 79003 [18:34:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.02 ИТОГО: 790.00 Внесено: 790.00 СДАЧА: 0.00 НСП 1% : 6.99 НДС 12% : 83.90 Наличными: 790.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 82 16.05.2024 18:34 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5022 ФПД: 249951491785150 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183408&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5022&fm=249951491785150&tin=02508201610067®Number=0000000000154221&sum=79000 [18:34:08]StoreToDocumentArchive [18:34:08]shift 44 fd 5022 [18:34:08]save to /storage/0044/doc_00005022 [18:34:08]save last doc name /storage/0044/doc_00005022 to /storage/kkm_last_doc_name [18:34:08]save OK [18:34:08]Clear old archive folders... [18:34:08]ProcessDocumentItem done err = 0, tmpTLVsize=250 [18:34:08]tlvbuf is 0117A650 [18:34:08]SAM_PROTO_ClearQueue [18:34:08]wFMCommunicate request_size=4 [18:34:08]MH_SAM_APDU [18:34:08]CAPDU: 80 09 00 00 [18:34:08]Write to MH i2c: E2 08 00 23 0B 80 09 00 00 00 00 00 00 A0 [18:34:08]Write i2c OK [18:34:08]MH_I2C_Read... [18:34:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:34:08]Read from MH i2c: E2 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: E2 03 00 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: E2 03 00 23 0B 00 90 00 A2 [18:34:08]RAPDU: 90 00 [18:34:08]wFMCommunicate OK [18:34:08]SAM_PROTO_ClearQueue done [18:34:08]KKMCreateOFDPacket [18:34:08]OFDProtocolAddRootSTLVToBuf [18:34:08]FM_MakeSignedData [18:34:08]FM_MakeSignedData [18:34:08]SAM_PROTO_SignData [18:34:08]wFMCommunicate request_size=4 [18:34:08]MH_SAM_APDU [18:34:08]CAPDU: 80 0D 01 02 [18:34:08]Write to MH i2c: E2 08 00 24 0B 80 0D 01 02 00 00 00 00 A8 [18:34:08]Write i2c OK [18:34:08]MH_I2C_Read... [18:34:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:34:08]Read from MH i2c: E2 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: E2 03 00 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: E2 03 00 24 0B 00 90 00 A3 [18:34:08]RAPDU: 90 00 [18:34:08]wFMCommunicate OK [18:34:08]wFMCommunicate request_size=255 [18:34:08]MH_SAM_APDU [18:34:08]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 5A 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 9A 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9E 13 00 00 35 04 06 00 E3 54 [18:34:08]Write to MH i2c: E2 02 01 25 0B 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 5A 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 9A 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9E 13 00 00 35 04 06 00 E3 54 00 00 5F [18:34:08]Write i2c OK [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: E2 [18:34:08]MH_I2C_Read... [18:34:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:08]Read from MH i2c: E2 03 00 [18:34:08]MH_I2C_Read... [18:34:08]Read from MH i2c: E2 03 00 25 0B 00 90 00 A4 [18:34:08]RAPDU: 90 00 [18:34:08]wFMCommunicate OK [18:34:08]wFMCommunicate request_size=9 [18:34:08]MH_SAM_APDU [18:34:08]CAPDU: 80 0D 02 02 04 5D E1 01 BE [18:34:08]Write to MH i2c: E2 0C 00 26 0B 80 0D 02 02 04 00 5D E1 01 BE 00 00 B0 [18:34:08]Write i2c OK [18:34:08]MH_I2C_Read... [18:34:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:34:09]Read from MH i2c: E2 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: E2 03 00 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: E2 03 00 26 0B 00 90 00 A5 [18:34:09]RAPDU: 90 00 [18:34:09]wFMCommunicate OK [18:34:09]wFMCommunicate request_size=4 [18:34:09]MH_SAM_APDU [18:34:09]CAPDU: 80 0D 03 02 [18:34:09]Write to MH i2c: E2 08 00 27 0B 80 0D 03 02 00 00 00 00 AD [18:34:09]Write i2c OK [18:34:09]MH_I2C_Read... [18:34:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:34:09]Read from MH i2c: E2 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: E2 0B 00 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: E2 0B 00 27 0B 00 81 A5 F8 6F A9 4E FB DD 90 00 0A [18:34:09]RAPDU: 81 A5 F8 6F A9 4E FB DD 90 00 [18:34:09]wFMCommunicate OK [18:34:09]SAM_PROTO_SignData done [18:34:09]FM_MakeSignedData done [18:34:09]CreateOFDProtocolMessage [18:34:09]wFMCommunicate request_size=4 [18:34:09]MH_SAM_APDU [18:34:09]CAPDU: 80 11 00 00 [18:34:09]Write to MH i2c: E2 08 00 28 0B 80 11 00 00 00 00 00 00 AD [18:34:09]Write i2c OK [18:34:09]MH_I2C_Read... [18:34:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:09]Read from MH i2c: E2 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: E2 17 00 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: E2 17 00 28 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 02 [18:34:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:34:09]wFMCommunicate OK [18:34:09]CreateOFDProtocolMessage done [18:34:09]OFDSenderStorePacket 5022 [18:34:09]StoreOFDPacket docnum=5022 [18:34:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0E 01 00 00 95 47 06 01 49 70 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 5A 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 9A 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9E 13 00 00 35 04 06 00 E3 54 5D E1 01 BE 81 A5 F8 6F A9 4E FB DD [18:34:09]CheckFolder [18:34:09]dirname=/storage/ofd_packets [18:34:09]CheckFolder done [18:34:09]ProducePacketName [18:34:09]name=ofd_packets/00005022 [18:34:09]NVStorageSaveData ofd_packets/00005022 [18:34:09]File name is /storage/ofd_packets/00005022 [18:34:09]Write 300 bytes [18:34:09]NVStorageSaveData done [18:34:09]OFDSenderStorePacket done [18:34:09]KKMCreateOFDPacket done [18:34:09]NVStorageSaveData kkm_last_timestamp [18:34:09]File name is /storage/kkm_last_timestamp [18:34:09]Write 4 bytes [18:34:09]NVStorageSaveData done [18:34:09]ExternCall_PrintAddStr [18:34:09]wPrintStart [18:34:09]Write to MH i2c: 01 00 00 29 0B 34 [18:34:09]Write i2c OK [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: 01 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: 01 07 00 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: 01 07 00 29 0B 00 00 00 00 00 FF 0F 49 [18:34:09]RasterBufferAndPrint [18:34:09]line Счет N : (1)1993056 [18:34:09]line ИНН: 02508201610067 [18:34:09]line Контрольно-Кассовый Чек [18:34:09]line ПРОДАЖА [18:34:09]line ТРК (МРК, ГНК) : 81 [18:34:09]line Товар: 2711190000 [18:34:09]line ГАЗ-К-5 [18:34:09]line 23.100 * 34.20 [18:34:09]line = 790.02 [18:34:09]line НДС 12% НСП 1% [18:34:09]line > о реализуемом товаре [18:34:09]line ОКРУГЛЕНИЕ: -0.02 [18:34:09]line ИТОГО: 790.00 [18:34:09]line Внесено: 790.00 [18:34:09]line СДАЧА: 0.00 [18:34:09]line НСП 1% : 6.99 [18:34:09]line НДС 12% : 83.90 [18:34:09]line Наличными: 790.00 [18:34:09]line Безнал.: 0.00 [18:34:09]line Место: АЗС № 135 "Партнер Нефть" [18:34:09]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [18:34:09]line СНО: Общий режим [18:34:09]line Чек 82 16.05.2024 18:34 [18:34:09]line Смена: 44 ФФД: 1.0 [18:34:09]line ЗНМ: 0300000237 [18:34:09]line РНМ: 0000000000154221 [18:34:09]line Версия ККМ: v1.0 [18:34:09]line ФМ: 0000000000963259 [18:34:09]line ФД: 5022 [18:34:09]line ФПД: 249951491785150 [18:34:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183408&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5022&fm=249951491785150&tin=02508201610067®Number=0000000000154221&sum=79000 [18:34:09]written 0, free lines is 4095 [18:34:09]OFD Sender: Processing packet 5022 [packets to send 4, broken 3] [18:34:09]ProducePacketName [18:34:09]name=ofd_packets/00005022 [18:34:09]OFD Sender: To server: pG, [18:34:09]CommunicateWithHost lk.salyk.kg:30040 [18:34:09]ConnectInit lk.salyk.kg [18:34:09]Connected sock=10 [18:34:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0E 01 00 00 95 47 06 01 49 70 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 3C 5A 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 9A 34 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 34 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 20 00 00 00 00 07 04 06 00 98 34 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 A0 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9E 13 00 00 35 04 06 00 E3 54 5D E1 01 BE 81 A5 F8 6F A9 4E FB DD [18:34:09]Write to MH i2c: 01 00 00 54 0B 5F [18:34:09]Write i2c OK [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: 01 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: 01 07 00 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: 01 07 00 54 0B 00 00 00 00 00 7A 0C EC [18:34:09]RasterBufferAndPrint [18:34:09]line [18:34:09]line [18:34:09]line [18:34:09]line [18:34:09]line [18:34:09]written 0, free lines is 3198 [18:34:09]MH_Cut [18:34:09]Write to MH i2c: D1 01 00 5B 0B 01 38 [18:34:09]Write i2c OK [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: D1 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: D1 01 00 [18:34:09]MH_I2C_Read... [18:34:09]Read from MH i2c: D1 01 00 5B 0B 00 37 [18:34:09]Write to MH i2c: 01 00 00 5C 0B 67 [18:34:09]Write i2c OK [18:34:09]MH_I2C_Read... [18:34:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 30 89 47 00 98 BD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9E 13 00 00 F4 03 04 00 63 FD 45 66 B6 04 01 00 00 FD 21 EA 09 3A D4 C0 3C [18:34:09]CommunicateWithHost err = 0 [18:34:09]CheckOFDResponse [18:34:09]1017 (14) - 77093643461234 [18:34:09]1041 (16) - 0000000000963259 [18:34:09]1040 (4) - 5022 [18:34:09]1012 (4) - 16.05.2024 12:34 [18:34:09]1206 (1) - 0 [18:34:09]OFD Sender: Remove packet 5022 [18:34:09]ProducePacketName [18:34:09]name=ofd_packets/00005022 [18:34:09]NVStorageDeleteData [18:34:10]OFD Sender: No OFD packet to send [18:34:10]*** Cut start [18:34:10]*** Partial cut [18:34:10]*** CUTSNS_PIN = 1 [18:34:10]*** CUTSNS_PIN = 0 [18:34:11]*** Brake cut motor [18:34:11]Read from MH i2c: 01 [18:34:11]MH_I2C_Read... [18:34:11]*** Stop cut motor [18:34:11]*** Cut end [18:34:11]Read from MH i2c: 01 07 00 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: 01 07 00 5C 0B 00 00 00 00 00 FF 0F 7C [18:34:11]process_action close_receipt done [18:34:11]requested_data is exist [18:34:11]produce_requested_data [18:34:11]requested_item fm.sn is exist - process it [18:34:11]wFMCommunicate request_size=4 [18:34:11]MH_SAM_APDU [18:34:11]CAPDU: 80 11 00 00 [18:34:11]Write to MH i2c: E2 08 00 5D 0B 80 11 00 00 00 00 00 00 E2 [18:34:11]Write i2c OK [18:34:11]MH_I2C_Read... [18:34:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:34:11]Read from MH i2c: E2 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: E2 17 00 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: E2 17 00 5D 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 37 [18:34:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:34:11]wFMCommunicate OK [18:34:11]requested_item fd.num is exist - process it [18:34:11]SAM_PROTO_GetFieldsCounters [18:34:11]wFMCommunicate request_size=4 [18:34:11]MH_SAM_APDU [18:34:11]CAPDU: 80 13 00 00 [18:34:11]Write to MH i2c: E2 08 00 5E 0B 80 13 00 00 00 00 00 00 E5 [18:34:11]Write i2c OK [18:34:11]MH_I2C_Read... [18:34:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:34:11]Read from MH i2c: E2 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: E2 62 00 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: E2 62 00 5E 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9E 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [18:34:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9E 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:34:11]wFMCommunicate OK [18:34:11]SAM_PROTO_GetFieldsCounters done [18:34:11]requested_item shift.num is exist - process it [18:34:11]requested_item shift.opened is exist - process it [18:34:11]req_shift_opened [18:34:11]FM_GetShiftState [18:34:11]SAM_PROTO_GetShiftState [18:34:11]wFMCommunicate request_size=4 [18:34:11]MH_SAM_APDU [18:34:11]CAPDU: 80 13 01 00 [18:34:11]Write to MH i2c: E2 08 00 5F 0B 80 13 01 00 00 00 00 00 E7 [18:34:11]Write i2c OK [18:34:11]MH_I2C_Read... [18:34:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:34:11]Read from MH i2c: E2 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: E2 0E 00 [18:34:11]MH_I2C_Read... [18:34:11]Read from MH i2c: E2 0E 00 5F 0B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F3 [18:34:11]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:34:11]wFMCommunicate OK [18:34:11]SAM_PROTO_GetShiftState done [18:34:11]FM_GetShiftState done [18:34:11]req_shift_opened done [18:34:11]requested_item shift.open_date is exist - process it [18:34:11]req_shift_open_date [18:34:11]req_shift_open_date done [18:34:11]produce_requested_data done [18:34:11]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5022,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [18:34:11]process_action_free close_receipt [18:34:11]json_value_free [18:34:11]json_value_free done [18:34:11]process_json_proto returns [18:34:11]Send response to host [18:34:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5022,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [18:34:11]free response buf [18:34:11]execute_script done [18:34:11]execute_script returns [18:34:11]free content buf [18:34:11]Sock 7.Close socket [18:34:11]Sock 7.Thread stoped [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:24]accept exits with 9 [18:35:24]New connection [18:35:24]New thread 3067108708 created [18:35:24]Thread 3067252068 joined [18:35:24]Waiting for new connection... [18:35:24] Sock 9.Parse request [18:35:24]Sock 9.Check first char [18:35:24]Sock 9.First char is OK [18:35:24]request: POST /json_proto HTTP/1.0 [18:35:24]Method: POST [18:35:24]URL: /json_proto [18:35:24]Method is POST - this is cgi request [18:35:24]url: /json_proto [18:35:24]query_string will be loaded in cgi processing [18:35:24]execute_cgi json_proto POST (null) [18:35:24]execute_cgi path=json_proto method=POST [18:35:24]POST find Content-Length [18:35:24]Host: 172.17.44.4:8080 [18:35:24]Content-Length: 659 [18:35:24]Content-Type: application/json [18:35:24] [18:35:24]POST finish read [18:35:24]Found Content-Length = 659 [18:35:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:24]execute_script... [18:35:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:24]POST & json_proto [18:35:24]process_json_proto [18:35:24]json parsed OK: [18:35:24]protocol is kg_v1.0 [18:35:24]action value=close_receipt [18:35:24]process_action close_receipt [18:35:24]cmd_close_receipt [18:35:24]MH_GetDate [18:35:24]Write to MH i2c: F0 00 00 60 0B 5A [18:35:24]Write i2c OK [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: F0 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: F0 09 00 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: F0 09 00 60 0B 00 ED 51 46 66 6C E9 28 66 30 [18:35:24]GetLastDocTimeStamp 1715884448 [18:35:24]current date 1715884525 [18:35:24]FM_GetShiftState [18:35:24]SAM_PROTO_GetShiftState [18:35:24]wFMCommunicate request_size=4 [18:35:24]MH_SAM_APDU [18:35:24]CAPDU: 80 13 01 00 [18:35:24]Write to MH i2c: E2 08 00 61 0B 80 13 01 00 00 00 00 00 E9 [18:35:24]Write i2c OK [18:35:24]MH_I2C_Read... [18:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:24]Read from MH i2c: E2 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: E2 0E 00 [18:35:24]MH_I2C_Read... [18:35:24]Read from MH i2c: E2 0E 00 61 0B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F5 [18:35:24]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:35:24]wFMCommunicate OK [18:35:24]SAM_PROTO_GetShiftState done [18:35:24]FM_GetShiftState done [18:35:24]opened in 1715818246 [18:35:24]opened+sec_in_day 1715904646 [18:35:24]quantity*price = 50036 [18:35:24]sum+1 = 50037 [18:35:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 83 16.05.2024 18:35 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5023 ФПД: 75934743324344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183525&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5023&fm=75934743324344&tin=02508201610067®Number=0000000000154221&sum=50000 [18:35:25]StoreToDocumentArchive [18:35:25]shift 44 fd 5023 [18:35:25]save to /storage/0044/doc_00005023 [18:35:25]save last doc name /storage/0044/doc_00005023 to /storage/kkm_last_doc_name [18:35:25]save OK [18:35:25]Clear old archive folders... [18:35:25]ProcessDocumentItem done err = 0, tmpTLVsize=244 [18:35:25]tlvbuf is 01213BC0 [18:35:25]SAM_PROTO_ClearQueue [18:35:25]wFMCommunicate request_size=4 [18:35:25]MH_SAM_APDU [18:35:25]CAPDU: 80 09 00 00 [18:35:25]Write to MH i2c: E2 08 00 6E 0B 80 09 00 00 00 00 00 00 EB [18:35:25]Write i2c OK [18:35:25]MH_I2C_Read... [18:35:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:25]Read from MH i2c: E2 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: E2 03 00 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: E2 03 00 6E 0B 00 90 00 ED [18:35:25]RAPDU: 90 00 [18:35:25]wFMCommunicate OK [18:35:25]SAM_PROTO_ClearQueue done [18:35:25]KKMCreateOFDPacket [18:35:25]OFDProtocolAddRootSTLVToBuf [18:35:25]FM_MakeSignedData [18:35:25]FM_MakeSignedData [18:35:25]SAM_PROTO_SignData [18:35:25]wFMCommunicate request_size=4 [18:35:25]MH_SAM_APDU [18:35:25]CAPDU: 80 0D 01 02 [18:35:25]Write to MH i2c: E2 08 00 6F 0B 80 0D 01 02 00 00 00 00 F3 [18:35:25]Write i2c OK [18:35:25]MH_I2C_Read... [18:35:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:25]Read from MH i2c: E2 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: E2 03 00 [18:35:25]MH_I2C_Read... [18:35:25]Read from MH i2c: E2 03 00 6F 0B 00 90 00 EE [18:35:25]RAPDU: 90 00 [18:35:25]wFMCommunicate OK [18:35:25]wFMCommunicate request_size=253 [18:35:25]MH_SAM_APDU [18:35:25]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 ED 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9F 13 00 00 35 04 06 00 45 0F EF 66 E6 B8 [18:35:25]Write to MH i2c: E2 00 01 70 0B 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 ED 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9F 13 00 00 35 04 06 00 45 0F EF 66 E6 B8 00 00 7A [18:35:25]Write i2c OK [18:35:25]MH_I2C_Read... [18:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:26]Read from MH i2c: E2 [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: E2 03 00 [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: E2 03 00 70 0B 00 90 00 EF [18:35:26]RAPDU: 90 00 [18:35:26]wFMCommunicate OK [18:35:26]wFMCommunicate request_size=4 [18:35:26]MH_SAM_APDU [18:35:26]CAPDU: 80 0D 03 02 [18:35:26]Write to MH i2c: E2 08 00 71 0B 80 0D 03 02 00 00 00 00 F7 [18:35:26]Write i2c OK [18:35:26]MH_I2C_Read... [18:35:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:26]Read from MH i2c: E2 [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: E2 0B 00 [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: E2 0B 00 71 0B 00 CF BF 90 5C 11 92 0C D6 90 00 F7 [18:35:26]RAPDU: CF BF 90 5C 11 92 0C D6 90 00 [18:35:26]wFMCommunicate OK [18:35:26]SAM_PROTO_SignData done [18:35:26]FM_MakeSignedData done [18:35:26]CreateOFDProtocolMessage [18:35:26]wFMCommunicate request_size=4 [18:35:26]MH_SAM_APDU [18:35:26]CAPDU: 80 11 00 00 [18:35:26]Write to MH i2c: E2 08 00 72 0B 80 11 00 00 00 00 00 00 F7 [18:35:26]Write i2c OK [18:35:26]MH_I2C_Read... [18:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:26]Read from MH i2c: E2 [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: E2 17 00 [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: E2 17 00 72 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 4C [18:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:35:26]wFMCommunicate OK [18:35:26]CreateOFDProtocolMessage done [18:35:26]OFDSenderStorePacket 5023 [18:35:26]StoreOFDPacket docnum=5023 [18:35:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 08 01 00 00 48 28 00 01 93 47 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 ED 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9F 13 00 00 35 04 06 00 45 0F EF 66 E6 B8 CF BF 90 5C 11 92 0C D6 [18:35:26]CheckFolder [18:35:26]dirname=/storage/ofd_packets [18:35:26]CheckFolder done [18:35:26]ProducePacketName [18:35:26]name=ofd_packets/00005023 [18:35:26]NVStorageSaveData ofd_packets/00005023 [18:35:26]File name is /storage/ofd_packets/00005023 [18:35:26]Write 294 bytes [18:35:26]NVStorageSaveData done [18:35:26]OFDSenderStorePacket done [18:35:26]KKMCreateOFDPacket done [18:35:26]NVStorageSaveData kkm_last_timestamp [18:35:26]File name is /storage/kkm_last_timestamp [18:35:26]Write 4 bytes [18:35:26]NVStorageSaveData done [18:35:26]ExternCall_PrintAddStr [18:35:26]wPrintStart [18:35:26]Write to MH i2c: 01 00 00 73 0B 7E [18:35:26]Write i2c OK [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: 01 [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: 01 07 00 [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: 01 07 00 73 0B 00 00 00 00 00 FF 0F 93 [18:35:26]RasterBufferAndPrint [18:35:26]line Счет N : (1)1993058 [18:35:26]line ИНН: 02508201610067 [18:35:26]line Контрольно-Кассовый Чек [18:35:26]line ПРОДАЖА [18:35:26]line ТРК (МРК, ГНК) : 64 [18:35:26]line Товар: 2710124130 [18:35:26]line SU-92 [18:35:26]line 7.380 * 67.80 [18:35:26]line = 500.36 [18:35:26]line НДС 12% НСП 1% [18:35:26]line > о реализуемом товаре [18:35:26]line ОКРУГЛЕНИЕ: -0.36 [18:35:26]line ИТОГО: 500.00 [18:35:26]line Внесено: 500.00 [18:35:26]line СДАЧА: 0.00 [18:35:26]line НСП 1% : 4.43 [18:35:26]line НДС 12% : 53.14 [18:35:26]line Наличными: 500.00 [18:35:26]line Безнал.: 0.00 [18:35:26]line Место: АЗС № 135 "Партнер Нефть" [18:35:26]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [18:35:26]line СНО: Общий режим [18:35:26]line Чек 83 16.05.2024 18:35 [18:35:26]line Смена: 44 ФФД: 1.0 [18:35:26]line ЗНМ: 0300000237 [18:35:26]line РНМ: 0000000000154221 [18:35:26]line Версия ККМ: v1.0 [18:35:26]line ФМ: 0000000000963259 [18:35:26]line ФД: 5023 [18:35:26]line ФПД: 75934743324344 [18:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183525&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5023&fm=75934743324344&tin=02508201610067®Number=0000000000154221&sum=50000 [18:35:26]OFD Sender: Processing packet 5023 [packets to send 4, broken 3] [18:35:26]ProducePacketName [18:35:26]name=ofd_packets/00005023 [18:35:26]OFD Sender: To server: pG, [18:35:26]CommunicateWithHost lk.salyk.kg:30040 [18:35:26]ConnectInit lk.salyk.kg [18:35:26]written 0, free lines is 4095 [18:35:26]Connected sock=10 [18:35:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 08 01 00 00 48 28 00 01 93 47 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 ED 51 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9F 13 00 00 35 04 06 00 45 0F EF 66 E6 B8 CF BF 90 5C 11 92 0C D6 [18:35:26]Write to MH i2c: 01 00 00 9E 0B A9 [18:35:26]Write i2c OK [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: 01 [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: 01 07 00 [18:35:26]MH_I2C_Read... [18:35:26]Read from MH i2c: 01 07 00 9E 0B 00 00 00 00 00 74 0C 30 [18:35:27]RasterBufferAndPrint [18:35:27]line [18:35:27]line [18:35:27]line [18:35:27]line [18:35:27]line [18:35:27]written 0, free lines is 3191 [18:35:27]MH_Cut [18:35:27]Write to MH i2c: D1 01 00 A5 0B 01 82 [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: D1 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: D1 01 00 [18:35:27]MH_I2C_Read... [18:35:27]Read from MH i2c: D1 01 00 A5 0B 00 81 [18:35:27]Write to MH i2c: 01 00 00 A6 0B B1 [18:35:27]Write i2c OK [18:35:27]MH_I2C_Read... [18:35:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 27 EF 47 00 11 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 9F 13 00 00 F4 03 04 00 B0 FD 45 66 B6 04 01 00 00 07 77 B7 86 39 FE A4 67 [18:35:27]CommunicateWithHost err = 0 [18:35:27]CheckOFDResponse [18:35:27]1017 (14) - 77093643461234 [18:35:27]1041 (16) - 0000000000963259 [18:35:27]1040 (4) - 5023 [18:35:27]1012 (4) - 16.05.2024 12:36 [18:35:27]1206 (1) - 0 [18:35:27]OFD Sender: Remove packet 5023 [18:35:27]ProducePacketName [18:35:27]name=ofd_packets/00005023 [18:35:27]NVStorageDeleteData [18:35:27]OFD Sender: No OFD packet to send [18:35:28]*** Cut start [18:35:28]*** Partial cut [18:35:28]*** CUTSNS_PIN = 1 [18:35:28]*** CUTSNS_PIN = 0 [18:35:28]*** Brake cut motor [18:35:28]Read from MH i2c: 01 [18:35:28]MH_I2C_Read... [18:35:28]*** Stop cut motor [18:35:28]*** Cut end [18:35:28]Read from MH i2c: 01 07 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: 01 07 00 A6 0B 00 00 00 00 00 FF 0F C6 [18:35:28]process_action close_receipt done [18:35:28]requested_data is exist [18:35:28]produce_requested_data [18:35:28]requested_item fm.sn is exist - process it [18:35:28]wFMCommunicate request_size=4 [18:35:28]MH_SAM_APDU [18:35:28]CAPDU: 80 11 00 00 [18:35:28]Write to MH i2c: E2 08 00 A7 0B 80 11 00 00 00 00 00 00 2C [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:28]Read from MH i2c: E2 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 17 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 17 00 A7 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 81 [18:35:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:35:28]wFMCommunicate OK [18:35:28]requested_item fd.num is exist - process it [18:35:28]SAM_PROTO_GetFieldsCounters [18:35:28]wFMCommunicate request_size=4 [18:35:28]MH_SAM_APDU [18:35:28]CAPDU: 80 13 00 00 [18:35:28]Write to MH i2c: E2 08 00 A8 0B 80 13 00 00 00 00 00 00 2F [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:28]Read from MH i2c: E2 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 62 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 62 00 A8 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9F 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 1F [18:35:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 9F 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:28]wFMCommunicate OK [18:35:28]SAM_PROTO_GetFieldsCounters done [18:35:28]requested_item shift.num is exist - process it [18:35:28]requested_item shift.opened is exist - process it [18:35:28]req_shift_opened [18:35:28]FM_GetShiftState [18:35:28]SAM_PROTO_GetShiftState [18:35:28]wFMCommunicate request_size=4 [18:35:28]MH_SAM_APDU [18:35:28]CAPDU: 80 13 01 00 [18:35:28]Write to MH i2c: E2 08 00 A9 0B 80 13 01 00 00 00 00 00 31 [18:35:28]Write i2c OK [18:35:28]MH_I2C_Read... [18:35:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:28]Read from MH i2c: E2 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 0E 00 [18:35:28]MH_I2C_Read... [18:35:28]Read from MH i2c: E2 0E 00 A9 0B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3D [18:35:28]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:35:28]wFMCommunicate OK [18:35:28]SAM_PROTO_GetShiftState done [18:35:28]FM_GetShiftState done [18:35:28]req_shift_opened done [18:35:28]requested_item shift.open_date is exist - process it [18:35:28]req_shift_open_date [18:35:28]req_shift_open_date done [18:35:28]produce_requested_data done [18:35:28]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5023,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [18:35:28]process_action_free close_receipt [18:35:28]json_value_free [18:35:28]json_value_free done [18:35:28]process_json_proto returns [18:35:28]Send response to host [18:35:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5023,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [18:35:28]free response buf [18:35:28]execute_script done [18:35:28]execute_script returns [18:35:28]free content buf [18:35:28]Sock 9.Close socket [18:35:28]Sock 9.Thread stoped [18:35:32]OFD Sender: No OFD packet to send [18:35:37]OFD Sender: No OFD packet to send [18:35:42]OFD Sender: No OFD packet to send [18:35:47]OFD Sender: No OFD packet to send [18:35:52]OFD Sender: No OFD packet to send [18:35:55]accept exits with 7 [18:35:55]New connection [18:35:55]New thread 3067252068 created [18:35:55]Thread 3067108708 joined [18:35:55]Waiting for new connection... [18:35:55] Sock 7.Parse request [18:35:55]Sock 7.Check first char [18:35:55]Sock 7.First char is OK [18:35:55]request: POST /json_proto HTTP/1.0 [18:35:55]Method: POST [18:35:55]URL: /json_proto [18:35:55]Method is POST - this is cgi request [18:35:55]url: /json_proto [18:35:55]query_string will be loaded in cgi processing [18:35:55]execute_cgi json_proto POST (null) [18:35:55]execute_cgi path=json_proto method=POST [18:35:55]POST find Content-Length [18:35:55]Host: 172.17.44.4:8080 [18:35:55]Content-Length: 804 [18:35:55]Content-Type: application/json [18:35:55] [18:35:55]POST finish read [18:35:55]Found Content-Length = 804 [18:35:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 27.330, "sum" : 2000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:55]execute_script... [18:35:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 27.330, "sum" : 2000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:55]POST & json_proto [18:35:55]process_json_proto [18:35:55]json parsed OK: [18:35:55]protocol is kg_v1.0 [18:35:55]action value=close_receipt [18:35:55]process_action close_receipt [18:35:55]cmd_close_receipt [18:35:55]MH_GetDate [18:35:55]Write to MH i2c: F0 00 00 AA 0B A4 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: F0 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: F0 09 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: F0 09 00 AA 0B 00 0D 52 46 66 6C E9 28 66 9B [18:35:55]GetLastDocTimeStamp 1715884525 [18:35:55]current date 1715884557 [18:35:55]FM_GetShiftState [18:35:55]SAM_PROTO_GetShiftState [18:35:55]wFMCommunicate request_size=4 [18:35:55]MH_SAM_APDU [18:35:55]CAPDU: 80 13 01 00 [18:35:55]Write to MH i2c: E2 08 00 AB 0B 80 13 01 00 00 00 00 00 33 [18:35:55]Write i2c OK [18:35:55]MH_I2C_Read... [18:35:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:55]Read from MH i2c: E2 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 0E 00 [18:35:55]MH_I2C_Read... [18:35:55]Read from MH i2c: E2 0E 00 AB 0B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3F [18:35:55]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:35:55]wFMCommunicate OK [18:35:55]SAM_PROTO_GetShiftState done [18:35:55]FM_GetShiftState done [18:35:55]opened in 1715818246 [18:35:55]opened+sec_in_day 1715904646 [18:35:55]quantity*price = 200055 [18:35:55]sum+1 = 200057 [18:35:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.56 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 0.00 Безнал.: 2000.56 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 84 16.05.2024 18:35 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5024 ФПД: 75646322525331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183557&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5024&fm=75646322525331&tin=02508201610067®Number=0000000000154221&sum=200056 [18:35:57]StoreToDocumentArchive [18:35:57]shift 44 fd 5024 [18:35:57]save to /storage/0044/doc_00005024 [18:35:57]save last doc name /storage/0044/doc_00005024 to /storage/kkm_last_doc_name [18:35:57]save OK [18:35:57]Clear old archive folders... [18:35:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:35:57]tlvbuf is 011DE4A0 [18:35:57]SAM_PROTO_ClearQueue [18:35:57]wFMCommunicate request_size=4 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 09 00 00 [18:35:57]Write to MH i2c: E2 08 00 B8 0B 80 09 00 00 00 00 00 00 35 [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 03 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 03 00 B8 0B 00 90 00 37 [18:35:57]RAPDU: 90 00 [18:35:57]wFMCommunicate OK [18:35:57]SAM_PROTO_ClearQueue done [18:35:57]KKMCreateOFDPacket [18:35:57]OFDProtocolAddRootSTLVToBuf [18:35:57]FM_MakeSignedData [18:35:57]FM_MakeSignedData [18:35:57]SAM_PROTO_SignData [18:35:57]wFMCommunicate request_size=4 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 0D 01 02 [18:35:57]Write to MH i2c: E2 08 00 B9 0B 80 0D 01 02 00 00 00 00 3D [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 03 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 03 00 B9 0B 00 90 00 38 [18:35:57]RAPDU: 90 00 [18:35:57]wFMCommunicate OK [18:35:57]wFMCommunicate request_size=255 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 6A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 78 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0D 52 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A0 13 00 00 35 04 06 00 44 [18:35:57]Write to MH i2c: E2 02 01 BA 0B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 6A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 78 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0D 52 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A0 13 00 00 35 04 06 00 44 00 00 7C [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 03 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 03 00 BA 0B 00 90 00 39 [18:35:57]RAPDU: 90 00 [18:35:57]wFMCommunicate OK [18:35:57]wFMCommunicate request_size=10 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 0D 02 02 05 CC C8 2E C4 93 [18:35:57]Write to MH i2c: E2 0D 00 BB 0B 80 0D 02 02 05 00 CC C8 2E C4 93 00 00 63 [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 03 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 03 00 BB 0B 00 90 00 3A [18:35:57]RAPDU: 90 00 [18:35:57]wFMCommunicate OK [18:35:57]wFMCommunicate request_size=4 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 0D 03 02 [18:35:57]Write to MH i2c: E2 08 00 BC 0B 80 0D 03 02 00 00 00 00 42 [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 0B 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 0B 00 BC 0B 00 42 D2 A5 D7 15 9F C7 42 90 00 90 [18:35:57]RAPDU: 42 D2 A5 D7 15 9F C7 42 90 00 [18:35:57]wFMCommunicate OK [18:35:57]SAM_PROTO_SignData done [18:35:57]FM_MakeSignedData done [18:35:57]CreateOFDProtocolMessage [18:35:57]wFMCommunicate request_size=4 [18:35:57]MH_SAM_APDU [18:35:57]CAPDU: 80 11 00 00 [18:35:57]Write to MH i2c: E2 08 00 BD 0B 80 11 00 00 00 00 00 00 42 [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:57]Read from MH i2c: E2 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 17 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: E2 17 00 BD 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 97 [18:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:35:57]wFMCommunicate OK [18:35:57]CreateOFDProtocolMessage done [18:35:57]OFDSenderStorePacket 5024 [18:35:57]StoreOFDPacket docnum=5024 [18:35:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 93 32 07 01 E4 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 6A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 78 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0D 52 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A0 13 00 00 35 04 06 00 44 CC C8 2E C4 93 42 D2 A5 D7 15 9F C7 42 [18:35:57]CheckFolder [18:35:57]dirname=/storage/ofd_packets [18:35:57]CheckFolder done [18:35:57]ProducePacketName [18:35:57]name=ofd_packets/00005024 [18:35:57]NVStorageSaveData ofd_packets/00005024 [18:35:57]File name is /storage/ofd_packets/00005024 [18:35:57]Write 301 bytes [18:35:57]NVStorageSaveData done [18:35:57]OFDSenderStorePacket done [18:35:57]KKMCreateOFDPacket done [18:35:57]NVStorageSaveData kkm_last_timestamp [18:35:57]File name is /storage/kkm_last_timestamp [18:35:57]Write 4 bytes [18:35:57]NVStorageSaveData done [18:35:57]ExternCall_PrintAddStr [18:35:57]wPrintStart [18:35:57]Write to MH i2c: 01 00 00 BE 0B C9 [18:35:57]Write i2c OK [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: 01 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: 01 07 00 [18:35:57]MH_I2C_Read... [18:35:57]Read from MH i2c: 01 07 00 BE 0B 00 00 00 00 00 FF 0F DE [18:35:57]RasterBufferAndPrint [18:35:57]line Счет N : (1)1993057 [18:35:57]line ИНН: 02508201610067 [18:35:57]line Контрольно-Кассовый Чек [18:35:57]line ПРОДАЖА [18:35:57]line ТРК (МРК, ГНК) : 42 [18:35:57]line Товар: 2710124500 [18:35:57]line Аи-95-К-5 [18:35:57]line 27.330 * 73.20 [18:35:57]line = 2000.56 [18:35:57]line НДС 12% НСП 1% [18:35:57]line > о реализуемом товаре [18:35:57]line ИТОГО: 2000.56 [18:35:57]line НСП 1% : 17.70 [18:35:57]line НДС 12% : 212.45 [18:35:57]line Наличными: 0.00 [18:35:57]line Безнал.: 2000.56 [18:35:57]line Место: АЗС № 135 "Партнер Нефть" [18:35:57]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [18:35:57]line СНО: Общий режим [18:35:57]line Чек 84 16.05.2024 18:35 [18:35:57]line Смена: 44 ФФД: 1.0 [18:35:57]line ЗНМ: 0300000237 [18:35:57]line РНМ: 0000000000154221 [18:35:57]line Версия ККМ: v1.0 [18:35:57]line Платежная система: O! деньги [18:35:57]line ФМ: 0000000000963259 [18:35:57]line ФД: 5024 [18:35:57]line ФПД: 75646322525331 [18:35:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T183557&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5024&fm=75646322525331&tin=02508201610067®Number=0000000000154221&sum=200056 [18:35:57]OFD Sender: Processing packet 5024 [packets to send 4, broken 3] [18:35:57]ProducePacketName [18:35:57]name=ofd_packets/00005024 [18:35:57]OFD Sender: To server: pG, [18:35:57]CommunicateWithHost lk.salyk.kg:30040 [18:35:57]ConnectInit lk.salyk.kg [18:35:57]written 0, free lines is 4095 [18:35:58]Write to MH i2c: 01 00 00 E8 0B F3 [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: 01 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: 01 07 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: 01 07 00 E8 0B 00 00 00 00 00 89 0C 8F [18:35:58]RasterBufferAndPrint [18:35:58]line [18:35:58]line [18:35:58]line [18:35:58]line [18:35:58]line [18:35:58]written 0, free lines is 3213 [18:35:58]MH_Cut [18:35:58]Write to MH i2c: D1 01 00 EF 0B 01 CC [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: D1 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: D1 01 00 [18:35:58]MH_I2C_Read... [18:35:58]Read from MH i2c: D1 01 00 EF 0B 00 CB [18:35:58]Write to MH i2c: 01 00 00 F0 0B FB [18:35:58]Write i2c OK [18:35:58]MH_I2C_Read... [18:35:58]Connected sock=10 [18:35:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 93 32 07 01 E4 23 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 6A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 78 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 0D 52 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A0 13 00 00 35 04 06 00 44 CC C8 2E C4 93 42 D2 A5 D7 15 9F C7 42 [18:35:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 6B DB 47 00 D2 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A0 13 00 00 F4 03 04 00 D0 FD 45 66 B6 04 01 00 00 85 EA 1B 55 8A 6F 42 21 [18:35:58]CommunicateWithHost err = 0 [18:35:58]CheckOFDResponse [18:35:58]1017 (14) - 77093643461234 [18:35:58]1041 (16) - 0000000000963259 [18:35:58]1040 (4) - 5024 [18:35:58]1012 (4) - 16.05.2024 12:36 [18:35:58]1206 (1) - 0 [18:35:58]OFD Sender: Remove packet 5024 [18:35:58]ProducePacketName [18:35:58]name=ofd_packets/00005024 [18:35:58]NVStorageDeleteData [18:35:59]OFD Sender: No OFD packet to send [18:35:59]*** Cut start [18:35:59]*** Partial cut [18:35:59]*** CUTSNS_PIN = 1 [18:35:59]*** CUTSNS_PIN = 0 [18:35:59]*** Brake cut motor [18:36:00]Read from MH i2c: 01 [18:36:00]MH_I2C_Read... [18:36:00]*** Stop cut motor [18:36:00]*** Cut end [18:36:00]Read from MH i2c: 01 07 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 07 00 F0 0B 00 00 00 00 00 FF 0F 10 [18:36:00]process_action close_receipt done [18:36:00]requested_data is exist [18:36:00]produce_requested_data [18:36:00]requested_item fm.sn is exist - process it [18:36:00]wFMCommunicate request_size=4 [18:36:00]MH_SAM_APDU [18:36:00]CAPDU: 80 11 00 00 [18:36:00]Write to MH i2c: E2 08 00 F1 0B 80 11 00 00 00 00 00 00 76 [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:00]Read from MH i2c: E2 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: E2 17 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: E2 17 00 F1 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 CB [18:36:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:36:00]wFMCommunicate OK [18:36:00]requested_item fd.num is exist - process it [18:36:00]SAM_PROTO_GetFieldsCounters [18:36:00]wFMCommunicate request_size=4 [18:36:00]MH_SAM_APDU [18:36:00]CAPDU: 80 13 00 00 [18:36:00]Write to MH i2c: E2 08 00 F2 0B 80 13 00 00 00 00 00 00 79 [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:00]Read from MH i2c: E2 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: E2 62 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: E2 62 00 F2 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A0 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 6D [18:36:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A0 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:00]wFMCommunicate OK [18:36:00]SAM_PROTO_GetFieldsCounters done [18:36:00]requested_item shift.num is exist - process it [18:36:00]requested_item shift.opened is exist - process it [18:36:00]req_shift_opened [18:36:00]FM_GetShiftState [18:36:00]SAM_PROTO_GetShiftState [18:36:00]wFMCommunicate request_size=4 [18:36:00]MH_SAM_APDU [18:36:00]CAPDU: 80 13 01 00 [18:36:00]Write to MH i2c: E2 08 00 F3 0B 80 13 01 00 00 00 00 00 7B [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:00]Read from MH i2c: E2 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: E2 0E 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: E2 0E 00 F3 0B 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 87 [18:36:00]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:36:00]wFMCommunicate OK [18:36:00]SAM_PROTO_GetShiftState done [18:36:00]FM_GetShiftState done [18:36:00]req_shift_opened done [18:36:00]requested_item shift.open_date is exist - process it [18:36:00]req_shift_open_date [18:36:00]req_shift_open_date done [18:36:00]produce_requested_data done [18:36:00]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5024,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [18:36:00]process_action_free close_receipt [18:36:00]json_value_free [18:36:00]json_value_free done [18:36:00]process_json_proto returns [18:36:00]Send response to host [18:36:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5024,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [18:36:00]free response buf [18:36:00]execute_script done [18:36:00]execute_script returns [18:36:00]free content buf [18:36:00]Sock 7.Close socket [18:36:00]Sock 7.Thread stoped [18:36:00]accept exits with 9 [18:36:00]New connection [18:36:00]New thread 3067108708 created [18:36:00]Thread 3067252068 joined [18:36:00]Waiting for new connection... [18:36:00] Sock 9.Parse request [18:36:00]Sock 9.Check first char [18:36:00]Sock 9.First char is OK [18:36:00]request: POST /json_proto HTTP/1.0 [18:36:00]Method: POST [18:36:00]URL: /json_proto [18:36:00]Method is POST - this is cgi request [18:36:00]url: /json_proto [18:36:00]query_string will be loaded in cgi processing [18:36:00]execute_cgi json_proto POST (null) [18:36:00]execute_cgi path=json_proto method=POST [18:36:00]POST find Content-Length [18:36:00]Host: 172.17.44.4:8080 [18:36:00]Content-Length: 1204 [18:36:00]Content-Type: application/json [18:36:00] [18:36:00]POST finish read [18:36:00]Found Content-Length = 1204 [18:36:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-135\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0442\u0430\u043A\u043E\u0437\u0443\u0435\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)1993059\u000A16.05.2024 18:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:00]execute_script... [18:36:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-135\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0442\u0430\u043A\u043E\u0437\u0443\u0435\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)1993059\u000A16.05.2024 18:28\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 33\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 15.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 1002.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:00]POST & json_proto [18:36:00]process_json_proto [18:36:00]json parsed OK: [18:36:00]protocol is kg_v1.0 [18:36:00]action value=print_text [18:36:00]process_action print_text [18:36:00]cmd_print_text [18:36:00]ExternCall_PrintAddStr [18:36:00]wPrintStart [18:36:00]Write to MH i2c: 01 00 00 F4 0B FF [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 07 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 07 00 F4 0B 00 00 00 00 00 FF 0F 14 [18:36:00]RasterBufferAndPrint [18:36:00]line *****ТОВАРНЫЙ ЧЕК***** [18:36:00]line АЗС-135 [18:36:00]line Партнер нефть [18:36:00]line 02508201610067 [18:36:00]line Кассир : Атакозуев М. [18:36:00]line Счет N : (1)1993059 [18:36:00]line 16.05.2024 18:28 [18:36:00]line ПРОДАЖА [18:36:00]line ТРК (МРК, ГНК): 33 [18:36:00]line Вид ГСМ : 2710124130 [18:36:00]line Аи-92-К-4 [18:36:00]line 15.000 x 66.80 [18:36:00]line ИТОГ: 1002.00 [18:36:00]line Тип оплаты: Талоны: Топливные Талоны [18:36:00]line 1 [18:36:00]line ______________________ [18:36:00]line (подпись) [18:36:00]written 0, free lines is 4095 [18:36:00]Write to MH i2c: 01 00 00 08 0C 14 [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 07 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: 01 07 00 08 0C 00 00 00 00 00 10 0E 39 [18:36:00]RasterBufferAndPrint [18:36:00]line [18:36:00]line [18:36:00]line [18:36:00]line [18:36:00]line [18:36:00]written 0, free lines is 3603 [18:36:00]MH_Cut [18:36:00]Write to MH i2c: D1 01 00 0F 0C 01 ED [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: D1 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: D1 01 00 [18:36:00]MH_I2C_Read... [18:36:00]Read from MH i2c: D1 01 00 0F 0C 00 EC [18:36:00]Write to MH i2c: 01 00 00 10 0C 1C [18:36:00]Write i2c OK [18:36:00]MH_I2C_Read... [18:36:01]*** Cut start [18:36:01]*** Partial cut [18:36:01]*** CUTSNS_PIN = 1 [18:36:01]*** CUTSNS_PIN = 0 [18:36:01]*** Brake cut motor [18:36:02]Read from MH i2c: 01 [18:36:02]MH_I2C_Read... [18:36:02]*** Stop cut motor [18:36:02]*** Cut end [18:36:02]Read from MH i2c: 01 07 00 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: 01 07 00 10 0C 00 00 00 00 00 FF 0F 31 [18:36:02]process_action print_text done [18:36:02]requested_data is exist [18:36:02]produce_requested_data [18:36:02]requested_item fm.sn is exist - process it [18:36:02]wFMCommunicate request_size=4 [18:36:02]MH_SAM_APDU [18:36:02]CAPDU: 80 11 00 00 [18:36:02]Write to MH i2c: E2 08 00 11 0C 80 11 00 00 00 00 00 00 97 [18:36:02]Write i2c OK [18:36:02]MH_I2C_Read... [18:36:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:02]Read from MH i2c: E2 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: E2 17 00 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: E2 17 00 11 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 EC [18:36:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:36:02]wFMCommunicate OK [18:36:02]requested_item fd.num is exist - process it [18:36:02]SAM_PROTO_GetFieldsCounters [18:36:02]wFMCommunicate request_size=4 [18:36:02]MH_SAM_APDU [18:36:02]CAPDU: 80 13 00 00 [18:36:02]Write to MH i2c: E2 08 00 12 0C 80 13 00 00 00 00 00 00 9A [18:36:02]Write i2c OK [18:36:02]MH_I2C_Read... [18:36:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:02]Read from MH i2c: E2 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: E2 62 00 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: E2 62 00 12 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A0 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [18:36:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A0 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:02]wFMCommunicate OK [18:36:02]SAM_PROTO_GetFieldsCounters done [18:36:02]requested_item shift.num is exist - process it [18:36:02]requested_item shift.opened is exist - process it [18:36:02]req_shift_opened [18:36:02]FM_GetShiftState [18:36:02]SAM_PROTO_GetShiftState [18:36:02]wFMCommunicate request_size=4 [18:36:02]MH_SAM_APDU [18:36:02]CAPDU: 80 13 01 00 [18:36:02]Write to MH i2c: E2 08 00 13 0C 80 13 01 00 00 00 00 00 9C [18:36:02]Write i2c OK [18:36:02]MH_I2C_Read... [18:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:02]Read from MH i2c: E2 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: E2 0E 00 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: E2 0E 00 13 0C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A8 [18:36:02]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:36:02]wFMCommunicate OK [18:36:02]SAM_PROTO_GetShiftState done [18:36:02]FM_GetShiftState done [18:36:02]req_shift_opened done [18:36:02]requested_item shift.open_date is exist - process it [18:36:02]req_shift_open_date [18:36:02]req_shift_open_date done [18:36:02]produce_requested_data done [18:36:02]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5024,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [18:36:02]process_action_free print_text [18:36:02]json_value_free [18:36:02]json_value_free done [18:36:02]process_json_proto returns [18:36:02]Send response to host [18:36:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5024,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [18:36:02]free response buf [18:36:02]execute_script done [18:36:02]execute_script returns [18:36:02]free content buf [18:36:02]Sock 9.Close socket [18:36:02]Sock 9.Thread stoped [18:36:04]OFD Sender: No OFD packet to send [18:36:09]OFD Sender: No OFD packet to send [18:36:14]OFD Sender: No OFD packet to send [18:36:19]OFD Sender: No OFD packet to send [18:36:24]OFD Sender: No OFD packet to send [18:36:29]OFD Sender: No OFD packet to send [18:36:34]OFD Sender: No OFD packet to send [18:36:39]OFD Sender: No OFD packet to send [18:36:44]OFD Sender: No OFD packet to send [18:36:49]OFD Sender: No OFD packet to send [18:36:54]OFD Sender: No OFD packet to send [18:36:59]OFD Sender: No OFD packet to send [18:37:04]OFD Sender: No OFD packet to send [18:37:09]OFD Sender: No OFD packet to send [18:37:14]OFD Sender: No OFD packet to send [18:37:19]OFD Sender: No OFD packet to send [18:37:24]OFD Sender: No OFD packet to send [18:37:29]OFD Sender: No OFD packet to send [18:37:34]OFD Sender: No OFD packet to send [18:37:39]OFD Sender: No OFD packet to send [18:37:44]OFD Sender: No OFD packet to send [18:37:49]OFD Sender: No OFD packet to send [18:37:54]OFD Sender: No OFD packet to send [18:37:59]OFD Sender: No OFD packet to send [18:38:04]OFD Sender: No OFD packet to send [18:38:09]OFD Sender: No OFD packet to send [18:38:14]OFD Sender: No OFD packet to send [18:38:19]OFD Sender: No OFD packet to send [18:38:24]OFD Sender: No OFD packet to send [18:38:29]OFD Sender: No OFD packet to send [18:38:34]OFD Sender: No OFD packet to send [18:38:39]OFD Sender: No OFD packet to send [18:38:44]OFD Sender: No OFD packet to send [18:38:49]OFD Sender: No OFD packet to send [18:38:54]OFD Sender: No OFD packet to send [18:38:59]OFD Sender: No OFD packet to send [18:39:04]OFD Sender: No OFD packet to send [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:29]OFD Sender: No OFD packet to send [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:44]OFD Sender: No OFD packet to send [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:14]OFD Sender: No OFD packet to send [18:41:19]OFD Sender: No OFD packet to send [18:41:24]OFD Sender: No OFD packet to send [18:41:29]OFD Sender: No OFD packet to send [18:41:34]OFD Sender: No OFD packet to send [18:41:39]OFD Sender: No OFD packet to send [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:34]OFD Sender: No OFD packet to send [18:45:36]accept exits with 7 [18:45:36]New connection [18:45:36]New thread 3067252068 created [18:45:36]Thread 3067108708 joined [18:45:36]Waiting for new connection... [18:45:36] Sock 7.Parse request [18:45:36]Sock 7.Check first char [18:45:36]Sock 7.First char is OK [18:45:36]request: POST /json_proto HTTP/1.0 [18:45:36]Method: POST [18:45:36]URL: /json_proto [18:45:36]Method is POST - this is cgi request [18:45:36]url: /json_proto [18:45:36]query_string will be loaded in cgi processing [18:45:36]execute_cgi json_proto POST (null) [18:45:36]execute_cgi path=json_proto method=POST [18:45:36]POST find Content-Length [18:45:36]Host: 172.17.44.4:8080 [18:45:36]Content-Length: 700 [18:45:36]Content-Type: application/json [18:45:36] [18:45:36]POST finish read [18:45:36]Found Content-Length = 700 [18:45:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141018", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:36]execute_script... [18:45: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)141018", "tax_sys" : 0, "items" : [ { "code": "4700000482757", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Fr \u0433\u0430\u0437 \u043C\u0430\u043D\u0433,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:36]POST & json_proto [18:45:36]process_json_proto [18:45:36]json parsed OK: [18:45:36]protocol is kg_v1.0 [18:45:36]action value=close_receipt [18:45:36]process_action close_receipt [18:45:36]cmd_close_receipt [18:45:36]MH_GetDate [18:45:36]Write to MH i2c: F0 00 00 14 0C 0F [18:45:36]Write i2c OK [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 09 00 [18:45:36]MH_I2C_Read... [18:45:36]Read from MH i2c: F0 09 00 14 0C 00 52 54 46 66 6C E9 28 66 4D [18:45:36]GetLastDocTimeStamp 1715884557 [18:45:36]current date 1715885138 [18:45:36]FM_GetShiftState [18:45:36]SAM_PROTO_GetShiftState [18:45:36]wFMCommunicate request_size=4 [18:45:36]MH_SAM_APDU [18:45:36]CAPDU: 80 13 01 00 [18:45:36]Write to MH i2c: E2 08 00 15 0C 80 13 01 00 00 00 00 00 9E [18:45:36]Write i2c OK [18:45:36]MH_I2C_Read... [18:45:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:37]Read from MH i2c: E2 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 0E 00 [18:45:37]MH_I2C_Read... [18:45:37]Read from MH i2c: E2 0E 00 15 0C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 AA [18:45:37]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:45:37]wFMCommunicate OK [18:45:37]SAM_PROTO_GetShiftState done [18:45:37]FM_GetShiftState done [18:45:37]opened in 1715818246 [18:45:37]opened+sec_in_day 1715904646 [18:45:37]quantity*price = 9500 [18:45:37]sum+1 = 9501 [18:45:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 85 16.05.2024 18:45 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5025 ФПД: 153146140666800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T184538&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5025&fm=153146140666800&tin=02508201610067®Number=0000000000154221&sum=9500 0 [18:45:38]StoreToDocumentArchive [18:45:38]shift 44 fd 5025 [18:45:38]save to /storage/0044/doc_00005025 [18:45:38]save last doc name /storage/0044/doc_00005025 to /storage/kkm_last_doc_name [18:45:38]save OK [18:45:38]Clear old archive folders... [18:45:38]ProcessDocumentItem done err = 0, tmpTLVsize=303 [18:45:38]tlvbuf is 011F7BC0 [18:45:38]SAM_PROTO_ClearQueue [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 09 00 00 [18:45:38]Write to MH i2c: E2 08 00 22 0C 80 09 00 00 00 00 00 00 A0 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 22 0C 00 90 00 A2 [18:45:38]RAPDU: 90 00 [18:45:38]wFMCommunicate OK [18:45:38]SAM_PROTO_ClearQueue done [18:45:38]KKMCreateOFDPacket [18:45:38]OFDProtocolAddRootSTLVToBuf [18:45:38]FM_MakeSignedData [18:45:38]FM_MakeSignedData [18:45:38]SAM_PROTO_SignData [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 0D 01 02 [18:45:38]Write to MH i2c: E2 08 00 23 0C 80 0D 01 02 00 00 00 00 A8 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 23 0C 00 90 00 A3 [18:45:38]RAPDU: 90 00 [18:45:38]wFMCommunicate OK [18:45:38]wFMCommunicate request_size=255 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 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 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 55 00 00 00 F4 03 04 00 52 54 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D [18:45:38]Write to MH i2c: E2 02 01 24 0C 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 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 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 55 00 00 00 F4 03 04 00 52 54 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 00 00 F3 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 24 0C 00 90 00 A4 [18:45:38]RAPDU: 90 00 [18:45:38]wFMCommunicate OK [18:45:38]wFMCommunicate request_size=62 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A1 13 00 00 35 04 06 00 8B 49 1D 50 2B B0 [18:45:38]Write to MH i2c: E2 41 00 25 0C 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A1 13 00 00 35 04 06 00 8B 49 1D 50 2B B0 00 00 AE [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 03 00 25 0C 00 90 00 A5 [18:45:38]RAPDU: 90 00 [18:45:38]wFMCommunicate OK [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 0D 03 02 [18:45:38]Write to MH i2c: E2 08 00 26 0C 80 0D 03 02 00 00 00 00 AD [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 0B 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 0B 00 26 0C 00 D7 DB 6C 1F 6C 03 69 20 90 00 E3 [18:45:38]RAPDU: D7 DB 6C 1F 6C 03 69 20 90 00 [18:45:38]wFMCommunicate OK [18:45:38]SAM_PROTO_SignData done [18:45:38]FM_MakeSignedData done [18:45:38]CreateOFDProtocolMessage [18:45:38]wFMCommunicate request_size=4 [18:45:38]MH_SAM_APDU [18:45:38]CAPDU: 80 11 00 00 [18:45:38]Write to MH i2c: E2 08 00 27 0C 80 11 00 00 00 00 00 00 AD [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:38]Read from MH i2c: E2 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 17 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: E2 17 00 27 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 02 [18:45:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:45:38]wFMCommunicate OK [18:45:38]CreateOFDProtocolMessage done [18:45:38]OFDSenderStorePacket 5025 [18:45:38]StoreOFDPacket docnum=5025 [18:45:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 43 01 00 00 0D 9B 3B 01 2C 9C 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 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 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 55 00 00 00 F4 03 04 00 52 54 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A1 13 00 00 35 04 06 00 8B 49 1D 50 2B B0 D7 DB 6C 1F 6C 03 69 20 [18:45:38]CheckFolder [18:45:38]dirname=/storage/ofd_packets [18:45:38]CheckFolder done [18:45:38]ProducePacketName [18:45:38]name=ofd_packets/00005025 [18:45:38]NVStorageSaveData ofd_packets/00005025 [18:45:38]File name is /storage/ofd_packets/00005025 [18:45:38]Write 353 bytes [18:45:38]NVStorageSaveData done [18:45:38]OFDSenderStorePacket done [18:45:38]KKMCreateOFDPacket done [18:45:38]NVStorageSaveData kkm_last_timestamp [18:45:38]File name is /storage/kkm_last_timestamp [18:45:38]Write 4 bytes [18:45:38]NVStorageSaveData done [18:45:38]ExternCall_PrintAddStr [18:45:38]wPrintStart [18:45:38]Write to MH i2c: 01 00 00 28 0C 34 [18:45:38]Write i2c OK [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 [18:45:38]MH_I2C_Read... [18:45:38]Read from MH i2c: 01 07 00 28 0C 00 00 00 00 00 FF 0F 49 [18:45:38]RasterBufferAndPrint [18:45:38]line Счет N : (3)141018 [18:45:38]line ИНН: 02508201610067 [18:45:38]line Контрольно-Кассовый Чек [18:45:38]line ПРОДАЖА [18:45:38]line Товар: 4700000482757 [18:45:38]line Напиток Nitro Fr газ манг,клуб ж/б 0,45л [18:45:38]line 1.000 * 95.00 [18:45:38]line = 95.00 [18:45:38]line НДС 12% НСП 1% [18:45:38]line > о реализуемом товаре [18:45:38]line ИТОГО: 95.00 [18:45:38]line НСП 1% : 0.84 [18:45:38]line НДС 12% : 10.09 [18:45:38]line Наличными: 95.00 [18:45:38]line Безнал.: 0.00 [18:45:38]line Место: АЗС № 135 "Партнер Нефть" [18:45:38]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [18:45:38]line СНО: Общий режим [18:45:38]line Чек 85 16.05.2024 18:45 [18:45:38]line Смена: 44 ФФД: 1.0 [18:45:38]line ЗНМ: 0300000237 [18:45:38]line РНМ: 0000000000154221 [18:45:38]line Версия ККМ: v1.0 [18:45:38]line ФМ: 0000000000963259 [18:45:38]line ФД: 5025 [18:45:38]line ФПД: 153146140666800 [18:45:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T184538&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5025&fm=153146140666800&tin=02508201610067®Number=0000000000154221&sum=9500 [18:45:39]line 0 [18:45:39]OFD Sender: Processing packet 5025 [packets to send 4, broken 3] [18:45:39]ProducePacketName [18:45:39]name=ofd_packets/00005025 [18:45:39]OFD Sender: To server: pG, [18:45:39]CommunicateWithHost lk.salyk.kg:30040 [18:45:39]ConnectInit lk.salyk.kg [18:45:39]written 0, free lines is 4095 [18:45:39]Connected sock=10 [18:45:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 43 01 00 00 0D 9B 3B 01 2C 9C 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 32 37 35 37 06 04 3D 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 BC D0 B0 D0 BD D0 B3 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 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 55 00 00 00 F4 03 04 00 52 54 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A1 13 00 00 35 04 06 00 8B 49 1D 50 2B B0 D7 DB 6C 1F 6C 03 69 20 [18:45:39]Write to MH i2c: 01 00 00 51 0C 5D [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: 01 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: 01 07 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: 01 07 00 51 0C 00 00 00 00 00 8B 0C FB [18:45:39]RasterBufferAndPrint [18:45:39]line [18:45:39]line [18:45:39]line [18:45:39]line [18:45:39]line [18:45:39]written 0, free lines is 3216 [18:45:39]MH_Cut [18:45:39]Write to MH i2c: D1 01 00 58 0C 01 36 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: D1 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: D1 01 00 [18:45:39]MH_I2C_Read... [18:45:39]Read from MH i2c: D1 01 00 58 0C 00 35 [18:45:39]Write to MH i2c: 01 00 00 59 0C 65 [18:45:39]Write i2c OK [18:45:39]MH_I2C_Read... [18:45:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 B2 64 47 00 E5 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A1 13 00 00 F4 03 04 00 15 00 46 66 B6 04 01 00 00 44 30 BA 14 63 90 3C 84 [18:45:39]CommunicateWithHost err = 0 [18:45:39]CheckOFDResponse [18:45:39]1017 (14) - 77093643461234 [18:45:39]1041 (16) - 0000000000963259 [18:45:39]1040 (4) - 5025 [18:45:39]1012 (4) - 16.05.2024 12:46 [18:45:39]1206 (1) - 0 [18:45:39]OFD Sender: Remove packet 5025 [18:45:39]ProducePacketName [18:45:39]name=ofd_packets/00005025 [18:45:39]NVStorageDeleteData [18:45:40]OFD Sender: No OFD packet to send [18:45:40]*** Cut start [18:45:40]*** Partial cut [18:45:40]*** CUTSNS_PIN = 1 [18:45:40]*** CUTSNS_PIN = 0 [18:45:40]*** Brake cut motor [18:45:41]Read from MH i2c: 01 [18:45:41]MH_I2C_Read... [18:45:41]*** Stop cut motor [18:45:41]*** Cut end [18:45:41]Read from MH i2c: 01 07 00 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: 01 07 00 59 0C 00 00 00 00 00 FF 0F 7A [18:45:41]process_action close_receipt done [18:45:41]requested_data is exist [18:45:41]produce_requested_data [18:45:41]requested_item fm.sn is exist - process it [18:45:41]wFMCommunicate request_size=4 [18:45:41]MH_SAM_APDU [18:45:41]CAPDU: 80 11 00 00 [18:45:41]Write to MH i2c: E2 08 00 5A 0C 80 11 00 00 00 00 00 00 E0 [18:45:41]Write i2c OK [18:45:41]MH_I2C_Read... [18:45:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:41]Read from MH i2c: E2 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 17 00 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 17 00 5A 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 35 [18:45:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [18:45:41]wFMCommunicate OK [18:45:41]requested_item fd.num is exist - process it [18:45:41]SAM_PROTO_GetFieldsCounters [18:45:41]wFMCommunicate request_size=4 [18:45:41]MH_SAM_APDU [18:45:41]CAPDU: 80 13 00 00 [18:45:41]Write to MH i2c: E2 08 00 5B 0C 80 13 00 00 00 00 00 00 E3 [18:45:41]Write i2c OK [18:45:41]MH_I2C_Read... [18:45:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:41]Read from MH i2c: E2 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 62 00 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 62 00 5B 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A1 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [18:45:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A1 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:41]wFMCommunicate OK [18:45:41]SAM_PROTO_GetFieldsCounters done [18:45:41]requested_item shift.num is exist - process it [18:45:41]requested_item shift.opened is exist - process it [18:45:41]req_shift_opened [18:45:41]FM_GetShiftState [18:45:41]SAM_PROTO_GetShiftState [18:45:41]wFMCommunicate request_size=4 [18:45:41]MH_SAM_APDU [18:45:41]CAPDU: 80 13 01 00 [18:45:41]Write to MH i2c: E2 08 00 5C 0C 80 13 01 00 00 00 00 00 E5 [18:45:41]Write i2c OK [18:45:41]MH_I2C_Read... [18:45:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:41]Read from MH i2c: E2 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 0E 00 [18:45:41]MH_I2C_Read... [18:45:41]Read from MH i2c: E2 0E 00 5C 0C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F1 [18:45:41]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [18:45:41]wFMCommunicate OK [18:45:41]SAM_PROTO_GetShiftState done [18:45:41]FM_GetShiftState done [18:45:41]req_shift_opened done [18:45:41]requested_item shift.open_date is exist - process it [18:45:41]req_shift_open_date [18:45:41]req_shift_open_date done [18:45:41]produce_requested_data done [18:45:41]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5025,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [18:45:41]process_action_free close_receipt [18:45:41]json_value_free [18:45:41]json_value_free done [18:45:41]process_json_proto returns [18:45:41]Send response to host [18:45:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5025,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [18:45:41]free response buf [18:45:41]execute_script done [18:45:41]execute_script returns [18:45:41]free content buf [18:45:41]Sock 7.Close socket [18:45:41]Sock 7.Thread stoped [18:45:45]OFD Sender: No OFD packet to send [18:45:50]OFD Sender: No OFD packet to send [18:45:55]OFD Sender: No OFD packet to send [18:46:00]OFD Sender: No OFD packet to send [18:46:05]OFD Sender: No OFD packet to send [18:46:10]OFD Sender: No OFD packet to send [18:46:15]OFD Sender: No OFD packet to send [18:46:20]OFD Sender: No OFD packet to send [18:46:25]OFD Sender: No OFD packet to send [18:46:30]OFD Sender: No OFD packet to send [18:46:35]OFD Sender: No OFD packet to send [18:46:40]OFD Sender: No OFD packet to send [18:46:45]OFD Sender: No OFD packet to send [18:46:50]OFD Sender: No OFD packet to send [18:46:55]OFD Sender: No OFD packet to send [18:47:00]OFD Sender: No OFD packet to send [18:47:05]OFD Sender: No OFD packet to send [18:47:10]OFD Sender: No OFD packet to send [18:47:15]OFD Sender: No OFD packet to send [18:47:20]OFD Sender: No OFD packet to send [18:47:25]OFD Sender: No OFD packet to send [18:47:30]OFD Sender: No OFD packet to send [18:47:35]OFD Sender: No OFD packet to send [18:47:40]OFD Sender: No OFD packet to send [18:47:45]OFD Sender: No OFD packet to send [18:47:50]OFD Sender: No OFD packet to send [18:47:55]OFD Sender: No OFD packet to send [18:48:00]OFD Sender: No OFD packet to send [18:48:05]OFD Sender: No OFD packet to send [18:48:10]OFD Sender: No OFD packet to send [18:48:15]OFD Sender: No OFD packet to send [18:48:20]OFD Sender: No OFD packet to send [18:48:25]OFD Sender: No OFD packet to send [18:48:30]OFD Sender: No OFD packet to send [18:48:35]OFD Sender: No OFD packet to send [18:48:40]OFD Sender: No OFD packet to send [18:48:45]OFD Sender: No OFD packet to send [18:48:50]OFD Sender: No OFD packet to send [18:48:55]OFD Sender: No OFD packet to send [18:49:00]OFD Sender: No OFD packet to send [18:49:05]OFD Sender: No OFD packet to send [18:49:10]OFD Sender: No OFD packet to send [18:49:15]OFD Sender: No OFD packet to send [18:49:20]OFD Sender: No OFD packet to send [18:49:25]OFD Sender: No OFD packet to send [18:49:30]OFD Sender: No OFD packet to send [18:49:35]OFD Sender: No OFD packet to send [18:49:40]OFD Sender: No OFD packet to send [18:49:45]OFD Sender: No OFD packet to send [18:49:50]OFD Sender: No OFD packet to send [18:49:55]OFD Sender: No OFD packet to send [18:50:00]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:10]OFD Sender: No OFD packet to send [18:50:15]OFD Sender: No OFD packet to send [18:50:20]OFD Sender: No OFD packet to send [18:50:25]OFD Sender: No OFD packet to send [18:50:30]OFD Sender: No OFD packet to send [18:50:35]OFD Sender: No OFD packet to send [18:50:40]OFD Sender: No OFD packet to send [18:50:45]OFD Sender: No OFD packet to send [18:50:50]OFD Sender: No OFD packet to send [18:50:55]OFD Sender: No OFD packet to send [18:51:00]OFD Sender: No OFD packet to send [18:51:05]OFD Sender: No OFD packet to send [18:51:10]OFD Sender: No OFD packet to send [18:51:15]OFD Sender: No OFD packet to send [18:51:20]OFD Sender: No OFD packet to send [18:51:25]OFD Sender: No OFD packet to send [18:51:30]OFD Sender: No OFD packet to send [18:51:35]OFD Sender: No OFD packet to send [18:51:40]OFD Sender: No OFD packet to send [18:51:45]OFD Sender: No OFD packet to send [18:51:50]OFD Sender: No OFD packet to send [18:51:55]OFD Sender: No OFD packet to send [18:52:00]OFD Sender: No OFD packet to send [18:52:05]OFD Sender: No OFD packet to send [18:52:10]OFD Sender: No OFD packet to send [18:52:15]OFD Sender: No OFD packet to send [18:52:20]OFD Sender: No OFD packet to send [18:52:25]OFD Sender: No OFD packet to send [18:52:30]OFD Sender: No OFD packet to send [18:52:35]OFD Sender: No OFD packet to send [18:52:40]OFD Sender: No OFD packet to send [18:52:45]OFD Sender: No OFD packet to send [18:52:50]OFD Sender: No OFD packet to send [18:52:55]OFD Sender: No OFD packet to send [18:53:00]OFD Sender: No OFD packet to send [18:53:05]OFD Sender: No OFD packet to send [18:53:10]OFD Sender: No OFD packet to send [18:53:15]OFD Sender: No OFD packet to send [18:53:20]OFD Sender: No OFD packet to send [18:53:25]OFD Sender: No OFD packet to send [18:53:30]OFD Sender: No OFD packet to send [18:53:35]OFD Sender: No OFD packet to send [18:53:40]OFD Sender: No OFD packet to send [18:53:45]OFD Sender: No OFD packet to send [18:53:50]OFD Sender: No OFD packet to send [18:53:55]OFD Sender: No OFD packet to send [18:54:00]OFD Sender: No OFD packet to send [18:54:05]OFD Sender: No OFD packet to send [18:54:10]OFD Sender: No OFD packet to send [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:00]OFD Sender: No OFD packet to send [18:55:05]OFD Sender: No OFD packet to send [18:55:10]OFD Sender: No OFD packet to send [18:55:15]OFD Sender: No OFD packet to send [18:55:20]OFD Sender: No OFD packet to send [18:55:25]OFD Sender: No OFD packet to send [18:55:30]OFD Sender: No OFD packet to send [18:55:35]OFD Sender: No OFD packet to send [18:55:40]OFD Sender: No OFD packet to send [18:55:45]OFD Sender: No OFD packet to send [18:55:50]OFD Sender: No OFD packet to send [18:55:55]OFD Sender: No OFD packet to send [18:56:00]OFD Sender: No OFD packet to send [18:56:05]OFD Sender: No OFD packet to send [18:56:10]OFD Sender: No OFD packet to send [18:56:15]OFD Sender: No OFD packet to send [18:56:20]OFD Sender: No OFD packet to send [18:56:25]OFD Sender: No OFD packet to send [18:56:30]OFD Sender: No OFD packet to send [18:56:35]OFD Sender: No OFD packet to send [18:56:40]OFD Sender: No OFD packet to send [18:56:45]OFD Sender: No OFD packet to send [18:56:50]OFD Sender: No OFD packet to send [18:56:55]OFD Sender: No OFD packet to send [18:57:00]OFD Sender: No OFD packet to send [18:57:05]OFD Sender: No OFD packet to send [18:57:10]OFD Sender: No OFD packet to send [18:57:15]OFD Sender: No OFD packet to send [18:57:20]OFD Sender: No OFD packet to send [18:57:25]OFD Sender: No OFD packet to send [18:57:30]OFD Sender: No OFD packet to send [18:57:35]OFD Sender: No OFD packet to send [18:57:40]OFD Sender: No OFD packet to send [18:57:45]OFD Sender: No OFD packet to send [18:57:50]OFD Sender: No OFD packet to send [18:57:55]OFD Sender: No OFD packet to send [18:58:00]OFD Sender: No OFD packet to send [18:58:05]OFD Sender: No OFD packet to send [18:58:10]OFD Sender: No OFD packet to send [18:58:15]OFD Sender: No OFD packet to send [18:58:20]OFD Sender: No OFD packet to send [18:58:25]OFD Sender: No OFD packet to send [18:58:30]OFD Sender: No OFD packet to send [18:58:35]OFD Sender: No OFD packet to send [18:58:40]OFD Sender: No OFD packet to send [18:58:45]OFD Sender: No OFD packet to send [18:58:50]OFD Sender: No OFD packet to send [18:58:55]OFD Sender: No OFD packet to send [18:59:00]OFD Sender: No OFD packet to send [18:59:05]OFD Sender: No OFD packet to send [18:59:10]OFD Sender: No OFD packet to send [18:59:15]OFD Sender: No OFD packet to send [18:59:20]OFD Sender: No OFD packet to send [18:59:25]OFD Sender: No OFD packet to send [18:59:30]OFD Sender: No OFD packet to send [18:59:35]OFD Sender: No OFD packet to send [18:59:40]OFD Sender: No OFD packet to send [18:59:45]OFD Sender: No OFD packet to send [18:59:50]OFD Sender: No OFD packet to send [18:59:55]OFD Sender: No OFD packet to send [19:00:00]OFD Sender: No OFD packet to send [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:20]OFD Sender: No OFD packet to send [19:00:25]OFD Sender: No OFD packet to send [19:00:30]OFD Sender: No OFD packet to send [19:00:35]OFD Sender: No OFD packet to send [19:00:40]OFD Sender: No OFD packet to send [19:00:45]OFD Sender: No OFD packet to send [19:00:50]OFD Sender: No OFD packet to send [19:00:55]OFD Sender: No OFD packet to send [19:01:00]OFD Sender: No OFD packet to send [19:01:05]OFD Sender: No OFD packet to send [19:01:10]OFD Sender: No OFD packet to send [19:01:15]OFD Sender: No OFD packet to send [19:01:20]OFD Sender: No OFD packet to send [19:01:25]OFD Sender: No OFD packet to send [19:01:30]OFD Sender: No OFD packet to send [19:01:35]OFD Sender: No OFD packet to send [19:01:40]OFD Sender: No OFD packet to send [19:01:45]OFD Sender: No OFD packet to send [19:01:50]OFD Sender: No OFD packet to send [19:01:55]OFD Sender: No OFD packet to send [19:02:00]OFD Sender: No OFD packet to send [19:02:05]OFD Sender: No OFD packet to send [19:02:10]OFD Sender: No OFD packet to send [19:02:15]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:03:00]OFD Sender: No OFD packet to send [19:03:05]OFD Sender: No OFD packet to send [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:29]accept exits with 9 [19:03:29]New connection [19:03:29]New thread 3067108708 created [19:03:29]Thread 3067252068 joined [19:03:29]Waiting for new connection... [19:03:29] Sock 9.Parse request [19:03:29]Sock 9.Check first char [19:03:29]Sock 9.First char is OK [19:03:29]request: POST /json_proto HTTP/1.0 [19:03:29]Method: POST [19:03:29]URL: /json_proto [19:03:29]Method is POST - this is cgi request [19:03:29]url: /json_proto [19:03:29]query_string will be loaded in cgi processing [19:03:29]execute_cgi json_proto POST (null) [19:03:29]execute_cgi path=json_proto method=POST [19:03:29]POST find Content-Length [19:03:29]Host: 172.17.44.4:8080 [19:03:29]Content-Length: 664 [19:03:29]Content-Type: application/json [19:03:29] [19:03:29]POST finish read [19:03:29]Found Content-Length = 664 [19:03:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141019", "tax_sys" : 0, "items" : [ { "code": "5449000131836", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 0,5\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" ] } } [19:03:29]execute_script... [19: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)141019", "tax_sys" : 0, "items" : [ { "code": "5449000131836", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 0,5\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" ] } } [19:03:29]POST & json_proto [19:03:29]process_json_proto [19:03:29]json parsed OK: [19:03:29]protocol is kg_v1.0 [19:03:29]action value=close_receipt [19:03:29]process_action close_receipt [19:03:29]cmd_close_receipt [19:03:29]MH_GetDate [19:03:29]Write to MH i2c: F0 00 00 5D 0C 58 [19:03:29]Write i2c OK [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: F0 [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: F0 09 00 [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: F0 09 00 5D 0C 00 82 58 46 66 6C E9 28 66 CA [19:03:29]GetLastDocTimeStamp 1715885138 [19:03:29]current date 1715886210 [19:03:29]FM_GetShiftState [19:03:29]SAM_PROTO_GetShiftState [19:03:29]wFMCommunicate request_size=4 [19:03:29]MH_SAM_APDU [19:03:29]CAPDU: 80 13 01 00 [19:03:29]Write to MH i2c: E2 08 00 5E 0C 80 13 01 00 00 00 00 00 E7 [19:03:29]Write i2c OK [19:03:29]MH_I2C_Read... [19:03:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:29]Read from MH i2c: E2 [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: E2 0E 00 [19:03:29]MH_I2C_Read... [19:03:29]Read from MH i2c: E2 0E 00 5E 0C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F3 [19:03:29]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:03:29]wFMCommunicate OK [19:03:29]SAM_PROTO_GetShiftState done [19:03:29]FM_GetShiftState done [19:03:29]opened in 1715818246 [19:03:29]opened+sec_in_day 1715904646 [19:03:29]quantity*price = 14000 [19:03:29]sum+1 = 14001 [19:03:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 86 16.05.2024 19:03 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5026 ФПД: 7789545331664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T190330&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5026&fm=7789545331664&tin=02508201610067®Number=0000000000154221&sum=14000 0 [19:03:30]StoreToDocumentArchive [19:03:30]shift 44 fd 5026 [19:03:30]save to /storage/0044/doc_00005026 [19:03:30]save last doc name /storage/0044/doc_00005026 to /storage/kkm_last_doc_name [19:03:30]save OK [19:03:30]Clear old archive folders... [19:03:30]ProcessDocumentItem done err = 0, tmpTLVsize=285 [19:03:30]tlvbuf is 011E5400 [19:03:30]SAM_PROTO_ClearQueue [19:03:30]wFMCommunicate request_size=4 [19:03:30]MH_SAM_APDU [19:03:30]CAPDU: 80 09 00 00 [19:03:30]Write to MH i2c: E2 08 00 6B 0C 80 09 00 00 00 00 00 00 E9 [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:30]Read from MH i2c: E2 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 03 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 03 00 6B 0C 00 90 00 EB [19:03:30]RAPDU: 90 00 [19:03:30]wFMCommunicate OK [19:03:30]SAM_PROTO_ClearQueue done [19:03:30]KKMCreateOFDPacket [19:03:30]OFDProtocolAddRootSTLVToBuf [19:03:30]FM_MakeSignedData [19:03:30]FM_MakeSignedData [19:03:30]SAM_PROTO_SignData [19:03:30]wFMCommunicate request_size=4 [19:03:30]MH_SAM_APDU [19:03:30]CAPDU: 80 0D 01 02 [19:03:30]Write to MH i2c: E2 08 00 6C 0C 80 0D 01 02 00 00 00 00 F1 [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:30]Read from MH i2c: E2 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 03 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 03 00 6C 0C 00 90 00 EC [19:03:30]RAPDU: 90 00 [19:03:30]wFMCommunicate OK [19:03:30]wFMCommunicate request_size=255 [19:03:30]MH_SAM_APDU [19:03:30]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 31 38 33 36 06 04 2B 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 5A 65 72 6F 20 30 2C 35 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 56 00 00 00 F4 03 04 00 82 58 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 [19:03:30]Write to MH i2c: E2 02 01 6D 0C 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 31 38 33 36 06 04 2B 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 5A 65 72 6F 20 30 2C 35 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 56 00 00 00 F4 03 04 00 82 58 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 00 00 CA [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:30]Read from MH i2c: E2 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 03 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 03 00 6D 0C 00 90 00 ED [19:03:30]RAPDU: 90 00 [19:03:30]wFMCommunicate OK [19:03:30]wFMCommunicate request_size=44 [19:03:30]MH_SAM_APDU [19:03:30]CAPDU: 80 0D 02 02 27 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A2 13 00 00 35 04 06 00 07 15 A5 15 1B D0 [19:03:30]Write to MH i2c: E2 2F 00 6E 0C 80 0D 02 02 27 00 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A2 13 00 00 35 04 06 00 07 15 A5 15 1B D0 00 00 87 [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:30]Read from MH i2c: E2 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 03 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 03 00 6E 0C 00 90 00 EE [19:03:30]RAPDU: 90 00 [19:03:30]wFMCommunicate OK [19:03:30]wFMCommunicate request_size=4 [19:03:30]MH_SAM_APDU [19:03:30]CAPDU: 80 0D 03 02 [19:03:30]Write to MH i2c: E2 08 00 6F 0C 80 0D 03 02 00 00 00 00 F6 [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:30]Read from MH i2c: E2 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 0B 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 0B 00 6F 0C 00 F3 58 6A 02 79 96 9E 81 90 00 DC [19:03:30]RAPDU: F3 58 6A 02 79 96 9E 81 90 00 [19:03:30]wFMCommunicate OK [19:03:30]SAM_PROTO_SignData done [19:03:30]FM_MakeSignedData done [19:03:30]CreateOFDProtocolMessage [19:03:30]wFMCommunicate request_size=4 [19:03:30]MH_SAM_APDU [19:03:30]CAPDU: 80 11 00 00 [19:03:30]Write to MH i2c: E2 08 00 70 0C 80 11 00 00 00 00 00 00 F6 [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:30]Read from MH i2c: E2 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 17 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: E2 17 00 70 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 4B [19:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:03:30]wFMCommunicate OK [19:03:30]CreateOFDProtocolMessage done [19:03:30]OFDSenderStorePacket 5026 [19:03:30]StoreOFDPacket docnum=5026 [19:03:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 31 01 00 00 06 41 29 01 72 5B 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 31 38 33 36 06 04 2B 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 5A 65 72 6F 20 30 2C 35 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 56 00 00 00 F4 03 04 00 82 58 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A2 13 00 00 35 04 06 00 07 15 A5 15 1B D0 F3 58 6A 02 79 96 9E 81 [19:03:30]CheckFolder [19:03:30]dirname=/storage/ofd_packets [19:03:30]CheckFolder done [19:03:30]ProducePacketName [19:03:30]name=ofd_packets/00005026 [19:03:30]NVStorageSaveData ofd_packets/00005026 [19:03:30]File name is /storage/ofd_packets/00005026 [19:03:30]Write 335 bytes [19:03:30]NVStorageSaveData done [19:03:30]OFDSenderStorePacket done [19:03:30]KKMCreateOFDPacket done [19:03:30]NVStorageSaveData kkm_last_timestamp [19:03:30]File name is /storage/kkm_last_timestamp [19:03:30]Write 4 bytes [19:03:30]NVStorageSaveData done [19:03:30]ExternCall_PrintAddStr [19:03:30]wPrintStart [19:03:30]Write to MH i2c: 01 00 00 71 0C 7D [19:03:30]Write i2c OK [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: 01 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: 01 07 00 [19:03:30]MH_I2C_Read... [19:03:30]Read from MH i2c: 01 07 00 71 0C 00 00 00 00 00 FF 0F 92 [19:03:30]RasterBufferAndPrint [19:03:30]line Счет N : (3)141019 [19:03:30]line ИНН: 02508201610067 [19:03:30]line Контрольно-Кассовый Чек [19:03:30]line ПРОДАЖА [19:03:30]line Товар: 5449000131836 [19:03:30]line Напиток Кока-Кола Zero 0,5л [19:03:30]line 2.000 * 70.00 [19:03:30]line = 140.00 [19:03:30]line НДС 12% НСП 1% [19:03:30]line > о реализуемом товаре [19:03:30]line ИТОГО: 140.00 [19:03:30]line НСП 1% : 1.24 [19:03:30]line НДС 12% : 14.87 [19:03:30]line Наличными: 140.00 [19:03:30]line Безнал.: 0.00 [19:03:30]line Место: АЗС № 135 "Партнер Нефть" [19:03:30]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:03:30]line СНО: Общий режим [19:03:30]line Чек 86 16.05.2024 19:03 [19:03:30]line Смена: 44 ФФД: 1.0 [19:03:30]line ЗНМ: 0300000237 [19:03:30]line РНМ: 0000000000154221 [19:03:30]line Версия ККМ: v1.0 [19:03:30]line ФМ: 0000000000963259 [19:03:30]line ФД: 5026 [19:03:30]line ФПД: 7789545331664 [19:03:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T190330&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5026&fm=7789545331664&tin=02508201610067®Number=0000000000154221&sum=14000 [19:03:31]line 0 [19:03:31]OFD Sender: Processing packet 5026 [packets to send 4, broken 3] [19:03:31]ProducePacketName [19:03:31]name=ofd_packets/00005026 [19:03:31]OFD Sender: To server: pG, [19:03:31]CommunicateWithHost lk.salyk.kg:30040 [19:03:31]ConnectInit lk.salyk.kg [19:03:31]written 0, free lines is 4095 [19:03:31]Connected sock=10 [19: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 33 32 35 39 31 01 00 00 06 41 29 01 72 5B 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 31 38 33 36 06 04 2B 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 5A 65 72 6F 20 30 2C 35 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 56 00 00 00 F4 03 04 00 82 58 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A2 13 00 00 35 04 06 00 07 15 A5 15 1B D0 F3 58 6A 02 79 96 9E 81 [19:03:31]Write to MH i2c: 01 00 00 99 0C A5 [19:03:31]Write i2c OK [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: 01 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: 01 07 00 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: 01 07 00 99 0C 00 00 00 00 00 98 0C 50 [19:03:31]RasterBufferAndPrint [19:03:31]line [19:03:31]line [19:03:31]line [19:03:31]line [19:03:31]line [19:03:31]written 0, free lines is 3228 [19:03:31]MH_Cut [19:03:31]Write to MH i2c: D1 01 00 A0 0C 01 7E [19:03:31]Write i2c OK [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: D1 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: D1 01 00 [19:03:31]MH_I2C_Read... [19:03:31]Read from MH i2c: D1 01 00 A0 0C 00 7D [19:03:31]Write to MH i2c: 01 00 00 A1 0C AD [19:03:31]Write i2c OK [19:03:31]MH_I2C_Read... [19:03:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 58 8E 47 00 E5 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A2 13 00 00 F4 03 04 00 45 04 46 66 B6 04 01 00 00 36 B6 B2 11 A6 4C D3 7B [19:03:31]CommunicateWithHost err = 0 [19:03:31]CheckOFDResponse [19:03:31]1017 (14) - 77093643461234 [19:03:31]1041 (16) - 0000000000963259 [19:03:31]1040 (4) - 5026 [19:03:31]1012 (4) - 16.05.2024 13:04 [19:03:31]1206 (1) - 0 [19:03:31]OFD Sender: Remove packet 5026 [19:03:31]ProducePacketName [19:03:31]name=ofd_packets/00005026 [19:03:31]NVStorageDeleteData [19:03:32]OFD Sender: No OFD packet to send [19:03:32]*** Cut start [19:03:32]*** Partial cut [19:03:32]*** CUTSNS_PIN = 1 [19:03:32]*** CUTSNS_PIN = 0 [19:03:33]*** Brake cut motor [19:03:33]Read from MH i2c: 01 [19:03:33]MH_I2C_Read... [19:03:33]*** Stop cut motor [19:03:33]*** Cut end [19:03:33]Read from MH i2c: 01 07 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: 01 07 00 A1 0C 00 00 00 00 00 FF 0F C2 [19:03:33]process_action close_receipt done [19:03:33]requested_data is exist [19:03:33]produce_requested_data [19:03:33]requested_item fm.sn is exist - process it [19:03:33]wFMCommunicate request_size=4 [19:03:33]MH_SAM_APDU [19:03:33]CAPDU: 80 11 00 00 [19:03:33]Write to MH i2c: E2 08 00 A2 0C 80 11 00 00 00 00 00 00 28 [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:33]Read from MH i2c: E2 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 17 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 17 00 A2 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 7D [19:03:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:03:33]wFMCommunicate OK [19:03:33]requested_item fd.num is exist - process it [19:03:33]SAM_PROTO_GetFieldsCounters [19:03:33]wFMCommunicate request_size=4 [19:03:33]MH_SAM_APDU [19:03:33]CAPDU: 80 13 00 00 [19:03:33]Write to MH i2c: E2 08 00 A3 0C 80 13 00 00 00 00 00 00 2B [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:33]Read from MH i2c: E2 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 62 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 62 00 A3 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A2 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [19: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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A2 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:33]wFMCommunicate OK [19:03:33]SAM_PROTO_GetFieldsCounters done [19:03:33]requested_item shift.num is exist - process it [19:03:33]requested_item shift.opened is exist - process it [19:03:33]req_shift_opened [19:03:33]FM_GetShiftState [19:03:33]SAM_PROTO_GetShiftState [19:03:33]wFMCommunicate request_size=4 [19:03:33]MH_SAM_APDU [19:03:33]CAPDU: 80 13 01 00 [19:03:33]Write to MH i2c: E2 08 00 A4 0C 80 13 01 00 00 00 00 00 2D [19:03:33]Write i2c OK [19:03:33]MH_I2C_Read... [19:03:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:33]Read from MH i2c: E2 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 0E 00 [19:03:33]MH_I2C_Read... [19:03:33]Read from MH i2c: E2 0E 00 A4 0C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 39 [19:03:33]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:03:33]wFMCommunicate OK [19:03:33]SAM_PROTO_GetShiftState done [19:03:33]FM_GetShiftState done [19:03:33]req_shift_opened done [19:03:33]requested_item shift.open_date is exist - process it [19:03:33]req_shift_open_date [19:03:33]req_shift_open_date done [19:03:33]produce_requested_data done [19:03:33]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5026,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:03:33]process_action_free close_receipt [19:03:33]json_value_free [19:03:33]json_value_free done [19:03:33]process_json_proto returns [19:03:33]Send response to host [19:03:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5026,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:03:33]free response buf [19:03:33]execute_script done [19:03:33]execute_script returns [19:03:33]free content buf [19:03:33]Sock 9.Close socket [19:03:33]Sock 9.Thread stoped [19:03:37]OFD Sender: No OFD packet to send [19:03:39]accept exits with 7 [19:03:39]New connection [19:03:39]New thread 3067252068 created [19:03:39]Thread 3067108708 joined [19:03:39]Waiting for new connection... [19:03:39] Sock 7.Parse request [19:03:39]Sock 7.Check first char [19:03:39]Sock 7.First char is OK [19:03:39]request: POST /json_proto HTTP/1.0 [19:03:39]Method: POST [19:03:39]URL: /json_proto [19:03:39]Method is POST - this is cgi request [19:03:39]url: /json_proto [19:03:39]query_string will be loaded in cgi processing [19:03:39]execute_cgi json_proto POST (null) [19:03:39]execute_cgi path=json_proto method=POST [19:03:39]POST find Content-Length [19:03:39]Host: 172.17.44.4:8080 [19:03:39]Content-Length: 215 [19:03:39]Content-Type: application/json [19:03:39] [19:03:39]POST finish read [19:03:39]Found Content-Length = 215 [19:03:39]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:03:39]execute_script... [19:03:39]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:03:39]POST & json_proto [19:03:39]process_json_proto [19:03:39]json parsed OK: [19:03:39]protocol is kg_v1.0 [19:03:39]action value=get_value [19:03:39]process_action get_value [19:03:39]cmd_get_value [19:03:39]process_action get_value done [19:03:39]requested_data is exist [19:03:39]produce_requested_data [19:03:39]requested_item kkm.sn is exist - process it [19:03:39]requested_item kkm.ver is exist - process it [19:03:39]requested_item fm.sn is exist - process it [19:03:39]wFMCommunicate request_size=4 [19:03:39]MH_SAM_APDU [19:03:39]CAPDU: 80 11 00 00 [19:03:39]Write to MH i2c: E2 08 00 A5 0C 80 11 00 00 00 00 00 00 2B [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:39]Read from MH i2c: E2 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 17 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 17 00 A5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 80 [19:03:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:03:39]wFMCommunicate OK [19:03:39]requested_item fd.num is exist - process it [19:03:39]SAM_PROTO_GetFieldsCounters [19:03:39]wFMCommunicate request_size=4 [19:03:39]MH_SAM_APDU [19:03:39]CAPDU: 80 13 00 00 [19:03:39]Write to MH i2c: E2 08 00 A6 0C 80 13 00 00 00 00 00 00 2E [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:39]Read from MH i2c: E2 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 62 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 62 00 A6 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A2 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [19:03:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A2 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:39]wFMCommunicate OK [19:03:39]SAM_PROTO_GetFieldsCounters done [19:03:39]requested_item shift.num is exist - process it [19:03:39]requested_item shift.opened is exist - process it [19:03:39]req_shift_opened [19:03:39]FM_GetShiftState [19:03:39]SAM_PROTO_GetShiftState [19:03:39]wFMCommunicate request_size=4 [19:03:39]MH_SAM_APDU [19:03:39]CAPDU: 80 13 01 00 [19:03:39]Write to MH i2c: E2 08 00 A7 0C 80 13 01 00 00 00 00 00 30 [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:39]Read from MH i2c: E2 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 0E 00 [19:03:39]MH_I2C_Read... [19:03:39]Read from MH i2c: E2 0E 00 A7 0C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3C [19:03:39]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:03:39]wFMCommunicate OK [19:03:39]SAM_PROTO_GetShiftState done [19:03:39]FM_GetShiftState done [19:03:39]req_shift_opened done [19:03:39]requested_item shift.open_date is exist - process it [19:03:39]req_shift_open_date [19:03:39]req_shift_open_date done [19:03:39]produce_requested_data done [19:03:39]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5026,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:03:39]process_action_free get_value [19:03:39]json_value_free [19:03:39]json_value_free done [19:03:39]process_json_proto returns [19:03:39]Send response to host [19:03:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5026,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:03:39]free response buf [19:03:39]execute_script done [19:03:39]execute_script returns [19:03:39]free content buf [19:03:39]Sock 7.Close socket [19:03:39]Sock 7.Thread stoped [19:03:39]accept exits with 9 [19:03:39]New connection [19:03:39]New thread 3067108708 created [19:03:39]Thread 3067252068 joined [19:03:39]Waiting for new connection... [19:03:39] Sock 9.Parse request [19:03:39]Sock 9.Check first char [19:03:39]Sock 9.First char is OK [19:03:39]request: POST /json_proto HTTP/1.0 [19:03:39]Method: POST [19:03:39]URL: /json_proto [19:03:39]Method is POST - this is cgi request [19:03:39]url: /json_proto [19:03:39]query_string will be loaded in cgi processing [19:03:39]execute_cgi json_proto POST (null) [19:03:39]execute_cgi path=json_proto method=POST [19:03:39]POST find Content-Length [19:03:39]Host: 172.17.44.4:8080 [19:03:39]Content-Length: 331 [19:03:39]Content-Type: application/json [19:03:39] [19:03:39]POST finish read [19:03:39]Found Content-Length = 331 [19:03:39]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:03:39]execute_script... [19:03:39]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:03:39]POST & json_proto [19:03:39]process_json_proto [19:03:39]json parsed OK: [19:03:39]protocol is kg_v1.0 [19:03:39]action value=get_value [19:03:39]process_action get_value [19:03:39]cmd_get_value [19:03:39]process_action get_value done [19:03:39]requested_data is exist [19:03:39]produce_requested_data [19:03:39]requested_item fm.sale.total is exist - process it [19:03:39]SAM_PROTO_GetFMData [19:03:39]wFMCommunicate request_size=4 [19:03:39]MH_SAM_APDU [19:03:39]CAPDU: 80 13 03 00 [19:03:39]Write to MH i2c: E2 08 00 A8 0C 80 13 03 00 00 00 00 00 33 [19:03:39]Write i2c OK [19:03:39]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 FD 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 FD 00 A8 0C 00 BF 04 85 04 BB 04 6E 04 04 00 4A 13 00 00 69 04 A0 00 6F 04 04 00 17 13 00 00 B1 04 04 00 26 D1 7C 0F 70 04 04 00 E0 DB 00 07 72 04 04 00 46 F5 7B 08 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 41 10 A5 01 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 40 14 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 88 [19:03:40]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 4A 13 00 00 69 04 A0 00 6F 04 04 00 17 13 00 00 B1 04 04 00 26 D1 7C 0F 70 04 04 00 E0 DB 00 07 72 04 04 00 46 F5 7B 08 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 41 10 A5 01 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 40 14 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [19:03:40]wFMCommunicate OK [19:03:40]wFMCommunicate request_size=4 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 17 00 00 [19:03:40]Write to MH i2c: E2 08 00 A9 0C 80 17 00 00 00 00 00 00 35 [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 FD 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 FD 00 A9 0C 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 D2 [19:03:40]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:03:40]wFMCommunicate OK [19:03:40]wFMCommunicate request_size=4 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 17 00 00 [19:03:40]Write to MH i2c: E2 08 00 AA 0C 80 17 00 00 00 00 00 00 36 [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 FD 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 FD 00 AA 0C 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DA [19:03:40]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 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 90 00 [19:03:40]wFMCommunicate OK [19:03:40]wFMCommunicate request_size=4 [19:03:40]MH_SAM_APDU [19:03:40]CAPDU: 80 17 00 00 [19:03:40]Write to MH i2c: E2 08 00 AB 0C 80 17 00 00 00 00 00 00 37 [19:03:40]Write i2c OK [19:03:40]MH_I2C_Read... [19:03:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:40]Read from MH i2c: E2 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 FD 00 [19:03:40]MH_I2C_Read... [19:03:40]Read from MH i2c: E2 FD 00 AB 0C 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 B1 [19:03:41]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:03:41]wFMCommunicate OK [19:03:41]wFMCommunicate request_size=4 [19:03:41]MH_SAM_APDU [19:03:41]CAPDU: 80 17 00 00 [19:03:41]Write to MH i2c: E2 08 00 AC 0C 80 17 00 00 00 00 00 00 38 [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [19:03:41]Read from MH i2c: E2 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 DC 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 DC 00 AC 0C 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 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 1C [19:03:41]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 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:03:41]wFMCommunicate OK [19:03:41]SAM_PROTO_GetFMData done [19:03:41]requested_item fm.sale_refund.total is exist - process it [19:03:41]requested_item fm.buy.total is exist - process it [19:03:41]requested_item shift.sale.total is exist - process it [19:03:41]SAM_PROTO_GetShiftData [19:03:41]wFMCommunicate request_size=4 [19:03:41]MH_SAM_APDU [19:03:41]CAPDU: 80 13 02 00 [19:03:41]Write to MH i2c: E2 08 00 AD 0C 80 13 02 00 00 00 00 00 37 [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:41]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:03:41]Read from MH i2c: E2 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 FD 00 [19:03:41]MH_I2C_Read... [19:03:41]Read from MH i2c: E2 FD 00 AD 0C 00 AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 BE C0 2D 70 04 03 00 A0 22 1A 72 04 03 00 1E 9E 13 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 F1 DB 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 A2 67 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D3 [19:03:41]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 56 00 00 00 69 04 9B 00 6F 04 04 00 56 00 00 00 B1 04 03 00 BE C0 2D 70 04 03 00 A0 22 1A 72 04 03 00 1E 9E 13 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 F1 DB 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 A2 67 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:03:41]wFMCommunicate OK [19:03:41]wFMCommunicate request_size=4 [19:03:41]MH_SAM_APDU [19:03:41]CAPDU: 80 17 00 00 [19:03:41]Write to MH i2c: E2 08 00 AE 0C 80 17 00 00 00 00 00 00 3A [19:03:41]Write i2c OK [19:03:41]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 FD 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 FD 00 AE 0C 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 5C [19:03:42]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:03:42]wFMCommunicate OK [19:03:42]wFMCommunicate request_size=4 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 17 00 00 [19:03:42]Write to MH i2c: E2 08 00 AF 0C 80 17 00 00 00 00 00 00 3B [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 FD 00 [19:03:42]MH_I2C_Read... [19:03:42]OFD Sender: No OFD packet to send [19:03:42]Read from MH i2c: E2 FD 00 AF 0C 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 [19:03:42]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:03:42]wFMCommunicate OK [19:03:42]wFMCommunicate request_size=4 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 17 00 00 [19:03:42]Write to MH i2c: E2 08 00 B0 0C 80 17 00 00 00 00 00 00 3C [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:03:42]Read from MH i2c: E2 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 FD 00 [19:03:42]MH_I2C_Read... [19:03:42]Read from MH i2c: E2 FD 00 B0 0C 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 AE [19:03:42]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:03:42]wFMCommunicate OK [19:03:42]wFMCommunicate request_size=4 [19:03:42]MH_SAM_APDU [19:03:42]CAPDU: 80 17 00 00 [19:03:42]Write to MH i2c: E2 08 00 B1 0C 80 17 00 00 00 00 00 00 3D [19:03:42]Write i2c OK [19:03:42]MH_I2C_Read... [19:03:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:03:43]Read from MH i2c: E2 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 CB 00 [19:03:43]MH_I2C_Read... [19:03:43]Read from MH i2c: E2 CB 00 B1 0C 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 26 [19:03:43]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:03:43]wFMCommunicate OK [19:03:43]SAM_PROTO_GetShiftData done [19:03:43]requested_item shift.sale.total_cash is exist - process it [19:03:43]requested_item shift.sale_refund.total is exist - process it [19:03:43]requested_item shift.sale_refund.total_cash is exist - process it [19:03:43]requested_item shift.buy.total is exist - process it [19:03:43]requested_item shift.buy.total_cash is exist - process it [19:03:43]produce_requested_data done [19:03:43]produce_requested_data return {"fm.sale.total":2598382.46,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":29984.62,"shift.sale.total_cash":17128.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:03:43]process_action_free get_value [19:03:43]json_value_free [19:03:43]json_value_free done [19:03:43]process_json_proto returns [19:03:43]Send response to host [19:03:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2598382.46,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":29984.62,"shift.sale.total_cash":17128.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:03:43]free response buf [19:03:43]execute_script done [19:03:43]execute_script returns [19:03:43]free content buf [19:03:43]Sock 9.Close socket [19:03:43]Sock 9.Thread stoped [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07: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:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14:17]OFD Sender: No OFD packet to send [19:14:22]OFD Sender: No OFD packet to send [19:14:27]OFD Sender: No OFD packet to send [19:14:32]OFD Sender: No OFD packet to send [19:14:37]OFD Sender: No OFD packet to send [19:14:42]OFD Sender: No OFD packet to send [19:14:47]OFD Sender: No OFD packet to send [19:14:52]OFD Sender: No OFD packet to send [19:14:57]OFD Sender: No OFD packet to send [19:15:02]OFD Sender: No OFD packet to send [19:15:07]OFD Sender: No OFD packet to send [19:15:12]OFD Sender: No OFD packet to send [19:15:17]OFD Sender: No OFD packet to send [19:15:22]OFD Sender: No OFD packet to send [19:15:27]OFD Sender: No OFD packet to send [19:15:32]OFD Sender: No OFD packet to send [19:15:37]OFD Sender: No OFD packet to send [19:15:42]OFD Sender: No OFD packet to send [19:15:47]OFD Sender: No OFD packet to send [19:15:52]OFD Sender: No OFD packet to send [19:15:57]OFD Sender: No OFD packet to send [19:16:02]OFD Sender: No OFD packet to send [19:16:07]OFD Sender: No OFD packet to send [19:16:12]OFD Sender: No OFD packet to send [19:16:17]OFD Sender: No OFD packet to send [19:16:22]OFD Sender: No OFD packet to send [19:16:27]OFD Sender: No OFD packet to send [19:16:32]OFD Sender: No OFD packet to send [19:16:37]OFD Sender: No OFD packet to send [19:16:42]OFD Sender: No OFD packet to send [19:16:47]OFD Sender: No OFD packet to send [19:16:52]OFD Sender: No OFD packet to send [19:16:57]OFD Sender: No OFD packet to send [19:17:02]OFD Sender: No OFD packet to send [19:17:07]OFD Sender: No OFD packet to send [19:17:12]OFD Sender: No OFD packet to send [19:17:17]OFD Sender: No OFD packet to send [19:17:22]OFD Sender: No OFD packet to send [19:17:27]OFD Sender: No OFD packet to send [19:17:33]OFD Sender: No OFD packet to send [19:17:38]OFD Sender: No OFD packet to send [19:17:43]OFD Sender: No OFD packet to send [19:17:48]OFD Sender: No OFD packet to send [19:17:53]OFD Sender: No OFD packet to send [19:17:58]OFD Sender: No OFD packet to send [19:18:03]OFD Sender: No OFD packet to send [19:18:08]OFD Sender: No OFD packet to send [19:18:13]OFD Sender: No OFD packet to send [19:18:18]OFD Sender: No OFD packet to send [19:18:23]OFD Sender: No OFD packet to send [19:18:28]OFD Sender: No OFD packet to send [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:39]accept exits with 7 [19:26:39]New connection [19:26:39]New thread 3067252068 created [19:26:39]Thread 3067108708 joined [19:26:39]Waiting for new connection... [19:26:39] Sock 7.Parse request [19:26:39]Sock 7.Check first char [19:26:39]Sock 7.First char is OK [19:26:39]request: POST /json_proto HTTP/1.0 [19:26:39]Method: POST [19:26:39]URL: /json_proto [19:26:39]Method is POST - this is cgi request [19:26:39]url: /json_proto [19:26:39]query_string will be loaded in cgi processing [19:26:39]execute_cgi json_proto POST (null) [19:26:39]execute_cgi path=json_proto method=POST [19:26:39]POST find Content-Length [19:26:39]Host: 172.17.44.4:8080 [19:26:39]Content-Length: 731 [19:26:39]Content-Type: application/json [19:26:39] [19:26:39]POST finish read [19:26:39]Found Content-Length = 731 [19:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141020", "tax_sys" : 0, "items" : [ { "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:39]execute_script... [19:26: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)141020", "tax_sys" : 0, "items" : [ { "code": "4607018771791", "name": "\u041C\u0438\u043D\u0435\u0440\u0430\u043B\u044C\u043D\u0430\u044F \u0432\u043E\u0434\u0430 \u0415\u0441\u0441\u0435\u043D\u0442\u0443\u043A\u0438 17 0,45\u043B \u0441\u0442", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:39]POST & json_proto [19:26:39]process_json_proto [19:26:39]json parsed OK: [19:26:39]protocol is kg_v1.0 [19:26:39]action value=close_receipt [19:26:39]process_action close_receipt [19:26:39]cmd_close_receipt [19:26:39]MH_GetDate [19:26:39]Write to MH i2c: F0 00 00 B2 0C AD [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: F0 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: F0 09 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: F0 09 00 B2 0C 00 F1 5D 46 66 6C E9 28 66 93 [19:26:39]GetLastDocTimeStamp 1715886210 [19:26:39]current date 1715887601 [19:26:39]FM_GetShiftState [19:26:39]SAM_PROTO_GetShiftState [19:26:39]wFMCommunicate request_size=4 [19:26:39]MH_SAM_APDU [19:26:39]CAPDU: 80 13 01 00 [19:26:39]Write to MH i2c: E2 08 00 B3 0C 80 13 01 00 00 00 00 00 3C [19:26:39]Write i2c OK [19:26:39]MH_I2C_Read... [19:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:39]Read from MH i2c: E2 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 0E 00 [19:26:39]MH_I2C_Read... [19:26:39]Read from MH i2c: E2 0E 00 B3 0C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 48 [19:26:39]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:26:39]wFMCommunicate OK [19:26:39]SAM_PROTO_GetShiftState done [19:26:39]FM_GetShiftState done [19:26:39]opened in 1715818246 [19:26:39]opened+sec_in_day 1715904646 [19:26:39]quantity*price = 10500 [19:26:39]sum+1 = 10501 [19:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 87 16.05.2024 19:26 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5027 ФПД: 188938751561448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T192641&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5027&fm=188938751561448&tin=02508201610067®Number=0000000000154221&sum=10500 0 [19:26:40]StoreToDocumentArchive [19:26:40]shift 44 fd 5027 [19:26:40]save to /storage/0044/doc_00005027 [19:26:40]save last doc name /storage/0044/doc_00005027 to /storage/kkm_last_doc_name [19:26:40]save OK [19:26:40]Clear old archive folders... [19:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=307 [19:26:40]tlvbuf is 01210A40 [19:26:40]SAM_PROTO_ClearQueue [19:26:40]wFMCommunicate request_size=4 [19:26:40]MH_SAM_APDU [19:26:40]CAPDU: 80 09 00 00 [19:26:40]Write to MH i2c: E2 08 00 C0 0C 80 09 00 00 00 00 00 00 3E [19:26:40]Write i2c OK [19:26:40]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 C0 0C 00 90 00 40 [19:26:41]RAPDU: 90 00 [19:26:41]wFMCommunicate OK [19:26:41]SAM_PROTO_ClearQueue done [19:26:41]KKMCreateOFDPacket [19:26:41]OFDProtocolAddRootSTLVToBuf [19:26:41]FM_MakeSignedData [19:26:41]FM_MakeSignedData [19:26:41]SAM_PROTO_SignData [19:26:41]wFMCommunicate request_size=4 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 0D 01 02 [19:26:41]Write to MH i2c: E2 08 00 C1 0C 80 0D 01 02 00 00 00 00 46 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 C1 0C 00 90 00 41 [19:26:41]RAPDU: 90 00 [19:26:41]wFMCommunicate OK [19:26:41]wFMCommunicate request_size=255 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 0D 02 02 FA 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 57 00 00 00 F4 03 04 00 F1 5D 46 66 0E 04 04 00 2C 00 00 00 B9 04 [19:26:41]Write to MH i2c: E2 02 01 C2 0C 80 0D 02 02 FA 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 57 00 00 00 F4 03 04 00 F1 5D 46 66 0E 04 04 00 2C 00 00 00 B9 04 00 00 46 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 C2 0C 00 90 00 42 [19:26:41]RAPDU: 90 00 [19:26:41]wFMCommunicate OK [19:26:41]wFMCommunicate request_size=66 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 0D 02 02 3D 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A3 13 00 00 35 04 06 00 AB D6 BB 2B CE E8 [19:26:41]Write to MH i2c: E2 45 00 C3 0C 80 0D 02 02 3D 00 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A3 13 00 00 35 04 06 00 AB D6 BB 2B CE E8 00 00 66 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 03 00 C3 0C 00 90 00 43 [19:26:41]RAPDU: 90 00 [19:26:41]wFMCommunicate OK [19:26:41]wFMCommunicate request_size=4 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 0D 03 02 [19:26:41]Write to MH i2c: E2 08 00 C4 0C 80 0D 03 02 00 00 00 00 4B [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 0B 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 0B 00 C4 0C 00 9E 62 4A 03 D6 AA 06 59 90 00 78 [19:26:41]RAPDU: 9E 62 4A 03 D6 AA 06 59 90 00 [19:26:41]wFMCommunicate OK [19:26:41]SAM_PROTO_SignData done [19:26:41]FM_MakeSignedData done [19:26:41]CreateOFDProtocolMessage [19:26:41]wFMCommunicate request_size=4 [19:26:41]MH_SAM_APDU [19:26:41]CAPDU: 80 11 00 00 [19:26:41]Write to MH i2c: E2 08 00 C5 0C 80 11 00 00 00 00 00 00 4B [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:41]Read from MH i2c: E2 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 17 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: E2 17 00 C5 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A0 [19:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:26:41]wFMCommunicate OK [19:26:41]CreateOFDProtocolMessage done [19:26:41]OFDSenderStorePacket 5027 [19:26:41]StoreOFDPacket docnum=5027 [19:26:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 47 01 00 00 FE CF 3F 01 46 8C 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 57 00 00 00 F4 03 04 00 F1 5D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A3 13 00 00 35 04 06 00 AB D6 BB 2B CE E8 9E 62 4A 03 D6 AA 06 59 [19:26:41]CheckFolder [19:26:41]dirname=/storage/ofd_packets [19:26:41]CheckFolder done [19:26:41]ProducePacketName [19:26:41]name=ofd_packets/00005027 [19:26:41]NVStorageSaveData ofd_packets/00005027 [19:26:41]File name is /storage/ofd_packets/00005027 [19:26:41]Write 357 bytes [19:26:41]NVStorageSaveData done [19:26:41]OFDSenderStorePacket done [19:26:41]KKMCreateOFDPacket done [19:26:41]NVStorageSaveData kkm_last_timestamp [19:26:41]File name is /storage/kkm_last_timestamp [19:26:41]Write 4 bytes [19:26:41]OFD Sender: Processing packet 5027 [packets to send 4, broken 3] [19:26:41]ProducePacketName [19:26:41]name=ofd_packets/00005027 [19:26:41]OFD Sender: To server: pG, [19:26:41]CommunicateWithHost lk.salyk.kg:30040 [19:26:41]ConnectInit lk.salyk.kg [19:26:41]NVStorageSaveData done [19:26:41]ExternCall_PrintAddStr [19:26:41]wPrintStart [19:26:41]Write to MH i2c: 01 00 00 C6 0C D2 [19:26:41]Write i2c OK [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: 01 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: 01 07 00 [19:26:41]MH_I2C_Read... [19:26:41]Read from MH i2c: 01 07 00 C6 0C 00 00 00 00 00 FF 0F E7 [19:26:41]RasterBufferAndPrint [19:26:41]line Счет N : (3)141020 [19:26:41]line ИНН: 02508201610067 [19:26:41]line Контрольно-Кассовый Чек [19:26:41]line ПРОДАЖА [19:26:41]line Товар: 4607018771791 [19:26:41]line Минеральная вода Ессентуки 17 0,45л ст [19:26:41]line 1.000 * 105.00 [19:26:41]line = 105.00 [19:26:41]line НДС 12% НСП 1% [19:26:41]line > о реализуемом товаре [19:26:41]line ИТОГО: 105.00 [19:26:41]line НСП 1% : 0.93 [19:26:41]line НДС 12% : 11.15 [19:26:41]line Наличными: 105.00 [19:26:41]line Безнал.: 0.00 [19:26:41]line Место: АЗС № 135 "Партнер Нефть" [19:26:41]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:26:41]line СНО: Общий режим [19:26:41]line Чек 87 16.05.2024 19:26 [19:26:41]line Смена: 44 ФФД: 1.0 [19:26:41]line ЗНМ: 0300000237 [19:26:41]line РНМ: 0000000000154221 [19:26:41]line Версия ККМ: v1.0 [19:26:41]line ФМ: 0000000000963259 [19:26:41]line ФД: 5027 [19:26:41]line ФПД: 188938751561448 [19:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T192641&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5027&fm=188938751561448&tin=02508201610067®Number=0000000000154221&sum=10500 [19:26:41]line 0 [19:26:41]Connected sock=11 [19:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 47 01 00 00 FE CF 3F 01 46 8C 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 36 30 37 30 31 38 37 37 31 37 39 31 06 04 41 00 D0 9C D0 B8 D0 BD D0 B5 D1 80 D0 B0 D0 BB D1 8C D0 BD D0 B0 D1 8F 20 D0 B2 D0 BE D0 B4 D0 B0 20 D0 95 D1 81 D1 81 D0 B5 D0 BD D1 82 D1 83 D0 BA D0 B8 20 31 37 20 30 2C 34 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 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 57 00 00 00 F4 03 04 00 F1 5D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A3 13 00 00 35 04 06 00 AB D6 BB 2B CE E8 9E 62 4A 03 D6 AA 06 59 [19:26:41]written 0, free lines is 4095 [19:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 36 6E 47 00 B0 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A3 13 00 00 F4 03 04 00 B3 09 46 66 B6 04 01 00 00 F7 7C E2 8E B9 6C 8B C6 [19:26:42]CommunicateWithHost err = 0 [19:26:42]CheckOFDResponse [19:26:42]1017 (14) - 77093643461234 [19:26:42]1041 (16) - 0000000000963259 [19:26:42]1040 (4) - 5027 [19:26:42]1012 (4) - 16.05.2024 13:27 [19:26:42]1206 (1) - 0 [19:26:42]OFD Sender: Remove packet 5027 [19:26:42]ProducePacketName [19:26:42]name=ofd_packets/00005027 [19:26:42]NVStorageDeleteData [19:26:42]Write to MH i2c: 01 00 00 EF 0C FB [19:26:42]Write i2c OK [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: 01 [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: 01 07 00 [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: 01 07 00 EF 0C 00 00 00 00 00 61 0C 6F [19:26:42]RasterBufferAndPrint [19:26:42]line [19:26:42]line [19:26:42]line [19:26:42]line [19:26:42]line [19:26:42]written 0, free lines is 3175 [19:26:42]MH_Cut [19:26:42]Write to MH i2c: D1 01 00 F6 0C 01 D4 [19:26:42]Write i2c OK [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: D1 [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: D1 01 00 [19:26:42]MH_I2C_Read... [19:26:42]Read from MH i2c: D1 01 00 F6 0C 00 D3 [19:26:42]Write to MH i2c: 01 00 00 F7 0C 03 [19:26:42]Write i2c OK [19:26:42]MH_I2C_Read... [19:26:42]OFD Sender: No OFD packet to send [19:26:43]*** Cut start [19:26:43]*** Partial cut [19:26:43]*** CUTSNS_PIN = 1 [19:26:43]*** CUTSNS_PIN = 0 [19:26:43]*** Brake cut motor [19:26:44]Read from MH i2c: 01 [19:26:44]MH_I2C_Read... [19:26:44]*** Stop cut motor [19:26:44]*** Cut end [19:26:44]Read from MH i2c: 01 07 00 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: 01 07 00 F7 0C 00 00 00 00 00 FF 0F 18 [19:26:44]process_action close_receipt done [19:26:44]requested_data is exist [19:26:44]produce_requested_data [19:26:44]requested_item fm.sn is exist - process it [19:26:44]wFMCommunicate request_size=4 [19:26:44]MH_SAM_APDU [19:26:44]CAPDU: 80 11 00 00 [19:26:44]Write to MH i2c: E2 08 00 F8 0C 80 11 00 00 00 00 00 00 7E [19:26:44]Write i2c OK [19:26:44]MH_I2C_Read... [19:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:44]Read from MH i2c: E2 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 17 00 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 17 00 F8 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D3 [19:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:26:44]wFMCommunicate OK [19:26:44]requested_item fd.num is exist - process it [19:26:44]SAM_PROTO_GetFieldsCounters [19:26:44]wFMCommunicate request_size=4 [19:26:44]MH_SAM_APDU [19:26:44]CAPDU: 80 13 00 00 [19:26:44]Write to MH i2c: E2 08 00 F9 0C 80 13 00 00 00 00 00 00 81 [19:26:44]Write i2c OK [19:26:44]MH_I2C_Read... [19:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:44]Read from MH i2c: E2 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 62 00 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 62 00 F9 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A3 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [19:26:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A3 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:44]wFMCommunicate OK [19:26:44]SAM_PROTO_GetFieldsCounters done [19:26:44]requested_item shift.num is exist - process it [19:26:44]requested_item shift.opened is exist - process it [19:26:44]req_shift_opened [19:26:44]FM_GetShiftState [19:26:44]SAM_PROTO_GetShiftState [19:26:44]wFMCommunicate request_size=4 [19:26:44]MH_SAM_APDU [19:26:44]CAPDU: 80 13 01 00 [19:26:44]Write to MH i2c: E2 08 00 FA 0C 80 13 01 00 00 00 00 00 83 [19:26:44]Write i2c OK [19:26:44]MH_I2C_Read... [19:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:44]Read from MH i2c: E2 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 0E 00 [19:26:44]MH_I2C_Read... [19:26:44]Read from MH i2c: E2 0E 00 FA 0C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 8F [19:26:44]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:26:44]wFMCommunicate OK [19:26:44]SAM_PROTO_GetShiftState done [19:26:44]FM_GetShiftState done [19:26:44]req_shift_opened done [19:26:44]requested_item shift.open_date is exist - process it [19:26:44]req_shift_open_date [19:26:44]req_shift_open_date done [19:26:44]produce_requested_data done [19:26:44]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5027,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:26:44]process_action_free close_receipt [19:26:44]json_value_free [19:26:44]json_value_free done [19:26:44]process_json_proto returns [19:26:44]Send response to host [19:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5027,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:26:44]free response buf [19:26:44]execute_script done [19:26:44]execute_script returns [19:26:44]free content buf [19:26:44]Sock 7.Close socket [19:26:44]Sock 7.Thread stoped [19:26:47]OFD Sender: No OFD packet to send [19:26:52]OFD Sender: No OFD packet to send [19:26:57]OFD Sender: No OFD packet to send [19:27:02]OFD Sender: No OFD packet to send [19:27:07]OFD Sender: No OFD packet to send [19:27:12]OFD Sender: No OFD packet to send [19:27:17]OFD Sender: No OFD packet to send [19:27:22]OFD Sender: No OFD packet to send [19:27:27]OFD Sender: No OFD packet to send [19:27:32]OFD Sender: No OFD packet to send [19:27:37]OFD Sender: No OFD packet to send [19:27:42]OFD Sender: No OFD packet to send [19:27:47]OFD Sender: No OFD packet to send [19:27:52]OFD Sender: No OFD packet to send [19:27:57]OFD Sender: No OFD packet to send [19:28:02]OFD Sender: No OFD packet to send [19:28:07]OFD Sender: No OFD packet to send [19:28:12]OFD Sender: No OFD packet to send [19:28:17]OFD Sender: No OFD packet to send [19:28:22]OFD Sender: No OFD packet to send [19:28:27]OFD Sender: No OFD packet to send [19:28:32]OFD Sender: No OFD packet to send [19:28:37]OFD Sender: No OFD packet to send [19:28:42]OFD Sender: No OFD packet to send [19:28:47]OFD Sender: No OFD packet to send [19:28:52]OFD Sender: No OFD packet to send [19:28:52]accept exits with 9 [19:28:52]New connection [19:28:52]New thread 3067108708 created [19:28:52]Thread 3067252068 joined [19:28:52]Waiting for new connection... [19:28:52] Sock 9.Parse request [19:28:52]Sock 9.Check first char [19:28:52]Sock 9.First char is OK [19:28:52]request: POST /json_proto HTTP/1.0 [19:28:52]Method: POST [19:28:52]URL: /json_proto [19:28:52]Method is POST - this is cgi request [19:28:52]url: /json_proto [19:28:52]query_string will be loaded in cgi processing [19:28:52]execute_cgi json_proto POST (null) [19:28:52]execute_cgi path=json_proto method=POST [19:28:52]POST find Content-Length [19:28:52]Host: 172.17.44.4:8080 [19:28:52]Content-Length: 836 [19:28:52]Content-Type: application/json [19:28:52] [19:28:52]POST finish read [19:28:52]Found Content-Length = 836 [19:28:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141021", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:52]execute_script... [19:28: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)141021", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:52]POST & json_proto [19:28:52]process_json_proto [19:28:52]json parsed OK: [19:28:52]protocol is kg_v1.0 [19:28:52]action value=close_receipt [19:28:52]process_action close_receipt [19:28:52]cmd_close_receipt [19:28:52]MH_GetDate [19:28:52]Write to MH i2c: F0 00 00 FB 0C F6 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: F0 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: F0 09 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: F0 09 00 FB 0C 00 76 5E 46 66 6C E9 28 66 62 [19:28:52]GetLastDocTimeStamp 1715887601 [19:28:52]current date 1715887734 [19:28:52]FM_GetShiftState [19:28:52]SAM_PROTO_GetShiftState [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 13 01 00 [19:28:52]Write to MH i2c: E2 08 00 FC 0C 80 13 01 00 00 00 00 00 85 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 0E 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 0E 00 FC 0C 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 91 [19:28:52]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:28:52]wFMCommunicate OK [19:28:52]SAM_PROTO_GetShiftState done [19:28:52]FM_GetShiftState done [19:28:52]opened in 1715818246 [19:28:52]opened+sec_in_day 1715904646 [19:28:52]quantity*price = 13000 [19:28:52]sum+1 = 13001 [19:28:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 88 16.05.2024 19:28 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: Демир КИ Банк ФМ: 0000000000963259 ФД: 5028 ФПД: 102144817337705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T192854&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5028&fm=102144817337705&tin=02508201610067®Number=0000000000154221&sum=13000 0 [19:28:54]StoreToDocumentArchive [19:28:54]shift 44 fd 5028 [19:28:54]save to /storage/0044/doc_00005028 [19:28:54]save last doc name /storage/0044/doc_00005028 to /storage/kkm_last_doc_name [19:28:54]save OK [19:28:54]Clear old archive folders... [19:28:54]ProcessDocumentItem done err = 0, tmpTLVsize=282 [19:28:54]tlvbuf is 011DE4C0 [19:28:54]SAM_PROTO_ClearQueue [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 09 00 00 [19:28:54]Write to MH i2c: E2 08 00 09 0D 80 09 00 00 00 00 00 00 88 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 09 0D 00 90 00 8A [19:28:54]RAPDU: 90 00 [19:28:54]wFMCommunicate OK [19:28:54]SAM_PROTO_ClearQueue done [19:28:54]KKMCreateOFDPacket [19:28:54]OFDProtocolAddRootSTLVToBuf [19:28:54]FM_MakeSignedData [19:28:54]FM_MakeSignedData [19:28:54]SAM_PROTO_SignData [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 0D 01 02 [19:28:54]Write to MH i2c: E2 08 00 0A 0D 80 0D 01 02 00 00 00 00 90 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 0A 0D 00 90 00 8B [19:28:54]RAPDU: 90 00 [19:28:54]wFMCommunicate OK [19:28:54]wFMCommunicate request_size=255 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 76 5E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 [19:28:54]Write to MH i2c: E2 02 01 0B 0D 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 76 5E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 00 00 99 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 0B 0D 00 90 00 8C [19:28:54]RAPDU: 90 00 [19:28:54]wFMCommunicate OK [19:28:54]wFMCommunicate request_size=41 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A4 13 00 00 35 04 06 00 5C E6 71 8D 95 69 [19:28:54]Write to MH i2c: E2 2C 00 0C 0D 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A4 13 00 00 35 04 06 00 5C E6 71 8D 95 69 00 00 59 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 03 00 0C 0D 00 90 00 8D [19:28:54]RAPDU: 90 00 [19:28:54]wFMCommunicate OK [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 0D 03 02 [19:28:54]Write to MH i2c: E2 08 00 0D 0D 80 0D 03 02 00 00 00 00 95 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 0B 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 0B 00 0D 0D 00 40 CB B0 89 F6 A2 80 7E 90 00 70 [19:28:54]RAPDU: 40 CB B0 89 F6 A2 80 7E 90 00 [19:28:54]wFMCommunicate OK [19:28:54]SAM_PROTO_SignData done [19:28:54]FM_MakeSignedData done [19:28:54]CreateOFDProtocolMessage [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 11 00 00 [19:28:54]Write to MH i2c: E2 08 00 0E 0D 80 11 00 00 00 00 00 00 95 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 0E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 EA [19:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:28:54]wFMCommunicate OK [19:28:54]CreateOFDProtocolMessage done [19:28:54]OFDSenderStorePacket 5028 [19:28:54]StoreOFDPacket docnum=5028 [19:28:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 59 E6 26 01 21 BE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 76 5E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A4 13 00 00 35 04 06 00 5C E6 71 8D 95 69 40 CB B0 89 F6 A2 80 7E [19:28:54]CheckFolder [19:28:54]dirname=/storage/ofd_packets [19:28:54]CheckFolder done [19:28:54]ProducePacketName [19:28:54]name=ofd_packets/00005028 [19:28:54]NVStorageSaveData ofd_packets/00005028 [19:28:54]File name is /storage/ofd_packets/00005028 [19:28:54]Write 332 bytes [19:28:54]NVStorageSaveData done [19:28:54]OFDSenderStorePacket done [19:28:54]KKMCreateOFDPacket done [19:28:54]NVStorageSaveData kkm_last_timestamp [19:28:54]File name is /storage/kkm_last_timestamp [19:28:54]Write 4 bytes [19:28:54]NVStorageSaveData done [19:28:54]ExternCall_PrintAddStr [19:28:54]wPrintStart [19:28:54]Write to MH i2c: 01 00 00 0F 0D 1C [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 0F 0D 00 00 00 00 00 FF 0F 31 [19:28:54]RasterBufferAndPrint [19:28:54]line Счет N : (3)141021 [19:28:54]line ИНН: 02508201610067 [19:28:54]line Контрольно-Кассовый Чек [19:28:54]line ПРОДАЖА [19:28:54]line Товар: 2000036220012 [19:28:54]line Кофе Капучино XL(GABB TRADE) [19:28:54]line 1.000 * 130.00 [19:28:54]line = 130.00 [19:28:54]line НДС 12% НСП 1% [19:28:54]line > о реализуемом товаре [19:28:54]line ИТОГО: 130.00 [19:28:54]line НСП 1% : 1.15 [19:28:54]line НДС 12% : 13.80 [19:28:54]line Наличными: 0.00 [19:28:54]line Безнал.: 130.00 [19:28:54]line Место: АЗС № 135 "Партнер Нефть" [19:28:54]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:28:54]line СНО: Общий режим [19:28:54]line Чек 88 16.05.2024 19:28 [19:28:54]line Смена: 44 ФФД: 1.0 [19:28:54]line ЗНМ: 0300000237 [19:28:54]line РНМ: 0000000000154221 [19:28:54]line Версия ККМ: v1.0 [19:28:54]line Платежная система: Демир КИ Банк [19:28:54]line ФМ: 0000000000963259 [19:28:54]line ФД: 5028 [19:28:54]line ФПД: 102144817337705 [19:28:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T192854&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5028&fm=102144817337705&tin=02508201610067®Number=0000000000154221&sum=13000 [19:28:55]line 0 [19:28:55]OFD Sender: Processing packet 5028 [packets to send 4, broken 3] [19:28:55]ProducePacketName [19:28:55]name=ofd_packets/00005028 [19:28:55]OFD Sender: To server: pG, [19:28:55]CommunicateWithHost lk.salyk.kg:30040 [19:28:55]ConnectInit lk.salyk.kg [19:28:55]written 0, free lines is 4095 [19:28:55]Connected sock=10 [19:28:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 59 E6 26 01 21 BE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 76 5E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A4 13 00 00 35 04 06 00 5C E6 71 8D 95 69 40 CB B0 89 F6 A2 80 7E [19:28:55]Write to MH i2c: 01 00 00 3A 0D 47 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: 01 07 00 3A 0D 00 00 00 00 00 62 0C BC [19:28:55]RasterBufferAndPrint [19:28:55]line [19:28:55]line [19:28:55]line [19:28:55]line [19:28:55]line [19:28:55]written 0, free lines is 3174 [19:28:55]MH_Cut [19:28:55]Write to MH i2c: D1 01 00 41 0D 01 20 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: D1 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: D1 01 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: D1 01 00 41 0D 00 1F [19:28:55]Write to MH i2c: 01 00 00 42 0D 4F [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 C0 16 47 00 56 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A4 13 00 00 F4 03 04 00 39 0A 46 66 B6 04 01 00 00 08 DD 4A 22 C7 11 76 D2 [19:28:55]CommunicateWithHost err = 0 [19:28:55]CheckOFDResponse [19:28:55]1017 (14) - 77093643461234 [19:28:55]1041 (16) - 0000000000963259 [19:28:55]1040 (4) - 5028 [19:28:55]1012 (4) - 16.05.2024 13:29 [19:28:55]1206 (1) - 0 [19:28:55]OFD Sender: Remove packet 5028 [19:28:55]ProducePacketName [19:28:55]name=ofd_packets/00005028 [19:28:55]NVStorageDeleteData [19:28:56]OFD Sender: No OFD packet to send [19:28:56]*** Cut start [19:28:56]*** Partial cut [19:28:56]*** CUTSNS_PIN = 1 [19:28:56]*** CUTSNS_PIN = 0 [19:28:56]*** Brake cut motor [19:28:57]Read from MH i2c: 01 [19:28:57]MH_I2C_Read... [19:28:57]*** Stop cut motor [19:28:57]*** Cut end [19:28:57]Read from MH i2c: 01 07 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: 01 07 00 42 0D 00 00 00 00 00 FF 0F 64 [19:28:57]process_action close_receipt done [19:28:57]requested_data is exist [19:28:57]produce_requested_data [19:28:57]requested_item fm.sn is exist - process it [19:28:57]wFMCommunicate request_size=4 [19:28:57]MH_SAM_APDU [19:28:57]CAPDU: 80 11 00 00 [19:28:57]Write to MH i2c: E2 08 00 43 0D 80 11 00 00 00 00 00 00 CA [19:28:57]Write i2c OK [19:28:57]MH_I2C_Read... [19:28:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:57]Read from MH i2c: E2 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 17 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 17 00 43 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 1F [19:28:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:28:57]wFMCommunicate OK [19:28:57]requested_item fd.num is exist - process it [19:28:57]SAM_PROTO_GetFieldsCounters [19:28:57]wFMCommunicate request_size=4 [19:28:57]MH_SAM_APDU [19:28:57]CAPDU: 80 13 00 00 [19:28:57]Write to MH i2c: E2 08 00 44 0D 80 13 00 00 00 00 00 00 CD [19:28:57]Write i2c OK [19:28:57]MH_I2C_Read... [19:28:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:57]Read from MH i2c: E2 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 62 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 62 00 44 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A4 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 D1 [19:28:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A4 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:28:57]wFMCommunicate OK [19:28:57]SAM_PROTO_GetFieldsCounters done [19:28:57]requested_item shift.num is exist - process it [19:28:57]requested_item shift.opened is exist - process it [19:28:57]req_shift_opened [19:28:57]FM_GetShiftState [19:28:57]SAM_PROTO_GetShiftState [19:28:57]wFMCommunicate request_size=4 [19:28:57]MH_SAM_APDU [19:28:57]CAPDU: 80 13 01 00 [19:28:57]Write to MH i2c: E2 08 00 45 0D 80 13 01 00 00 00 00 00 CF [19:28:57]Write i2c OK [19:28:57]MH_I2C_Read... [19:28:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:57]Read from MH i2c: E2 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 0E 00 [19:28:57]MH_I2C_Read... [19:28:57]Read from MH i2c: E2 0E 00 45 0D 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 DB [19:28:57]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:28:57]wFMCommunicate OK [19:28:57]SAM_PROTO_GetShiftState done [19:28:57]FM_GetShiftState done [19:28:57]req_shift_opened done [19:28:57]requested_item shift.open_date is exist - process it [19:28:57]req_shift_open_date [19:28:57]req_shift_open_date done [19:28:57]produce_requested_data done [19:28:57]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5028,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:28:57]process_action_free close_receipt [19:28:57]json_value_free [19:28:57]json_value_free done [19:28:57]process_json_proto returns [19:28:57]Send response to host [19:28:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5028,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:28:57]free response buf [19:28:57]execute_script done [19:28:57]execute_script returns [19:28:57]free content buf [19:28:57]Sock 9.Close socket [19:28:57]Sock 9.Thread stoped [19:29:01]OFD Sender: No OFD packet to send [19:29:06]OFD Sender: No OFD packet to send [19:29:11]OFD Sender: No OFD packet to send [19:29:16]OFD Sender: No OFD packet to send [19:29:21]OFD Sender: No OFD packet to send [19:29:26]OFD Sender: No OFD packet to send [19:29:31]OFD Sender: No OFD packet to send [19:29:36]OFD Sender: No OFD packet to send [19:29:41]OFD Sender: No OFD packet to send [19:29:46]OFD Sender: No OFD packet to send [19:29:51]OFD Sender: No OFD packet to send [19:29:56]OFD Sender: No OFD packet to send [19:30:01]OFD Sender: No OFD packet to send [19:30:06]OFD Sender: No OFD packet to send [19:30:11]OFD Sender: No OFD packet to send [19:30:16]OFD Sender: No OFD packet to send [19:30:21]OFD Sender: No OFD packet to send [19:30:26]OFD Sender: No OFD packet to send [19:30:31]OFD Sender: No OFD packet to send [19:30:36]OFD Sender: No OFD packet to send [19:30:41]OFD Sender: No OFD packet to send [19:30:46]OFD Sender: No OFD packet to send [19:30:51]OFD Sender: No OFD packet to send [19:30:56]OFD Sender: No OFD packet to send [19:31:01]OFD Sender: No OFD packet to send [19:31:06]OFD Sender: No OFD packet to send [19:31:11]OFD Sender: No OFD packet to send [19:31:16]OFD Sender: No OFD packet to send [19:31:21]OFD Sender: No OFD packet to send [19:31:26]OFD Sender: No OFD packet to send [19:31:31]OFD Sender: No OFD packet to send [19:31:36]OFD Sender: No OFD packet to send [19:31:41]OFD Sender: No OFD packet to send [19:31:46]OFD Sender: No OFD packet to send [19:31:51]OFD Sender: No OFD packet to send [19:31:56]OFD Sender: No OFD packet to send [19:32:01]OFD Sender: No OFD packet to send [19:32:06]OFD Sender: No OFD packet to send [19:32:11]OFD Sender: No OFD packet to send [19:32:16]OFD Sender: No OFD packet to send [19:32:21]OFD Sender: No OFD packet to send [19:32:26]OFD Sender: No OFD packet to send [19:32:31]OFD Sender: No OFD packet to send [19:32:36]OFD Sender: No OFD packet to send [19:32:36]accept exits with 7 [19:32:36]New connection [19:32:36]New thread 3067252068 created [19:32:36]Thread 3067108708 joined [19:32:36]Waiting for new connection... [19:32:36] Sock 7.Parse request [19:32:36]Sock 7.Check first char [19:32:36]Sock 7.First char is OK [19:32:36]request: POST /json_proto HTTP/1.0 [19:32:36]Method: POST [19:32:36]URL: /json_proto [19:32:36]Method is POST - this is cgi request [19:32:36]url: /json_proto [19:32:36]query_string will be loaded in cgi processing [19:32:36]execute_cgi json_proto POST (null) [19:32:36]execute_cgi path=json_proto method=POST [19:32:36]POST find Content-Length [19:32:36]Host: 172.17.44.4:8080 [19:32:36]Content-Length: 914 [19:32:36]Content-Type: application/json [19:32:36] [19:32:36]POST finish read [19:32:36]Found Content-Length = 914 [19:32:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141022", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:36]execute_script... [19:32: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)141022", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:36]POST & json_proto [19:32:36]process_json_proto [19:32:36]json parsed OK: [19:32:36]protocol is kg_v1.0 [19:32:36]action value=close_receipt [19:32:36]process_action close_receipt [19:32:36]cmd_close_receipt [19:32:36]MH_GetDate [19:32:36]Write to MH i2c: F0 00 00 46 0D 42 [19:32:36]Write i2c OK [19:32:36]MH_I2C_Read... [19:32:36]Read from MH i2c: F0 [19:32:36]MH_I2C_Read... [19:32:36]Read from MH i2c: F0 09 00 [19:32:36]MH_I2C_Read... [19:32:36]Read from MH i2c: F0 09 00 46 0D 00 56 5F 46 66 6C E9 28 66 8F [19:32:36]GetLastDocTimeStamp 1715887734 [19:32:36]current date 1715887958 [19:32:36]FM_GetShiftState [19:32:36]SAM_PROTO_GetShiftState [19:32:36]wFMCommunicate request_size=4 [19:32:36]MH_SAM_APDU [19:32:36]CAPDU: 80 13 01 00 [19:32:36]Write to MH i2c: E2 08 00 47 0D 80 13 01 00 00 00 00 00 D1 [19:32:36]Write i2c OK [19:32:36]MH_I2C_Read... [19:32:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:37]Read from MH i2c: E2 [19:32:37]MH_I2C_Read... [19:32:37]Read from MH i2c: E2 0E 00 [19:32:37]MH_I2C_Read... [19:32:37]Read from MH i2c: E2 0E 00 47 0D 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 DD [19:32:37]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:32:37]wFMCommunicate OK [19:32:37]SAM_PROTO_GetShiftState done [19:32:37]FM_GetShiftState done [19:32:37]opened in 1715818246 [19:32:37]opened+sec_in_day 1715904646 [19:32:37]quantity*price = 12500 [19:32:37]sum+1 = 12501 [19:32:37]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.26 НДС 12% : 27.07 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 89 16.05.2024 19:32 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5029 ФПД: 102313221818415 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193238&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5029&fm=102313221818415&tin=02508201610067®Number=0000000000154221&sum=25500 0 [19:32:38]StoreToDocumentArchive [19:32:38]shift 44 fd 5029 [19:32:38]save to /storage/0044/doc_00005029 [19:32:38]save last doc name /storage/0044/doc_00005029 to /storage/kkm_last_doc_name [19:32:38]save OK [19:32:38]Clear old archive folders... [19:32:38]ProcessDocumentItem done err = 0, tmpTLVsize=396 [19:32:38]tlvbuf is B6F0A520 [19:32:38]SAM_PROTO_ClearQueue [19:32:38]wFMCommunicate request_size=4 [19:32:38]MH_SAM_APDU [19:32:38]CAPDU: 80 09 00 00 [19:32:38]Write to MH i2c: E2 08 00 54 0D 80 09 00 00 00 00 00 00 D3 [19:32:38]Write i2c OK [19:32:38]MH_I2C_Read... [19:32:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:38]Read from MH i2c: E2 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 03 00 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 03 00 54 0D 00 90 00 D5 [19:32:38]RAPDU: 90 00 [19:32:38]wFMCommunicate OK [19:32:38]SAM_PROTO_ClearQueue done [19:32:38]KKMCreateOFDPacket [19:32:38]OFDProtocolAddRootSTLVToBuf [19:32:38]FM_MakeSignedData [19:32:38]FM_MakeSignedData [19:32:38]SAM_PROTO_SignData [19:32:38]wFMCommunicate request_size=4 [19:32:38]MH_SAM_APDU [19:32:38]CAPDU: 80 0D 01 02 [19:32:38]Write to MH i2c: E2 08 00 55 0D 80 0D 01 02 00 00 00 00 DB [19:32:38]Write i2c OK [19:32:38]MH_I2C_Read... [19:32:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:38]Read from MH i2c: E2 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 03 00 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 03 00 55 0D 00 90 00 D6 [19:32:38]RAPDU: 90 00 [19:32:38]wFMCommunicate OK [19:32:38]wFMCommunicate request_size=255 [19:32:38]MH_SAM_APDU [19:32:38]CAPDU: 80 0D 02 02 FA 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 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 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 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 9C 63 00 00 00 00 EB 03 26 00 EF [19:32:38]Write to MH i2c: E2 02 01 56 0D 80 0D 02 02 FA 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 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 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 00 00 EE [19:32:38]Write i2c OK [19:32:38]MH_I2C_Read... [19:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:38]Read from MH i2c: E2 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 03 00 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 03 00 56 0D 00 90 00 D7 [19:32:38]RAPDU: 90 00 [19:32:38]wFMCommunicate OK [19:32:38]wFMCommunicate request_size=155 [19:32:38]MH_SAM_APDU [19:32:38]CAPDU: 80 0D 02 02 96 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 56 5F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A5 13 00 00 35 04 06 00 5D 0D A7 3E 08 2F [19:32:38]Write to MH i2c: E2 9E 00 57 0D 80 0D 02 02 96 00 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 56 5F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A5 13 00 00 35 04 06 00 5D 0D A7 3E 08 2F 00 00 DE [19:32:38]Write i2c OK [19:32:38]MH_I2C_Read... [19:32:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:38]Read from MH i2c: E2 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 03 00 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 03 00 57 0D 00 90 00 D8 [19:32:38]RAPDU: 90 00 [19:32:38]wFMCommunicate OK [19:32:38]wFMCommunicate request_size=4 [19:32:38]MH_SAM_APDU [19:32:38]CAPDU: 80 0D 03 02 [19:32:38]Write to MH i2c: E2 08 00 58 0D 80 0D 03 02 00 00 00 00 E0 [19:32:38]Write i2c OK [19:32:38]MH_I2C_Read... [19:32:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:38]Read from MH i2c: E2 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 0B 00 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 0B 00 58 0D 00 C8 7C 1A DA 2F 27 17 D7 90 00 5D [19:32:38]RAPDU: C8 7C 1A DA 2F 27 17 D7 90 00 [19:32:38]wFMCommunicate OK [19:32:38]SAM_PROTO_SignData done [19:32:38]FM_MakeSignedData done [19:32:38]CreateOFDProtocolMessage [19:32:38]wFMCommunicate request_size=4 [19:32:38]MH_SAM_APDU [19:32:38]CAPDU: 80 11 00 00 [19:32:38]Write to MH i2c: E2 08 00 59 0D 80 11 00 00 00 00 00 00 E0 [19:32:38]Write i2c OK [19:32:38]MH_I2C_Read... [19:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:38]Read from MH i2c: E2 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 17 00 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: E2 17 00 59 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 35 [19:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:32:38]wFMCommunicate OK [19:32:38]CreateOFDProtocolMessage done [19:32:38]OFDSenderStorePacket 5029 [19:32:38]StoreOFDPacket docnum=5029 [19:32:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 A0 01 00 00 5E 21 98 01 F6 C9 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 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 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 56 5F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A5 13 00 00 35 04 06 00 5D 0D A7 3E 08 2F C8 7C 1A DA 2F 27 17 D7 [19:32:38]CheckFolder [19:32:38]dirname=/storage/ofd_packets [19:32:38]CheckFolder done [19:32:38]ProducePacketName [19:32:38]name=ofd_packets/00005029 [19:32:38]NVStorageSaveData ofd_packets/00005029 [19:32:38]File name is /storage/ofd_packets/00005029 [19:32:38]Write 446 bytes [19:32:38]NVStorageSaveData done [19:32:38]OFDSenderStorePacket done [19:32:38]KKMCreateOFDPacket done [19:32:38]NVStorageSaveData kkm_last_timestamp [19:32:38]File name is /storage/kkm_last_timestamp [19:32:38]Write 4 bytes [19:32:38]NVStorageSaveData done [19:32:38]ExternCall_PrintAddStr [19:32:38]wPrintStart [19:32:38]Write to MH i2c: 01 00 00 5A 0D 67 [19:32:38]Write i2c OK [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: 01 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: 01 07 00 [19:32:38]MH_I2C_Read... [19:32:38]Read from MH i2c: 01 07 00 5A 0D 00 00 00 00 00 FF 0F 7C [19:32:38]RasterBufferAndPrint [19:32:38]line Счет N : (3)141022 [19:32:38]line ИНН: 02508201610067 [19:32:38]line Контрольно-Кассовый Чек [19:32:38]line ПРОДАЖА [19:32:38]line Товар: 2000036190018 [19:32:38]line Кофе Американо XL(GABB TRADE) [19:32:38]line 1.000 * 125.00 [19:32:38]line = 125.00 [19:32:38]line НДС 12% НСП 1% [19:32:39]line > о реализуемом товаре [19:32:39]line Товар: 2000036220012 [19:32:39]line Кофе Капучино XL(GABB TRADE) [19:32:39]line 1.000 * 130.00 [19:32:39]line = 130.00 [19:32:39]line НДС 12% НСП 1% [19:32:39]line > о реализуемом товаре [19:32:39]line ИТОГО: 255.00 [19:32:39]line НСП 1% : 2.26 [19:32:39]line НДС 12% : 27.07 [19:32:39]line Наличными: 255.00 [19:32:39]line Безнал.: 0.00 [19:32:39]line Место: АЗС № 135 "Партнер Нефть" [19:32:39]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:32:39]line СНО: Общий режим [19:32:39]line Чек 89 16.05.2024 19:32 [19:32:39]line Смена: 44 ФФД: 1.0 [19:32:39]line ЗНМ: 0300000237 [19:32:39]line РНМ: 0000000000154221 [19:32:39]line Версия ККМ: v1.0 [19:32:39]line ФМ: 0000000000963259 [19:32:39]line ФД: 5029 [19:32:39]line ФПД: 102313221818415 [19:32:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193238&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5029&fm=102313221818415&tin=02508201610067®Number=0000000000154221&sum=25500 [19:32:39]line 0 [19:32:39]OFD Sender: Processing packet 5029 [packets to send 4, broken 3] [19:32:39]ProducePacketName [19:32:39]name=ofd_packets/00005029 [19:32:39]OFD Sender: To server: pG, [19:32:39]CommunicateWithHost lk.salyk.kg:30040 [19:32:39]ConnectInit lk.salyk.kg [19:32:39]written 0, free lines is 4095 [19:32:39]Connected sock=10 [19:32:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 A0 01 00 00 5E 21 98 01 F6 C9 5A 03 01 00 03 00 8C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 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 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 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 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 93 0A 00 00 00 00 07 04 06 00 9C 63 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 56 5F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A5 13 00 00 35 04 06 00 5D 0D A7 3E 08 2F C8 7C 1A DA 2F 27 17 D7 [19:32:39]Write to MH i2c: 01 00 00 8A 0D 97 [19:32:39]Write i2c OK [19:32:39]MH_I2C_Read... [19:32:39]Read from MH i2c: 01 [19:32:39]MH_I2C_Read... [19:32:39]Read from MH i2c: 01 07 00 [19:32:39]MH_I2C_Read... [19:32:39]Read from MH i2c: 01 07 00 8A 0D 00 00 00 00 00 04 0C AE [19:32:39]RasterBufferAndPrint [19:32:39]line [19:32:39]line [19:32:39]line [19:32:39]line [19:32:39]line [19:32:39]written 0, free lines is 3079 [19:32:39]MH_Cut [19:32:39]Write to MH i2c: D1 01 00 91 0D 01 70 [19:32:39]Write i2c OK [19:32:39]MH_I2C_Read... [19:32:39]Read from MH i2c: D1 [19:32:39]MH_I2C_Read... [19:32:39]Read from MH i2c: D1 01 00 [19:32:39]MH_I2C_Read... [19:32:39]Read from MH i2c: D1 01 00 91 0D 00 6F [19:32:39]Write to MH i2c: 01 00 00 92 0D 9F [19:32:39]Write i2c OK [19:32:39]MH_I2C_Read... [19:32:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 1F B4 47 00 03 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 33 32 35 39 10 04 04 00 A5 13 00 00 F4 03 04 00 19 0B 46 66 B6 04 01 00 00 7A 71 21 AC EB 07 4E 9E [19:32:39]CommunicateWithHost err = 0 [19:32:39]CheckOFDResponse [19:32:39]1017 (14) - 77093643461234 [19:32:39]1041 (16) - 0000000000963259 [19:32:39]1040 (4) - 5029 [19:32:39]1012 (4) - 16.05.2024 13:33 [19:32:39]1206 (1) - 0 [19:32:39]OFD Sender: Remove packet 5029 [19:32:39]ProducePacketName [19:32:39]name=ofd_packets/00005029 [19:32:39]NVStorageDeleteData [19:32:40]OFD Sender: No OFD packet to send [19:32:40]*** Cut start [19:32:40]*** Partial cut [19:32:40]*** CUTSNS_PIN = 1 [19:32:41]*** CUTSNS_PIN = 0 [19:32:41]*** Brake cut motor [19:32:41]Read from MH i2c: 01 [19:32:41]MH_I2C_Read... [19:32:41]*** Stop cut motor [19:32:41]*** Cut end [19:32:41]Read from MH i2c: 01 07 00 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: 01 07 00 92 0D 00 00 00 00 00 FF 0F B4 [19:32:41]process_action close_receipt done [19:32:41]requested_data is exist [19:32:41]produce_requested_data [19:32:41]requested_item fm.sn is exist - process it [19:32:41]wFMCommunicate request_size=4 [19:32:41]MH_SAM_APDU [19:32:41]CAPDU: 80 11 00 00 [19:32:41]Write to MH i2c: E2 08 00 93 0D 80 11 00 00 00 00 00 00 1A [19:32:41]Write i2c OK [19:32:41]MH_I2C_Read... [19:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:41]Read from MH i2c: E2 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 17 00 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 17 00 93 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 6F [19:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:32:41]wFMCommunicate OK [19:32:41]requested_item fd.num is exist - process it [19:32:41]SAM_PROTO_GetFieldsCounters [19:32:41]wFMCommunicate request_size=4 [19:32:41]MH_SAM_APDU [19:32:41]CAPDU: 80 13 00 00 [19:32:41]Write to MH i2c: E2 08 00 94 0D 80 13 00 00 00 00 00 00 1D [19:32:41]Write i2c OK [19:32:41]MH_I2C_Read... [19:32:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:41]Read from MH i2c: E2 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 62 00 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 62 00 94 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A5 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [19:32:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A5 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:32:41]wFMCommunicate OK [19:32:41]SAM_PROTO_GetFieldsCounters done [19:32:41]requested_item shift.num is exist - process it [19:32:41]requested_item shift.opened is exist - process it [19:32:41]req_shift_opened [19:32:41]FM_GetShiftState [19:32:41]SAM_PROTO_GetShiftState [19:32:41]wFMCommunicate request_size=4 [19:32:41]MH_SAM_APDU [19:32:41]CAPDU: 80 13 01 00 [19:32:41]Write to MH i2c: E2 08 00 95 0D 80 13 01 00 00 00 00 00 1F [19:32:41]Write i2c OK [19:32:41]MH_I2C_Read... [19:32:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:41]Read from MH i2c: E2 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 0E 00 [19:32:41]MH_I2C_Read... [19:32:41]Read from MH i2c: E2 0E 00 95 0D 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 2B [19:32:41]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:32:41]wFMCommunicate OK [19:32:41]SAM_PROTO_GetShiftState done [19:32:41]FM_GetShiftState done [19:32:41]req_shift_opened done [19:32:41]requested_item shift.open_date is exist - process it [19:32:41]req_shift_open_date [19:32:41]req_shift_open_date done [19:32:41]produce_requested_data done [19:32:41]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5029,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:32:41]process_action_free close_receipt [19:32:41]json_value_free [19:32:41]json_value_free done [19:32:41]process_json_proto returns [19:32:41]Send response to host [19:32:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5029,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:32:41]free response buf [19:32:41]execute_script done [19:32:41]execute_script returns [19:32:41]free content buf [19:32:41]Sock 7.Close socket [19:32:41]Sock 7.Thread stoped [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:32]accept exits with 9 [19:34:32]New connection [19:34:32]New thread 3067108708 created [19:34:32]Thread 3067252068 joined [19:34:32]Waiting for new connection... [19:34:32] Sock 9.Parse request [19:34:32]Sock 9.Check first char [19:34:32]Sock 9.First char is OK [19:34:32]request: POST /json_proto HTTP/1.0 [19:34:32]Method: POST [19:34:32]URL: /json_proto [19:34:32]Method is POST - this is cgi request [19:34:32]url: /json_proto [19:34:32]query_string will be loaded in cgi processing [19:34:32]execute_cgi json_proto POST (null) [19:34:32]execute_cgi path=json_proto method=POST [19:34:32]POST find Content-Length [19:34:32]Host: 172.17.44.4:8080 [19:34:32]Content-Length: 785 [19:34:32]Content-Type: application/json [19:34:32] [19:34:32]POST finish read [19:34:32]Found Content-Length = 785 [19:34:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:32]execute_script... [19:34:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993109", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710124130", "name": "SU-92", "price" : 67.80, "quantity" : 17.700, "sum" : 1200.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1200.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:32]POST & json_proto [19:34:32]process_json_proto [19:34:32]json parsed OK: [19:34:32]protocol is kg_v1.0 [19:34:32]action value=close_receipt [19:34:32]process_action close_receipt [19:34:32]cmd_close_receipt [19:34:32]MH_GetDate [19:34:32]Write to MH i2c: F0 00 00 96 0D 92 [19:34:32]Write i2c OK [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: F0 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: F0 09 00 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: F0 09 00 96 0D 00 CA 5F 46 66 6C E9 28 66 53 [19:34:32]GetLastDocTimeStamp 1715887958 [19:34:32]current date 1715888074 [19:34:32]FM_GetShiftState [19:34:32]SAM_PROTO_GetShiftState [19:34:32]wFMCommunicate request_size=4 [19:34:32]MH_SAM_APDU [19:34:32]CAPDU: 80 13 01 00 [19:34:32]Write to MH i2c: E2 08 00 97 0D 80 13 01 00 00 00 00 00 21 [19:34:32]Write i2c OK [19:34:32]MH_I2C_Read... [19:34:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:32]Read from MH i2c: E2 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: E2 0E 00 [19:34:32]MH_I2C_Read... [19:34:32]Read from MH i2c: E2 0E 00 97 0D 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 2D [19:34:32]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:34:32]wFMCommunicate OK [19:34:32]SAM_PROTO_GetShiftState done [19:34:32]FM_GetShiftState done [19:34:32]opened in 1715818246 [19:34:32]opened+sec_in_day 1715904646 [19:34:32]quantity*price = 120006 [19:34:32]sum+1 = 120007 [19:34:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.06 НСП 1% : 10.62 НДС 12% : 127.44 Наличными: 0.00 Безнал.: 1200.06 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 90 16.05.2024 19:34 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5030 ФПД: 90943171345240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193434&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5030&fm=90943171345240&tin=02508201610067®Number=0000000000154221&sum=120006 [19:34:34]StoreToDocumentArchive [19:34:34]shift 44 fd 5030 [19:34:34]save to /storage/0044/doc_00005030 [19:34:34]save last doc name /storage/0044/doc_00005030 to /storage/kkm_last_doc_name [19:34:34]save OK [19:34:34]Clear old archive folders... [19:34:34]ProcessDocumentItem done err = 0, tmpTLVsize=244 [19:34:34]tlvbuf is 01210B20 [19:34:34]SAM_PROTO_ClearQueue [19:34:34]wFMCommunicate request_size=4 [19:34:34]MH_SAM_APDU [19:34:34]CAPDU: 80 09 00 00 [19:34:34]Write to MH i2c: E2 08 00 A4 0D 80 09 00 00 00 00 00 00 23 [19:34:34]Write i2c OK [19:34:34]MH_I2C_Read... [19:34:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:34]Read from MH i2c: E2 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 03 00 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 03 00 A4 0D 00 90 00 25 [19:34:34]RAPDU: 90 00 [19:34:34]wFMCommunicate OK [19:34:34]SAM_PROTO_ClearQueue done [19:34:34]KKMCreateOFDPacket [19:34:34]OFDProtocolAddRootSTLVToBuf [19:34:34]FM_MakeSignedData [19:34:34]FM_MakeSignedData [19:34:34]SAM_PROTO_SignData [19:34:34]wFMCommunicate request_size=4 [19:34:34]MH_SAM_APDU [19:34:34]CAPDU: 80 0D 01 02 [19:34:34]Write to MH i2c: E2 08 00 A5 0D 80 0D 01 02 00 00 00 00 2B [19:34:34]Write i2c OK [19:34:34]MH_I2C_Read... [19:34:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:34]Read from MH i2c: E2 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 03 00 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 03 00 A5 0D 00 90 00 26 [19:34:34]RAPDU: 90 00 [19:34:34]wFMCommunicate OK [19:34:34]wFMCommunicate request_size=253 [19:34:34]MH_SAM_APDU [19:34:34]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CA 5F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A6 13 00 00 35 04 06 00 52 B6 5B 6C 3B 58 [19:34:34]Write to MH i2c: E2 00 01 A6 0D 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CA 5F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A6 13 00 00 35 04 06 00 52 B6 5B 6C 3B 58 00 00 44 [19:34:34]Write i2c OK [19:34:34]MH_I2C_Read... [19:34:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:34]Read from MH i2c: E2 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 03 00 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 03 00 A6 0D 00 90 00 27 [19:34:34]RAPDU: 90 00 [19:34:34]wFMCommunicate OK [19:34:34]wFMCommunicate request_size=4 [19:34:34]MH_SAM_APDU [19:34:34]CAPDU: 80 0D 03 02 [19:34:34]Write to MH i2c: E2 08 00 A7 0D 80 0D 03 02 00 00 00 00 2F [19:34:34]Write i2c OK [19:34:34]MH_I2C_Read... [19:34:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:34]Read from MH i2c: E2 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 0B 00 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 0B 00 A7 0D 00 37 09 B5 90 96 32 8C AA 90 00 B3 [19:34:34]RAPDU: 37 09 B5 90 96 32 8C AA 90 00 [19:34:34]wFMCommunicate OK [19:34:34]SAM_PROTO_SignData done [19:34:34]FM_MakeSignedData done [19:34:34]CreateOFDProtocolMessage [19:34:34]wFMCommunicate request_size=4 [19:34:34]MH_SAM_APDU [19:34:34]CAPDU: 80 11 00 00 [19:34:34]Write to MH i2c: E2 08 00 A8 0D 80 11 00 00 00 00 00 00 2F [19:34:34]Write i2c OK [19:34:34]MH_I2C_Read... [19:34:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:34]Read from MH i2c: E2 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 17 00 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: E2 17 00 A8 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 84 [19:34:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:34:34]wFMCommunicate OK [19:34:34]CreateOFDProtocolMessage done [19:34:34]OFDSenderStorePacket 5030 [19:34:34]StoreOFDPacket docnum=5030 [19:34:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 08 01 00 00 DF 57 00 01 43 DE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CA 5F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A6 13 00 00 35 04 06 00 52 B6 5B 6C 3B 58 37 09 B5 90 96 32 8C AA [19:34:34]CheckFolder [19:34:34]dirname=/storage/ofd_packets [19:34:34]CheckFolder done [19:34:34]ProducePacketName [19:34:34]name=ofd_packets/00005030 [19:34:34]NVStorageSaveData ofd_packets/00005030 [19:34:34]File name is /storage/ofd_packets/00005030 [19:34:34]Write 294 bytes [19:34:34]NVStorageSaveData done [19:34:34]OFDSenderStorePacket done [19:34:34]KKMCreateOFDPacket done [19:34:34]NVStorageSaveData kkm_last_timestamp [19:34:34]File name is /storage/kkm_last_timestamp [19:34:34]Write 4 bytes [19:34:34]NVStorageSaveData done [19:34:34]ExternCall_PrintAddStr [19:34:34]wPrintStart [19:34:34]Write to MH i2c: 01 00 00 A9 0D B6 [19:34:34]Write i2c OK [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: 01 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: 01 07 00 [19:34:34]MH_I2C_Read... [19:34:34]Read from MH i2c: 01 07 00 A9 0D 00 00 00 00 00 FF 0F CB [19:34:34]RasterBufferAndPrint [19:34:34]line Счет N : (1)1993109 [19:34:34]line ИНН: 02508201610067 [19:34:34]line Контрольно-Кассовый Чек [19:34:34]line ПРОДАЖА [19:34:34]line ТРК (МРК, ГНК) : 64 [19:34:34]line Товар: 2710124130 [19:34:34]line SU-92 [19:34:34]line 17.700 * 67.80 [19:34:34]line = 1200.06 [19:34:34]line НДС 12% НСП 1% [19:34:34]line > о реализуемом товаре [19:34:34]line ИТОГО: 1200.06 [19:34:34]line НСП 1% : 10.62 [19:34:34]line НДС 12% : 127.44 [19:34:34]line Наличными: 0.00 [19:34:34]line Безнал.: 1200.06 [19:34:34]line Место: АЗС № 135 "Партнер Нефть" [19:34:34]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:34:34]line СНО: Общий режим [19:34:34]line Чек 90 16.05.2024 19:34 [19:34:34]line Смена: 44 ФФД: 1.0 [19:34:34]line ЗНМ: 0300000237 [19:34:34]line РНМ: 0000000000154221 [19:34:34]line Версия ККМ: v1.0 [19:34:34]line Платежная система: O! деньги [19:34:34]line ФМ: 0000000000963259 [19:34:34]line ФД: 5030 [19:34:34]line ФПД: 90943171345240 [19:34:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193434&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5030&fm=90943171345240&tin=02508201610067®Number=0000000000154221&sum=120006 [19:34:34]OFD Sender: Processing packet 5030 [packets to send 4, broken 3] [19:34:34]ProducePacketName [19:34:34]name=ofd_packets/00005030 [19:34:34]OFD Sender: To server: pG, [19:34:34]CommunicateWithHost lk.salyk.kg:30040 [19:34:34]ConnectInit lk.salyk.kg [19:34:34]written 0, free lines is 4095 [19:34:35]Connected sock=10 [19:34:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 08 01 00 00 DF 57 00 01 43 DE 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 24 45 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 C6 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 31 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 CA 5F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A6 13 00 00 35 04 06 00 52 B6 5B 6C 3B 58 37 09 B5 90 96 32 8C AA [19:34:35]Write to MH i2c: 01 00 00 D3 0D E0 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: 01 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: 01 07 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: 01 07 00 D3 0D 00 00 00 00 00 88 0C 7B [19:34:35]RasterBufferAndPrint [19:34:35]line [19:34:35]line [19:34:35]line [19:34:35]line [19:34:35]line [19:34:35]written 0, free lines is 3211 [19:34:35]MH_Cut [19:34:35]Write to MH i2c: D1 01 00 DA 0D 01 B9 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: D1 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: D1 01 00 [19:34:35]MH_I2C_Read... [19:34:35]Read from MH i2c: D1 01 00 DA 0D 00 B8 [19:34:35]Write to MH i2c: 01 00 00 DB 0D E8 [19:34:35]Write i2c OK [19:34:35]MH_I2C_Read... [19:34:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 12 2A 47 00 6A F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A6 13 00 00 F4 03 04 00 8D 0B 46 66 B6 04 01 00 00 D1 C1 76 1A 4B 0E 87 BF [19:34:35]CommunicateWithHost err = 0 [19:34:35]CheckOFDResponse [19:34:35]1017 (14) - 77093643461234 [19:34:35]1041 (16) - 0000000000963259 [19:34:35]1040 (4) - 5030 [19:34:35]1012 (4) - 16.05.2024 13:35 [19:34:35]1206 (1) - 0 [19:34:35]OFD Sender: Remove packet 5030 [19:34:35]ProducePacketName [19:34:35]name=ofd_packets/00005030 [19:34:35]NVStorageDeleteData [19:34:35]OFD Sender: No OFD packet to send [19:34:36]*** Cut start [19:34:36]*** Partial cut [19:34:36]*** CUTSNS_PIN = 1 [19:34:36]*** CUTSNS_PIN = 0 [19:34:36]*** Brake cut motor [19:34:37]Read from MH i2c: 01 [19:34:37]MH_I2C_Read... [19:34:37]*** Stop cut motor [19:34:37]*** Cut end [19:34:37]Read from MH i2c: 01 07 00 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: 01 07 00 DB 0D 00 00 00 00 00 FF 0F FD [19:34:37]process_action close_receipt done [19:34:37]requested_data is exist [19:34:37]produce_requested_data [19:34:37]requested_item fm.sn is exist - process it [19:34:37]wFMCommunicate request_size=4 [19:34:37]MH_SAM_APDU [19:34:37]CAPDU: 80 11 00 00 [19:34:37]Write to MH i2c: E2 08 00 DC 0D 80 11 00 00 00 00 00 00 63 [19:34:37]Write i2c OK [19:34:37]MH_I2C_Read... [19:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:37]Read from MH i2c: E2 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: E2 17 00 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: E2 17 00 DC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 B8 [19:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:34:37]wFMCommunicate OK [19:34:37]requested_item fd.num is exist - process it [19:34:37]SAM_PROTO_GetFieldsCounters [19:34:37]wFMCommunicate request_size=4 [19:34:37]MH_SAM_APDU [19:34:37]CAPDU: 80 13 00 00 [19:34:37]Write to MH i2c: E2 08 00 DD 0D 80 13 00 00 00 00 00 00 66 [19:34:37]Write i2c OK [19:34:37]MH_I2C_Read... [19:34:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:37]Read from MH i2c: E2 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: E2 62 00 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: E2 62 00 DD 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A6 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 72 [19:34:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A6 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:37]wFMCommunicate OK [19:34:37]SAM_PROTO_GetFieldsCounters done [19:34:37]requested_item shift.num is exist - process it [19:34:37]requested_item shift.opened is exist - process it [19:34:37]req_shift_opened [19:34:37]FM_GetShiftState [19:34:37]SAM_PROTO_GetShiftState [19:34:37]wFMCommunicate request_size=4 [19:34:37]MH_SAM_APDU [19:34:37]CAPDU: 80 13 01 00 [19:34:37]Write to MH i2c: E2 08 00 DE 0D 80 13 01 00 00 00 00 00 68 [19:34:37]Write i2c OK [19:34:37]MH_I2C_Read... [19:34:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:37]Read from MH i2c: E2 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: E2 0E 00 [19:34:37]MH_I2C_Read... [19:34:37]Read from MH i2c: E2 0E 00 DE 0D 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 74 [19:34:37]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:34:37]wFMCommunicate OK [19:34:37]SAM_PROTO_GetShiftState done [19:34:37]FM_GetShiftState done [19:34:37]req_shift_opened done [19:34:37]requested_item shift.open_date is exist - process it [19:34:37]req_shift_open_date [19:34:37]req_shift_open_date done [19:34:37]produce_requested_data done [19:34:37]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5030,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:34:37]process_action_free close_receipt [19:34:37]json_value_free [19:34:37]json_value_free done [19:34:37]process_json_proto returns [19:34:37]Send response to host [19:34:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5030,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:34:37]free response buf [19:34:37]execute_script done [19:34:37]execute_script returns [19:34:37]free content buf [19:34:37]Sock 9.Close socket [19:34:37]Sock 9.Thread stoped [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:15]OFD Sender: No OFD packet to send [19:36:20]OFD Sender: No OFD packet to send [19:36:25]OFD Sender: No OFD packet to send [19:36:30]OFD Sender: No OFD packet to send [19:36:35]OFD Sender: No OFD packet to send [19:36:40]OFD Sender: No OFD packet to send [19:36:45]OFD Sender: No OFD packet to send [19:36:50]OFD Sender: No OFD packet to send [19:36:56]OFD Sender: No OFD packet to send [19:37:01]OFD Sender: No OFD packet to send [19:37:06]OFD Sender: No OFD packet to send [19:37:11]OFD Sender: No OFD packet to send [19:37:16]OFD Sender: No OFD packet to send [19:37:21]OFD Sender: No OFD packet to send [19:37:26]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:02]accept exits with 7 [19:38:02]New connection [19:38:02]New thread 3067252068 created [19:38:02]Thread 3067108708 joined [19:38:02]Waiting for new connection... [19:38:02] Sock 7.Parse request [19:38:02]Sock 7.Check first char [19:38:02]Sock 7.First char is OK [19:38:02]request: POST /json_proto HTTP/1.0 [19:38:02]Method: POST [19:38:02]URL: /json_proto [19:38:02]Method is POST - this is cgi request [19:38:02]url: /json_proto [19:38:02]query_string will be loaded in cgi processing [19:38:02]execute_cgi json_proto POST (null) [19:38:02]execute_cgi path=json_proto method=POST [19:38:02]POST find Content-Length [19:38:02]Host: 172.17.44.4:8080 [19:38:02]Content-Length: 665 [19:38:02]Content-Type: application/json [19:38:02] [19:38:02]POST finish read [19:38:02]Found Content-Length = 665 [19:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141023", "tax_sys" : 0, "items" : [ { "code": "4680037724504", "name": "\u0410\u0440\u043E\u043C SMarket SM 1050 \u0433\u0440\u0430\u043D\u0443\u043B\u044B \u043A\u043E\u0444\u0435", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:02]execute_script... [19:38: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)141023", "tax_sys" : 0, "items" : [ { "code": "4680037724504", "name": "\u0410\u0440\u043E\u043C SMarket SM 1050 \u0433\u0440\u0430\u043D\u0443\u043B\u044B \u043A\u043E\u0444\u0435", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:02]POST & json_proto [19:38:02]process_json_proto [19:38:02]json parsed OK: [19:38:02]protocol is kg_v1.0 [19:38:02]action value=close_receipt [19:38:02]process_action close_receipt [19:38:02]cmd_close_receipt [19:38:02]MH_GetDate [19:38:02]Write to MH i2c: F0 00 00 DF 0D DB [19:38:02]Write i2c OK [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: F0 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: F0 09 00 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: F0 09 00 DF 0D 00 9C 60 46 66 6C E9 28 66 6F [19:38:02]GetLastDocTimeStamp 1715888074 [19:38:02]current date 1715888284 [19:38:02]FM_GetShiftState [19:38:02]SAM_PROTO_GetShiftState [19:38:02]wFMCommunicate request_size=4 [19:38:02]MH_SAM_APDU [19:38:02]CAPDU: 80 13 01 00 [19:38:02]Write to MH i2c: E2 08 00 E0 0D 80 13 01 00 00 00 00 00 6A [19:38:02]Write i2c OK [19:38:02]MH_I2C_Read... [19:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:02]Read from MH i2c: E2 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 0E 00 [19:38:02]MH_I2C_Read... [19:38:02]Read from MH i2c: E2 0E 00 E0 0D 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 76 [19:38:02]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:38:02]wFMCommunicate OK [19:38:02]SAM_PROTO_GetShiftState done [19:38:02]FM_GetShiftState done [19:38:02]opened in 1715818246 [19:38:02]opened+sec_in_day 1715904646 [19:38:02]quantity*price = 12000 [19:38:02]sum+1 = 12001 [19:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 91 16.05.2024 19:38 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5031 ФПД: 157844709882306 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193804&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5031&fm=157844709882306&tin=02508201610067®Number=0000000000154221&sum=12000 0 [19:38:04]StoreToDocumentArchive [19:38:04]shift 44 fd 5031 [19:38:04]save to /storage/0044/doc_00005031 [19:38:04]save last doc name /storage/0044/doc_00005031 to /storage/kkm_last_doc_name [19:38:04]save OK [19:38:04]Clear old archive folders... [19:38:04]ProcessDocumentItem done err = 0, tmpTLVsize=290 [19:38:04]tlvbuf is 0115B920 [19:38:04]SAM_PROTO_ClearQueue [19:38:04]wFMCommunicate request_size=4 [19:38:04]MH_SAM_APDU [19:38:04]CAPDU: 80 09 00 00 [19:38:04]Write to MH i2c: E2 08 00 ED 0D 80 09 00 00 00 00 00 00 6C [19:38:04]Write i2c OK [19:38:04]MH_I2C_Read... [19:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:04]Read from MH i2c: E2 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 03 00 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 03 00 ED 0D 00 90 00 6E [19:38:04]RAPDU: 90 00 [19:38:04]wFMCommunicate OK [19:38:04]SAM_PROTO_ClearQueue done [19:38:04]KKMCreateOFDPacket [19:38:04]OFDProtocolAddRootSTLVToBuf [19:38:04]FM_MakeSignedData [19:38:04]FM_MakeSignedData [19:38:04]SAM_PROTO_SignData [19:38:04]wFMCommunicate request_size=4 [19:38:04]MH_SAM_APDU [19:38:04]CAPDU: 80 0D 01 02 [19:38:04]Write to MH i2c: E2 08 00 EE 0D 80 0D 01 02 00 00 00 00 74 [19:38:04]Write i2c OK [19:38:04]MH_I2C_Read... [19:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:04]Read from MH i2c: E2 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 03 00 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 03 00 EE 0D 00 90 00 6F [19:38:04]RAPDU: 90 00 [19:38:04]wFMCommunicate OK [19:38:04]wFMCommunicate request_size=255 [19:38:04]MH_SAM_APDU [19:38:04]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 35 30 34 06 04 30 00 D0 90 D1 80 D0 BE D0 BC 20 53 4D 61 72 6B 65 74 20 53 4D 20 31 30 35 30 20 D0 B3 D1 80 D0 B0 D0 BD D1 83 D0 BB D1 8B 20 D0 BA D0 BE D1 84 D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9C 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [19:38:04]Write to MH i2c: E2 02 01 EF 0D 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 35 30 34 06 04 30 00 D0 90 D1 80 D0 BE D0 BC 20 53 4D 61 72 6B 65 74 20 53 4D 20 31 30 35 30 20 D0 B3 D1 80 D0 B0 D0 BD D1 83 D0 BB D1 8B 20 D0 BA D0 BE D1 84 D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9C 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 08 [19:38:04]Write i2c OK [19:38:04]MH_I2C_Read... [19:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:04]Read from MH i2c: E2 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 03 00 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 03 00 EF 0D 00 90 00 70 [19:38:04]RAPDU: 90 00 [19:38:04]wFMCommunicate OK [19:38:04]wFMCommunicate request_size=49 [19:38:04]MH_SAM_APDU [19:38:04]CAPDU: 80 0D 02 02 2C 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A7 13 00 00 35 04 06 00 8F 8F 15 DC B9 C2 [19:38:04]Write to MH i2c: E2 34 00 F0 0D 80 0D 02 02 2C 00 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A7 13 00 00 35 04 06 00 8F 8F 15 DC B9 C2 00 00 E0 [19:38:04]Write i2c OK [19:38:04]MH_I2C_Read... [19:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:04]Read from MH i2c: E2 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 03 00 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 03 00 F0 0D 00 90 00 71 [19:38:04]RAPDU: 90 00 [19:38:04]wFMCommunicate OK [19:38:04]wFMCommunicate request_size=4 [19:38:04]MH_SAM_APDU [19:38:04]CAPDU: 80 0D 03 02 [19:38:04]Write to MH i2c: E2 08 00 F1 0D 80 0D 03 02 00 00 00 00 79 [19:38:04]Write i2c OK [19:38:04]MH_I2C_Read... [19:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:04]Read from MH i2c: E2 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 0B 00 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 0B 00 F1 0D 00 03 2B 90 22 7E 4D 1A 1F 90 00 5E [19:38:04]RAPDU: 03 2B 90 22 7E 4D 1A 1F 90 00 [19:38:04]wFMCommunicate OK [19:38:04]SAM_PROTO_SignData done [19:38:04]FM_MakeSignedData done [19:38:04]CreateOFDProtocolMessage [19:38:04]wFMCommunicate request_size=4 [19:38:04]MH_SAM_APDU [19:38:04]CAPDU: 80 11 00 00 [19:38:04]Write to MH i2c: E2 08 00 F2 0D 80 11 00 00 00 00 00 00 79 [19:38:04]Write i2c OK [19:38:04]MH_I2C_Read... [19:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:04]Read from MH i2c: E2 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 17 00 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: E2 17 00 F2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 CE [19:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:38:04]wFMCommunicate OK [19:38:04]CreateOFDProtocolMessage done [19:38:04]OFDSenderStorePacket 5031 [19:38:04]StoreOFDPacket docnum=5031 [19:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 36 01 00 00 12 D6 2E 01 41 77 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 35 30 34 06 04 30 00 D0 90 D1 80 D0 BE D0 BC 20 53 4D 61 72 6B 65 74 20 53 4D 20 31 30 35 30 20 D0 B3 D1 80 D0 B0 D0 BD D1 83 D0 BB D1 8B 20 D0 BA D0 BE D1 84 D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9C 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A7 13 00 00 35 04 06 00 8F 8F 15 DC B9 C2 03 2B 90 22 7E 4D 1A 1F [19:38:04]CheckFolder [19:38:04]dirname=/storage/ofd_packets [19:38:04]CheckFolder done [19:38:04]ProducePacketName [19:38:04]name=ofd_packets/00005031 [19:38:04]NVStorageSaveData ofd_packets/00005031 [19:38:04]File name is /storage/ofd_packets/00005031 [19:38:04]Write 340 bytes [19:38:04]NVStorageSaveData done [19:38:04]OFDSenderStorePacket done [19:38:04]KKMCreateOFDPacket done [19:38:04]NVStorageSaveData kkm_last_timestamp [19:38:04]File name is /storage/kkm_last_timestamp [19:38:04]Write 4 bytes [19:38:04]NVStorageSaveData done [19:38:04]ExternCall_PrintAddStr [19:38:04]wPrintStart [19:38:04]Write to MH i2c: 01 00 00 F3 0D 00 [19:38:04]OFD Sender: Processing packet 5031 [packets to send 4, broken 3] [19:38:04]ProducePacketName [19:38:04]name=ofd_packets/00005031 [19:38:04]OFD Sender: To server: pG, [19:38:04]CommunicateWithHost lk.salyk.kg:30040 [19:38:04]ConnectInit lk.salyk.kg [19:38:04]Write i2c OK [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: 01 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: 01 07 00 [19:38:04]MH_I2C_Read... [19:38:04]Read from MH i2c: 01 07 00 F3 0D 00 00 00 00 00 FF 0F 15 [19:38:04]RasterBufferAndPrint [19:38:04]line Счет N : (3)141023 [19:38:04]line ИНН: 02508201610067 [19:38:04]line Контрольно-Кассовый Чек [19:38:04]line ПРОДАЖА [19:38:04]line Товар: 4680037724504 [19:38:04]line Аром SMarket SM 1050 гранулы кофе [19:38:04]line 2.000 * 60.00 [19:38:04]line = 120.00 [19:38:04]line НДС 12% НСП 1% [19:38:04]line > о реализуемом товаре [19:38:04]line ИТОГО: 120.00 [19:38:04]line НСП 1% : 1.06 [19:38:04]line НДС 12% : 12.74 [19:38:04]line Наличными: 120.00 [19:38:04]line Безнал.: 0.00 [19:38:04]line Место: АЗС № 135 "Партнер Нефть" [19:38:04]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:38:04]line СНО: Общий режим [19:38:04]line Чек 91 16.05.2024 19:38 [19:38:04]line Смена: 44 ФФД: 1.0 [19:38:04]line ЗНМ: 0300000237 [19:38:04]line РНМ: 0000000000154221 [19:38:04]line Версия ККМ: v1.0 [19:38:04]line ФМ: 0000000000963259 [19:38:04]line ФД: 5031 [19:38:04]line ФПД: 157844709882306 [19:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193804&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5031&fm=157844709882306&tin=02508201610067®Number=0000000000154221&sum=12000 [19:38:04]line 0 [19:38:04]written 0, free lines is 4095 [19:38:05]Write to MH i2c: 01 00 00 1C 0E 2A [19:38:05]Write i2c OK [19:38:05]MH_I2C_Read... [19:38:05]Read from MH i2c: 01 [19:38:05]MH_I2C_Read... [19:38:05]Read from MH i2c: 01 07 00 [19:38:05]MH_I2C_Read... [19:38:05]Read from MH i2c: 01 07 00 1C 0E 00 00 00 00 00 86 0C C3 [19:38:05]RasterBufferAndPrint [19:38:05]line [19:38:05]line [19:38:05]line [19:38:05]line [19:38:05]line [19:38:05]written 0, free lines is 3211 [19:38:05]MH_Cut [19:38:05]Write to MH i2c: D1 01 00 23 0E 01 03 [19:38:05]Write i2c OK [19:38:05]MH_I2C_Read... [19:38:05]Read from MH i2c: D1 [19:38:05]MH_I2C_Read... [19:38:05]Read from MH i2c: D1 01 00 [19:38:05]MH_I2C_Read... [19:38:05]Read from MH i2c: D1 01 00 23 0E 00 02 [19:38:05]Write to MH i2c: 01 00 00 24 0E 32 [19:38:05]Write i2c OK [19:38:05]MH_I2C_Read... [19:38:05]Connected sock=10 [19:38:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 36 01 00 00 12 D6 2E 01 41 77 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 35 30 34 06 04 30 00 D0 90 D1 80 D0 BE D0 BC 20 53 4D 61 72 6B 65 74 20 53 4D 20 31 30 35 30 20 D0 B3 D1 80 D0 B0 D0 BD D1 83 D0 BB D1 8B 20 D0 BA D0 BE D1 84 D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 9C 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A7 13 00 00 35 04 06 00 8F 8F 15 DC B9 C2 03 2B 90 22 7E 4D 1A 1F [19:38:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 0F A1 47 00 EF F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A7 13 00 00 F4 03 04 00 5F 0C 46 66 B6 04 01 00 00 88 9C 59 75 CB CF D9 8A [19:38:06]CommunicateWithHost err = 0 [19:38:06]CheckOFDResponse [19:38:06]1017 (14) - 77093643461234 [19:38:06]1041 (16) - 0000000000963259 [19:38:06]1040 (4) - 5031 [19:38:06]1012 (4) - 16.05.2024 13:38 [19:38:06]1206 (1) - 0 [19:38:06]OFD Sender: Remove packet 5031 [19:38:06]ProducePacketName [19:38:06]name=ofd_packets/00005031 [19:38:06]NVStorageDeleteData [19:38:06]OFD Sender: No OFD packet to send [19:38:06]*** Cut start [19:38:06]*** Partial cut [19:38:06]*** CUTSNS_PIN = 1 [19:38:06]*** CUTSNS_PIN = 0 [19:38:06]*** Brake cut motor [19:38:07]Read from MH i2c: 01 [19:38:07]MH_I2C_Read... [19:38:07]*** Stop cut motor [19:38:07]*** Cut end [19:38:07]Read from MH i2c: 01 07 00 [19:38:07]MH_I2C_Read... [19:38:07]Read from MH i2c: 01 07 00 24 0E 00 00 00 00 00 FF 0F 47 [19:38:07]process_action close_receipt done [19:38:07]requested_data is exist [19:38:07]produce_requested_data [19:38:07]requested_item fm.sn is exist - process it [19:38:07]wFMCommunicate request_size=4 [19:38:07]MH_SAM_APDU [19:38:07]CAPDU: 80 11 00 00 [19:38:07]Write to MH i2c: E2 08 00 25 0E 80 11 00 00 00 00 00 00 AD [19:38:07]Write i2c OK [19:38:07]MH_I2C_Read... [19:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:07]Read from MH i2c: E2 [19:38:07]MH_I2C_Read... [19:38:07]Read from MH i2c: E2 17 00 [19:38:07]MH_I2C_Read... [19:38:07]Read from MH i2c: E2 17 00 25 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 02 [19:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:38:07]wFMCommunicate OK [19:38:07]requested_item fd.num is exist - process it [19:38:07]SAM_PROTO_GetFieldsCounters [19:38:07]wFMCommunicate request_size=4 [19:38:07]MH_SAM_APDU [19:38:07]CAPDU: 80 13 00 00 [19:38:07]Write to MH i2c: E2 08 00 26 0E 80 13 00 00 00 00 00 00 B0 [19:38:07]Write i2c OK [19:38:07]MH_I2C_Read... [19:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:07]Read from MH i2c: E2 [19:38:07]MH_I2C_Read... [19:38:07]Read from MH i2c: E2 62 00 [19:38:07]MH_I2C_Read... [19:38:07]Read from MH i2c: E2 62 00 26 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 C0 [19:38:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:07]wFMCommunicate OK [19:38:07]SAM_PROTO_GetFieldsCounters done [19:38:07]requested_item shift.num is exist - process it [19:38:07]requested_item shift.opened is exist - process it [19:38:07]req_shift_opened [19:38:07]FM_GetShiftState [19:38:07]SAM_PROTO_GetShiftState [19:38:07]wFMCommunicate request_size=4 [19:38:07]MH_SAM_APDU [19:38:07]CAPDU: 80 13 01 00 [19:38:07]Write to MH i2c: E2 08 00 27 0E 80 13 01 00 00 00 00 00 B2 [19:38:07]Write i2c OK [19:38:07]MH_I2C_Read... [19:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:07]Read from MH i2c: E2 [19:38:07]MH_I2C_Read... [19:38:07]Read from MH i2c: E2 0E 00 [19:38:07]MH_I2C_Read... [19:38:07]Read from MH i2c: E2 0E 00 27 0E 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 BE [19:38:07]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:38:07]wFMCommunicate OK [19:38:07]SAM_PROTO_GetShiftState done [19:38:07]FM_GetShiftState done [19:38:07]req_shift_opened done [19:38:07]requested_item shift.open_date is exist - process it [19:38:07]req_shift_open_date [19:38:07]req_shift_open_date done [19:38:07]produce_requested_data done [19:38:07]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5031,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:38:07]process_action_free close_receipt [19:38:07]json_value_free [19:38:07]json_value_free done [19:38:07]process_json_proto returns [19:38:07]Send response to host [19:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5031,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:38:07]free response buf [19:38:07]execute_script done [19:38:07]execute_script returns [19:38:07]free content buf [19:38:07]Sock 7.Close socket [19:38:07]Sock 7.Thread stoped [19:38:11]OFD Sender: No OFD packet to send [19:38:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:27]accept exits with 9 [19:38:27]New connection [19:38:27]New thread 3067108708 created [19:38:27]Thread 3067252068 joined [19:38:27]Waiting for new connection... [19:38:27] Sock 9.Parse request [19:38:27]Sock 9.Check first char [19:38:27]Sock 9.First char is OK [19:38:27]request: POST /json_proto HTTP/1.0 [19:38:27]Method: POST [19:38:27]URL: /json_proto [19:38:27]Method is POST - this is cgi request [19:38:27]url: /json_proto [19:38:27]query_string will be loaded in cgi processing [19:38:27]execute_cgi json_proto POST (null) [19:38:27]execute_cgi path=json_proto method=POST [19:38:27]POST find Content-Length [19:38:27]Host: 172.17.44.4:8080 [19:38:27]Content-Length: 801 [19:38:27]Content-Type: application/json [19:38:27] [19:38:27]POST finish read [19:38:27]Found Content-Length = 801 [19:38:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 4.490, "sum" : 328.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 328.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:27]execute_script... [19:38:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 4.490, "sum" : 328.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 328.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:27]POST & json_proto [19:38:27]process_json_proto [19:38:27]json parsed OK: [19:38:27]protocol is kg_v1.0 [19:38:27]action value=close_receipt [19:38:27]process_action close_receipt [19:38:27]cmd_close_receipt [19:38:27]MH_GetDate [19:38:27]Write to MH i2c: F0 00 00 28 0E 25 [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: F0 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: F0 09 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: F0 09 00 28 0E 00 B4 60 46 66 6C E9 28 66 D1 [19:38:27]GetLastDocTimeStamp 1715888284 [19:38:27]current date 1715888308 [19:38:27]FM_GetShiftState [19:38:27]SAM_PROTO_GetShiftState [19:38:27]wFMCommunicate request_size=4 [19:38:27]MH_SAM_APDU [19:38:27]CAPDU: 80 13 01 00 [19:38:27]Write to MH i2c: E2 08 00 29 0E 80 13 01 00 00 00 00 00 B4 [19:38:27]Write i2c OK [19:38:27]MH_I2C_Read... [19:38:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:27]Read from MH i2c: E2 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 0E 00 [19:38:27]MH_I2C_Read... [19:38:27]Read from MH i2c: E2 0E 00 29 0E 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 C0 [19:38:27]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:38:27]wFMCommunicate OK [19:38:27]SAM_PROTO_GetShiftState done [19:38:27]FM_GetShiftState done [19:38:27]opened in 1715818246 [19:38:27]opened+sec_in_day 1715904646 [19:38:27]quantity*price = 32866 [19:38:27]sum+1 = 32868 [19:38:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 328.67 НСП 1% : 2.91 НДС 12% : 34.90 Наличными: 0.00 Безнал.: 328.67 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 92 16.05.2024 19:38 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5032 ФПД: 192373630441687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193828&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5032&fm=192373630441687&tin=02508201610067®Number=0000000000154221&sum=32867 [19:38:28]StoreToDocumentArchive [19:38:28]shift 44 fd 5032 [19:38:28]save to /storage/0044/doc_00005032 [19:38:28]save last doc name /storage/0044/doc_00005032 to /storage/kkm_last_doc_name [19:38:28]save OK [19:38:28]Clear old archive folders... [19:38:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:38:28]tlvbuf is B6F0A9F0 [19:38:28]SAM_PROTO_ClearQueue [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 09 00 00 [19:38:28]Write to MH i2c: E2 08 00 36 0E 80 09 00 00 00 00 00 00 B6 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 36 0E 00 90 00 B8 [19:38:28]RAPDU: 90 00 [19:38:28]wFMCommunicate OK [19:38:28]SAM_PROTO_ClearQueue done [19:38:28]KKMCreateOFDPacket [19:38:28]OFDProtocolAddRootSTLVToBuf [19:38:28]FM_MakeSignedData [19:38:28]FM_MakeSignedData [19:38:28]SAM_PROTO_SignData [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 0D 01 02 [19:38:28]Write to MH i2c: E2 08 00 37 0E 80 0D 01 02 00 00 00 00 BE [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 37 0E 00 90 00 B9 [19:38:28]RAPDU: 90 00 [19:38:28]wFMCommunicate OK [19:38:28]wFMCommunicate request_size=255 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 63 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B4 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A8 13 00 00 35 04 06 00 AE [19:38:28]Write to MH i2c: E2 02 01 38 0E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 63 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B4 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A8 13 00 00 35 04 06 00 AE 00 00 40 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 38 0E 00 90 00 BA [19:38:28]RAPDU: 90 00 [19:38:28]wFMCommunicate OK [19:38:28]wFMCommunicate request_size=10 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 0D 02 02 05 F6 79 E8 18 D7 [19:38:28]Write to MH i2c: E2 0D 00 39 0E 80 0D 02 02 05 00 F6 79 E8 18 D7 00 00 11 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 03 00 39 0E 00 90 00 BB [19:38:28]RAPDU: 90 00 [19:38:28]wFMCommunicate OK [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 0D 03 02 [19:38:28]Write to MH i2c: E2 08 00 3A 0E 80 0D 03 02 00 00 00 00 C3 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 0B 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 0B 00 3A 0E 00 2B 8F 28 92 37 C9 FE 8F 90 00 C5 [19:38:28]RAPDU: 2B 8F 28 92 37 C9 FE 8F 90 00 [19:38:28]wFMCommunicate OK [19:38:28]SAM_PROTO_SignData done [19:38:28]FM_MakeSignedData done [19:38:28]CreateOFDProtocolMessage [19:38:28]wFMCommunicate request_size=4 [19:38:28]MH_SAM_APDU [19:38:28]CAPDU: 80 11 00 00 [19:38:28]Write to MH i2c: E2 08 00 3B 0E 80 11 00 00 00 00 00 00 C3 [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:28]Read from MH i2c: E2 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 17 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: E2 17 00 3B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 18 [19:38:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:38:28]wFMCommunicate OK [19:38:28]CreateOFDProtocolMessage done [19:38:28]OFDSenderStorePacket 5032 [19:38:28]StoreOFDPacket docnum=5032 [19:38:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 08 FC 07 01 9D 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 63 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B4 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A8 13 00 00 35 04 06 00 AE F6 79 E8 18 D7 2B 8F 28 92 37 C9 FE 8F [19:38:28]CheckFolder [19:38:28]dirname=/storage/ofd_packets [19:38:28]CheckFolder done [19:38:28]ProducePacketName [19:38:28]name=ofd_packets/00005032 [19:38:28]NVStorageSaveData ofd_packets/00005032 [19:38:28]File name is /storage/ofd_packets/00005032 [19:38:28]Write 301 bytes [19:38:28]NVStorageSaveData done [19:38:28]OFDSenderStorePacket done [19:38:28]KKMCreateOFDPacket done [19:38:28]NVStorageSaveData kkm_last_timestamp [19:38:28]File name is /storage/kkm_last_timestamp [19:38:28]Write 4 bytes [19:38:28]NVStorageSaveData done [19:38:28]ExternCall_PrintAddStr [19:38:28]wPrintStart [19:38:28]Write to MH i2c: 01 00 00 3C 0E 4A [19:38:28]Write i2c OK [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: 01 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: 01 07 00 [19:38:28]MH_I2C_Read... [19:38:28]Read from MH i2c: 01 07 00 3C 0E 00 00 00 00 00 FF 0F 5F [19:38:28]RasterBufferAndPrint [19:38:28]line Счет N : (1)1993113 [19:38:28]line ИНН: 02508201610067 [19:38:28]line Контрольно-Кассовый Чек [19:38:28]line ПРОДАЖА [19:38:28]line ТРК (МРК, ГНК) : 32 [19:38:28]line Товар: 2710124500 [19:38:28]line Аи-95-К-5 [19:38:28]line 4.490 * 73.20 [19:38:28]line = 328.67 [19:38:28]line НДС 12% НСП 1% [19:38:28]line > о реализуемом товаре [19:38:28]line ИТОГО: 328.67 [19:38:28]line НСП 1% : 2.91 [19:38:28]line НДС 12% : 34.90 [19:38:28]line Наличными: 0.00 [19:38:28]line Безнал.: 328.67 [19:38:28]line Место: АЗС № 135 "Партнер Нефть" [19:38:28]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:38:28]line СНО: Общий режим [19:38:28]line Чек 92 16.05.2024 19:38 [19:38:28]line Смена: 44 ФФД: 1.0 [19:38:28]line ЗНМ: 0300000237 [19:38:28]line РНМ: 0000000000154221 [19:38:28]line Версия ККМ: v1.0 [19:38:28]line Платежная система: O! деньги [19:38:28]line ФМ: 0000000000963259 [19:38:28]line ФД: 5032 [19:38:28]line ФПД: 192373630441687 [19:38:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193828&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5032&fm=192373630441687&tin=02508201610067®Number=0000000000154221&sum=32867 [19:38:29]written 0, free lines is 4095 [19:38:29]OFD Sender: Processing packet 5032 [packets to send 4, broken 3] [19:38:29]ProducePacketName [19:38:29]name=ofd_packets/00005032 [19:38:29]OFD Sender: To server: pG, [19:38:29]CommunicateWithHost lk.salyk.kg:30040 [19:38:29]ConnectInit lk.salyk.kg [19:38:29]Connected sock=10 [19:38:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 08 FC 07 01 9D 27 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 63 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 80 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 B4 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A8 13 00 00 35 04 06 00 AE F6 79 E8 18 D7 2B 8F 28 92 37 C9 FE 8F [19:38:29]Write to MH i2c: 01 00 00 66 0E 74 [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: 01 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: 01 07 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: 01 07 00 66 0E 00 00 00 00 00 90 0C 17 [19:38:29]RasterBufferAndPrint [19:38:29]line [19:38:29]line [19:38:29]line [19:38:29]line [19:38:29]line [19:38:29]written 0, free lines is 3218 [19:38:29]MH_Cut [19:38:29]Write to MH i2c: D1 01 00 6D 0E 01 4D [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: D1 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: D1 01 00 [19:38:29]MH_I2C_Read... [19:38:29]Read from MH i2c: D1 01 00 6D 0E 00 4C [19:38:29]Write to MH i2c: 01 00 00 6E 0E 7C [19:38:29]Write i2c OK [19:38:29]MH_I2C_Read... [19:38:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 76 2B 47 00 6E 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A8 13 00 00 F4 03 04 00 77 0C 46 66 B6 04 01 00 00 97 67 4C 28 0D D3 20 73 [19:38:29]CommunicateWithHost err = 0 [19:38:29]CheckOFDResponse [19:38:29]1017 (14) - 77093643461234 [19:38:29]1041 (16) - 0000000000963259 [19:38:29]1040 (4) - 5032 [19:38:29]1012 (4) - 16.05.2024 13:39 [19:38:29]1206 (1) - 0 [19:38:29]OFD Sender: Remove packet 5032 [19:38:29]ProducePacketName [19:38:29]name=ofd_packets/00005032 [19:38:29]NVStorageDeleteData [19:38:30]OFD Sender: No OFD packet to send [19:38:30]*** Cut start [19:38:30]*** Partial cut [19:38:30]*** CUTSNS_PIN = 1 [19:38:30]*** CUTSNS_PIN = 0 [19:38:31]*** Brake cut motor [19:38:31]Read from MH i2c: 01 [19:38:31]MH_I2C_Read... [19:38:31]*** Stop cut motor [19:38:31]*** Cut end [19:38:31]Read from MH i2c: 01 07 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: 01 07 00 6E 0E 00 00 00 00 00 FF 0F 91 [19:38:31]process_action close_receipt done [19:38:31]requested_data is exist [19:38:31]produce_requested_data [19:38:31]requested_item fm.sn is exist - process it [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 11 00 00 [19:38:31]Write to MH i2c: E2 08 00 6F 0E 80 11 00 00 00 00 00 00 F7 [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 17 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 17 00 6F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 4C [19:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:38:31]wFMCommunicate OK [19:38:31]requested_item fd.num is exist - process it [19:38:31]SAM_PROTO_GetFieldsCounters [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 13 00 00 [19:38:31]Write to MH i2c: E2 08 00 70 0E 80 13 00 00 00 00 00 00 FA [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 62 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 62 00 70 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A8 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 0E [19:38:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A8 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:31]wFMCommunicate OK [19:38:31]SAM_PROTO_GetFieldsCounters done [19:38:31]requested_item shift.num is exist - process it [19:38:31]requested_item shift.opened is exist - process it [19:38:31]req_shift_opened [19:38:31]FM_GetShiftState [19:38:31]SAM_PROTO_GetShiftState [19:38:31]wFMCommunicate request_size=4 [19:38:31]MH_SAM_APDU [19:38:31]CAPDU: 80 13 01 00 [19:38:31]Write to MH i2c: E2 08 00 71 0E 80 13 01 00 00 00 00 00 FC [19:38:31]Write i2c OK [19:38:31]MH_I2C_Read... [19:38:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:31]Read from MH i2c: E2 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 0E 00 [19:38:31]MH_I2C_Read... [19:38:31]Read from MH i2c: E2 0E 00 71 0E 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 08 [19:38:31]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:38:31]wFMCommunicate OK [19:38:31]SAM_PROTO_GetShiftState done [19:38:31]FM_GetShiftState done [19:38:31]req_shift_opened done [19:38:31]requested_item shift.open_date is exist - process it [19:38:31]req_shift_open_date [19:38:31]req_shift_open_date done [19:38:31]produce_requested_data done [19:38:31]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5032,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:38:31]process_action_free close_receipt [19:38:31]json_value_free [19:38:31]json_value_free done [19:38:31]process_json_proto returns [19:38:31]Send response to host [19:38:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5032,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:38:31]free response buf [19:38:31]execute_script done [19:38:31]execute_script returns [19:38:31]free content buf [19:38:31]Sock 9.Close socket [19:38:31]Sock 9.Thread stoped [19:38:32]accept exits with 7 [19:38:32]New connection [19:38:32]New thread 3067252068 created [19:38:32]Thread 3067108708 joined [19:38:32]Waiting for new connection... [19:38:32] Sock 7.Parse request [19:38:32]Sock 7.Check first char [19:38:32]Sock 7.First char is OK [19:38:32]request: POST /json_proto HTTP/1.0 [19:38:32]Method: POST [19:38:32]URL: /json_proto [19:38:32]Method is POST - this is cgi request [19:38:32]url: /json_proto [19:38:32]query_string will be loaded in cgi processing [19:38:32]execute_cgi json_proto POST (null) [19:38:32]execute_cgi path=json_proto method=POST [19:38:32]POST find Content-Length [19:38:32]Host: 172.17.44.4:8080 [19:38:32]Content-Length: 1204 [19:38:32]Content-Type: application/json [19:38:32] [19:38:32]POST finish read [19:38:32]Found Content-Length = 1204 [19:38:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-135\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0442\u0430\u043A\u043E\u0437\u0443\u0435\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)1993112\u000A16.05.2024 19:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:32]execute_script... [19:38:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-135\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0410\u0442\u0430\u043A\u043E\u0437\u0443\u0435\u0432 \u041C. \u000A\u0421\u0447\u0435\u0442 N : (1)1993112\u000A16.05.2024 19:30\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 53\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710124130\u000A\u0410\u0438-92-\u041A-4\u000A 30.000 x 66.80\u000A\u0418\u0422\u041E\u0413: 2004.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:38:32]POST & json_proto [19:38:32]process_json_proto [19:38:32]json parsed OK: [19:38:32]protocol is kg_v1.0 [19:38:32]action value=print_text [19:38:32]process_action print_text [19:38:32]cmd_print_text [19:38:32]ExternCall_PrintAddStr [19:38:32]wPrintStart [19:38:32]Write to MH i2c: 01 00 00 72 0E 80 [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: 01 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: 01 07 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: 01 07 00 72 0E 00 00 00 00 00 FF 0F 95 [19:38:32]RasterBufferAndPrint [19:38:32]line *****ТОВАРНЫЙ ЧЕК***** [19:38:32]line АЗС-135 [19:38:32]line Партнер нефть [19:38:32]line 02508201610067 [19:38:32]line Кассир : Атакозуев М. [19:38:32]line Счет N : (1)1993112 [19:38:32]line 16.05.2024 19:30 [19:38:32]line ПРОДАЖА [19:38:32]line ТРК (МРК, ГНК): 53 [19:38:32]line Вид ГСМ : 2710124130 [19:38:32]line Аи-92-К-4 [19:38:32]line 30.000 x 66.80 [19:38:32]line ИТОГ: 2004.00 [19:38:32]line Тип оплаты: Талоны: Топливные Талоны [19:38:32]line 1 [19:38:32]line ______________________ [19:38:32]line (подпись) [19:38:32]written 0, free lines is 4095 [19:38:32]Write to MH i2c: 01 00 00 86 0E 94 [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: 01 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: 01 07 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: 01 07 00 86 0E 00 00 00 00 00 10 0E B9 [19:38:32]RasterBufferAndPrint [19:38:32]line [19:38:32]line [19:38:32]line [19:38:32]line [19:38:32]line [19:38:32]written 0, free lines is 3603 [19:38:32]MH_Cut [19:38:32]Write to MH i2c: D1 01 00 8D 0E 01 6D [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: D1 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: D1 01 00 [19:38:32]MH_I2C_Read... [19:38:32]Read from MH i2c: D1 01 00 8D 0E 00 6C [19:38:32]Write to MH i2c: 01 00 00 8E 0E 9C [19:38:32]Write i2c OK [19:38:32]MH_I2C_Read... [19:38:33]*** Cut start [19:38:33]*** Partial cut [19:38:33]*** CUTSNS_PIN = 1 [19:38:33]*** CUTSNS_PIN = 0 [19:38:33]*** Brake cut motor [19:38:34]Read from MH i2c: 01 [19:38:34]MH_I2C_Read... [19:38:34]*** Stop cut motor [19:38:34]*** Cut end [19:38:34]Read from MH i2c: 01 07 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: 01 07 00 8E 0E 00 00 00 00 00 FF 0F B1 [19:38:34]process_action print_text done [19:38:34]requested_data is exist [19:38:34]produce_requested_data [19:38:34]requested_item fm.sn is exist - process it [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 11 00 00 [19:38:34]Write to MH i2c: E2 08 00 8F 0E 80 11 00 00 00 00 00 00 17 [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 17 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 17 00 8F 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 6C [19:38:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:38:34]wFMCommunicate OK [19:38:34]requested_item fd.num is exist - process it [19:38:34]SAM_PROTO_GetFieldsCounters [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 13 00 00 [19:38:34]Write to MH i2c: E2 08 00 90 0E 80 13 00 00 00 00 00 00 1A [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 62 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 62 00 90 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A8 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [19:38:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A8 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:38:34]wFMCommunicate OK [19:38:34]SAM_PROTO_GetFieldsCounters done [19:38:34]requested_item shift.num is exist - process it [19:38:34]requested_item shift.opened is exist - process it [19:38:34]req_shift_opened [19:38:34]FM_GetShiftState [19:38:34]SAM_PROTO_GetShiftState [19:38:34]wFMCommunicate request_size=4 [19:38:34]MH_SAM_APDU [19:38:34]CAPDU: 80 13 01 00 [19:38:34]Write to MH i2c: E2 08 00 91 0E 80 13 01 00 00 00 00 00 1C [19:38:34]Write i2c OK [19:38:34]MH_I2C_Read... [19:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:38:34]Read from MH i2c: E2 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 0E 00 [19:38:34]MH_I2C_Read... [19:38:34]Read from MH i2c: E2 0E 00 91 0E 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 28 [19:38:34]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:38:34]wFMCommunicate OK [19:38:34]SAM_PROTO_GetShiftState done [19:38:34]FM_GetShiftState done [19:38:34]req_shift_opened done [19:38:34]requested_item shift.open_date is exist - process it [19:38:34]req_shift_open_date [19:38:34]req_shift_open_date done [19:38:34]produce_requested_data done [19:38:34]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5032,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:38:34]process_action_free print_text [19:38:34]json_value_free [19:38:34]json_value_free done [19:38:34]process_json_proto returns [19:38:34]Send response to host [19:38:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5032,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:38:34]free response buf [19:38:34]execute_script done [19:38:34]execute_script returns [19:38:34]free content buf [19:38:34]Sock 7.Close socket [19:38:34]Sock 7.Thread stoped [19:38:35]OFD Sender: No OFD packet to send [19:38:40]OFD Sender: No OFD packet to send [19:38:45]OFD Sender: No OFD packet to send [19:38:50]OFD Sender: No OFD packet to send [19:38:55]OFD Sender: No OFD packet to send [19:39:00]OFD Sender: No OFD packet to send [19:39:05]OFD Sender: No OFD packet to send [19:39:10]OFD Sender: No OFD packet to send [19:39:15]OFD Sender: No OFD packet to send [19:39:20]OFD Sender: No OFD packet to send [19:39:25]OFD Sender: No OFD packet to send [19:39:30]OFD Sender: No OFD packet to send [19:39:35]OFD Sender: No OFD packet to send [19:39:40]OFD Sender: No OFD packet to send [19:39:40]accept exits with 9 [19:39:40]New connection [19:39:40]New thread 3067108708 created [19:39:40]Thread 3067252068 joined [19:39:40]Waiting for new connection... [19:39:40] Sock 9.Parse request [19:39:40]Sock 9.Check first char [19:39:40]Sock 9.First char is OK [19:39:40]request: POST /json_proto HTTP/1.0 [19:39:40]Method: POST [19:39:40]URL: /json_proto [19:39:40]Method is POST - this is cgi request [19:39:40]url: /json_proto [19:39:40]query_string will be loaded in cgi processing [19:39:40]execute_cgi json_proto POST (null) [19:39:40]execute_cgi path=json_proto method=POST [19:39:40]POST find Content-Length [19:39:40]Host: 172.17.44.4:8080 [19:39:40]Content-Length: 716 [19:39:40]Content-Type: application/json [19:39:40] [19:39:40]POST finish read [19:39:40]Found Content-Length = 716 [19:39:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141024", "tax_sys" : 0, "items" : [ { "code": "4700000281947", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u0435\u043D\u044C\u043A\u0430\u044F 0,46\u043B \u0420\u0443\u0441.\u041C\u0435\u0434\u0432\u0435\u0434\u044C", "price" : 315.00, "quantity" : 1.000, "sum" : 315.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:40]execute_script... [19:39: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)141024", "tax_sys" : 0, "items" : [ { "code": "4700000281947", "name": "\u0412\u043E\u0434\u043A\u0430 \u0411\u0435\u043B\u0435\u043D\u044C\u043A\u0430\u044F 0,46\u043B \u0420\u0443\u0441.\u041C\u0435\u0434\u0432\u0435\u0434\u044C", "price" : 315.00, "quantity" : 1.000, "sum" : 315.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 315.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:39:40]POST & json_proto [19:39:40]process_json_proto [19:39:40]json parsed OK: [19:39:40]protocol is kg_v1.0 [19:39:40]action value=close_receipt [19:39:40]process_action close_receipt [19:39:40]cmd_close_receipt [19:39:40]MH_GetDate [19:39:40]Write to MH i2c: F0 00 00 92 0E 8F [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 09 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: F0 09 00 92 0E 00 FE 60 46 66 6C E9 28 66 85 [19:39:40]GetLastDocTimeStamp 1715888308 [19:39:40]current date 1715888382 [19:39:40]FM_GetShiftState [19:39:40]SAM_PROTO_GetShiftState [19:39:40]wFMCommunicate request_size=4 [19:39:40]MH_SAM_APDU [19:39:40]CAPDU: 80 13 01 00 [19:39:40]Write to MH i2c: E2 08 00 93 0E 80 13 01 00 00 00 00 00 1E [19:39:40]Write i2c OK [19:39:40]MH_I2C_Read... [19:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:40]Read from MH i2c: E2 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 [19:39:40]MH_I2C_Read... [19:39:40]Read from MH i2c: E2 0E 00 93 0E 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 2A [19:39:40]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:39:40]wFMCommunicate OK [19:39:40]SAM_PROTO_GetShiftState done [19:39:40]FM_GetShiftState done [19:39:40]opened in 1715818246 [19:39:40]opened+sec_in_day 1715904646 [19:39:40]quantity*price = 31500 [19:39:40]sum+1 = 31501 [19:39:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 315.00 НСП 1% : 2.79 НДС 12% : 33.45 Наличными: 315.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 93 16.05.2024 19:39 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5033 ФПД: 29503594852807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193942&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5033&fm=29503594852807&tin=02508201610067®Number=0000000000154221&sum=31500 0 [19:39:41]StoreToDocumentArchive [19:39:41]shift 44 fd 5033 [19:39:41]save to /storage/0044/doc_00005033 [19:39:41]save last doc name /storage/0044/doc_00005033 to /storage/kkm_last_doc_name [19:39:41]save OK [19:39:41]Clear old archive folders... [19:39:41]ProcessDocumentItem done err = 0, tmpTLVsize=300 [19:39:41]tlvbuf is 01216950 [19:39:41]SAM_PROTO_ClearQueue [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 09 00 00 [19:39:41]Write to MH i2c: E2 08 00 A0 0E 80 09 00 00 00 00 00 00 20 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 A0 0E 00 90 00 22 [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]SAM_PROTO_ClearQueue done [19:39:41]KKMCreateOFDPacket [19:39:41]OFDProtocolAddRootSTLVToBuf [19:39:41]FM_MakeSignedData [19:39:41]FM_MakeSignedData [19:39:41]SAM_PROTO_SignData [19:39:41]wFMCommunicate request_size=4 [19:39:41]MH_SAM_APDU [19:39:41]CAPDU: 80 0D 01 02 [19:39:41]Write to MH i2c: E2 08 00 A1 0E 80 0D 01 02 00 00 00 00 28 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:39:41]Read from MH i2c: E2 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 [19:39:41]MH_I2C_Read... [19:39:41]Read from MH i2c: E2 03 00 A1 0E 00 90 00 23 [19:39:41]RAPDU: 90 00 [19:39:41]wFMCommunicate OK [19:39:41]wFMCommunicate request_size=255 [19:39:41]MH_SAM_APDU [19:39:41]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 30 32 38 31 39 34 37 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 34 36 D0 BB 20 D0 A0 D1 83 D1 81 2E D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 7B 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 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 FE 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 [19:39:41]Write to MH i2c: E2 02 01 A2 0E 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 30 32 38 31 39 34 37 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 34 36 D0 BB 20 D0 A0 D1 83 D1 81 2E D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 7B 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 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 FE 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 00 00 27 [19:39:41]Write i2c OK [19:39:41]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:42]Read from MH i2c: E2 03 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 A2 0E 00 90 00 24 [19:39:42]RAPDU: 90 00 [19:39:42]wFMCommunicate OK [19:39:42]wFMCommunicate request_size=59 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A9 13 00 00 35 04 06 00 1A D5 57 4A 71 C7 [19:39:42]Write to MH i2c: E2 3E 00 A3 0E 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A9 13 00 00 35 04 06 00 1A D5 57 4A 71 C7 00 00 C8 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 03 00 A3 0E 00 90 00 25 [19:39:42]RAPDU: 90 00 [19:39:42]wFMCommunicate OK [19:39:42]wFMCommunicate request_size=4 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 0D 03 02 [19:39:42]Write to MH i2c: E2 08 00 A4 0E 80 0D 03 02 00 00 00 00 2D [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 0B 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 0B 00 A4 0E 00 9C 34 54 1D 53 57 F8 74 90 00 85 [19:39:42]RAPDU: 9C 34 54 1D 53 57 F8 74 90 00 [19:39:42]wFMCommunicate OK [19:39:42]SAM_PROTO_SignData done [19:39:42]FM_MakeSignedData done [19:39:42]CreateOFDProtocolMessage [19:39:42]wFMCommunicate request_size=4 [19:39:42]MH_SAM_APDU [19:39:42]CAPDU: 80 11 00 00 [19:39:42]Write to MH i2c: E2 08 00 A5 0E 80 11 00 00 00 00 00 00 2D [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:42]Read from MH i2c: E2 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 17 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: E2 17 00 A5 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 82 [19:39:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:39:42]wFMCommunicate OK [19:39:42]CreateOFDProtocolMessage done [19:39:42]OFDSenderStorePacket 5033 [19:39:42]StoreOFDPacket docnum=5033 [19:39:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 40 01 00 00 78 C5 38 01 8E 67 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 30 32 38 31 39 34 37 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 34 36 D0 BB 20 D0 A0 D1 83 D1 81 2E D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 7B 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 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 FE 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A9 13 00 00 35 04 06 00 1A D5 57 4A 71 C7 9C 34 54 1D 53 57 F8 74 [19:39:42]CheckFolder [19:39:42]dirname=/storage/ofd_packets [19:39:42]CheckFolder done [19:39:42]ProducePacketName [19:39:42]name=ofd_packets/00005033 [19:39:42]NVStorageSaveData ofd_packets/00005033 [19:39:42]File name is /storage/ofd_packets/00005033 [19:39:42]Write 350 bytes [19:39:42]NVStorageSaveData done [19:39:42]OFDSenderStorePacket done [19:39:42]KKMCreateOFDPacket done [19:39:42]NVStorageSaveData kkm_last_timestamp [19:39:42]File name is /storage/kkm_last_timestamp [19:39:42]Write 4 bytes [19:39:42]NVStorageSaveData done [19:39:42]ExternCall_PrintAddStr [19:39:42]wPrintStart [19:39:42]Write to MH i2c: 01 00 00 A6 0E B4 [19:39:42]Write i2c OK [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 [19:39:42]MH_I2C_Read... [19:39:42]Read from MH i2c: 01 07 00 A6 0E 00 00 00 00 00 FF 0F C9 [19:39:42]RasterBufferAndPrint [19:39:42]line Счет N : (3)141024 [19:39:42]line ИНН: 02508201610067 [19:39:42]line Контрольно-Кассовый Чек [19:39:42]line ПРОДАЖА [19:39:42]line Товар: 4700000281947 [19:39:42]line Водка Беленькая 0,46л Рус.Медведь [19:39:42]line 1.000 * 315.00 [19:39:42]line = 315.00 [19:39:42]line НДС 12% НСП 1% [19:39:42]line > о реализуемом товаре [19:39:42]line ИТОГО: 315.00 [19:39:42]line НСП 1% : 2.79 [19:39:42]line НДС 12% : 33.45 [19:39:42]line Наличными: 315.00 [19:39:42]line Безнал.: 0.00 [19:39:42]line Место: АЗС № 135 "Партнер Нефть" [19:39:42]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:39:42]line СНО: Общий режим [19:39:42]line Чек 93 16.05.2024 19:39 [19:39:42]line Смена: 44 ФФД: 1.0 [19:39:42]line ЗНМ: 0300000237 [19:39:42]line РНМ: 0000000000154221 [19:39:42]line Версия ККМ: v1.0 [19:39:42]line ФМ: 0000000000963259 [19:39:42]line ФД: 5033 [19:39:42]line ФПД: 29503594852807 [19:39:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T193942&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5033&fm=29503594852807&tin=02508201610067®Number=0000000000154221&sum=31500 [19:39:42]line 0 [19:39:42]OFD Sender: Processing packet 5033 [packets to send 4, broken 3] [19:39:42]ProducePacketName [19:39:42]name=ofd_packets/00005033 [19:39:42]OFD Sender: To server: pG, [19:39:42]CommunicateWithHost lk.salyk.kg:30040 [19:39:42]ConnectInit lk.salyk.kg [19:39:42]written 0, free lines is 4095 [19:39:42]Connected sock=10 [19:39:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 40 01 00 00 78 C5 38 01 8E 67 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 30 32 38 31 39 34 37 06 04 3A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 91 D0 B5 D0 BB D0 B5 D0 BD D1 8C D0 BA D0 B0 D1 8F 20 30 2C 34 36 D0 BB 20 D0 A0 D1 83 D1 81 2E D0 9C D0 B5 D0 B4 D0 B2 D0 B5 D0 B4 D1 8C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 7B 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 FC 03 06 00 0C 7B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 17 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 0D 00 00 00 00 07 04 06 00 0C 7B 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 FE 60 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A9 13 00 00 35 04 06 00 1A D5 57 4A 71 C7 9C 34 54 1D 53 57 F8 74 [19:39:43]Write to MH i2c: 01 00 00 CF 0E DD [19:39:43]Write i2c OK [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: 01 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: 01 07 00 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: 01 07 00 CF 0E 00 00 00 00 00 81 0C 71 [19:39:43]RasterBufferAndPrint [19:39:43]line [19:39:43]line [19:39:43]line [19:39:43]line [19:39:43]line [19:39:43]written 0, free lines is 3206 [19:39:43]MH_Cut [19:39:43]Write to MH i2c: D1 01 00 D6 0E 01 B6 [19:39:43]Write i2c OK [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: D1 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: D1 01 00 [19:39:43]MH_I2C_Read... [19:39:43]Read from MH i2c: D1 01 00 D6 0E 00 B5 [19:39:43]Write to MH i2c: 01 00 00 D7 0E E5 [19:39:43]Write i2c OK [19:39:43]MH_I2C_Read... [19:39:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 78 D9 47 00 26 B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 A9 13 00 00 F4 03 04 00 C1 0C 46 66 B6 04 01 00 00 81 54 9F C8 39 C0 F9 9A [19:39:43]CommunicateWithHost err = 0 [19:39:43]CheckOFDResponse [19:39:43]1017 (14) - 77093643461234 [19:39:43]1041 (16) - 0000000000963259 [19:39:43]1040 (4) - 5033 [19:39:43]1012 (4) - 16.05.2024 13:40 [19:39:43]1206 (1) - 0 [19:39:43]OFD Sender: Remove packet 5033 [19:39:43]ProducePacketName [19:39:43]name=ofd_packets/00005033 [19:39:43]NVStorageDeleteData [19:39:44]OFD Sender: No OFD packet to send [19:39:44]*** Cut start [19:39:44]*** Partial cut [19:39:44]*** CUTSNS_PIN = 1 [19:39:44]*** CUTSNS_PIN = 0 [19:39:44]*** Brake cut motor [19:39:44]Read from MH i2c: 01 [19:39:44]MH_I2C_Read... [19:39:44]*** Stop cut motor [19:39:44]*** Cut end [19:39:44]Read from MH i2c: 01 07 00 [19:39:44]MH_I2C_Read... [19:39:44]Read from MH i2c: 01 07 00 D7 0E 00 00 00 00 00 FF 0F FA [19:39:44]process_action close_receipt done [19:39:44]requested_data is exist [19:39:44]produce_requested_data [19:39:44]requested_item fm.sn is exist - process it [19:39:44]wFMCommunicate request_size=4 [19:39:44]MH_SAM_APDU [19:39:44]CAPDU: 80 11 00 00 [19:39:44]Write to MH i2c: E2 08 00 D8 0E 80 11 00 00 00 00 00 00 60 [19:39:44]Write i2c OK [19:39:44]MH_I2C_Read... [19:39:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 17 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 17 00 D8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 B5 [19:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:39:45]wFMCommunicate OK [19:39:45]requested_item fd.num is exist - process it [19:39:45]SAM_PROTO_GetFieldsCounters [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 13 00 00 [19:39:45]Write to MH i2c: E2 08 00 D9 0E 80 13 00 00 00 00 00 00 63 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 62 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 62 00 D9 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A9 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 7B [19:39:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 A9 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:39:45]wFMCommunicate OK [19:39:45]SAM_PROTO_GetFieldsCounters done [19:39:45]requested_item shift.num is exist - process it [19:39:45]requested_item shift.opened is exist - process it [19:39:45]req_shift_opened [19:39:45]FM_GetShiftState [19:39:45]SAM_PROTO_GetShiftState [19:39:45]wFMCommunicate request_size=4 [19:39:45]MH_SAM_APDU [19:39:45]CAPDU: 80 13 01 00 [19:39:45]Write to MH i2c: E2 08 00 DA 0E 80 13 01 00 00 00 00 00 65 [19:39:45]Write i2c OK [19:39:45]MH_I2C_Read... [19:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:39:45]Read from MH i2c: E2 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 0E 00 [19:39:45]MH_I2C_Read... [19:39:45]Read from MH i2c: E2 0E 00 DA 0E 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 71 [19:39:45]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:39:45]wFMCommunicate OK [19:39:45]SAM_PROTO_GetShiftState done [19:39:45]FM_GetShiftState done [19:39:45]req_shift_opened done [19:39:45]requested_item shift.open_date is exist - process it [19:39:45]req_shift_open_date [19:39:45]req_shift_open_date done [19:39:45]produce_requested_data done [19:39:45]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5033,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:39:45]process_action_free close_receipt [19:39:45]json_value_free [19:39:45]json_value_free done [19:39:45]process_json_proto returns [19:39:45]Send response to host [19:39:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5033,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:39:45]free response buf [19:39:45]execute_script done [19:39:45]execute_script returns [19:39:45]free content buf [19:39:45]Sock 9.Close socket [19:39:45]Sock 9.Thread stoped [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:13]accept exits with 7 [19:41:13]New connection [19:41:13]New thread 3067252068 created [19:41:13]Thread 3067108708 joined [19:41:13]Waiting for new connection... [19:41:13] Sock 7.Parse request [19:41:13]Sock 7.Check first char [19:41:13]Sock 7.First char is OK [19:41:13]request: POST /json_proto HTTP/1.0 [19:41:13]Method: POST [19:41:13]URL: /json_proto [19:41:13]Method is POST - this is cgi request [19:41:13]url: /json_proto [19:41:13]query_string will be loaded in cgi processing [19:41:13]execute_cgi json_proto POST (null) [19:41:13]execute_cgi path=json_proto method=POST [19:41:13]POST find Content-Length [19:41:13]Host: 172.17.44.4:8080 [19:41:13]Content-Length: 2049 [19:41:13]Content-Type: application/json [19:41:13] [19:41:13]POST finish read [19:41:13]Found Content-Length = 2049 [19:41:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141025", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "4680037724504", "name": "\u0410\u0440\u043E\u043C SMarket SM 1050 \u0433\u0440\u0430\u043D\u0443\u043B\u044B \u043A\u043E\u0444\u0435", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017450726", "name": "\u041A\u0430\u0440. \u0421\u0442\u0440\u0430\u0439\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 11.3\u0433/50\u0448\u0442", "price" : 10.00, "quantity" : 4.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:13]execute_script... [19:41: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)141025", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "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": "4680037724504", "name": "\u0410\u0440\u043E\u043C SMarket SM 1050 \u0433\u0440\u0430\u043D\u0443\u043B\u044B \u043A\u043E\u0444\u0435", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017450726", "name": "\u041A\u0430\u0440. \u0421\u0442\u0440\u0430\u0439\u043A \u0430\u0441\u0441\u043E\u0440\u0442\u0438 11.3\u0433/50\u0448\u0442", "price" : 10.00, "quantity" : 4.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:14]POST & json_proto [19:41:14]process_json_proto [19:41:14]json parsed OK: [19:41:14]protocol is kg_v1.0 [19:41:14]action value=close_receipt [19:41:14]process_action close_receipt [19:41:14]cmd_close_receipt [19:41:14]MH_GetDate [19:41:14]Write to MH i2c: F0 00 00 DB 0E D8 [19:41:14]OFD Sender: No OFD packet to send [19:41:14]Write i2c OK [19:41:14]MH_I2C_Read... [19:41:14]Read from MH i2c: F0 [19:41:14]MH_I2C_Read... [19:41:14]Read from MH i2c: F0 09 00 [19:41:14]MH_I2C_Read... [19:41:14]Read from MH i2c: F0 09 00 DB 0E 00 5B 61 46 66 6C E9 28 66 2C [19:41:14]GetLastDocTimeStamp 1715888382 [19:41:14]current date 1715888475 [19:41:14]FM_GetShiftState [19:41:14]SAM_PROTO_GetShiftState [19:41:14]wFMCommunicate request_size=4 [19:41:14]MH_SAM_APDU [19:41:14]CAPDU: 80 13 01 00 [19:41:14]Write to MH i2c: E2 08 00 DC 0E 80 13 01 00 00 00 00 00 67 [19:41:14]Write i2c OK [19:41:14]MH_I2C_Read... [19:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:14]Read from MH i2c: E2 [19:41:14]MH_I2C_Read... [19:41:14]Read from MH i2c: E2 0E 00 [19:41:14]MH_I2C_Read... [19:41:14]Read from MH i2c: E2 0E 00 DC 0E 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 73 [19:41:14]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:41:14]wFMCommunicate OK [19:41:14]SAM_PROTO_GetShiftState done [19:41:14]FM_GetShiftState done [19:41:14]opened in 1715818246 [19:41:14]opened+sec_in_day 1715904646 [19:41:14]quantity*price = 4000 [19:41:14]sum+1 = 4001 [19:41:14]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002325441 Вода ASU пит н.газ лимон ПЭТ 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4680037724504 Аром SMarket SM 1050 гранулы кофе 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000480050 Напиток Nitro Energy эн green ж/б 0,45л 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310173 Вода Адыгене 0,5л б/г 1.000 * 30.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4620017450726 Кар. Страйк ассорти 11.3г/50шт 4.000 * 10.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 330.00 НСП 1% : 2.90 НДС 12% : 35.05 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 94 16.05.2024 19:41 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5034 ФПД: 47078019437801 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T194115&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5034&fm=47078019437801&tin=02508201610067®Number=0000000000154221&sum=33000 0 [19:41:15]StoreToDocumentArchive [19:41:15]shift 44 fd 5034 [19:41:15]save to /storage/0044/doc_00005034 [19:41:15]save last doc name /storage/0044/doc_00005034 to /storage/kkm_last_doc_name [19:41:15]save OK [19:41:15]Clear old archive folders... [19:41:15]ProcessDocumentItem done err = 0, tmpTLVsize=867 [19:41:15]tlvbuf is 0115B9B0 [19:41:15]SAM_PROTO_ClearQueue [19:41:15]wFMCommunicate request_size=4 [19:41:15]MH_SAM_APDU [19:41:15]CAPDU: 80 09 00 00 [19:41:15]Write to MH i2c: E2 08 00 E9 0E 80 09 00 00 00 00 00 00 69 [19:41:15]Write i2c OK [19:41:15]MH_I2C_Read... [19:41:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:15]Read from MH i2c: E2 [19:41:15]MH_I2C_Read... [19:41:15]Read from MH i2c: E2 03 00 [19:41:15]MH_I2C_Read... [19:41:15]Read from MH i2c: E2 03 00 E9 0E 00 90 00 6B [19:41:15]RAPDU: 90 00 [19:41:15]wFMCommunicate OK [19:41:15]SAM_PROTO_ClearQueue done [19:41:15]KKMCreateOFDPacket [19:41:15]OFDProtocolAddRootSTLVToBuf [19:41:15]FM_MakeSignedData [19:41:15]FM_MakeSignedData [19:41:15]SAM_PROTO_SignData [19:41:15]wFMCommunicate request_size=4 [19:41:15]MH_SAM_APDU [19:41:15]CAPDU: 80 0D 01 02 [19:41:15]Write to MH i2c: E2 08 00 EA 0E 80 0D 01 02 00 00 00 00 71 [19:41:15]Write i2c OK [19:41:15]MH_I2C_Read... [19:41:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:15]Read from MH i2c: E2 [19:41:15]MH_I2C_Read... [19:41:15]Read from MH i2c: E2 03 00 [19:41:15]MH_I2C_Read... [19:41:15]Read from MH i2c: E2 03 00 EA 0E 00 90 00 6C [19:41:15]RAPDU: 90 00 [19:41:15]wFMCommunicate OK [19:41:15]wFMCommunicate request_size=255 [19:41:15]MH_SAM_APDU [19:41:15]CAPDU: 80 0D 02 02 FA 03 00 63 03 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 74 00 8A 04 0D 00 34 36 38 30 30 33 37 [19:41:15]Write to MH i2c: E2 02 01 EB 0E 80 0D 02 02 FA 00 03 00 63 03 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 74 00 8A 04 0D 00 34 36 38 30 30 33 37 00 00 3E [19:41:15]Write i2c OK [19:41:15]MH_I2C_Read... [19:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:16]Read from MH i2c: E2 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 03 00 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 03 00 EB 0E 00 90 00 6D [19:41:16]RAPDU: 90 00 [19:41:16]wFMCommunicate OK [19:41:16]wFMCommunicate request_size=255 [19:41:16]MH_SAM_APDU [19:41:16]CAPDU: 80 0D 02 02 FA 37 32 34 35 30 34 06 04 30 00 D0 90 D1 80 D0 BE D0 BC 20 53 4D 61 72 6B 65 74 20 53 4D 20 31 30 35 30 20 D0 B3 D1 80 D0 B0 D0 BD D1 83 D0 BB D1 8B 20 D0 BA D0 BE D1 84 D0 B5 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 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 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 [19:41:16]Write to MH i2c: E2 02 01 EC 0E 80 0D 02 02 FA 00 37 32 34 35 30 34 06 04 30 00 D0 90 D1 80 D0 BE D0 BC 20 53 4D 61 72 6B 65 74 20 53 4D 20 31 30 35 30 20 D0 B3 D1 80 D0 B0 D0 BD D1 83 D0 BB D1 8B 20 D0 BA D0 BE D1 84 D0 B5 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 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 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 00 00 F5 [19:41:16]Write i2c OK [19:41:16]MH_I2C_Read... [19:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:16]Read from MH i2c: E2 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 03 00 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 03 00 EC 0E 00 90 00 6E [19:41:16]RAPDU: 90 00 [19:41:16]wFMCommunicate OK [19:41:16]wFMCommunicate request_size=255 [19:41:16]MH_SAM_APDU [19:41:16]CAPDU: 80 0D 02 02 FA 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E8 03 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 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 [19:41:16]Write to MH i2c: E2 02 01 ED 0E 80 0D 02 02 FA 00 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E8 03 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 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 00 00 F6 [19:41:16]Write i2c OK [19:41:16]MH_I2C_Read... [19:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:16]Read from MH i2c: E2 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 03 00 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 03 00 ED 0E 00 90 00 6F [19:41:16]RAPDU: 90 00 [19:41:16]wFMCommunicate OK [19:41:16]wFMCommunicate request_size=126 [19:41:16]MH_SAM_APDU [19:41:16]CAPDU: 80 0D 02 02 79 06 00 B1 0D 00 00 00 00 07 04 06 00 E8 80 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 5B 61 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AA 13 00 00 35 04 06 00 2A D1 34 A0 14 E9 [19:41:16]Write to MH i2c: E2 81 00 EE 0E 80 0D 02 02 79 00 06 00 B1 0D 00 00 00 00 07 04 06 00 E8 80 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 5B 61 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AA 13 00 00 35 04 06 00 2A D1 34 A0 14 E9 00 00 41 [19:41:16]Write i2c OK [19:41:16]MH_I2C_Read... [19:41:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:16]Read from MH i2c: E2 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 03 00 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 03 00 EE 0E 00 90 00 70 [19:41:16]RAPDU: 90 00 [19:41:16]wFMCommunicate OK [19:41:16]wFMCommunicate request_size=4 [19:41:16]MH_SAM_APDU [19:41:16]CAPDU: 80 0D 03 02 [19:41:16]Write to MH i2c: E2 08 00 EF 0E 80 0D 03 02 00 00 00 00 78 [19:41:16]Write i2c OK [19:41:16]MH_I2C_Read... [19:41:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:16]Read from MH i2c: E2 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 0B 00 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 0B 00 EF 0E 00 D0 CF F5 DA 15 BE F7 7B 90 00 2C [19:41:16]RAPDU: D0 CF F5 DA 15 BE F7 7B 90 00 [19:41:16]wFMCommunicate OK [19:41:16]SAM_PROTO_SignData done [19:41:16]FM_MakeSignedData done [19:41:16]CreateOFDProtocolMessage [19:41:16]wFMCommunicate request_size=4 [19:41:16]MH_SAM_APDU [19:41:16]CAPDU: 80 11 00 00 [19:41:16]Write to MH i2c: E2 08 00 F0 0E 80 11 00 00 00 00 00 00 78 [19:41:16]Write i2c OK [19:41:16]MH_I2C_Read... [19:41:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:16]Read from MH i2c: E2 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 17 00 [19:41:16]MH_I2C_Read... [19:41:16]Read from MH i2c: E2 17 00 F0 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 CD [19:41:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:41:16]wFMCommunicate OK [19:41:16]CreateOFDProtocolMessage done [19:41:16]OFDSenderStorePacket 5034 [19:41:16]StoreOFDPacket docnum=5034 [19:41:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 77 03 00 00 F1 86 6F 03 8F 2B 5A 03 01 00 03 00 63 03 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 74 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 35 30 34 06 04 30 00 D0 90 D1 80 D0 BE D0 BC 20 53 4D 61 72 6B 65 74 20 53 4D 20 31 30 35 30 20 D0 B3 D1 80 D0 B0 D0 BD D1 83 D0 BB D1 8B 20 D0 BA D0 BE D1 84 D0 B5 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 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 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E8 03 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 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0D 00 00 00 00 07 04 06 00 E8 80 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 5B 61 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AA 13 00 00 35 04 06 00 2A D1 34 A0 14 E9 D0 CF F5 DA 15 BE F7 7B [19:41:16]CheckFolder [19:41:16]dirname=/storage/ofd_packets [19:41:16]CheckFolder done [19:41:16]ProducePacketName [19:41:16]name=ofd_packets/00005034 [19:41:17]NVStorageSaveData ofd_packets/00005034 [19:41:17]File name is /storage/ofd_packets/00005034 [19:41:17]Write 917 bytes [19:41:17]NVStorageSaveData done [19:41:17]OFDSenderStorePacket done [19:41:17]KKMCreateOFDPacket done [19:41:17]NVStorageSaveData kkm_last_timestamp [19:41:17]File name is /storage/kkm_last_timestamp [19:41:17]Write 4 bytes [19:41:17]NVStorageSaveData done [19:41:17]ExternCall_PrintAddStr [19:41:17]wPrintStart [19:41:17]Write to MH i2c: 01 00 00 F1 0E FF [19:41:17]Write i2c OK [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: 01 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: 01 07 00 [19:41:17]MH_I2C_Read... [19:41:17]Read from MH i2c: 01 07 00 F1 0E 00 00 00 00 00 FF 0F 14 [19:41:17]RasterBufferAndPrint [19:41:17]line Счет N : (3)141025 [19:41:17]line ИНН: 02508201610067 [19:41:17]line Контрольно-Кассовый Чек [19:41:17]line ПРОДАЖА [19:41:17]line Товар: 4700000160211 [19:41:17]line Вода Легенда 0,5л [19:41:17]line 1.000 * 40.00 [19:41:17]line = 40.00 [19:41:17]line НДС 12% НСП 1% [19:41:17]line > о реализуемом товаре [19:41:17]line Товар: 4870002325441 [19:41:17]line Вода ASU пит н.газ лимон ПЭТ 0,5л [19:41:17]line 1.000 * 65.00 [19:41:17]line = 65.00 [19:41:17]line НДС 12% НСП 1% [19:41:17]line > о реализуемом товаре [19:41:17]line Товар: 4680037724504 [19:41:17]line Аром SMarket SM 1050 гранулы кофе [19:41:17]line 1.000 * 60.00 [19:41:17]line = 60.00 [19:41:17]line НДС 12% НСП 1% [19:41:17]line > о реализуемом товаре [19:41:17]line Товар: 4700000480050 [19:41:17]line Напиток Nitro Energy эн green ж/б 0,45л [19:41:17]line 1.000 * 95.00 [19:41:17]line = 95.00 [19:41:17]line НДС 12% НСП 1% [19:41:17]line > о реализуемом товаре [19:41:17]line Товар: 4700000310173 [19:41:17]line Вода Адыгене 0,5л б/г [19:41:17]line 1.000 * 30.00 [19:41:17]line = 30.00 [19:41:17]line НДС 12% НСП 1% [19:41:17]line > о реализуемом товаре [19:41:17]line Товар: 4620017450726 [19:41:17]line Кар. Страйк ассорти 11.3г/50шт [19:41:17]line 4.000 * 10.00 [19:41:17]line = 40.00 [19:41:17]line НДС 12% НСП 1% [19:41:17]line > о реализуемом товаре [19:41:17]line ИТОГО: 330.00 [19:41:17]line НСП 1% : 2.90 [19:41:17]line НДС 12% : 35.05 [19:41:17]line Наличными: 330.00 [19:41:17]line Безнал.: 0.00 [19:41:17]line Место: АЗС № 135 "Партнер Нефть" [19:41:17]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:41:17]line СНО: Общий режим [19:41:17]line Чек 94 16.05.2024 19:41 [19:41:17]line Смена: 44 ФФД: 1.0 [19:41:17]line ЗНМ: 0300000237 [19:41:17]line РНМ: 0000000000154221 [19:41:17]line Версия ККМ: v1.0 [19:41:17]line ФМ: 0000000000963259 [19:41:17]line ФД: 5034 [19:41:17]line ФПД: 47078019437801 [19:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T194115&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5034&fm=47078019437801&tin=02508201610067®Number=0000000000154221&sum=33000 [19:41:17]OFD Sender: Processing packet 5034 [packets to send 4, broken 3] [19:41:17]ProducePacketName [19:41:17]name=ofd_packets/00005034 [19:41:17]OFD Sender: To server: pG, [19:41:17]CommunicateWithHost lk.salyk.kg:30040 [19:41:17]ConnectInit lk.salyk.kg [19:41:17]line 0 [19:41:17]written 0, free lines is 4095 [19:41:17]Connected sock=10 [19:41:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 77 03 00 00 F1 86 6F 03 8F 2B 5A 03 01 00 03 00 63 03 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 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 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 74 00 8A 04 0D 00 34 36 38 30 30 33 37 37 32 34 35 30 34 06 04 30 00 D0 90 D1 80 D0 BE D0 BC 20 53 4D 61 72 6B 65 74 20 53 4D 20 31 30 35 30 20 D0 B3 D1 80 D0 B0 D0 BD D1 83 D0 BB D1 8B 20 D0 BA D0 BE D1 84 D0 B5 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 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 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 30 37 32 36 06 04 31 00 D0 9A D0 B0 D1 80 2E 20 D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 20 31 31 2E 33 D0 B3 2F 35 30 D1 88 D1 82 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 E8 03 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 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 22 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 0D 00 00 00 00 07 04 06 00 E8 80 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 5B 61 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AA 13 00 00 35 04 06 00 2A D1 34 A0 14 E9 D0 CF F5 DA 15 BE F7 7B [19:41:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 91 AA 47 00 81 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AA 13 00 00 F4 03 04 00 1F 0D 46 66 B6 04 01 00 00 89 66 5A 80 30 D7 25 9A [19:41:17]CommunicateWithHost err = 0 [19:41:17]CheckOFDResponse [19:41:17]1017 (14) - 77093643461234 [19:41:17]1041 (16) - 0000000000963259 [19:41:17]1040 (4) - 5034 [19:41:17]1012 (4) - 16.05.2024 13:41 [19:41:17]1206 (1) - 0 [19:41:17]OFD Sender: Remove packet 5034 [19:41:17]ProducePacketName [19:41:17]name=ofd_packets/00005034 [19:41:17]NVStorageDeleteData [19:41:18]Write to MH i2c: 01 00 00 3B 0F 4A [19:41:18]Write i2c OK [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: 01 [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: 01 07 00 [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: 01 07 00 3B 0F 00 00 00 00 00 F8 09 52 [19:41:18]RasterBufferAndPrint [19:41:18]line [19:41:18]line [19:41:18]line [19:41:18]line [19:41:18]line [19:41:18]written 0, free lines is 2560 [19:41:18]MH_Cut [19:41:18]Write to MH i2c: D1 01 00 42 0F 01 23 [19:41:18]Write i2c OK [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: D1 [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: D1 01 00 [19:41:18]MH_I2C_Read... [19:41:18]Read from MH i2c: D1 01 00 42 0F 00 22 [19:41:18]Write to MH i2c: 01 00 00 43 0F 52 [19:41:18]Write i2c OK [19:41:18]MH_I2C_Read... [19:41:18]OFD Sender: No OFD packet to send [19:41:19]*** Cut start [19:41:19]*** Partial cut [19:41:19]*** CUTSNS_PIN = 1 [19:41:19]*** CUTSNS_PIN = 0 [19:41:20]*** Brake cut motor [19:41:20]Read from MH i2c: 01 [19:41:20]MH_I2C_Read... [19:41:20]*** Stop cut motor [19:41:20]*** Cut end [19:41:20]Read from MH i2c: 01 07 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: 01 07 00 43 0F 00 00 00 00 00 FF 0F 67 [19:41:20]process_action close_receipt done [19:41:20]requested_data is exist [19:41:20]produce_requested_data [19:41:20]requested_item fm.sn is exist - process it [19:41:20]wFMCommunicate request_size=4 [19:41:20]MH_SAM_APDU [19:41:20]CAPDU: 80 11 00 00 [19:41:20]Write to MH i2c: E2 08 00 44 0F 80 11 00 00 00 00 00 00 CD [19:41:20]Write i2c OK [19:41:20]MH_I2C_Read... [19:41:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:20]Read from MH i2c: E2 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 17 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 17 00 44 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 22 [19:41:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:41:20]wFMCommunicate OK [19:41:20]requested_item fd.num is exist - process it [19:41:20]SAM_PROTO_GetFieldsCounters [19:41:20]wFMCommunicate request_size=4 [19:41:20]MH_SAM_APDU [19:41:20]CAPDU: 80 13 00 00 [19:41:20]Write to MH i2c: E2 08 00 45 0F 80 13 00 00 00 00 00 00 D0 [19:41:20]Write i2c OK [19:41:20]MH_I2C_Read... [19:41:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:20]Read from MH i2c: E2 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 62 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 62 00 45 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AA 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [19:41:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AA 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:20]wFMCommunicate OK [19:41:20]SAM_PROTO_GetFieldsCounters done [19:41:20]requested_item shift.num is exist - process it [19:41:20]requested_item shift.opened is exist - process it [19:41:20]req_shift_opened [19:41:20]FM_GetShiftState [19:41:20]SAM_PROTO_GetShiftState [19:41:20]wFMCommunicate request_size=4 [19:41:20]MH_SAM_APDU [19:41:20]CAPDU: 80 13 01 00 [19:41:20]Write to MH i2c: E2 08 00 46 0F 80 13 01 00 00 00 00 00 D2 [19:41:20]Write i2c OK [19:41:20]MH_I2C_Read... [19:41:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:20]Read from MH i2c: E2 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 0E 00 [19:41:20]MH_I2C_Read... [19:41:20]Read from MH i2c: E2 0E 00 46 0F 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 DE [19:41:20]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:41:20]wFMCommunicate OK [19:41:20]SAM_PROTO_GetShiftState done [19:41:20]FM_GetShiftState done [19:41:20]req_shift_opened done [19:41:20]requested_item shift.open_date is exist - process it [19:41:20]req_shift_open_date [19:41:20]req_shift_open_date done [19:41:20]produce_requested_data done [19:41:20]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5034,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:41:20]process_action_free close_receipt [19:41:20]json_value_free [19:41:20]json_value_free done [19:41:20]process_json_proto returns [19:41:20]Send response to host [19:41:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5034,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:41:20]free response buf [19:41:20]execute_script done [19:41:20]execute_script returns [19:41:20]free content buf [19:41:20]Sock 7.Close socket [19:41:20]Sock 7.Thread stoped [19:41:23]OFD Sender: No OFD packet to send [19:41:28]OFD Sender: No OFD packet to send [19:41:33]OFD Sender: No OFD packet to send [19:41:38]OFD Sender: No OFD packet to send [19:41:43]OFD Sender: No OFD packet to send [19:41:48]OFD Sender: No OFD packet to send [19:41:53]OFD Sender: No OFD packet to send [19:41:58]OFD Sender: No OFD packet to send [19:42:03]OFD Sender: No OFD packet to send [19:42:08]OFD Sender: No OFD packet to send [19:42:13]OFD Sender: No OFD packet to send [19:42:18]OFD Sender: No OFD packet to send [19:42:23]OFD Sender: No OFD packet to send [19:42:28]OFD Sender: No OFD packet to send [19:42:33]OFD Sender: No OFD packet to send [19:42:38]OFD Sender: No OFD packet to send [19:42:43]OFD Sender: No OFD packet to send [19:42:48]OFD Sender: No OFD packet to send [19:42:53]OFD Sender: No OFD packet to send [19:42:58]OFD Sender: No OFD packet to send [19:43:03]OFD Sender: No OFD packet to send [19:43:08]OFD Sender: No OFD packet to send [19:43:13]OFD Sender: No OFD packet to send [19:43:17]accept exits with 9 [19:43:17]New connection [19:43:17]New thread 3067108708 created [19:43:17]Thread 3067252068 joined [19:43:17]Waiting for new connection... [19:43:17] Sock 9.Parse request [19:43:17]Sock 9.Check first char [19:43:17]Sock 9.First char is OK [19:43:17]request: POST /json_proto HTTP/1.0 [19:43:17]Method: POST [19:43:17]URL: /json_proto [19:43:17]Method is POST - this is cgi request [19:43:17]url: /json_proto [19:43:17]query_string will be loaded in cgi processing [19:43:17]execute_cgi json_proto POST (null) [19:43:17]execute_cgi path=json_proto method=POST [19:43:17]POST find Content-Length [19:43:17]Host: 172.17.44.4:8080 [19:43:17]Content-Length: 682 [19:43:17]Content-Type: application/json [19:43:17] [19:43:17]POST finish read [19:43:17]Found Content-Length = 682 [19:43:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141026", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:17]execute_script... [19:43: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)141026", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:43:17]POST & json_proto [19:43:17]process_json_proto [19:43:17]json parsed OK: [19:43:17]protocol is kg_v1.0 [19:43:17]action value=close_receipt [19:43:17]process_action close_receipt [19:43:17]cmd_close_receipt [19:43:17]MH_GetDate [19:43:17]Write to MH i2c: F0 00 00 47 0F 45 [19:43:17]Write i2c OK [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: F0 [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: F0 09 00 [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: F0 09 00 47 0F 00 D7 61 46 66 6C E9 28 66 15 [19:43:17]GetLastDocTimeStamp 1715888475 [19:43:17]current date 1715888599 [19:43:17]FM_GetShiftState [19:43:17]SAM_PROTO_GetShiftState [19:43:17]wFMCommunicate request_size=4 [19:43:17]MH_SAM_APDU [19:43:17]CAPDU: 80 13 01 00 [19:43:17]Write to MH i2c: E2 08 00 48 0F 80 13 01 00 00 00 00 00 D4 [19:43:17]Write i2c OK [19:43:17]MH_I2C_Read... [19:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:17]Read from MH i2c: E2 [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: E2 0E 00 [19:43:17]MH_I2C_Read... [19:43:17]Read from MH i2c: E2 0E 00 48 0F 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E0 [19:43:17]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:43:17]wFMCommunicate OK [19:43:17]SAM_PROTO_GetShiftState done [19:43:17]FM_GetShiftState done [19:43:17]opened in 1715818246 [19:43:17]opened+sec_in_day 1715904646 [19:43:17]quantity*price = 7000 [19:43:17]sum+1 = 7001 [19:43:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 95 16.05.2024 19:43 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5035 ФПД: 58241987450223 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T194319&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5035&fm=58241987450223&tin=02508201610067®Number=0000000000154221&sum=7000 0 [19:43:18]StoreToDocumentArchive [19:43:18]shift 44 fd 5035 [19:43:18]save to /storage/0044/doc_00005035 [19:43:18]save last doc name /storage/0044/doc_00005035 to /storage/kkm_last_doc_name [19:43:18]save OK [19:43:18]Clear old archive folders... [19:43:18]ProcessDocumentItem done err = 0, tmpTLVsize=293 [19:43:18]tlvbuf is 011E4E30 [19:43:18]SAM_PROTO_ClearQueue [19:43:18]wFMCommunicate request_size=4 [19:43:18]MH_SAM_APDU [19:43:18]CAPDU: 80 09 00 00 [19:43:19]Write to MH i2c: E2 08 00 55 0F 80 09 00 00 00 00 00 00 D6 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 55 0F 00 90 00 D8 [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]SAM_PROTO_ClearQueue done [19:43:19]KKMCreateOFDPacket [19:43:19]OFDProtocolAddRootSTLVToBuf [19:43:19]FM_MakeSignedData [19:43:19]FM_MakeSignedData [19:43:19]SAM_PROTO_SignData [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 0D 01 02 [19:43:19]Write to MH i2c: E2 08 00 56 0F 80 0D 01 02 00 00 00 00 DE [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 56 0F 00 90 00 D9 [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]wFMCommunicate request_size=255 [19:43:19]MH_SAM_APDU [19:43:19]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 32 30 32 35 32 31 31 34 38 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D7 61 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [19:43:19]Write to MH i2c: E2 02 01 57 0F 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 32 30 32 35 32 31 31 34 38 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D7 61 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 BF [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 57 0F 00 90 00 DA [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]wFMCommunicate request_size=52 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 0D 02 02 2F 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AB 13 00 00 35 04 06 00 34 F8 84 F9 15 6F [19:43:19]Write to MH i2c: E2 37 00 58 0F 80 0D 02 02 2F 00 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AB 13 00 00 35 04 06 00 34 F8 84 F9 15 6F 00 00 87 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 03 00 58 0F 00 90 00 DB [19:43:19]RAPDU: 90 00 [19:43:19]wFMCommunicate OK [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 0D 03 02 [19:43:19]Write to MH i2c: E2 08 00 59 0F 80 0D 03 02 00 00 00 00 E3 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 0B 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 0B 00 59 0F 00 F0 6D D3 6F E6 F4 F8 B6 90 00 0B [19:43:19]RAPDU: F0 6D D3 6F E6 F4 F8 B6 90 00 [19:43:19]wFMCommunicate OK [19:43:19]SAM_PROTO_SignData done [19:43:19]FM_MakeSignedData done [19:43:19]CreateOFDProtocolMessage [19:43:19]wFMCommunicate request_size=4 [19:43:19]MH_SAM_APDU [19:43:19]CAPDU: 80 11 00 00 [19:43:19]Write to MH i2c: E2 08 00 5A 0F 80 11 00 00 00 00 00 00 E3 [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:19]Read from MH i2c: E2 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 17 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: E2 17 00 5A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 38 [19:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:43:19]wFMCommunicate OK [19:43:19]CreateOFDProtocolMessage done [19:43:19]OFDSenderStorePacket 5035 [19:43:19]StoreOFDPacket docnum=5035 [19:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 39 01 00 00 98 2E 31 01 85 F8 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 32 30 32 35 32 31 31 34 38 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D7 61 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AB 13 00 00 35 04 06 00 34 F8 84 F9 15 6F F0 6D D3 6F E6 F4 F8 B6 [19:43:19]CheckFolder [19:43:19]dirname=/storage/ofd_packets [19:43:19]CheckFolder done [19:43:19]ProducePacketName [19:43:19]name=ofd_packets/00005035 [19:43:19]NVStorageSaveData ofd_packets/00005035 [19:43:19]File name is /storage/ofd_packets/00005035 [19:43:19]Write 343 bytes [19:43:19]NVStorageSaveData done [19:43:19]OFDSenderStorePacket done [19:43:19]KKMCreateOFDPacket done [19:43:19]NVStorageSaveData kkm_last_timestamp [19:43:19]File name is /storage/kkm_last_timestamp [19:43:19]Write 4 bytes [19:43:19]NVStorageSaveData done [19:43:19]ExternCall_PrintAddStr [19:43:19]wPrintStart [19:43:19]Write to MH i2c: 01 00 00 5B 0F 6A [19:43:19]OFD Sender: Processing packet 5035 [packets to send 4, broken 3] [19:43:19]ProducePacketName [19:43:19]name=ofd_packets/00005035 [19:43:19]OFD Sender: To server: pG, [19:43:19]CommunicateWithHost lk.salyk.kg:30040 [19:43:19]ConnectInit lk.salyk.kg [19:43:19]Write i2c OK [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: 01 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: 01 07 00 [19:43:19]MH_I2C_Read... [19:43:19]Read from MH i2c: 01 07 00 5B 0F 00 00 00 00 00 FF 0F 7F [19:43:19]RasterBufferAndPrint [19:43:19]line Счет N : (3)141026 [19:43:19]line ИНН: 02508201610067 [19:43:19]line Контрольно-Кассовый Чек [19:43:19]line ПРОДАЖА [19:43:19]line Товар: 4870202521148 [19:43:19]line Напиток MAXI чай зел лимон 0.45л [19:43:19]line 1.000 * 70.00 [19:43:19]line = 70.00 [19:43:19]line НДС 12% НСП 1% [19:43:19]line > о реализуемом товаре [19:43:19]line ИТОГО: 70.00 [19:43:19]line НСП 1% : 0.62 [19:43:19]line НДС 12% : 7.43 [19:43:19]line Наличными: 70.00 [19:43:19]line Безнал.: 0.00 [19:43:19]line Место: АЗС № 135 "Партнер Нефть" [19:43:19]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:43:19]line СНО: Общий режим [19:43:19]line Чек 95 16.05.2024 19:43 [19:43:19]line Смена: 44 ФФД: 1.0 [19:43:19]line ЗНМ: 0300000237 [19:43:19]line РНМ: 0000000000154221 [19:43:19]line Версия ККМ: v1.0 [19:43:19]line ФМ: 0000000000963259 [19:43:19]line ФД: 5035 [19:43:19]line ФПД: 58241987450223 [19:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T194319&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5035&fm=58241987450223&tin=02508201610067®Number=0000000000154221&sum=7000 [19:43:19]line 0 [19:43:19]Connected sock=10 [19:43:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 39 01 00 00 98 2E 31 01 85 F8 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 32 30 32 35 32 31 31 34 38 06 04 33 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 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 D7 61 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AB 13 00 00 35 04 06 00 34 F8 84 F9 15 6F F0 6D D3 6F E6 F4 F8 B6 [19:43:19]written 0, free lines is 4095 [19:43:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 DA 48 47 00 70 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AB 13 00 00 F4 03 04 00 9A 0D 46 66 B6 04 01 00 00 96 39 D4 4C 4E E4 9B 9D [19:43:20]CommunicateWithHost err = 0 [19:43:20]CheckOFDResponse [19:43:20]1017 (14) - 77093643461234 [19:43:20]1041 (16) - 0000000000963259 [19:43:20]1040 (4) - 5035 [19:43:20]1012 (4) - 16.05.2024 13:43 [19:43:20]1206 (1) - 0 [19:43:20]OFD Sender: Remove packet 5035 [19:43:20]ProducePacketName [19:43:20]name=ofd_packets/00005035 [19:43:20]NVStorageDeleteData [19:43:20]Write to MH i2c: 01 00 00 84 0F 93 [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 07 00 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: 01 07 00 84 0F 00 00 00 00 00 88 0C 2E [19:43:20]RasterBufferAndPrint [19:43:20]line [19:43:20]line [19:43:20]line [19:43:20]line [19:43:20]line [19:43:20]written 0, free lines is 3212 [19:43:20]MH_Cut [19:43:20]Write to MH i2c: D1 01 00 8B 0F 01 6C [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: D1 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: D1 01 00 [19:43:20]MH_I2C_Read... [19:43:20]Read from MH i2c: D1 01 00 8B 0F 00 6B [19:43:20]Write to MH i2c: 01 00 00 8C 0F 9B [19:43:20]Write i2c OK [19:43:20]MH_I2C_Read... [19:43:20]OFD Sender: No OFD packet to send [19:43:21]*** Cut start [19:43:21]*** Partial cut [19:43:21]*** CUTSNS_PIN = 1 [19:43:21]*** CUTSNS_PIN = 0 [19:43:21]*** Brake cut motor [19:43:22]Read from MH i2c: 01 [19:43:22]MH_I2C_Read... [19:43:22]*** Stop cut motor [19:43:22]*** Cut end [19:43:22]Read from MH i2c: 01 07 00 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: 01 07 00 8C 0F 00 00 00 00 00 FF 0F B0 [19:43:22]process_action close_receipt done [19:43:22]requested_data is exist [19:43:22]produce_requested_data [19:43:22]requested_item fm.sn is exist - process it [19:43:22]wFMCommunicate request_size=4 [19:43:22]MH_SAM_APDU [19:43:22]CAPDU: 80 11 00 00 [19:43:22]Write to MH i2c: E2 08 00 8D 0F 80 11 00 00 00 00 00 00 16 [19:43:22]Write i2c OK [19:43:22]MH_I2C_Read... [19:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:43:22]Read from MH i2c: E2 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: E2 17 00 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: E2 17 00 8D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 6B [19:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:43:22]wFMCommunicate OK [19:43:22]requested_item fd.num is exist - process it [19:43:22]SAM_PROTO_GetFieldsCounters [19:43:22]wFMCommunicate request_size=4 [19:43:22]MH_SAM_APDU [19:43:22]CAPDU: 80 13 00 00 [19:43:22]Write to MH i2c: E2 08 00 8E 0F 80 13 00 00 00 00 00 00 19 [19:43:22]Write i2c OK [19:43:22]MH_I2C_Read... [19:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:43:22]Read from MH i2c: E2 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: E2 62 00 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: E2 62 00 8E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AB 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [19:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AB 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:43:22]wFMCommunicate OK [19:43:22]SAM_PROTO_GetFieldsCounters done [19:43:22]requested_item shift.num is exist - process it [19:43:22]requested_item shift.opened is exist - process it [19:43:22]req_shift_opened [19:43:22]FM_GetShiftState [19:43:22]SAM_PROTO_GetShiftState [19:43:22]wFMCommunicate request_size=4 [19:43:22]MH_SAM_APDU [19:43:22]CAPDU: 80 13 01 00 [19:43:22]Write to MH i2c: E2 08 00 8F 0F 80 13 01 00 00 00 00 00 1B [19:43:22]Write i2c OK [19:43:22]MH_I2C_Read... [19:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:43:22]Read from MH i2c: E2 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: E2 0E 00 [19:43:22]MH_I2C_Read... [19:43:22]Read from MH i2c: E2 0E 00 8F 0F 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 27 [19:43:22]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:43:22]wFMCommunicate OK [19:43:22]SAM_PROTO_GetShiftState done [19:43:22]FM_GetShiftState done [19:43:22]req_shift_opened done [19:43:22]requested_item shift.open_date is exist - process it [19:43:22]req_shift_open_date [19:43:22]req_shift_open_date done [19:43:22]produce_requested_data done [19:43:22]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5035,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:43:22]process_action_free close_receipt [19:43:22]json_value_free [19:43:22]json_value_free done [19:43:22]process_json_proto returns [19:43:22]Send response to host [19:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5035,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:43:22]free response buf [19:43:22]execute_script done [19:43:22]execute_script returns [19:43:22]free content buf [19:43:22]Sock 9.Close socket [19:43:22]Sock 9.Thread stoped [19:43:25]OFD Sender: No OFD packet to send [19:43:30]OFD Sender: No OFD packet to send [19:43:35]OFD Sender: No OFD packet to send [19:43:40]OFD Sender: No OFD packet to send [19:43:45]OFD Sender: No OFD packet to send [19:43:50]OFD Sender: No OFD packet to send [19:43:55]OFD Sender: No OFD packet to send [19:44:00]OFD Sender: No OFD packet to send [19:44:05]OFD Sender: No OFD packet to send [19:44:10]OFD Sender: No OFD packet to send [19:44:15]OFD Sender: No OFD packet to send [19:44:20]OFD Sender: No OFD packet to send [19:44:25]OFD Sender: No OFD packet to send [19:44:30]OFD Sender: No OFD packet to send [19:44:35]OFD Sender: No OFD packet to send [19:44:38]accept exits with 7 [19:44:38]New connection [19:44:38]New thread 3067252068 created [19:44:38]Thread 3067108708 joined [19:44:38]Waiting for new connection... [19:44:38] Sock 7.Parse request [19:44:38]Sock 7.Check first char [19:44:38]Sock 7.First char is OK [19:44:38]request: POST /json_proto HTTP/1.0 [19:44:38]Method: POST [19:44:38]URL: /json_proto [19:44:38]Method is POST - this is cgi request [19:44:38]url: /json_proto [19:44:38]query_string will be loaded in cgi processing [19:44:38]execute_cgi json_proto POST (null) [19:44:38]execute_cgi path=json_proto method=POST [19:44:38]POST find Content-Length [19:44:38]Host: 172.17.44.4:8080 [19:44:38]Content-Length: 681 [19:44:38]Content-Type: application/json [19:44:38] [19:44:38]POST finish read [19:44:38]Found Content-Length = 681 [19:44:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.20, "quantity" : 8.780, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:38]execute_script... [19: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 : (1)1993119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 34.20, "quantity" : 8.780, "sum" : 300.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:38]POST & json_proto [19:44:38]process_json_proto [19:44:38]json parsed OK: [19:44:38]protocol is kg_v1.0 [19:44:38]action value=close_receipt [19:44:38]process_action close_receipt [19:44:38]cmd_close_receipt [19:44:38]MH_GetDate [19:44:38]Write to MH i2c: F0 00 00 90 0F 8E [19:44:38]Write i2c OK [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: F0 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: F0 09 00 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: F0 09 00 90 0F 00 27 62 46 66 6C E9 28 66 AF [19:44:38]GetLastDocTimeStamp 1715888599 [19:44:38]current date 1715888679 [19:44:38]FM_GetShiftState [19:44:38]SAM_PROTO_GetShiftState [19:44:38]wFMCommunicate request_size=4 [19:44:38]MH_SAM_APDU [19:44:38]CAPDU: 80 13 01 00 [19:44:38]Write to MH i2c: E2 08 00 91 0F 80 13 01 00 00 00 00 00 1D [19:44:38]Write i2c OK [19:44:38]MH_I2C_Read... [19:44:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:38]Read from MH i2c: E2 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 0E 00 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 0E 00 91 0F 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 29 [19:44:38]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:44:38]wFMCommunicate OK [19:44:38]SAM_PROTO_GetShiftState done [19:44:38]FM_GetShiftState done [19:44:38]opened in 1715818246 [19:44:38]opened+sec_in_day 1715904646 [19:44:38]quantity*price = 30027 [19:44:38]sum+1 = 30029 [19:44:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 96 16.05.2024 19:44 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5036 ФПД: 20392517111917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T194439&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5036&fm=20392517111917&tin=02508201610067®Number=0000000000154221&sum=30000 [19:44:39]StoreToDocumentArchive [19:44:39]shift 44 fd 5036 [19:44:39]save to /storage/0044/doc_00005036 [19:44:39]save last doc name /storage/0044/doc_00005036 to /storage/kkm_last_doc_name [19:44:39]save OK [19:44:39]Clear old archive folders... [19:44:39]ProcessDocumentItem done err = 0, tmpTLVsize=250 [19:44:39]tlvbuf is 011A7510 [19:44:39]SAM_PROTO_ClearQueue [19:44:39]wFMCommunicate request_size=4 [19:44:39]MH_SAM_APDU [19:44:39]CAPDU: 80 09 00 00 [19:44:39]Write to MH i2c: E2 08 00 9E 0F 80 09 00 00 00 00 00 00 1F [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:39]Read from MH i2c: E2 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 03 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 03 00 9E 0F 00 90 00 21 [19:44:39]RAPDU: 90 00 [19:44:39]wFMCommunicate OK [19:44:39]SAM_PROTO_ClearQueue done [19:44:39]KKMCreateOFDPacket [19:44:39]OFDProtocolAddRootSTLVToBuf [19:44:39]FM_MakeSignedData [19:44:39]FM_MakeSignedData [19:44:39]SAM_PROTO_SignData [19:44:39]wFMCommunicate request_size=4 [19:44:39]MH_SAM_APDU [19:44:39]CAPDU: 80 0D 01 02 [19:44:39]Write to MH i2c: E2 08 00 9F 0F 80 0D 01 02 00 00 00 00 27 [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:39]Read from MH i2c: E2 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 03 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 03 00 9F 0F 00 90 00 22 [19:44:39]RAPDU: 90 00 [19:44:39]wFMCommunicate OK [19:44:39]wFMCommunicate request_size=255 [19:44:39]MH_SAM_APDU [19:44:39]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 27 62 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AC 13 00 00 35 04 06 00 12 8C [19:44:39]Write to MH i2c: E2 02 01 A0 0F 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 27 62 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AC 13 00 00 35 04 06 00 12 8C 00 00 5C [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:39]Read from MH i2c: E2 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 03 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 03 00 A0 0F 00 90 00 23 [19:44:39]RAPDU: 90 00 [19:44:39]wFMCommunicate OK [19:44:39]wFMCommunicate request_size=9 [19:44:39]MH_SAM_APDU [19:44:39]CAPDU: 80 0D 02 02 04 00 BD 10 6D [19:44:39]Write to MH i2c: E2 0C 00 A1 0F 80 0D 02 02 04 00 00 BD 10 6D 00 00 6C [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:39]Read from MH i2c: E2 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 03 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 03 00 A1 0F 00 90 00 24 [19:44:39]RAPDU: 90 00 [19:44:39]wFMCommunicate OK [19:44:39]wFMCommunicate request_size=4 [19:44:39]MH_SAM_APDU [19:44:39]CAPDU: 80 0D 03 02 [19:44:39]Write to MH i2c: E2 08 00 A2 0F 80 0D 03 02 00 00 00 00 2C [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:39]Read from MH i2c: E2 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 0B 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 0B 00 A2 0F 00 9B D4 E1 CE EB 83 E1 C5 90 00 5F [19:44:39]RAPDU: 9B D4 E1 CE EB 83 E1 C5 90 00 [19:44:39]wFMCommunicate OK [19:44:39]SAM_PROTO_SignData done [19:44:39]FM_MakeSignedData done [19:44:39]CreateOFDProtocolMessage [19:44:39]wFMCommunicate request_size=4 [19:44:39]MH_SAM_APDU [19:44:39]CAPDU: 80 11 00 00 [19:44:39]Write to MH i2c: E2 08 00 A3 0F 80 11 00 00 00 00 00 00 2C [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:39]Read from MH i2c: E2 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 17 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: E2 17 00 A3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 81 [19:44:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:44:39]wFMCommunicate OK [19:44:39]CreateOFDProtocolMessage done [19:44:39]OFDSenderStorePacket 5036 [19:44:39]StoreOFDPacket docnum=5036 [19:44:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0E 01 00 00 34 FE 06 01 36 D0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 27 62 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AC 13 00 00 35 04 06 00 12 8C 00 BD 10 6D 9B D4 E1 CE EB 83 E1 C5 [19:44:39]CheckFolder [19:44:39]dirname=/storage/ofd_packets [19:44:39]CheckFolder done [19:44:39]ProducePacketName [19:44:39]name=ofd_packets/00005036 [19:44:39]NVStorageSaveData ofd_packets/00005036 [19:44:39]File name is /storage/ofd_packets/00005036 [19:44:39]Write 300 bytes [19:44:39]NVStorageSaveData done [19:44:39]OFDSenderStorePacket done [19:44:39]KKMCreateOFDPacket done [19:44:39]NVStorageSaveData kkm_last_timestamp [19:44:39]File name is /storage/kkm_last_timestamp [19:44:39]Write 4 bytes [19:44:39]NVStorageSaveData done [19:44:39]ExternCall_PrintAddStr [19:44:39]wPrintStart [19:44:39]Write to MH i2c: 01 00 00 A4 0F B3 [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: 01 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: 01 07 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: 01 07 00 A4 0F 00 00 00 00 00 FF 0F C8 [19:44:39]RasterBufferAndPrint [19:44:39]line Счет N : (1)1993119 [19:44:39]line ИНН: 02508201610067 [19:44:39]line Контрольно-Кассовый Чек [19:44:39]line ПРОДАЖА [19:44:39]line ТРК (МРК, ГНК) : 81 [19:44:39]line Товар: 2711190000 [19:44:39]line ГАЗ-К-5 [19:44:39]line 8.780 * 34.20 [19:44:39]line = 300.28 [19:44:39]line НДС 12% НСП 1% [19:44:39]line > о реализуемом товаре [19:44:39]line ОКРУГЛЕНИЕ: -0.28 [19:44:39]line ИТОГО: 300.00 [19:44:39]line Внесено: 300.00 [19:44:39]line СДАЧА: 0.00 [19:44:39]line НСП 1% : 2.66 [19:44:39]line НДС 12% : 31.89 [19:44:39]line Наличными: 300.00 [19:44:39]line Безнал.: 0.00 [19:44:39]line Место: АЗС № 135 "Партнер Нефть" [19:44:39]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:44:39]line СНО: Общий режим [19:44:39]line Чек 96 16.05.2024 19:44 [19:44:39]line Смена: 44 ФФД: 1.0 [19:44:39]line ЗНМ: 0300000237 [19:44:39]line РНМ: 0000000000154221 [19:44:39]line Версия ККМ: v1.0 [19:44:39]line ФМ: 0000000000963259 [19:44:39]line ФД: 5036 [19:44:39]line ФПД: 20392517111917 [19:44:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T194439&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5036&fm=20392517111917&tin=02508201610067®Number=0000000000154221&sum=30000 [19:44:40]OFD Sender: Processing packet 5036 [packets to send 4, broken 3] [19:44:40]ProducePacketName [19:44:40]name=ofd_packets/00005036 [19:44:40]OFD Sender: To server: pG, [19:44:40]CommunicateWithHost lk.salyk.kg:30040 [19:44:40]ConnectInit lk.salyk.kg [19:44:40]written 0, free lines is 4095 [19:44:40]Connected sock=10 [19:44:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0E 01 00 00 34 FE 06 01 36 D0 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 4C 22 00 00 00 00 00 37 04 06 00 5C 0D 00 00 00 00 13 04 06 00 4C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 75 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 27 62 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AC 13 00 00 35 04 06 00 12 8C 00 BD 10 6D 9B D4 E1 CE EB 83 E1 C5 [19:44:40]Write to MH i2c: 01 00 00 CF 0F DE [19:44:40]Write i2c OK [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: 01 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: 01 07 00 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: 01 07 00 CF 0F 00 00 00 00 00 6E 0C 5F [19:44:40]RasterBufferAndPrint [19:44:40]line [19:44:40]line [19:44:40]line [19:44:40]line [19:44:40]line [19:44:40]written 0, free lines is 3185 [19:44:40]MH_Cut [19:44:40]Write to MH i2c: D1 01 00 D6 0F 01 B7 [19:44:40]Write i2c OK [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: D1 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: D1 01 00 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: D1 01 00 D6 0F 00 B6 [19:44:40]Write to MH i2c: 01 00 00 D7 0F E6 [19:44:40]Write i2c OK [19:44:40]MH_I2C_Read... [19:44:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 9C AD 47 00 C8 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AC 13 00 00 F4 03 04 00 EA 0D 46 66 B6 04 01 00 00 F1 FF 05 53 6C BB 2E 88 [19:44:40]CommunicateWithHost err = 0 [19:44:40]CheckOFDResponse [19:44:40]1017 (14) - 77093643461234 [19:44:40]1041 (16) - 0000000000963259 [19:44:40]1040 (4) - 5036 [19:44:40]1012 (4) - 16.05.2024 13:45 [19:44:40]1206 (1) - 0 [19:44:40]OFD Sender: Remove packet 5036 [19:44:40]ProducePacketName [19:44:40]name=ofd_packets/00005036 [19:44:40]NVStorageDeleteData [19:44:41]OFD Sender: No OFD packet to send [19:44:41]*** Cut start [19:44:41]*** Partial cut [19:44:41]*** CUTSNS_PIN = 1 [19:44:41]*** CUTSNS_PIN = 0 [19:44:41]*** Brake cut motor [19:44:42]Read from MH i2c: 01 [19:44:42]MH_I2C_Read... [19:44:42]*** Stop cut motor [19:44:42]*** Cut end [19:44:42]Read from MH i2c: 01 07 00 [19:44:42]MH_I2C_Read... [19:44:42]Read from MH i2c: 01 07 00 D7 0F 00 00 00 00 00 FF 0F FB [19:44:42]process_action close_receipt done [19:44:42]requested_data is exist [19:44:42]produce_requested_data [19:44:42]requested_item fm.sn is exist - process it [19:44:42]wFMCommunicate request_size=4 [19:44:42]MH_SAM_APDU [19:44:42]CAPDU: 80 11 00 00 [19:44:42]Write to MH i2c: E2 08 00 D8 0F 80 11 00 00 00 00 00 00 61 [19:44:42]Write i2c OK [19:44:42]MH_I2C_Read... [19:44:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:42]Read from MH i2c: E2 [19:44:42]MH_I2C_Read... [19:44:42]Read from MH i2c: E2 17 00 [19:44:42]MH_I2C_Read... [19:44:42]Read from MH i2c: E2 17 00 D8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 B6 [19:44:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:44:42]wFMCommunicate OK [19:44:42]requested_item fd.num is exist - process it [19:44:42]SAM_PROTO_GetFieldsCounters [19:44:42]wFMCommunicate request_size=4 [19:44:42]MH_SAM_APDU [19:44:42]CAPDU: 80 13 00 00 [19:44:42]Write to MH i2c: E2 08 00 D9 0F 80 13 00 00 00 00 00 00 64 [19:44:42]Write i2c OK [19:44:42]MH_I2C_Read... [19:44:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:42]Read from MH i2c: E2 [19:44:42]MH_I2C_Read... [19:44:42]Read from MH i2c: E2 62 00 [19:44:42]MH_I2C_Read... [19:44:42]Read from MH i2c: E2 62 00 D9 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AC 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [19:44:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AC 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:44:42]wFMCommunicate OK [19:44:42]SAM_PROTO_GetFieldsCounters done [19:44:42]requested_item shift.num is exist - process it [19:44:42]requested_item shift.opened is exist - process it [19:44:42]req_shift_opened [19:44:42]FM_GetShiftState [19:44:42]SAM_PROTO_GetShiftState [19:44:42]wFMCommunicate request_size=4 [19:44:42]MH_SAM_APDU [19:44:42]CAPDU: 80 13 01 00 [19:44:42]Write to MH i2c: E2 08 00 DA 0F 80 13 01 00 00 00 00 00 66 [19:44:42]Write i2c OK [19:44:42]MH_I2C_Read... [19:44:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:42]Read from MH i2c: E2 [19:44:42]MH_I2C_Read... [19:44:42]Read from MH i2c: E2 0E 00 [19:44:42]MH_I2C_Read... [19:44:42]Read from MH i2c: E2 0E 00 DA 0F 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 72 [19:44:42]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:44:42]wFMCommunicate OK [19:44:42]SAM_PROTO_GetShiftState done [19:44:42]FM_GetShiftState done [19:44:42]req_shift_opened done [19:44:42]requested_item shift.open_date is exist - process it [19:44:42]req_shift_open_date [19:44:42]req_shift_open_date done [19:44:42]produce_requested_data done [19:44:42]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5036,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:44:42]process_action_free close_receipt [19:44:42]json_value_free [19:44:42]json_value_free done [19:44:42]process_json_proto returns [19:44:42]Send response to host [19:44:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5036,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:44:42]free response buf [19:44:42]execute_script done [19:44:42]execute_script returns [19:44:42]free content buf [19:44:42]Sock 7.Close socket [19:44:42]Sock 7.Thread stoped [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:10]accept exits with 9 [19:49:10]New connection [19:49:10]New thread 3067108708 created [19:49:10]Thread 3067252068 joined [19:49:10]Waiting for new connection... [19:49:10] Sock 9.Parse request [19:49:10]Sock 9.Check first char [19:49:10]Sock 9.First char is OK [19:49:10]request: POST /json_proto HTTP/1.0 [19:49:10]Method: POST [19:49:10]URL: /json_proto [19:49:10]Method is POST - this is cgi request [19:49:10]url: /json_proto [19:49:10]query_string will be loaded in cgi processing [19:49:10]execute_cgi json_proto POST (null) [19:49:10]execute_cgi path=json_proto method=POST [19:49:10]POST find Content-Length [19:49:10]Host: 172.17.44.4:8080 [19:49:10]Content-Length: 650 [19:49:10]Content-Type: application/json [19:49:10] [19:49:10]POST finish read [19:49:10]Found Content-Length = 650 [19:49:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141027", "tax_sys" : 0, "items" : [ { "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 36.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:10]execute_script... [19:49:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141027", "tax_sys" : 0, "items" : [ { "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 36.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:10]POST & json_proto [19:49:10]process_json_proto [19:49:10]json parsed OK: [19:49:10]protocol is kg_v1.0 [19:49:10]action value=close_receipt [19:49:10]process_action close_receipt [19:49:10]cmd_close_receipt [19:49:10]MH_GetDate [19:49:10]Write to MH i2c: F0 00 00 DB 0F D9 [19:49:10]Write i2c OK [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: F0 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: F0 09 00 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: F0 09 00 DB 0F 00 38 63 46 66 6C E9 28 66 0C [19:49:10]GetLastDocTimeStamp 1715888679 [19:49:10]current date 1715888952 [19:49:10]FM_GetShiftState [19:49:10]SAM_PROTO_GetShiftState [19:49:10]wFMCommunicate request_size=4 [19:49:10]MH_SAM_APDU [19:49:10]CAPDU: 80 13 01 00 [19:49:10]Write to MH i2c: E2 08 00 DC 0F 80 13 01 00 00 00 00 00 68 [19:49:10]Write i2c OK [19:49:10]MH_I2C_Read... [19:49:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:10]Read from MH i2c: E2 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 0E 00 [19:49:10]MH_I2C_Read... [19:49:10]Read from MH i2c: E2 0E 00 DC 0F 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 74 [19:49:10]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:49:10]wFMCommunicate OK [19:49:10]SAM_PROTO_GetShiftState done [19:49:10]FM_GetShiftState done [19:49:10]opened in 1715818246 [19:49:10]opened+sec_in_day 1715904646 [19:49:10]quantity*price = 3600 [19:49:10]sum+1 = 3601 [19:49:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 36.00 НСП 1% : 0.32 НДС 12% : 3.82 Наличными: 36.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 97 16.05.2024 19:49 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5037 ФПД: 275137612388194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T194912&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5037&fm=275137612388194&tin=02508201610067®Number=0000000000154221&sum=3600 0 [19:49:11]StoreToDocumentArchive [19:49:11]shift 44 fd 5037 [19:49:11]save to /storage/0044/doc_00005037 [19:49:11]save last doc name /storage/0044/doc_00005037 to /storage/kkm_last_doc_name [19:49:11]save OK [19:49:11]Clear old archive folders... [19:49:11]ProcessDocumentItem done err = 0, tmpTLVsize=277 [19:49:11]tlvbuf is 01212EF0 [19:49:11]SAM_PROTO_ClearQueue [19:49:11]wFMCommunicate request_size=4 [19:49:11]MH_SAM_APDU [19:49:11]CAPDU: 80 09 00 00 [19:49:11]Write to MH i2c: E2 08 00 E9 0F 80 09 00 00 00 00 00 00 6A [19:49:11]Write i2c OK [19:49:11]MH_I2C_Read... [19:49:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:12]Read from MH i2c: E2 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 03 00 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 03 00 E9 0F 00 90 00 6C [19:49:12]RAPDU: 90 00 [19:49:12]wFMCommunicate OK [19:49:12]SAM_PROTO_ClearQueue done [19:49:12]KKMCreateOFDPacket [19:49:12]OFDProtocolAddRootSTLVToBuf [19:49:12]FM_MakeSignedData [19:49:12]FM_MakeSignedData [19:49:12]SAM_PROTO_SignData [19:49:12]wFMCommunicate request_size=4 [19:49:12]MH_SAM_APDU [19:49:12]CAPDU: 80 0D 01 02 [19:49:12]Write to MH i2c: E2 08 00 EA 0F 80 0D 01 02 00 00 00 00 72 [19:49:12]Write i2c OK [19:49:12]MH_I2C_Read... [19:49:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:12]Read from MH i2c: E2 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 03 00 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 03 00 EA 0F 00 90 00 6D [19:49:12]RAPDU: 90 00 [19:49:12]wFMCommunicate OK [19:49:12]wFMCommunicate request_size=255 [19:49:12]MH_SAM_APDU [19:49:12]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 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 38 63 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 [19:49:12]Write to MH i2c: E2 02 01 EB 0F 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 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 38 63 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 00 00 50 [19:49:12]Write i2c OK [19:49:12]MH_I2C_Read... [19:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:12]Read from MH i2c: E2 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 03 00 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 03 00 EB 0F 00 90 00 6E [19:49:12]RAPDU: 90 00 [19:49:12]wFMCommunicate OK [19:49:12]wFMCommunicate request_size=36 [19:49:12]MH_SAM_APDU [19:49:12]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AD 13 00 00 35 04 06 00 FA 3C 77 A6 97 62 [19:49:12]Write to MH i2c: E2 27 00 EC 0F 80 0D 02 02 1F 00 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AD 13 00 00 35 04 06 00 FA 3C 77 A6 97 62 00 00 A8 [19:49:12]Write i2c OK [19:49:12]MH_I2C_Read... [19:49:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:12]Read from MH i2c: E2 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 03 00 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 03 00 EC 0F 00 90 00 6F [19:49:12]RAPDU: 90 00 [19:49:12]wFMCommunicate OK [19:49:12]wFMCommunicate request_size=4 [19:49:12]MH_SAM_APDU [19:49:12]CAPDU: 80 0D 03 02 [19:49:12]Write to MH i2c: E2 08 00 ED 0F 80 0D 03 02 00 00 00 00 77 [19:49:12]Write i2c OK [19:49:12]MH_I2C_Read... [19:49:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:12]Read from MH i2c: E2 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 0B 00 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 0B 00 ED 0F 00 7A 2E 8E 43 BE 51 20 40 90 00 60 [19:49:12]RAPDU: 7A 2E 8E 43 BE 51 20 40 90 00 [19:49:12]wFMCommunicate OK [19:49:12]SAM_PROTO_SignData done [19:49:12]FM_MakeSignedData done [19:49:12]CreateOFDProtocolMessage [19:49:12]wFMCommunicate request_size=4 [19:49:12]MH_SAM_APDU [19:49:12]CAPDU: 80 11 00 00 [19:49:12]Write to MH i2c: E2 08 00 EE 0F 80 11 00 00 00 00 00 00 77 [19:49:12]Write i2c OK [19:49:12]MH_I2C_Read... [19:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:12]Read from MH i2c: E2 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 17 00 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: E2 17 00 EE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 CC [19:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:49:12]wFMCommunicate OK [19:49:12]CreateOFDProtocolMessage done [19:49:12]OFDSenderStorePacket 5037 [19:49:12]StoreOFDPacket docnum=5037 [19:49:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 29 01 00 00 56 A3 21 01 35 C1 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 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 38 63 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AD 13 00 00 35 04 06 00 FA 3C 77 A6 97 62 7A 2E 8E 43 BE 51 20 40 [19:49:12]CheckFolder [19:49:12]dirname=/storage/ofd_packets [19:49:12]CheckFolder done [19:49:12]ProducePacketName [19:49:12]name=ofd_packets/00005037 [19:49:12]NVStorageSaveData ofd_packets/00005037 [19:49:12]File name is /storage/ofd_packets/00005037 [19:49:12]Write 327 bytes [19:49:12]NVStorageSaveData done [19:49:12]OFDSenderStorePacket done [19:49:12]KKMCreateOFDPacket done [19:49:12]NVStorageSaveData kkm_last_timestamp [19:49:12]File name is /storage/kkm_last_timestamp [19:49:12]Write 4 bytes [19:49:12]NVStorageSaveData done [19:49:12]ExternCall_PrintAddStr [19:49:12]wPrintStart [19:49:12]Write to MH i2c: 01 00 00 EF 0F FE [19:49:12]Write i2c OK [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: 01 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: 01 07 00 [19:49:12]MH_I2C_Read... [19:49:12]Read from MH i2c: 01 07 00 EF 0F 00 00 00 00 00 FF 0F 13 [19:49:12]RasterBufferAndPrint [19:49:12]line Счет N : (3)141027 [19:49:12]line ИНН: 02508201610067 [19:49:12]line Контрольно-Кассовый Чек [19:49:12]line ПРОДАЖА [19:49:12]line Товар: 8590042701239 [19:49:12]line Салфетки влажные VOK [19:49:12]line 1.000 * 36.00 [19:49:12]line = 36.00 [19:49:12]line НДС 12% НСП 1% [19:49:12]line > о реализуемом товаре [19:49:12]line ИТОГО: 36.00 [19:49:12]line НСП 1% : 0.32 [19:49:12]line НДС 12% : 3.82 [19:49:12]line Наличными: 36.00 [19:49:12]line Безнал.: 0.00 [19:49:12]line Место: АЗС № 135 "Партнер Нефть" [19:49:12]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:49:12]line СНО: Общий режим [19:49:12]line Чек 97 16.05.2024 19:49 [19:49:12]line Смена: 44 ФФД: 1.0 [19:49:12]line ЗНМ: 0300000237 [19:49:12]line РНМ: 0000000000154221 [19:49:12]line Версия ККМ: v1.0 [19:49:12]line ФМ: 0000000000963259 [19:49:12]line ФД: 5037 [19:49:12]line ФПД: 275137612388194 [19:49:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T194912&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5037&fm=275137612388194&tin=02508201610067®Number=0000000000154221&sum=3600 [19:49:12]line 0 [19:49:12]OFD Sender: Processing packet 5037 [packets to send 4, broken 3] [19:49:12]ProducePacketName [19:49:12]name=ofd_packets/00005037 [19:49:12]OFD Sender: To server: pG, [19:49:12]CommunicateWithHost lk.salyk.kg:30040 [19:49:12]ConnectInit lk.salyk.kg [19:49:12]written 0, free lines is 4095 [19:49:13]Connected sock=10 [19:49:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 29 01 00 00 56 A3 21 01 35 C1 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 0E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 20 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 01 00 00 00 00 07 04 06 00 10 0E 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 38 63 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AD 13 00 00 35 04 06 00 FA 3C 77 A6 97 62 7A 2E 8E 43 BE 51 20 40 [19:49:13]Write to MH i2c: 01 00 00 17 10 27 [19:49:13]Write i2c OK [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: 01 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: 01 07 00 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: 01 07 00 17 10 00 00 00 00 00 A1 0C DB [19:49:13]RasterBufferAndPrint [19:49:13]line [19:49:13]line [19:49:13]line [19:49:13]line [19:49:13]line [19:49:13]written 0, free lines is 3237 [19:49:13]MH_Cut [19:49:13]Write to MH i2c: D1 01 00 1E 10 01 00 [19:49:13]Write i2c OK [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: D1 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: D1 01 00 [19:49:13]MH_I2C_Read... [19:49:13]Read from MH i2c: D1 01 00 1E 10 00 FF [19:49:13]Write to MH i2c: 01 00 00 1F 10 2F [19:49:13]Write i2c OK [19:49:13]MH_I2C_Read... [19:49:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 8D B5 47 00 6A 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 33 32 35 39 10 04 04 00 AD 13 00 00 F4 03 04 00 FB 0E 46 66 B6 04 01 00 00 6C 9E A9 77 0B 9A 78 1A [19:49:13]CommunicateWithHost err = 0 [19:49:13]CheckOFDResponse [19:49:13]1017 (14) - 77093643461234 [19:49:13]1041 (16) - 0000000000963259 [19:49:13]1040 (4) - 5037 [19:49:13]1012 (4) - 16.05.2024 13:49 [19:49:13]1206 (1) - 0 [19:49:13]OFD Sender: Remove packet 5037 [19:49:13]ProducePacketName [19:49:13]name=ofd_packets/00005037 [19:49:13]NVStorageDeleteData [19:49:13]OFD Sender: No OFD packet to send [19:49:14]*** Cut start [19:49:14]*** Partial cut [19:49:14]*** CUTSNS_PIN = 1 [19:49:14]*** CUTSNS_PIN = 0 [19:49:14]*** Brake cut motor [19:49:14]Read from MH i2c: 01 [19:49:14]MH_I2C_Read... [19:49:14]*** Stop cut motor [19:49:14]*** Cut end [19:49:14]Read from MH i2c: 01 07 00 [19:49:14]MH_I2C_Read... [19:49:14]Read from MH i2c: 01 07 00 1F 10 00 00 00 00 00 FF 0F 44 [19:49:14]process_action close_receipt done [19:49:14]requested_data is exist [19:49:14]produce_requested_data [19:49:14]requested_item fm.sn is exist - process it [19:49:14]wFMCommunicate request_size=4 [19:49:14]MH_SAM_APDU [19:49:14]CAPDU: 80 11 00 00 [19:49:14]Write to MH i2c: E2 08 00 20 10 80 11 00 00 00 00 00 00 AA [19:49:14]Write i2c OK [19:49:14]MH_I2C_Read... [19:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:15]Read from MH i2c: E2 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 17 00 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 17 00 20 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 FF [19:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:49:15]wFMCommunicate OK [19:49:15]requested_item fd.num is exist - process it [19:49:15]SAM_PROTO_GetFieldsCounters [19:49:15]wFMCommunicate request_size=4 [19:49:15]MH_SAM_APDU [19:49:15]CAPDU: 80 13 00 00 [19:49:15]Write to MH i2c: E2 08 00 21 10 80 13 00 00 00 00 00 00 AD [19:49:15]Write i2c OK [19:49:15]MH_I2C_Read... [19:49:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:15]Read from MH i2c: E2 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 62 00 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 62 00 21 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AD 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [19:49:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AD 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 61 00 00 00 5E 04 04 00 61 00 00 00 57 04 04 00 62 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:15]wFMCommunicate OK [19:49:15]SAM_PROTO_GetFieldsCounters done [19:49:15]requested_item shift.num is exist - process it [19:49:15]requested_item shift.opened is exist - process it [19:49:15]req_shift_opened [19:49:15]FM_GetShiftState [19:49:15]SAM_PROTO_GetShiftState [19:49:15]wFMCommunicate request_size=4 [19:49:15]MH_SAM_APDU [19:49:15]CAPDU: 80 13 01 00 [19:49:15]Write to MH i2c: E2 08 00 22 10 80 13 01 00 00 00 00 00 AF [19:49:15]Write i2c OK [19:49:15]MH_I2C_Read... [19:49:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:15]Read from MH i2c: E2 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 0E 00 [19:49:15]MH_I2C_Read... [19:49:15]Read from MH i2c: E2 0E 00 22 10 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 BB [19:49:15]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:49:15]wFMCommunicate OK [19:49:15]SAM_PROTO_GetShiftState done [19:49:15]FM_GetShiftState done [19:49:15]req_shift_opened done [19:49:15]requested_item shift.open_date is exist - process it [19:49:15]req_shift_open_date [19:49:15]req_shift_open_date done [19:49:15]produce_requested_data done [19:49:15]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5037,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:49:15]process_action_free close_receipt [19:49:15]json_value_free [19:49:15]json_value_free done [19:49:15]process_json_proto returns [19:49:15]Send response to host [19:49:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5037,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:49:15]free response buf [19:49:15]execute_script done [19:49:15]execute_script returns [19:49:15]free content buf [19:49:15]Sock 9.Close socket [19:49:15]Sock 9.Thread stoped [19:49:18]OFD Sender: No OFD packet to send [19:49:23]OFD Sender: No OFD packet to send [19:49:28]OFD Sender: No OFD packet to send [19:49:33]OFD Sender: No OFD packet to send [19:49:38]OFD Sender: No OFD packet to send [19:49:43]OFD Sender: No OFD packet to send [19:49:48]OFD Sender: No OFD packet to send [19:49:53]OFD Sender: No OFD packet to send [19:49:58]OFD Sender: No OFD packet to send [19:50:03]OFD Sender: No OFD packet to send [19:50:08]OFD Sender: No OFD packet to send [19:50:13]OFD Sender: No OFD packet to send [19:50:18]OFD Sender: No OFD packet to send [19:50:23]OFD Sender: No OFD packet to send [19:50:28]OFD Sender: No OFD packet to send [19:50:33]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:32]accept exits with 7 [19:53:32]New connection [19:53:32]New thread 3067252068 created [19:53:32]Thread 3067108708 joined [19:53:32]Waiting for new connection... [19:53:32] Sock 7.Parse request [19:53:32]Sock 7.Check first char [19:53:32]Sock 7.First char is OK [19:53:32]request: POST /json_proto HTTP/1.0 [19:53:32]Method: POST [19:53:32]URL: /json_proto [19:53:32]Method is POST - this is cgi request [19:53:32]url: /json_proto [19:53:32]query_string will be loaded in cgi processing [19:53:32]execute_cgi json_proto POST (null) [19:53:32]execute_cgi path=json_proto method=POST [19:53:32]POST find Content-Length [19:53:32]Host: 172.17.44.4:8080 [19:53:32]Content-Length: 713 [19:53:32]Content-Type: application/json [19:53:32] [19:53:32]POST finish read [19:53:32]Found Content-Length = 713 [19:53:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141028", "tax_sys" : 0, "items" : [ { "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:32]execute_script... [19:53:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141028", "tax_sys" : 0, "items" : [ { "code": "4870202521285", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u043E\u0432\u044B\u0439 \u043D\u0435\u0433\u0430\u0437 0,45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:53:32]POST & json_proto [19:53:32]process_json_proto [19:53:32]json parsed OK: [19:53:32]protocol is kg_v1.0 [19:53:32]action value=close_receipt [19:53:32]process_action close_receipt [19:53:32]cmd_close_receipt [19:53:32]MH_GetDate [19:53:32]Write to MH i2c: F0 00 00 23 10 22 [19:53:32]Write i2c OK [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: F0 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: F0 09 00 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: F0 09 00 23 10 00 3E 64 46 66 6C E9 28 66 5C [19:53:32]GetLastDocTimeStamp 1715888952 [19:53:32]current date 1715889214 [19:53:32]FM_GetShiftState [19:53:32]SAM_PROTO_GetShiftState [19:53:32]wFMCommunicate request_size=4 [19:53:32]MH_SAM_APDU [19:53:32]CAPDU: 80 13 01 00 [19:53:32]Write to MH i2c: E2 08 00 24 10 80 13 01 00 00 00 00 00 B1 [19:53:32]Write i2c OK [19:53:32]MH_I2C_Read... [19:53:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:32]Read from MH i2c: E2 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: E2 0E 00 [19:53:32]MH_I2C_Read... [19:53:32]Read from MH i2c: E2 0E 00 24 10 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 BD [19:53:32]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:53:32]wFMCommunicate OK [19:53:32]SAM_PROTO_GetShiftState done [19:53:32]FM_GetShiftState done [19:53:32]opened in 1715818246 [19:53:32]opened+sec_in_day 1715904646 [19:53:32]quantity*price = 7000 [19:53:32]sum+1 = 7001 [19:53:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 98 16.05.2024 19:53 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5038 ФПД: 126030047925540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T195334&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5038&fm=126030047925540&tin=02508201610067®Number=0000000000154221&sum=7000 0 [19:53:34]StoreToDocumentArchive [19:53:34]shift 44 fd 5038 [19:53:34]save to /storage/0044/doc_00005038 [19:53:34]save last doc name /storage/0044/doc_00005038 to /storage/kkm_last_doc_name [19:53:34]save OK [19:53:34]Clear old archive folders... [19:53:34]ProcessDocumentItem done err = 0, tmpTLVsize=300 [19:53:34]tlvbuf is 012112C0 [19:53:34]SAM_PROTO_ClearQueue [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 09 00 00 [19:53:34]Write to MH i2c: E2 08 00 31 10 80 09 00 00 00 00 00 00 B3 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [19:53:34]RAPDU: 90 00 [19:53:34]wFMCommunicate OK [19:53:34]SAM_PROTO_ClearQueue done [19:53:34]KKMCreateOFDPacket [19:53:34]OFDProtocolAddRootSTLVToBuf [19:53:34]FM_MakeSignedData [19:53:34]FM_MakeSignedData [19:53:34]SAM_PROTO_SignData [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 0D 01 02 [19:53:34]Write to MH i2c: E2 08 00 32 10 80 0D 01 02 00 00 00 00 BB [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 32 10 00 90 00 B6 [19:53:34]RAPDU: 90 00 [19:53:34]wFMCommunicate OK [19:53:34]wFMCommunicate request_size=255 [19:53:34]MH_SAM_APDU [19:53:34]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 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 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 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3E 64 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 [19:53:34]Write to MH i2c: E2 02 01 33 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 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 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 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3E 64 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 00 00 4A [19:53:34]OFD Sender: No OFD packet to send [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 33 10 00 90 00 B7 [19:53:34]RAPDU: 90 00 [19:53:34]wFMCommunicate OK [19:53:34]wFMCommunicate request_size=59 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 0D 02 02 36 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AE 13 00 00 35 04 06 00 72 9F A8 3C D5 24 [19:53:34]Write to MH i2c: E2 3E 00 34 10 80 0D 02 02 36 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AE 13 00 00 35 04 06 00 72 9F A8 3C D5 24 00 00 86 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [19:53:34]RAPDU: 90 00 [19:53:34]wFMCommunicate OK [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 0D 03 02 [19:53:34]Write to MH i2c: E2 08 00 35 10 80 0D 03 02 00 00 00 00 C0 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 0B 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 0B 00 35 10 00 AF 1F 23 58 73 2C FF D5 90 00 7D [19:53:34]RAPDU: AF 1F 23 58 73 2C FF D5 90 00 [19:53:34]wFMCommunicate OK [19:53:34]SAM_PROTO_SignData done [19:53:34]FM_MakeSignedData done [19:53:34]CreateOFDProtocolMessage [19:53:34]wFMCommunicate request_size=4 [19:53:34]MH_SAM_APDU [19:53:34]CAPDU: 80 11 00 00 [19:53:34]Write to MH i2c: E2 08 00 36 10 80 11 00 00 00 00 00 00 C0 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:34]Read from MH i2c: E2 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 17 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: E2 17 00 36 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 15 [19:53:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:53:34]wFMCommunicate OK [19:53:34]CreateOFDProtocolMessage done [19:53:34]OFDSenderStorePacket 5038 [19:53:34]StoreOFDPacket docnum=5038 [19:53:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 40 01 00 00 8F A4 38 01 40 16 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 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 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3E 64 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AE 13 00 00 35 04 06 00 72 9F A8 3C D5 24 AF 1F 23 58 73 2C FF D5 [19:53:34]CheckFolder [19:53:34]dirname=/storage/ofd_packets [19:53:34]CheckFolder done [19:53:34]ProducePacketName [19:53:34]name=ofd_packets/00005038 [19:53:34]NVStorageSaveData ofd_packets/00005038 [19:53:34]File name is /storage/ofd_packets/00005038 [19:53:34]Write 350 bytes [19:53:34]NVStorageSaveData done [19:53:34]OFDSenderStorePacket done [19:53:34]KKMCreateOFDPacket done [19:53:34]NVStorageSaveData kkm_last_timestamp [19:53:34]File name is /storage/kkm_last_timestamp [19:53:34]Write 4 bytes [19:53:34]NVStorageSaveData done [19:53:34]ExternCall_PrintAddStr [19:53:34]wPrintStart [19:53:34]Write to MH i2c: 01 00 00 37 10 47 [19:53:34]Write i2c OK [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 07 00 [19:53:34]MH_I2C_Read... [19:53:34]Read from MH i2c: 01 07 00 37 10 00 00 00 00 00 FF 0F 5C [19:53:34]RasterBufferAndPrint [19:53:34]line Счет N : (3)141028 [19:53:34]line ИНН: 02508201610067 [19:53:34]line Контрольно-Кассовый Чек [19:53:34]line ПРОДАЖА [19:53:34]line Товар: 4870202521285 [19:53:34]line Напиток Сок березовый негаз 0,45л [19:53:34]line 1.000 * 70.00 [19:53:34]line = 70.00 [19:53:34]line НДС 12% НСП 1% [19:53:34]line > о реализуемом товаре [19:53:34]line ИТОГО: 70.00 [19:53:34]line НСП 1% : 0.62 [19:53:34]line НДС 12% : 7.43 [19:53:34]line Наличными: 70.00 [19:53:34]line Безнал.: 0.00 [19:53:34]line Место: АЗС № 135 "Партнер Нефть" [19:53:34]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:53:34]line СНО: Общий режим [19:53:34]line Чек 98 16.05.2024 19:53 [19:53:34]line Смена: 44 ФФД: 1.0 [19:53:34]line ЗНМ: 0300000237 [19:53:34]line РНМ: 0000000000154221 [19:53:34]line Версия ККМ: v1.0 [19:53:34]line ФМ: 0000000000963259 [19:53:34]line ФД: 5038 [19:53:34]line ФПД: 126030047925540 [19:53:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T195334&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5038&fm=126030047925540&tin=02508201610067®Number=0000000000154221&sum=7000 [19:53:34]line 0 [19:53:34]OFD Sender: Processing packet 5038 [packets to send 4, broken 3] [19:53:34]ProducePacketName [19:53:34]name=ofd_packets/00005038 [19:53:34]OFD Sender: To server: pG, [19:53:34]CommunicateWithHost lk.salyk.kg:30040 [19:53:34]ConnectInit lk.salyk.kg [19:53:34]written 0, free lines is 4095 [19:53:35]Connected sock=10 [19:53:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 40 01 00 00 8F A4 38 01 40 16 5A 03 01 00 03 00 2C 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 38 35 06 04 3A 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 D0 BE D0 B2 D1 8B D0 B9 20 D0 BD D0 B5 D0 B3 D0 B0 D0 B7 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 3E 64 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AE 13 00 00 35 04 06 00 72 9F A8 3C D5 24 AF 1F 23 58 73 2C FF D5 [19:53:35]Write to MH i2c: 01 00 00 60 10 70 [19:53:35]Write i2c OK [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: 01 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: 01 07 00 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: 01 07 00 60 10 00 00 00 00 00 71 0C F4 [19:53:35]RasterBufferAndPrint [19:53:35]line [19:53:35]line [19:53:35]line [19:53:35]line [19:53:35]line [19:53:35]written 0, free lines is 3191 [19:53:35]MH_Cut [19:53:35]Write to MH i2c: D1 01 00 67 10 01 49 [19:53:35]Write i2c OK [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: D1 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: D1 01 00 [19:53:35]MH_I2C_Read... [19:53:35]Read from MH i2c: D1 01 00 67 10 00 48 [19:53:35]Write to MH i2c: 01 00 00 68 10 78 [19:53:35]Write i2c OK [19:53:35]MH_I2C_Read... [19:53:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 D7 92 47 00 A3 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AE 13 00 00 F4 03 04 00 01 10 46 66 B6 04 01 00 00 07 08 58 04 55 29 A9 89 [19:53:35]CommunicateWithHost err = 0 [19:53:35]CheckOFDResponse [19:53:35]1017 (14) - 77093643461234 [19:53:35]1041 (16) - 0000000000963259 [19:53:35]1040 (4) - 5038 [19:53:35]1012 (4) - 16.05.2024 13:54 [19:53:35]1206 (1) - 0 [19:53:35]OFD Sender: Remove packet 5038 [19:53:35]ProducePacketName [19:53:35]name=ofd_packets/00005038 [19:53:35]NVStorageDeleteData [19:53:36]OFD Sender: No OFD packet to send [19:53:36]*** Cut start [19:53:36]*** Partial cut [19:53:36]*** CUTSNS_PIN = 1 [19:53:36]*** CUTSNS_PIN = 0 [19:53:36]*** Brake cut motor [19:53:37]Read from MH i2c: 01 [19:53:37]MH_I2C_Read... [19:53:37]*** Stop cut motor [19:53:37]*** Cut end [19:53:37]Read from MH i2c: 01 07 00 [19:53:37]MH_I2C_Read... [19:53:37]Read from MH i2c: 01 07 00 68 10 00 00 00 00 00 FF 0F 8D [19:53:37]process_action close_receipt done [19:53:37]requested_data is exist [19:53:37]produce_requested_data [19:53:37]requested_item fm.sn is exist - process it [19:53:37]wFMCommunicate request_size=4 [19:53:37]MH_SAM_APDU [19:53:37]CAPDU: 80 11 00 00 [19:53:37]Write to MH i2c: E2 08 00 69 10 80 11 00 00 00 00 00 00 F3 [19:53:37]Write i2c OK [19:53:37]MH_I2C_Read... [19:53:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:53:37]Read from MH i2c: E2 [19:53:37]MH_I2C_Read... [19:53:37]Read from MH i2c: E2 17 00 [19:53:37]MH_I2C_Read... [19:53:37]Read from MH i2c: E2 17 00 69 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 48 [19:53:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:53:37]wFMCommunicate OK [19:53:37]requested_item fd.num is exist - process it [19:53:37]SAM_PROTO_GetFieldsCounters [19:53:37]wFMCommunicate request_size=4 [19:53:37]MH_SAM_APDU [19:53:37]CAPDU: 80 13 00 00 [19:53:37]Write to MH i2c: E2 08 00 6A 10 80 13 00 00 00 00 00 00 F6 [19:53:37]Write i2c OK [19:53:37]MH_I2C_Read... [19:53:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:53:37]Read from MH i2c: E2 [19:53:37]MH_I2C_Read... [19:53:37]Read from MH i2c: E2 62 00 [19:53:37]MH_I2C_Read... [19:53:37]Read from MH i2c: E2 62 00 6A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AE 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 22 [19:53:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AE 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 62 00 00 00 5E 04 04 00 62 00 00 00 57 04 04 00 63 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:53:37]wFMCommunicate OK [19:53:37]SAM_PROTO_GetFieldsCounters done [19:53:37]requested_item shift.num is exist - process it [19:53:37]requested_item shift.opened is exist - process it [19:53:37]req_shift_opened [19:53:37]FM_GetShiftState [19:53:37]SAM_PROTO_GetShiftState [19:53:37]wFMCommunicate request_size=4 [19:53:37]MH_SAM_APDU [19:53:37]CAPDU: 80 13 01 00 [19:53:37]Write to MH i2c: E2 08 00 6B 10 80 13 01 00 00 00 00 00 F8 [19:53:37]Write i2c OK [19:53:37]MH_I2C_Read... [19:53:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:53:37]Read from MH i2c: E2 [19:53:37]MH_I2C_Read... [19:53:37]Read from MH i2c: E2 0E 00 [19:53:37]MH_I2C_Read... [19:53:37]Read from MH i2c: E2 0E 00 6B 10 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 04 [19:53:37]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:53:37]wFMCommunicate OK [19:53:37]SAM_PROTO_GetShiftState done [19:53:37]FM_GetShiftState done [19:53:37]req_shift_opened done [19:53:37]requested_item shift.open_date is exist - process it [19:53:37]req_shift_open_date [19:53:37]req_shift_open_date done [19:53:37]produce_requested_data done [19:53:37]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5038,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:53:37]process_action_free close_receipt [19:53:37]json_value_free [19:53:37]json_value_free done [19:53:37]process_json_proto returns [19:53:37]Send response to host [19:53:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5038,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:53:37]free response buf [19:53:37]execute_script done [19:53:37]execute_script returns [19:53:37]free content buf [19:53:37]Sock 7.Close socket [19:53:37]Sock 7.Thread stoped [19:53:41]OFD Sender: No OFD packet to send [19:53:46]OFD Sender: No OFD packet to send [19:53:51]OFD Sender: No OFD packet to send [19:53:56]OFD Sender: No OFD packet to send [19:54:01]OFD Sender: No OFD packet to send [19:54:06]OFD Sender: No OFD packet to send [19:54:11]OFD Sender: No OFD packet to send [19:54:16]OFD Sender: No OFD packet to send [19:54:21]OFD Sender: No OFD packet to send [19:54:26]OFD Sender: No OFD packet to send [19:54:31]OFD Sender: No OFD packet to send [19:54:36]OFD Sender: No OFD packet to send [19:54:41]OFD Sender: No OFD packet to send [19:54:46]OFD Sender: No OFD packet to send [19:54:51]OFD Sender: No OFD packet to send [19:54:56]OFD Sender: No OFD packet to send [19:55:01]OFD Sender: No OFD packet to send [19:55:06]OFD Sender: No OFD packet to send [19:55:11]OFD Sender: No OFD packet to send [19:55:16]OFD Sender: No OFD packet to send [19:55:21]OFD Sender: No OFD packet to send [19:55:26]OFD Sender: No OFD packet to send [19:55:31]OFD Sender: No OFD packet to send [19:55:36]OFD Sender: No OFD packet to send [19:55:41]OFD Sender: No OFD packet to send [19:55:46]OFD Sender: No OFD packet to send [19:55:51]OFD Sender: No OFD packet to send [19:55:56]OFD Sender: No OFD packet to send [19:56:01]OFD Sender: No OFD packet to send [19:56:06]OFD Sender: No OFD packet to send [19:56:11]OFD Sender: No OFD packet to send [19:56:16]OFD Sender: No OFD packet to send [19:56:21]OFD Sender: No OFD packet to send [19:56:26]OFD Sender: No OFD packet to send [19:56:31]OFD Sender: No OFD packet to send [19:56:36]OFD Sender: No OFD packet to send [19:56:41]OFD Sender: No OFD packet to send [19:56:46]OFD Sender: No OFD packet to send [19:56:51]OFD Sender: No OFD packet to send [19:56:56]OFD Sender: No OFD packet to send [19:57:01]OFD Sender: No OFD packet to send [19:57:06]OFD Sender: No OFD packet to send [19:57:11]OFD Sender: No OFD packet to send [19:57:16]OFD Sender: No OFD packet to send [19:57:21]OFD Sender: No OFD packet to send [19:57:26]OFD Sender: No OFD packet to send [19:57:31]OFD Sender: No OFD packet to send [19:57:36]OFD Sender: No OFD packet to send [19:57:41]OFD Sender: No OFD packet to send [19:57:46]OFD Sender: No OFD packet to send [19:57:51]OFD Sender: No OFD packet to send [19:57:56]OFD Sender: No OFD packet to send [19:58:01]OFD Sender: No OFD packet to send [19:58:06]OFD Sender: No OFD packet to send [19:58:11]OFD Sender: No OFD packet to send [19:58:16]OFD Sender: No OFD packet to send [19:58:21]OFD Sender: No OFD packet to send [19:58:26]OFD Sender: No OFD packet to send [19:58:31]OFD Sender: No OFD packet to send [19:58:36]OFD Sender: No OFD packet to send [19:58:41]OFD Sender: No OFD packet to send [19:58:46]OFD Sender: No OFD packet to send [19:58:51]OFD Sender: No OFD packet to send [19:58:54]accept exits with 9 [19:58:54]New connection [19:58:54]New thread 3067108708 created [19:58:54]Thread 3067252068 joined [19:58:54]Waiting for new connection... [19:58:54] Sock 9.Parse request [19:58:54]Sock 9.Check first char [19:58:54]Sock 9.First char is OK [19:58:54]request: POST /json_proto HTTP/1.0 [19:58:54]Method: POST [19:58:54]URL: /json_proto [19:58:54]Method is POST - this is cgi request [19:58:54]url: /json_proto [19:58:54]query_string will be loaded in cgi processing [19:58:54]execute_cgi json_proto POST (null) [19:58:54]execute_cgi path=json_proto method=POST [19:58:54]POST find Content-Length [19:58:54]Host: 172.17.44.4:8080 [19:58:54]Content-Length: 627 [19:58:54]Content-Type: application/json [19:58:54] [19:58:54]POST finish read [19:58:54]Found Content-Length = 627 [19:58:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141029", "tax_sys" : 0, "items" : [ { "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\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" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:54]execute_script... [19:58: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)141029", "tax_sys" : 0, "items" : [ { "code": "2000039440011", "name": "\u0427\u0430\u0439 \u0447\u0435\u0440\u043D\u044B\u0439 200 \u043C\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" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:54]POST & json_proto [19:58:54]process_json_proto [19:58:54]json parsed OK: [19:58:54]protocol is kg_v1.0 [19:58:54]action value=close_receipt [19:58:54]process_action close_receipt [19:58:54]cmd_close_receipt [19:58:54]MH_GetDate [19:58:54]Write to MH i2c: F0 00 00 6C 10 6B [19:58:54]Write i2c OK [19:58:54]MH_I2C_Read... [19:58:54]Read from MH i2c: F0 [19:58:54]MH_I2C_Read... [19:58:54]Read from MH i2c: F0 09 00 [19:58:54]MH_I2C_Read... [19:58:54]Read from MH i2c: F0 09 00 6C 10 00 80 65 46 66 6C E9 28 66 E8 [19:58:54]GetLastDocTimeStamp 1715889214 [19:58:54]current date 1715889536 [19:58:54]FM_GetShiftState [19:58:54]SAM_PROTO_GetShiftState [19:58:54]wFMCommunicate request_size=4 [19:58:54]MH_SAM_APDU [19:58:54]CAPDU: 80 13 01 00 [19:58:54]Write to MH i2c: E2 08 00 6D 10 80 13 01 00 00 00 00 00 FA [19:58:54]Write i2c OK [19:58:54]MH_I2C_Read... [19:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:54]Read from MH i2c: E2 [19:58:54]MH_I2C_Read... [19:58:54]Read from MH i2c: E2 0E 00 [19:58:54]MH_I2C_Read... [19:58:54]Read from MH i2c: E2 0E 00 6D 10 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 06 [19:58:54]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:58:54]wFMCommunicate OK [19:58:54]SAM_PROTO_GetShiftState done [19:58:54]FM_GetShiftState done [19:58:54]opened in 1715818246 [19:58:54]opened+sec_in_day 1715904646 [19:58:54]quantity*price = 4000 [19:58:54]sum+1 = 4001 [19:58:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 99 16.05.2024 19:58 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5039 ФПД: 75740147780217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T195856&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5039&fm=75740147780217&tin=02508201610067®Number=0000000000154221&sum=4000 0 [19:58:55]StoreToDocumentArchive [19:58:55]shift 44 fd 5039 [19:58:55]save to /storage/0044/doc_00005039 [19:58:55]save last doc name /storage/0044/doc_00005039 to /storage/kkm_last_doc_name [19:58:55]save OK [19:58:55]Clear old archive folders... [19:58:55]ProcessDocumentItem done err = 0, tmpTLVsize=270 [19:58:55]tlvbuf is B6F0A8D0 [19:58:55]SAM_PROTO_ClearQueue [19:58:55]wFMCommunicate request_size=4 [19:58:55]MH_SAM_APDU [19:58:55]CAPDU: 80 09 00 00 [19:58:55]Write to MH i2c: E2 08 00 7A 10 80 09 00 00 00 00 00 00 FC [19:58:55]Write i2c OK [19:58:55]MH_I2C_Read... [19:58:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:55]Read from MH i2c: E2 [19:58:55]MH_I2C_Read... [19:58:55]Read from MH i2c: E2 03 00 [19:58:55]MH_I2C_Read... [19:58:55]Read from MH i2c: E2 03 00 7A 10 00 90 00 FE [19:58:55]RAPDU: 90 00 [19:58:55]wFMCommunicate OK [19:58:55]SAM_PROTO_ClearQueue done [19:58:55]KKMCreateOFDPacket [19:58:55]OFDProtocolAddRootSTLVToBuf [19:58:55]FM_MakeSignedData [19:58:55]FM_MakeSignedData [19:58:55]SAM_PROTO_SignData [19:58:55]wFMCommunicate request_size=4 [19:58:55]MH_SAM_APDU [19:58:55]CAPDU: 80 0D 01 02 [19:58:55]Write to MH i2c: E2 08 00 7B 10 80 0D 01 02 00 00 00 00 04 [19:58:55]Write i2c OK [19:58:55]MH_I2C_Read... [19:58:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:55]Read from MH i2c: E2 [19:58:55]MH_I2C_Read... [19:58:55]Read from MH i2c: E2 03 00 [19:58:55]MH_I2C_Read... [19:58:55]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [19:58:55]RAPDU: 90 00 [19:58:55]wFMCommunicate OK [19:58:55]wFMCommunicate request_size=255 [19:58:55]MH_SAM_APDU [19:58:55]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 80 65 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [19:58:55]Write to MH i2c: E2 02 01 7C 10 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 80 65 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 7E [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:56]Read from MH i2c: E2 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 03 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [19:58:56]RAPDU: 90 00 [19:58:56]wFMCommunicate OK [19:58:56]wFMCommunicate request_size=29 [19:58:56]MH_SAM_APDU [19:58:56]CAPDU: 80 0D 02 02 18 39 36 33 32 35 39 10 04 04 00 AF 13 00 00 35 04 06 00 44 E2 A0 9A 8A 79 [19:58:56]Write to MH i2c: E2 20 00 7D 10 80 0D 02 02 18 00 39 36 33 32 35 39 10 04 04 00 AF 13 00 00 35 04 06 00 44 E2 A0 9A 8A 79 00 00 F5 [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:56]OFD Sender: No OFD packet to send [19:58:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:56]Read from MH i2c: E2 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 03 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [19:58:56]RAPDU: 90 00 [19:58:56]wFMCommunicate OK [19:58:56]wFMCommunicate request_size=4 [19:58:56]MH_SAM_APDU [19:58:56]CAPDU: 80 0D 03 02 [19:58:56]Write to MH i2c: E2 08 00 7E 10 80 0D 03 02 00 00 00 00 09 [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:56]Read from MH i2c: E2 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 0B 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 0B 00 7E 10 00 19 B0 97 E4 6A 23 8C 0B 90 00 72 [19:58:56]RAPDU: 19 B0 97 E4 6A 23 8C 0B 90 00 [19:58:56]wFMCommunicate OK [19:58:56]SAM_PROTO_SignData done [19:58:56]FM_MakeSignedData done [19:58:56]CreateOFDProtocolMessage [19:58:56]wFMCommunicate request_size=4 [19:58:56]MH_SAM_APDU [19:58:56]CAPDU: 80 11 00 00 [19:58:56]Write to MH i2c: E2 08 00 7F 10 80 11 00 00 00 00 00 00 09 [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:56]Read from MH i2c: E2 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 17 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: E2 17 00 7F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 5E [19:58:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:58:56]wFMCommunicate OK [19:58:56]CreateOFDProtocolMessage done [19:58:56]OFDSenderStorePacket 5039 [19:58:56]StoreOFDPacket docnum=5039 [19:58:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 22 01 00 00 EE 13 1A 01 F5 8B 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 80 65 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AF 13 00 00 35 04 06 00 44 E2 A0 9A 8A 79 19 B0 97 E4 6A 23 8C 0B [19:58:56]CheckFolder [19:58:56]dirname=/storage/ofd_packets [19:58:56]CheckFolder done [19:58:56]ProducePacketName [19:58:56]name=ofd_packets/00005039 [19:58:56]NVStorageSaveData ofd_packets/00005039 [19:58:56]File name is /storage/ofd_packets/00005039 [19:58:56]Write 320 bytes [19:58:56]NVStorageSaveData done [19:58:56]OFDSenderStorePacket done [19:58:56]KKMCreateOFDPacket done [19:58:56]NVStorageSaveData kkm_last_timestamp [19:58:56]File name is /storage/kkm_last_timestamp [19:58:56]Write 4 bytes [19:58:56]NVStorageSaveData done [19:58:56]ExternCall_PrintAddStr [19:58:56]wPrintStart [19:58:56]Write to MH i2c: 01 00 00 80 10 90 [19:58:56]Write i2c OK [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: 01 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: 01 07 00 [19:58:56]MH_I2C_Read... [19:58:56]Read from MH i2c: 01 07 00 80 10 00 00 00 00 00 FF 0F A5 [19:58:56]RasterBufferAndPrint [19:58:56]line Счет N : (3)141029 [19:58:56]line ИНН: 02508201610067 [19:58:56]line Контрольно-Кассовый Чек [19:58:56]line ПРОДАЖА [19:58:56]line Товар: 2000039440011 [19:58:56]line Чай черный 200 мл [19:58:56]line 1.000 * 40.00 [19:58:56]line = 40.00 [19:58:56]line НДС 12% НСП 1% [19:58:56]line > о реализуемом товаре [19:58:56]line ИТОГО: 40.00 [19:58:56]line НСП 1% : 0.35 [19:58:56]line НДС 12% : 4.25 [19:58:56]line Наличными: 40.00 [19:58:56]line Безнал.: 0.00 [19:58:56]line Место: АЗС № 135 "Партнер Нефть" [19:58:56]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [19:58:56]line СНО: Общий режим [19:58:56]line Чек 99 16.05.2024 19:58 [19:58:56]line Смена: 44 ФФД: 1.0 [19:58:56]line ЗНМ: 0300000237 [19:58:56]line РНМ: 0000000000154221 [19:58:56]line Версия ККМ: v1.0 [19:58:56]line ФМ: 0000000000963259 [19:58:56]line ФД: 5039 [19:58:56]line ФПД: 75740147780217 [19:58:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T195856&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5039&fm=75740147780217&tin=02508201610067®Number=0000000000154221&sum=4000 [19:58:56]line 0 [19:58:56]OFD Sender: Processing packet 5039 [packets to send 4, broken 3] [19:58:56]ProducePacketName [19:58:56]name=ofd_packets/00005039 [19:58:56]OFD Sender: To server: pG, [19:58:56]CommunicateWithHost lk.salyk.kg:30040 [19:58:56]ConnectInit lk.salyk.kg [19:58:56]written 0, free lines is 4095 [19:58:56]Connected sock=10 [19:58:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 22 01 00 00 EE 13 1A 01 F5 8B 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 32 30 30 30 30 33 39 34 34 30 30 31 31 06 04 1C 00 D0 A7 D0 B0 D0 B9 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 32 30 30 20 D0 BC 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 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 80 65 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AF 13 00 00 35 04 06 00 44 E2 A0 9A 8A 79 19 B0 97 E4 6A 23 8C 0B [19:58:57]Write to MH i2c: 01 00 00 A8 10 B8 [19:58:57]Write i2c OK [19:58:57]MH_I2C_Read... [19:58:57]Read from MH i2c: 01 [19:58:57]MH_I2C_Read... [19:58:57]Read from MH i2c: 01 07 00 [19:58:57]MH_I2C_Read... [19:58:57]Read from MH i2c: 01 07 00 A8 10 00 00 00 00 00 AA 0C 75 [19:58:57]RasterBufferAndPrint [19:58:57]line [19:58:57]line [19:58:57]line [19:58:57]line [19:58:57]line [19:58:57]written 0, free lines is 3245 [19:58:57]MH_Cut [19:58:57]Write to MH i2c: D1 01 00 AF 10 01 91 [19:58:57]Write i2c OK [19:58:57]MH_I2C_Read... [19:58:57]Read from MH i2c: D1 [19:58:57]MH_I2C_Read... [19:58:57]Read from MH i2c: D1 01 00 [19:58:57]MH_I2C_Read... [19:58:57]Read from MH i2c: D1 01 00 AF 10 00 90 [19:58:57]Write to MH i2c: 01 00 00 B0 10 C0 [19:58:57]Write i2c OK [19:58:57]MH_I2C_Read... [19:58:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 87 5B 47 00 B1 FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 AF 13 00 00 F4 03 04 00 43 11 46 66 B6 04 01 00 00 CD E0 AF 05 EC 2D 1B 8D [19:58:57]CommunicateWithHost err = 0 [19:58:57]CheckOFDResponse [19:58:57]1017 (14) - 77093643461234 [19:58:57]1041 (16) - 0000000000963259 [19:58:57]1040 (4) - 5039 [19:58:57]1012 (4) - 16.05.2024 13:59 [19:58:57]1206 (1) - 0 [19:58:57]OFD Sender: Remove packet 5039 [19:58:57]ProducePacketName [19:58:57]name=ofd_packets/00005039 [19:58:57]NVStorageDeleteData [19:58:57]OFD Sender: No OFD packet to send [19:58:58]*** Cut start [19:58:58]*** Partial cut [19:58:58]*** CUTSNS_PIN = 1 [19:58:58]*** CUTSNS_PIN = 0 [19:58:58]*** Brake cut motor [19:58:58]Read from MH i2c: 01 [19:58:58]MH_I2C_Read... [19:58:58]*** Stop cut motor [19:58:58]*** Cut end [19:58:58]Read from MH i2c: 01 07 00 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: 01 07 00 B0 10 00 00 00 00 00 FF 0F D5 [19:58:58]process_action close_receipt done [19:58:58]requested_data is exist [19:58:58]produce_requested_data [19:58:58]requested_item fm.sn is exist - process it [19:58:58]wFMCommunicate request_size=4 [19:58:58]MH_SAM_APDU [19:58:58]CAPDU: 80 11 00 00 [19:58:58]Write to MH i2c: E2 08 00 B1 10 80 11 00 00 00 00 00 00 3B [19:58:58]Write i2c OK [19:58:58]MH_I2C_Read... [19:58:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:58]Read from MH i2c: E2 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: E2 17 00 [19:58:58]MH_I2C_Read... [19:58:58]Read from MH i2c: E2 17 00 B1 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 90 [19:58:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [19:58:58]wFMCommunicate OK [19:58:58]requested_item fd.num is exist - process it [19:58:58]SAM_PROTO_GetFieldsCounters [19:58:58]wFMCommunicate request_size=4 [19:58:58]MH_SAM_APDU [19:58:58]CAPDU: 80 13 00 00 [19:58:58]Write to MH i2c: E2 08 00 B2 10 80 13 00 00 00 00 00 00 3E [19:58:58]Write i2c OK [19:58:58]MH_I2C_Read... [19:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:59]Read from MH i2c: E2 [19:58:59]MH_I2C_Read... [19:58:59]Read from MH i2c: E2 62 00 [19:58:59]MH_I2C_Read... [19:58:59]Read from MH i2c: E2 62 00 B2 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AF 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [19:58:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 AF 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 63 00 00 00 5E 04 04 00 63 00 00 00 57 04 04 00 64 00 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:59]wFMCommunicate OK [19:58:59]SAM_PROTO_GetFieldsCounters done [19:58:59]requested_item shift.num is exist - process it [19:58:59]requested_item shift.opened is exist - process it [19:58:59]req_shift_opened [19:58:59]FM_GetShiftState [19:58:59]SAM_PROTO_GetShiftState [19:58:59]wFMCommunicate request_size=4 [19:58:59]MH_SAM_APDU [19:58:59]CAPDU: 80 13 01 00 [19:58:59]Write to MH i2c: E2 08 00 B3 10 80 13 01 00 00 00 00 00 40 [19:58:59]Write i2c OK [19:58:59]MH_I2C_Read... [19:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:59]Read from MH i2c: E2 [19:58:59]MH_I2C_Read... [19:58:59]Read from MH i2c: E2 0E 00 [19:58:59]MH_I2C_Read... [19:58:59]Read from MH i2c: E2 0E 00 B3 10 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 4C [19:58:59]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [19:58:59]wFMCommunicate OK [19:58:59]SAM_PROTO_GetShiftState done [19:58:59]FM_GetShiftState done [19:58:59]req_shift_opened done [19:58:59]requested_item shift.open_date is exist - process it [19:58:59]req_shift_open_date [19:58:59]req_shift_open_date done [19:58:59]produce_requested_data done [19:58:59]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5039,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [19:58:59]process_action_free close_receipt [19:58:59]json_value_free [19:58:59]json_value_free done [19:58:59]process_json_proto returns [19:58:59]Send response to host [19:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5039,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [19:58:59]free response buf [19:58:59]execute_script done [19:58:59]execute_script returns [19:58:59]free content buf [19:58:59]Sock 9.Close socket [19:58:59]Sock 9.Thread stoped [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:26]accept exits with 7 [20:00:26]New connection [20:00:26]New thread 3067252068 created [20:00:26]Thread 3067108708 joined [20:00:26]Waiting for new connection... [20:00:26] Sock 7.Parse request [20:00:26]Sock 7.Check first char [20:00:26]Sock 7.First char is OK [20:00:26]request: POST /json_proto HTTP/1.0 [20:00:26]Method: POST [20:00:26]URL: /json_proto [20:00:26]Method is POST - this is cgi request [20:00:26]url: /json_proto [20:00:26]query_string will be loaded in cgi processing [20:00:26]execute_cgi json_proto POST (null) [20:00:26]execute_cgi path=json_proto method=POST [20:00:26]POST find Content-Length [20:00:26]Host: 172.17.44.4:8080 [20:00:26]Content-Length: 632 [20:00:26]Content-Type: application/json [20:00:26] [20:00:26]POST finish read [20:00:26]Found Content-Length = 632 [20:00:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141030", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:26]execute_script... [20:00:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141030", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:26]POST & json_proto [20:00:26]process_json_proto [20:00:26]json parsed OK: [20:00:26]protocol is kg_v1.0 [20:00:26]action value=close_receipt [20:00:26]process_action close_receipt [20:00:26]cmd_close_receipt [20:00:26]MH_GetDate [20:00:26]Write to MH i2c: F0 00 00 B4 10 B3 [20:00:26]Write i2c OK [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: F0 [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: F0 09 00 [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: F0 09 00 B4 10 00 DC 65 46 66 6C E9 28 66 8C [20:00:26]GetLastDocTimeStamp 1715889536 [20:00:26]current date 1715889628 [20:00:26]FM_GetShiftState [20:00:26]SAM_PROTO_GetShiftState [20:00:26]wFMCommunicate request_size=4 [20:00:26]MH_SAM_APDU [20:00:26]CAPDU: 80 13 01 00 [20:00:26]Write to MH i2c: E2 08 00 B5 10 80 13 01 00 00 00 00 00 42 [20:00:26]Write i2c OK [20:00:26]MH_I2C_Read... [20:00:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:26]Read from MH i2c: E2 [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: E2 0E 00 [20:00:26]MH_I2C_Read... [20:00:26]Read from MH i2c: E2 0E 00 B5 10 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 4E [20:00:26]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:00:26]wFMCommunicate OK [20:00:26]SAM_PROTO_GetShiftState done [20:00:26]FM_GetShiftState done [20:00:26]opened in 1715818246 [20:00:26]opened+sec_in_day 1715904646 [20:00:26]quantity*price = 8000 [20:00:26]sum+1 = 8001 [20:00:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 100 16.05.2024 20:00 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5040 ФПД: 190682605289533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T200028&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5040&fm=190682605289533&tin=02508201610067®Number=0000000000154221&sum=8000 0 [20:00:27]StoreToDocumentArchive [20:00:27]shift 44 fd 5040 [20:00:27]save to /storage/0044/doc_00005040 [20:00:27]save last doc name /storage/0044/doc_00005040 to /storage/kkm_last_doc_name [20:00:27]save OK [20:00:27]Clear old archive folders... [20:00:27]ProcessDocumentItem done err = 0, tmpTLVsize=271 [20:00:27]tlvbuf is 011DDDC0 [20:00:27]SAM_PROTO_ClearQueue [20:00:27]wFMCommunicate request_size=4 [20:00:27]MH_SAM_APDU [20:00:27]CAPDU: 80 09 00 00 [20:00:27]Write to MH i2c: E2 08 00 C2 10 80 09 00 00 00 00 00 00 44 [20:00:27]Write i2c OK [20:00:27]MH_I2C_Read... [20:00:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:27]OFD Sender: No OFD packet to send [20:00:27]Read from MH i2c: E2 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 03 00 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 03 00 C2 10 00 90 00 46 [20:00:27]RAPDU: 90 00 [20:00:27]wFMCommunicate OK [20:00:27]SAM_PROTO_ClearQueue done [20:00:27]KKMCreateOFDPacket [20:00:27]OFDProtocolAddRootSTLVToBuf [20:00:27]FM_MakeSignedData [20:00:27]FM_MakeSignedData [20:00:27]SAM_PROTO_SignData [20:00:27]wFMCommunicate request_size=4 [20:00:27]MH_SAM_APDU [20:00:27]CAPDU: 80 0D 01 02 [20:00:27]Write to MH i2c: E2 08 00 C3 10 80 0D 01 02 00 00 00 00 4C [20:00:27]Write i2c OK [20:00:27]MH_I2C_Read... [20:00:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:27]Read from MH i2c: E2 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 03 00 [20:00:27]MH_I2C_Read... [20:00:27]Read from MH i2c: E2 03 00 C3 10 00 90 00 47 [20:00:27]RAPDU: 90 00 [20:00:27]wFMCommunicate OK [20:00:27]wFMCommunicate request_size=255 [20:00:27]MH_SAM_APDU [20:00:27]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 64 00 00 00 F4 03 04 00 DC 65 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [20:00:27]Write to MH i2c: E2 02 01 C4 10 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 64 00 00 00 F4 03 04 00 DC 65 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 6F [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:28]Read from MH i2c: E2 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 03 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 03 00 C4 10 00 90 00 48 [20:00:28]RAPDU: 90 00 [20:00:28]wFMCommunicate OK [20:00:28]wFMCommunicate request_size=30 [20:00:28]MH_SAM_APDU [20:00:28]CAPDU: 80 0D 02 02 19 30 39 36 33 32 35 39 10 04 04 00 B0 13 00 00 35 04 06 00 AD 6C C0 F4 00 3D [20:00:28]Write to MH i2c: E2 21 00 C5 10 80 0D 02 02 19 00 30 39 36 33 32 35 39 10 04 04 00 B0 13 00 00 35 04 06 00 AD 6C C0 F4 00 3D 00 00 17 [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:28]Read from MH i2c: E2 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 03 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 03 00 C5 10 00 90 00 49 [20:00:28]RAPDU: 90 00 [20:00:28]wFMCommunicate OK [20:00:28]wFMCommunicate request_size=4 [20:00:28]MH_SAM_APDU [20:00:28]CAPDU: 80 0D 03 02 [20:00:28]Write to MH i2c: E2 08 00 C6 10 80 0D 03 02 00 00 00 00 51 [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:28]Read from MH i2c: E2 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 0B 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 0B 00 C6 10 00 51 6B 58 AD 20 3C 85 D8 90 00 CC [20:00:28]RAPDU: 51 6B 58 AD 20 3C 85 D8 90 00 [20:00:28]wFMCommunicate OK [20:00:28]SAM_PROTO_SignData done [20:00:28]FM_MakeSignedData done [20:00:28]CreateOFDProtocolMessage [20:00:28]wFMCommunicate request_size=4 [20:00:28]MH_SAM_APDU [20:00:28]CAPDU: 80 11 00 00 [20:00:28]Write to MH i2c: E2 08 00 C7 10 80 11 00 00 00 00 00 00 51 [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:28]Read from MH i2c: E2 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 17 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: E2 17 00 C7 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A6 [20:00:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:00:28]wFMCommunicate OK [20:00:28]CreateOFDProtocolMessage done [20:00:28]OFDSenderStorePacket 5040 [20:00:28]StoreOFDPacket docnum=5040 [20:00:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 23 01 00 00 1E 6C 1B 01 AE 8C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 64 00 00 00 F4 03 04 00 DC 65 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B0 13 00 00 35 04 06 00 AD 6C C0 F4 00 3D 51 6B 58 AD 20 3C 85 D8 [20:00:28]CheckFolder [20:00:28]dirname=/storage/ofd_packets [20:00:28]CheckFolder done [20:00:28]ProducePacketName [20:00:28]name=ofd_packets/00005040 [20:00:28]NVStorageSaveData ofd_packets/00005040 [20:00:28]File name is /storage/ofd_packets/00005040 [20:00:28]Write 321 bytes [20:00:28]NVStorageSaveData done [20:00:28]OFDSenderStorePacket done [20:00:28]KKMCreateOFDPacket done [20:00:28]NVStorageSaveData kkm_last_timestamp [20:00:28]File name is /storage/kkm_last_timestamp [20:00:28]Write 4 bytes [20:00:28]NVStorageSaveData done [20:00:28]ExternCall_PrintAddStr [20:00:28]wPrintStart [20:00:28]Write to MH i2c: 01 00 00 C8 10 D8 [20:00:28]OFD Sender: Processing packet 5040 [packets to send 4, broken 3] [20:00:28]ProducePacketName [20:00:28]name=ofd_packets/00005040 [20:00:28]OFD Sender: To server: pG, [20:00:28]CommunicateWithHost lk.salyk.kg:30040 [20:00:28]ConnectInit lk.salyk.kg [20:00:28]Write i2c OK [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: 01 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: 01 07 00 [20:00:28]MH_I2C_Read... [20:00:28]Read from MH i2c: 01 07 00 C8 10 00 00 00 00 00 FF 0F ED [20:00:28]RasterBufferAndPrint [20:00:28]line Счет N : (3)141030 [20:00:28]line ИНН: 02508201610067 [20:00:28]line Контрольно-Кассовый Чек [20:00:28]line ПРОДАЖА [20:00:28]line Товар: 4700000160211 [20:00:28]line Вода Легенда 0,5л [20:00:28]line 2.000 * 40.00 [20:00:28]line = 80.00 [20:00:28]line НДС 12% НСП 1% [20:00:28]line > о реализуемом товаре [20:00:28]line ИТОГО: 80.00 [20:00:28]line НСП 1% : 0.71 [20:00:28]line НДС 12% : 8.50 [20:00:28]line Наличными: 80.00 [20:00:28]line Безнал.: 0.00 [20:00:28]line Место: АЗС № 135 "Партнер Нефть" [20:00:28]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [20:00:28]line СНО: Общий режим [20:00:28]line Чек 100 16.05.2024 20:00 [20:00:28]line Смена: 44 ФФД: 1.0 [20:00:28]line ЗНМ: 0300000237 [20:00:28]line РНМ: 0000000000154221 [20:00:28]line Версия ККМ: v1.0 [20:00:28]line ФМ: 0000000000963259 [20:00:28]line ФД: 5040 [20:00:28]line ФПД: 190682605289533 [20:00:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T200028&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5040&fm=190682605289533&tin=02508201610067®Number=0000000000154221&sum=8000 [20:00:28]Connected sock=10 [20:00:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 23 01 00 00 1E 6C 1B 01 AE 8C 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 64 00 00 00 F4 03 04 00 DC 65 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B0 13 00 00 35 04 06 00 AD 6C C0 F4 00 3D 51 6B 58 AD 20 3C 85 D8 [20:00:28]line 0 [20:00:28]written 0, free lines is 4095 [20:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 4E 20 47 00 8E EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B0 13 00 00 F4 03 04 00 9E 11 46 66 B6 04 01 00 00 75 ED A6 F3 33 49 F4 11 [20:00:29]CommunicateWithHost err = 0 [20:00:29]CheckOFDResponse [20:00:29]1017 (14) - 77093643461234 [20:00:29]1041 (16) - 0000000000963259 [20:00:29]1040 (4) - 5040 [20:00:29]1012 (4) - 16.05.2024 14:01 [20:00:29]1206 (1) - 0 [20:00:29]OFD Sender: Remove packet 5040 [20:00:29]ProducePacketName [20:00:29]name=ofd_packets/00005040 [20:00:29]NVStorageDeleteData [20:00:29]Write to MH i2c: 01 00 00 F0 10 00 [20:00:29]Write i2c OK [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: 01 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: 01 07 00 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: 01 07 00 F0 10 00 00 00 00 00 9A 0C AD [20:00:29]RasterBufferAndPrint [20:00:29]line [20:00:29]line [20:00:29]line [20:00:29]line [20:00:29]line [20:00:29]written 0, free lines is 3229 [20:00:29]MH_Cut [20:00:29]Write to MH i2c: D1 01 00 F7 10 01 D9 [20:00:29]Write i2c OK [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: D1 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: D1 01 00 [20:00:29]MH_I2C_Read... [20:00:29]Read from MH i2c: D1 01 00 F7 10 00 D8 [20:00:29]Write to MH i2c: 01 00 00 F8 10 08 [20:00:29]Write i2c OK [20:00:29]MH_I2C_Read... [20:00:29]OFD Sender: No OFD packet to send [20:00:30]*** Cut start [20:00:30]*** Partial cut [20:00:30]*** CUTSNS_PIN = 1 [20:00:30]*** CUTSNS_PIN = 0 [20:00:30]*** Brake cut motor [20:00:30]Read from MH i2c: 01 [20:00:30]MH_I2C_Read... [20:00:30]*** Stop cut motor [20:00:30]*** Cut end [20:00:30]Read from MH i2c: 01 07 00 [20:00:30]MH_I2C_Read... [20:00:30]Read from MH i2c: 01 07 00 F8 10 00 00 00 00 00 FF 0F 1D [20:00:30]process_action close_receipt done [20:00:30]requested_data is exist [20:00:30]produce_requested_data [20:00:30]requested_item fm.sn is exist - process it [20:00:30]wFMCommunicate request_size=4 [20:00:30]MH_SAM_APDU [20:00:30]CAPDU: 80 11 00 00 [20:00:30]Write to MH i2c: E2 08 00 F9 10 80 11 00 00 00 00 00 00 83 [20:00:30]Write i2c OK [20:00:30]MH_I2C_Read... [20:00:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:31]Read from MH i2c: E2 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 17 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 17 00 F9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D8 [20:00:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:00:31]wFMCommunicate OK [20:00:31]requested_item fd.num is exist - process it [20:00:31]SAM_PROTO_GetFieldsCounters [20:00:31]wFMCommunicate request_size=4 [20:00:31]MH_SAM_APDU [20:00:31]CAPDU: 80 13 00 00 [20:00:31]Write to MH i2c: E2 08 00 FA 10 80 13 00 00 00 00 00 00 86 [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:31]Read from MH i2c: E2 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 62 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 62 00 FA 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B0 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [20:00:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B0 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 64 00 00 00 5E 04 04 00 64 00 00 00 57 04 04 00 65 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:31]wFMCommunicate OK [20:00:31]SAM_PROTO_GetFieldsCounters done [20:00:31]requested_item shift.num is exist - process it [20:00:31]requested_item shift.opened is exist - process it [20:00:31]req_shift_opened [20:00:31]FM_GetShiftState [20:00:31]SAM_PROTO_GetShiftState [20:00:31]wFMCommunicate request_size=4 [20:00:31]MH_SAM_APDU [20:00:31]CAPDU: 80 13 01 00 [20:00:31]Write to MH i2c: E2 08 00 FB 10 80 13 01 00 00 00 00 00 88 [20:00:31]Write i2c OK [20:00:31]MH_I2C_Read... [20:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:31]Read from MH i2c: E2 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 0E 00 [20:00:31]MH_I2C_Read... [20:00:31]Read from MH i2c: E2 0E 00 FB 10 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 94 [20:00:31]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:00:31]wFMCommunicate OK [20:00:31]SAM_PROTO_GetShiftState done [20:00:31]FM_GetShiftState done [20:00:31]req_shift_opened done [20:00:31]requested_item shift.open_date is exist - process it [20:00:31]req_shift_open_date [20:00:31]req_shift_open_date done [20:00:31]produce_requested_data done [20:00:31]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5040,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [20:00:31]process_action_free close_receipt [20:00:31]json_value_free [20:00:31]json_value_free done [20:00:31]process_json_proto returns [20:00:31]Send response to host [20:00:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5040,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [20:00:31]free response buf [20:00:31]execute_script done [20:00:31]execute_script returns [20:00:31]free content buf [20:00:31]Sock 7.Close socket [20:00:31]Sock 7.Thread stoped [20:00:34]OFD Sender: No OFD packet to send [20:00:39]OFD Sender: No OFD packet to send [20:00:44]OFD Sender: No OFD packet to send [20:00:49]OFD Sender: No OFD packet to send [20:00:54]OFD Sender: No OFD packet to send [20:00:59]OFD Sender: No OFD packet to send [20:01:04]OFD Sender: No OFD packet to send [20:01:09]OFD Sender: No OFD packet to send [20:01:14]OFD Sender: No OFD packet to send [20:01:19]OFD Sender: No OFD packet to send [20:01:24]OFD Sender: No OFD packet to send [20:01:29]OFD Sender: No OFD packet to send [20:01:34]OFD Sender: No OFD packet to send [20:01:39]OFD Sender: No OFD packet to send [20:01:44]OFD Sender: No OFD packet to send [20:01:49]OFD Sender: No OFD packet to send [20:01:54]OFD Sender: No OFD packet to send [20:01:59]OFD Sender: No OFD packet to send [20:02:04]OFD Sender: No OFD packet to send [20:02:09]OFD Sender: No OFD packet to send [20:02:14]OFD Sender: No OFD packet to send [20:02:19]OFD Sender: No OFD packet to send [20:02:24]OFD Sender: No OFD packet to send [20:02:29]OFD Sender: No OFD packet to send [20:02:34]OFD Sender: No OFD packet to send [20:02:39]OFD Sender: No OFD packet to send [20:02:44]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:24]OFD Sender: No OFD packet to send [20:06:29]OFD Sender: No OFD packet to send [20:06:34]OFD Sender: No OFD packet to send [20:06:39]OFD Sender: No OFD packet to send [20:06:44]OFD Sender: No OFD packet to send [20:06:49]OFD Sender: No OFD packet to send [20:06:54]OFD Sender: No OFD packet to send [20:06:59]OFD Sender: No OFD packet to send [20:07:04]OFD Sender: No OFD packet to send [20:07:09]OFD Sender: No OFD packet to send [20:07:14]OFD Sender: No OFD packet to send [20:07:19]OFD Sender: No OFD packet to send [20:07:24]OFD Sender: No OFD packet to send [20:07:29]OFD Sender: No OFD packet to send [20:07:34]OFD Sender: No OFD packet to send [20:07:39]OFD Sender: No OFD packet to send [20:07:44]OFD Sender: No OFD packet to send [20:07:49]OFD Sender: No OFD packet to send [20:07:54]OFD Sender: No OFD packet to send [20:07:59]OFD Sender: No OFD packet to send [20:08:04]OFD Sender: No OFD packet to send [20:08:09]accept exits with 9 [20:08:09]New connection [20:08:09]New thread 3067108708 created [20:08:09]Thread 3067252068 joined [20:08:09]Waiting for new connection... [20:08:09] Sock 9.Parse request [20:08:09]Sock 9.Check first char [20:08:09]Sock 9.First char is OK [20:08:09]request: POST /json_proto HTTP/1.0 [20:08:09]Method: POST [20:08:09]URL: /json_proto [20:08:09]Method is POST - this is cgi request [20:08:09]url: /json_proto [20:08:09]query_string will be loaded in cgi processing [20:08:09]execute_cgi json_proto POST (null) [20:08:09]execute_cgi path=json_proto method=POST [20:08:09]POST find Content-Length [20:08:09]Host: 172.17.44.4:8080 [20:08:09]Content-Length: 725 [20:08:09]Content-Type: application/json [20:08:09] [20:08:09]POST finish read [20:08:09]Found Content-Length = 725 [20:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141031", "tax_sys" : 0, "items" : [ { "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:09]execute_script... [20:08:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141031", "tax_sys" : 0, "items" : [ { "code": "4870202521179", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,45", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:09]POST & json_proto [20:08:09]process_json_proto [20:08:09]json parsed OK: [20:08:09]protocol is kg_v1.0 [20:08:09]action value=close_receipt [20:08:09]process_action close_receipt [20:08:09]cmd_close_receipt [20:08:09]MH_GetDate [20:08:09]Write to MH i2c: F0 00 00 FC 10 FB [20:08:09]Write i2c OK [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: F0 [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: F0 09 00 [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: F0 09 00 FC 10 00 AB 67 46 66 6C E9 28 66 A5 [20:08:09]GetLastDocTimeStamp 1715889628 [20:08:09]current date 1715890091 [20:08:09]FM_GetShiftState [20:08:09]SAM_PROTO_GetShiftState [20:08:09]wFMCommunicate request_size=4 [20:08:09]MH_SAM_APDU [20:08:09]CAPDU: 80 13 01 00 [20:08:09]Write to MH i2c: E2 08 00 FD 10 80 13 01 00 00 00 00 00 8A [20:08:09]Write i2c OK [20:08:09]MH_I2C_Read... [20:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:09]Read from MH i2c: E2 [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: E2 0E 00 [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: E2 0E 00 FD 10 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 96 [20:08:09]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:08:09]wFMCommunicate OK [20:08:09]SAM_PROTO_GetShiftState done [20:08:09]FM_GetShiftState done [20:08:09]opened in 1715818246 [20:08:09]opened+sec_in_day 1715904646 [20:08:09]quantity*price = 7000 [20:08:09]sum+1 = 7001 [20:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 101 16.05.2024 20:08 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5041 ФПД: 62794520067535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T200811&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5041&fm=62794520067535&tin=02508201610067®Number=0000000000154221&sum=7000 0 [20:08:10]StoreToDocumentArchive [20:08:10]shift 44 fd 5041 [20:08:10]save to /storage/0044/doc_00005041 [20:08:10]save last doc name /storage/0044/doc_00005041 to /storage/kkm_last_doc_name [20:08:10]save OK [20:08:10]Clear old archive folders... [20:08:10]ProcessDocumentItem done err = 0, tmpTLVsize=308 [20:08:10]tlvbuf is B6F9E330 [20:08:10]SAM_PROTO_ClearQueue [20:08:10]wFMCommunicate request_size=4 [20:08:10]MH_SAM_APDU [20:08:10]CAPDU: 80 09 00 00 [20:08:10]Write to MH i2c: E2 08 00 0A 11 80 09 00 00 00 00 00 00 8D [20:08:10]Write i2c OK [20:08:10]MH_I2C_Read... [20:08:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:10]Read from MH i2c: E2 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: E2 03 00 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: E2 03 00 0A 11 00 90 00 8F [20:08:10]RAPDU: 90 00 [20:08:10]wFMCommunicate OK [20:08:10]SAM_PROTO_ClearQueue done [20:08:10]KKMCreateOFDPacket [20:08:10]OFDProtocolAddRootSTLVToBuf [20:08:10]FM_MakeSignedData [20:08:10]FM_MakeSignedData [20:08:10]SAM_PROTO_SignData [20:08:10]wFMCommunicate request_size=4 [20:08:10]MH_SAM_APDU [20:08:10]CAPDU: 80 0D 01 02 [20:08:10]Write to MH i2c: E2 08 00 0B 11 80 0D 01 02 00 00 00 00 95 [20:08:10]Write i2c OK [20:08:10]MH_I2C_Read... [20:08:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:10]Read from MH i2c: E2 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: E2 03 00 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: E2 03 00 0B 11 00 90 00 90 [20:08:10]RAPDU: 90 00 [20:08:10]wFMCommunicate OK [20:08:10]wFMCommunicate request_size=255 [20:08:10]MH_SAM_APDU [20:08:10]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AB 67 46 66 0E 04 04 00 2C 00 00 00 B9 [20:08:10]Write to MH i2c: E2 02 01 0C 11 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AB 67 46 66 0E 04 04 00 2C 00 00 00 B9 00 00 BC [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 0C 11 00 90 00 91 [20:08:11]RAPDU: 90 00 [20:08:11]wFMCommunicate OK [20:08:11]wFMCommunicate request_size=67 [20:08:11]MH_SAM_APDU [20:08:11]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B1 13 00 00 35 04 06 00 39 1C 7D 0F FD CF [20:08:11]Write to MH i2c: E2 46 00 0D 11 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B1 13 00 00 35 04 06 00 39 1C 7D 0F FD CF 00 00 59 [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 03 00 0D 11 00 90 00 92 [20:08:11]RAPDU: 90 00 [20:08:11]wFMCommunicate OK [20:08:11]wFMCommunicate request_size=4 [20:08:11]MH_SAM_APDU [20:08:11]CAPDU: 80 0D 03 02 [20:08:11]Write to MH i2c: E2 08 00 0E 11 80 0D 03 02 00 00 00 00 9A [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 0B 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 0B 00 0E 11 00 46 7F E4 10 D1 EF 95 CB 90 00 74 [20:08:11]RAPDU: 46 7F E4 10 D1 EF 95 CB 90 00 [20:08:11]wFMCommunicate OK [20:08:11]SAM_PROTO_SignData done [20:08:11]FM_MakeSignedData done [20:08:11]CreateOFDProtocolMessage [20:08:11]wFMCommunicate request_size=4 [20:08:11]MH_SAM_APDU [20:08:11]CAPDU: 80 11 00 00 [20:08:11]Write to MH i2c: E2 08 00 0F 11 80 11 00 00 00 00 00 00 9A [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 17 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 17 00 0F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 EF [20:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:08:11]wFMCommunicate OK [20:08:11]CreateOFDProtocolMessage done [20:08:11]OFDSenderStorePacket 5041 [20:08:11]StoreOFDPacket docnum=5041 [20:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 48 01 00 00 D9 1D 40 01 50 1E 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AB 67 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B1 13 00 00 35 04 06 00 39 1C 7D 0F FD CF 46 7F E4 10 D1 EF 95 CB [20:08:11]CheckFolder [20:08:11]dirname=/storage/ofd_packets [20:08:11]CheckFolder done [20:08:11]ProducePacketName [20:08:11]name=ofd_packets/00005041 [20:08:11]NVStorageSaveData ofd_packets/00005041 [20:08:11]File name is /storage/ofd_packets/00005041 [20:08:11]Write 358 bytes [20:08:11]NVStorageSaveData done [20:08:11]OFDSenderStorePacket done [20:08:11]KKMCreateOFDPacket done [20:08:11]NVStorageSaveData kkm_last_timestamp [20:08:11]File name is /storage/kkm_last_timestamp [20:08:11]Write 4 bytes [20:08:11]NVStorageSaveData done [20:08:11]ExternCall_PrintAddStr [20:08:11]wPrintStart [20:08:11]Write to MH i2c: 01 00 00 10 11 21 [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: 01 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: 01 07 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: 01 07 00 10 11 00 00 00 00 00 FF 0F 36 [20:08:11]RasterBufferAndPrint [20:08:11]line Счет N : (3)141031 [20:08:11]line ИНН: 02508201610067 [20:08:11]line Контрольно-Кассовый Чек [20:08:11]line ПРОДАЖА [20:08:11]line Товар: 4870202521179 [20:08:11]line Чай холодный MAXI черный персик ПЭТ 0,45 [20:08:11]line 1.000 * 70.00 [20:08:11]line = 70.00 [20:08:11]line НДС 12% НСП 1% [20:08:11]line > о реализуемом товаре [20:08:11]line ИТОГО: 70.00 [20:08:11]line НСП 1% : 0.62 [20:08:11]line НДС 12% : 7.43 [20:08:11]line Наличными: 70.00 [20:08:11]line Безнал.: 0.00 [20:08:11]line Место: АЗС № 135 "Партнер Нефть" [20:08:11]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [20:08:11]line СНО: Общий режим [20:08:11]line Чек 101 16.05.2024 20:08 [20:08:11]line Смена: 44 ФФД: 1.0 [20:08:11]line ЗНМ: 0300000237 [20:08:11]line РНМ: 0000000000154221 [20:08:11]line Версия ККМ: v1.0 [20:08:11]line ФМ: 0000000000963259 [20:08:11]line ФД: 5041 [20:08:11]line ФПД: 62794520067535 [20:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T200811&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5041&fm=62794520067535&tin=02508201610067®Number=0000000000154221&sum=7000 [20:08:11]line 0 [20:08:11]OFD Sender: Processing packet 5041 [packets to send 4, broken 3] [20:08:11]ProducePacketName [20:08:11]name=ofd_packets/00005041 [20:08:11]OFD Sender: To server: pG, [20:08:11]CommunicateWithHost lk.salyk.kg:30040 [20:08:11]ConnectInit lk.salyk.kg [20:08:11]written 0, free lines is 4095 [20:08:11]Connected sock=10 [20:08:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 48 01 00 00 D9 1D 40 01 50 1E 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 37 39 06 04 42 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 34 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 00 00 00 F4 03 04 00 AB 67 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B1 13 00 00 35 04 06 00 39 1C 7D 0F FD CF 46 7F E4 10 D1 EF 95 CB [20:08:12]Write to MH i2c: 01 00 00 39 11 4A [20:08:12]Write i2c OK [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: 01 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: 01 07 00 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: 01 07 00 39 11 00 00 00 00 00 76 0C D3 [20:08:12]RasterBufferAndPrint [20:08:12]line [20:08:12]line [20:08:12]line [20:08:12]line [20:08:12]line [20:08:12]written 0, free lines is 3195 [20:08:12]MH_Cut [20:08:12]Write to MH i2c: D1 01 00 40 11 01 23 [20:08:12]Write i2c OK [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: D1 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: D1 01 00 [20:08:12]MH_I2C_Read... [20:08:12]Read from MH i2c: D1 01 00 40 11 00 22 [20:08:12]Write to MH i2c: 01 00 00 41 11 52 [20:08:12]Write i2c OK [20:08:12]MH_I2C_Read... [20:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 A8 59 47 00 A9 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B1 13 00 00 F4 03 04 00 6E 13 46 66 B6 04 01 00 00 9E 02 65 26 1C D3 B3 F0 [20:08:12]CommunicateWithHost err = 0 [20:08:12]CheckOFDResponse [20:08:12]1017 (14) - 77093643461234 [20:08:12]1041 (16) - 0000000000963259 [20:08:12]1040 (4) - 5041 [20:08:12]1012 (4) - 16.05.2024 14:08 [20:08:12]1206 (1) - 0 [20:08:12]OFD Sender: Remove packet 5041 [20:08:12]ProducePacketName [20:08:12]name=ofd_packets/00005041 [20:08:12]NVStorageDeleteData [20:08:12]OFD Sender: No OFD packet to send [20:08:13]*** Cut start [20:08:13]*** Partial cut [20:08:13]*** CUTSNS_PIN = 1 [20:08:13]*** CUTSNS_PIN = 0 [20:08:13]*** Brake cut motor [20:08:13]Read from MH i2c: 01 [20:08:13]MH_I2C_Read... [20:08:13]*** Stop cut motor [20:08:13]*** Cut end [20:08:13]Read from MH i2c: 01 07 00 [20:08:13]MH_I2C_Read... [20:08:13]Read from MH i2c: 01 07 00 41 11 00 00 00 00 00 FF 0F 67 [20:08:13]process_action close_receipt done [20:08:13]requested_data is exist [20:08:13]produce_requested_data [20:08:13]requested_item fm.sn is exist - process it [20:08:13]wFMCommunicate request_size=4 [20:08:13]MH_SAM_APDU [20:08:13]CAPDU: 80 11 00 00 [20:08:13]Write to MH i2c: E2 08 00 42 11 80 11 00 00 00 00 00 00 CD [20:08:13]Write i2c OK [20:08:13]MH_I2C_Read... [20:08:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:14]Read from MH i2c: E2 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: E2 17 00 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: E2 17 00 42 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 22 [20:08:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:08:14]wFMCommunicate OK [20:08:14]requested_item fd.num is exist - process it [20:08:14]SAM_PROTO_GetFieldsCounters [20:08:14]wFMCommunicate request_size=4 [20:08:14]MH_SAM_APDU [20:08:14]CAPDU: 80 13 00 00 [20:08:14]Write to MH i2c: E2 08 00 43 11 80 13 00 00 00 00 00 00 D0 [20:08:14]Write i2c OK [20:08:14]MH_I2C_Read... [20:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:14]Read from MH i2c: E2 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: E2 62 00 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: E2 62 00 43 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B1 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 08 [20:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B1 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 65 00 00 00 5E 04 04 00 65 00 00 00 57 04 04 00 66 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:14]wFMCommunicate OK [20:08:14]SAM_PROTO_GetFieldsCounters done [20:08:14]requested_item shift.num is exist - process it [20:08:14]requested_item shift.opened is exist - process it [20:08:14]req_shift_opened [20:08:14]FM_GetShiftState [20:08:14]SAM_PROTO_GetShiftState [20:08:14]wFMCommunicate request_size=4 [20:08:14]MH_SAM_APDU [20:08:14]CAPDU: 80 13 01 00 [20:08:14]Write to MH i2c: E2 08 00 44 11 80 13 01 00 00 00 00 00 D2 [20:08:14]Write i2c OK [20:08:14]MH_I2C_Read... [20:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:14]Read from MH i2c: E2 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: E2 0E 00 [20:08:14]MH_I2C_Read... [20:08:14]Read from MH i2c: E2 0E 00 44 11 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 DE [20:08:14]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:08:14]wFMCommunicate OK [20:08:14]SAM_PROTO_GetShiftState done [20:08:14]FM_GetShiftState done [20:08:14]req_shift_opened done [20:08:14]requested_item shift.open_date is exist - process it [20:08:14]req_shift_open_date [20:08:14]req_shift_open_date done [20:08:14]produce_requested_data done [20:08:14]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5041,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [20:08:14]process_action_free close_receipt [20:08:14]json_value_free [20:08:14]json_value_free done [20:08:14]process_json_proto returns [20:08:14]Send response to host [20:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5041,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [20:08:14]free response buf [20:08:14]execute_script done [20:08:14]execute_script returns [20:08:14]free content buf [20:08:14]Sock 9.Close socket [20:08:14]Sock 9.Thread stoped [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:42]OFD Sender: No OFD packet to send [20:08:47]OFD Sender: No OFD packet to send [20:08:52]OFD Sender: No OFD packet to send [20:08:57]OFD Sender: No OFD packet to send [20:09:02]OFD Sender: No OFD packet to send [20:09:07]OFD Sender: No OFD packet to send [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:57]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:53]OFD Sender: No OFD packet to send [20:11:58]OFD Sender: No OFD packet to send [20:12:03]OFD Sender: No OFD packet to send [20:12:08]OFD Sender: No OFD packet to send [20:12:13]OFD Sender: No OFD packet to send [20:12:18]OFD Sender: No OFD packet to send [20:12:23]OFD Sender: No OFD packet to send [20:12:28]OFD Sender: No OFD packet to send [20:12:28]accept exits with 7 [20:12:28]New connection [20:12:28]New thread 3067252068 created [20:12:28]Thread 3067108708 joined [20:12:28]Waiting for new connection... [20:12:28] Sock 7.Parse request [20:12:28]Sock 7.Check first char [20:12:28]Sock 7.First char is OK [20:12:28]request: POST /json_proto HTTP/1.0 [20:12:28]Method: POST [20:12:28]URL: /json_proto [20:12:28]Method is POST - this is cgi request [20:12:28]url: /json_proto [20:12:28]query_string will be loaded in cgi processing [20:12:28]execute_cgi json_proto POST (null) [20:12:28]execute_cgi path=json_proto method=POST [20:12:28]POST find Content-Length [20:12:28]Host: 172.17.44.4:8080 [20:12:28]Content-Length: 620 [20:12:28]Content-Type: application/json [20:12:28] [20:12:28]POST finish read [20:12:28]Found Content-Length = 620 [20:12:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141032", "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" ] } } [20:12:28]execute_script... [20:12: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)141032", "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" ] } } [20:12:28]POST & json_proto [20:12:28]process_json_proto [20:12:28]json parsed OK: [20:12:28]protocol is kg_v1.0 [20:12:28]action value=close_receipt [20:12:28]process_action close_receipt [20:12:28]cmd_close_receipt [20:12:28]MH_GetDate [20:12:28]Write to MH i2c: F0 00 00 45 11 45 [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: F0 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: F0 09 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: F0 09 00 45 11 00 AE 68 46 66 6C E9 28 66 F3 [20:12:28]GetLastDocTimeStamp 1715890091 [20:12:28]current date 1715890350 [20:12:28]FM_GetShiftState [20:12:28]SAM_PROTO_GetShiftState [20:12:28]wFMCommunicate request_size=4 [20:12:28]MH_SAM_APDU [20:12:28]CAPDU: 80 13 01 00 [20:12:28]Write to MH i2c: E2 08 00 46 11 80 13 01 00 00 00 00 00 D4 [20:12:28]Write i2c OK [20:12:28]MH_I2C_Read... [20:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:28]Read from MH i2c: E2 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 0E 00 [20:12:28]MH_I2C_Read... [20:12:28]Read from MH i2c: E2 0E 00 46 11 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E0 [20:12:28]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:12:28]wFMCommunicate OK [20:12:28]SAM_PROTO_GetShiftState done [20:12:28]FM_GetShiftState done [20:12:28]opened in 1715818246 [20:12:28]opened+sec_in_day 1715904646 [20:12:28]quantity*price = 13800 [20:12:28]sum+1 = 13801 [20:12:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 НСП 1% : 1.22 НДС 12% : 14.65 Наличными: 138.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 102 16.05.2024 20:12 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5042 ФПД: 82108409364050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T201230&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5042&fm=82108409364050&tin=02508201610067®Number=0000000000154221&sum=13800 0 [20:12:29]StoreToDocumentArchive [20:12:29]shift 44 fd 5042 [20:12:29]save to /storage/0044/doc_00005042 [20:12:29]save last doc name /storage/0044/doc_00005042 to /storage/kkm_last_doc_name [20:12:29]save OK [20:12:29]Clear old archive folders... [20:12:29]ProcessDocumentItem done err = 0, tmpTLVsize=272 [20:12:29]tlvbuf is 011A9B30 [20:12:29]SAM_PROTO_ClearQueue [20:12:29]wFMCommunicate request_size=4 [20:12:29]MH_SAM_APDU [20:12:29]CAPDU: 80 09 00 00 [20:12:29]Write to MH i2c: E2 08 00 53 11 80 09 00 00 00 00 00 00 D6 [20:12:29]Write i2c OK [20:12:29]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 03 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 03 00 53 11 00 90 00 D8 [20:12:30]RAPDU: 90 00 [20:12:30]wFMCommunicate OK [20:12:30]SAM_PROTO_ClearQueue done [20:12:30]KKMCreateOFDPacket [20:12:30]OFDProtocolAddRootSTLVToBuf [20:12:30]FM_MakeSignedData [20:12:30]FM_MakeSignedData [20:12:30]SAM_PROTO_SignData [20:12:30]wFMCommunicate request_size=4 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 0D 01 02 [20:12:30]Write to MH i2c: E2 08 00 54 11 80 0D 01 02 00 00 00 00 DE [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 03 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 03 00 54 11 00 90 00 D9 [20:12:30]RAPDU: 90 00 [20:12:30]wFMCommunicate OK [20:12:30]wFMCommunicate request_size=255 [20:12:30]MH_SAM_APDU [20:12:30]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 66 00 00 00 F4 03 04 00 AE 68 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 [20:12:30]Write to MH i2c: E2 02 01 55 11 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 66 00 00 00 F4 03 04 00 AE 68 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 50 [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 03 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 03 00 55 11 00 90 00 DA [20:12:30]RAPDU: 90 00 [20:12:30]wFMCommunicate OK [20:12:30]wFMCommunicate request_size=31 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 0D 02 02 1A 30 30 39 36 33 32 35 39 10 04 04 00 B2 13 00 00 35 04 06 00 4A AD 5A 92 BE 52 [20:12:30]Write to MH i2c: E2 22 00 56 11 80 0D 02 02 1A 00 30 30 39 36 33 32 35 39 10 04 04 00 B2 13 00 00 35 04 06 00 4A AD 5A 92 BE 52 00 00 C6 [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 03 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 03 00 56 11 00 90 00 DB [20:12:30]RAPDU: 90 00 [20:12:30]wFMCommunicate OK [20:12:30]wFMCommunicate request_size=4 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 0D 03 02 [20:12:30]Write to MH i2c: E2 08 00 57 11 80 0D 03 02 00 00 00 00 E3 [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 0B 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 0B 00 57 11 00 0F A4 4C A9 4C D3 22 D5 90 00 A2 [20:12:30]RAPDU: 0F A4 4C A9 4C D3 22 D5 90 00 [20:12:30]wFMCommunicate OK [20:12:30]SAM_PROTO_SignData done [20:12:30]FM_MakeSignedData done [20:12:30]CreateOFDProtocolMessage [20:12:30]wFMCommunicate request_size=4 [20:12:30]MH_SAM_APDU [20:12:30]CAPDU: 80 11 00 00 [20:12:30]Write to MH i2c: E2 08 00 58 11 80 11 00 00 00 00 00 00 E3 [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:30]Read from MH i2c: E2 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 17 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: E2 17 00 58 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 38 [20:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:12:30]wFMCommunicate OK [20:12:30]CreateOFDProtocolMessage done [20:12:30]OFDSenderStorePacket 5042 [20:12:30]StoreOFDPacket docnum=5042 [20:12:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 24 01 00 00 23 D1 1C 01 48 1A 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 66 00 00 00 F4 03 04 00 AE 68 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B2 13 00 00 35 04 06 00 4A AD 5A 92 BE 52 0F A4 4C A9 4C D3 22 D5 [20:12:30]CheckFolder [20:12:30]dirname=/storage/ofd_packets [20:12:30]CheckFolder done [20:12:30]ProducePacketName [20:12:30]name=ofd_packets/00005042 [20:12:30]NVStorageSaveData ofd_packets/00005042 [20:12:30]File name is /storage/ofd_packets/00005042 [20:12:30]Write 322 bytes [20:12:30]NVStorageSaveData done [20:12:30]OFDSenderStorePacket done [20:12:30]KKMCreateOFDPacket done [20:12:30]NVStorageSaveData kkm_last_timestamp [20:12:30]File name is /storage/kkm_last_timestamp [20:12:30]Write 4 bytes [20:12:30]NVStorageSaveData done [20:12:30]ExternCall_PrintAddStr [20:12:30]wPrintStart [20:12:30]Write to MH i2c: 01 00 00 59 11 6A [20:12:30]Write i2c OK [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 07 00 [20:12:30]MH_I2C_Read... [20:12:30]Read from MH i2c: 01 07 00 59 11 00 00 00 00 00 FF 0F 7F [20:12:30]RasterBufferAndPrint [20:12:30]line Счет N : (3)141032 [20:12:30]line ИНН: 02508201610067 [20:12:30]line Контрольно-Кассовый Чек [20:12:30]line ПРОДАЖА [20:12:30]line Товар: 4640030091607 [20:12:30]line Сигареты ESSE Exchange [20:12:30]line 1.000 * 138.00 [20:12:30]line = 138.00 [20:12:30]line НДС 12% НСП 1% [20:12:30]line > о реализуемом товаре [20:12:30]line ИТОГО: 138.00 [20:12:30]line НСП 1% : 1.22 [20:12:30]line НДС 12% : 14.65 [20:12:30]line Наличными: 138.00 [20:12:30]line Безнал.: 0.00 [20:12:30]line Место: АЗС № 135 "Партнер Нефть" [20:12:30]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [20:12:30]line СНО: Общий режим [20:12:30]line Чек 102 16.05.2024 20:12 [20:12:30]line Смена: 44 ФФД: 1.0 [20:12:30]line ЗНМ: 0300000237 [20:12:30]line РНМ: 0000000000154221 [20:12:30]line Версия ККМ: v1.0 [20:12:30]line ФМ: 0000000000963259 [20:12:30]line ФД: 5042 [20:12:30]line ФПД: 82108409364050 [20:12:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T201230&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5042&fm=82108409364050&tin=02508201610067®Number=0000000000154221&sum=13800 [20:12:30]line 0 [20:12:30]OFD Sender: Processing packet 5042 [packets to send 4, broken 3] [20:12:30]ProducePacketName [20:12:30]name=ofd_packets/00005042 [20:12:30]OFD Sender: To server: pG, [20:12:30]CommunicateWithHost lk.salyk.kg:30040 [20:12:30]ConnectInit lk.salyk.kg [20:12:30]written 0, free lines is 4095 [20:12:31]Connected sock=10 [20:12:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 24 01 00 00 23 D1 1C 01 48 1A 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 66 00 00 00 F4 03 04 00 AE 68 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B2 13 00 00 35 04 06 00 4A AD 5A 92 BE 52 0F A4 4C A9 4C D3 22 D5 [20:12:31]Write to MH i2c: 01 00 00 81 11 92 [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: 01 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: 01 07 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: 01 07 00 81 11 00 00 00 00 00 A1 0C 46 [20:12:31]RasterBufferAndPrint [20:12:31]line [20:12:31]line [20:12:31]line [20:12:31]line [20:12:31]line [20:12:31]written 0, free lines is 3238 [20:12:31]MH_Cut [20:12:31]Write to MH i2c: D1 01 00 88 11 01 6B [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: D1 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: D1 01 00 [20:12:31]MH_I2C_Read... [20:12:31]Read from MH i2c: D1 01 00 88 11 00 6A [20:12:31]Write to MH i2c: 01 00 00 89 11 9A [20:12:31]Write i2c OK [20:12:31]MH_I2C_Read... [20:12:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 5E 42 47 00 06 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B2 13 00 00 F4 03 04 00 71 14 46 66 B6 04 01 00 00 BE 67 A6 3D AE DE AF 5F [20:12:31]CommunicateWithHost err = 0 [20:12:31]CheckOFDResponse [20:12:31]1017 (14) - 77093643461234 [20:12:31]1041 (16) - 0000000000963259 [20:12:31]1040 (4) - 5042 [20:12:31]1012 (4) - 16.05.2024 14:13 [20:12:31]1206 (1) - 0 [20:12:31]OFD Sender: Remove packet 5042 [20:12:31]ProducePacketName [20:12:31]name=ofd_packets/00005042 [20:12:31]NVStorageDeleteData [20:12:31]OFD Sender: No OFD packet to send [20:12:32]*** Cut start [20:12:32]*** Partial cut [20:12:32]*** CUTSNS_PIN = 1 [20:12:32]*** CUTSNS_PIN = 0 [20:12:32]*** Brake cut motor [20:12:33]Read from MH i2c: 01 [20:12:33]MH_I2C_Read... [20:12:33]*** Stop cut motor [20:12:33]*** Cut end [20:12:33]Read from MH i2c: 01 07 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: 01 07 00 89 11 00 00 00 00 00 FF 0F AF [20:12:33]process_action close_receipt done [20:12:33]requested_data is exist [20:12:33]produce_requested_data [20:12:33]requested_item fm.sn is exist - process it [20:12:33]wFMCommunicate request_size=4 [20:12:33]MH_SAM_APDU [20:12:33]CAPDU: 80 11 00 00 [20:12:33]Write to MH i2c: E2 08 00 8A 11 80 11 00 00 00 00 00 00 15 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 17 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 17 00 8A 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 6A [20:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:12:33]wFMCommunicate OK [20:12:33]requested_item fd.num is exist - process it [20:12:33]SAM_PROTO_GetFieldsCounters [20:12:33]wFMCommunicate request_size=4 [20:12:33]MH_SAM_APDU [20:12:33]CAPDU: 80 13 00 00 [20:12:33]Write to MH i2c: E2 08 00 8B 11 80 13 00 00 00 00 00 00 18 [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 62 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 62 00 8B 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B2 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [20:12:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B2 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 66 00 00 00 5E 04 04 00 66 00 00 00 57 04 04 00 67 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:12:33]wFMCommunicate OK [20:12:33]SAM_PROTO_GetFieldsCounters done [20:12:33]requested_item shift.num is exist - process it [20:12:33]requested_item shift.opened is exist - process it [20:12:33]req_shift_opened [20:12:33]FM_GetShiftState [20:12:33]SAM_PROTO_GetShiftState [20:12:33]wFMCommunicate request_size=4 [20:12:33]MH_SAM_APDU [20:12:33]CAPDU: 80 13 01 00 [20:12:33]Write to MH i2c: E2 08 00 8C 11 80 13 01 00 00 00 00 00 1A [20:12:33]Write i2c OK [20:12:33]MH_I2C_Read... [20:12:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:12:33]Read from MH i2c: E2 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 0E 00 [20:12:33]MH_I2C_Read... [20:12:33]Read from MH i2c: E2 0E 00 8C 11 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 26 [20:12:33]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:12:33]wFMCommunicate OK [20:12:33]SAM_PROTO_GetShiftState done [20:12:33]FM_GetShiftState done [20:12:33]req_shift_opened done [20:12:33]requested_item shift.open_date is exist - process it [20:12:33]req_shift_open_date [20:12:33]req_shift_open_date done [20:12:33]produce_requested_data done [20:12:33]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5042,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [20:12:33]process_action_free close_receipt [20:12:33]json_value_free [20:12:33]json_value_free done [20:12:33]process_json_proto returns [20:12:33]Send response to host [20:12:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5042,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [20:12:33]free response buf [20:12:33]execute_script done [20:12:33]execute_script returns [20:12:33]free content buf [20:12:33]Sock 7.Close socket [20:12:33]Sock 7.Thread stoped [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14: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:17]OFD Sender: No OFD packet to send [20:16:22]OFD Sender: No OFD packet to send [20:16:27]OFD Sender: No OFD packet to send [20:16:32]OFD Sender: No OFD packet to send [20:16:37]OFD Sender: No OFD packet to send [20:16:42]OFD Sender: No OFD packet to send [20:16:47]OFD Sender: No OFD packet to send [20:16:52]OFD Sender: No OFD packet to send [20:16:57]OFD Sender: No OFD packet to send [20:17:02]OFD Sender: No OFD packet to send [20:17:07]OFD Sender: No OFD packet to send [20:17:12]OFD Sender: No OFD packet to send [20:17:17]OFD Sender: No OFD packet to send [20:17:22]OFD Sender: No OFD packet to send [20:17:27]OFD Sender: No OFD packet to send [20:17:32]OFD Sender: No OFD packet to send [20:17:37]OFD Sender: No OFD packet to send [20:17:42]OFD Sender: No OFD packet to send [20:17:47]OFD Sender: No OFD packet to send [20:17:52]OFD Sender: No OFD packet to send [20:17:57]OFD Sender: No OFD packet to send [20:18:02]OFD Sender: No OFD packet to send [20:18:07]OFD Sender: No OFD packet to send [20:18:12]OFD Sender: No OFD packet to send [20:18:17]OFD Sender: No OFD packet to send [20:18:22]OFD Sender: No OFD packet to send [20:18:27]OFD Sender: No OFD packet to send [20:18:32]OFD Sender: No OFD packet to send [20:18:37]OFD Sender: No OFD packet to send [20:18:42]OFD Sender: No OFD packet to send [20:18:47]OFD Sender: No OFD packet to send [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:17]OFD Sender: No OFD packet to send [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:01]accept exits with 9 [20:23:01]New connection [20:23:01]New thread 3067108708 created [20:23:01]Thread 3067252068 joined [20:23:01]Waiting for new connection... [20:23:01] Sock 9.Parse request [20:23:01]Sock 9.Check first char [20:23:01]Sock 9.First char is OK [20:23:01]request: POST /json_proto HTTP/1.0 [20:23:01]Method: POST [20:23:01]URL: /json_proto [20:23:01]Method is POST - this is cgi request [20:23:01]url: /json_proto [20:23:01]query_string will be loaded in cgi processing [20:23:01]execute_cgi json_proto POST (null) [20:23:01]execute_cgi path=json_proto method=POST [20:23:01]POST find Content-Length [20:23:01]Host: 172.17.44.4:8080 [20:23:01]Content-Length: 804 [20:23:01]Content-Type: application/json [20:23:01] [20:23:01]POST finish read [20:23:01]Found Content-Length = 804 [20:23:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 13.670, "sum" : 1000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:01]execute_script... [20:23:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 13.670, "sum" : 1000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:01]POST & json_proto [20:23:01]process_json_proto [20:23:01]json parsed OK: [20:23:01]protocol is kg_v1.0 [20:23:01]action value=close_receipt [20:23:01]process_action close_receipt [20:23:01]cmd_close_receipt [20:23:01]MH_GetDate [20:23:01]Write to MH i2c: F0 00 00 8D 11 8D [20:23:01]Write i2c OK [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: F0 [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: F0 09 00 [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: F0 09 00 8D 11 00 27 6B 46 66 6C E9 28 66 B7 [20:23:01]GetLastDocTimeStamp 1715890350 [20:23:01]current date 1715890983 [20:23:01]FM_GetShiftState [20:23:01]SAM_PROTO_GetShiftState [20:23:01]wFMCommunicate request_size=4 [20:23:01]MH_SAM_APDU [20:23:01]CAPDU: 80 13 01 00 [20:23:01]Write to MH i2c: E2 08 00 8E 11 80 13 01 00 00 00 00 00 1C [20:23:01]Write i2c OK [20:23:01]MH_I2C_Read... [20:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:01]Read from MH i2c: E2 [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: E2 0E 00 [20:23:01]MH_I2C_Read... [20:23:01]Read from MH i2c: E2 0E 00 8E 11 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 28 [20:23:01]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:23:01]wFMCommunicate OK [20:23:01]SAM_PROTO_GetShiftState done [20:23:01]FM_GetShiftState done [20:23:01]opened in 1715818246 [20:23:01]opened+sec_in_day 1715904646 [20:23:01]quantity*price = 100064 [20:23:01]sum+1 = 100065 [20:23:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.64 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.64 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 103 16.05.2024 20:23 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5043 ФПД: 165976439582798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T202303&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5043&fm=165976439582798&tin=02508201610067®Number=0000000000154221&sum=100064 [20:23:03]StoreToDocumentArchive [20:23:03]shift 44 fd 5043 [20:23:03]save to /storage/0044/doc_00005043 [20:23:03]save last doc name /storage/0044/doc_00005043 to /storage/kkm_last_doc_name [20:23:03]save OK [20:23:03]Clear old archive folders... [20:23:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:23:03]tlvbuf is B6DF12D0 [20:23:03]SAM_PROTO_ClearQueue [20:23:03]wFMCommunicate request_size=4 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 09 00 00 [20:23:03]Write to MH i2c: E2 08 00 9B 11 80 09 00 00 00 00 00 00 1E [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 9B 11 00 90 00 20 [20:23:03]RAPDU: 90 00 [20:23:03]wFMCommunicate OK [20:23:03]SAM_PROTO_ClearQueue done [20:23:03]KKMCreateOFDPacket [20:23:03]OFDProtocolAddRootSTLVToBuf [20:23:03]FM_MakeSignedData [20:23:03]FM_MakeSignedData [20:23:03]SAM_PROTO_SignData [20:23:03]wFMCommunicate request_size=4 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 0D 01 02 [20:23:03]Write to MH i2c: E2 08 00 9C 11 80 0D 01 02 00 00 00 00 26 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 9C 11 00 90 00 21 [20:23:03]RAPDU: 90 00 [20:23:03]wFMCommunicate OK [20:23:03]wFMCommunicate request_size=255 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 35 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 E0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 27 6B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B3 13 00 00 35 04 06 00 96 [20:23:03]Write to MH i2c: E2 02 01 9D 11 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 35 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 E0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 27 6B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B3 13 00 00 35 04 06 00 96 00 00 00 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 9D 11 00 90 00 22 [20:23:03]RAPDU: 90 00 [20:23:03]wFMCommunicate OK [20:23:03]wFMCommunicate request_size=10 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 0D 02 02 05 F4 66 B8 F0 4E [20:23:03]Write to MH i2c: E2 0D 00 9E 11 80 0D 02 02 05 00 F4 66 B8 F0 4E 00 00 83 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 03 00 9E 11 00 90 00 23 [20:23:03]RAPDU: 90 00 [20:23:03]wFMCommunicate OK [20:23:03]wFMCommunicate request_size=4 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 0D 03 02 [20:23:03]Write to MH i2c: E2 08 00 9F 11 80 0D 03 02 00 00 00 00 2B [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 0B 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 0B 00 9F 11 00 6D 8C FF 12 31 DC 7F D4 90 00 96 [20:23:03]RAPDU: 6D 8C FF 12 31 DC 7F D4 90 00 [20:23:03]wFMCommunicate OK [20:23:03]SAM_PROTO_SignData done [20:23:03]FM_MakeSignedData done [20:23:03]CreateOFDProtocolMessage [20:23:03]wFMCommunicate request_size=4 [20:23:03]MH_SAM_APDU [20:23:03]CAPDU: 80 11 00 00 [20:23:03]Write to MH i2c: E2 08 00 A0 11 80 11 00 00 00 00 00 00 2B [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:03]Read from MH i2c: E2 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 17 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: E2 17 00 A0 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 80 [20:23:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:23:03]wFMCommunicate OK [20:23:03]CreateOFDProtocolMessage done [20:23:03]OFDSenderStorePacket 5043 [20:23:03]StoreOFDPacket docnum=5043 [20:23:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 76 48 07 01 BF 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 35 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 E0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 27 6B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B3 13 00 00 35 04 06 00 96 F4 66 B8 F0 4E 6D 8C FF 12 31 DC 7F D4 [20:23:03]CheckFolder [20:23:03]dirname=/storage/ofd_packets [20:23:03]CheckFolder done [20:23:03]ProducePacketName [20:23:03]name=ofd_packets/00005043 [20:23:03]NVStorageSaveData ofd_packets/00005043 [20:23:03]File name is /storage/ofd_packets/00005043 [20:23:03]Write 301 bytes [20:23:03]NVStorageSaveData done [20:23:03]OFDSenderStorePacket done [20:23:03]KKMCreateOFDPacket done [20:23:03]NVStorageSaveData kkm_last_timestamp [20:23:03]File name is /storage/kkm_last_timestamp [20:23:03]Write 4 bytes [20:23:03]NVStorageSaveData done [20:23:03]ExternCall_PrintAddStr [20:23:03]wPrintStart [20:23:03]Write to MH i2c: 01 00 00 A1 11 B2 [20:23:03]Write i2c OK [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: 01 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: 01 07 00 [20:23:03]MH_I2C_Read... [20:23:03]Read from MH i2c: 01 07 00 A1 11 00 00 00 00 00 FF 0F C7 [20:23:03]RasterBufferAndPrint [20:23:03]line Счет N : (1)1993167 [20:23:03]line ИНН: 02508201610067 [20:23:03]line Контрольно-Кассовый Чек [20:23:03]line ПРОДАЖА [20:23:03]line ТРК (МРК, ГНК) : 52 [20:23:03]line Товар: 2710124500 [20:23:03]line Аи-95-К-5 [20:23:03]line 13.670 * 73.20 [20:23:03]line = 1000.64 [20:23:03]line НДС 12% НСП 1% [20:23:03]line > о реализуемом товаре [20:23:03]line ИТОГО: 1000.64 [20:23:03]line НСП 1% : 8.85 [20:23:03]line НДС 12% : 106.26 [20:23:03]line Наличными: 0.00 [20:23:03]line Безнал.: 1000.64 [20:23:03]line Место: АЗС № 135 "Партнер Нефть" [20:23:03]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [20:23:03]line СНО: Общий режим [20:23:03]line Чек 103 16.05.2024 20:23 [20:23:03]line Смена: 44 ФФД: 1.0 [20:23:03]line ЗНМ: 0300000237 [20:23:03]line РНМ: 0000000000154221 [20:23:03]line Версия ККМ: v1.0 [20:23:03]line Платежная система: O! деньги [20:23:03]line ФМ: 0000000000963259 [20:23:03]line ФД: 5043 [20:23:03]line ФПД: 165976439582798 [20:23:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T202303&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5043&fm=165976439582798&tin=02508201610067®Number=0000000000154221&sum=100064 [20:23:03]OFD Sender: Processing packet 5043 [packets to send 4, broken 3] [20:23:03]ProducePacketName [20:23:03]name=ofd_packets/00005043 [20:23:03]OFD Sender: To server: pG, [20:23:03]CommunicateWithHost lk.salyk.kg:30040 [20:23:03]ConnectInit lk.salyk.kg [20:23:03]written 0, free lines is 4095 [20:23:04]Connected sock=10 [20:23:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 76 48 07 01 BF 11 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 35 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 E0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 27 6B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B3 13 00 00 35 04 06 00 96 F4 66 B8 F0 4E 6D 8C FF 12 31 DC 7F D4 [20:23:04]Write to MH i2c: 01 00 00 CB 11 DC [20:23:04]Write i2c OK [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: 01 [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: 01 07 00 [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: 01 07 00 CB 11 00 00 00 00 00 8C 0C 7B [20:23:04]RasterBufferAndPrint [20:23:04]line [20:23:04]line [20:23:04]line [20:23:04]line [20:23:04]line [20:23:04]written 0, free lines is 3215 [20:23:04]MH_Cut [20:23:04]Write to MH i2c: D1 01 00 D2 11 01 B5 [20:23:04]Write i2c OK [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: D1 [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: D1 01 00 [20:23:04]MH_I2C_Read... [20:23:04]Read from MH i2c: D1 01 00 D2 11 00 B4 [20:23:04]Write to MH i2c: 01 00 00 D3 11 E4 [20:23:04]Write i2c OK [20:23:04]MH_I2C_Read... [20:23:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 E1 23 47 00 AA 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B3 13 00 00 F4 03 04 00 EA 16 46 66 B6 04 01 00 00 77 20 52 13 2F 6A C8 C7 [20:23:04]CommunicateWithHost err = 0 [20:23:04]CheckOFDResponse [20:23:04]1017 (14) - 77093643461234 [20:23:04]1041 (16) - 0000000000963259 [20:23:04]1040 (4) - 5043 [20:23:04]1012 (4) - 16.05.2024 14:23 [20:23:04]1206 (1) - 0 [20:23:04]OFD Sender: Remove packet 5043 [20:23:04]ProducePacketName [20:23:04]name=ofd_packets/00005043 [20:23:04]NVStorageDeleteData [20:23:04]OFD Sender: No OFD packet to send [20:23:05]*** Cut start [20:23:05]*** Partial cut [20:23:05]*** CUTSNS_PIN = 1 [20:23:05]*** CUTSNS_PIN = 0 [20:23:05]*** Brake cut motor [20:23:06]Read from MH i2c: 01 [20:23:06]MH_I2C_Read... [20:23:06]*** Stop cut motor [20:23:06]*** Cut end [20:23:06]Read from MH i2c: 01 07 00 [20:23:06]MH_I2C_Read... [20:23:06]Read from MH i2c: 01 07 00 D3 11 00 00 00 00 00 FF 0F F9 [20:23:06]process_action close_receipt done [20:23:06]requested_data is exist [20:23:06]produce_requested_data [20:23:06]requested_item fm.sn is exist - process it [20:23:06]wFMCommunicate request_size=4 [20:23:06]MH_SAM_APDU [20:23:06]CAPDU: 80 11 00 00 [20:23:06]Write to MH i2c: E2 08 00 D4 11 80 11 00 00 00 00 00 00 5F [20:23:06]Write i2c OK [20:23:06]MH_I2C_Read... [20:23:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:06]Read from MH i2c: E2 [20:23:06]MH_I2C_Read... [20:23:06]Read from MH i2c: E2 17 00 [20:23:06]MH_I2C_Read... [20:23:06]Read from MH i2c: E2 17 00 D4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 B4 [20:23:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:23:06]wFMCommunicate OK [20:23:06]requested_item fd.num is exist - process it [20:23:06]SAM_PROTO_GetFieldsCounters [20:23:06]wFMCommunicate request_size=4 [20:23:06]MH_SAM_APDU [20:23:06]CAPDU: 80 13 00 00 [20:23:06]Write to MH i2c: E2 08 00 D5 11 80 13 00 00 00 00 00 00 62 [20:23:06]Write i2c OK [20:23:06]MH_I2C_Read... [20:23:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:06]Read from MH i2c: E2 [20:23:06]MH_I2C_Read... [20:23:06]Read from MH i2c: E2 62 00 [20:23:06]MH_I2C_Read... [20:23:06]Read from MH i2c: E2 62 00 D5 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B3 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [20:23:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B3 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:06]wFMCommunicate OK [20:23:06]SAM_PROTO_GetFieldsCounters done [20:23:06]requested_item shift.num is exist - process it [20:23:06]requested_item shift.opened is exist - process it [20:23:06]req_shift_opened [20:23:06]FM_GetShiftState [20:23:06]SAM_PROTO_GetShiftState [20:23:06]wFMCommunicate request_size=4 [20:23:06]MH_SAM_APDU [20:23:06]CAPDU: 80 13 01 00 [20:23:06]Write to MH i2c: E2 08 00 D6 11 80 13 01 00 00 00 00 00 64 [20:23:06]Write i2c OK [20:23:06]MH_I2C_Read... [20:23:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:06]Read from MH i2c: E2 [20:23:06]MH_I2C_Read... [20:23:06]Read from MH i2c: E2 0E 00 [20:23:06]MH_I2C_Read... [20:23:06]Read from MH i2c: E2 0E 00 D6 11 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 70 [20:23:06]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:23:06]wFMCommunicate OK [20:23:06]SAM_PROTO_GetShiftState done [20:23:06]FM_GetShiftState done [20:23:06]req_shift_opened done [20:23:06]requested_item shift.open_date is exist - process it [20:23:06]req_shift_open_date [20:23:06]req_shift_open_date done [20:23:06]produce_requested_data done [20:23:06]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5043,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [20:23:06]process_action_free close_receipt [20:23:06]json_value_free [20:23:06]json_value_free done [20:23:06]process_json_proto returns [20:23:06]Send response to host [20:23:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5043,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [20:23:06]free response buf [20:23:06]execute_script done [20:23:06]execute_script returns [20:23:06]free content buf [20:23:06]Sock 9.Close socket [20:23:06]Sock 9.Thread stoped [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:37]accept exits with 7 [20:23:37]New connection [20:23:37]New thread 3067252068 created [20:23:37]Thread 3067108708 joined [20:23:37]Waiting for new connection... [20:23:37] Sock 7.Parse request [20:23:37]Sock 7.Check first char [20:23:37]Sock 7.First char is OK [20:23:37]request: POST /json_proto HTTP/1.0 [20:23:37]Method: POST [20:23:37]URL: /json_proto [20:23:37]Method is POST - this is cgi request [20:23:37]url: /json_proto [20:23:37]query_string will be loaded in cgi processing [20:23:37]execute_cgi json_proto POST (null) [20:23:37]execute_cgi path=json_proto method=POST [20:23:37]POST find Content-Length [20:23:37]Host: 172.17.44.4:8080 [20:23:37]Content-Length: 798 [20:23:37]Content-Type: application/json [20:23:37] [20:23:37]POST finish read [20:23:37]Found Content-Length = 798 [20:23:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:37]execute_script... [20:23:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 74.70, "quantity" : 6.700, "sum" : 500.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.49 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:23:37]POST & json_proto [20:23:37]process_json_proto [20:23:37]json parsed OK: [20:23:37]protocol is kg_v1.0 [20:23:37]action value=close_receipt [20:23:37]process_action close_receipt [20:23:37]cmd_close_receipt [20:23:37]MH_GetDate [20:23:37]Write to MH i2c: F0 00 00 D7 11 D7 [20:23:37]Write i2c OK [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: F0 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: F0 09 00 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: F0 09 00 D7 11 00 4B 6B 46 66 6C E9 28 66 25 [20:23:37]GetLastDocTimeStamp 1715890983 [20:23:37]current date 1715891019 [20:23:37]FM_GetShiftState [20:23:37]SAM_PROTO_GetShiftState [20:23:37]wFMCommunicate request_size=4 [20:23:37]MH_SAM_APDU [20:23:37]CAPDU: 80 13 01 00 [20:23:37]Write to MH i2c: E2 08 00 D8 11 80 13 01 00 00 00 00 00 66 [20:23:37]Write i2c OK [20:23:37]MH_I2C_Read... [20:23:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:37]Read from MH i2c: E2 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: E2 0E 00 [20:23:37]MH_I2C_Read... [20:23:37]Read from MH i2c: E2 0E 00 D8 11 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 72 [20:23:37]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:23:37]wFMCommunicate OK [20:23:37]SAM_PROTO_GetShiftState done [20:23:37]FM_GetShiftState done [20:23:37]opened in 1715818246 [20:23:37]opened+sec_in_day 1715904646 [20:23:37]quantity*price = 50049 [20:23:37]sum+1 = 50050 [20:23:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.49 НСП 1% : 4.43 НДС 12% : 53.15 Наличными: 0.00 Безнал.: 500.49 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 104 16.05.2024 20:23 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5044 ФПД: 235523393412321 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T202339&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5044&fm=235523393412321&tin=02508201610067®Number=0000000000154221&sum=50049 [20:23:38]StoreToDocumentArchive [20:23:38]shift 44 fd 5044 [20:23:38]save to /storage/0044/doc_00005044 [20:23:38]save last doc name /storage/0044/doc_00005044 to /storage/kkm_last_doc_name [20:23:38]save OK [20:23:38]Clear old archive folders... [20:23:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:23:38]tlvbuf is 011FEF10 [20:23:38]SAM_PROTO_ClearQueue [20:23:38]wFMCommunicate request_size=4 [20:23:38]MH_SAM_APDU [20:23:38]CAPDU: 80 09 00 00 [20:23:38]Write to MH i2c: E2 08 00 E5 11 80 09 00 00 00 00 00 00 68 [20:23:38]Write i2c OK [20:23:38]MH_I2C_Read... [20:23:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:23:38]Read from MH i2c: E2 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 03 00 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 03 00 E5 11 00 90 00 6A [20:23:38]RAPDU: 90 00 [20:23:38]wFMCommunicate OK [20:23:38]SAM_PROTO_ClearQueue done [20:23:38]KKMCreateOFDPacket [20:23:38]OFDProtocolAddRootSTLVToBuf [20:23:38]FM_MakeSignedData [20:23:38]FM_MakeSignedData [20:23:38]SAM_PROTO_SignData [20:23:38]wFMCommunicate request_size=4 [20:23:38]MH_SAM_APDU [20:23:38]CAPDU: 80 0D 01 02 [20:23:38]Write to MH i2c: E2 08 00 E6 11 80 0D 01 02 00 00 00 00 70 [20:23:38]Write i2c OK [20:23:38]MH_I2C_Read... [20:23:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:23:38]Read from MH i2c: E2 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 03 00 [20:23:38]MH_I2C_Read... [20:23:38]Read from MH i2c: E2 03 00 E6 11 00 90 00 6B [20:23:38]RAPDU: 90 00 [20:23:38]wFMCommunicate OK [20:23:38]wFMCommunicate request_size=255 [20:23:38]MH_SAM_APDU [20:23:38]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 4B 6B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B4 13 00 00 35 04 06 00 D6 35 10 33 [20:23:38]Write to MH i2c: E2 02 01 E7 11 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 4B 6B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B4 13 00 00 35 04 06 00 D6 35 10 33 00 00 C0 [20:23:38]Write i2c OK [20:23:38]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 E7 11 00 90 00 6C [20:23:39]RAPDU: 90 00 [20:23:39]wFMCommunicate OK [20:23:39]wFMCommunicate request_size=7 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 0D 02 02 02 5C E1 [20:23:39]Write to MH i2c: E2 0A 00 E8 11 80 0D 02 02 02 00 5C E1 00 00 B4 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 03 00 E8 11 00 90 00 6D [20:23:39]RAPDU: 90 00 [20:23:39]wFMCommunicate OK [20:23:39]wFMCommunicate request_size=4 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 0D 03 02 [20:23:39]Write to MH i2c: E2 08 00 E9 11 80 0D 03 02 00 00 00 00 75 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 0B 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 0B 00 E9 11 00 DC 05 5E 85 B2 0D F0 7C 90 00 65 [20:23:39]RAPDU: DC 05 5E 85 B2 0D F0 7C 90 00 [20:23:39]wFMCommunicate OK [20:23:39]SAM_PROTO_SignData done [20:23:39]FM_MakeSignedData done [20:23:39]CreateOFDProtocolMessage [20:23:39]wFMCommunicate request_size=4 [20:23:39]MH_SAM_APDU [20:23:39]CAPDU: 80 11 00 00 [20:23:39]Write to MH i2c: E2 08 00 EA 11 80 11 00 00 00 00 00 00 75 [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:39]Read from MH i2c: E2 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 17 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: E2 17 00 EA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 CA [20:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:23:39]wFMCommunicate OK [20:23:39]CreateOFDProtocolMessage done [20:23:39]OFDSenderStorePacket 5044 [20:23:39]StoreOFDPacket docnum=5044 [20:23:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0C 01 00 00 55 2A 04 01 E6 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 4B 6B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B4 13 00 00 35 04 06 00 D6 35 10 33 5C E1 DC 05 5E 85 B2 0D F0 7C [20:23:39]CheckFolder [20:23:39]dirname=/storage/ofd_packets [20:23:39]CheckFolder done [20:23:39]ProducePacketName [20:23:39]name=ofd_packets/00005044 [20:23:39]NVStorageSaveData ofd_packets/00005044 [20:23:39]File name is /storage/ofd_packets/00005044 [20:23:39]Write 298 bytes [20:23:39]NVStorageSaveData done [20:23:39]OFDSenderStorePacket done [20:23:39]KKMCreateOFDPacket done [20:23:39]NVStorageSaveData kkm_last_timestamp [20:23:39]File name is /storage/kkm_last_timestamp [20:23:39]Write 4 bytes [20:23:39]NVStorageSaveData done [20:23:39]ExternCall_PrintAddStr [20:23:39]wPrintStart [20:23:39]Write to MH i2c: 01 00 00 EB 11 FC [20:23:39]Write i2c OK [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: 01 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: 01 07 00 [20:23:39]MH_I2C_Read... [20:23:39]Read from MH i2c: 01 07 00 EB 11 00 00 00 00 00 FF 0F 11 [20:23:39]RasterBufferAndPrint [20:23:39]line Счет N : (1)1993168 [20:23:39]line ИНН: 02508201610067 [20:23:39]line Контрольно-Кассовый Чек [20:23:39]line ПРОДАЖА [20:23:39]line ТРК (МРК, ГНК) : 11 [20:23:39]line Товар: 2710194210 [20:23:39]line ДТ-К-5 [20:23:39]line 6.700 * 74.70 [20:23:39]line = 500.49 [20:23:39]line НДС 12% НСП 1% [20:23:39]line > о реализуемом товаре [20:23:39]line ИТОГО: 500.49 [20:23:39]line НСП 1% : 4.43 [20:23:39]line НДС 12% : 53.15 [20:23:39]line Наличными: 0.00 [20:23:39]line Безнал.: 500.49 [20:23:39]line Место: АЗС № 135 "Партнер Нефть" [20:23:39]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [20:23:39]line СНО: Общий режим [20:23:39]line Чек 104 16.05.2024 20:23 [20:23:39]line Смена: 44 ФФД: 1.0 [20:23:39]line ЗНМ: 0300000237 [20:23:39]line РНМ: 0000000000154221 [20:23:39]line Версия ККМ: v1.0 [20:23:39]line Платежная система: O! деньги [20:23:39]line ФМ: 0000000000963259 [20:23:39]line ФД: 5044 [20:23:39]line ФПД: 235523393412321 [20:23:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T202339&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5044&fm=235523393412321&tin=02508201610067®Number=0000000000154221&sum=50049 [20:23:39]OFD Sender: Processing packet 5044 [packets to send 4, broken 3] [20:23:39]ProducePacketName [20:23:39]name=ofd_packets/00005044 [20:23:39]OFD Sender: To server: pG, [20:23:39]CommunicateWithHost lk.salyk.kg:30040 [20:23:39]written 0, free lines is 4095 [20:23:39]ConnectInit lk.salyk.kg [20:23:39]Connected sock=10 [20:23:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0C 01 00 00 55 2A 04 01 E6 3F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2C 1A 00 00 00 00 00 37 04 06 00 2E 1D 00 00 00 00 13 04 06 00 81 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 81 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 81 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 4B 6B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B4 13 00 00 35 04 06 00 D6 35 10 33 5C E1 DC 05 5E 85 B2 0D F0 7C [20:23:40]Write to MH i2c: 01 00 00 15 12 27 [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 07 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: 01 07 00 15 12 00 00 00 00 00 8A 0C C4 [20:23:40]RasterBufferAndPrint [20:23:40]line [20:23:40]line [20:23:40]line [20:23:40]line [20:23:40]line [20:23:40]written 0, free lines is 3213 [20:23:40]MH_Cut [20:23:40]Write to MH i2c: D1 01 00 1C 12 01 00 [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: D1 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: D1 01 00 [20:23:40]MH_I2C_Read... [20:23:40]Read from MH i2c: D1 01 00 1C 12 00 FF [20:23:40]Write to MH i2c: 01 00 00 1D 12 2F [20:23:40]Write i2c OK [20:23:40]MH_I2C_Read... [20:23:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 75 0F 47 00 8B 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 33 32 35 39 10 04 04 00 B4 13 00 00 F4 03 04 00 0E 17 46 66 B6 04 01 00 00 E1 14 8E F3 57 84 9B AB [20:23:40]CommunicateWithHost err = 0 [20:23:40]CheckOFDResponse [20:23:40]1017 (14) - 77093643461234 [20:23:40]1041 (16) - 0000000000963259 [20:23:40]1040 (4) - 5044 [20:23:40]1012 (4) - 16.05.2024 14:24 [20:23:40]1206 (1) - 0 [20:23:40]OFD Sender: Remove packet 5044 [20:23:40]ProducePacketName [20:23:40]name=ofd_packets/00005044 [20:23:40]NVStorageDeleteData [20:23:41]*** Cut start [20:23:41]*** Partial cut [20:23:41]*** CUTSNS_PIN = 1 [20:23:41]*** CUTSNS_PIN = 0 [20:23:41]OFD Sender: No OFD packet to send [20:23:41]*** Brake cut motor [20:23:41]Read from MH i2c: 01 [20:23:41]MH_I2C_Read... [20:23:41]*** Stop cut motor [20:23:41]*** Cut end [20:23:41]Read from MH i2c: 01 07 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: 01 07 00 1D 12 00 00 00 00 00 FF 0F 44 [20:23:41]process_action close_receipt done [20:23:41]requested_data is exist [20:23:41]produce_requested_data [20:23:41]requested_item fm.sn is exist - process it [20:23:41]wFMCommunicate request_size=4 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 11 00 00 [20:23:41]Write to MH i2c: E2 08 00 1E 12 80 11 00 00 00 00 00 00 AA [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:23:41]Read from MH i2c: E2 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 17 00 [20:23:41]MH_I2C_Read... [20:23:41]Read from MH i2c: E2 17 00 1E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 FF [20:23:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:23:41]wFMCommunicate OK [20:23:41]requested_item fd.num is exist - process it [20:23:41]SAM_PROTO_GetFieldsCounters [20:23:41]wFMCommunicate request_size=4 [20:23:41]MH_SAM_APDU [20:23:41]CAPDU: 80 13 00 00 [20:23:41]Write to MH i2c: E2 08 00 1F 12 80 13 00 00 00 00 00 00 AD [20:23:41]Write i2c OK [20:23:41]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 62 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 62 00 1F 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B4 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [20:23:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B4 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 68 00 00 00 5E 04 04 00 68 00 00 00 57 04 04 00 69 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:23:42]wFMCommunicate OK [20:23:42]SAM_PROTO_GetFieldsCounters done [20:23:42]requested_item shift.num is exist - process it [20:23:42]requested_item shift.opened is exist - process it [20:23:42]req_shift_opened [20:23:42]FM_GetShiftState [20:23:42]SAM_PROTO_GetShiftState [20:23:42]wFMCommunicate request_size=4 [20:23:42]MH_SAM_APDU [20:23:42]CAPDU: 80 13 01 00 [20:23:42]Write to MH i2c: E2 08 00 20 12 80 13 01 00 00 00 00 00 AF [20:23:42]Write i2c OK [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 [20:23:42]MH_I2C_Read... [20:23:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:23:42]Read from MH i2c: E2 0E 00 [20:23:42]MH_I2C_Read... [20:23:42]Read from MH i2c: E2 0E 00 20 12 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 BB [20:23:42]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:23:42]wFMCommunicate OK [20:23:42]SAM_PROTO_GetShiftState done [20:23:42]FM_GetShiftState done [20:23:42]req_shift_opened done [20:23:42]requested_item shift.open_date is exist - process it [20:23:42]req_shift_open_date [20:23:42]req_shift_open_date done [20:23:42]produce_requested_data done [20:23:42]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5044,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [20:23:42]process_action_free close_receipt [20:23:42]json_value_free [20:23:42]json_value_free done [20:23:42]process_json_proto returns [20:23:42]Send response to host [20:23:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5044,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [20:23:42]free response buf [20:23:42]execute_script done [20:23:42]execute_script returns [20:23:42]free content buf [20:23:42]Sock 7.Close socket [20:23:42]Sock 7.Thread stoped [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:31]OFD Sender: No OFD packet to send [20:25:36]OFD Sender: No OFD packet to send [20:25:41]OFD Sender: No OFD packet to send [20:25:46]OFD Sender: No OFD packet to send [20:25:51]OFD Sender: No OFD packet to send [20:25:56]OFD Sender: No OFD packet to send [20:26:01]OFD Sender: No OFD packet to send [20:26:06]OFD Sender: No OFD packet to send [20:26:11]OFD Sender: No OFD packet to send [20:26:16]OFD Sender: No OFD packet to send [20:26:21]OFD Sender: No OFD packet to send [20:26:26]OFD Sender: No OFD packet to send [20:26:31]OFD Sender: No OFD packet to send [20:26:36]OFD Sender: No OFD packet to send [20:26:41]OFD Sender: No OFD packet to send [20:26:46]OFD Sender: No OFD packet to send [20:26:51]OFD Sender: No OFD packet to send [20:26:56]OFD Sender: No OFD packet to send [20:27:01]OFD Sender: No OFD packet to send [20:27:06]OFD Sender: No OFD packet to send [20:27:11]OFD Sender: No OFD packet to send [20:27:16]OFD Sender: No OFD packet to send [20:27:21]OFD Sender: No OFD packet to send [20:27:26]OFD Sender: No OFD packet to send [20:27:31]OFD Sender: No OFD packet to send [20:27:36]OFD Sender: No OFD packet to send [20:27:41]OFD Sender: No OFD packet to send [20:27:46]OFD Sender: No OFD packet to send [20:27:51]OFD Sender: No OFD packet to send [20:27:56]OFD Sender: No OFD packet to send [20:28:01]OFD Sender: No OFD packet to send [20:28:06]OFD Sender: No OFD packet to send [20:28:11]OFD Sender: No OFD packet to send [20:28:16]OFD Sender: No OFD packet to send [20:28:21]OFD Sender: No OFD packet to send [20:28:26]OFD Sender: No OFD packet to send [20:28:31]OFD Sender: No OFD packet to send [20:28:36]OFD Sender: No OFD packet to send [20:28:41]OFD Sender: No OFD packet to send [20:28:46]OFD Sender: No OFD packet to send [20:28:51]OFD Sender: No OFD packet to send [20:28:56]OFD Sender: No OFD packet to send [20:29:01]OFD Sender: No OFD packet to send [20:29:06]OFD Sender: No OFD packet to send [20:29:11]OFD Sender: No OFD packet to send [20:29:16]OFD Sender: No OFD packet to send [20:29:21]OFD Sender: No OFD packet to send [20:29:26]OFD Sender: No OFD packet to send [20:29:31]OFD Sender: No OFD packet to send [20:29:36]OFD Sender: No OFD packet to send [20:29:41]OFD Sender: No OFD packet to send [20:29:46]OFD Sender: No OFD packet to send [20:29:51]OFD Sender: No OFD packet to send [20:29:56]OFD Sender: No OFD packet to send [20:30:01]OFD Sender: No OFD packet to send [20:30:06]OFD Sender: No OFD packet to send [20:30:11]OFD Sender: No OFD packet to send [20:30:16]OFD Sender: No OFD packet to send [20:30:21]OFD Sender: No OFD packet to send [20:30:26]OFD Sender: No OFD packet to send [20:30:31]OFD Sender: No OFD packet to send [20:30:36]OFD Sender: No OFD packet to send [20:30:41]OFD Sender: No OFD packet to send [20:30:46]OFD Sender: No OFD packet to send [20:30:51]OFD Sender: No OFD packet to send [20:30:56]OFD Sender: No OFD packet to send [20:31:01]OFD Sender: No OFD packet to send [20:31:06]OFD Sender: No OFD packet to send [20:31:11]OFD Sender: No OFD packet to send [20:31:16]OFD Sender: No OFD packet to send [20:31:21]OFD Sender: No OFD packet to send [20:31:26]OFD Sender: No OFD packet to send [20:31:31]OFD Sender: No OFD packet to send [20:31:36]OFD Sender: No OFD packet to send [20:31:41]OFD Sender: No OFD packet to send [20:31:46]OFD Sender: No OFD packet to send [20:31:51]OFD Sender: No OFD packet to send [20:31:56]OFD Sender: No OFD packet to send [20:32:01]OFD Sender: No OFD packet to send [20:32:06]OFD Sender: No OFD packet to send [20:32:11]OFD Sender: No OFD packet to send [20:32:16]OFD Sender: No OFD packet to send [20:32:21]OFD Sender: No OFD packet to send [20:32:26]OFD Sender: No OFD packet to send [20:32:31]OFD Sender: No OFD packet to send [20:32:36]OFD Sender: No OFD packet to send [20:32:41]OFD Sender: No OFD packet to send [20:32:46]OFD Sender: No OFD packet to send [20:32:51]OFD Sender: No OFD packet to send [20:32:56]OFD Sender: No OFD packet to send [20:33:01]OFD Sender: No OFD packet to send [20:33:06]OFD Sender: No OFD packet to send [20:33:11]OFD Sender: No OFD packet to send [20:33:16]OFD Sender: No OFD packet to send [20:33:21]OFD Sender: No OFD packet to send [20:33:26]OFD Sender: No OFD packet to send [20:33:31]OFD Sender: No OFD packet to send [20:33:36]OFD Sender: No OFD packet to send [20:33:41]OFD Sender: No OFD packet to send [20:33:46]OFD Sender: No OFD packet to send [20:33:51]OFD Sender: No OFD packet to send [20:33:56]OFD Sender: No OFD packet to send [20:34:01]OFD Sender: No OFD packet to send [20:34:06]OFD Sender: No OFD packet to send [20:34:11]OFD Sender: No OFD packet to send [20:34:16]OFD Sender: No OFD packet to send [20:34:21]OFD Sender: No OFD packet to send [20:34:26]OFD Sender: No OFD packet to send [20:34:31]OFD Sender: No OFD packet to send [20:34:36]OFD Sender: No OFD packet to send [20:34:41]OFD Sender: No OFD packet to send [20:34:46]OFD Sender: No OFD packet to send [20:34:51]OFD Sender: No OFD packet to send [20:34:56]OFD Sender: No OFD packet to send [20:35:01]OFD Sender: No OFD packet to send [20:35:06]OFD Sender: No OFD packet to send [20:35:11]OFD Sender: No OFD packet to send [20:35:16]OFD Sender: No OFD packet to send [20:35:21]OFD Sender: No OFD packet to send [20:35:26]OFD Sender: No OFD packet to send [20:35:31]OFD Sender: No OFD packet to send [20:35:36]OFD Sender: No OFD packet to send [20:35:41]OFD Sender: No OFD packet to send [20:35:46]OFD Sender: No OFD packet to send [20:35:51]OFD Sender: No OFD packet to send [20:35:56]OFD Sender: No OFD packet to send [20:36:01]OFD Sender: No OFD packet to send [20:36:06]OFD Sender: No OFD packet to send [20:36:11]OFD Sender: No OFD packet to send [20:36:16]OFD Sender: No OFD packet to send [20:36:21]OFD Sender: No OFD packet to send [20:36:26]OFD Sender: No OFD packet to send [20:36:31]OFD Sender: No OFD packet to send [20:36:36]OFD Sender: No OFD packet to send [20:36:41]OFD Sender: No OFD packet to send [20:36:46]OFD Sender: No OFD packet to send [20:36:51]OFD Sender: No OFD packet to send [20:36:56]OFD Sender: No OFD packet to send [20:37:01]OFD Sender: No OFD packet to send [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:17]OFD Sender: No OFD packet to send [20:37:22]OFD Sender: No OFD packet to send [20:37:27]OFD Sender: No OFD packet to send [20:37:32]OFD Sender: No OFD packet to send [20:37:37]OFD Sender: No OFD packet to send [20:37:42]OFD Sender: No OFD packet to send [20:37:47]OFD Sender: No OFD packet to send [20:37:52]OFD Sender: No OFD packet to send [20:37:57]OFD Sender: No OFD packet to send [20:38:02]OFD Sender: No OFD packet to send [20:38:07]OFD Sender: No OFD packet to send [20:38:12]OFD Sender: No OFD packet to send [20:38:17]OFD Sender: No OFD packet to send [20:38:22]OFD Sender: No OFD packet to send [20:38:27]OFD Sender: No OFD packet to send [20:38:32]OFD Sender: No OFD packet to send [20:38:37]OFD Sender: No OFD packet to send [20:38:42]OFD Sender: No OFD packet to send [20:38:47]OFD Sender: No OFD packet to send [20:38:52]OFD Sender: No OFD packet to send [20:38:57]OFD Sender: No OFD packet to send [20:39:02]OFD Sender: No OFD packet to send [20:39:07]OFD Sender: No OFD packet to send [20:39:12]OFD Sender: No OFD packet to send [20:39:17]OFD Sender: No OFD packet to send [20:39:22]OFD Sender: No OFD packet to send [20:39:27]OFD Sender: No OFD packet to send [20:39:32]OFD Sender: No OFD packet to send [20:39:37]OFD Sender: No OFD packet to send [20:39:42]OFD Sender: No OFD packet to send [20:39:47]OFD Sender: No OFD packet to send [20:39:52]OFD Sender: No OFD packet to send [20:39:57]OFD Sender: No OFD packet to send [20:40:02]OFD Sender: No OFD packet to send [20:40:07]OFD Sender: No OFD packet to send [20:40:12]OFD Sender: No OFD packet to send [20:40:17]OFD Sender: No OFD packet to send [20:40:22]OFD Sender: No OFD packet to send [20:40:27]OFD Sender: No OFD packet to send [20:40:32]OFD Sender: No OFD packet to send [20:40:37]OFD Sender: No OFD packet to send [20:40:42]OFD Sender: No OFD packet to send [20:40:47]OFD Sender: No OFD packet to send [20:40:52]OFD Sender: No OFD packet to send [20:40:57]OFD Sender: No OFD packet to send [20:41:02]OFD Sender: No OFD packet to send [20:41:07]OFD Sender: No OFD packet to send [20:41:12]OFD Sender: No OFD packet to send [20:41:17]OFD Sender: No OFD packet to send [20:41:22]OFD Sender: No OFD packet to send [20:41:27]OFD Sender: No OFD packet to send [20:41:32]OFD Sender: No OFD packet to send [20:41:37]OFD Sender: No OFD packet to send [20:41:42]OFD Sender: No OFD packet to send [20:41:47]OFD Sender: No OFD packet to send [20:41:52]OFD Sender: No OFD packet to send [20:41:57]OFD Sender: No OFD packet to send [20:42:02]OFD Sender: No OFD packet to send [20:42:07]OFD Sender: No OFD packet to send [20:42:12]OFD Sender: No OFD packet to send [20:42:17]OFD Sender: No OFD packet to send [20:42:22]OFD Sender: No OFD packet to send [20:42:27]OFD Sender: No OFD packet to send [20:42:32]OFD Sender: No OFD packet to send [20:42:37]OFD Sender: No OFD packet to send [20:42:42]OFD Sender: No OFD packet to send [20:42:47]OFD Sender: No OFD packet to send [20:42:52]OFD Sender: No OFD packet to send [20:42:57]OFD Sender: No OFD packet to send [20:43:02]OFD Sender: No OFD packet to send [20:43:07]OFD Sender: No OFD packet to send [20:43:12]OFD Sender: No OFD packet to send [20:43:17]OFD Sender: No OFD packet to send [20:43:22]OFD Sender: No OFD packet to send [20:43:27]OFD Sender: No OFD packet to send [20:43:32]OFD Sender: No OFD packet to send [20:43:37]OFD Sender: No OFD packet to send [20:43:42]OFD Sender: No OFD packet to send [20:43:47]OFD Sender: No OFD packet to send [20:43:52]OFD Sender: No OFD packet to send [20:43:57]OFD Sender: No OFD packet to send [20:44:02]OFD Sender: No OFD packet to send [20:44:07]OFD Sender: No OFD packet to send [20:44:12]OFD Sender: No OFD packet to send [20:44:17]OFD Sender: No OFD packet to send [20:44:22]OFD Sender: No OFD packet to send [20:44:27]OFD Sender: No OFD packet to send [20:44:32]OFD Sender: No OFD packet to send [20:44:37]OFD Sender: No OFD packet to send [20:44:42]OFD Sender: No OFD packet to send [20:44:47]OFD Sender: No OFD packet to send [20:44:52]OFD Sender: No OFD packet to send [20:44:57]OFD Sender: No OFD packet to send [20:45:07]OFD Sender: No OFD packet to send [20:45:12]OFD Sender: No OFD packet to send [20:45:17]OFD Sender: No OFD packet to send [20:45:22]OFD Sender: No OFD packet to send [20:45:27]OFD Sender: No OFD packet to send [20:45:32]OFD Sender: No OFD packet to send [20:45:37]OFD Sender: No OFD packet to send [20:45:42]OFD Sender: No OFD packet to send [20:45:47]OFD Sender: No OFD packet to send [20:45:52]OFD Sender: No OFD packet to send [20:45:57]OFD Sender: No OFD packet to send [20:46:02]OFD Sender: No OFD packet to send [20:46:07]OFD Sender: No OFD packet to send [20:46:12]OFD Sender: No OFD packet to send [20:46:17]OFD Sender: No OFD packet to send [20:46:22]OFD Sender: No OFD packet to send [20:46:27]OFD Sender: No OFD packet to send [20:46:32]OFD Sender: No OFD packet to send [20:46:37]OFD Sender: No OFD packet to send [20:46:42]OFD Sender: No OFD packet to send [20:46:47]OFD Sender: No OFD packet to send [20:46:52]OFD Sender: No OFD packet to send [20:46:57]OFD Sender: No OFD packet to send [20:47:02]OFD Sender: No OFD packet to send [20:47:07]OFD Sender: No OFD packet to send [20:47:12]OFD Sender: No OFD packet to send [20:47:17]OFD Sender: No OFD packet to send [20:47:17]ConnectInit Can't connect to host [20:47:22]OFD Sender: No OFD packet to send [20:47:27]OFD Sender: No OFD packet to send [20:47:32]OFD Sender: No OFD packet to send [20:47:37]OFD Sender: No OFD packet to send [20:47:39]accept exits with 9 [20:47:39]New connection [20:47:39]New thread 3067108708 created [20:47:39]Thread 3067252068 joined [20:47:39]Waiting for new connection... [20:47:39] Sock 9.Parse request [20:47:39]Sock 9.Check first char [20:47:39]Sock 9.First char is OK [20:47:39]request: POST /json_proto HTTP/1.0 [20:47:39]Method: POST [20:47:39]URL: /json_proto [20:47:39]Method is POST - this is cgi request [20:47:39]url: /json_proto [20:47:39]query_string will be loaded in cgi processing [20:47:39]execute_cgi json_proto POST (null) [20:47:39]execute_cgi path=json_proto method=POST [20:47:39]POST find Content-Length [20:47:39]Host: 172.17.44.4:8080 [20:47:39]Content-Length: 646 [20:47:39]Content-Type: application/json [20:47:39] [20:47:39]POST finish read [20:47:39]Found Content-Length = 646 [20:47:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141033", "tax_sys" : 0, "items" : [ { "code": "4607161615386", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 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" ] } } [20:47:39]execute_script... [20: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)141033", "tax_sys" : 0, "items" : [ { "code": "4607161615386", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 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" ] } } [20:47:39]POST & json_proto [20:47:39]process_json_proto [20:47:39]json parsed OK: [20:47:39]protocol is kg_v1.0 [20:47:39]action value=close_receipt [20:47:39]process_action close_receipt [20:47:39]cmd_close_receipt [20:47:39]MH_GetDate [20:47:39]Write to MH i2c: F0 00 00 21 12 22 [20:47:39]Write i2c OK [20:47:39]MH_I2C_Read... [20:47:39]Read from MH i2c: F0 [20:47:39]MH_I2C_Read... [20:47:39]Read from MH i2c: F0 09 00 [20:47:39]MH_I2C_Read... [20:47:39]Read from MH i2c: F0 09 00 21 12 00 ED 70 46 66 6C E9 28 66 17 [20:47:39]GetLastDocTimeStamp 1715891019 [20:47:39]current date 1715892461 [20:47:39]FM_GetShiftState [20:47:39]SAM_PROTO_GetShiftState [20:47:39]wFMCommunicate request_size=4 [20:47:39]MH_SAM_APDU [20:47:39]CAPDU: 80 13 01 00 [20:47:39]Write to MH i2c: E2 08 00 22 12 80 13 01 00 00 00 00 00 B1 [20:47:39]Write i2c OK [20:47:39]MH_I2C_Read... [20:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:39]Read from MH i2c: E2 [20:47:39]MH_I2C_Read... [20:47:39]Read from MH i2c: E2 0E 00 [20:47:39]MH_I2C_Read... [20:47:39]Read from MH i2c: E2 0E 00 22 12 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 BD [20:47:39]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:47:39]wFMCommunicate OK [20:47:39]SAM_PROTO_GetShiftState done [20:47:39]FM_GetShiftState done [20:47:39]opened in 1715818246 [20:47:39]opened+sec_in_day 1715904646 [20:47:39]quantity*price = 40500 [20:47:39]sum+1 = 40501 [20:47:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 105 16.05.2024 20:47 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5045 ФПД: 212272216453682 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T204741&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5045&fm=212272216453682&tin=02508201610067®Number=0000000000154221&sum=40500 0 [20:47:40]StoreToDocumentArchive [20:47:40]shift 44 fd 5045 [20:47:40]save to /storage/0044/doc_00005045 [20:47:40]save last doc name /storage/0044/doc_00005045 to /storage/kkm_last_doc_name [20:47:40]save OK [20:47:40]Clear old archive folders... [20:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=282 [20:47:40]tlvbuf is 011A7350 [20:47:40]SAM_PROTO_ClearQueue [20:47:40]wFMCommunicate request_size=4 [20:47:40]MH_SAM_APDU [20:47:40]CAPDU: 80 09 00 00 [20:47:40]Write to MH i2c: E2 08 00 2F 12 80 09 00 00 00 00 00 00 B3 [20:47:40]Write i2c OK [20:47:40]MH_I2C_Read... [20:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:40]Read from MH i2c: E2 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: E2 03 00 [20:47:40]MH_I2C_Read... [20:47:40]Read from MH i2c: E2 03 00 2F 12 00 90 00 B5 [20:47:40]RAPDU: 90 00 [20:47:40]wFMCommunicate OK [20:47:40]SAM_PROTO_ClearQueue done [20:47:40]KKMCreateOFDPacket [20:47:40]OFDProtocolAddRootSTLVToBuf [20:47:40]FM_MakeSignedData [20:47:40]FM_MakeSignedData [20:47:40]SAM_PROTO_SignData [20:47:40]wFMCommunicate request_size=4 [20:47:40]MH_SAM_APDU [20:47:40]CAPDU: 80 0D 01 02 [20:47:40]Write to MH i2c: E2 08 00 30 12 80 0D 01 02 00 00 00 00 BB [20:47:40]Write i2c OK [20:47:40]MH_I2C_Read... [20:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:41]Read from MH i2c: E2 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 03 00 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 03 00 30 12 00 90 00 B6 [20:47:41]RAPDU: 90 00 [20:47:41]wFMCommunicate OK [20:47:41]wFMCommunicate request_size=255 [20:47:41]MH_SAM_APDU [20:47:41]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E 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 69 00 00 00 F4 03 04 00 ED 70 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 [20:47:41]Write to MH i2c: E2 02 01 31 12 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E 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 69 00 00 00 F4 03 04 00 ED 70 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 00 00 CA [20:47:41]Write i2c OK [20:47:41]MH_I2C_Read... [20:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:41]Read from MH i2c: E2 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 03 00 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 03 00 31 12 00 90 00 B7 [20:47:41]RAPDU: 90 00 [20:47:41]wFMCommunicate OK [20:47:41]wFMCommunicate request_size=41 [20:47:41]MH_SAM_APDU [20:47:41]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B5 13 00 00 35 04 06 00 C1 0F 7A 0E B2 32 [20:47:41]Write to MH i2c: E2 2C 00 32 12 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B5 13 00 00 35 04 06 00 C1 0F 7A 0E B2 32 00 00 93 [20:47:41]Write i2c OK [20:47:41]MH_I2C_Read... [20:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:41]Read from MH i2c: E2 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 03 00 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 03 00 32 12 00 90 00 B8 [20:47:41]RAPDU: 90 00 [20:47:41]wFMCommunicate OK [20:47:41]wFMCommunicate request_size=4 [20:47:41]MH_SAM_APDU [20:47:41]CAPDU: 80 0D 03 02 [20:47:41]Write to MH i2c: E2 08 00 33 12 80 0D 03 02 00 00 00 00 C0 [20:47:41]Write i2c OK [20:47:41]MH_I2C_Read... [20:47:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:41]Read from MH i2c: E2 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 0B 00 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 0B 00 33 12 00 F5 D0 A7 1E BB 7B A3 E6 90 00 0A [20:47:41]RAPDU: F5 D0 A7 1E BB 7B A3 E6 90 00 [20:47:41]wFMCommunicate OK [20:47:41]SAM_PROTO_SignData done [20:47:41]FM_MakeSignedData done [20:47:41]CreateOFDProtocolMessage [20:47:41]wFMCommunicate request_size=4 [20:47:41]MH_SAM_APDU [20:47:41]CAPDU: 80 11 00 00 [20:47:41]Write to MH i2c: E2 08 00 34 12 80 11 00 00 00 00 00 00 C0 [20:47:41]Write i2c OK [20:47:41]MH_I2C_Read... [20:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:41]Read from MH i2c: E2 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 17 00 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: E2 17 00 34 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 15 [20:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:47:41]wFMCommunicate OK [20:47:41]CreateOFDProtocolMessage done [20:47:41]OFDSenderStorePacket 5045 [20:47:41]StoreOFDPacket docnum=5045 [20:47:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2E 01 00 00 FD 6F 26 01 6A 56 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E 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 69 00 00 00 F4 03 04 00 ED 70 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B5 13 00 00 35 04 06 00 C1 0F 7A 0E B2 32 F5 D0 A7 1E BB 7B A3 E6 [20:47:41]CheckFolder [20:47:41]dirname=/storage/ofd_packets [20:47:41]CheckFolder done [20:47:41]ProducePacketName [20:47:41]name=ofd_packets/00005045 [20:47:41]NVStorageSaveData ofd_packets/00005045 [20:47:41]File name is /storage/ofd_packets/00005045 [20:47:41]Write 332 bytes [20:47:41]NVStorageSaveData done [20:47:41]OFDSenderStorePacket done [20:47:41]KKMCreateOFDPacket done [20:47:41]NVStorageSaveData kkm_last_timestamp [20:47:41]File name is /storage/kkm_last_timestamp [20:47:41]Write 4 bytes [20:47:41]NVStorageSaveData done [20:47:41]ExternCall_PrintAddStr [20:47:41]wPrintStart [20:47:41]Write to MH i2c: 01 00 00 35 12 47 [20:47:41]Write i2c OK [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: 01 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: 01 07 00 [20:47:41]MH_I2C_Read... [20:47:41]Read from MH i2c: 01 07 00 35 12 00 00 00 00 00 FF 0F 5C [20:47:41]RasterBufferAndPrint [20:47:41]line Счет N : (3)141033 [20:47:41]line ИНН: 02508201610067 [20:47:41]line Контрольно-Кассовый Чек [20:47:41]line ПРОДАЖА [20:47:41]line Товар: 4607161615386 [20:47:41]line Лукойл Супер 10W40 SG/CD 1л. [20:47:41]line 1.000 * 405.00 [20:47:41]line = 405.00 [20:47:41]line НДС 12% НСП 1% [20:47:41]line > о реализуемом товаре [20:47:41]line ИТОГО: 405.00 [20:47:41]line НСП 1% : 3.58 [20:47:41]line НДС 12% : 43.01 [20:47:41]line Наличными: 405.00 [20:47:41]line Безнал.: 0.00 [20:47:41]line Место: АЗС № 135 "Партнер Нефть" [20:47:41]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [20:47:41]line СНО: Общий режим [20:47:41]line Чек 105 16.05.2024 20:47 [20:47:41]line Смена: 44 ФФД: 1.0 [20:47:41]line ЗНМ: 0300000237 [20:47:41]line РНМ: 0000000000154221 [20:47:41]line Версия ККМ: v1.0 [20:47:41]line ФМ: 0000000000963259 [20:47:41]line ФД: 5045 [20:47:41]line ФПД: 212272216453682 [20:47:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T204741&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5045&fm=212272216453682&tin=02508201610067®Number=0000000000154221&sum=40500 [20:47:41]line 0 [20:47:41]OFD Sender: Processing packet 5045 [packets to send 4, broken 3] [20:47:41]ProducePacketName [20:47:41]name=ofd_packets/00005045 [20:47:41]OFD Sender: To server: pG, [20:47:41]CommunicateWithHost lk.salyk.kg:30040 [20:47:41]ConnectInit lk.salyk.kg [20:47:41]written 0, free lines is 4095 [20:47:41]Connected sock=10 [20: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 33 32 35 39 2E 01 00 00 FD 6F 26 01 6A 56 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E 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 69 00 00 00 F4 03 04 00 ED 70 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B5 13 00 00 35 04 06 00 C1 0F 7A 0E B2 32 F5 D0 A7 1E BB 7B A3 E6 [20:47:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 74 C7 47 00 2F 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 33 32 35 39 10 04 04 00 B5 13 00 00 F4 03 04 00 B0 1C 46 66 B6 04 01 00 00 2C 92 9D D2 E8 81 52 C9 [20:47:42]CommunicateWithHost err = 0 [20:47:42]CheckOFDResponse [20:47:42]1017 (14) - 77093643461234 [20:47:42]1041 (16) - 0000000000963259 [20:47:42]1040 (4) - 5045 [20:47:42]1012 (4) - 16.05.2024 14:48 [20:47:42]1206 (1) - 0 [20:47:42]OFD Sender: Remove packet 5045 [20:47:42]ProducePacketName [20:47:42]name=ofd_packets/00005045 [20:47:42]NVStorageDeleteData [20:47:42]Write to MH i2c: 01 00 00 5E 12 70 [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 07 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: 01 07 00 5E 12 00 00 00 00 00 76 0C F9 [20:47:42]RasterBufferAndPrint [20:47:42]line [20:47:42]line [20:47:42]line [20:47:42]line [20:47:42]line [20:47:42]written 0, free lines is 3195 [20:47:42]MH_Cut [20:47:42]Write to MH i2c: D1 01 00 65 12 01 49 [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: D1 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: D1 01 00 [20:47:42]MH_I2C_Read... [20:47:42]Read from MH i2c: D1 01 00 65 12 00 48 [20:47:42]Write to MH i2c: 01 00 00 66 12 78 [20:47:42]Write i2c OK [20:47:42]MH_I2C_Read... [20:47:42]OFD Sender: No OFD packet to send [20:47:43]*** Cut start [20:47:43]*** Partial cut [20:47:43]*** CUTSNS_PIN = 1 [20:47:43]*** CUTSNS_PIN = 0 [20:47:43]*** Brake cut motor [20:47:43]Read from MH i2c: 01 [20:47:43]MH_I2C_Read... [20:47:43]*** Stop cut motor [20:47:43]*** Cut end [20:47:43]Read from MH i2c: 01 07 00 [20:47:43]MH_I2C_Read... [20:47:43]Read from MH i2c: 01 07 00 66 12 00 00 00 00 00 FF 0F 8D [20:47:44]process_action close_receipt done [20:47:44]requested_data is exist [20:47:44]produce_requested_data [20:47:44]requested_item fm.sn is exist - process it [20:47:44]wFMCommunicate request_size=4 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 11 00 00 [20:47:44]Write to MH i2c: E2 08 00 67 12 80 11 00 00 00 00 00 00 F3 [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 17 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 17 00 67 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 48 [20:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [20:47:44]wFMCommunicate OK [20:47:44]requested_item fd.num is exist - process it [20:47:44]SAM_PROTO_GetFieldsCounters [20:47:44]wFMCommunicate request_size=4 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 13 00 00 [20:47:44]Write to MH i2c: E2 08 00 68 12 80 13 00 00 00 00 00 00 F6 [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 62 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 62 00 68 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B5 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [20:47:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B5 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 69 00 00 00 5E 04 04 00 69 00 00 00 57 04 04 00 6A 00 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:44]wFMCommunicate OK [20:47:44]SAM_PROTO_GetFieldsCounters done [20:47:44]requested_item shift.num is exist - process it [20:47:44]requested_item shift.opened is exist - process it [20:47:44]req_shift_opened [20:47:44]FM_GetShiftState [20:47:44]SAM_PROTO_GetShiftState [20:47:44]wFMCommunicate request_size=4 [20:47:44]MH_SAM_APDU [20:47:44]CAPDU: 80 13 01 00 [20:47:44]Write to MH i2c: E2 08 00 69 12 80 13 01 00 00 00 00 00 F8 [20:47:44]Write i2c OK [20:47:44]MH_I2C_Read... [20:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:44]Read from MH i2c: E2 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 0E 00 [20:47:44]MH_I2C_Read... [20:47:44]Read from MH i2c: E2 0E 00 69 12 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 04 [20:47:44]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [20:47:44]wFMCommunicate OK [20:47:44]SAM_PROTO_GetShiftState done [20:47:44]FM_GetShiftState done [20:47:44]req_shift_opened done [20:47:44]requested_item shift.open_date is exist - process it [20:47:44]req_shift_open_date [20:47:44]req_shift_open_date done [20:47:44]produce_requested_data done [20:47:44]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5045,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [20:47:44]process_action_free close_receipt [20:47:44]json_value_free [20:47:44]json_value_free done [20:47:44]process_json_proto returns [20:47:44]Send response to host [20:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5045,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [20:47:44]free response buf [20:47:44]execute_script done [20:47:44]execute_script returns [20:47:44]free content buf [20:47:44]Sock 9.Close socket [20:47:44]Sock 9.Thread stoped [20:47:47]OFD Sender: No OFD packet to send [20:47:52]OFD Sender: No OFD packet to send [20:47:57]OFD Sender: No OFD packet to send [20:48:02]OFD Sender: No OFD packet to send [20:48:07]OFD Sender: No OFD packet to send [20:48:12]OFD Sender: No OFD packet to send [20:48:17]OFD Sender: No OFD packet to send [20:48:22]OFD Sender: No OFD packet to send [20:48:27]OFD Sender: No OFD packet to send [20:48:32]OFD Sender: No OFD packet to send [20:48:37]OFD Sender: No OFD packet to send [20:48:42]OFD Sender: No OFD packet to send [20:48:47]OFD Sender: No OFD packet to send [20:48:52]OFD Sender: No OFD packet to send [20:48:57]OFD Sender: No OFD packet to send [20:49:02]OFD Sender: No OFD packet to send [20:49:07]OFD Sender: No OFD packet to send [20:49:12]OFD Sender: No OFD packet to send [20:49:17]OFD Sender: No OFD packet to send [20:49:22]OFD Sender: No OFD packet to send [20:49:27]OFD Sender: No OFD packet to send [20:49:32]OFD Sender: No OFD packet to send [20:49:37]OFD Sender: No OFD packet to send [20:49:42]OFD Sender: No OFD packet to send [20:49:47]OFD Sender: No OFD packet to send [20:49:52]OFD Sender: No OFD packet to send [20:49:57]OFD Sender: No OFD packet to send [20:50:02]OFD Sender: No OFD packet to send [20:50:07]OFD Sender: No OFD packet to send [20:50:12]OFD Sender: No OFD packet to send [20:50:17]OFD Sender: No OFD packet to send [20:50:22]OFD Sender: No OFD packet to send [20:50:27]OFD Sender: No OFD packet to send [20:50:32]OFD Sender: No OFD packet to send [20:50:37]OFD Sender: No OFD packet to send [20:50:42]OFD Sender: No OFD packet to send [20:50:47]OFD Sender: No OFD packet to send [20:50:52]OFD Sender: No OFD packet to send [20:50:57]OFD Sender: No OFD packet to send [20:51:02]OFD Sender: No OFD packet to send [20:51:07]OFD Sender: No OFD packet to send [20:51:12]OFD Sender: No OFD packet to send [20:51:17]OFD Sender: No OFD packet to send [20:51:22]OFD Sender: No OFD packet to send [20:51:27]OFD Sender: No OFD packet to send [20:51:32]OFD Sender: No OFD packet to send [20:51:37]OFD Sender: No OFD packet to send [20:51:42]OFD Sender: No OFD packet to send [20:51:47]OFD Sender: No OFD packet to send [20:51:52]OFD Sender: No OFD packet to send [20:51:57]OFD Sender: No OFD packet to send [20:52:02]OFD Sender: No OFD packet to send [20:52:07]OFD Sender: No OFD packet to send [20:52:12]OFD Sender: No OFD packet to send [20:52:17]OFD Sender: No OFD packet to send [20:52:22]OFD Sender: No OFD packet to send [20:52:27]OFD Sender: No OFD packet to send [20:52:32]OFD Sender: No OFD packet to send [20:52:37]OFD Sender: No OFD packet to send [20:52:42]OFD Sender: No OFD packet to send [20:52:47]OFD Sender: No OFD packet to send [20:52:52]OFD Sender: No OFD packet to send [20:52:57]OFD Sender: No OFD packet to send [20:53:02]OFD Sender: No OFD packet to send [20:53:07]OFD Sender: No OFD packet to send [20:53:12]OFD Sender: No OFD packet to send [20:53:17]OFD Sender: No OFD packet to send [20:53:22]OFD Sender: No OFD packet to send [20:53:27]OFD Sender: No OFD packet to send [20:53:32]OFD Sender: No OFD packet to send [20:53:37]OFD Sender: No OFD packet to send [20:53:42]OFD Sender: No OFD packet to send [20:53:47]OFD Sender: No OFD packet to send [20:53:52]OFD Sender: No OFD packet to send [20:53:57]OFD Sender: No OFD packet to send [20:54:02]OFD Sender: No OFD packet to send [20:54:07]OFD Sender: No OFD packet to send [20:54:12]OFD Sender: No OFD packet to send [20:54:17]OFD Sender: No OFD packet to send [20:54:22]OFD Sender: No OFD packet to send [20:54:27]OFD Sender: No OFD packet to send [20:54:32]OFD Sender: No OFD packet to send [20:54:37]OFD Sender: No OFD packet to send [20:54:42]OFD Sender: No OFD packet to send [20:54:47]OFD Sender: No OFD packet to send [20:54:52]OFD Sender: No OFD packet to send [20:54:57]OFD Sender: No OFD packet to send [20:55:02]OFD Sender: No OFD packet to send [20:55:07]OFD Sender: No OFD packet to send [20:55:12]OFD Sender: No OFD packet to send [20:55:17]OFD Sender: No OFD packet to send [20:55:22]OFD Sender: No OFD packet to send [20:55:27]OFD Sender: No OFD packet to send [20:55:32]OFD Sender: No OFD packet to send [20:55:37]OFD Sender: No OFD packet to send [20:55:42]OFD Sender: No OFD packet to send [20:55:47]OFD Sender: No OFD packet to send [20:55:52]OFD Sender: No OFD packet to send [20:55:57]OFD Sender: No OFD packet to send [20:56:02]OFD Sender: No OFD packet to send [20:56:07]OFD Sender: No OFD packet to send [20:56:12]OFD Sender: No OFD packet to send [20:56:17]OFD Sender: No OFD packet to send [20:56:22]OFD Sender: No OFD packet to send [20:56:27]OFD Sender: No OFD packet to send [20:56:32]OFD Sender: No OFD packet to send [20:56:37]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:53]OFD Sender: No OFD packet to send [20:56:58]OFD Sender: No OFD packet to send [20:57:03]OFD Sender: No OFD packet to send [20:57:08]OFD Sender: No OFD packet to send [20:57:13]OFD Sender: No OFD packet to send [20:57:18]OFD Sender: No OFD packet to send [20:57:23]OFD Sender: No OFD packet to send [20:57:28]OFD Sender: No OFD packet to send [20:57:33]OFD Sender: No OFD packet to send [20:57:38]OFD Sender: No OFD packet to send [20:57:43]OFD Sender: No OFD packet to send [20:57:48]OFD Sender: No OFD packet to send [20:57:53]OFD Sender: No OFD packet to send [20:57:58]OFD Sender: No OFD packet to send [20:58:03]OFD Sender: No OFD packet to send [20:58:08]OFD Sender: No OFD packet to send [20:58:13]OFD Sender: No OFD packet to send [20:58:18]OFD Sender: No OFD packet to send [20:58:23]OFD Sender: No OFD packet to send [20:58:28]OFD Sender: No OFD packet to send [20:58:33]OFD Sender: No OFD packet to send [20:58:38]OFD Sender: No OFD packet to send [20:58:43]OFD Sender: No OFD packet to send [20:58:48]OFD Sender: No OFD packet to send [20:58:53]OFD Sender: No OFD packet to send [20:58:58]OFD Sender: No OFD packet to send [20:59:03]OFD Sender: No OFD packet to send [20:59:08]OFD Sender: No OFD packet to send [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:02]accept exits with 7 [21:03:02]New connection [21:03:02]New thread 3067252068 created [21:03:02]Thread 3067108708 joined [21:03:02]Waiting for new connection... [21:03:02] Sock 7.Parse request [21:03:02]Sock 7.Check first char [21:03:02]Sock 7.First char is OK [21:03:02]request: POST /json_proto HTTP/1.0 [21:03:02]Method: POST [21:03:02]URL: /json_proto [21:03:02]Method is POST - this is cgi request [21:03:02]url: /json_proto [21:03:02]query_string will be loaded in cgi processing [21:03:02]execute_cgi json_proto POST (null) [21:03:02]execute_cgi path=json_proto method=POST [21:03:02]POST find Content-Length [21:03:02]Host: 172.17.44.4:8080 [21:03:02]Content-Length: 860 [21:03:02]Content-Type: application/json [21:03:02] [21:03:02]POST finish read [21:03:02]Found Content-Length = 860 [21:03:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141034", "tax_sys" : 0, "items" : [ { "code": "4700003150400", "name": "\u0412\u043E\u0434\u043A\u0430 \u0424\u0440\u0443\u043D\u0437\u0435 0,75", "price" : 530.00, "quantity" : 1.000, "sum" : 530.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" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:02]execute_script... [21:03: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)141034", "tax_sys" : 0, "items" : [ { "code": "4700003150400", "name": "\u0412\u043E\u0434\u043A\u0430 \u0424\u0440\u0443\u043D\u0437\u0435 0,75", "price" : 530.00, "quantity" : 1.000, "sum" : 530.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" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:03:02]POST & json_proto [21:03:02]process_json_proto [21:03:02]json parsed OK: [21:03:02]protocol is kg_v1.0 [21:03:02]action value=close_receipt [21:03:02]process_action close_receipt [21:03:02]cmd_close_receipt [21:03:02]MH_GetDate [21:03:02]Write to MH i2c: F0 00 00 6A 12 6B [21:03:02]Write i2c OK [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: F0 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: F0 09 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: F0 09 00 6A 12 00 88 74 46 66 6C E9 28 66 FF [21:03:02]GetLastDocTimeStamp 1715892461 [21:03:02]current date 1715893384 [21:03:02]FM_GetShiftState [21:03:02]SAM_PROTO_GetShiftState [21:03:02]wFMCommunicate request_size=4 [21:03:02]MH_SAM_APDU [21:03:02]CAPDU: 80 13 01 00 [21:03:02]Write to MH i2c: E2 08 00 6B 12 80 13 01 00 00 00 00 00 FA [21:03:02]Write i2c OK [21:03:02]MH_I2C_Read... [21:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:02]Read from MH i2c: E2 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 0E 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 0E 00 6B 12 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 06 [21:03:02]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:03:02]wFMCommunicate OK [21:03:02]SAM_PROTO_GetShiftState done [21:03:02]FM_GetShiftState done [21:03:02]opened in 1715818246 [21:03:02]opened+sec_in_day 1715904646 [21:03:02]quantity*price = 53000 [21:03:02]sum+1 = 53001 [21:03:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 660.00 НСП 1% : 5.84 НДС 12% : 70.08 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 106 16.05.2024 21:03 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5046 ФПД: 229686905007678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T210304&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5046&fm=229686905007678&tin=02508201610067®Number=0000000000154221&sum=66000 0 [21:03:03]StoreToDocumentArchive [21:03:03]shift 44 fd 5046 [21:03:03]save to /storage/0044/doc_00005046 [21:03:03]save last doc name /storage/0044/doc_00005046 to /storage/kkm_last_doc_name [21:03:03]save OK [21:03:03]Clear old archive folders... [21:03:03]ProcessDocumentItem done err = 0, tmpTLVsize=366 [21:03:03]tlvbuf is 0118F2F0 [21:03:03]SAM_PROTO_ClearQueue [21:03:03]wFMCommunicate request_size=4 [21:03:03]MH_SAM_APDU [21:03:03]CAPDU: 80 09 00 00 [21:03:03]Write to MH i2c: E2 08 00 78 12 80 09 00 00 00 00 00 00 FC [21:03:03]Write i2c OK [21:03:03]MH_I2C_Read... [21:03:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:03:04]Read from MH i2c: E2 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 03 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 03 00 78 12 00 90 00 FE [21:03:04]RAPDU: 90 00 [21:03:04]wFMCommunicate OK [21:03:04]SAM_PROTO_ClearQueue done [21:03:04]KKMCreateOFDPacket [21:03:04]OFDProtocolAddRootSTLVToBuf [21:03:04]FM_MakeSignedData [21:03:04]FM_MakeSignedData [21:03:04]SAM_PROTO_SignData [21:03:04]wFMCommunicate request_size=4 [21:03:04]MH_SAM_APDU [21:03:04]CAPDU: 80 0D 01 02 [21:03:04]Write to MH i2c: E2 08 00 79 12 80 0D 01 02 00 00 00 00 04 [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:03:04]Read from MH i2c: E2 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 03 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 03 00 79 12 00 90 00 FF [21:03:04]RAPDU: 90 00 [21:03:04]wFMCommunicate OK [21:03:04]wFMCommunicate request_size=255 [21:03:04]MH_SAM_APDU [21:03:04]CAPDU: 80 0D 02 02 FA 03 00 6E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 CF 00 00 00 00 13 04 06 00 08 CF 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 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 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 [21:03:04]Write to MH i2c: E2 02 01 7A 12 80 0D 02 02 FA 00 03 00 6E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 CF 00 00 00 00 13 04 06 00 08 CF 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 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 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 B7 [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:04]Read from MH i2c: E2 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 03 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 03 00 7A 12 00 90 00 00 [21:03:04]RAPDU: 90 00 [21:03:04]wFMCommunicate OK [21:03:04]wFMCommunicate request_size=125 [21:03:04]MH_SAM_APDU [21:03:04]CAPDU: 80 0D 02 02 78 00 60 1B 00 00 00 00 07 04 06 00 D0 01 01 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 88 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B6 13 00 00 35 04 06 00 D0 E6 26 61 EE 3E [21:03:04]Write to MH i2c: E2 80 00 7B 12 80 0D 02 02 78 00 00 60 1B 00 00 00 00 07 04 06 00 D0 01 01 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 88 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B6 13 00 00 35 04 06 00 D0 E6 26 61 EE 3E 00 00 E6 [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:04]Read from MH i2c: E2 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 03 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 03 00 7B 12 00 90 00 01 [21:03:04]RAPDU: 90 00 [21:03:04]wFMCommunicate OK [21:03:04]wFMCommunicate request_size=4 [21:03:04]MH_SAM_APDU [21:03:04]CAPDU: 80 0D 03 02 [21:03:04]Write to MH i2c: E2 08 00 7C 12 80 0D 03 02 00 00 00 00 09 [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:04]Read from MH i2c: E2 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 0B 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 0B 00 7C 12 00 0B A3 90 3F 85 95 58 99 90 00 92 [21:03:04]RAPDU: 0B A3 90 3F 85 95 58 99 90 00 [21:03:04]wFMCommunicate OK [21:03:04]SAM_PROTO_SignData done [21:03:04]FM_MakeSignedData done [21:03:04]CreateOFDProtocolMessage [21:03:04]wFMCommunicate request_size=4 [21:03:04]MH_SAM_APDU [21:03:04]CAPDU: 80 11 00 00 [21:03:04]Write to MH i2c: E2 08 00 7D 12 80 11 00 00 00 00 00 00 09 [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:04]Read from MH i2c: E2 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 17 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: E2 17 00 7D 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 5E [21:03:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:03:04]wFMCommunicate OK [21:03:04]CreateOFDProtocolMessage done [21:03:04]OFDSenderStorePacket 5046 [21:03:04]StoreOFDPacket docnum=5046 [21:03:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 82 01 00 00 59 D9 7A 01 9B E6 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 CF 00 00 00 00 13 04 06 00 08 CF 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 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 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 1B 00 00 00 00 07 04 06 00 D0 01 01 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 88 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B6 13 00 00 35 04 06 00 D0 E6 26 61 EE 3E 0B A3 90 3F 85 95 58 99 [21:03:04]CheckFolder [21:03:04]dirname=/storage/ofd_packets [21:03:04]CheckFolder done [21:03:04]ProducePacketName [21:03:04]name=ofd_packets/00005046 [21:03:04]NVStorageSaveData ofd_packets/00005046 [21:03:04]File name is /storage/ofd_packets/00005046 [21:03:04]Write 416 bytes [21:03:04]NVStorageSaveData done [21:03:04]OFDSenderStorePacket done [21:03:04]KKMCreateOFDPacket done [21:03:04]NVStorageSaveData kkm_last_timestamp [21:03:04]File name is /storage/kkm_last_timestamp [21:03:04]Write 4 bytes [21:03:04]NVStorageSaveData done [21:03:04]ExternCall_PrintAddStr [21:03:04]wPrintStart [21:03:04]Write to MH i2c: 01 00 00 7E 12 90 [21:03:04]Write i2c OK [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: 01 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: 01 07 00 [21:03:04]MH_I2C_Read... [21:03:04]Read from MH i2c: 01 07 00 7E 12 00 00 00 00 00 FF 0F A5 [21:03:04]RasterBufferAndPrint [21:03:04]line Счет N : (3)141034 [21:03:04]line ИНН: 02508201610067 [21:03:04]line Контрольно-Кассовый Чек [21:03:04]line ПРОДАЖА [21:03:04]line Товар: 4700003150400 [21:03:04]line Водка Фрунзе 0,75 [21:03:04]line 1.000 * 530.00 [21:03:04]line = 530.00 [21:03:04]line НДС 12% НСП 1% [21:03:04]line > о реализуемом товаре [21:03:04]line Товар: 4870001570071 [21:03:04]line Напиток Pepsi 1л [21:03:04]line 1.000 * 130.00 [21:03:04]line = 130.00 [21:03:04]line НДС 12% НСП 1% [21:03:04]line > о реализуемом товаре [21:03:04]line ИТОГО: 660.00 [21:03:04]line НСП 1% : 5.84 [21:03:04]line НДС 12% : 70.08 [21:03:04]line Наличными: 660.00 [21:03:04]line Безнал.: 0.00 [21:03:04]line Место: АЗС № 135 "Партнер Нефть" [21:03:04]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [21:03:04]line СНО: Общий режим [21:03:04]line Чек 106 16.05.2024 21:03 [21:03:04]line Смена: 44 ФФД: 1.0 [21:03:04]line ЗНМ: 0300000237 [21:03:04]line РНМ: 0000000000154221 [21:03:04]line Версия ККМ: v1.0 [21:03:04]line ФМ: 0000000000963259 [21:03:04]line ФД: 5046 [21:03:04]line ФПД: 229686905007678 [21:03:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T210304&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5046&fm=229686905007678&tin=02508201610067®Number=0000000000154221&sum=66000 [21:03:04]line 0 [21:03:04]OFD Sender: Processing packet 5046 [packets to send 4, broken 3] [21:03:04]ProducePacketName [21:03:04]name=ofd_packets/00005046 [21:03:04]OFD Sender: To server: pG, [21:03:04]CommunicateWithHost lk.salyk.kg:30040 [21:03:04]ConnectInit lk.salyk.kg [21:03:04]written 0, free lines is 4095 [21:03:04]Connected sock=11 [21:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 82 01 00 00 59 D9 7A 01 9B E6 5A 03 01 00 03 00 6E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 34 30 30 06 04 1C 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A4 D1 80 D1 83 D0 BD D0 B7 D0 B5 20 30 2C 37 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 CF 00 00 00 00 13 04 06 00 08 CF 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 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 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 1B 00 00 00 00 07 04 06 00 D0 01 01 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 88 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B6 13 00 00 35 04 06 00 D0 E6 26 61 EE 3E 0B A3 90 3F 85 95 58 99 [21:03:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 32 22 47 00 D1 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 33 32 35 39 10 04 04 00 B6 13 00 00 F4 03 04 00 4B 20 46 66 B6 04 01 00 00 01 DD E9 FA 9F 1D 10 BF [21:03:05]CommunicateWithHost err = 0 [21:03:05]CheckOFDResponse [21:03:05]1017 (14) - 77093643461234 [21:03:05]1041 (16) - 0000000000963259 [21:03:05]1040 (4) - 5046 [21:03:05]1012 (4) - 16.05.2024 15:03 [21:03:05]1206 (1) - 0 [21:03:05]OFD Sender: Remove packet 5046 [21:03:05]ProducePacketName [21:03:05]name=ofd_packets/00005046 [21:03:05]NVStorageDeleteData [21:03:05]Write to MH i2c: 01 00 00 AC 12 BE [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: 01 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: 01 07 00 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: 01 07 00 AC 12 00 00 00 00 00 20 0C F1 [21:03:05]RasterBufferAndPrint [21:03:05]line [21:03:05]line [21:03:05]line [21:03:05]line [21:03:05]line [21:03:05]written 0, free lines is 3107 [21:03:05]MH_Cut [21:03:05]Write to MH i2c: D1 01 00 B3 12 01 97 [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: D1 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: D1 01 00 [21:03:05]MH_I2C_Read... [21:03:05]Read from MH i2c: D1 01 00 B3 12 00 96 [21:03:05]Write to MH i2c: 01 00 00 B4 12 C6 [21:03:05]Write i2c OK [21:03:05]MH_I2C_Read... [21:03:05]OFD Sender: No OFD packet to send [21:03:06]*** Cut start [21:03:06]*** Partial cut [21:03:06]*** CUTSNS_PIN = 1 [21:03:06]*** CUTSNS_PIN = 0 [21:03:06]*** Brake cut motor [21:03:07]Read from MH i2c: 01 [21:03:07]MH_I2C_Read... [21:03:07]*** Stop cut motor [21:03:07]*** Cut end [21:03:07]Read from MH i2c: 01 07 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: 01 07 00 B4 12 00 00 00 00 00 FF 0F DB [21:03:07]process_action close_receipt done [21:03:07]requested_data is exist [21:03:07]produce_requested_data [21:03:07]requested_item fm.sn is exist - process it [21:03:07]wFMCommunicate request_size=4 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 11 00 00 [21:03:07]Write to MH i2c: E2 08 00 B5 12 80 11 00 00 00 00 00 00 41 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:07]Read from MH i2c: E2 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 17 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 17 00 B5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 96 [21:03:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:03:07]wFMCommunicate OK [21:03:07]requested_item fd.num is exist - process it [21:03:07]SAM_PROTO_GetFieldsCounters [21:03:07]wFMCommunicate request_size=4 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 13 00 00 [21:03:07]Write to MH i2c: E2 08 00 B6 12 80 13 00 00 00 00 00 00 44 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:07]Read from MH i2c: E2 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 62 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 62 00 B6 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B6 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 90 [21:03:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B6 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6A 00 00 00 5E 04 04 00 6A 00 00 00 57 04 04 00 6B 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:07]wFMCommunicate OK [21:03:07]SAM_PROTO_GetFieldsCounters done [21:03:07]requested_item shift.num is exist - process it [21:03:07]requested_item shift.opened is exist - process it [21:03:07]req_shift_opened [21:03:07]FM_GetShiftState [21:03:07]SAM_PROTO_GetShiftState [21:03:07]wFMCommunicate request_size=4 [21:03:07]MH_SAM_APDU [21:03:07]CAPDU: 80 13 01 00 [21:03:07]Write to MH i2c: E2 08 00 B7 12 80 13 01 00 00 00 00 00 46 [21:03:07]Write i2c OK [21:03:07]MH_I2C_Read... [21:03:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:07]Read from MH i2c: E2 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 0E 00 [21:03:07]MH_I2C_Read... [21:03:07]Read from MH i2c: E2 0E 00 B7 12 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 52 [21:03:07]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:03:07]wFMCommunicate OK [21:03:07]SAM_PROTO_GetShiftState done [21:03:07]FM_GetShiftState done [21:03:07]req_shift_opened done [21:03:07]requested_item shift.open_date is exist - process it [21:03:07]req_shift_open_date [21:03:07]req_shift_open_date done [21:03:07]produce_requested_data done [21:03:07]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5046,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [21:03:07]process_action_free close_receipt [21:03:07]json_value_free [21:03:07]json_value_free done [21:03:07]process_json_proto returns [21:03:07]Send response to host [21:03:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5046,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [21:03:07]free response buf [21:03:07]execute_script done [21:03:07]execute_script returns [21:03:07]free content buf [21:03:07]Sock 7.Close socket [21:03:07]Sock 7.Thread stoped [21:03:10]OFD Sender: No OFD packet to send [21:03:15]OFD Sender: No OFD packet to send [21:03:20]OFD Sender: No OFD packet to send [21:03:25]OFD Sender: No OFD packet to send [21:03:30]OFD Sender: No OFD packet to send [21:03:35]OFD Sender: No OFD packet to send [21:03:40]OFD Sender: No OFD packet to send [21:03:45]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:43]accept exits with 9 [21:04:43]New connection [21:04:43]New thread 3067108708 created [21:04:43]Thread 3067252068 joined [21:04:43]Waiting for new connection... [21:04:43] Sock 9.Parse request [21:04:43]Sock 9.Check first char [21:04:43]Sock 9.First char is OK [21:04:43]request: POST /json_proto HTTP/1.0 [21:04:43]Method: POST [21:04:43]URL: /json_proto [21:04:43]Method is POST - this is cgi request [21:04:43]url: /json_proto [21:04:43]query_string will be loaded in cgi processing [21:04:43]execute_cgi json_proto POST (null) [21:04:43]execute_cgi path=json_proto method=POST [21:04:43]POST find Content-Length [21:04:43]Host: 172.17.44.4:8080 [21:04:43]Content-Length: 801 [21:04:43]Content-Type: application/json [21:04:43] [21:04:43]POST finish read [21:04:43]Found Content-Length = 801 [21:04:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:43]execute_script... [21:04:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 500.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:04:43]POST & json_proto [21:04:43]process_json_proto [21:04:43]json parsed OK: [21:04:43]protocol is kg_v1.0 [21:04:43]action value=close_receipt [21:04:43]process_action close_receipt [21:04:43]cmd_close_receipt [21:04:43]MH_GetDate [21:04:43]Write to MH i2c: F0 00 00 B8 12 B9 [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: F0 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: F0 09 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: F0 09 00 B8 12 00 ED 74 46 66 6C E9 28 66 B2 [21:04:43]GetLastDocTimeStamp 1715893384 [21:04:43]current date 1715893485 [21:04:43]FM_GetShiftState [21:04:43]SAM_PROTO_GetShiftState [21:04:43]wFMCommunicate request_size=4 [21:04:43]MH_SAM_APDU [21:04:43]CAPDU: 80 13 01 00 [21:04:43]Write to MH i2c: E2 08 00 B9 12 80 13 01 00 00 00 00 00 48 [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:43]Read from MH i2c: E2 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 0E 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 0E 00 B9 12 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 54 [21:04:43]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:04:43]wFMCommunicate OK [21:04:43]SAM_PROTO_GetShiftState done [21:04:43]FM_GetShiftState done [21:04:43]opened in 1715818246 [21:04:43]opened+sec_in_day 1715904646 [21:04:43]quantity*price = 50033 [21:04:43]sum+1 = 50034 [21:04:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.33 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 0.00 Безнал.: 500.33 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 107 16.05.2024 21:04 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5047 ФПД: 152546759953287 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T210445&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5047&fm=152546759953287&tin=02508201610067®Number=0000000000154221&sum=50033 [21:04:44]StoreToDocumentArchive [21:04:44]shift 44 fd 5047 [21:04:44]save to /storage/0044/doc_00005047 [21:04:44]save last doc name /storage/0044/doc_00005047 to /storage/kkm_last_doc_name [21:04:44]save OK [21:04:44]Clear old archive folders... [21:04:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:44]tlvbuf is 011A7A40 [21:04:44]SAM_PROTO_ClearQueue [21:04:44]wFMCommunicate request_size=4 [21:04:44]MH_SAM_APDU [21:04:44]CAPDU: 80 09 00 00 [21:04:44]Write to MH i2c: E2 08 00 C6 12 80 09 00 00 00 00 00 00 4A [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:44]Read from MH i2c: E2 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 03 00 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 03 00 C6 12 00 90 00 4C [21:04:44]RAPDU: 90 00 [21:04:44]wFMCommunicate OK [21:04:44]SAM_PROTO_ClearQueue done [21:04:44]KKMCreateOFDPacket [21:04:44]OFDProtocolAddRootSTLVToBuf [21:04:44]FM_MakeSignedData [21:04:44]FM_MakeSignedData [21:04:44]SAM_PROTO_SignData [21:04:44]wFMCommunicate request_size=4 [21:04:44]MH_SAM_APDU [21:04:44]CAPDU: 80 0D 01 02 [21:04:44]Write to MH i2c: E2 08 00 C7 12 80 0D 01 02 00 00 00 00 52 [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:44]Read from MH i2c: E2 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 03 00 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 03 00 C7 12 00 90 00 4D [21:04:44]RAPDU: 90 00 [21:04:44]wFMCommunicate OK [21:04:44]wFMCommunicate request_size=255 [21:04:44]MH_SAM_APDU [21:04:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 ED 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B7 13 00 00 35 04 06 00 8A [21:04:44]Write to MH i2c: E2 02 01 C8 12 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 ED 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B7 13 00 00 35 04 06 00 8A 00 00 09 [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:44]Read from MH i2c: E2 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 03 00 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 03 00 C8 12 00 90 00 4E [21:04:44]RAPDU: 90 00 [21:04:44]wFMCommunicate OK [21:04:44]wFMCommunicate request_size=10 [21:04:44]MH_SAM_APDU [21:04:44]CAPDU: 80 0D 02 02 05 BD 8F 70 4B 87 [21:04:44]Write to MH i2c: E2 0D 00 C9 12 80 0D 02 02 05 00 BD 8F 70 4B 87 00 00 ED [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:44]Read from MH i2c: E2 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 03 00 [21:04:44]MH_I2C_Read... [21:04:44]Read from MH i2c: E2 03 00 C9 12 00 90 00 4F [21:04:44]RAPDU: 90 00 [21:04:44]wFMCommunicate OK [21:04:44]wFMCommunicate request_size=4 [21:04:44]MH_SAM_APDU [21:04:44]CAPDU: 80 0D 03 02 [21:04:44]Write to MH i2c: E2 08 00 CA 12 80 0D 03 02 00 00 00 00 57 [21:04:44]Write i2c OK [21:04:44]MH_I2C_Read... [21:04:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:45]Read from MH i2c: E2 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 0B 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 0B 00 CA 12 00 24 95 F6 ED F2 08 16 6B 90 00 6F [21:04:45]RAPDU: 24 95 F6 ED F2 08 16 6B 90 00 [21:04:45]wFMCommunicate OK [21:04:45]SAM_PROTO_SignData done [21:04:45]FM_MakeSignedData done [21:04:45]CreateOFDProtocolMessage [21:04:45]wFMCommunicate request_size=4 [21:04:45]MH_SAM_APDU [21:04:45]CAPDU: 80 11 00 00 [21:04:45]Write to MH i2c: E2 08 00 CB 12 80 11 00 00 00 00 00 00 57 [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:45]Read from MH i2c: E2 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 17 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: E2 17 00 CB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 AC [21:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:04:45]wFMCommunicate OK [21:04:45]CreateOFDProtocolMessage done [21:04:45]OFDSenderStorePacket 5047 [21:04:45]StoreOFDPacket docnum=5047 [21:04:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 FE D7 07 01 B2 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 ED 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B7 13 00 00 35 04 06 00 8A BD 8F 70 4B 87 24 95 F6 ED F2 08 16 6B [21:04:45]CheckFolder [21:04:45]dirname=/storage/ofd_packets [21:04:45]CheckFolder done [21:04:45]ProducePacketName [21:04:45]name=ofd_packets/00005047 [21:04:45]NVStorageSaveData ofd_packets/00005047 [21:04:45]File name is /storage/ofd_packets/00005047 [21:04:45]Write 301 bytes [21:04:45]NVStorageSaveData done [21:04:45]OFDSenderStorePacket done [21:04:45]KKMCreateOFDPacket done [21:04:45]NVStorageSaveData kkm_last_timestamp [21:04:45]File name is /storage/kkm_last_timestamp [21:04:45]Write 4 bytes [21:04:45]NVStorageSaveData done [21:04:45]ExternCall_PrintAddStr [21:04:45]wPrintStart [21:04:45]Write to MH i2c: 01 00 00 CC 12 DE [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: 01 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: 01 07 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: 01 07 00 CC 12 00 00 00 00 00 FF 0F F3 [21:04:45]RasterBufferAndPrint [21:04:45]line Счет N : (1)1993188 [21:04:45]line ИНН: 02508201610067 [21:04:45]line Контрольно-Кассовый Чек [21:04:45]line ПРОДАЖА [21:04:45]line ТРК (МРК, ГНК) : 53 [21:04:45]line Товар: 2710124130 [21:04:45]line Аи-92-К-4 [21:04:45]line 7.490 * 66.80 [21:04:45]line = 500.33 [21:04:45]line НДС 12% НСП 1% [21:04:45]line > о реализуемом товаре [21:04:45]line ИТОГО: 500.33 [21:04:45]line НСП 1% : 4.43 [21:04:45]line НДС 12% : 53.13 [21:04:45]line Наличными: 0.00 [21:04:45]line Безнал.: 500.33 [21:04:45]line Место: АЗС № 135 "Партнер Нефть" [21:04:45]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [21:04:45]line СНО: Общий режим [21:04:45]line Чек 107 16.05.2024 21:04 [21:04:45]line Смена: 44 ФФД: 1.0 [21:04:45]line ЗНМ: 0300000237 [21:04:45]line РНМ: 0000000000154221 [21:04:45]line Версия ККМ: v1.0 [21:04:45]line Платежная система: O! деньги [21:04:45]line ФМ: 0000000000963259 [21:04:45]line ФД: 5047 [21:04:45]line ФПД: 152546759953287 [21:04:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T210445&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5047&fm=152546759953287&tin=02508201610067®Number=0000000000154221&sum=50033 [21:04:45]OFD Sender: Processing packet 5047 [packets to send 4, broken 3] [21:04:45]ProducePacketName [21:04:45]name=ofd_packets/00005047 [21:04:45]OFD Sender: To server: pG, [21:04:45]CommunicateWithHost lk.salyk.kg:30040 [21:04:45]ConnectInit lk.salyk.kg [21:04:45]written 0, free lines is 4095 [21:04:45]Write to MH i2c: 01 00 00 F6 12 08 [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: 01 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: 01 07 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: 01 07 00 F6 12 00 00 00 00 00 7E 0C 99 [21:04:45]RasterBufferAndPrint [21:04:45]line [21:04:45]line [21:04:45]line [21:04:45]line [21:04:45]line [21:04:45]written 0, free lines is 3202 [21:04:45]MH_Cut [21:04:45]Write to MH i2c: D1 01 00 FD 12 01 E1 [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: D1 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: D1 01 00 [21:04:45]MH_I2C_Read... [21:04:45]Read from MH i2c: D1 01 00 FD 12 00 E0 [21:04:45]Write to MH i2c: 01 00 00 FE 12 10 [21:04:45]Write i2c OK [21:04:45]MH_I2C_Read... [21:04:46]Connected sock=7 [21:04:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 FE D7 07 01 B2 5B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 71 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 71 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 ED 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B7 13 00 00 35 04 06 00 8A BD 8F 70 4B 87 24 95 F6 ED F2 08 16 6B [21:04:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 4B 5D 47 00 90 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B7 13 00 00 F4 03 04 00 B0 20 46 66 B6 04 01 00 00 9F 67 73 A7 D7 9B E6 82 [21:04:46]CommunicateWithHost err = 0 [21:04:46]CheckOFDResponse [21:04:46]1017 (14) - 77093643461234 [21:04:46]1041 (16) - 0000000000963259 [21:04:46]1040 (4) - 5047 [21:04:46]1012 (4) - 16.05.2024 15:05 [21:04:46]1206 (1) - 0 [21:04:46]OFD Sender: Remove packet 5047 [21:04:46]ProducePacketName [21:04:46]name=ofd_packets/00005047 [21:04:46]NVStorageDeleteData [21:04:47]*** Cut start [21:04:47]*** Partial cut [21:04:47]*** CUTSNS_PIN = 1 [21:04:47]*** CUTSNS_PIN = 0 [21:04:47]OFD Sender: No OFD packet to send [21:04:47]*** Brake cut motor [21:04:47]Read from MH i2c: 01 [21:04:47]MH_I2C_Read... [21:04:47]*** Stop cut motor [21:04:47]*** Cut end [21:04:47]Read from MH i2c: 01 07 00 [21:04:47]MH_I2C_Read... [21:04:47]Read from MH i2c: 01 07 00 FE 12 00 00 00 00 00 FF 0F 25 [21:04:47]process_action close_receipt done [21:04:47]requested_data is exist [21:04:47]produce_requested_data [21:04:47]requested_item fm.sn is exist - process it [21:04:47]wFMCommunicate request_size=4 [21:04:47]MH_SAM_APDU [21:04:47]CAPDU: 80 11 00 00 [21:04:47]Write to MH i2c: E2 08 00 FF 12 80 11 00 00 00 00 00 00 8B [21:04:47]Write i2c OK [21:04:47]MH_I2C_Read... [21:04:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:47]Read from MH i2c: E2 [21:04:47]MH_I2C_Read... [21:04:47]Read from MH i2c: E2 17 00 [21:04:47]MH_I2C_Read... [21:04:47]Read from MH i2c: E2 17 00 FF 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 E0 [21:04:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:04:47]wFMCommunicate OK [21:04:47]requested_item fd.num is exist - process it [21:04:47]SAM_PROTO_GetFieldsCounters [21:04:47]wFMCommunicate request_size=4 [21:04:47]MH_SAM_APDU [21:04:47]CAPDU: 80 13 00 00 [21:04:47]Write to MH i2c: E2 08 00 00 13 80 13 00 00 00 00 00 00 8F [21:04:47]Write i2c OK [21:04:47]MH_I2C_Read... [21:04:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:47]Read from MH i2c: E2 [21:04:47]MH_I2C_Read... [21:04:47]Read from MH i2c: E2 62 00 [21:04:47]MH_I2C_Read... [21:04:47]Read from MH i2c: E2 62 00 00 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [21:04:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6B 00 00 00 5E 04 04 00 6B 00 00 00 57 04 04 00 6C 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:47]wFMCommunicate OK [21:04:47]SAM_PROTO_GetFieldsCounters done [21:04:47]requested_item shift.num is exist - process it [21:04:47]requested_item shift.opened is exist - process it [21:04:47]req_shift_opened [21:04:47]FM_GetShiftState [21:04:47]SAM_PROTO_GetShiftState [21:04:47]wFMCommunicate request_size=4 [21:04:47]MH_SAM_APDU [21:04:47]CAPDU: 80 13 01 00 [21:04:47]Write to MH i2c: E2 08 00 01 13 80 13 01 00 00 00 00 00 91 [21:04:47]Write i2c OK [21:04:47]MH_I2C_Read... [21:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:47]Read from MH i2c: E2 [21:04:47]MH_I2C_Read... [21:04:47]Read from MH i2c: E2 0E 00 [21:04:47]MH_I2C_Read... [21:04:47]Read from MH i2c: E2 0E 00 01 13 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 9D [21:04:47]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:04:47]wFMCommunicate OK [21:04:47]SAM_PROTO_GetShiftState done [21:04:47]FM_GetShiftState done [21:04:47]req_shift_opened done [21:04:47]requested_item shift.open_date is exist - process it [21:04:47]req_shift_open_date [21:04:47]req_shift_open_date done [21:04:47]produce_requested_data done [21:04:47]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5047,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [21:04:47]process_action_free close_receipt [21:04:47]json_value_free [21:04:47]json_value_free done [21:04:47]process_json_proto returns [21:04:47]Send response to host [21:04:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5047,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [21:04:47]free response buf [21:04:47]execute_script done [21:04:47]execute_script returns [21:04:47]free content buf [21:04:47]Sock 9.Close socket [21:04:47]Sock 9.Thread stoped [21:04:52]OFD Sender: No OFD packet to send [21:04:57]OFD Sender: No OFD packet to send [21:05:01]accept exits with 10 [21:05:01]New connection [21:05:01]New thread 3067252068 created [21:05:01]Thread 3067108708 joined [21:05:01]Waiting for new connection... [21:05:01] Sock 10.Parse request [21:05:01]Sock 10.Check first char [21:05:01]Sock 10.First char is OK [21:05:01]request: POST /json_proto HTTP/1.0 [21:05:01]Method: POST [21:05:01]URL: /json_proto [21:05:01]Method is POST - this is cgi request [21:05:01]url: /json_proto [21:05:01]query_string will be loaded in cgi processing [21:05:01]execute_cgi json_proto POST (null) [21:05:01]execute_cgi path=json_proto method=POST [21:05:01]POST find Content-Length [21:05:01]Host: 172.17.44.4:8080 [21:05:01]Content-Length: 980 [21:05:01]Content-Type: application/json [21:05:01] [21:05:01]POST finish read [21:05:01]Found Content-Length = 980 [21:05:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141035", "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 }]} ,{ "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" : 171.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:01]execute_script... [21:05:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141035", "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 }]} ,{ "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" : 171.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:01]POST & json_proto [21:05:01]process_json_proto [21:05:01]json parsed OK: [21:05:01]protocol is kg_v1.0 [21:05:01]action value=close_receipt [21:05:01]process_action close_receipt [21:05:01]cmd_close_receipt [21:05:01]MH_GetDate [21:05:01]Write to MH i2c: F0 00 00 02 13 04 [21:05:01]Write i2c OK [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: F0 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: F0 09 00 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: F0 09 00 02 13 00 FF 74 46 66 6C E9 28 66 0F [21:05:01]GetLastDocTimeStamp 1715893485 [21:05:01]current date 1715893503 [21:05:01]FM_GetShiftState [21:05:01]SAM_PROTO_GetShiftState [21:05:01]wFMCommunicate request_size=4 [21:05:01]MH_SAM_APDU [21:05:01]CAPDU: 80 13 01 00 [21:05:01]Write to MH i2c: E2 08 00 03 13 80 13 01 00 00 00 00 00 93 [21:05:01]Write i2c OK [21:05:01]MH_I2C_Read... [21:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:01]Read from MH i2c: E2 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 0E 00 [21:05:01]MH_I2C_Read... [21:05:01]Read from MH i2c: E2 0E 00 03 13 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 9F [21:05:01]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:05:01]wFMCommunicate OK [21:05:01]SAM_PROTO_GetShiftState done [21:05:01]FM_GetShiftState done [21:05:01]opened in 1715818246 [21:05:01]opened+sec_in_day 1715904646 [21:05:01]quantity*price = 4100 [21:05:01]sum+1 = 4101 [21:05:01]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 171.00 НСП 1% : 1.51 НДС 12% : 18.15 Наличными: 171.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 108 16.05.2024 21:05 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5048 ФПД: 235282513057256 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T210503&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5048&fm=235282513057256&tin=02508201610067®Number=0000000000154221&sum=17100 0 [21:05:03]StoreToDocumentArchive [21:05:03]shift 44 fd 5048 [21:05:03]save to /storage/0044/doc_00005048 [21:05:03]save last doc name /storage/0044/doc_00005048 to /storage/kkm_last_doc_name [21:05:03]save OK [21:05:03]Clear old archive folders... [21:05:03]ProcessDocumentItem done err = 0, tmpTLVsize=416 [21:05:03]tlvbuf is 011E44F0 [21:05:03]SAM_PROTO_ClearQueue [21:05:03]wFMCommunicate request_size=4 [21:05:03]MH_SAM_APDU [21:05:03]CAPDU: 80 09 00 00 [21:05:03]Write to MH i2c: E2 08 00 10 13 80 09 00 00 00 00 00 00 95 [21:05:03]Write i2c OK [21:05:03]MH_I2C_Read... [21:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:03]Read from MH i2c: E2 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 03 00 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 03 00 10 13 00 90 00 97 [21:05:03]RAPDU: 90 00 [21:05:03]wFMCommunicate OK [21:05:03]SAM_PROTO_ClearQueue done [21:05:03]KKMCreateOFDPacket [21:05:03]OFDProtocolAddRootSTLVToBuf [21:05:03]FM_MakeSignedData [21:05:03]FM_MakeSignedData [21:05:03]SAM_PROTO_SignData [21:05:03]wFMCommunicate request_size=4 [21:05:03]MH_SAM_APDU [21:05:03]CAPDU: 80 0D 01 02 [21:05:03]Write to MH i2c: E2 08 00 11 13 80 0D 01 02 00 00 00 00 9D [21:05:03]Write i2c OK [21:05:03]MH_I2C_Read... [21:05:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:03]Read from MH i2c: E2 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 03 00 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 03 00 11 13 00 90 00 98 [21:05:03]RAPDU: 90 00 [21:05:03]wFMCommunicate OK [21:05:03]wFMCommunicate request_size=255 [21:05:03]MH_SAM_APDU [21:05:03]CAPDU: 80 0D 02 02 FA 03 00 A0 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 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 [21:05:03]Write to MH i2c: E2 02 01 12 13 80 0D 02 02 FA 00 03 00 A0 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 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 00 00 C8 [21:05:03]Write i2c OK [21:05:03]MH_I2C_Read... [21:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:03]Read from MH i2c: E2 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 03 00 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 03 00 12 13 00 90 00 99 [21:05:03]RAPDU: 90 00 [21:05:03]wFMCommunicate OK [21:05:03]wFMCommunicate request_size=175 [21:05:03]MH_SAM_APDU [21:05:03]CAPDU: 80 0D 02 02 AA BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 07 00 00 00 00 07 04 06 00 CC 42 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 FF 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B8 13 00 00 35 04 06 00 D5 FC FA 9C D5 E8 [21:05:03]Write to MH i2c: E2 B2 00 13 13 80 0D 02 02 AA 00 BC 04 01 00 01 FC 03 06 00 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 07 00 00 00 00 07 04 06 00 CC 42 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 FF 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B8 13 00 00 35 04 06 00 D5 FC FA 9C D5 E8 00 00 67 [21:05:03]Write i2c OK [21:05:03]MH_I2C_Read... [21:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:03]Read from MH i2c: E2 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 03 00 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 03 00 13 13 00 90 00 9A [21:05:03]RAPDU: 90 00 [21:05:03]wFMCommunicate OK [21:05:03]wFMCommunicate request_size=4 [21:05:03]MH_SAM_APDU [21:05:03]CAPDU: 80 0D 03 02 [21:05:03]Write to MH i2c: E2 08 00 14 13 80 0D 03 02 00 00 00 00 A2 [21:05:03]Write i2c OK [21:05:03]MH_I2C_Read... [21:05:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:03]Read from MH i2c: E2 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 0B 00 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 0B 00 14 13 00 55 67 37 CF 62 31 3D 47 90 00 7C [21:05:03]RAPDU: 55 67 37 CF 62 31 3D 47 90 00 [21:05:03]wFMCommunicate OK [21:05:03]SAM_PROTO_SignData done [21:05:03]FM_MakeSignedData done [21:05:03]CreateOFDProtocolMessage [21:05:03]wFMCommunicate request_size=4 [21:05:03]MH_SAM_APDU [21:05:03]CAPDU: 80 11 00 00 [21:05:03]Write to MH i2c: E2 08 00 15 13 80 11 00 00 00 00 00 00 A2 [21:05:03]Write i2c OK [21:05:03]MH_I2C_Read... [21:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:03]Read from MH i2c: E2 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 17 00 [21:05:03]MH_I2C_Read... [21:05:03]Read from MH i2c: E2 17 00 15 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F7 [21:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:05:03]wFMCommunicate OK [21:05:03]CreateOFDProtocolMessage done [21:05:03]OFDSenderStorePacket 5048 [21:05:03]StoreOFDPacket docnum=5048 [21:05:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 B4 01 00 00 6B 14 AC 01 60 C8 5A 03 01 00 03 00 A0 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 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 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 07 00 00 00 00 07 04 06 00 CC 42 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 FF 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B8 13 00 00 35 04 06 00 D5 FC FA 9C D5 E8 55 67 37 CF 62 31 3D 47 [21:05:03]CheckFolder [21:05:03]dirname=/storage/ofd_packets [21:05:03]CheckFolder done [21:05:03]ProducePacketName [21:05:03]name=ofd_packets/00005048 [21:05:03]NVStorageSaveData ofd_packets/00005048 [21:05:03]File name is /storage/ofd_packets/00005048 [21:05:03]Write 466 bytes [21:05:03]NVStorageSaveData done [21:05:03]OFDSenderStorePacket done [21:05:03]KKMCreateOFDPacket done [21:05:03]NVStorageSaveData kkm_last_timestamp [21:05:04]File name is /storage/kkm_last_timestamp [21:05:04]Write 4 bytes [21:05:04]NVStorageSaveData done [21:05:04]ExternCall_PrintAddStr [21:05:04]wPrintStart [21:05:04]Write to MH i2c: 01 00 00 16 13 29 [21:05:04]OFD Sender: Processing packet 5048 [packets to send 4, broken 3] [21:05:04]ProducePacketName [21:05:04]name=ofd_packets/00005048 [21:05:04]OFD Sender: To server: pG, [21:05:04]CommunicateWithHost lk.salyk.kg:30040 [21:05:04]ConnectInit lk.salyk.kg [21:05:04]Write i2c OK [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: 01 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: 01 07 00 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: 01 07 00 16 13 00 00 00 00 00 FF 0F 3E [21:05:04]RasterBufferAndPrint [21:05:04]line Счет N : (3)141035 [21:05:04]line ИНН: 02508201610067 [21:05:04]line Контрольно-Кассовый Чек [21:05:04]line ПРОДАЖА [21:05:04]line Товар: 6921211114420 [21:05:04]line Карамель ЧЧ 3D В-РОР Тропический 8*45 [21:05:04]line 1.000 * 41.00 [21:05:04]line = 41.00 [21:05:04]line НДС 12% НСП 1% [21:05:04]line > о реализуемом товаре [21:05:04]line Товар: 2000036220012 [21:05:04]line Кофе Капучино XL(GABB TRADE) [21:05:04]line 1.000 * 130.00 [21:05:04]line = 130.00 [21:05:04]line НДС 12% НСП 1% [21:05:04]line > о реализуемом товаре [21:05:04]line ИТОГО: 171.00 [21:05:04]line НСП 1% : 1.51 [21:05:04]line НДС 12% : 18.15 [21:05:04]line Наличными: 171.00 [21:05:04]line Безнал.: 0.00 [21:05:04]line Место: АЗС № 135 "Партнер Нефть" [21:05:04]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [21:05:04]line СНО: Общий режим [21:05:04]line Чек 108 16.05.2024 21:05 [21:05:04]line Смена: 44 ФФД: 1.0 [21:05:04]line ЗНМ: 0300000237 [21:05:04]line РНМ: 0000000000154221 [21:05:04]line Версия ККМ: v1.0 [21:05:04]line ФМ: 0000000000963259 [21:05:04]line ФД: 5048 [21:05:04]line ФПД: 235282513057256 [21:05:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T210503&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5048&fm=235282513057256&tin=02508201610067®Number=0000000000154221&sum=17100 [21:05:04]line 0 [21:05:04]written 0, free lines is 4095 [21:05:04]Connected sock=9 [21:05:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 B4 01 00 00 6B 14 AC 01 60 C8 5A 03 01 00 03 00 A0 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 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 CC 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 97 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 07 00 00 00 00 07 04 06 00 CC 42 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 FF 74 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B8 13 00 00 35 04 06 00 D5 FC FA 9C D5 E8 55 67 37 CF 62 31 3D 47 [21:05:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 08 3F 47 00 19 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B8 13 00 00 F4 03 04 00 C2 20 46 66 B6 04 01 00 00 0F 8B 7F 11 18 E2 E8 BD [21:05:04]CommunicateWithHost err = 0 [21:05:04]CheckOFDResponse [21:05:04]1017 (14) - 77093643461234 [21:05:04]1041 (16) - 0000000000963259 [21:05:04]1040 (4) - 5048 [21:05:04]1012 (4) - 16.05.2024 15:05 [21:05:04]1206 (1) - 0 [21:05:04]OFD Sender: Remove packet 5048 [21:05:04]ProducePacketName [21:05:04]name=ofd_packets/00005048 [21:05:04]NVStorageDeleteData [21:05:04]Write to MH i2c: 01 00 00 46 13 59 [21:05:04]Write i2c OK [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: 01 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: 01 07 00 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: 01 07 00 46 13 00 00 00 00 00 F2 0B 5D [21:05:04]RasterBufferAndPrint [21:05:04]line [21:05:04]line [21:05:04]line [21:05:04]line [21:05:04]line [21:05:04]written 0, free lines is 3062 [21:05:04]MH_Cut [21:05:04]Write to MH i2c: D1 01 00 4D 13 01 32 [21:05:04]Write i2c OK [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: D1 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: D1 01 00 [21:05:04]MH_I2C_Read... [21:05:04]Read from MH i2c: D1 01 00 4D 13 00 31 [21:05:04]Write to MH i2c: 01 00 00 4E 13 61 [21:05:04]Write i2c OK [21:05:04]MH_I2C_Read... [21:05:04]OFD Sender: No OFD packet to send [21:05:05]*** Cut start [21:05:05]*** Partial cut [21:05:05]*** CUTSNS_PIN = 1 [21:05:05]*** CUTSNS_PIN = 0 [21:05:06]*** Brake cut motor [21:05:06]Read from MH i2c: 01 [21:05:06]MH_I2C_Read... [21:05:06]*** Stop cut motor [21:05:06]*** Cut end [21:05:06]Read from MH i2c: 01 07 00 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: 01 07 00 4E 13 00 00 00 00 00 FF 0F 76 [21:05:06]process_action close_receipt done [21:05:06]requested_data is exist [21:05:06]produce_requested_data [21:05:06]requested_item fm.sn is exist - process it [21:05:06]wFMCommunicate request_size=4 [21:05:06]MH_SAM_APDU [21:05:06]CAPDU: 80 11 00 00 [21:05:06]Write to MH i2c: E2 08 00 4F 13 80 11 00 00 00 00 00 00 DC [21:05:06]Write i2c OK [21:05:06]MH_I2C_Read... [21:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:06]Read from MH i2c: E2 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: E2 17 00 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: E2 17 00 4F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 31 [21:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:05:06]wFMCommunicate OK [21:05:06]requested_item fd.num is exist - process it [21:05:06]SAM_PROTO_GetFieldsCounters [21:05:06]wFMCommunicate request_size=4 [21:05:06]MH_SAM_APDU [21:05:06]CAPDU: 80 13 00 00 [21:05:06]Write to MH i2c: E2 08 00 50 13 80 13 00 00 00 00 00 00 DF [21:05:06]Write i2c OK [21:05:06]MH_I2C_Read... [21:05:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:06]Read from MH i2c: E2 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: E2 62 00 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: E2 62 00 50 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B8 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [21:05:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B8 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6C 00 00 00 5E 04 04 00 6C 00 00 00 57 04 04 00 6D 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:06]wFMCommunicate OK [21:05:06]SAM_PROTO_GetFieldsCounters done [21:05:06]requested_item shift.num is exist - process it [21:05:06]requested_item shift.opened is exist - process it [21:05:06]req_shift_opened [21:05:06]FM_GetShiftState [21:05:06]SAM_PROTO_GetShiftState [21:05:06]wFMCommunicate request_size=4 [21:05:06]MH_SAM_APDU [21:05:06]CAPDU: 80 13 01 00 [21:05:06]Write to MH i2c: E2 08 00 51 13 80 13 01 00 00 00 00 00 E1 [21:05:06]Write i2c OK [21:05:06]MH_I2C_Read... [21:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:06]Read from MH i2c: E2 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: E2 0E 00 [21:05:06]MH_I2C_Read... [21:05:06]Read from MH i2c: E2 0E 00 51 13 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 ED [21:05:06]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:05:06]wFMCommunicate OK [21:05:06]SAM_PROTO_GetShiftState done [21:05:06]FM_GetShiftState done [21:05:06]req_shift_opened done [21:05:06]requested_item shift.open_date is exist - process it [21:05:06]req_shift_open_date [21:05:06]req_shift_open_date done [21:05:06]produce_requested_data done [21:05:06]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5048,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [21:05:06]process_action_free close_receipt [21:05:06]json_value_free [21:05:06]json_value_free done [21:05:06]process_json_proto returns [21:05:06]Send response to host [21:05:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5048,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [21:05:06]free response buf [21:05:06]execute_script done [21:05:06]execute_script returns [21:05:06]free content buf [21:05:06]Sock 10.Close socket [21:05:06]Sock 10.Thread stoped [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:56]accept exits with 7 [21:06:56]New connection [21:06:56]New thread 3067108708 created [21:06:56]Thread 3067252068 joined [21:06:56]Waiting for new connection... [21:06:56] Sock 7.Parse request [21:06:56]Sock 7.Check first char [21:06:56]Sock 7.First char is OK [21:06:56]request: POST /json_proto HTTP/1.0 [21:06:56]Method: POST [21:06:56]URL: /json_proto [21:06:56]Method is POST - this is cgi request [21:06:56]url: /json_proto [21:06:56]query_string will be loaded in cgi processing [21:06:56]execute_cgi json_proto POST (null) [21:06:56]execute_cgi path=json_proto method=POST [21:06:56]POST find Content-Length [21:06:56]Host: 172.17.44.4:8080 [21:06:56]Content-Length: 804 [21:06:56]Content-Type: application/json [21:06:56] [21:06:56]POST finish read [21:06:56]Found Content-Length = 804 [21:06:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 13.670, "sum" : 1000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:56]execute_script... [21:06:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 13.670, "sum" : 1000.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1000.64 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:56]POST & json_proto [21:06:56]process_json_proto [21:06:56]json parsed OK: [21:06:56]protocol is kg_v1.0 [21:06:56]action value=close_receipt [21:06:56]process_action close_receipt [21:06:56]cmd_close_receipt [21:06:56]MH_GetDate [21:06:56]Write to MH i2c: F0 00 00 52 13 54 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: F0 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: F0 09 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: F0 09 00 52 13 00 72 75 46 66 6C E9 28 66 D3 [21:06:56]GetLastDocTimeStamp 1715893503 [21:06:56]current date 1715893618 [21:06:56]FM_GetShiftState [21:06:56]SAM_PROTO_GetShiftState [21:06:56]wFMCommunicate request_size=4 [21:06:56]MH_SAM_APDU [21:06:56]CAPDU: 80 13 01 00 [21:06:56]Write to MH i2c: E2 08 00 53 13 80 13 01 00 00 00 00 00 E3 [21:06:56]Write i2c OK [21:06:56]MH_I2C_Read... [21:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:56]Read from MH i2c: E2 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 0E 00 [21:06:56]MH_I2C_Read... [21:06:56]Read from MH i2c: E2 0E 00 53 13 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 EF [21:06:56]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:06:56]wFMCommunicate OK [21:06:56]SAM_PROTO_GetShiftState done [21:06:56]FM_GetShiftState done [21:06:56]opened in 1715818246 [21:06:56]opened+sec_in_day 1715904646 [21:06:56]quantity*price = 100064 [21:06:56]sum+1 = 100065 [21:06:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.64 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 0.00 Безнал.: 1000.64 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 109 16.05.2024 21:06 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5049 ФПД: 139578611464977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T210658&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5049&fm=139578611464977&tin=02508201610067®Number=0000000000154221&sum=100064 [21:06:58]StoreToDocumentArchive [21:06:58]shift 44 fd 5049 [21:06:58]save to /storage/0044/doc_00005049 [21:06:58]save last doc name /storage/0044/doc_00005049 to /storage/kkm_last_doc_name [21:06:58]save OK [21:06:58]Clear old archive folders... [21:06:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:58]tlvbuf is 011F7950 [21:06:58]SAM_PROTO_ClearQueue [21:06:58]wFMCommunicate request_size=4 [21:06:58]MH_SAM_APDU [21:06:58]CAPDU: 80 09 00 00 [21:06:58]Write to MH i2c: E2 08 00 60 13 80 09 00 00 00 00 00 00 E5 [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:58]Read from MH i2c: E2 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 03 00 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 03 00 60 13 00 90 00 E7 [21:06:58]RAPDU: 90 00 [21:06:58]wFMCommunicate OK [21:06:58]SAM_PROTO_ClearQueue done [21:06:58]KKMCreateOFDPacket [21:06:58]OFDProtocolAddRootSTLVToBuf [21:06:58]FM_MakeSignedData [21:06:58]FM_MakeSignedData [21:06:58]SAM_PROTO_SignData [21:06:58]wFMCommunicate request_size=4 [21:06:58]MH_SAM_APDU [21:06:58]CAPDU: 80 0D 01 02 [21:06:58]Write to MH i2c: E2 08 00 61 13 80 0D 01 02 00 00 00 00 ED [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:58]Read from MH i2c: E2 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 03 00 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 03 00 61 13 00 90 00 E8 [21:06:58]RAPDU: 90 00 [21:06:58]wFMCommunicate OK [21:06:58]wFMCommunicate request_size=255 [21:06:58]MH_SAM_APDU [21:06:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 35 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 E0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 72 75 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B9 13 00 00 35 04 06 00 7E [21:06:58]Write to MH i2c: E2 02 01 62 13 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 35 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 E0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 72 75 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B9 13 00 00 35 04 06 00 7E 00 00 10 [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:58]Read from MH i2c: E2 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 03 00 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 03 00 62 13 00 90 00 E9 [21:06:58]RAPDU: 90 00 [21:06:58]wFMCommunicate OK [21:06:58]wFMCommunicate request_size=10 [21:06:58]MH_SAM_APDU [21:06:58]CAPDU: 80 0D 02 02 05 F2 2D 8D FB 11 [21:06:58]Write to MH i2c: E2 0D 00 63 13 80 0D 02 02 05 00 F2 2D 8D FB 11 00 00 B2 [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:58]Read from MH i2c: E2 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 03 00 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 03 00 63 13 00 90 00 EA [21:06:58]RAPDU: 90 00 [21:06:58]wFMCommunicate OK [21:06:58]wFMCommunicate request_size=4 [21:06:58]MH_SAM_APDU [21:06:58]CAPDU: 80 0D 03 02 [21:06:58]Write to MH i2c: E2 08 00 64 13 80 0D 03 02 00 00 00 00 F2 [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:58]Read from MH i2c: E2 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 0B 00 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 0B 00 64 13 00 8B 36 2C C1 9B F3 B0 0B 90 00 EA [21:06:58]RAPDU: 8B 36 2C C1 9B F3 B0 0B 90 00 [21:06:58]wFMCommunicate OK [21:06:58]SAM_PROTO_SignData done [21:06:58]FM_MakeSignedData done [21:06:58]CreateOFDProtocolMessage [21:06:58]wFMCommunicate request_size=4 [21:06:58]MH_SAM_APDU [21:06:58]CAPDU: 80 11 00 00 [21:06:58]Write to MH i2c: E2 08 00 65 13 80 11 00 00 00 00 00 00 F2 [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:58]Read from MH i2c: E2 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 17 00 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: E2 17 00 65 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 47 [21:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:06:58]wFMCommunicate OK [21:06:58]CreateOFDProtocolMessage done [21:06:58]OFDSenderStorePacket 5049 [21:06:58]StoreOFDPacket docnum=5049 [21:06:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 F0 A7 07 01 1C 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 35 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 E0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 72 75 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B9 13 00 00 35 04 06 00 7E F2 2D 8D FB 11 8B 36 2C C1 9B F3 B0 0B [21:06:58]CheckFolder [21:06:58]dirname=/storage/ofd_packets [21:06:58]CheckFolder done [21:06:58]ProducePacketName [21:06:58]name=ofd_packets/00005049 [21:06:58]NVStorageSaveData ofd_packets/00005049 [21:06:58]File name is /storage/ofd_packets/00005049 [21:06:58]Write 301 bytes [21:06:58]NVStorageSaveData done [21:06:58]OFDSenderStorePacket done [21:06:58]KKMCreateOFDPacket done [21:06:58]NVStorageSaveData kkm_last_timestamp [21:06:58]File name is /storage/kkm_last_timestamp [21:06:58]Write 4 bytes [21:06:58]NVStorageSaveData done [21:06:58]ExternCall_PrintAddStr [21:06:58]wPrintStart [21:06:58]Write to MH i2c: 01 00 00 66 13 79 [21:06:58]Write i2c OK [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: 01 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: 01 07 00 [21:06:58]MH_I2C_Read... [21:06:58]Read from MH i2c: 01 07 00 66 13 00 00 00 00 00 FF 0F 8E [21:06:58]RasterBufferAndPrint [21:06:58]line Счет N : (1)1993190 [21:06:58]line ИНН: 02508201610067 [21:06:58]line Контрольно-Кассовый Чек [21:06:58]line ПРОДАЖА [21:06:58]line ТРК (МРК, ГНК) : 42 [21:06:58]line Товар: 2710124500 [21:06:58]line Аи-95-К-5 [21:06:58]line 13.670 * 73.20 [21:06:58]line = 1000.64 [21:06:58]line НДС 12% НСП 1% [21:06:58]line > о реализуемом товаре [21:06:58]line ИТОГО: 1000.64 [21:06:58]line НСП 1% : 8.85 [21:06:58]line НДС 12% : 106.26 [21:06:58]line Наличными: 0.00 [21:06:58]line Безнал.: 1000.64 [21:06:58]line Место: АЗС № 135 "Партнер Нефть" [21:06:58]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [21:06:58]line СНО: Общий режим [21:06:58]line Чек 109 16.05.2024 21:06 [21:06:58]line Смена: 44 ФФД: 1.0 [21:06:58]line ЗНМ: 0300000237 [21:06:58]line РНМ: 0000000000154221 [21:06:58]line Версия ККМ: v1.0 [21:06:58]line Платежная система: O! деньги [21:06:58]line ФМ: 0000000000963259 [21:06:58]line ФД: 5049 [21:06:58]line ФПД: 139578611464977 [21:06:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T210658&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5049&fm=139578611464977&tin=02508201610067®Number=0000000000154221&sum=100064 [21:06:58]OFD Sender: Processing packet 5049 [packets to send 4, broken 3] [21:06:58]ProducePacketName [21:06:58]name=ofd_packets/00005049 [21:06:58]OFD Sender: To server: pG, [21:06:58]CommunicateWithHost lk.salyk.kg:30040 [21:06:58]ConnectInit lk.salyk.kg [21:06:58]written 0, free lines is 4095 [21:06:58]Connected sock=10 [21:06:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 F0 A7 07 01 1C 26 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 66 35 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 E0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 72 75 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B9 13 00 00 35 04 06 00 7E F2 2D 8D FB 11 8B 36 2C C1 9B F3 B0 0B [21:06:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 46 3A 47 00 01 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 B9 13 00 00 F4 03 04 00 35 21 46 66 B6 04 01 00 00 8A C4 5F 3D 53 5A F2 70 [21:06:59]CommunicateWithHost err = 0 [21:06:59]CheckOFDResponse [21:06:59]1017 (14) - 77093643461234 [21:06:59]1041 (16) - 0000000000963259 [21:06:59]1040 (4) - 5049 [21:06:59]1012 (4) - 16.05.2024 15:07 [21:06:59]1206 (1) - 0 [21:06:59]OFD Sender: Remove packet 5049 [21:06:59]ProducePacketName [21:06:59]name=ofd_packets/00005049 [21:06:59]NVStorageDeleteData [21:06:59]Write to MH i2c: 01 00 00 90 13 A3 [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: 01 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: 01 07 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: 01 07 00 90 13 00 00 00 00 00 7D 0C 33 [21:06:59]RasterBufferAndPrint [21:06:59]line [21:06:59]line [21:06:59]line [21:06:59]line [21:06:59]line [21:06:59]written 0, free lines is 3202 [21:06:59]MH_Cut [21:06:59]Write to MH i2c: D1 01 00 97 13 01 7C [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: D1 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: D1 01 00 [21:06:59]MH_I2C_Read... [21:06:59]Read from MH i2c: D1 01 00 97 13 00 7B [21:06:59]Write to MH i2c: 01 00 00 98 13 AB [21:06:59]Write i2c OK [21:06:59]MH_I2C_Read... [21:06:59]OFD Sender: No OFD packet to send [21:07:00]*** Cut start [21:07:00]*** Partial cut [21:07:00]*** CUTSNS_PIN = 1 [21:07:00]*** CUTSNS_PIN = 0 [21:07:00]*** Brake cut motor [21:07:01]Read from MH i2c: 01 [21:07:01]MH_I2C_Read... [21:07:01]*** Stop cut motor [21:07:01]*** Cut end [21:07:01]Read from MH i2c: 01 07 00 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: 01 07 00 98 13 00 00 00 00 00 FF 0F C0 [21:07:01]process_action close_receipt done [21:07:01]requested_data is exist [21:07:01]produce_requested_data [21:07:01]requested_item fm.sn is exist - process it [21:07:01]wFMCommunicate request_size=4 [21:07:01]MH_SAM_APDU [21:07:01]CAPDU: 80 11 00 00 [21:07:01]Write to MH i2c: E2 08 00 99 13 80 11 00 00 00 00 00 00 26 [21:07:01]Write i2c OK [21:07:01]MH_I2C_Read... [21:07:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:07:01]Read from MH i2c: E2 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: E2 17 00 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: E2 17 00 99 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 7B [21:07:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:07:01]wFMCommunicate OK [21:07:01]requested_item fd.num is exist - process it [21:07:01]SAM_PROTO_GetFieldsCounters [21:07:01]wFMCommunicate request_size=4 [21:07:01]MH_SAM_APDU [21:07:01]CAPDU: 80 13 00 00 [21:07:01]Write to MH i2c: E2 08 00 9A 13 80 13 00 00 00 00 00 00 29 [21:07:01]Write i2c OK [21:07:01]MH_I2C_Read... [21:07:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:07:01]Read from MH i2c: E2 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: E2 62 00 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: E2 62 00 9A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B9 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [21:07:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 B9 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:07:01]wFMCommunicate OK [21:07:01]SAM_PROTO_GetFieldsCounters done [21:07:01]requested_item shift.num is exist - process it [21:07:01]requested_item shift.opened is exist - process it [21:07:01]req_shift_opened [21:07:01]FM_GetShiftState [21:07:01]SAM_PROTO_GetShiftState [21:07:01]wFMCommunicate request_size=4 [21:07:01]MH_SAM_APDU [21:07:01]CAPDU: 80 13 01 00 [21:07:01]Write to MH i2c: E2 08 00 9B 13 80 13 01 00 00 00 00 00 2B [21:07:01]Write i2c OK [21:07:01]MH_I2C_Read... [21:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:07:01]Read from MH i2c: E2 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: E2 0E 00 [21:07:01]MH_I2C_Read... [21:07:01]Read from MH i2c: E2 0E 00 9B 13 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 37 [21:07:01]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:07:01]wFMCommunicate OK [21:07:01]SAM_PROTO_GetShiftState done [21:07:01]FM_GetShiftState done [21:07:01]req_shift_opened done [21:07:01]requested_item shift.open_date is exist - process it [21:07:01]req_shift_open_date [21:07:01]req_shift_open_date done [21:07:01]produce_requested_data done [21:07:01]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5049,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [21:07:01]process_action_free close_receipt [21:07:01]json_value_free [21:07:01]json_value_free done [21:07:01]process_json_proto returns [21:07:01]Send response to host [21:07:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5049,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [21:07:01]free response buf [21:07:01]execute_script done [21:07:01]execute_script returns [21:07:01]free content buf [21:07:01]Sock 7.Close socket [21:07:01]Sock 7.Thread stoped [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:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:15]OFD Sender: No OFD packet to send [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35: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:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]accept exits with 9 [21:44:16]New connection [21:44:16]New thread 3067252068 created [21:44:16]Thread 3067108708 joined [21:44:16]Waiting for new connection... [21:44:16] Sock 9.Parse request [21:44:16]Sock 9.Check first char [21:44:16]Sock 9.First char is OK [21:44:16]request: POST /json_proto HTTP/1.0 [21:44:16]Method: POST [21:44:16]URL: /json_proto [21:44:16]Method is POST - this is cgi request [21:44:16]url: /json_proto [21:44:16]query_string will be loaded in cgi processing [21:44:16]execute_cgi json_proto POST (null) [21:44:16]execute_cgi path=json_proto method=POST [21:44:16]POST find Content-Length [21:44:16]Host: 172.17.44.4:8080 [21:44:16]Content-Length: 1368 [21:44:16]Content-Type: application/json [21:44:16] [21:44:16]POST finish read [21:44:16]Found Content-Length = 1368 [21:44:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141036", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "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 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 456.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:16]execute_script... [21:44: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)141036", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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 }]} ,{ "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 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 456.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:44:16]POST & json_proto [21:44:16]process_json_proto [21:44:16]json parsed OK: [21:44:16]protocol is kg_v1.0 [21:44:16]action value=close_receipt [21:44:16]process_action close_receipt [21:44:16]cmd_close_receipt [21:44:16]MH_GetDate [21:44:16]Write to MH i2c: F0 00 00 9C 13 9E [21:44:16]Write i2c OK [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: F0 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: F0 09 00 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: F0 09 00 9C 13 00 32 7E 46 66 6C E9 28 66 E6 [21:44:16]GetLastDocTimeStamp 1715893618 [21:44:16]current date 1715895858 [21:44:16]FM_GetShiftState [21:44:16]SAM_PROTO_GetShiftState [21:44:16]wFMCommunicate request_size=4 [21:44:16]MH_SAM_APDU [21:44:16]CAPDU: 80 13 01 00 [21:44:16]Write to MH i2c: E2 08 00 9D 13 80 13 01 00 00 00 00 00 2D [21:44:16]Write i2c OK [21:44:16]MH_I2C_Read... [21:44:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:16]Read from MH i2c: E2 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 0E 00 [21:44:16]MH_I2C_Read... [21:44:16]Read from MH i2c: E2 0E 00 9D 13 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 39 [21:44:16]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:44:16]wFMCommunicate OK [21:44:16]SAM_PROTO_GetShiftState done [21:44:16]FM_GetShiftState done [21:44:16]opened in 1715818246 [21:44:16]opened+sec_in_day 1715904646 [21:44:16]quantity*price = 13500 [21:44:16]sum+1 = 13501 [21:44:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 456.00 НСП 1% : 4.03 НДС 12% : 48.42 Наличными: 456.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 110 16.05.2024 21:44 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5050 ФПД: 217791227904058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T214418&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5050&fm=217791227904058&tin=02508201610067®Number=0000000000154221&sum=45600 0 [21:44:17]StoreToDocumentArchive [21:44:17]shift 44 fd 5050 [21:44:17]save to /storage/0044/doc_00005050 [21:44:17]save last doc name /storage/0044/doc_00005050 to /storage/kkm_last_doc_name [21:44:17]save OK [21:44:17]Clear old archive folders... [21:44:17]ProcessDocumentItem done err = 0, tmpTLVsize=588 [21:44:17]tlvbuf is 011F8650 [21:44:17]SAM_PROTO_ClearQueue [21:44:17]wFMCommunicate request_size=4 [21:44:17]MH_SAM_APDU [21:44:17]CAPDU: 80 09 00 00 [21:44:17]Write to MH i2c: E2 08 00 AA 13 80 09 00 00 00 00 00 00 2F [21:44:17]Write i2c OK [21:44:17]MH_I2C_Read... [21:44:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:44:17]Read from MH i2c: E2 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 03 00 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 03 00 AA 13 00 90 00 31 [21:44:17]RAPDU: 90 00 [21:44:17]wFMCommunicate OK [21:44:17]SAM_PROTO_ClearQueue done [21:44:17]KKMCreateOFDPacket [21:44:17]OFDProtocolAddRootSTLVToBuf [21:44:17]FM_MakeSignedData [21:44:17]FM_MakeSignedData [21:44:17]SAM_PROTO_SignData [21:44:17]wFMCommunicate request_size=4 [21:44:17]MH_SAM_APDU [21:44:17]CAPDU: 80 0D 01 02 [21:44:17]Write to MH i2c: E2 08 00 AB 13 80 0D 01 02 00 00 00 00 37 [21:44:17]Write i2c OK [21:44:17]MH_I2C_Read... [21:44:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:44:17]Read from MH i2c: E2 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 03 00 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 03 00 AB 13 00 90 00 32 [21:44:17]RAPDU: 90 00 [21:44:17]wFMCommunicate OK [21:44:17]wFMCommunicate request_size=255 [21:44:17]MH_SAM_APDU [21:44:17]CAPDU: 80 0D 02 02 FA 03 00 4C 02 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 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 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 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 [21:44:17]Write to MH i2c: E2 02 01 AC 13 80 0D 02 02 FA 00 03 00 4C 02 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 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 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 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 00 00 0E [21:44:17]Write i2c OK [21:44:17]MH_I2C_Read... [21:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:17]Read from MH i2c: E2 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 03 00 [21:44:17]MH_I2C_Read... [21:44:17]Read from MH i2c: E2 03 00 AC 13 00 90 00 33 [21:44:17]RAPDU: 90 00 [21:44:17]wFMCommunicate OK [21:44:17]wFMCommunicate request_size=255 [21:44:17]MH_SAM_APDU [21:44:17]CAPDU: 80 0D 02 02 FA 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 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 12 00 00 00 00 07 04 06 00 20 B2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F [21:44:17]Write to MH i2c: E2 02 01 AD 13 80 0D 02 02 FA 00 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 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 12 00 00 00 00 07 04 06 00 20 B2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 00 00 FC [21:44:17]Write i2c OK [21:44:17]MH_I2C_Read... [21:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:18]Read from MH i2c: E2 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: E2 03 00 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: E2 03 00 AD 13 00 90 00 34 [21:44:18]RAPDU: 90 00 [21:44:18]wFMCommunicate OK [21:44:18]wFMCommunicate request_size=97 [21:44:18]MH_SAM_APDU [21:44:18]CAPDU: 80 0D 02 02 5C 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 32 7E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BA 13 00 00 35 04 06 00 C6 14 78 C6 40 3A [21:44:18]Write to MH i2c: E2 64 00 AE 13 80 0D 02 02 5C 00 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 32 7E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BA 13 00 00 35 04 06 00 C6 14 78 C6 40 3A 00 00 07 [21:44:18]Write i2c OK [21:44:18]MH_I2C_Read... [21:44:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:44:18]Read from MH i2c: E2 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: E2 03 00 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: E2 03 00 AE 13 00 90 00 35 [21:44:18]RAPDU: 90 00 [21:44:18]wFMCommunicate OK [21:44:18]wFMCommunicate request_size=4 [21:44:18]MH_SAM_APDU [21:44:18]CAPDU: 80 0D 03 02 [21:44:18]Write to MH i2c: E2 08 00 AF 13 80 0D 03 02 00 00 00 00 3D [21:44:18]Write i2c OK [21:44:18]MH_I2C_Read... [21:44:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:44:18]Read from MH i2c: E2 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: E2 0B 00 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: E2 0B 00 AF 13 00 0D E4 4D 49 34 48 3F 9A 90 00 1A [21:44:18]RAPDU: 0D E4 4D 49 34 48 3F 9A 90 00 [21:44:18]wFMCommunicate OK [21:44:18]SAM_PROTO_SignData done [21:44:18]FM_MakeSignedData done [21:44:18]CreateOFDProtocolMessage [21:44:18]wFMCommunicate request_size=4 [21:44:18]MH_SAM_APDU [21:44:18]CAPDU: 80 11 00 00 [21:44:18]Write to MH i2c: E2 08 00 B0 13 80 11 00 00 00 00 00 00 3D [21:44:18]Write i2c OK [21:44:18]MH_I2C_Read... [21:44:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:18]Read from MH i2c: E2 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: E2 17 00 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: E2 17 00 B0 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 92 [21:44:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:44:18]wFMCommunicate OK [21:44:18]CreateOFDProtocolMessage done [21:44:18]OFDSenderStorePacket 5050 [21:44:18]StoreOFDPacket docnum=5050 [21:44:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 60 02 00 00 FF 8A 58 02 D2 3E 5A 03 01 00 03 00 4C 02 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 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 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 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 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 12 00 00 00 00 07 04 06 00 20 B2 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 32 7E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BA 13 00 00 35 04 06 00 C6 14 78 C6 40 3A 0D E4 4D 49 34 48 3F 9A [21:44:18]CheckFolder [21:44:18]dirname=/storage/ofd_packets [21:44:18]CheckFolder done [21:44:18]ProducePacketName [21:44:18]name=ofd_packets/00005050 [21:44:18]NVStorageSaveData ofd_packets/00005050 [21:44:18]File name is /storage/ofd_packets/00005050 [21:44:18]Write 638 bytes [21:44:18]NVStorageSaveData done [21:44:18]OFDSenderStorePacket done [21:44:18]KKMCreateOFDPacket done [21:44:18]NVStorageSaveData kkm_last_timestamp [21:44:18]File name is /storage/kkm_last_timestamp [21:44:18]Write 4 bytes [21:44:18]NVStorageSaveData done [21:44:18]ExternCall_PrintAddStr [21:44:18]wPrintStart [21:44:18]Write to MH i2c: 01 00 00 B1 13 C4 [21:44:18]Write i2c OK [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: 01 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: 01 07 00 [21:44:18]MH_I2C_Read... [21:44:18]Read from MH i2c: 01 07 00 B1 13 00 00 00 00 00 FF 0F D9 [21:44:18]RasterBufferAndPrint [21:44:18]line Счет N : (3)141036 [21:44:18]line ИНН: 02508201610067 [21:44:18]line Контрольно-Кассовый Чек [21:44:18]line ПРОДАЖА [21:44:18]line Товар: 47803008 [21:44:18]line Сигареты Winston XS Blue [21:44:18]line 1.000 * 135.00 [21:44:18]line = 135.00 [21:44:18]line НДС 12% НСП 1% [21:44:18]line > о реализуемом товаре [21:44:18]line Товар: 48742245 [21:44:18]line Сигареты Parliament Silver Blue [21:44:18]line 1.000 * 151.00 [21:44:18]line = 151.00 [21:44:18]line НДС 12% НСП 1% [21:44:18]line > о реализуемом товаре [21:44:18]line Товар: 2000036220012 [21:44:18]line Кофе Капучино XL(GABB TRADE) [21:44:18]line 1.000 * 130.00 [21:44:18]line = 130.00 [21:44:18]line НДС 12% НСП 1% [21:44:18]line > о реализуемом товаре [21:44:18]line Товар: 4700000160211 [21:44:18]line Вода Легенда 0,5л [21:44:18]line 1.000 * 40.00 [21:44:18]line = 40.00 [21:44:18]line НДС 12% НСП 1% [21:44:18]line > о реализуемом товаре [21:44:18]line ИТОГО: 456.00 [21:44:18]line НСП 1% : 4.03 [21:44:18]line НДС 12% : 48.42 [21:44:18]line Наличными: 456.00 [21:44:18]line Безнал.: 0.00 [21:44:18]line Место: АЗС № 135 "Партнер Нефть" [21:44:18]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [21:44:18]line СНО: Общий режим [21:44:18]line Чек 110 16.05.2024 21:44 [21:44:18]line Смена: 44 ФФД: 1.0 [21:44:18]line ЗНМ: 0300000237 [21:44:18]line РНМ: 0000000000154221 [21:44:18]line Версия ККМ: v1.0 [21:44:18]line ФМ: 0000000000963259 [21:44:18]line ФД: 5050 [21:44:18]line ФПД: 217791227904058 [21:44:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T214418&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5050&fm=217791227904058&tin=02508201610067®Number=0000000000154221&sum=45600 [21:44:18]line 0 [21:44:18]OFD Sender: Processing packet 5050 [packets to send 4, broken 3] [21:44:18]ProducePacketName [21:44:18]name=ofd_packets/00005050 [21:44:18]OFD Sender: To server: pG, [21:44:18]CommunicateWithHost lk.salyk.kg:30040 [21:44:18]ConnectInit lk.salyk.kg [21:44:18]written 0, free lines is 4095 [21:44:18]Connected sock=10 [21:44:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 60 02 00 00 FF 8A 58 02 D2 3E 5A 03 01 00 03 00 4C 02 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 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 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 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 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 B2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 93 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 12 00 00 00 00 07 04 06 00 20 B2 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 32 7E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BA 13 00 00 35 04 06 00 C6 14 78 C6 40 3A 0D E4 4D 49 34 48 3F 9A [21:44:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 AD C5 47 00 5A 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BA 13 00 00 F4 03 04 00 F5 29 46 66 B6 04 01 00 00 D2 05 43 85 B6 C8 ED 1D [21:44:19]CommunicateWithHost err = 0 [21:44:19]CheckOFDResponse [21:44:19]1017 (14) - 77093643461234 [21:44:19]1041 (16) - 0000000000963259 [21:44:19]1040 (4) - 5050 [21:44:19]1012 (4) - 16.05.2024 15:44 [21:44:19]1206 (1) - 0 [21:44:19]OFD Sender: Remove packet 5050 [21:44:19]ProducePacketName [21:44:19]name=ofd_packets/00005050 [21:44:19]NVStorageDeleteData [21:44:19]Write to MH i2c: 01 00 00 ED 13 00 [21:44:19]Write i2c OK [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: 01 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: 01 07 00 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: 01 07 00 ED 13 00 00 00 00 00 EA 0A FB [21:44:19]RasterBufferAndPrint [21:44:19]line [21:44:19]line [21:44:19]line [21:44:19]line [21:44:19]line [21:44:19]written 0, free lines is 2802 [21:44:19]MH_Cut [21:44:19]Write to MH i2c: D1 01 00 F4 13 01 D9 [21:44:19]Write i2c OK [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: D1 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: D1 01 00 [21:44:19]MH_I2C_Read... [21:44:19]Read from MH i2c: D1 01 00 F4 13 00 D8 [21:44:19]Write to MH i2c: 01 00 00 F5 13 08 [21:44:19]Write i2c OK [21:44:19]MH_I2C_Read... [21:44:19]OFD Sender: No OFD packet to send [21:44:21]*** Cut start [21:44:21]*** Partial cut [21:44:21]*** CUTSNS_PIN = 1 [21:44:21]*** CUTSNS_PIN = 0 [21:44:21]*** Brake cut motor [21:44:21]Read from MH i2c: 01 [21:44:21]MH_I2C_Read... [21:44:21]*** Stop cut motor [21:44:21]*** Cut end [21:44:21]Read from MH i2c: 01 07 00 [21:44:21]MH_I2C_Read... [21:44:21]Read from MH i2c: 01 07 00 F5 13 00 00 00 00 00 FF 0F 1D [21:44:21]process_action close_receipt done [21:44:21]requested_data is exist [21:44:21]produce_requested_data [21:44:21]requested_item fm.sn is exist - process it [21:44:21]wFMCommunicate request_size=4 [21:44:21]MH_SAM_APDU [21:44:21]CAPDU: 80 11 00 00 [21:44:21]Write to MH i2c: E2 08 00 F6 13 80 11 00 00 00 00 00 00 83 [21:44:21]Write i2c OK [21:44:21]MH_I2C_Read... [21:44:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:44:21]Read from MH i2c: E2 [21:44:21]MH_I2C_Read... [21:44:21]Read from MH i2c: E2 17 00 [21:44:21]MH_I2C_Read... [21:44:21]Read from MH i2c: E2 17 00 F6 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D8 [21:44:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:44:21]wFMCommunicate OK [21:44:21]requested_item fd.num is exist - process it [21:44:21]SAM_PROTO_GetFieldsCounters [21:44:21]wFMCommunicate request_size=4 [21:44:21]MH_SAM_APDU [21:44:21]CAPDU: 80 13 00 00 [21:44:21]Write to MH i2c: E2 08 00 F7 13 80 13 00 00 00 00 00 00 86 [21:44:21]Write i2c OK [21:44:21]MH_I2C_Read... [21:44:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:44:21]Read from MH i2c: E2 [21:44:21]MH_I2C_Read... [21:44:21]Read from MH i2c: E2 62 00 [21:44:21]MH_I2C_Read... [21:44:21]Read from MH i2c: E2 62 00 F7 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BA 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 E2 [21:44:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BA 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:44:21]wFMCommunicate OK [21:44:21]SAM_PROTO_GetFieldsCounters done [21:44:21]requested_item shift.num is exist - process it [21:44:21]requested_item shift.opened is exist - process it [21:44:21]req_shift_opened [21:44:21]FM_GetShiftState [21:44:21]SAM_PROTO_GetShiftState [21:44:21]wFMCommunicate request_size=4 [21:44:21]MH_SAM_APDU [21:44:21]CAPDU: 80 13 01 00 [21:44:21]Write to MH i2c: E2 08 00 F8 13 80 13 01 00 00 00 00 00 88 [21:44:21]Write i2c OK [21:44:21]MH_I2C_Read... [21:44:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:44:21]Read from MH i2c: E2 [21:44:21]MH_I2C_Read... [21:44:21]Read from MH i2c: E2 0E 00 [21:44:21]MH_I2C_Read... [21:44:21]Read from MH i2c: E2 0E 00 F8 13 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 94 [21:44:21]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:44:21]wFMCommunicate OK [21:44:21]SAM_PROTO_GetShiftState done [21:44:21]FM_GetShiftState done [21:44:21]req_shift_opened done [21:44:21]requested_item shift.open_date is exist - process it [21:44:21]req_shift_open_date [21:44:21]req_shift_open_date done [21:44:21]produce_requested_data done [21:44:21]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5050,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [21:44:21]process_action_free close_receipt [21:44:21]json_value_free [21:44:21]json_value_free done [21:44:21]process_json_proto returns [21:44:21]Send response to host [21:44:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5050,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [21:44:21]free response buf [21:44:21]execute_script done [21:44:21]execute_script returns [21:44:21]free content buf [21:44:21]Sock 9.Close socket [21:44:21]Sock 9.Thread stoped [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:02]accept exits with 7 [21:47:02]New connection [21:47:02]New thread 3067108708 created [21:47:02]Thread 3067252068 joined [21:47:02]Waiting for new connection... [21:47:02] Sock 7.Parse request [21:47:02]Sock 7.Check first char [21:47:02]Sock 7.First char is OK [21:47:02]request: POST /json_proto HTTP/1.0 [21:47:02]Method: POST [21:47:02]URL: /json_proto [21:47:02]Method is POST - this is cgi request [21:47:02]url: /json_proto [21:47:02]query_string will be loaded in cgi processing [21:47:02]execute_cgi json_proto POST (null) [21:47:02]execute_cgi path=json_proto method=POST [21:47:02]POST find Content-Length [21:47:02]Host: 172.17.44.4:8080 [21:47:02]Content-Length: 678 [21:47:02]Content-Type: application/json [21:47:02] [21:47:02]POST finish read [21:47:02]Found Content-Length = 678 [21:47:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:02]execute_script... [21:47:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 4.500, "sum" : 300.60, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:47:02]POST & json_proto [21:47:02]process_json_proto [21:47:02]json parsed OK: [21:47:02]protocol is kg_v1.0 [21:47:02]action value=close_receipt [21:47:02]process_action close_receipt [21:47:02]cmd_close_receipt [21:47:02]MH_GetDate [21:47:02]Write to MH i2c: F0 00 00 F9 13 FB [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: F0 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: F0 09 00 [21:47:02]MH_I2C_Read... [21:47:02]Read from MH i2c: F0 09 00 F9 13 00 D9 7E 46 66 6C E9 28 66 EA [21:47:02]GetLastDocTimeStamp 1715895858 [21:47:02]current date 1715896025 [21:47:02]FM_GetShiftState [21:47:02]SAM_PROTO_GetShiftState [21:47:02]wFMCommunicate request_size=4 [21:47:02]MH_SAM_APDU [21:47:02]CAPDU: 80 13 01 00 [21:47:02]Write to MH i2c: E2 08 00 FA 13 80 13 01 00 00 00 00 00 8A [21:47:02]Write i2c OK [21:47:02]MH_I2C_Read... [21:47:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:03]Read from MH i2c: E2 [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: E2 0E 00 [21:47:03]MH_I2C_Read... [21:47:03]Read from MH i2c: E2 0E 00 FA 13 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 96 [21:47:03]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:47:03]wFMCommunicate OK [21:47:03]SAM_PROTO_GetShiftState done [21:47:03]FM_GetShiftState done [21:47:03]opened in 1715818246 [21:47:03]opened+sec_in_day 1715904646 [21:47:03]quantity*price = 30060 [21:47:03]sum+1 = 30061 [21:47:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.60 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.92 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 111 16.05.2024 21:47 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5051 ФПД: 60587119390870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T214705&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5051&fm=60587119390870&tin=02508201610067®Number=0000000000154221&sum=30000 [21:47:04]StoreToDocumentArchive [21:47:04]shift 44 fd 5051 [21:47:04]save to /storage/0044/doc_00005051 [21:47:04]save last doc name /storage/0044/doc_00005051 to /storage/kkm_last_doc_name [21:47:04]save OK [21:47:04]Clear old archive folders... [21:47:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:47:04]tlvbuf is 011FE760 [21:47:04]SAM_PROTO_ClearQueue [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 09 00 00 [21:47:04]Write to MH i2c: E2 08 00 07 14 80 09 00 00 00 00 00 00 8D [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 07 14 00 90 00 8F [21:47:04]RAPDU: 90 00 [21:47:04]wFMCommunicate OK [21:47:04]SAM_PROTO_ClearQueue done [21:47:04]KKMCreateOFDPacket [21:47:04]OFDProtocolAddRootSTLVToBuf [21:47:04]FM_MakeSignedData [21:47:04]FM_MakeSignedData [21:47:04]SAM_PROTO_SignData [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 0D 01 02 [21:47:04]Write to MH i2c: E2 08 00 08 14 80 0D 01 02 00 00 00 00 95 [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 08 14 00 90 00 90 [21:47:04]RAPDU: 90 00 [21:47:04]wFMCommunicate OK [21:47:04]wFMCommunicate request_size=255 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D9 7E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BB 13 00 00 35 04 06 00 37 [21:47:04]Write to MH i2c: E2 02 01 09 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D9 7E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BB 13 00 00 35 04 06 00 37 00 00 CA [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 09 14 00 90 00 91 [21:47:04]RAPDU: 90 00 [21:47:04]wFMCommunicate OK [21:47:04]wFMCommunicate request_size=10 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 0D 02 02 05 1A 89 BA B0 96 [21:47:04]Write to MH i2c: E2 0D 00 0A 14 80 0D 02 02 05 00 1A 89 BA B0 96 00 00 45 [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 03 00 0A 14 00 90 00 92 [21:47:04]RAPDU: 90 00 [21:47:04]wFMCommunicate OK [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 0D 03 02 [21:47:04]Write to MH i2c: E2 08 00 0B 14 80 0D 03 02 00 00 00 00 9A [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 0B 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 0B 00 0B 14 00 EE 0C F7 A2 38 03 0E 66 90 00 DD [21:47:04]RAPDU: EE 0C F7 A2 38 03 0E 66 90 00 [21:47:04]wFMCommunicate OK [21:47:04]SAM_PROTO_SignData done [21:47:04]FM_MakeSignedData done [21:47:04]CreateOFDProtocolMessage [21:47:04]wFMCommunicate request_size=4 [21:47:04]MH_SAM_APDU [21:47:04]CAPDU: 80 11 00 00 [21:47:04]Write to MH i2c: E2 08 00 0C 14 80 11 00 00 00 00 00 00 9A [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:04]Read from MH i2c: E2 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 17 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: E2 17 00 0C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 EF [21:47:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:47:04]wFMCommunicate OK [21:47:04]CreateOFDProtocolMessage done [21:47:04]OFDSenderStorePacket 5051 [21:47:04]StoreOFDPacket docnum=5051 [21:47:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 3B CA 07 01 EE B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D9 7E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BB 13 00 00 35 04 06 00 37 1A 89 BA B0 96 EE 0C F7 A2 38 03 0E 66 [21:47:04]CheckFolder [21:47:04]dirname=/storage/ofd_packets [21:47:04]CheckFolder done [21:47:04]ProducePacketName [21:47:04]name=ofd_packets/00005051 [21:47:04]NVStorageSaveData ofd_packets/00005051 [21:47:04]File name is /storage/ofd_packets/00005051 [21:47:04]Write 301 bytes [21:47:04]NVStorageSaveData done [21:47:04]OFDSenderStorePacket done [21:47:04]KKMCreateOFDPacket done [21:47:04]NVStorageSaveData kkm_last_timestamp [21:47:04]File name is /storage/kkm_last_timestamp [21:47:04]Write 4 bytes [21:47:04]NVStorageSaveData done [21:47:04]ExternCall_PrintAddStr [21:47:04]wPrintStart [21:47:04]Write to MH i2c: 01 00 00 0D 14 21 [21:47:04]Write i2c OK [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: 01 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: 01 07 00 [21:47:04]MH_I2C_Read... [21:47:04]Read from MH i2c: 01 07 00 0D 14 00 00 00 00 00 FF 0F 36 [21:47:04]RasterBufferAndPrint [21:47:04]line Счет N : (1)1993229 [21:47:04]line ИНН: 02508201610067 [21:47:04]line Контрольно-Кассовый Чек [21:47:04]line ПРОДАЖА [21:47:04]line ТРК (МРК, ГНК) : 53 [21:47:04]line Товар: 2710124130 [21:47:04]line Аи-92-К-4 [21:47:04]line 4.500 * 66.80 [21:47:04]line = 300.60 [21:47:04]line НДС 12% НСП 1% [21:47:04]line > о реализуемом товаре [21:47:04]line ОКРУГЛЕНИЕ: -0.60 [21:47:04]line ИТОГО: 300.00 [21:47:04]line Внесено: 300.00 [21:47:04]line СДАЧА: 0.00 [21:47:04]line НСП 1% : 2.66 [21:47:04]line НДС 12% : 31.92 [21:47:04]line Наличными: 300.00 [21:47:04]line Безнал.: 0.00 [21:47:04]line Место: АЗС № 135 "Партнер Нефть" [21:47:04]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [21:47:04]line СНО: Общий режим [21:47:04]line Чек 111 16.05.2024 21:47 [21:47:04]line Смена: 44 ФФД: 1.0 [21:47:04]line ЗНМ: 0300000237 [21:47:04]line РНМ: 0000000000154221 [21:47:04]line Версия ККМ: v1.0 [21:47:04]line ФМ: 0000000000963259 [21:47:04]line ФД: 5051 [21:47:04]line ФПД: 60587119390870 [21:47:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T214705&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5051&fm=60587119390870&tin=02508201610067®Number=0000000000154221&sum=30000 [21:47:05]OFD Sender: Processing packet 5051 [packets to send 4, broken 3] [21:47:05]ProducePacketName [21:47:05]name=ofd_packets/00005051 [21:47:05]OFD Sender: To server: pG, [21:47:05]CommunicateWithHost lk.salyk.kg:30040 [21:47:05]ConnectInit lk.salyk.kg [21:47:05]written 0, free lines is 4095 [21:47:05]Connected sock=10 [21:47:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 3B CA 07 01 EE B2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 94 11 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 6C 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 78 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 D9 7E 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BB 13 00 00 35 04 06 00 37 1A 89 BA B0 96 EE 0C F7 A2 38 03 0E 66 [21:47:05]Write to MH i2c: 01 00 00 38 14 4C [21:47:05]Write i2c OK [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: 01 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: 01 07 00 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: 01 07 00 38 14 00 00 00 00 00 6C 0C CB [21:47:05]RasterBufferAndPrint [21:47:05]line [21:47:05]line [21:47:05]line [21:47:05]line [21:47:05]line [21:47:05]written 0, free lines is 3184 [21:47:05]MH_Cut [21:47:05]Write to MH i2c: D1 01 00 3F 14 01 25 [21:47:05]Write i2c OK [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: D1 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: D1 01 00 [21:47:05]MH_I2C_Read... [21:47:05]Read from MH i2c: D1 01 00 3F 14 00 24 [21:47:05]Write to MH i2c: 01 00 00 40 14 54 [21:47:05]Write i2c OK [21:47:05]MH_I2C_Read... [21:47:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 2A 36 47 00 36 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BB 13 00 00 F4 03 04 00 9B 2A 46 66 B6 04 01 00 00 80 1A 8E 22 FC 40 7F 27 [21:47:05]CommunicateWithHost err = 0 [21:47:05]CheckOFDResponse [21:47:05]1017 (14) - 77093643461234 [21:47:05]1041 (16) - 0000000000963259 [21:47:05]1040 (4) - 5051 [21:47:05]1012 (4) - 16.05.2024 15:47 [21:47:05]1206 (1) - 0 [21:47:05]OFD Sender: Remove packet 5051 [21:47:05]ProducePacketName [21:47:05]name=ofd_packets/00005051 [21:47:05]NVStorageDeleteData [21:47:06]OFD Sender: No OFD packet to send [21:47:06]*** Cut start [21:47:06]*** Partial cut [21:47:06]*** CUTSNS_PIN = 1 [21:47:06]*** CUTSNS_PIN = 0 [21:47:06]*** Brake cut motor [21:47:07]Read from MH i2c: 01 [21:47:07]MH_I2C_Read... [21:47:07]*** Stop cut motor [21:47:07]*** Cut end [21:47:07]Read from MH i2c: 01 07 00 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: 01 07 00 40 14 00 00 00 00 00 FF 0F 69 [21:47:07]process_action close_receipt done [21:47:07]requested_data is exist [21:47:07]produce_requested_data [21:47:07]requested_item fm.sn is exist - process it [21:47:07]wFMCommunicate request_size=4 [21:47:07]MH_SAM_APDU [21:47:07]CAPDU: 80 11 00 00 [21:47:07]Write to MH i2c: E2 08 00 41 14 80 11 00 00 00 00 00 00 CF [21:47:07]Write i2c OK [21:47:07]MH_I2C_Read... [21:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:47:07]Read from MH i2c: E2 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 17 00 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 17 00 41 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 24 [21:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:47:07]wFMCommunicate OK [21:47:07]requested_item fd.num is exist - process it [21:47:07]SAM_PROTO_GetFieldsCounters [21:47:07]wFMCommunicate request_size=4 [21:47:07]MH_SAM_APDU [21:47:07]CAPDU: 80 13 00 00 [21:47:07]Write to MH i2c: E2 08 00 42 14 80 13 00 00 00 00 00 00 D2 [21:47:07]Write i2c OK [21:47:07]MH_I2C_Read... [21:47:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:47:07]Read from MH i2c: E2 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 62 00 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 62 00 42 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BB 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [21:47:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BB 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:47:07]wFMCommunicate OK [21:47:07]SAM_PROTO_GetFieldsCounters done [21:47:07]requested_item shift.num is exist - process it [21:47:07]requested_item shift.opened is exist - process it [21:47:07]req_shift_opened [21:47:07]FM_GetShiftState [21:47:07]SAM_PROTO_GetShiftState [21:47:07]wFMCommunicate request_size=4 [21:47:07]MH_SAM_APDU [21:47:07]CAPDU: 80 13 01 00 [21:47:07]Write to MH i2c: E2 08 00 43 14 80 13 01 00 00 00 00 00 D4 [21:47:07]Write i2c OK [21:47:07]MH_I2C_Read... [21:47:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:47:07]Read from MH i2c: E2 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 0E 00 [21:47:07]MH_I2C_Read... [21:47:07]Read from MH i2c: E2 0E 00 43 14 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E0 [21:47:07]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:47:07]wFMCommunicate OK [21:47:07]SAM_PROTO_GetShiftState done [21:47:07]FM_GetShiftState done [21:47:07]req_shift_opened done [21:47:07]requested_item shift.open_date is exist - process it [21:47:07]req_shift_open_date [21:47:07]req_shift_open_date done [21:47:07]produce_requested_data done [21:47:07]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5051,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [21:47:07]process_action_free close_receipt [21:47:07]json_value_free [21:47:07]json_value_free done [21:47:07]process_json_proto returns [21:47:07]Send response to host [21:47:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5051,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [21:47:07]free response buf [21:47:07]execute_script done [21:47:07]execute_script returns [21:47:07]free content buf [21:47:07]Sock 7.Close socket [21:47:07]Sock 7.Thread stoped [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:39]accept exits with 9 [21:52:39]New connection [21:52:39]New thread 3067252068 created [21:52:39]Thread 3067108708 joined [21:52:39]Waiting for new connection... [21:52:39] Sock 9.Parse request [21:52:39]Sock 9.Check first char [21:52:39]Sock 9.First char is OK [21:52:39]request: POST /json_proto HTTP/1.0 [21:52:39]Method: POST [21:52:39]URL: /json_proto [21:52:39]Method is POST - this is cgi request [21:52:39]url: /json_proto [21:52:39]query_string will be loaded in cgi processing [21:52:39]execute_cgi json_proto POST (null) [21:52:39]execute_cgi path=json_proto method=POST [21:52:39]POST find Content-Length [21:52:39]Host: 172.17.44.4:8080 [21:52:39]Content-Length: 812 [21:52:39]Content-Type: application/json [21:52:39] [21:52:39]POST finish read [21:52:39]Found Content-Length = 812 [21:52:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:39]execute_script... [21:52:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124130", "name": "SU-92", "price" : 67.80, "quantity" : 10.330, "sum" : 700.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 700.37 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:52:39]POST & json_proto [21:52:39]process_json_proto [21:52:39]json parsed OK: [21:52:39]protocol is kg_v1.0 [21:52:39]action value=close_receipt [21:52:39]process_action close_receipt [21:52:39]cmd_close_receipt [21:52:39]MH_GetDate [21:52:39]Write to MH i2c: F0 00 00 44 14 47 [21:52:39]Write i2c OK [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: F0 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: F0 09 00 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: F0 09 00 44 14 00 29 80 46 66 6C E9 28 66 88 [21:52:39]GetLastDocTimeStamp 1715896025 [21:52:39]current date 1715896361 [21:52:39]FM_GetShiftState [21:52:39]SAM_PROTO_GetShiftState [21:52:39]wFMCommunicate request_size=4 [21:52:39]MH_SAM_APDU [21:52:39]CAPDU: 80 13 01 00 [21:52:39]Write to MH i2c: E2 08 00 45 14 80 13 01 00 00 00 00 00 D6 [21:52:39]Write i2c OK [21:52:39]MH_I2C_Read... [21:52:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:39]Read from MH i2c: E2 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 0E 00 [21:52:39]MH_I2C_Read... [21:52:39]Read from MH i2c: E2 0E 00 45 14 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E2 [21:52:39]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:52:39]wFMCommunicate OK [21:52:39]SAM_PROTO_GetShiftState done [21:52:39]FM_GetShiftState done [21:52:39]opened in 1715818246 [21:52:39]opened+sec_in_day 1715904646 [21:52:39]quantity*price = 70037 [21:52:39]sum+1 = 70038 [21:52:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.37 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.37 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 112 16.05.2024 21:52 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: Демир КИ Банк ФМ: 0000000000963259 ФД: 5052 ФПД: 197162382212560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T215241&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5052&fm=197162382212560&tin=02508201610067®Number=0000000000154221&sum=70037 [21:52:40]StoreToDocumentArchive [21:52:40]shift 44 fd 5052 [21:52:40]save to /storage/0044/doc_00005052 [21:52:40]save last doc name /storage/0044/doc_00005052 to /storage/kkm_last_doc_name [21:52:40]save OK [21:52:40]Clear old archive folders... [21:52:40]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:52:40]tlvbuf is 011AB320 [21:52:40]SAM_PROTO_ClearQueue [21:52:40]wFMCommunicate request_size=4 [21:52:40]MH_SAM_APDU [21:52:40]CAPDU: 80 09 00 00 [21:52:40]Write to MH i2c: E2 08 00 52 14 80 09 00 00 00 00 00 00 D8 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:52:40]Read from MH i2c: E2 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 52 14 00 90 00 DA [21:52:40]RAPDU: 90 00 [21:52:40]wFMCommunicate OK [21:52:40]SAM_PROTO_ClearQueue done [21:52:40]KKMCreateOFDPacket [21:52:40]OFDProtocolAddRootSTLVToBuf [21:52:40]FM_MakeSignedData [21:52:40]FM_MakeSignedData [21:52:40]SAM_PROTO_SignData [21:52:40]wFMCommunicate request_size=4 [21:52:40]MH_SAM_APDU [21:52:40]CAPDU: 80 0D 01 02 [21:52:40]Write to MH i2c: E2 08 00 53 14 80 0D 01 02 00 00 00 00 E0 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:52:40]Read from MH i2c: E2 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 53 14 00 90 00 DB [21:52:40]RAPDU: 90 00 [21:52:40]wFMCommunicate OK [21:52:40]wFMCommunicate request_size=253 [21:52:40]MH_SAM_APDU [21:52:40]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 29 80 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BC 13 00 00 35 04 06 00 B3 51 71 C1 3D D0 [21:52:40]Write to MH i2c: E2 00 01 54 14 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 29 80 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BC 13 00 00 35 04 06 00 B3 51 71 C1 3D D0 00 00 39 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:52:40]Read from MH i2c: E2 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 03 00 54 14 00 90 00 DC [21:52:40]RAPDU: 90 00 [21:52:40]wFMCommunicate OK [21:52:40]wFMCommunicate request_size=4 [21:52:40]MH_SAM_APDU [21:52:40]CAPDU: 80 0D 03 02 [21:52:40]Write to MH i2c: E2 08 00 55 14 80 0D 03 02 00 00 00 00 E4 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:52:40]Read from MH i2c: E2 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 0B 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 0B 00 55 14 00 A3 02 FF 23 6A 98 DE F2 90 00 7E [21:52:40]RAPDU: A3 02 FF 23 6A 98 DE F2 90 00 [21:52:40]wFMCommunicate OK [21:52:40]SAM_PROTO_SignData done [21:52:40]FM_MakeSignedData done [21:52:40]CreateOFDProtocolMessage [21:52:40]wFMCommunicate request_size=4 [21:52:40]MH_SAM_APDU [21:52:40]CAPDU: 80 11 00 00 [21:52:40]Write to MH i2c: E2 08 00 56 14 80 11 00 00 00 00 00 00 E4 [21:52:40]Write i2c OK [21:52:40]MH_I2C_Read... [21:52:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:40]Read from MH i2c: E2 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 17 00 [21:52:40]MH_I2C_Read... [21:52:40]Read from MH i2c: E2 17 00 56 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 39 [21:52:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:52:40]wFMCommunicate OK [21:52:40]CreateOFDProtocolMessage done [21:52:40]OFDSenderStorePacket 5052 [21:52:40]StoreOFDPacket docnum=5052 [21:52:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 08 01 00 00 86 64 00 01 E3 46 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 29 80 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BC 13 00 00 35 04 06 00 B3 51 71 C1 3D D0 A3 02 FF 23 6A 98 DE F2 [21:52:40]CheckFolder [21:52:40]dirname=/storage/ofd_packets [21:52:40]CheckFolder done [21:52:40]ProducePacketName [21:52:40]name=ofd_packets/00005052 [21:52:40]NVStorageSaveData ofd_packets/00005052 [21:52:40]File name is /storage/ofd_packets/00005052 [21:52:40]Write 294 bytes [21:52:40]NVStorageSaveData done [21:52:40]OFDSenderStorePacket done [21:52:40]KKMCreateOFDPacket done [21:52:40]NVStorageSaveData kkm_last_timestamp [21:52:40]File name is /storage/kkm_last_timestamp [21:52:40]Write 4 bytes [21:52:40]NVStorageSaveData done [21:52:40]ExternCall_PrintAddStr [21:52:40]wPrintStart [21:52:40]Write to MH i2c: 01 00 00 57 14 6B [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 57 14 00 00 00 00 00 FF 0F 80 [21:52:40]RasterBufferAndPrint [21:52:40]line Счет N : (1)1993235 [21:52:40]line ИНН: 02508201610067 [21:52:40]line Контрольно-Кассовый Чек [21:52:40]line ПРОДАЖА [21:52:40]line ТРК (МРК, ГНК) : 54 [21:52:40]line Товар: 2710124130 [21:52:40]line SU-92 [21:52:40]line 10.330 * 67.80 [21:52:40]line = 700.37 [21:52:40]line НДС 12% НСП 1% [21:52:40]line > о реализуемом товаре [21:52:40]line ИТОГО: 700.37 [21:52:40]line НСП 1% : 6.20 [21:52:40]line НДС 12% : 74.38 [21:52:40]line Наличными: 0.00 [21:52:40]line Безнал.: 700.37 [21:52:40]line Место: АЗС № 135 "Партнер Нефть" [21:52:40]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [21:52:40]line СНО: Общий режим [21:52:40]line Чек 112 16.05.2024 21:52 [21:52:40]line Смена: 44 ФФД: 1.0 [21:52:40]line ЗНМ: 0300000237 [21:52:40]line РНМ: 0000000000154221 [21:52:40]line Версия ККМ: v1.0 [21:52:40]line Платежная система: Демир КИ Банк [21:52:40]line ФМ: 0000000000963259 [21:52:40]line ФД: 5052 [21:52:40]line ФПД: 197162382212560 [21:52:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T215241&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5052&fm=197162382212560&tin=02508201610067®Number=0000000000154221&sum=70037 [21:52:41]OFD Sender: Processing packet 5052 [packets to send 4, broken 3] [21:52:41]ProducePacketName [21:52:41]name=ofd_packets/00005052 [21:52:41]OFD Sender: To server: pG, [21:52:41]CommunicateWithHost lk.salyk.kg:30040 [21:52:41]ConnectInit lk.salyk.kg [21:52:41]written 0, free lines is 4095 [21:52:41]Connected sock=10 [21:52:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 08 01 00 00 86 64 00 01 E3 46 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 5A 28 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 95 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 95 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 95 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 29 80 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BC 13 00 00 35 04 06 00 B3 51 71 C1 3D D0 A3 02 FF 23 6A 98 DE F2 [21:52:41]Write to MH i2c: 01 00 00 81 14 95 [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: 01 [21:52:41]MH_I2C_Read... [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 81 14 00 00 00 00 00 7E 0C 26 [21:52:41]RasterBufferAndPrint [21:52:41]line [21:52:41]line [21:52:41]line [21:52:41]line [21:52:41]line [21:52:41]written 0, free lines is 3201 [21:52:41]MH_Cut [21:52:41]Write to MH i2c: D1 01 00 88 14 01 6E [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: D1 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: D1 01 00 [21:52:41]MH_I2C_Read... [21:52:41]Read from MH i2c: D1 01 00 88 14 00 6D [21:52:41]Write to MH i2c: 01 00 00 89 14 9D [21:52:41]Write i2c OK [21:52:41]MH_I2C_Read... [21:52:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 BA 6A 47 00 01 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BC 13 00 00 F4 03 04 00 EB 2B 46 66 B6 04 01 00 00 30 04 A0 1C 2B 7F 7D CB [21:52:41]CommunicateWithHost err = 0 [21:52:41]CheckOFDResponse [21:52:41]1017 (14) - 77093643461234 [21:52:41]1041 (16) - 0000000000963259 [21:52:41]1040 (4) - 5052 [21:52:41]1012 (4) - 16.05.2024 15:53 [21:52:41]1206 (1) - 0 [21:52:41]OFD Sender: Remove packet 5052 [21:52:41]ProducePacketName [21:52:41]name=ofd_packets/00005052 [21:52:41]NVStorageDeleteData [21:52:42]OFD Sender: No OFD packet to send [21:52:42]*** Cut start [21:52:42]*** Partial cut [21:52:42]*** CUTSNS_PIN = 1 [21:52:42]*** CUTSNS_PIN = 0 [21:52:43]*** Brake cut motor [21:52:43]Read from MH i2c: 01 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: 01 07 00 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: 01 07 00 89 14 00 00 00 00 00 FF 0F B2 [21:52:43]process_action close_receipt done [21:52:43]requested_data is exist [21:52:43]produce_requested_data [21:52:43]requested_item fm.sn is exist - process it [21:52:43]wFMCommunicate request_size=4 [21:52:43]MH_SAM_APDU [21:52:43]CAPDU: 80 11 00 00 [21:52:43]Write to MH i2c: E2 08 00 8A 14 80 11 00 00 00 00 00 00 18 [21:52:43]*** Stop cut motor [21:52:43]*** Cut end [21:52:43]Write i2c OK [21:52:43]MH_I2C_Read... [21:52:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:52:43]Read from MH i2c: E2 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 17 00 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 17 00 8A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 6D [21:52:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:52:43]wFMCommunicate OK [21:52:43]requested_item fd.num is exist - process it [21:52:43]SAM_PROTO_GetFieldsCounters [21:52:43]wFMCommunicate request_size=4 [21:52:43]MH_SAM_APDU [21:52:43]CAPDU: 80 13 00 00 [21:52:43]Write to MH i2c: E2 08 00 8B 14 80 13 00 00 00 00 00 00 1B [21:52:43]Write i2c OK [21:52:43]MH_I2C_Read... [21:52:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:52:43]Read from MH i2c: E2 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 62 00 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 62 00 8B 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BC 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [21:52:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BC 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:52:43]wFMCommunicate OK [21:52:43]SAM_PROTO_GetFieldsCounters done [21:52:43]requested_item shift.num is exist - process it [21:52:43]requested_item shift.opened is exist - process it [21:52:43]req_shift_opened [21:52:43]FM_GetShiftState [21:52:43]SAM_PROTO_GetShiftState [21:52:43]wFMCommunicate request_size=4 [21:52:43]MH_SAM_APDU [21:52:43]CAPDU: 80 13 01 00 [21:52:43]Write to MH i2c: E2 08 00 8C 14 80 13 01 00 00 00 00 00 1D [21:52:43]Write i2c OK [21:52:43]MH_I2C_Read... [21:52:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:52:43]Read from MH i2c: E2 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 0E 00 [21:52:43]MH_I2C_Read... [21:52:43]Read from MH i2c: E2 0E 00 8C 14 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 29 [21:52:43]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:52:43]wFMCommunicate OK [21:52:43]SAM_PROTO_GetShiftState done [21:52:43]FM_GetShiftState done [21:52:43]req_shift_opened done [21:52:43]requested_item shift.open_date is exist - process it [21:52:43]req_shift_open_date [21:52:43]req_shift_open_date done [21:52:43]produce_requested_data done [21:52:43]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5052,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [21:52:43]process_action_free close_receipt [21:52:43]json_value_free [21:52:43]json_value_free done [21:52:43]process_json_proto returns [21:52:43]Send response to host [21:52:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5052,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [21:52:43]free response buf [21:52:43]execute_script done [21:52:43]execute_script returns [21:52:43]free content buf [21:52:43]Sock 9.Close socket [21:52:43]Sock 9.Thread stoped [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:17]OFD Sender: No OFD packet to send [21:54:22]OFD Sender: No OFD packet to send [21:54:27]OFD Sender: No OFD packet to send [21:54:32]OFD Sender: No OFD packet to send [21:54:37]OFD Sender: No OFD packet to send [21:54:42]OFD Sender: No OFD packet to send [21:54:47]OFD Sender: No OFD packet to send [21:54:52]OFD Sender: No OFD packet to send [21:54:57]OFD Sender: No OFD packet to send [21:55:02]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:19]accept exits with 7 [21:57:19]New connection [21:57:19]New thread 3067108708 created [21:57:19]Thread 3067252068 joined [21:57:19]Waiting for new connection... [21:57:19] Sock 7.Parse request [21:57:19]Sock 7.Check first char [21:57:19]Sock 7.First char is OK [21:57:19]request: POST /json_proto HTTP/1.0 [21:57:19]Method: POST [21:57:19]URL: /json_proto [21:57:19]Method is POST - this is cgi request [21:57:19]url: /json_proto [21:57:19]query_string will be loaded in cgi processing [21:57:19]execute_cgi json_proto POST (null) [21:57:19]execute_cgi path=json_proto method=POST [21:57:19]POST find Content-Length [21:57:19]Host: 172.17.44.4:8080 [21:57:19]Content-Length: 659 [21:57:19]Content-Type: application/json [21:57:19] [21:57:19]POST finish read [21:57:19]Found Content-Length = 659 [21:57:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:19]execute_script... [21:57:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 67.80, "quantity" : 7.380, "sum" : 500.36, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:19]POST & json_proto [21:57:19]process_json_proto [21:57:19]json parsed OK: [21:57:19]protocol is kg_v1.0 [21:57:19]action value=close_receipt [21:57:19]process_action close_receipt [21:57:19]cmd_close_receipt [21:57:19]MH_GetDate [21:57:19]Write to MH i2c: F0 00 00 8D 14 90 [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: F0 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: F0 09 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: F0 09 00 8D 14 00 41 81 46 66 6C E9 28 66 EA [21:57:19]GetLastDocTimeStamp 1715896361 [21:57:19]current date 1715896641 [21:57:19]FM_GetShiftState [21:57:19]SAM_PROTO_GetShiftState [21:57:19]wFMCommunicate request_size=4 [21:57:19]MH_SAM_APDU [21:57:19]CAPDU: 80 13 01 00 [21:57:19]Write to MH i2c: E2 08 00 8E 14 80 13 01 00 00 00 00 00 1F [21:57:19]Write i2c OK [21:57:19]MH_I2C_Read... [21:57:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:19]Read from MH i2c: E2 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 0E 00 [21:57:19]MH_I2C_Read... [21:57:19]Read from MH i2c: E2 0E 00 8E 14 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 2B [21:57:19]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:57:19]wFMCommunicate OK [21:57:19]SAM_PROTO_GetShiftState done [21:57:19]FM_GetShiftState done [21:57:19]opened in 1715818246 [21:57:19]opened+sec_in_day 1715904646 [21:57:19]quantity*price = 50036 [21:57:19]sum+1 = 50037 [21:57:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 113 16.05.2024 21:57 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5053 ФПД: 14511328580952 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T215721&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5053&fm=14511328580952&tin=02508201610067®Number=0000000000154221&sum=50000 [21:57:20]StoreToDocumentArchive [21:57:20]shift 44 fd 5053 [21:57:20]save to /storage/0044/doc_00005053 [21:57:20]save last doc name /storage/0044/doc_00005053 to /storage/kkm_last_doc_name [21:57:20]save OK [21:57:20]Clear old archive folders... [21:57:20]ProcessDocumentItem done err = 0, tmpTLVsize=244 [21:57:20]tlvbuf is 011FEC70 [21:57:20]SAM_PROTO_ClearQueue [21:57:20]wFMCommunicate request_size=4 [21:57:20]MH_SAM_APDU [21:57:20]CAPDU: 80 09 00 00 [21:57:20]Write to MH i2c: E2 08 00 9B 14 80 09 00 00 00 00 00 00 21 [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:20]Read from MH i2c: E2 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: E2 03 00 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: E2 03 00 9B 14 00 90 00 23 [21:57:20]RAPDU: 90 00 [21:57:20]wFMCommunicate OK [21:57:20]SAM_PROTO_ClearQueue done [21:57:20]KKMCreateOFDPacket [21:57:20]OFDProtocolAddRootSTLVToBuf [21:57:20]FM_MakeSignedData [21:57:20]FM_MakeSignedData [21:57:20]SAM_PROTO_SignData [21:57:20]wFMCommunicate request_size=4 [21:57:20]MH_SAM_APDU [21:57:20]CAPDU: 80 0D 01 02 [21:57:20]Write to MH i2c: E2 08 00 9C 14 80 0D 01 02 00 00 00 00 29 [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:20]Read from MH i2c: E2 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: E2 03 00 [21:57:20]MH_I2C_Read... [21:57:20]Read from MH i2c: E2 03 00 9C 14 00 90 00 24 [21:57:20]RAPDU: 90 00 [21:57:20]wFMCommunicate OK [21:57:20]wFMCommunicate request_size=253 [21:57:20]MH_SAM_APDU [21:57:20]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 41 81 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BD 13 00 00 35 04 06 00 0D 32 AE 95 D5 58 [21:57:20]Write to MH i2c: E2 00 01 9D 14 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 41 81 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BD 13 00 00 35 04 06 00 0D 32 AE 95 D5 58 00 00 D8 [21:57:20]Write i2c OK [21:57:20]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 03 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 03 00 9D 14 00 90 00 25 [21:57:21]RAPDU: 90 00 [21:57:21]wFMCommunicate OK [21:57:21]wFMCommunicate request_size=4 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 0D 03 02 [21:57:21]Write to MH i2c: E2 08 00 9E 14 80 0D 03 02 00 00 00 00 2D [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 0B 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 0B 00 9E 14 00 BF B9 EA CD 6B 53 FC 87 90 00 9E [21:57:21]RAPDU: BF B9 EA CD 6B 53 FC 87 90 00 [21:57:21]wFMCommunicate OK [21:57:21]SAM_PROTO_SignData done [21:57:21]FM_MakeSignedData done [21:57:21]CreateOFDProtocolMessage [21:57:21]wFMCommunicate request_size=4 [21:57:21]MH_SAM_APDU [21:57:21]CAPDU: 80 11 00 00 [21:57:21]Write to MH i2c: E2 08 00 9F 14 80 11 00 00 00 00 00 00 2D [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:21]Read from MH i2c: E2 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 17 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: E2 17 00 9F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 82 [21:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:57:21]wFMCommunicate OK [21:57:21]CreateOFDProtocolMessage done [21:57:21]OFDSenderStorePacket 5053 [21:57:21]StoreOFDPacket docnum=5053 [21:57:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 08 01 00 00 AE 5B 00 01 AF 76 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 41 81 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BD 13 00 00 35 04 06 00 0D 32 AE 95 D5 58 BF B9 EA CD 6B 53 FC 87 [21:57:21]CheckFolder [21:57:21]dirname=/storage/ofd_packets [21:57:21]CheckFolder done [21:57:21]ProducePacketName [21:57:21]name=ofd_packets/00005053 [21:57:21]NVStorageSaveData ofd_packets/00005053 [21:57:21]File name is /storage/ofd_packets/00005053 [21:57:21]Write 294 bytes [21:57:21]NVStorageSaveData done [21:57:21]OFDSenderStorePacket done [21:57:21]KKMCreateOFDPacket done [21:57:21]NVStorageSaveData kkm_last_timestamp [21:57:21]File name is /storage/kkm_last_timestamp [21:57:21]Write 4 bytes [21:57:21]NVStorageSaveData done [21:57:21]ExternCall_PrintAddStr [21:57:21]wPrintStart [21:57:21]Write to MH i2c: 01 00 00 A0 14 B4 [21:57:21]Write i2c OK [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: 01 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: 01 07 00 [21:57:21]MH_I2C_Read... [21:57:21]Read from MH i2c: 01 07 00 A0 14 00 00 00 00 00 FF 0F C9 [21:57:21]RasterBufferAndPrint [21:57:21]line Счет N : (1)1993238 [21:57:21]line ИНН: 02508201610067 [21:57:21]line Контрольно-Кассовый Чек [21:57:21]line ПРОДАЖА [21:57:21]line ТРК (МРК, ГНК) : 44 [21:57:21]line Товар: 2710124130 [21:57:21]line SU-92 [21:57:21]line 7.380 * 67.80 [21:57:21]line = 500.36 [21:57:21]line НДС 12% НСП 1% [21:57:21]line > о реализуемом товаре [21:57:21]line ОКРУГЛЕНИЕ: -0.36 [21:57:21]line ИТОГО: 500.00 [21:57:21]line Внесено: 500.00 [21:57:21]line СДАЧА: 0.00 [21:57:21]line НСП 1% : 4.43 [21:57:21]line НДС 12% : 53.14 [21:57:21]line Наличными: 500.00 [21:57:21]line Безнал.: 0.00 [21:57:21]line Место: АЗС № 135 "Партнер Нефть" [21:57:21]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [21:57:21]line СНО: Общий режим [21:57:21]line Чек 113 16.05.2024 21:57 [21:57:21]line Смена: 44 ФФД: 1.0 [21:57:21]line ЗНМ: 0300000237 [21:57:21]line РНМ: 0000000000154221 [21:57:21]line Версия ККМ: v1.0 [21:57:21]line ФМ: 0000000000963259 [21:57:21]line ФД: 5053 [21:57:21]line ФПД: 14511328580952 [21:57:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T215721&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5053&fm=14511328580952&tin=02508201610067®Number=0000000000154221&sum=50000 [21:57:21]OFD Sender: Processing packet 5053 [packets to send 4, broken 3] [21:57:21]ProducePacketName [21:57:21]name=ofd_packets/00005053 [21:57:21]OFD Sender: To server: pG, [21:57:21]CommunicateWithHost lk.salyk.kg:30040 [21:57:21]ConnectInit lk.salyk.kg [21:57:21]written 0, free lines is 4095 [21:57:21]Connected sock=10 [21:57:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 08 01 00 00 AE 5B 00 01 AF 76 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 D4 1C 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 74 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 41 81 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BD 13 00 00 35 04 06 00 0D 32 AE 95 D5 58 BF B9 EA CD 6B 53 FC 87 [21:57:22]Write to MH i2c: 01 00 00 CB 14 DF [21:57:22]Write i2c OK [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: 01 [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: 01 07 00 [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: 01 07 00 CB 14 00 00 00 00 00 69 0C 5B [21:57:22]RasterBufferAndPrint [21:57:22]line [21:57:22]line [21:57:22]line [21:57:22]line [21:57:22]line [21:57:22]written 0, free lines is 3181 [21:57:22]MH_Cut [21:57:22]Write to MH i2c: D1 01 00 D2 14 01 B8 [21:57:22]Write i2c OK [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: D1 [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: D1 01 00 [21:57:22]MH_I2C_Read... [21:57:22]Read from MH i2c: D1 01 00 D2 14 00 B7 [21:57:22]Write to MH i2c: 01 00 00 D3 14 E7 [21:57:22]Write i2c OK [21:57:22]MH_I2C_Read... [21:57:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 16 41 47 00 DB 1F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BD 13 00 00 F4 03 04 00 04 2D 46 66 B6 04 01 00 00 84 22 F3 FA 6E AF 5A 66 [21:57:22]CommunicateWithHost err = 0 [21:57:22]CheckOFDResponse [21:57:22]1017 (14) - 77093643461234 [21:57:22]1041 (16) - 0000000000963259 [21:57:22]1040 (4) - 5053 [21:57:22]1012 (4) - 16.05.2024 15:57 [21:57:22]1206 (1) - 0 [21:57:22]OFD Sender: Remove packet 5053 [21:57:22]ProducePacketName [21:57:22]name=ofd_packets/00005053 [21:57:22]NVStorageDeleteData [21:57:22]OFD Sender: No OFD packet to send [21:57:23]*** Cut start [21:57:23]*** Partial cut [21:57:23]*** CUTSNS_PIN = 1 [21:57:23]*** CUTSNS_PIN = 0 [21:57:23]*** Brake cut motor [21:57:23]Read from MH i2c: 01 [21:57:23]MH_I2C_Read... [21:57:23]*** Stop cut motor [21:57:23]*** Cut end [21:57:23]Read from MH i2c: 01 07 00 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: 01 07 00 D3 14 00 00 00 00 00 FF 0F FC [21:57:23]process_action close_receipt done [21:57:23]requested_data is exist [21:57:23]produce_requested_data [21:57:23]requested_item fm.sn is exist - process it [21:57:23]wFMCommunicate request_size=4 [21:57:23]MH_SAM_APDU [21:57:23]CAPDU: 80 11 00 00 [21:57:23]Write to MH i2c: E2 08 00 D4 14 80 11 00 00 00 00 00 00 62 [21:57:23]Write i2c OK [21:57:23]MH_I2C_Read... [21:57:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:23]Read from MH i2c: E2 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 17 00 [21:57:23]MH_I2C_Read... [21:57:23]Read from MH i2c: E2 17 00 D4 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 B7 [21:57:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [21:57:23]wFMCommunicate OK [21:57:23]requested_item fd.num is exist - process it [21:57:23]SAM_PROTO_GetFieldsCounters [21:57:23]wFMCommunicate request_size=4 [21:57:23]MH_SAM_APDU [21:57:23]CAPDU: 80 13 00 00 [21:57:23]Write to MH i2c: E2 08 00 D5 14 80 13 00 00 00 00 00 00 65 [21:57:23]Write i2c OK [21:57:23]MH_I2C_Read... [21:57:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:24]Read from MH i2c: E2 [21:57:24]MH_I2C_Read... [21:57:24]Read from MH i2c: E2 62 00 [21:57:24]MH_I2C_Read... [21:57:24]Read from MH i2c: E2 62 00 D5 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BD 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 CD [21:57:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BD 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [21:57:24]wFMCommunicate OK [21:57:24]SAM_PROTO_GetFieldsCounters done [21:57:24]requested_item shift.num is exist - process it [21:57:24]requested_item shift.opened is exist - process it [21:57:24]req_shift_opened [21:57:24]FM_GetShiftState [21:57:24]SAM_PROTO_GetShiftState [21:57:24]wFMCommunicate request_size=4 [21:57:24]MH_SAM_APDU [21:57:24]CAPDU: 80 13 01 00 [21:57:24]Write to MH i2c: E2 08 00 D6 14 80 13 01 00 00 00 00 00 67 [21:57:24]Write i2c OK [21:57:24]MH_I2C_Read... [21:57:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:24]Read from MH i2c: E2 [21:57:24]MH_I2C_Read... [21:57:24]Read from MH i2c: E2 0E 00 [21:57:24]MH_I2C_Read... [21:57:24]Read from MH i2c: E2 0E 00 D6 14 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 73 [21:57:24]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [21:57:24]wFMCommunicate OK [21:57:24]SAM_PROTO_GetShiftState done [21:57:24]FM_GetShiftState done [21:57:24]req_shift_opened done [21:57:24]requested_item shift.open_date is exist - process it [21:57:24]req_shift_open_date [21:57:24]req_shift_open_date done [21:57:24]produce_requested_data done [21:57:24]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5053,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [21:57:24]process_action_free close_receipt [21:57:24]json_value_free [21:57:24]json_value_free done [21:57:24]process_json_proto returns [21:57:24]Send response to host [21:57:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5053,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [21:57:24]free response buf [21:57:24]execute_script done [21:57:24]execute_script returns [21:57:24]free content buf [21:57:24]Sock 7.Close socket [21:57:24]Sock 7.Thread stoped [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send [21:59:32]OFD Sender: No OFD packet to send [21:59:37]OFD Sender: No OFD packet to send [21:59:42]OFD Sender: No OFD packet to send [21:59:47]OFD Sender: No OFD packet to send [21:59:52]OFD Sender: No OFD packet to send [21:59:57]OFD Sender: No OFD packet to send [22:00:02]OFD Sender: No OFD packet to send [22:00:07]OFD Sender: No OFD packet to send [22:00:12]OFD Sender: No OFD packet to send [22:00:17]OFD Sender: No OFD packet to send [22:00:22]OFD Sender: No OFD packet to send [22:00:27]OFD Sender: No OFD packet to send [22:00:32]OFD Sender: No OFD packet to send [22:00:37]OFD Sender: No OFD packet to send [22:00:42]OFD Sender: No OFD packet to send [22:00:47]OFD Sender: No OFD packet to send [22:00:52]OFD Sender: No OFD packet to send [22:00:57]OFD Sender: No OFD packet to send [22:01:02]OFD Sender: No OFD packet to send [22:01:07]OFD Sender: No OFD packet to send [22:01:12]OFD Sender: No OFD packet to send [22:01:17]OFD Sender: No OFD packet to send [22:01:22]OFD Sender: No OFD packet to send [22:01:27]OFD Sender: No OFD packet to send [22:01:32]OFD Sender: No OFD packet to send [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:52]OFD Sender: No OFD packet to send [22:01:57]OFD Sender: No OFD packet to send [22:02:02]OFD Sender: No OFD packet to send [22:02:07]OFD Sender: No OFD packet to send [22:02:12]OFD Sender: No OFD packet to send [22:02:17]OFD Sender: No OFD packet to send [22:02:22]OFD Sender: No OFD packet to send [22:02:27]OFD Sender: No OFD packet to send [22:02:32]OFD Sender: No OFD packet to send [22:02:37]OFD Sender: No OFD packet to send [22:02:42]OFD Sender: No OFD packet to send [22:02:47]OFD Sender: No OFD packet to send [22:02:52]OFD Sender: No OFD packet to send [22:02:57]OFD Sender: No OFD packet to send [22:03:02]OFD Sender: No OFD packet to send [22:03:07]OFD Sender: No OFD packet to send [22:03:12]OFD Sender: No OFD packet to send [22:03:17]OFD Sender: No OFD packet to send [22:03:22]OFD Sender: No OFD packet to send [22:03:27]OFD Sender: No OFD packet to send [22:03:32]OFD Sender: No OFD packet to send [22:03:37]OFD Sender: No OFD packet to send [22:03:42]OFD Sender: No OFD packet to send [22:03:47]OFD Sender: No OFD packet to send [22:03:52]OFD Sender: No OFD packet to send [22:03:57]OFD Sender: No OFD packet to send [22:04:02]OFD Sender: No OFD packet to send [22:04:07]OFD Sender: No OFD packet to send [22:04:12]OFD Sender: No OFD packet to send [22:04:17]OFD Sender: No OFD packet to send [22:04:22]OFD Sender: No OFD packet to send [22:04:27]OFD Sender: No OFD packet to send [22:04:32]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]OFD Sender: No OFD packet to send [22:05:03]OFD Sender: No OFD packet to send [22:05:08]OFD Sender: No OFD packet to send [22:05:13]OFD Sender: No OFD packet to send [22:05:18]OFD Sender: No OFD packet to send [22:05:23]OFD Sender: No OFD packet to send [22:05:28]OFD Sender: No OFD packet to send [22:05:33]OFD Sender: No OFD packet to send [22:05:38]OFD Sender: No OFD packet to send [22:05:43]OFD Sender: No OFD packet to send [22:05:48]OFD Sender: No OFD packet to send [22:05:53]OFD Sender: No OFD packet to send [22:05:58]OFD Sender: No OFD packet to send [22:06:03]OFD Sender: No OFD packet to send [22:06:08]OFD Sender: No OFD packet to send [22:06:13]OFD Sender: No OFD packet to send [22:06:18]OFD Sender: No OFD packet to send [22:06:23]OFD Sender: No OFD packet to send [22:06:28]OFD Sender: No OFD packet to send [22:06:33]OFD Sender: No OFD packet to send [22:06:38]OFD Sender: No OFD packet to send [22:06:43]OFD Sender: No OFD packet to send [22:06:48]OFD Sender: No OFD packet to send [22:06:53]OFD Sender: No OFD packet to send [22:06:58]OFD Sender: No OFD packet to send [22:07:03]OFD Sender: No OFD packet to send [22:07:08]OFD Sender: No OFD packet to send [22:07:13]OFD Sender: No OFD packet to send [22:07:18]OFD Sender: No OFD packet to send [22:07:23]OFD Sender: No OFD packet to send [22:07:28]OFD Sender: No OFD packet to send [22:07:33]OFD Sender: No OFD packet to send [22:07:38]OFD Sender: No OFD packet to send [22:07:43]OFD Sender: No OFD packet to send [22:07:48]OFD Sender: No OFD packet to send [22:07:53]OFD Sender: No OFD packet to send [22:07:58]OFD Sender: No OFD packet to send [22:08:03]OFD Sender: No OFD packet to send [22:08:08]OFD Sender: No OFD packet to send [22:08:13]OFD Sender: No OFD packet to send [22:08:18]OFD Sender: No OFD packet to send [22:08:23]OFD Sender: No OFD packet to send [22:08:28]OFD Sender: No OFD packet to send [22:08:33]OFD Sender: No OFD packet to send [22:08:38]OFD Sender: No OFD packet to send [22:08:43]OFD Sender: No OFD packet to send [22:08:48]OFD Sender: No OFD packet to send [22:08:53]OFD Sender: No OFD packet to send [22:08:58]OFD Sender: No OFD packet to send [22:09:03]OFD Sender: No OFD packet to send [22:09:08]OFD Sender: No OFD packet to send [22:09:13]OFD Sender: No OFD packet to send [22:09:18]OFD Sender: No OFD packet to send [22:09:23]OFD Sender: No OFD packet to send [22:09:28]OFD Sender: No OFD packet to send [22:09:33]OFD Sender: No OFD packet to send [22:09:38]OFD Sender: No OFD packet to send [22:09:43]OFD Sender: No OFD packet to send [22:09:48]OFD Sender: No OFD packet to send [22:09:53]OFD Sender: No OFD packet to send [22:09:58]OFD Sender: No OFD packet to send [22:10:03]OFD Sender: No OFD packet to send [22:10:08]OFD Sender: No OFD packet to send [22:10:13]OFD Sender: No OFD packet to send [22:10:18]OFD Sender: No OFD packet to send [22:10:23]OFD Sender: No OFD packet to send [22:10:28]OFD Sender: No OFD packet to send [22:10:33]OFD Sender: No OFD packet to send [22:10:38]OFD Sender: No OFD packet to send [22:10:43]OFD Sender: No OFD packet to send [22:10:48]OFD Sender: No OFD packet to send [22:10:53]OFD Sender: No OFD packet to send [22:10:58]OFD Sender: No OFD packet to send [22:11:03]OFD Sender: No OFD packet to send [22:11:08]OFD Sender: No OFD packet to send [22:11:13]OFD Sender: No OFD packet to send [22:11:18]OFD Sender: No OFD packet to send [22:11:23]OFD Sender: No OFD packet to send [22:11:28]OFD Sender: No OFD packet to send [22:11:33]OFD Sender: No OFD packet to send [22:11:38]OFD Sender: No OFD packet to send [22:11:43]OFD Sender: No OFD packet to send [22:11:48]OFD Sender: No OFD packet to send [22:11:53]OFD Sender: No OFD packet to send [22:11:58]OFD Sender: No OFD packet to send [22:12:03]OFD Sender: No OFD packet to send [22:12:08]OFD Sender: No OFD packet to send [22:12:13]OFD Sender: No OFD packet to send [22:12:15]accept exits with 9 [22:12:15]New connection [22:12:15]New thread 3067252068 created [22:12:15]Thread 3067108708 joined [22:12:15]Waiting for new connection... [22:12:15] Sock 9.Parse request [22:12:15]Sock 9.Check first char [22:12:15]Sock 9.First char is OK [22:12:15]request: POST /json_proto HTTP/1.0 [22:12:15]Method: POST [22:12:15]URL: /json_proto [22:12:15]Method is POST - this is cgi request [22:12:15]url: /json_proto [22:12:15]query_string will be loaded in cgi processing [22:12:15]execute_cgi json_proto POST (null) [22:12:15]execute_cgi path=json_proto method=POST [22:12:15]POST find Content-Length [22:12:15]Host: 172.17.44.4:8080 [22:12:15]Content-Length: 714 [22:12:15]Content-Type: application/json [22:12:15] [22:12:15]POST finish read [22:12:15]Found Content-Length = 714 [22:12:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141037", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "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 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" ] } } [22:12:15]execute_script... [22:12: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)141037", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "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 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" ] } } [22:12:15]POST & json_proto [22:12:15]process_json_proto [22:12:15]json parsed OK: [22:12:15]protocol is kg_v1.0 [22:12:15]action value=close_receipt [22:12:15]process_action close_receipt [22:12:15]cmd_close_receipt [22:12:15]MH_GetDate [22:12:15]Write to MH i2c: F0 00 00 D7 14 DA [22:12:15]Write i2c OK [22:12:15]MH_I2C_Read... [22:12:15]Read from MH i2c: F0 [22:12:15]MH_I2C_Read... [22:12:15]Read from MH i2c: F0 09 00 [22:12:15]MH_I2C_Read... [22:12:15]Read from MH i2c: F0 09 00 D7 14 00 C1 84 46 66 6C E9 28 66 B7 [22:12:15]GetLastDocTimeStamp 1715896641 [22:12:15]current date 1715897537 [22:12:15]FM_GetShiftState [22:12:15]SAM_PROTO_GetShiftState [22:12:15]wFMCommunicate request_size=4 [22:12:15]MH_SAM_APDU [22:12:15]CAPDU: 80 13 01 00 [22:12:15]Write to MH i2c: E2 08 00 D8 14 80 13 01 00 00 00 00 00 69 [22:12:15]Write i2c OK [22:12:15]MH_I2C_Read... [22:12:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:15]Read from MH i2c: E2 [22:12:15]MH_I2C_Read... [22:12:15]Read from MH i2c: E2 0E 00 [22:12:15]MH_I2C_Read... [22:12:15]Read from MH i2c: E2 0E 00 D8 14 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 75 [22:12:15]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:12:15]wFMCommunicate OK [22:12:15]SAM_PROTO_GetShiftState done [22:12:15]FM_GetShiftState done [22:12:15]opened in 1715818246 [22:12:15]opened+sec_in_day 1715904646 [22:12:15]quantity*price = 10000 [22:12:15]sum+1 = 10001 [22:12:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 114 16.05.2024 22:12 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5054 ФПД: 177113245032091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T221217&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5054&fm=177113245032091&tin=02508201610067®Number=0000000000154221&sum=10000 0 [22:12:16]StoreToDocumentArchive [22:12:16]shift 44 fd 5054 [22:12:16]save to /storage/0044/doc_00005054 [22:12:16]save last doc name /storage/0044/doc_00005054 to /storage/kkm_last_doc_name [22:12:16]save OK [22:12:16]Clear old archive folders... [22:12:16]ProcessDocumentItem done err = 0, tmpTLVsize=302 [22:12:16]tlvbuf is 01216700 [22:12:16]SAM_PROTO_ClearQueue [22:12:16]wFMCommunicate request_size=4 [22:12:16]MH_SAM_APDU [22:12:16]CAPDU: 80 09 00 00 [22:12:16]Write to MH i2c: E2 08 00 E5 14 80 09 00 00 00 00 00 00 6B [22:12:16]Write i2c OK [22:12:16]MH_I2C_Read... [22:12:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:16]Read from MH i2c: E2 [22:12:16]MH_I2C_Read... [22:12:16]Read from MH i2c: E2 03 00 [22:12:16]MH_I2C_Read... [22:12:16]Read from MH i2c: E2 03 00 E5 14 00 90 00 6D [22:12:16]RAPDU: 90 00 [22:12:16]wFMCommunicate OK [22:12:16]SAM_PROTO_ClearQueue done [22:12:16]KKMCreateOFDPacket [22:12:16]OFDProtocolAddRootSTLVToBuf [22:12:16]FM_MakeSignedData [22:12:16]FM_MakeSignedData [22:12:16]SAM_PROTO_SignData [22:12:16]wFMCommunicate request_size=4 [22:12:16]MH_SAM_APDU [22:12:16]CAPDU: 80 0D 01 02 [22:12:16]Write to MH i2c: E2 08 00 E6 14 80 0D 01 02 00 00 00 00 73 [22:12:16]Write i2c OK [22:12:16]MH_I2C_Read... [22:12:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:16]Read from MH i2c: E2 [22:12:16]MH_I2C_Read... [22:12:16]Read from MH i2c: E2 03 00 [22:12:16]MH_I2C_Read... [22:12:16]Read from MH i2c: E2 03 00 E6 14 00 90 00 6E [22:12:16]RAPDU: 90 00 [22:12:16]wFMCommunicate OK [22:12:16]wFMCommunicate request_size=255 [22:12:16]MH_SAM_APDU [22:12:16]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 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 72 00 00 00 F4 03 04 00 C1 84 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 [22:12:16]Write to MH i2c: E2 02 01 E7 14 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 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 72 00 00 00 F4 03 04 00 C1 84 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 00 00 75 [22:12:16]Write i2c OK [22:12:16]MH_I2C_Read... [22:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:17]Read from MH i2c: E2 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: E2 03 00 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: E2 03 00 E7 14 00 90 00 6F [22:12:17]RAPDU: 90 00 [22:12:17]wFMCommunicate OK [22:12:17]wFMCommunicate request_size=61 [22:12:17]MH_SAM_APDU [22:12:17]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BE 13 00 00 35 04 06 00 A1 15 64 0E 1E 9B [22:12:17]Write to MH i2c: E2 40 00 E8 14 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BE 13 00 00 35 04 06 00 A1 15 64 0E 1E 9B 00 00 55 [22:12:17]Write i2c OK [22:12:17]MH_I2C_Read... [22:12:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:17]Read from MH i2c: E2 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: E2 03 00 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: E2 03 00 E8 14 00 90 00 70 [22:12:17]RAPDU: 90 00 [22:12:17]wFMCommunicate OK [22:12:17]wFMCommunicate request_size=4 [22:12:17]MH_SAM_APDU [22:12:17]CAPDU: 80 0D 03 02 [22:12:17]Write to MH i2c: E2 08 00 E9 14 80 0D 03 02 00 00 00 00 78 [22:12:17]Write i2c OK [22:12:17]MH_I2C_Read... [22:12:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:17]Read from MH i2c: E2 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: E2 0B 00 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: E2 0B 00 E9 14 00 EF 3E 50 20 D6 4E 74 81 90 00 2F [22:12:17]RAPDU: EF 3E 50 20 D6 4E 74 81 90 00 [22:12:17]wFMCommunicate OK [22:12:17]SAM_PROTO_SignData done [22:12:17]FM_MakeSignedData done [22:12:17]CreateOFDProtocolMessage [22:12:17]wFMCommunicate request_size=4 [22:12:17]MH_SAM_APDU [22:12:17]CAPDU: 80 11 00 00 [22:12:17]Write to MH i2c: E2 08 00 EA 14 80 11 00 00 00 00 00 00 78 [22:12:17]Write i2c OK [22:12:17]MH_I2C_Read... [22:12:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:17]Read from MH i2c: E2 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: E2 17 00 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: E2 17 00 EA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 CD [22:12:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:12:17]wFMCommunicate OK [22:12:17]CreateOFDProtocolMessage done [22:12:17]OFDSenderStorePacket 5054 [22:12:17]StoreOFDPacket docnum=5054 [22:12:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 42 01 00 00 9A A8 3A 01 0A DB 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 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 72 00 00 00 F4 03 04 00 C1 84 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BE 13 00 00 35 04 06 00 A1 15 64 0E 1E 9B EF 3E 50 20 D6 4E 74 81 [22:12:17]CheckFolder [22:12:17]dirname=/storage/ofd_packets [22:12:17]CheckFolder done [22:12:17]ProducePacketName [22:12:17]name=ofd_packets/00005054 [22:12:17]NVStorageSaveData ofd_packets/00005054 [22:12:17]File name is /storage/ofd_packets/00005054 [22:12:17]Write 352 bytes [22:12:17]NVStorageSaveData done [22:12:17]OFDSenderStorePacket done [22:12:17]KKMCreateOFDPacket done [22:12:17]NVStorageSaveData kkm_last_timestamp [22:12:17]File name is /storage/kkm_last_timestamp [22:12:17]Write 4 bytes [22:12:17]NVStorageSaveData done [22:12:17]ExternCall_PrintAddStr [22:12:17]wPrintStart [22:12:17]Write to MH i2c: 01 00 00 EB 14 FF [22:12:17]Write i2c OK [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: 01 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: 01 07 00 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: 01 07 00 EB 14 00 00 00 00 00 FF 0F 14 [22:12:17]RasterBufferAndPrint [22:12:17]line Счет N : (3)141037 [22:12:17]line ИНН: 02508201610067 [22:12:17]line Контрольно-Кассовый Чек [22:12:17]line ПРОДАЖА [22:12:17]line Товар: 4870001571030 [22:12:17]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [22:12:17]line 1.000 * 100.00 [22:12:17]line = 100.00 [22:12:17]line НДС 12% НСП 1% [22:12:17]line > о реализуемом товаре [22:12:17]line ИТОГО: 100.00 [22:12:17]line НСП 1% : 0.88 [22:12:17]line НДС 12% : 10.62 [22:12:17]line Наличными: 100.00 [22:12:17]line Безнал.: 0.00 [22:12:17]line Место: АЗС № 135 "Партнер Нефть" [22:12:17]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [22:12:17]line СНО: Общий режим [22:12:17]line Чек 114 16.05.2024 22:12 [22:12:17]line Смена: 44 ФФД: 1.0 [22:12:17]line ЗНМ: 0300000237 [22:12:17]line РНМ: 0000000000154221 [22:12:17]line Версия ККМ: v1.0 [22:12:17]line ФМ: 0000000000963259 [22:12:17]line ФД: 5054 [22:12:17]line ФПД: 177113245032091 [22:12:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T221217&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5054&fm=177113245032091&tin=02508201610067®Number=0000000000154221&sum=10000 [22:12:17]line 0 [22:12:17]OFD Sender: Processing packet 5054 [packets to send 4, broken 3] [22:12:17]ProducePacketName [22:12:17]name=ofd_packets/00005054 [22:12:17]OFD Sender: To server: pG, [22:12:17]CommunicateWithHost lk.salyk.kg:30040 [22:12:17]ConnectInit lk.salyk.kg [22:12:17]written 0, free lines is 4095 [22:12:17]Connected sock=10 [22:12:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 42 01 00 00 9A A8 3A 01 0A DB 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 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 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 72 00 00 00 F4 03 04 00 C1 84 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BE 13 00 00 35 04 06 00 A1 15 64 0E 1E 9B EF 3E 50 20 D6 4E 74 81 [22:12:17]Write to MH i2c: 01 00 00 14 15 29 [22:12:17]Write i2c OK [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: 01 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: 01 07 00 [22:12:17]MH_I2C_Read... [22:12:17]Read from MH i2c: 01 07 00 14 15 00 00 00 00 00 74 0C B0 [22:12:17]RasterBufferAndPrint [22:12:17]line [22:12:17]line [22:12:17]line [22:12:17]line [22:12:17]line [22:12:18]written 0, free lines is 3193 [22:12:18]MH_Cut [22:12:18]Write to MH i2c: D1 01 00 1B 15 01 02 [22:12:18]Write i2c OK [22:12:18]MH_I2C_Read... [22:12:18]Read from MH i2c: D1 [22:12:18]MH_I2C_Read... [22:12:18]Read from MH i2c: D1 01 00 [22:12:18]MH_I2C_Read... [22:12:18]Read from MH i2c: D1 01 00 1B 15 00 01 [22:12:18]Write to MH i2c: 01 00 00 1C 15 31 [22:12:18]Write i2c OK [22:12:18]MH_I2C_Read... [22:12:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 39 7C 47 00 63 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BE 13 00 00 F4 03 04 00 84 30 46 66 B6 04 01 00 00 30 20 C6 F6 C1 E4 7F 34 [22:12:18]CommunicateWithHost err = 0 [22:12:18]CheckOFDResponse [22:12:18]1017 (14) - 77093643461234 [22:12:18]1041 (16) - 0000000000963259 [22:12:18]1040 (4) - 5054 [22:12:18]1012 (4) - 16.05.2024 16:12 [22:12:18]1206 (1) - 0 [22:12:18]OFD Sender: Remove packet 5054 [22:12:18]ProducePacketName [22:12:18]name=ofd_packets/00005054 [22:12:18]NVStorageDeleteData [22:12:18]OFD Sender: No OFD packet to send [22:12:19]*** Cut start [22:12:19]*** Partial cut [22:12:19]*** CUTSNS_PIN = 1 [22:12:19]*** CUTSNS_PIN = 0 [22:12:19]*** Brake cut motor [22:12:19]Read from MH i2c: 01 [22:12:19]MH_I2C_Read... [22:12:19]*** Stop cut motor [22:12:19]*** Cut end [22:12:19]Read from MH i2c: 01 07 00 [22:12:19]MH_I2C_Read... [22:12:19]Read from MH i2c: 01 07 00 1C 15 00 00 00 00 00 FF 0F 46 [22:12:19]process_action close_receipt done [22:12:19]requested_data is exist [22:12:19]produce_requested_data [22:12:19]requested_item fm.sn is exist - process it [22:12:19]wFMCommunicate request_size=4 [22:12:19]MH_SAM_APDU [22:12:19]CAPDU: 80 11 00 00 [22:12:19]Write to MH i2c: E2 08 00 1D 15 80 11 00 00 00 00 00 00 AC [22:12:19]Write i2c OK [22:12:19]MH_I2C_Read... [22:12:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:19]Read from MH i2c: E2 [22:12:19]MH_I2C_Read... [22:12:19]Read from MH i2c: E2 17 00 [22:12:19]MH_I2C_Read... [22:12:19]Read from MH i2c: E2 17 00 1D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 01 [22:12:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:12:19]wFMCommunicate OK [22:12:19]requested_item fd.num is exist - process it [22:12:19]SAM_PROTO_GetFieldsCounters [22:12:19]wFMCommunicate request_size=4 [22:12:19]MH_SAM_APDU [22:12:19]CAPDU: 80 13 00 00 [22:12:19]Write to MH i2c: E2 08 00 1E 15 80 13 00 00 00 00 00 00 AF [22:12:19]Write i2c OK [22:12:19]MH_I2C_Read... [22:12:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:19]Read from MH i2c: E2 [22:12:19]MH_I2C_Read... [22:12:19]Read from MH i2c: E2 62 00 [22:12:19]MH_I2C_Read... [22:12:19]Read from MH i2c: E2 62 00 1E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BE 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [22:12:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BE 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:20]wFMCommunicate OK [22:12:20]SAM_PROTO_GetFieldsCounters done [22:12:20]requested_item shift.num is exist - process it [22:12:20]requested_item shift.opened is exist - process it [22:12:20]req_shift_opened [22:12:20]FM_GetShiftState [22:12:20]SAM_PROTO_GetShiftState [22:12:20]wFMCommunicate request_size=4 [22:12:20]MH_SAM_APDU [22:12:20]CAPDU: 80 13 01 00 [22:12:20]Write to MH i2c: E2 08 00 1F 15 80 13 01 00 00 00 00 00 B1 [22:12:20]Write i2c OK [22:12:20]MH_I2C_Read... [22:12:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:20]Read from MH i2c: E2 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 0E 00 [22:12:20]MH_I2C_Read... [22:12:20]Read from MH i2c: E2 0E 00 1F 15 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 BD [22:12:20]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:12:20]wFMCommunicate OK [22:12:20]SAM_PROTO_GetShiftState done [22:12:20]FM_GetShiftState done [22:12:20]req_shift_opened done [22:12:20]requested_item shift.open_date is exist - process it [22:12:20]req_shift_open_date [22:12:20]req_shift_open_date done [22:12:20]produce_requested_data done [22:12:20]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5054,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [22:12:20]process_action_free close_receipt [22:12:20]json_value_free [22:12:20]json_value_free done [22:12:20]process_json_proto returns [22:12:20]Send response to host [22:12:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5054,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [22:12:20]free response buf [22:12:20]execute_script done [22:12:20]execute_script returns [22:12:20]free content buf [22:12:20]Sock 9.Close socket [22:12:20]Sock 9.Thread stoped [22:12:23]OFD Sender: No OFD packet to send [22:12:28]OFD Sender: No OFD packet to send [22:12:33]OFD Sender: No OFD packet to send [22:12:38]OFD Sender: No OFD packet to send [22:12:43]OFD Sender: No OFD packet to send [22:12:48]OFD Sender: No OFD packet to send [22:12:53]OFD Sender: No OFD packet to send [22:12:58]OFD Sender: No OFD packet to send [22:13:03]OFD Sender: No OFD packet to send [22:13:08]OFD Sender: No OFD packet to send [22:13:13]OFD Sender: No OFD packet to send [22:13:18]OFD Sender: No OFD packet to send [22:13:23]OFD Sender: No OFD packet to send [22:13:28]OFD Sender: No OFD packet to send [22:13:33]OFD Sender: No OFD packet to send [22:13:38]OFD Sender: No OFD packet to send [22:13:43]OFD Sender: No OFD packet to send [22:13:48]OFD Sender: No OFD packet to send [22:13:53]OFD Sender: No OFD packet to send [22:13:58]OFD Sender: No OFD packet to send [22:14:03]OFD Sender: No OFD packet to send [22:14:08]OFD Sender: No OFD packet to send [22:14:13]OFD Sender: No OFD packet to send [22:14:18]OFD Sender: No OFD packet to send [22:14:23]OFD Sender: No OFD packet to send [22:14:28]OFD Sender: No OFD packet to send [22:14:33]OFD Sender: No OFD packet to send [22:14:38]OFD Sender: No OFD packet to send [22:14:43]OFD Sender: No OFD packet to send [22:14:48]OFD Sender: No OFD packet to send [22:14:53]OFD Sender: No OFD packet to send [22:14:58]OFD Sender: No OFD packet to send [22:15:03]OFD Sender: No OFD packet to send [22:15:08]OFD Sender: No OFD packet to send [22:15:13]OFD Sender: No OFD packet to send [22:15:18]OFD Sender: No OFD packet to send [22:15:23]OFD Sender: No OFD packet to send [22:15:28]OFD Sender: No OFD packet to send [22:15:33]OFD Sender: No OFD packet to send [22:15:38]OFD Sender: No OFD packet to send [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:10]accept exits with 7 [22:16:10]New connection [22:16:10]New thread 3067108708 created [22:16:10]Thread 3067252068 joined [22:16:10]Waiting for new connection... [22:16:10] Sock 7.Parse request [22:16:10]Sock 7.Check first char [22:16:10]Sock 7.First char is OK [22:16:10]request: POST /json_proto HTTP/1.0 [22:16:10]Method: POST [22:16:10]URL: /json_proto [22:16:10]Method is POST - this is cgi request [22:16:10]url: /json_proto [22:16:10]query_string will be loaded in cgi processing [22:16:10]execute_cgi json_proto POST (null) [22:16:10]execute_cgi path=json_proto method=POST [22:16:10]POST find Content-Length [22:16:10]Host: 172.17.44.4:8080 [22:16:10]Content-Length: 215 [22:16:10]Content-Type: application/json [22:16:10] [22:16:10]POST finish read [22:16:10]Found Content-Length = 215 [22:16:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:10]execute_script... [22:16:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:10]POST & json_proto [22:16:10]process_json_proto [22:16:10]json parsed OK: [22:16:10]protocol is kg_v1.0 [22:16:10]action value=get_value [22:16:10]process_action get_value [22:16:10]cmd_get_value [22:16:10]process_action get_value done [22:16:10]requested_data is exist [22:16:10]produce_requested_data [22:16:10]requested_item kkm.sn is exist - process it [22:16:10]requested_item kkm.ver is exist - process it [22:16:10]requested_item fm.sn is exist - process it [22:16:10]wFMCommunicate request_size=4 [22:16:10]MH_SAM_APDU [22:16:10]CAPDU: 80 11 00 00 [22:16:10]Write to MH i2c: E2 08 00 20 15 80 11 00 00 00 00 00 00 AF [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:10]Read from MH i2c: E2 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 17 00 [22:16:10]MH_I2C_Read... [22:16:10]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 33 32 35 39 90 00 04 [22:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:16:10]wFMCommunicate OK [22:16:10]requested_item fd.num is exist - process it [22:16:10]SAM_PROTO_GetFieldsCounters [22:16:10]wFMCommunicate request_size=4 [22:16:10]MH_SAM_APDU [22:16:10]CAPDU: 80 13 00 00 [22:16:10]Write to MH i2c: E2 08 00 21 15 80 13 00 00 00 00 00 00 B2 [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:10]Read from MH i2c: E2 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 62 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 62 00 21 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BE 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [22:16:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BE 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:16:10]wFMCommunicate OK [22:16:10]SAM_PROTO_GetFieldsCounters done [22:16:10]requested_item shift.num is exist - process it [22:16:10]requested_item shift.opened is exist - process it [22:16:10]req_shift_opened [22:16:10]FM_GetShiftState [22:16:10]SAM_PROTO_GetShiftState [22:16:10]wFMCommunicate request_size=4 [22:16:10]MH_SAM_APDU [22:16:10]CAPDU: 80 13 01 00 [22:16:10]Write to MH i2c: E2 08 00 22 15 80 13 01 00 00 00 00 00 B4 [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:10]Read from MH i2c: E2 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 0E 00 [22:16:10]MH_I2C_Read... [22:16:10]Read from MH i2c: E2 0E 00 22 15 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 C0 [22:16:10]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:16:10]wFMCommunicate OK [22:16:10]SAM_PROTO_GetShiftState done [22:16:10]FM_GetShiftState done [22:16:10]req_shift_opened done [22:16:10]requested_item shift.open_date is exist - process it [22:16:10]req_shift_open_date [22:16:10]req_shift_open_date done [22:16:10]produce_requested_data done [22:16:10]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5054,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [22:16:10]process_action_free get_value [22:16:10]json_value_free [22:16:10]json_value_free done [22:16:10]process_json_proto returns [22:16:10]Send response to host [22:16:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5054,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [22:16:10]free response buf [22:16:10]execute_script done [22:16:10]execute_script returns [22:16:10]free content buf [22:16:10]Sock 7.Close socket [22:16:10]Sock 7.Thread stoped [22:16:10]accept exits with 9 [22:16:10]New connection [22:16:10]New thread 3067252068 created [22:16:10]Thread 3067108708 joined [22:16:10]Waiting for new connection... [22:16:10] Sock 9.Parse request [22:16:10]Sock 9.Check first char [22:16:10]Sock 9.First char is OK [22:16:10]request: POST /json_proto HTTP/1.0 [22:16:10]Method: POST [22:16:10]URL: /json_proto [22:16:10]Method is POST - this is cgi request [22:16:10]url: /json_proto [22:16:10]query_string will be loaded in cgi processing [22:16:10]execute_cgi json_proto POST (null) [22:16:10]execute_cgi path=json_proto method=POST [22:16:10]POST find Content-Length [22:16:10]Host: 172.17.44.4:8080 [22:16:10]Content-Length: 331 [22:16:10]Content-Type: application/json [22:16:10] [22:16:10]POST finish read [22:16:10]Found Content-Length = 331 [22:16: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" ] } } [22:16:10]execute_script... [22:16: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" ] } } [22:16:10]POST & json_proto [22:16:10]process_json_proto [22:16:10]json parsed OK: [22:16:10]protocol is kg_v1.0 [22:16:10]action value=get_value [22:16:10]process_action get_value [22:16:10]cmd_get_value [22:16:10]process_action get_value done [22:16:10]requested_data is exist [22:16:10]produce_requested_data [22:16:10]requested_item fm.sale.total is exist - process it [22:16:10]SAM_PROTO_GetFMData [22:16:10]wFMCommunicate request_size=4 [22:16:10]MH_SAM_APDU [22:16:10]CAPDU: 80 13 03 00 [22:16:10]Write to MH i2c: E2 08 00 23 15 80 13 03 00 00 00 00 00 B7 [22:16:10]Write i2c OK [22:16:10]MH_I2C_Read... [22:16:11]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [22:16:11]Read from MH i2c: E2 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 FD 00 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 FD 00 23 15 00 BF 04 85 04 BB 04 6E 04 04 00 66 13 00 00 69 04 A0 00 6F 04 04 00 33 13 00 00 B1 04 04 00 62 E5 8B 0F 70 04 04 00 E4 C1 07 07 72 04 04 00 7E 23 84 08 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 39 AA A6 01 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 67 36 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 DF [22:16:11]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 66 13 00 00 69 04 A0 00 6F 04 04 00 33 13 00 00 B1 04 04 00 62 E5 8B 0F 70 04 04 00 E4 C1 07 07 72 04 04 00 7E 23 84 08 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 39 AA A6 01 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 67 36 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [22:16:11]wFMCommunicate OK [22:16:11]wFMCommunicate request_size=4 [22:16:11]MH_SAM_APDU [22:16:11]CAPDU: 80 17 00 00 [22:16:11]Write to MH i2c: E2 08 00 24 15 80 17 00 00 00 00 00 00 B9 [22:16:11]Write i2c OK [22:16:11]MH_I2C_Read... [22:16:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:11]Read from MH i2c: E2 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 FD 00 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 FD 00 24 15 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 56 [22:16:11]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [22:16:11]wFMCommunicate OK [22:16:11]wFMCommunicate request_size=4 [22:16:11]MH_SAM_APDU [22:16:11]CAPDU: 80 17 00 00 [22:16:11]Write to MH i2c: E2 08 00 25 15 80 17 00 00 00 00 00 00 BA [22:16:11]Write i2c OK [22:16:11]MH_I2C_Read... [22:16:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:11]Read from MH i2c: E2 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 FD 00 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 FD 00 25 15 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5E [22:16:11]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 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 90 00 [22:16:11]wFMCommunicate OK [22:16:11]wFMCommunicate request_size=4 [22:16:11]MH_SAM_APDU [22:16:11]CAPDU: 80 17 00 00 [22:16:11]Write to MH i2c: E2 08 00 26 15 80 17 00 00 00 00 00 00 BB [22:16:11]Write i2c OK [22:16:11]MH_I2C_Read... [22:16:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:11]Read from MH i2c: E2 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 FD 00 [22:16:11]MH_I2C_Read... [22:16:11]Read from MH i2c: E2 FD 00 26 15 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 35 [22:16:11]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [22:16:11]wFMCommunicate OK [22:16:11]wFMCommunicate request_size=4 [22:16:11]MH_SAM_APDU [22:16:11]CAPDU: 80 17 00 00 [22:16:11]Write to MH i2c: E2 08 00 27 15 80 17 00 00 00 00 00 00 BC [22:16:11]Write i2c OK [22:16:11]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 DC 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 DC 00 27 15 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 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 A0 [22:16:12]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 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 [22:16:12]wFMCommunicate OK [22:16:12]SAM_PROTO_GetFMData done [22:16:12]requested_item fm.sale_refund.total is exist - process it [22:16:12]requested_item fm.buy.total is exist - process it [22:16:12]requested_item shift.sale.total is exist - process it [22:16:12]SAM_PROTO_GetShiftData [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 13 02 00 [22:16:12]Write to MH i2c: E2 08 00 28 15 80 13 02 00 00 00 00 00 BB [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 FD 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 FD 00 28 15 00 AE 04 AA 04 AA 04 6E 04 04 00 72 00 00 00 69 04 9B 00 6F 04 04 00 72 00 00 00 B1 04 03 00 FA D4 3C 70 04 03 00 A4 08 21 72 04 03 00 56 CC 1B 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 E9 75 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 89 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 2A [22:16:12]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 72 00 00 00 69 04 9B 00 6F 04 04 00 72 00 00 00 B1 04 03 00 FA D4 3C 70 04 03 00 A4 08 21 72 04 03 00 56 CC 1B 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 E9 75 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 C9 89 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 [22:16:12]wFMCommunicate OK [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 17 00 00 [22:16:12]Write to MH i2c: E2 08 00 29 15 80 17 00 00 00 00 00 00 BE [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:12]Read from MH i2c: E2 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 FD 00 [22:16:12]MH_I2C_Read... [22:16:12]Read from MH i2c: E2 FD 00 29 15 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 E0 [22:16:12]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 [22:16:12]wFMCommunicate OK [22:16:12]wFMCommunicate request_size=4 [22:16:12]MH_SAM_APDU [22:16:12]CAPDU: 80 17 00 00 [22:16:12]Write to MH i2c: E2 08 00 2A 15 80 17 00 00 00 00 00 00 BF [22:16:12]Write i2c OK [22:16:12]MH_I2C_Read... [22:16:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:13]Read from MH i2c: E2 [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: E2 FD 00 [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: E2 FD 00 2A 15 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 76 [22:16:13]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 [22:16:13]wFMCommunicate OK [22:16:13]wFMCommunicate request_size=4 [22:16:13]MH_SAM_APDU [22:16:13]CAPDU: 80 17 00 00 [22:16:13]Write to MH i2c: E2 08 00 2B 15 80 17 00 00 00 00 00 00 C0 [22:16:13]Write i2c OK [22:16:13]MH_I2C_Read... [22:16:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [22:16:13]Read from MH i2c: E2 [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: E2 FD 00 [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: E2 FD 00 2B 15 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 32 [22:16:13]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 [22:16:13]wFMCommunicate OK [22:16:13]wFMCommunicate request_size=4 [22:16:13]MH_SAM_APDU [22:16:13]CAPDU: 80 17 00 00 [22:16:13]Write to MH i2c: E2 08 00 2C 15 80 17 00 00 00 00 00 00 C1 [22:16:13]Write i2c OK [22:16:13]MH_I2C_Read... [22:16:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [22:16:13]Read from MH i2c: E2 [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: E2 CB 00 [22:16:13]MH_I2C_Read... [22:16:13]Read from MH i2c: E2 CB 00 2C 15 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 AA [22:16:13]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 [22:16:13]wFMCommunicate OK [22:16:13]SAM_PROTO_GetShiftData done [22:16:13]requested_item shift.sale.total_cash is exist - process it [22:16:13]requested_item shift.sale_refund.total is exist - process it [22:16:13]requested_item shift.sale_refund.total_cash is exist - process it [22:16:13]requested_item shift.buy.total is exist - process it [22:16:13]requested_item shift.buy.total_cash is exist - process it [22:16:13]produce_requested_data done [22:16:13]produce_requested_data return {"fm.sale.total":2608264.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":39866.82,"shift.sale.total_cash":21649.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} [22:16:13]process_action_free get_value [22:16:13]json_value_free [22:16:13]json_value_free done [22:16:13]process_json_proto returns [22:16:13]Send response to host [22:16:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2608264.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":39866.82,"shift.sale.total_cash":21649.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}}} [22:16:13]free response buf [22:16:13]execute_script done [22:16:13]execute_script returns [22:16:13]free content buf [22:16:13]Sock 9.Close socket [22:16:13]Sock 9.Thread stoped [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:54]OFD Sender: No OFD packet to send [22:18:59]OFD Sender: No OFD packet to send [22:19:04]OFD Sender: No OFD packet to send [22:19:09]OFD Sender: No OFD packet to send [22:19:14]OFD Sender: No OFD packet to send [22:19:19]OFD Sender: No OFD packet to send [22:19:24]OFD Sender: No OFD packet to send [22:19:29]OFD Sender: No OFD packet to send [22:19:34]OFD Sender: No OFD packet to send [22:19:39]OFD Sender: No OFD packet to send [22:19:44]OFD Sender: No OFD packet to send [22:19:49]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:09]accept exits with 7 [22:22:09]New connection [22:22:09]New thread 3067108708 created [22:22:09]Thread 3067252068 joined [22:22:09]Waiting for new connection... [22:22:09] Sock 7.Parse request [22:22:09]Sock 7.Check first char [22:22:09]Sock 7.First char is OK [22:22:09]request: POST /json_proto HTTP/1.0 [22:22:09]Method: POST [22:22:09]URL: /json_proto [22:22:09]Method is POST - this is cgi request [22:22:09]url: /json_proto [22:22:09]query_string will be loaded in cgi processing [22:22:09]execute_cgi json_proto POST (null) [22:22:09]execute_cgi path=json_proto method=POST [22:22:09]POST find Content-Length [22:22:09]Host: 172.17.44.4:8080 [22:22:09]Content-Length: 812 [22:22:09]Content-Type: application/json [22:22:09] [22:22:09]POST finish read [22:22:09]Found Content-Length = 812 [22:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141038", "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \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" ] } } [22:22:09]execute_script... [22:22: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)141038", "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: \u0414\u0435\u043C\u0438\u0440 \u041A\u0418 \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" ] } } [22:22:09]POST & json_proto [22:22:09]process_json_proto [22:22:09]json parsed OK: [22:22:09]protocol is kg_v1.0 [22:22:09]action value=close_receipt [22:22:09]process_action close_receipt [22:22:09]cmd_close_receipt [22:22:09]MH_GetDate [22:22:09]Write to MH i2c: F0 00 00 2D 15 31 [22:22:09]Write i2c OK [22:22:09]MH_I2C_Read... [22:22:09]Read from MH i2c: F0 [22:22:09]MH_I2C_Read... [22:22:09]Read from MH i2c: F0 09 00 [22:22:09]MH_I2C_Read... [22:22:09]Read from MH i2c: F0 09 00 2D 15 00 13 87 46 66 6C E9 28 66 63 [22:22:09]GetLastDocTimeStamp 1715897537 [22:22:09]current date 1715898131 [22:22:09]FM_GetShiftState [22:22:09]SAM_PROTO_GetShiftState [22:22:09]wFMCommunicate request_size=4 [22:22:09]MH_SAM_APDU [22:22:09]CAPDU: 80 13 01 00 [22:22:09]Write to MH i2c: E2 08 00 2E 15 80 13 01 00 00 00 00 00 C0 [22:22:09]Write i2c OK [22:22:09]MH_I2C_Read... [22:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:09]Read from MH i2c: E2 [22:22:09]MH_I2C_Read... [22:22:09]Read from MH i2c: E2 0E 00 [22:22:09]MH_I2C_Read... [22:22:09]Read from MH i2c: E2 0E 00 2E 15 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CC [22:22:09]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:22:09]wFMCommunicate OK [22:22:09]SAM_PROTO_GetShiftState done [22:22:09]FM_GetShiftState done [22:22:09]opened in 1715818246 [22:22:09]opened+sec_in_day 1715904646 [22:22:09]quantity*price = 15100 [22:22:09]sum+1 = 15101 [22:22:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 0.00 Безнал.: 151.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 115 16.05.2024 22:22 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: Демир КИ Банк ФМ: 0000000000963259 ФД: 5055 ФПД: 58307272676878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T222211&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5055&fm=58307272676878&tin=02508201610067®Number=0000000000154221&sum=15100 0 [22:22:10]StoreToDocumentArchive [22:22:10]shift 44 fd 5055 [22:22:10]save to /storage/0044/doc_00005055 [22:22:10]save last doc name /storage/0044/doc_00005055 to /storage/kkm_last_doc_name [22:22:10]save OK [22:22:10]Clear old archive folders... [22:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=274 [22:22:10]tlvbuf is 011FE8D0 [22:22:10]SAM_PROTO_ClearQueue [22:22:10]wFMCommunicate request_size=4 [22:22:10]MH_SAM_APDU [22:22:10]CAPDU: 80 09 00 00 [22:22:10]Write to MH i2c: E2 08 00 3B 15 80 09 00 00 00 00 00 00 C2 [22:22:10]Write i2c OK [22:22:10]MH_I2C_Read... [22:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:22:10]Read from MH i2c: E2 [22:22:10]MH_I2C_Read... [22:22:10]Read from MH i2c: E2 03 00 [22:22:10]MH_I2C_Read... [22:22:10]Read from MH i2c: E2 03 00 3B 15 00 90 00 C4 [22:22:10]RAPDU: 90 00 [22:22:10]wFMCommunicate OK [22:22:10]SAM_PROTO_ClearQueue done [22:22:10]KKMCreateOFDPacket [22:22:10]OFDProtocolAddRootSTLVToBuf [22:22:10]FM_MakeSignedData [22:22:10]FM_MakeSignedData [22:22:10]SAM_PROTO_SignData [22:22:10]wFMCommunicate request_size=4 [22:22:10]MH_SAM_APDU [22:22:10]CAPDU: 80 0D 01 02 [22:22:10]Write to MH i2c: E2 08 00 3C 15 80 0D 01 02 00 00 00 00 CA [22:22:10]Write i2c OK [22:22:10]MH_I2C_Read... [22:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:22:10]Read from MH i2c: E2 [22:22:10]MH_I2C_Read... [22:22:10]Read from MH i2c: E2 03 00 [22:22:10]MH_I2C_Read... [22:22:10]Read from MH i2c: E2 03 00 3C 15 00 90 00 C5 [22:22:10]RAPDU: 90 00 [22:22:10]wFMCommunicate OK [22:22:10]wFMCommunicate request_size=255 [22:22:10]MH_SAM_APDU [22:22:10]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 73 00 00 00 F4 03 04 00 13 87 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 [22:22:10]Write to MH i2c: E2 02 01 3D 15 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 73 00 00 00 F4 03 04 00 13 87 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 00 00 6E [22:22:10]Write i2c OK [22:22:10]MH_I2C_Read... [22:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:10]Read from MH i2c: E2 [22:22:10]MH_I2C_Read... [22:22:10]Read from MH i2c: E2 03 00 [22:22:10]MH_I2C_Read... [22:22:10]Read from MH i2c: E2 03 00 3D 15 00 90 00 C6 [22:22:10]RAPDU: 90 00 [22:22:10]wFMCommunicate OK [22:22:10]wFMCommunicate request_size=33 [22:22:10]MH_SAM_APDU [22:22:10]CAPDU: 80 0D 02 02 1C 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BF 13 00 00 35 04 06 00 35 07 B8 46 96 0E [22:22:10]Write to MH i2c: E2 24 00 3E 15 80 0D 02 02 1C 00 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BF 13 00 00 35 04 06 00 35 07 B8 46 96 0E 00 00 0E [22:22:10]Write i2c OK [22:22:10]MH_I2C_Read... [22:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:22:10]Read from MH i2c: E2 [22:22:10]MH_I2C_Read... [22:22:10]Read from MH i2c: E2 03 00 [22:22:10]MH_I2C_Read... [22:22:10]Read from MH i2c: E2 03 00 3E 15 00 90 00 C7 [22:22:10]RAPDU: 90 00 [22:22:10]wFMCommunicate OK [22:22:10]wFMCommunicate request_size=4 [22:22:10]MH_SAM_APDU [22:22:10]CAPDU: 80 0D 03 02 [22:22:10]Write to MH i2c: E2 08 00 3F 15 80 0D 03 02 00 00 00 00 CF [22:22:10]Write i2c OK [22:22:10]MH_I2C_Read... [22:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:22:10]Read from MH i2c: E2 [22:22:10]MH_I2C_Read... [22:22:10]Read from MH i2c: E2 0B 00 [22:22:10]MH_I2C_Read... [22:22:10]Read from MH i2c: E2 0B 00 3F 15 00 94 5D AE 85 BE B7 86 37 90 00 26 [22:22:11]RAPDU: 94 5D AE 85 BE B7 86 37 90 00 [22:22:11]wFMCommunicate OK [22:22:11]SAM_PROTO_SignData done [22:22:11]FM_MakeSignedData done [22:22:11]CreateOFDProtocolMessage [22:22:11]wFMCommunicate request_size=4 [22:22:11]MH_SAM_APDU [22:22:11]CAPDU: 80 11 00 00 [22:22:11]Write to MH i2c: E2 08 00 40 15 80 11 00 00 00 00 00 00 CF [22:22:11]Write i2c OK [22:22:11]MH_I2C_Read... [22:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:11]Read from MH i2c: E2 [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: E2 17 00 [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: E2 17 00 40 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 24 [22:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:22:11]wFMCommunicate OK [22:22:11]CreateOFDProtocolMessage done [22:22:11]OFDSenderStorePacket 5055 [22:22:11]StoreOFDPacket docnum=5055 [22:22:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 26 01 00 00 4B F3 1E 01 F4 07 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 73 00 00 00 F4 03 04 00 13 87 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BF 13 00 00 35 04 06 00 35 07 B8 46 96 0E 94 5D AE 85 BE B7 86 37 [22:22:11]CheckFolder [22:22:11]dirname=/storage/ofd_packets [22:22:11]CheckFolder done [22:22:11]ProducePacketName [22:22:11]name=ofd_packets/00005055 [22:22:11]NVStorageSaveData ofd_packets/00005055 [22:22:11]File name is /storage/ofd_packets/00005055 [22:22:11]Write 324 bytes [22:22:11]NVStorageSaveData done [22:22:11]OFDSenderStorePacket done [22:22:11]KKMCreateOFDPacket done [22:22:11]NVStorageSaveData kkm_last_timestamp [22:22:11]File name is /storage/kkm_last_timestamp [22:22:11]Write 4 bytes [22:22:11]NVStorageSaveData done [22:22:11]ExternCall_PrintAddStr [22:22:11]wPrintStart [22:22:11]Write to MH i2c: 01 00 00 41 15 56 [22:22:11]Write i2c OK [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: 01 [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: 01 07 00 [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: 01 07 00 41 15 00 00 00 00 00 FF 0F 6B [22:22:11]RasterBufferAndPrint [22:22:11]line Счет N : (3)141038 [22:22:11]line ИНН: 02508201610067 [22:22:11]line Контрольно-Кассовый Чек [22:22:11]line ПРОДАЖА [22:22:11]line Товар: 48741958 [22:22:11]line Сигареты Parliament Aqua Blue [22:22:11]line 1.000 * 151.00 [22:22:11]line = 151.00 [22:22:11]line НДС 12% НСП 1% [22:22:11]line > о реализуемом товаре [22:22:11]line ИТОГО: 151.00 [22:22:11]line НСП 1% : 1.34 [22:22:11]line НДС 12% : 16.03 [22:22:11]line Наличными: 0.00 [22:22:11]line Безнал.: 151.00 [22:22:11]line Место: АЗС № 135 "Партнер Нефть" [22:22:11]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [22:22:11]line СНО: Общий режим [22:22:11]line Чек 115 16.05.2024 22:22 [22:22:11]line Смена: 44 ФФД: 1.0 [22:22:11]line ЗНМ: 0300000237 [22:22:11]line РНМ: 0000000000154221 [22:22:11]line Версия ККМ: v1.0 [22:22:11]line Платежная система: Демир КИ Банк [22:22:11]line ФМ: 0000000000963259 [22:22:11]line ФД: 5055 [22:22:11]line ФПД: 58307272676878 [22:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T222211&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5055&fm=58307272676878&tin=02508201610067®Number=0000000000154221&sum=15100 [22:22:11]line 0 [22:22:11]OFD Sender: Processing packet 5055 [packets to send 4, broken 3] [22:22:11]ProducePacketName [22:22:11]name=ofd_packets/00005055 [22:22:11]OFD Sender: To server: pG, [22:22:11]CommunicateWithHost lk.salyk.kg:30040 [22:22:11]ConnectInit lk.salyk.kg [22:22:11]written 0, free lines is 4095 [22:22:11]Connected sock=10 [22:22:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 26 01 00 00 4B F3 1E 01 F4 07 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 73 00 00 00 F4 03 04 00 13 87 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BF 13 00 00 35 04 06 00 35 07 B8 46 96 0E 94 5D AE 85 BE B7 86 37 [22:22:11]Write to MH i2c: 01 00 00 6C 15 81 [22:22:11]Write i2c OK [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: 01 [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: 01 07 00 [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: 01 07 00 6C 15 00 00 00 00 00 3A 0C CE [22:22:11]RasterBufferAndPrint [22:22:11]line [22:22:11]line [22:22:11]line [22:22:11]line [22:22:11]line [22:22:11]written 0, free lines is 3135 [22:22:11]MH_Cut [22:22:11]Write to MH i2c: D1 01 00 73 15 01 5A [22:22:11]Write i2c OK [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: D1 [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: D1 01 00 [22:22:11]MH_I2C_Read... [22:22:11]Read from MH i2c: D1 01 00 73 15 00 59 [22:22:11]Write to MH i2c: 01 00 00 74 15 89 [22:22:11]Write i2c OK [22:22:11]MH_I2C_Read... [22:22:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 13 0F 47 00 38 F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 BF 13 00 00 F4 03 04 00 D6 32 46 66 B6 04 01 00 00 12 78 AB A6 AD 01 EE 35 [22:22:11]CommunicateWithHost err = 0 [22:22:11]CheckOFDResponse [22:22:11]1017 (14) - 77093643461234 [22:22:11]1041 (16) - 0000000000963259 [22:22:11]1040 (4) - 5055 [22:22:11]1012 (4) - 16.05.2024 16:22 [22:22:11]1206 (1) - 0 [22:22:11]OFD Sender: Remove packet 5055 [22:22:11]ProducePacketName [22:22:11]name=ofd_packets/00005055 [22:22:11]NVStorageDeleteData [22:22:12]OFD Sender: No OFD packet to send [22:22:13]*** Cut start [22:22:13]*** Partial cut [22:22:13]*** CUTSNS_PIN = 1 [22:22:13]*** CUTSNS_PIN = 0 [22:22:13]*** Brake cut motor [22:22:13]Read from MH i2c: 01 [22:22:13]MH_I2C_Read... [22:22:13]*** Stop cut motor [22:22:13]*** Cut end [22:22:13]Read from MH i2c: 01 07 00 [22:22:13]MH_I2C_Read... [22:22:13]Read from MH i2c: 01 07 00 74 15 00 00 00 00 00 FF 0F 9E [22:22:13]process_action close_receipt done [22:22:13]requested_data is exist [22:22:13]produce_requested_data [22:22:13]requested_item fm.sn is exist - process it [22:22:13]wFMCommunicate request_size=4 [22:22:13]MH_SAM_APDU [22:22:13]CAPDU: 80 11 00 00 [22:22:13]Write to MH i2c: E2 08 00 75 15 80 11 00 00 00 00 00 00 04 [22:22:13]Write i2c OK [22:22:13]MH_I2C_Read... [22:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:22:13]Read from MH i2c: E2 [22:22:13]MH_I2C_Read... [22:22:13]Read from MH i2c: E2 17 00 [22:22:13]MH_I2C_Read... [22:22:13]Read from MH i2c: E2 17 00 75 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 59 [22:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:22:13]wFMCommunicate OK [22:22:13]requested_item fd.num is exist - process it [22:22:13]SAM_PROTO_GetFieldsCounters [22:22:13]wFMCommunicate request_size=4 [22:22:13]MH_SAM_APDU [22:22:13]CAPDU: 80 13 00 00 [22:22:13]Write to MH i2c: E2 08 00 76 15 80 13 00 00 00 00 00 00 07 [22:22:13]Write i2c OK [22:22:13]MH_I2C_Read... [22:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:22:13]Read from MH i2c: E2 [22:22:13]MH_I2C_Read... [22:22:13]Read from MH i2c: E2 62 00 [22:22:13]MH_I2C_Read... [22:22:13]Read from MH i2c: E2 62 00 76 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BF 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 77 [22:22:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 BF 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 73 00 00 00 5E 04 04 00 73 00 00 00 57 04 04 00 74 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:22:13]wFMCommunicate OK [22:22:13]SAM_PROTO_GetFieldsCounters done [22:22:13]requested_item shift.num is exist - process it [22:22:13]requested_item shift.opened is exist - process it [22:22:13]req_shift_opened [22:22:13]FM_GetShiftState [22:22:13]SAM_PROTO_GetShiftState [22:22:13]wFMCommunicate request_size=4 [22:22:13]MH_SAM_APDU [22:22:13]CAPDU: 80 13 01 00 [22:22:13]Write to MH i2c: E2 08 00 77 15 80 13 01 00 00 00 00 00 09 [22:22:13]Write i2c OK [22:22:13]MH_I2C_Read... [22:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:22:13]Read from MH i2c: E2 [22:22:13]MH_I2C_Read... [22:22:13]Read from MH i2c: E2 0E 00 [22:22:13]MH_I2C_Read... [22:22:13]Read from MH i2c: E2 0E 00 77 15 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 15 [22:22:13]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:22:13]wFMCommunicate OK [22:22:13]SAM_PROTO_GetShiftState done [22:22:13]FM_GetShiftState done [22:22:13]req_shift_opened done [22:22:13]requested_item shift.open_date is exist - process it [22:22:13]req_shift_open_date [22:22:13]req_shift_open_date done [22:22:13]produce_requested_data done [22:22:13]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5055,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [22:22:13]process_action_free close_receipt [22:22:13]json_value_free [22:22:13]json_value_free done [22:22:13]process_json_proto returns [22:22:13]Send response to host [22:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5055,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [22:22:13]free response buf [22:22:13]execute_script done [22:22:13]execute_script returns [22:22:13]free content buf [22:22:13]Sock 7.Close socket [22:22:13]Sock 7.Thread stoped [22:22:17]OFD Sender: No OFD packet to send [22:22:22]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:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:47]accept exits with 9 [22:37:47]New connection [22:37:47]New thread 3067252068 created [22:37:47]Thread 3067108708 joined [22:37:47]Waiting for new connection... [22:37:47] Sock 9.Parse request [22:37:47]Sock 9.Check first char [22:37:47]Sock 9.First char is OK [22:37:47]request: POST /json_proto HTTP/1.0 [22:37:47]Method: POST [22:37:47]URL: /json_proto [22:37:47]Method is POST - this is cgi request [22:37:47]url: /json_proto [22:37:47]query_string will be loaded in cgi processing [22:37:47]execute_cgi json_proto POST (null) [22:37:47]execute_cgi path=json_proto method=POST [22:37:47]POST find Content-Length [22:37:47]Host: 172.17.44.4:8080 [22:37:47]Content-Length: 644 [22:37:47]Content-Type: application/json [22:37:47] [22:37:47]POST finish read [22:37:47]Found Content-Length = 644 [22:37:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141039", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "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:37:47]execute_script... [22: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)141039", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "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:37:47]POST & json_proto [22:37:47]process_json_proto [22:37:47]json parsed OK: [22:37:47]protocol is kg_v1.0 [22:37:47]action value=close_receipt [22:37:47]process_action close_receipt [22:37:47]cmd_close_receipt [22:37:47]MH_GetDate [22:37:47]Write to MH i2c: F0 00 00 78 15 7C [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: F0 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: F0 09 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: F0 09 00 78 15 00 BD 8A 46 66 6C E9 28 66 5B [22:37:47]GetLastDocTimeStamp 1715898131 [22:37:47]current date 1715899069 [22:37:47]FM_GetShiftState [22:37:47]SAM_PROTO_GetShiftState [22:37:47]wFMCommunicate request_size=4 [22:37:47]MH_SAM_APDU [22:37:47]CAPDU: 80 13 01 00 [22:37:47]Write to MH i2c: E2 08 00 79 15 80 13 01 00 00 00 00 00 0B [22:37:47]Write i2c OK [22:37:47]MH_I2C_Read... [22:37:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:47]Read from MH i2c: E2 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 0E 00 [22:37:47]MH_I2C_Read... [22:37:47]Read from MH i2c: E2 0E 00 79 15 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 17 [22:37:47]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:37:47]wFMCommunicate OK [22:37:47]SAM_PROTO_GetShiftState done [22:37:47]FM_GetShiftState done [22:37:47]opened in 1715818246 [22:37:47]opened+sec_in_day 1715904646 [22:37:47]quantity*price = 42000 [22:37:47]sum+1 = 42001 [22:37:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 420.00 НСП 1% : 3.72 НДС 12% : 44.60 Наличными: 420.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 116 16.05.2024 22:37 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5056 ФПД: 222774319398872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T223749&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5056&fm=222774319398872&tin=02508201610067®Number=0000000000154221&sum=42000 0 [22:37:48]StoreToDocumentArchive [22:37:48]shift 44 fd 5056 [22:37:48]save to /storage/0044/doc_00005056 [22:37:48]save last doc name /storage/0044/doc_00005056 to /storage/kkm_last_doc_name [22:37:48]save OK [22:37:48]Clear old archive folders... [22:37:48]ProcessDocumentItem done err = 0, tmpTLVsize=280 [22:37:48]tlvbuf is 011DE810 [22:37:48]SAM_PROTO_ClearQueue [22:37:48]wFMCommunicate request_size=4 [22:37:48]MH_SAM_APDU [22:37:48]CAPDU: 80 09 00 00 [22:37:48]Write to MH i2c: E2 08 00 86 15 80 09 00 00 00 00 00 00 0D [22:37:48]Write i2c OK [22:37:48]MH_I2C_Read... [22:37:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:37:48]Read from MH i2c: E2 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 03 00 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 03 00 86 15 00 90 00 0F [22:37:48]RAPDU: 90 00 [22:37:48]wFMCommunicate OK [22:37:48]SAM_PROTO_ClearQueue done [22:37:48]KKMCreateOFDPacket [22:37:48]OFDProtocolAddRootSTLVToBuf [22:37:48]FM_MakeSignedData [22:37:48]FM_MakeSignedData [22:37:48]SAM_PROTO_SignData [22:37:48]wFMCommunicate request_size=4 [22:37:48]MH_SAM_APDU [22:37:48]CAPDU: 80 0D 01 02 [22:37:48]Write to MH i2c: E2 08 00 87 15 80 0D 01 02 00 00 00 00 15 [22:37:48]Write i2c OK [22:37:48]MH_I2C_Read... [22:37:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:37:48]Read from MH i2c: E2 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 03 00 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 03 00 87 15 00 90 00 10 [22:37:48]RAPDU: 90 00 [22:37:48]wFMCommunicate OK [22:37:48]wFMCommunicate request_size=255 [22:37:48]MH_SAM_APDU [22:37: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 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 74 00 00 00 F4 03 04 00 BD 8A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 [22:37:48]Write to MH i2c: E2 02 01 88 15 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 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 74 00 00 00 F4 03 04 00 BD 8A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 00 00 4E [22:37:48]Write i2c OK [22:37:48]MH_I2C_Read... [22:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:48]Read from MH i2c: E2 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 03 00 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 03 00 88 15 00 90 00 11 [22:37:48]RAPDU: 90 00 [22:37:48]wFMCommunicate OK [22:37:48]wFMCommunicate request_size=39 [22:37:48]MH_SAM_APDU [22:37:48]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C0 13 00 00 35 04 06 00 CA 9C B0 2C 3F D8 [22:37:48]Write to MH i2c: E2 2A 00 89 15 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C0 13 00 00 35 04 06 00 CA 9C B0 2C 3F D8 00 00 01 [22:37:48]Write i2c OK [22:37:48]MH_I2C_Read... [22:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:37:48]Read from MH i2c: E2 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 03 00 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 03 00 89 15 00 90 00 12 [22:37:48]RAPDU: 90 00 [22:37:48]wFMCommunicate OK [22:37:48]wFMCommunicate request_size=4 [22:37:48]MH_SAM_APDU [22:37:48]CAPDU: 80 0D 03 02 [22:37:48]Write to MH i2c: E2 08 00 8A 15 80 0D 03 02 00 00 00 00 1A [22:37:48]Write i2c OK [22:37:48]MH_I2C_Read... [22:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:37:48]Read from MH i2c: E2 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 0B 00 [22:37:48]MH_I2C_Read... [22:37:48]Read from MH i2c: E2 0B 00 8A 15 00 D5 24 58 D3 E6 AE FD 31 90 00 01 [22:37:48]RAPDU: D5 24 58 D3 E6 AE FD 31 90 00 [22:37:48]wFMCommunicate OK [22:37:48]SAM_PROTO_SignData done [22:37:48]FM_MakeSignedData done [22:37:48]CreateOFDProtocolMessage [22:37:48]wFMCommunicate request_size=4 [22:37:48]MH_SAM_APDU [22:37:48]CAPDU: 80 11 00 00 [22:37:48]Write to MH i2c: E2 08 00 8B 15 80 11 00 00 00 00 00 00 1A [22:37:48]Write i2c OK [22:37:48]MH_I2C_Read... [22:37:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:49]Read from MH i2c: E2 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: E2 17 00 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: E2 17 00 8B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 6F [22:37:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:37:49]wFMCommunicate OK [22:37:49]CreateOFDProtocolMessage done [22:37:49]OFDSenderStorePacket 5056 [22:37:49]StoreOFDPacket docnum=5056 [22:37:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2C 01 00 00 D6 3E 24 01 21 74 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 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 74 00 00 00 F4 03 04 00 BD 8A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C0 13 00 00 35 04 06 00 CA 9C B0 2C 3F D8 D5 24 58 D3 E6 AE FD 31 [22:37:49]CheckFolder [22:37:49]dirname=/storage/ofd_packets [22:37:49]CheckFolder done [22:37:49]ProducePacketName [22:37:49]name=ofd_packets/00005056 [22:37:49]NVStorageSaveData ofd_packets/00005056 [22:37:49]File name is /storage/ofd_packets/00005056 [22:37:49]Write 330 bytes [22:37:49]NVStorageSaveData done [22:37:49]OFDSenderStorePacket done [22:37:49]KKMCreateOFDPacket done [22:37:49]NVStorageSaveData kkm_last_timestamp [22:37:49]File name is /storage/kkm_last_timestamp [22:37:49]Write 4 bytes [22:37:49]NVStorageSaveData done [22:37:49]ExternCall_PrintAddStr [22:37:49]wPrintStart [22:37:49]Write to MH i2c: 01 00 00 8C 15 A1 [22:37:49]Write i2c OK [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: 01 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: 01 07 00 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: 01 07 00 8C 15 00 00 00 00 00 FF 0F B6 [22:37:49]RasterBufferAndPrint [22:37:49]line Счет N : (3)141039 [22:37:49]line ИНН: 02508201610067 [22:37:49]line Контрольно-Кассовый Чек [22:37:49]line ПРОДАЖА [22:37:49]line Товар: 2000036210013 [22:37:49]line Кофе Капучино (GABB TRADE) [22:37:49]line 4.000 * 105.00 [22:37:49]line = 420.00 [22:37:49]line НДС 12% НСП 1% [22:37:49]line > о реализуемом товаре [22:37:49]line ИТОГО: 420.00 [22:37:49]line НСП 1% : 3.72 [22:37:49]line НДС 12% : 44.60 [22:37:49]line Наличными: 420.00 [22:37:49]line Безнал.: 0.00 [22:37:49]line Место: АЗС № 135 "Партнер Нефть" [22:37:49]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [22:37:49]line СНО: Общий режим [22:37:49]line Чек 116 16.05.2024 22:37 [22:37:49]line Смена: 44 ФФД: 1.0 [22:37:49]line ЗНМ: 0300000237 [22:37:49]line РНМ: 0000000000154221 [22:37:49]line Версия ККМ: v1.0 [22:37:49]line ФМ: 0000000000963259 [22:37:49]line ФД: 5056 [22:37:49]line ФПД: 222774319398872 [22:37:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T223749&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5056&fm=222774319398872&tin=02508201610067®Number=0000000000154221&sum=42000 [22:37:49]line 0 [22:37:49]OFD Sender: Processing packet 5056 [packets to send 4, broken 3] [22:37:49]ProducePacketName [22:37:49]name=ofd_packets/00005056 [22:37:49]OFD Sender: To server: pG, [22:37:49]CommunicateWithHost lk.salyk.kg:30040 [22:37:49]ConnectInit lk.salyk.kg [22:37:49]written 0, free lines is 4095 [22:37:49]Connected sock=7 [22:37:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2C 01 00 00 D6 3E 24 01 21 74 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 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 74 00 00 00 F4 03 04 00 BD 8A 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C0 13 00 00 35 04 06 00 CA 9C B0 2C 3F D8 D5 24 58 D3 E6 AE FD 31 [22:37:49]Write to MH i2c: 01 00 00 B4 15 C9 [22:37:49]Write i2c OK [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: 01 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: 01 07 00 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: 01 07 00 B4 15 00 00 00 00 00 9D 0C 79 [22:37:49]RasterBufferAndPrint [22:37:49]line [22:37:49]line [22:37:49]line [22:37:49]line [22:37:49]line [22:37:49]written 0, free lines is 3233 [22:37:49]MH_Cut [22:37:49]Write to MH i2c: D1 01 00 BB 15 01 A2 [22:37:49]Write i2c OK [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: D1 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: D1 01 00 [22:37:49]MH_I2C_Read... [22:37:49]Read from MH i2c: D1 01 00 BB 15 00 A1 [22:37:49]Write to MH i2c: 01 00 00 BC 15 D1 [22:37:49]Write i2c OK [22:37:49]MH_I2C_Read... [22:37:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 34 6F 47 00 07 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C0 13 00 00 F4 03 04 00 80 36 46 66 B6 04 01 00 00 C6 6D B6 1E F1 87 AA F5 [22:37:49]CommunicateWithHost err = 0 [22:37:49]CheckOFDResponse [22:37:49]1017 (14) - 77093643461234 [22:37:49]1041 (16) - 0000000000963259 [22:37:49]1040 (4) - 5056 [22:37:49]1012 (4) - 16.05.2024 16:38 [22:37:49]1206 (1) - 0 [22:37:49]OFD Sender: Remove packet 5056 [22:37:49]ProducePacketName [22:37:49]name=ofd_packets/00005056 [22:37:49]NVStorageDeleteData [22:37:50]OFD Sender: No OFD packet to send [22:37:50]*** Cut start [22:37:50]*** Partial cut [22:37:50]*** CUTSNS_PIN = 1 [22:37:51]*** CUTSNS_PIN = 0 [22:37:51]*** Brake cut motor [22:37:51]Read from MH i2c: 01 [22:37:51]MH_I2C_Read... [22:37:51]*** Stop cut motor [22:37:51]*** Cut end [22:37:51]Read from MH i2c: 01 07 00 [22:37:51]MH_I2C_Read... [22:37:51]Read from MH i2c: 01 07 00 BC 15 00 00 00 00 00 FF 0F E6 [22:37:51]process_action close_receipt done [22:37:51]requested_data is exist [22:37:51]produce_requested_data [22:37:51]requested_item fm.sn is exist - process it [22:37:51]wFMCommunicate request_size=4 [22:37:51]MH_SAM_APDU [22:37:51]CAPDU: 80 11 00 00 [22:37:51]Write to MH i2c: E2 08 00 BD 15 80 11 00 00 00 00 00 00 4C [22:37:51]Write i2c OK [22:37:51]MH_I2C_Read... [22:37:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:37:51]Read from MH i2c: E2 [22:37:51]MH_I2C_Read... [22:37:51]Read from MH i2c: E2 17 00 [22:37:51]MH_I2C_Read... [22:37:51]Read from MH i2c: E2 17 00 BD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A1 [22:37:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:37:51]wFMCommunicate OK [22:37:51]requested_item fd.num is exist - process it [22:37:51]SAM_PROTO_GetFieldsCounters [22:37:51]wFMCommunicate request_size=4 [22:37:51]MH_SAM_APDU [22:37:51]CAPDU: 80 13 00 00 [22:37:51]Write to MH i2c: E2 08 00 BE 15 80 13 00 00 00 00 00 00 4F [22:37:51]Write i2c OK [22:37:51]MH_I2C_Read... [22:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:37:51]Read from MH i2c: E2 [22:37:51]MH_I2C_Read... [22:37:51]Read from MH i2c: E2 62 00 [22:37:51]MH_I2C_Read... [22:37:51]Read from MH i2c: E2 62 00 BE 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C0 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [22:37:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C0 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 74 00 00 00 5E 04 04 00 74 00 00 00 57 04 04 00 75 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:37:51]wFMCommunicate OK [22:37:51]SAM_PROTO_GetFieldsCounters done [22:37:51]requested_item shift.num is exist - process it [22:37:51]requested_item shift.opened is exist - process it [22:37:51]req_shift_opened [22:37:51]FM_GetShiftState [22:37:51]SAM_PROTO_GetShiftState [22:37:51]wFMCommunicate request_size=4 [22:37:51]MH_SAM_APDU [22:37:51]CAPDU: 80 13 01 00 [22:37:51]Write to MH i2c: E2 08 00 BF 15 80 13 01 00 00 00 00 00 51 [22:37:51]Write i2c OK [22:37:51]MH_I2C_Read... [22:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:37:51]Read from MH i2c: E2 [22:37:51]MH_I2C_Read... [22:37:51]Read from MH i2c: E2 0E 00 [22:37:51]MH_I2C_Read... [22:37:51]Read from MH i2c: E2 0E 00 BF 15 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 5D [22:37:51]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:37:51]wFMCommunicate OK [22:37:51]SAM_PROTO_GetShiftState done [22:37:51]FM_GetShiftState done [22:37:51]req_shift_opened done [22:37:51]requested_item shift.open_date is exist - process it [22:37:51]req_shift_open_date [22:37:51]req_shift_open_date done [22:37:51]produce_requested_data done [22:37:51]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5056,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [22:37:51]process_action_free close_receipt [22:37:51]json_value_free [22:37:51]json_value_free done [22:37:51]process_json_proto returns [22:37:51]Send response to host [22:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5056,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [22:37:51]free response buf [22:37:51]execute_script done [22:37:51]execute_script returns [22:37:51]free content buf [22:37:51]Sock 9.Close socket [22:37:51]Sock 9.Thread stoped [22:37:55]OFD Sender: No OFD packet to send [22:38:00]OFD Sender: No OFD packet to send [22:38:05]OFD Sender: No OFD packet to send [22:38:10]OFD Sender: No OFD packet to send [22:38:15]OFD Sender: No OFD packet to send [22:38:20]OFD Sender: No OFD packet to send [22:38:25]OFD Sender: No OFD packet to send [22:38:30]OFD Sender: No OFD packet to send [22:38:35]OFD Sender: No OFD packet to send [22:38:40]OFD Sender: No OFD packet to send [22:38:45]OFD Sender: No OFD packet to send [22:38:50]OFD Sender: No OFD packet to send [22:38:55]OFD Sender: No OFD packet to send [22:39:00]OFD Sender: No OFD packet to send [22:39:05]OFD Sender: No OFD packet to send [22:39:10]OFD Sender: No OFD packet to send [22:39:15]OFD Sender: No OFD packet to send [22:39:20]OFD Sender: No OFD packet to send [22:39:25]OFD Sender: No OFD packet to send [22:39:30]OFD Sender: No OFD packet to send [22:39:35]OFD Sender: No OFD packet to send [22:39:40]OFD Sender: No OFD packet to send [22:39:45]OFD Sender: No OFD packet to send [22:39:50]OFD Sender: No OFD packet to send [22:39:55]OFD Sender: No OFD packet to send [22:40:00]OFD Sender: No OFD packet to send [22:40:05]OFD Sender: No OFD packet to send [22:40:10]OFD Sender: No OFD packet to send [22:40:15]OFD Sender: No OFD packet to send [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:06]accept exits with 10 [22:41:06]New connection [22:41:06]New thread 3067108708 created [22:41:06]Thread 3067252068 joined [22:41:06]Waiting for new connection... [22:41:06] Sock 10.Parse request [22:41:06]Sock 10.Check first char [22:41:06]Sock 10.First char is OK [22:41:06]request: POST /json_proto HTTP/1.0 [22:41:06]Method: POST [22:41:06]URL: /json_proto [22:41:06]Method is POST - this is cgi request [22:41:06]url: /json_proto [22:41:06]query_string will be loaded in cgi processing [22:41:06]execute_cgi json_proto POST (null) [22:41:06]execute_cgi path=json_proto method=POST [22:41:06]POST find Content-Length [22:41:06]Host: 172.17.44.4:8080 [22:41:06]Content-Length: 644 [22:41:06]Content-Type: application/json [22:41:06] [22:41:06]POST finish read [22:41:06]Found Content-Length = 644 [22:41:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141040", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:06]execute_script... [22:41:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141040", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 2.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:06]POST & json_proto [22:41:06]process_json_proto [22:41:06]json parsed OK: [22:41:06]protocol is kg_v1.0 [22:41:06]action value=close_receipt [22:41:06]process_action close_receipt [22:41:06]cmd_close_receipt [22:41:06]MH_GetDate [22:41:06]Write to MH i2c: F0 00 00 C0 15 C4 [22:41:06]Write i2c OK [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: F0 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: F0 09 00 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: F0 09 00 C0 15 00 84 8B 46 66 6C E9 28 66 6B [22:41:06]GetLastDocTimeStamp 1715899069 [22:41:06]current date 1715899268 [22:41:06]FM_GetShiftState [22:41:06]SAM_PROTO_GetShiftState [22:41:06]wFMCommunicate request_size=4 [22:41:06]MH_SAM_APDU [22:41:06]CAPDU: 80 13 01 00 [22:41:06]Write to MH i2c: E2 08 00 C1 15 80 13 01 00 00 00 00 00 53 [22:41:06]Write i2c OK [22:41:06]MH_I2C_Read... [22:41:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:06]Read from MH i2c: E2 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: E2 0E 00 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: E2 0E 00 C1 15 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 5F [22:41:06]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:41:06]wFMCommunicate OK [22:41:06]SAM_PROTO_GetShiftState done [22:41:06]FM_GetShiftState done [22:41:06]opened in 1715818246 [22:41:06]opened+sec_in_day 1715904646 [22:41:06]quantity*price = 21000 [22:41:06]sum+1 = 21001 [22:41:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 117 16.05.2024 22:41 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5057 ФПД: 62592566001243 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T224108&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5057&fm=62592566001243&tin=02508201610067®Number=0000000000154221&sum=21000 0 [22:41:07]StoreToDocumentArchive [22:41:07]shift 44 fd 5057 [22:41:07]save to /storage/0044/doc_00005057 [22:41:07]save last doc name /storage/0044/doc_00005057 to /storage/kkm_last_doc_name [22:41:07]save OK [22:41:07]Clear old archive folders... [22:41:07]ProcessDocumentItem done err = 0, tmpTLVsize=280 [22:41:07]tlvbuf is 011A2AA0 [22:41:07]SAM_PROTO_ClearQueue [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 09 00 00 [22:41:07]Write to MH i2c: E2 08 00 CE 15 80 09 00 00 00 00 00 00 55 [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 CE 15 00 90 00 57 [22:41:07]RAPDU: 90 00 [22:41:07]wFMCommunicate OK [22:41:07]SAM_PROTO_ClearQueue done [22:41:07]KKMCreateOFDPacket [22:41:07]OFDProtocolAddRootSTLVToBuf [22:41:07]FM_MakeSignedData [22:41:07]FM_MakeSignedData [22:41:07]SAM_PROTO_SignData [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 0D 01 02 [22:41:07]Write to MH i2c: E2 08 00 CF 15 80 0D 01 02 00 00 00 00 5D [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 CF 15 00 90 00 58 [22:41:07]RAPDU: 90 00 [22:41:07]wFMCommunicate OK [22:41:07]wFMCommunicate request_size=255 [22:41:07]MH_SAM_APDU [22:41:07]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 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 84 8B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 [22:41:07]Write to MH i2c: E2 02 01 D0 15 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 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 84 8B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 00 00 FF [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 03 00 D0 15 00 90 00 59 [22:41:07]RAPDU: 90 00 [22:41:07]wFMCommunicate OK [22:41:07]wFMCommunicate request_size=39 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C1 13 00 00 35 04 06 00 38 ED 77 A9 7E 5B [22:41:07]Write to MH i2c: E2 2A 00 D1 15 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C1 13 00 00 35 04 06 00 38 ED 77 A9 7E 5B 00 00 0F [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:08]Read from MH i2c: E2 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: E2 03 00 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: E2 03 00 D1 15 00 90 00 5A [22:41:08]RAPDU: 90 00 [22:41:08]wFMCommunicate OK [22:41:08]wFMCommunicate request_size=4 [22:41:08]MH_SAM_APDU [22:41:08]CAPDU: 80 0D 03 02 [22:41:08]Write to MH i2c: E2 08 00 D2 15 80 0D 03 02 00 00 00 00 62 [22:41:08]Write i2c OK [22:41:08]MH_I2C_Read... [22:41:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:08]Read from MH i2c: E2 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: E2 0B 00 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: E2 0B 00 D2 15 00 A0 50 A4 55 B6 FD 5E 1B 90 00 78 [22:41:08]RAPDU: A0 50 A4 55 B6 FD 5E 1B 90 00 [22:41:08]wFMCommunicate OK [22:41:08]SAM_PROTO_SignData done [22:41:08]FM_MakeSignedData done [22:41:08]CreateOFDProtocolMessage [22:41:08]wFMCommunicate request_size=4 [22:41:08]MH_SAM_APDU [22:41:08]CAPDU: 80 11 00 00 [22:41:08]Write to MH i2c: E2 08 00 D3 15 80 11 00 00 00 00 00 00 62 [22:41:08]Write i2c OK [22:41:08]MH_I2C_Read... [22:41:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:08]Read from MH i2c: E2 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: E2 17 00 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: E2 17 00 D3 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 B7 [22:41:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:41:08]wFMCommunicate OK [22:41:08]CreateOFDProtocolMessage done [22:41:08]OFDSenderStorePacket 5057 [22:41:08]StoreOFDPacket docnum=5057 [22:41:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2C 01 00 00 AC 17 24 01 DB 42 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 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 84 8B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C1 13 00 00 35 04 06 00 38 ED 77 A9 7E 5B A0 50 A4 55 B6 FD 5E 1B [22:41:08]CheckFolder [22:41:08]dirname=/storage/ofd_packets [22:41:08]CheckFolder done [22:41:08]ProducePacketName [22:41:08]name=ofd_packets/00005057 [22:41:08]NVStorageSaveData ofd_packets/00005057 [22:41:08]File name is /storage/ofd_packets/00005057 [22:41:08]Write 330 bytes [22:41:08]NVStorageSaveData done [22:41:08]OFDSenderStorePacket done [22:41:08]KKMCreateOFDPacket done [22:41:08]NVStorageSaveData kkm_last_timestamp [22:41:08]File name is /storage/kkm_last_timestamp [22:41:08]Write 4 bytes [22:41:08]NVStorageSaveData done [22:41:08]ExternCall_PrintAddStr [22:41:08]wPrintStart [22:41:08]Write to MH i2c: 01 00 00 D4 15 E9 [22:41:08]Write i2c OK [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: 01 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: 01 07 00 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: 01 07 00 D4 15 00 00 00 00 00 FF 0F FE [22:41:08]RasterBufferAndPrint [22:41:08]line Счет N : (3)141040 [22:41:08]line ИНН: 02508201610067 [22:41:08]line Контрольно-Кассовый Чек [22:41:08]line ПРОДАЖА [22:41:08]line Товар: 2000036210013 [22:41:08]line Кофе Капучино (GABB TRADE) [22:41:08]line 2.000 * 105.00 [22:41:08]line = 210.00 [22:41:08]line НДС 12% НСП 1% [22:41:08]line > о реализуемом товаре [22:41:08]line ИТОГО: 210.00 [22:41:08]line НСП 1% : 1.86 [22:41:08]line НДС 12% : 22.30 [22:41:08]line Наличными: 210.00 [22:41:08]line Безнал.: 0.00 [22:41:08]line Место: АЗС № 135 "Партнер Нефть" [22:41:08]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [22:41:08]line СНО: Общий режим [22:41:08]line Чек 117 16.05.2024 22:41 [22:41:08]line Смена: 44 ФФД: 1.0 [22:41:08]line ЗНМ: 0300000237 [22:41:08]line РНМ: 0000000000154221 [22:41:08]line Версия ККМ: v1.0 [22:41:08]line ФМ: 0000000000963259 [22:41:08]line ФД: 5057 [22:41:08]line ФПД: 62592566001243 [22:41:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T224108&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5057&fm=62592566001243&tin=02508201610067®Number=0000000000154221&sum=21000 [22:41:08]line 0 [22:41:08]OFD Sender: Processing packet 5057 [packets to send 4, broken 3] [22:41:08]ProducePacketName [22:41:08]name=ofd_packets/00005057 [22:41:08]OFD Sender: To server: pG, [22:41:08]CommunicateWithHost lk.salyk.kg:30040 [22:41:08]ConnectInit lk.salyk.kg [22:41:08]written 0, free lines is 4095 [22:41:08]Connected sock=9 [22:41:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 2C 01 00 00 AC 17 24 01 DB 42 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 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 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 84 8B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C1 13 00 00 35 04 06 00 38 ED 77 A9 7E 5B A0 50 A4 55 B6 FD 5E 1B [22:41:08]Write to MH i2c: 01 00 00 FC 15 11 [22:41:08]Write i2c OK [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: 01 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: 01 07 00 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: 01 07 00 FC 15 00 00 00 00 00 90 0C B4 [22:41:08]RasterBufferAndPrint [22:41:08]line [22:41:08]line [22:41:08]line [22:41:08]line [22:41:08]line [22:41:08]written 0, free lines is 3220 [22:41:08]MH_Cut [22:41:08]Write to MH i2c: D1 01 00 03 16 01 EB [22:41:08]Write i2c OK [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: D1 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: D1 01 00 [22:41:08]MH_I2C_Read... [22:41:08]Read from MH i2c: D1 01 00 03 16 00 EA [22:41:08]Write to MH i2c: 01 00 00 04 16 1A [22:41:08]Write i2c OK [22:41:08]MH_I2C_Read... [22:41:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 A3 CE 47 00 AC B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C1 13 00 00 F4 03 04 00 47 37 46 66 B6 04 01 00 00 9C 8F CF 49 6E DC 93 EE [22:41:09]CommunicateWithHost err = 0 [22:41:09]CheckOFDResponse [22:41:09]1017 (14) - 77093643461234 [22:41:09]1041 (16) - 0000000000963259 [22:41:09]1040 (4) - 5057 [22:41:09]1012 (4) - 16.05.2024 16:41 [22:41:09]1206 (1) - 0 [22:41:09]OFD Sender: Remove packet 5057 [22:41:09]ProducePacketName [22:41:09]name=ofd_packets/00005057 [22:41:09]NVStorageDeleteData [22:41:09]OFD Sender: No OFD packet to send [22:41:10]*** Cut start [22:41:10]*** Partial cut [22:41:10]*** CUTSNS_PIN = 1 [22:41:10]*** CUTSNS_PIN = 0 [22:41:10]*** Brake cut motor [22:41:10]Read from MH i2c: 01 [22:41:10]MH_I2C_Read... [22:41:10]*** Stop cut motor [22:41:10]*** Cut end [22:41:10]Read from MH i2c: 01 07 00 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: 01 07 00 04 16 00 00 00 00 00 FF 0F 2F [22:41:10]process_action close_receipt done [22:41:10]requested_data is exist [22:41:10]produce_requested_data [22:41:10]requested_item fm.sn is exist - process it [22:41:10]wFMCommunicate request_size=4 [22:41:10]MH_SAM_APDU [22:41:10]CAPDU: 80 11 00 00 [22:41:10]Write to MH i2c: E2 08 00 05 16 80 11 00 00 00 00 00 00 95 [22:41:10]Write i2c OK [22:41:10]MH_I2C_Read... [22:41:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:10]Read from MH i2c: E2 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 17 00 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 17 00 05 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 EA [22:41:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:41:10]wFMCommunicate OK [22:41:10]requested_item fd.num is exist - process it [22:41:10]SAM_PROTO_GetFieldsCounters [22:41:10]wFMCommunicate request_size=4 [22:41:10]MH_SAM_APDU [22:41:10]CAPDU: 80 13 00 00 [22:41:10]Write to MH i2c: E2 08 00 06 16 80 13 00 00 00 00 00 00 98 [22:41:10]Write i2c OK [22:41:10]MH_I2C_Read... [22:41:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:10]Read from MH i2c: E2 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 62 00 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 62 00 06 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C1 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 10 [22:41:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C1 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 75 00 00 00 5E 04 04 00 75 00 00 00 57 04 04 00 76 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:41:10]wFMCommunicate OK [22:41:10]SAM_PROTO_GetFieldsCounters done [22:41:10]requested_item shift.num is exist - process it [22:41:10]requested_item shift.opened is exist - process it [22:41:10]req_shift_opened [22:41:10]FM_GetShiftState [22:41:10]SAM_PROTO_GetShiftState [22:41:10]wFMCommunicate request_size=4 [22:41:10]MH_SAM_APDU [22:41:10]CAPDU: 80 13 01 00 [22:41:10]Write to MH i2c: E2 08 00 07 16 80 13 01 00 00 00 00 00 9A [22:41:10]Write i2c OK [22:41:10]MH_I2C_Read... [22:41:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:10]Read from MH i2c: E2 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 0E 00 [22:41:10]MH_I2C_Read... [22:41:10]Read from MH i2c: E2 0E 00 07 16 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A6 [22:41:10]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:41:10]wFMCommunicate OK [22:41:10]SAM_PROTO_GetShiftState done [22:41:10]FM_GetShiftState done [22:41:10]req_shift_opened done [22:41:10]requested_item shift.open_date is exist - process it [22:41:10]req_shift_open_date [22:41:10]req_shift_open_date done [22:41:10]produce_requested_data done [22:41:10]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5057,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [22:41:10]process_action_free close_receipt [22:41:10]json_value_free [22:41:10]json_value_free done [22:41:10]process_json_proto returns [22:41:10]Send response to host [22:41:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5057,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [22:41:10]free response buf [22:41:10]execute_script done [22:41:10]execute_script returns [22:41:10]free content buf [22:41:10]Sock 10.Close socket [22:41:10]Sock 10.Thread stoped [22:41:14]OFD Sender: No OFD packet to send [22:41:19]OFD Sender: No OFD packet to send [22:41:24]OFD Sender: No OFD packet to send [22:41:29]OFD Sender: No OFD packet to send [22:41:34]OFD Sender: No OFD packet to send [22:41:39]OFD Sender: No OFD packet to send [22:41:44]OFD Sender: No OFD packet to send [22:41:49]OFD Sender: No OFD packet to send [22:41:54]OFD Sender: No OFD packet to send [22:41:59]OFD Sender: No OFD packet to send [22:42:04]OFD Sender: No OFD packet to send [22:42:09]OFD Sender: No OFD packet to send [22:42:14]OFD Sender: No OFD packet to send [22:42:19]OFD Sender: No OFD packet to send [22:42:24]OFD Sender: No OFD packet to send [22:42:29]OFD Sender: No OFD packet to send [22:42:34]OFD Sender: No OFD packet to send [22:42:39]OFD Sender: No OFD packet to send [22:42:44]OFD Sender: No OFD packet to send [22:42:49]OFD Sender: No OFD packet to send [22:42:54]OFD Sender: No OFD packet to send [22:42:59]OFD Sender: No OFD packet to send [22:43:04]OFD Sender: No OFD packet to send [22:43:09]OFD Sender: No OFD packet to send [22:43:14]OFD Sender: No OFD packet to send [22:43:19]OFD Sender: No OFD packet to send [22:43:24]OFD Sender: No OFD packet to send [22:43:29]OFD Sender: No OFD packet to send [22:43:34]OFD Sender: No OFD packet to send [22:43:39]OFD Sender: No OFD packet to send [22:43:44]OFD Sender: No OFD packet to send [22:43:49]OFD Sender: No OFD packet to send [22:43:54]OFD Sender: No OFD packet to send [22:43:59]OFD Sender: No OFD packet to send [22:44:04]OFD Sender: No OFD packet to send [22:44:09]OFD Sender: No OFD packet to send [22:44:14]OFD Sender: No OFD packet to send [22:44:19]OFD Sender: No OFD packet to send [22:44:24]OFD Sender: No OFD packet to send [22:44:29]OFD Sender: No OFD packet to send [22:44:34]OFD Sender: No OFD packet to send [22:44:39]OFD Sender: No OFD packet to send [22:44:44]OFD Sender: No OFD packet to send [22:44:49]OFD Sender: No OFD packet to send [22:44:54]OFD Sender: No OFD packet to send [22:44:59]OFD Sender: No OFD packet to send [22:45:04]OFD Sender: No OFD packet to send [22:45:09]OFD Sender: No OFD packet to send [22:45:14]OFD Sender: No OFD packet to send [22:45:19]OFD Sender: No OFD packet to send [22:45:24]OFD Sender: No OFD packet to send [22:45:29]OFD Sender: No OFD packet to send [22:45:34]OFD Sender: No OFD packet to send [22:45:39]OFD Sender: No OFD packet to send [22:45:44]OFD Sender: No OFD packet to send [22:45:49]OFD Sender: No OFD packet to send [22:45:54]OFD Sender: No OFD packet to send [22:45:59]OFD Sender: No OFD packet to send [22:46:04]OFD Sender: No OFD packet to send [22:46:09]OFD Sender: No OFD packet to send [22:46:14]OFD Sender: No OFD packet to send [22:46:19]OFD Sender: No OFD packet to send [22:46:24]OFD Sender: No OFD packet to send [22:46:29]OFD Sender: No OFD packet to send [22:46:34]OFD Sender: No OFD packet to send [22:46:39]OFD Sender: No OFD packet to send [22:46:44]OFD Sender: No OFD packet to send [22:46:49]OFD Sender: No OFD packet to send [22:46:54]OFD Sender: No OFD packet to send [22:46:59]OFD Sender: No OFD packet to send [22:47:04]OFD Sender: No OFD packet to send [22:47:09]OFD Sender: No OFD packet to send [22:47:14]OFD Sender: No OFD packet to send [22:47:19]OFD Sender: No OFD packet to send [22:47:24]OFD Sender: No OFD packet to send [22:47:29]OFD Sender: No OFD packet to send [22:47:34]OFD Sender: No OFD packet to send [22:47:39]OFD Sender: No OFD packet to send [22:47:40]accept exits with 7 [22:47:40]New connection [22:47:40]New thread 3067252068 created [22:47:40]Thread 3067108708 joined [22:47:40]Waiting for new connection... [22:47:40] Sock 7.Parse request [22:47:40]Sock 7.Check first char [22:47:40]Sock 7.First char is OK [22:47:40]request: POST /json_proto HTTP/1.0 [22:47:40]Method: POST [22:47:40]URL: /json_proto [22:47:40]Method is POST - this is cgi request [22:47:40]url: /json_proto [22:47:40]query_string will be loaded in cgi processing [22:47:40]execute_cgi json_proto POST (null) [22:47:40]execute_cgi path=json_proto method=POST [22:47:40]POST find Content-Length [22:47:40]Host: 172.17.44.4:8080 [22:47:40]Content-Length: 909 [22:47:40]Content-Type: application/json [22:47:40] [22:47:40]POST finish read [22:47:40]Found Content-Length = 909 [22:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141041", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:40]execute_script... [22:47: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)141041", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 185.00, "quantity" : 1.000, "sum" : 185.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:47:40]POST & json_proto [22:47:40]process_json_proto [22:47:40]json parsed OK: [22:47:40]protocol is kg_v1.0 [22:47:40]action value=close_receipt [22:47:40]process_action close_receipt [22:47:40]cmd_close_receipt [22:47:40]MH_GetDate [22:47:40]Write to MH i2c: F0 00 00 08 16 0D [22:47:40]Write i2c OK [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: F0 [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: F0 09 00 [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: F0 09 00 08 16 00 0E 8D 46 66 6C E9 28 66 40 [22:47:40]GetLastDocTimeStamp 1715899268 [22:47:40]current date 1715899662 [22:47:40]FM_GetShiftState [22:47:40]SAM_PROTO_GetShiftState [22:47:40]wFMCommunicate request_size=4 [22:47:40]MH_SAM_APDU [22:47:40]CAPDU: 80 13 01 00 [22:47:40]Write to MH i2c: E2 08 00 09 16 80 13 01 00 00 00 00 00 9C [22:47:40]Write i2c OK [22:47:40]MH_I2C_Read... [22:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:40]Read from MH i2c: E2 [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: E2 0E 00 [22:47:40]MH_I2C_Read... [22:47:40]Read from MH i2c: E2 0E 00 09 16 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A8 [22:47:40]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:47:40]wFMCommunicate OK [22:47:40]SAM_PROTO_GetShiftState done [22:47:40]FM_GetShiftState done [22:47:40]opened in 1715818246 [22:47:40]opened+sec_in_day 1715904646 [22:47:40]quantity*price = 26500 [22:47:40]sum+1 = 26501 [22:47:40]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90162602 Энерг напиток Red bull 0,25л 1.000 * 185.00 = 185.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 118 16.05.2024 22:47 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5058 ФПД: 251709459670381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T224742&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5058&fm=251709459670381&tin=02508201610067®Number=0000000000154221&sum=45000 0 [22:47:41]StoreToDocumentArchive [22:47:41]shift 44 fd 5058 [22:47:41]save to /storage/0044/doc_00005058 [22:47:41]save last doc name /storage/0044/doc_00005058 to /storage/kkm_last_doc_name [22:47:41]save OK [22:47:41]Clear old archive folders... [22:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=387 [22:47:41]tlvbuf is 011FEDC0 [22:47:41]SAM_PROTO_ClearQueue [22:47:41]wFMCommunicate request_size=4 [22:47:41]MH_SAM_APDU [22:47:41]CAPDU: 80 09 00 00 [22:47:41]Write to MH i2c: E2 08 00 16 16 80 09 00 00 00 00 00 00 9E [22:47:41]Write i2c OK [22:47:41]MH_I2C_Read... [22:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:47:41]Read from MH i2c: E2 [22:47:41]MH_I2C_Read... [22:47:41]Read from MH i2c: E2 03 00 [22:47:41]MH_I2C_Read... [22:47:41]Read from MH i2c: E2 03 00 16 16 00 90 00 A0 [22:47:41]RAPDU: 90 00 [22:47:41]wFMCommunicate OK [22:47:41]SAM_PROTO_ClearQueue done [22:47:41]KKMCreateOFDPacket [22:47:41]OFDProtocolAddRootSTLVToBuf [22:47:41]FM_MakeSignedData [22:47:41]FM_MakeSignedData [22:47:41]SAM_PROTO_SignData [22:47:41]wFMCommunicate request_size=4 [22:47:41]MH_SAM_APDU [22:47:41]CAPDU: 80 0D 01 02 [22:47:41]Write to MH i2c: E2 08 00 17 16 80 0D 01 02 00 00 00 00 A6 [22:47:41]Write i2c OK [22:47:41]MH_I2C_Read... [22:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:47:41]Read from MH i2c: E2 [22:47:41]MH_I2C_Read... [22:47:41]Read from MH i2c: E2 03 00 [22:47:41]MH_I2C_Read... [22:47:41]Read from MH i2c: E2 03 00 17 16 00 90 00 A1 [22:47:41]RAPDU: 90 00 [22:47:41]wFMCommunicate OK [22:47:41]wFMCommunicate request_size=255 [22:47:41]MH_SAM_APDU [22:47:41]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 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 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 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [22:47:41]Write to MH i2c: E2 02 01 18 16 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 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 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 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 DF [22:47:41]Write i2c OK [22:47:41]MH_I2C_Read... [22:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:42]Read from MH i2c: E2 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 03 00 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 03 00 18 16 00 90 00 A2 [22:47:42]RAPDU: 90 00 [22:47:42]wFMCommunicate OK [22:47:42]wFMCommunicate request_size=146 [22:47:42]MH_SAM_APDU [22:47:42]CAPDU: 80 0D 02 02 8D 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 0E 8D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C2 13 00 00 35 04 06 00 E4 ED AC EE 25 6D [22:47:42]Write to MH i2c: E2 95 00 19 16 80 0D 02 02 8D 00 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 0E 8D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C2 13 00 00 35 04 06 00 E4 ED AC EE 25 6D 00 00 6F [22:47:42]Write i2c OK [22:47:42]MH_I2C_Read... [22:47:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:47:42]Read from MH i2c: E2 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 03 00 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 03 00 19 16 00 90 00 A3 [22:47:42]RAPDU: 90 00 [22:47:42]wFMCommunicate OK [22:47:42]wFMCommunicate request_size=4 [22:47:42]MH_SAM_APDU [22:47:42]CAPDU: 80 0D 03 02 [22:47:42]Write to MH i2c: E2 08 00 1A 16 80 0D 03 02 00 00 00 00 AB [22:47:42]Write i2c OK [22:47:42]MH_I2C_Read... [22:47:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:47:42]Read from MH i2c: E2 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 0B 00 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 0B 00 1A 16 00 D5 3F 8A 7A 0D 52 9B 45 90 00 03 [22:47:42]RAPDU: D5 3F 8A 7A 0D 52 9B 45 90 00 [22:47:42]wFMCommunicate OK [22:47:42]SAM_PROTO_SignData done [22:47:42]FM_MakeSignedData done [22:47:42]CreateOFDProtocolMessage [22:47:42]wFMCommunicate request_size=4 [22:47:42]MH_SAM_APDU [22:47:42]CAPDU: 80 11 00 00 [22:47:42]Write to MH i2c: E2 08 00 1B 16 80 11 00 00 00 00 00 00 AB [22:47:42]Write i2c OK [22:47:42]MH_I2C_Read... [22:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:42]Read from MH i2c: E2 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 17 00 [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: E2 17 00 1B 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 00 [22:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:47:42]wFMCommunicate OK [22:47:42]CreateOFDProtocolMessage done [22:47:42]OFDSenderStorePacket 5058 [22:47:42]StoreOFDPacket docnum=5058 [22:47:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 97 01 00 00 35 1D 8F 01 20 06 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 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 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 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 0E 8D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C2 13 00 00 35 04 06 00 E4 ED AC EE 25 6D D5 3F 8A 7A 0D 52 9B 45 [22:47:42]CheckFolder [22:47:42]dirname=/storage/ofd_packets [22:47:42]CheckFolder done [22:47:42]ProducePacketName [22:47:42]name=ofd_packets/00005058 [22:47:42]NVStorageSaveData ofd_packets/00005058 [22:47:42]File name is /storage/ofd_packets/00005058 [22:47:42]Write 437 bytes [22:47:42]NVStorageSaveData done [22:47:42]OFDSenderStorePacket done [22:47:42]KKMCreateOFDPacket done [22:47:42]NVStorageSaveData kkm_last_timestamp [22:47:42]File name is /storage/kkm_last_timestamp [22:47:42]Write 4 bytes [22:47:42]NVStorageSaveData done [22:47:42]ExternCall_PrintAddStr [22:47:42]wPrintStart [22:47:42]Write to MH i2c: 01 00 00 1C 16 32 [22:47:42]Write i2c OK [22:47:42]MH_I2C_Read... [22:47:42]Read from MH i2c: 01 [22:47:42]MH_I2C_Read... [22:47:42]OFD Sender: Processing packet 5058 [packets to send 4, broken 3] [22:47:42]Read from MH i2c: 01 ProducePacketName [22:47:42]07 name=ofd_packets/00005058 [22:47:42]00 [22:47:42]OFD Sender: To server: pG, [22:47:42]MH_I2C_Read... [22:47:42]CommunicateWithHost lk.salyk.kg:30040 [22:47:42]ConnectInit lk.salyk.kg [22:47:42]Read from MH i2c: 01 07 00 1C 16 00 00 00 00 00 FF 0F 47 [22:47:42]RasterBufferAndPrint [22:47:42]line Счет N : (3)141041 [22:47:42]line ИНН: 02508201610067 [22:47:42]line Контрольно-Кассовый Чек [22:47:42]line ПРОДАЖА [22:47:42]line Товар: 90448300 [22:47:42]line Энерг напиток Red Bull 0,355л [22:47:42]line 1.000 * 265.00 [22:47:42]line = 265.00 [22:47:42]line НДС 12% НСП 1% [22:47:42]line > о реализуемом товаре [22:47:42]line Товар: 90162602 [22:47:42]line Энерг напиток Red bull 0,25л [22:47:42]line 1.000 * 185.00 [22:47:42]line = 185.00 [22:47:42]line НДС 12% НСП 1% [22:47:42]line > о реализуемом товаре [22:47:42]line ИТОГО: 450.00 [22:47:42]line НСП 1% : 3.98 [22:47:42]line НДС 12% : 47.79 [22:47:42]line Наличными: 450.00 [22:47:42]line Безнал.: 0.00 [22:47:42]line Место: АЗС № 135 "Партнер Нефть" [22:47:42]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [22:47:42]line СНО: Общий режим [22:47:42]line Чек 118 16.05.2024 22:47 [22:47:42]line Смена: 44 ФФД: 1.0 [22:47:42]line ЗНМ: 0300000237 [22:47:42]line РНМ: 0000000000154221 [22:47:42]line Версия ККМ: v1.0 [22:47:42]line ФМ: 0000000000963259 [22:47:42]line ФД: 5058 [22:47:42]line ФПД: 251709459670381 [22:47:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T224742&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5058&fm=251709459670381&tin=02508201610067®Number=0000000000154221&sum=45000 [22:47:42]line 0 [22:47:42]written 0, free lines is 4095 [22:47:43]Connected sock=10 [22:47:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 97 01 00 00 35 1D 8F 01 20 06 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 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 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 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 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 E8 03 00 00 00 00 00 37 04 06 00 44 48 00 00 00 00 13 04 06 00 44 48 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 AF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 12 00 00 00 00 07 04 06 00 C8 AF 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 0E 8D 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C2 13 00 00 35 04 06 00 E4 ED AC EE 25 6D D5 3F 8A 7A 0D 52 9B 45 [22:47:43]Write to MH i2c: 01 00 00 4A 16 60 [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: 01 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: 01 07 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: 01 07 00 4A 16 00 00 00 00 00 24 0C 97 [22:47:43]RasterBufferAndPrint [22:47:43]line [22:47:43]line [22:47:43]line [22:47:43]line [22:47:43]line [22:47:43]written 0, free lines is 3113 [22:47:43]MH_Cut [22:47:43]Write to MH i2c: D1 01 00 51 16 01 39 [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: D1 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: D1 01 00 [22:47:43]MH_I2C_Read... [22:47:43]Read from MH i2c: D1 01 00 51 16 00 38 [22:47:43]Write to MH i2c: 01 00 00 52 16 68 [22:47:43]Write i2c OK [22:47:43]MH_I2C_Read... [22:47:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 5B 96 47 00 31 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C2 13 00 00 F4 03 04 00 D1 38 46 66 B6 04 01 00 00 77 0A EE B1 4D AC CD 2D [22:47:43]CommunicateWithHost err = 0 [22:47:43]CheckOFDResponse [22:47:43]1017 (14) - 77093643461234 [22:47:43]1041 (16) - 0000000000963259 [22:47:43]1040 (4) - 5058 [22:47:43]1012 (4) - 16.05.2024 16:48 [22:47:43]1206 (1) - 0 [22:47:43]OFD Sender: Remove packet 5058 [22:47:43]ProducePacketName [22:47:43]name=ofd_packets/00005058 [22:47:43]NVStorageDeleteData [22:47:43]OFD Sender: No OFD packet to send [22:47:44]*** Cut start [22:47:44]*** Partial cut [22:47:44]*** CUTSNS_PIN = 1 [22:47:44]*** CUTSNS_PIN = 0 [22:47:44]*** Brake cut motor [22:47:45]Read from MH i2c: 01 [22:47:45]MH_I2C_Read... [22:47:45]*** Stop cut motor [22:47:45]*** Cut end [22:47:45]Read from MH i2c: 01 07 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: 01 07 00 52 16 00 00 00 00 00 FF 0F 7D [22:47:45]process_action close_receipt done [22:47:45]requested_data is exist [22:47:45]produce_requested_data [22:47:45]requested_item fm.sn is exist - process it [22:47:45]wFMCommunicate request_size=4 [22:47:45]MH_SAM_APDU [22:47:45]CAPDU: 80 11 00 00 [22:47:45]Write to MH i2c: E2 08 00 53 16 80 11 00 00 00 00 00 00 E3 [22:47:45]Write i2c OK [22:47:45]MH_I2C_Read... [22:47:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:47:45]Read from MH i2c: E2 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 17 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 17 00 53 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 38 [22:47:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:47:45]wFMCommunicate OK [22:47:45]requested_item fd.num is exist - process it [22:47:45]SAM_PROTO_GetFieldsCounters [22:47:45]wFMCommunicate request_size=4 [22:47:45]MH_SAM_APDU [22:47:45]CAPDU: 80 13 00 00 [22:47:45]Write to MH i2c: E2 08 00 54 16 80 13 00 00 00 00 00 00 E6 [22:47:45]Write i2c OK [22:47:45]MH_I2C_Read... [22:47:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:47:45]Read from MH i2c: E2 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 62 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 62 00 54 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C2 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [22:47:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C2 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 76 00 00 00 5E 04 04 00 76 00 00 00 57 04 04 00 77 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:47:45]wFMCommunicate OK [22:47:45]SAM_PROTO_GetFieldsCounters done [22:47:45]requested_item shift.num is exist - process it [22:47:45]requested_item shift.opened is exist - process it [22:47:45]req_shift_opened [22:47:45]FM_GetShiftState [22:47:45]SAM_PROTO_GetShiftState [22:47:45]wFMCommunicate request_size=4 [22:47:45]MH_SAM_APDU [22:47:45]CAPDU: 80 13 01 00 [22:47:45]Write to MH i2c: E2 08 00 55 16 80 13 01 00 00 00 00 00 E8 [22:47:45]Write i2c OK [22:47:45]MH_I2C_Read... [22:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:47:45]Read from MH i2c: E2 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 0E 00 [22:47:45]MH_I2C_Read... [22:47:45]Read from MH i2c: E2 0E 00 55 16 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F4 [22:47:45]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:47:45]wFMCommunicate OK [22:47:45]SAM_PROTO_GetShiftState done [22:47:45]FM_GetShiftState done [22:47:45]req_shift_opened done [22:47:45]requested_item shift.open_date is exist - process it [22:47:45]req_shift_open_date [22:47:45]req_shift_open_date done [22:47:45]produce_requested_data done [22:47:45]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5058,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [22:47:45]process_action_free close_receipt [22:47:45]json_value_free [22:47:45]json_value_free done [22:47:45]process_json_proto returns [22:47:45]Send response to host [22:47:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5058,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [22:47:45]free response buf [22:47:45]execute_script done [22:47:45]execute_script returns [22:47:45]free content buf [22:47:45]Sock 7.Close socket [22:47:45]Sock 7.Thread stoped [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:24]OFD Sender: No OFD packet to send [22:48:29]OFD Sender: No OFD packet to send [22:48:34]OFD Sender: No OFD packet to send [22:48:39]OFD Sender: No OFD packet to send [22:48:44]OFD Sender: No OFD packet to send [22:48:49]OFD Sender: No OFD packet to send [22:48:54]OFD Sender: No OFD packet to send [22:48:59]OFD Sender: No OFD packet to send [22:49:04]OFD Sender: No OFD packet to send [22:49:09]OFD Sender: No OFD packet to send [22:49:14]OFD Sender: No OFD packet to send [22:49:19]OFD Sender: No OFD packet to send [22:49:24]OFD Sender: No OFD packet to send [22:49:29]OFD Sender: No OFD packet to send [22:49:34]OFD Sender: No OFD packet to send [22:49:39]OFD Sender: No OFD packet to send [22:49:44]OFD Sender: No OFD packet to send [22:49:49]OFD Sender: No OFD packet to send [22:49:54]OFD Sender: No OFD packet to send [22:49:59]OFD Sender: No OFD packet to send [22:50:04]OFD Sender: No OFD packet to send [22:50:09]OFD Sender: No OFD packet to send [22:50:14]OFD Sender: No OFD packet to send [22:50:19]OFD Sender: No OFD packet to send [22:50:24]OFD Sender: No OFD packet to send [22:50:29]OFD Sender: No OFD packet to send [22:50:34]OFD Sender: No OFD packet to send [22:50:39]OFD Sender: No OFD packet to send [22:50:44]OFD Sender: No OFD packet to send [22:50:49]OFD Sender: No OFD packet to send [22:50:54]OFD Sender: No OFD packet to send [22:50:59]OFD Sender: No OFD packet to send [22:51:04]OFD Sender: No OFD packet to send [22:51:09]OFD Sender: No OFD packet to send [22:51:14]OFD Sender: No OFD packet to send [22:51:19]OFD Sender: No OFD packet to send [22:51:24]OFD Sender: No OFD packet to send [22:51:29]OFD Sender: No OFD packet to send [22:51:34]OFD Sender: No OFD packet to send [22:51:39]OFD Sender: No OFD packet to send [22:51:44]OFD Sender: No OFD packet to send [22:51:49]OFD Sender: No OFD packet to send [22:51:54]OFD Sender: No OFD packet to send [22:51:59]OFD Sender: No OFD packet to send [22:52:04]OFD Sender: No OFD packet to send [22:52:09]OFD Sender: No OFD packet to send [22:52:14]OFD Sender: No OFD packet to send [22:52:19]OFD Sender: No OFD packet to send [22:52:24]OFD Sender: No OFD packet to send [22:52:29]OFD Sender: No OFD packet to send [22:52:34]OFD Sender: No OFD packet to send [22:52:39]OFD Sender: No OFD packet to send [22:52:44]OFD Sender: No OFD packet to send [22:52:49]OFD Sender: No OFD packet to send [22:52:54]OFD Sender: No OFD packet to send [22:52:59]OFD Sender: No OFD packet to send [22:53:04]OFD Sender: No OFD packet to send [22:53:09]OFD Sender: No OFD packet to send [22:53:14]OFD Sender: No OFD packet to send [22:53:19]OFD Sender: No OFD packet to send [22:53:24]OFD Sender: No OFD packet to send [22:53:29]OFD Sender: No OFD packet to send [22:53:34]OFD Sender: No OFD packet to send [22:53:39]OFD Sender: No OFD packet to send [22:53:44]OFD Sender: No OFD packet to send [22:53:49]OFD Sender: No OFD packet to send [22:53:54]OFD Sender: No OFD packet to send [22:53:59]OFD Sender: No OFD packet to send [22:54:04]OFD Sender: No OFD packet to send [22:54:09]OFD Sender: No OFD packet to send [22:54:14]OFD Sender: No OFD packet to send [22:54:19]OFD Sender: No OFD packet to send [22:54:24]OFD Sender: No OFD packet to send [22:54:29]OFD Sender: No OFD packet to send [22:54:34]OFD Sender: No OFD packet to send [22:54:39]OFD Sender: No OFD packet to send [22:54:44]OFD Sender: No OFD packet to send [22:54:49]OFD Sender: No OFD packet to send [22:54:54]OFD Sender: No OFD packet to send [22:54:59]OFD Sender: No OFD packet to send [22:55:04]OFD Sender: No OFD packet to send [22:55:09]OFD Sender: No OFD packet to send [22:55:14]OFD Sender: No OFD packet to send [22:55:19]OFD Sender: No OFD packet to send [22:55:24]OFD Sender: No OFD packet to send [22:55:29]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:13]accept exits with 9 [22:56:13]New connection [22:56:13]New thread 3067108708 created [22:56:13]Thread 3067252068 joined [22:56:13]Waiting for new connection... [22:56:13] Sock 9.Parse request [22:56:13]Sock 9.Check first char [22:56:13]Sock 9.First char is OK [22:56:13]request: POST /json_proto HTTP/1.0 [22:56:13]Method: POST [22:56:13]URL: /json_proto [22:56:13]Method is POST - this is cgi request [22:56:13]url: /json_proto [22:56:13]query_string will be loaded in cgi processing [22:56:13]execute_cgi json_proto POST (null) [22:56:13]execute_cgi path=json_proto method=POST [22:56:13]POST find Content-Length [22:56:13]Host: 172.17.44.4:8080 [22:56:13]Content-Length: 683 [22:56:13]Content-Type: application/json [22:56:13] [22:56:13]POST finish read [22:56:13]Found Content-Length = 683 [22:56:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:13]execute_script... [22:56:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 14.980, "sum" : 1000.66, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:13]POST & json_proto [22:56:13]process_json_proto [22:56:13]json parsed OK: [22:56:13]protocol is kg_v1.0 [22:56:13]action value=close_receipt [22:56:13]process_action close_receipt [22:56:13]cmd_close_receipt [22:56:13]MH_GetDate [22:56:13]Write to MH i2c: F0 00 00 56 16 5B [22:56:13]Write i2c OK [22:56:13]MH_I2C_Read... [22:56:13]Read from MH i2c: F0 [22:56:13]MH_I2C_Read... [22:56:13]Read from MH i2c: F0 09 00 [22:56:13]MH_I2C_Read... [22:56:13]Read from MH i2c: F0 09 00 56 16 00 0F 8F 46 66 6C E9 28 66 91 [22:56:13]GetLastDocTimeStamp 1715899662 [22:56:13]current date 1715900175 [22:56:13]FM_GetShiftState [22:56:13]SAM_PROTO_GetShiftState [22:56:13]wFMCommunicate request_size=4 [22:56:13]MH_SAM_APDU [22:56:13]CAPDU: 80 13 01 00 [22:56:13]Write to MH i2c: E2 08 00 57 16 80 13 01 00 00 00 00 00 EA [22:56:13]Write i2c OK [22:56:13]MH_I2C_Read... [22:56:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:13]Read from MH i2c: E2 [22:56:13]MH_I2C_Read... [22:56:13]Read from MH i2c: E2 0E 00 [22:56:13]MH_I2C_Read... [22:56:13]Read from MH i2c: E2 0E 00 57 16 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 F6 [22:56:13]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:56:13]wFMCommunicate OK [22:56:13]SAM_PROTO_GetShiftState done [22:56:13]FM_GetShiftState done [22:56:13]opened in 1715818246 [22:56:13]opened+sec_in_day 1715904646 [22:56:13]quantity*price = 100066 [22:56:13]sum+1 = 100067 [22:56:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.66 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.26 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 119 16.05.2024 22:56 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5059 ФПД: 74655798887565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T225615&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5059&fm=74655798887565&tin=02508201610067®Number=0000000000154221&sum=100000 [22:56:14]StoreToDocumentArchive [22:56:14]shift 44 fd 5059 [22:56:14]save to /storage/0044/doc_00005059 [22:56:14]save last doc name /storage/0044/doc_00005059 to /storage/kkm_last_doc_name [22:56:14]save OK [22:56:14]Clear old archive folders... [22:56:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:14]tlvbuf is 011FE2D0 [22:56:14]SAM_PROTO_ClearQueue [22:56:14]wFMCommunicate request_size=4 [22:56:14]MH_SAM_APDU [22:56:14]CAPDU: 80 09 00 00 [22:56:14]Write to MH i2c: E2 08 00 64 16 80 09 00 00 00 00 00 00 EC [22:56:14]Write i2c OK [22:56:14]MH_I2C_Read... [22:56:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:14]Read from MH i2c: E2 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 03 00 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 03 00 64 16 00 90 00 EE [22:56:14]RAPDU: 90 00 [22:56:14]wFMCommunicate OK [22:56:14]SAM_PROTO_ClearQueue done [22:56:14]KKMCreateOFDPacket [22:56:14]OFDProtocolAddRootSTLVToBuf [22:56:14]FM_MakeSignedData [22:56:14]FM_MakeSignedData [22:56:14]SAM_PROTO_SignData [22:56:14]wFMCommunicate request_size=4 [22:56:14]MH_SAM_APDU [22:56:14]CAPDU: 80 0D 01 02 [22:56:14]Write to MH i2c: E2 08 00 65 16 80 0D 01 02 00 00 00 00 F4 [22:56:14]Write i2c OK [22:56:14]MH_I2C_Read... [22:56:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:14]Read from MH i2c: E2 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 03 00 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 03 00 65 16 00 90 00 EF [22:56:14]RAPDU: 90 00 [22:56:14]wFMCommunicate OK [22:56:14]wFMCommunicate request_size=255 [22:56:14]MH_SAM_APDU [22:56:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0F 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C3 13 00 00 35 04 06 00 43 [22:56:14]Write to MH i2c: E2 02 01 66 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0F 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C3 13 00 00 35 04 06 00 43 00 00 C5 [22:56:14]Write i2c OK [22:56:14]MH_I2C_Read... [22:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:14]Read from MH i2c: E2 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 03 00 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 03 00 66 16 00 90 00 F0 [22:56:14]RAPDU: 90 00 [22:56:14]wFMCommunicate OK [22:56:14]wFMCommunicate request_size=10 [22:56:14]MH_SAM_APDU [22:56:14]CAPDU: 80 0D 02 02 05 E6 28 5F 84 8D [22:56:14]Write to MH i2c: E2 0D 00 67 16 80 0D 02 02 05 00 E6 28 5F 84 8D 00 00 7F [22:56:14]Write i2c OK [22:56:14]MH_I2C_Read... [22:56:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:14]Read from MH i2c: E2 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 03 00 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 03 00 67 16 00 90 00 F1 [22:56:14]RAPDU: 90 00 [22:56:14]wFMCommunicate OK [22:56:14]wFMCommunicate request_size=4 [22:56:14]MH_SAM_APDU [22:56:14]CAPDU: 80 0D 03 02 [22:56:14]Write to MH i2c: E2 08 00 68 16 80 0D 03 02 00 00 00 00 F9 [22:56:14]Write i2c OK [22:56:14]MH_I2C_Read... [22:56:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:14]Read from MH i2c: E2 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 0B 00 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 0B 00 68 16 00 4E 16 99 B1 40 7B 9D FE 90 00 FE [22:56:14]RAPDU: 4E 16 99 B1 40 7B 9D FE 90 00 [22:56:14]wFMCommunicate OK [22:56:14]SAM_PROTO_SignData done [22:56:14]FM_MakeSignedData done [22:56:14]CreateOFDProtocolMessage [22:56:14]wFMCommunicate request_size=4 [22:56:14]MH_SAM_APDU [22:56:14]CAPDU: 80 11 00 00 [22:56:14]Write to MH i2c: E2 08 00 69 16 80 11 00 00 00 00 00 00 F9 [22:56:14]Write i2c OK [22:56:14]MH_I2C_Read... [22:56:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:14]Read from MH i2c: E2 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 17 00 [22:56:14]MH_I2C_Read... [22:56:14]Read from MH i2c: E2 17 00 69 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 4E [22:56:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:56:15]wFMCommunicate OK [22:56:15]CreateOFDProtocolMessage done [22:56:15]OFDSenderStorePacket 5059 [22:56:15]StoreOFDPacket docnum=5059 [22:56:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 22 E6 07 01 DE 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0F 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C3 13 00 00 35 04 06 00 43 E6 28 5F 84 8D 4E 16 99 B1 40 7B 9D FE [22:56:15]CheckFolder [22:56:15]dirname=/storage/ofd_packets [22:56:15]CheckFolder done [22:56:15]ProducePacketName [22:56:15]name=ofd_packets/00005059 [22:56:15]NVStorageSaveData ofd_packets/00005059 [22:56:15]File name is /storage/ofd_packets/00005059 [22:56:15]Write 301 bytes [22:56:15]NVStorageSaveData done [22:56:15]OFDSenderStorePacket done [22:56:15]KKMCreateOFDPacket done [22:56:15]NVStorageSaveData kkm_last_timestamp [22:56:15]File name is /storage/kkm_last_timestamp [22:56:15]Write 4 bytes [22:56:15]NVStorageSaveData done [22:56:15]ExternCall_PrintAddStr [22:56:15]wPrintStart [22:56:15]Write to MH i2c: 01 00 00 6A 16 80 [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: 01 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: 01 07 00 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: 01 07 00 6A 16 00 00 00 00 00 FF 0F 95 [22:56:15]RasterBufferAndPrint [22:56:15]line Счет N : (1)1993278 [22:56:15]line ИНН: 02508201610067 [22:56:15]line Контрольно-Кассовый Чек [22:56:15]line ПРОДАЖА [22:56:15]line ТРК (МРК, ГНК) : 53 [22:56:15]line Товар: 2710124130 [22:56:15]line Аи-92-К-4 [22:56:15]line 14.980 * 66.80 [22:56:15]line = 1000.66 [22:56:15]line НДС 12% НСП 1% [22:56:15]line > о реализуемом товаре [22:56:15]line ОКРУГЛЕНИЕ: -0.66 [22:56:15]line ИТОГО: 1000.00 [22:56:15]line Внесено: 1000.00 [22:56:15]line СДАЧА: 0.00 [22:56:15]line НСП 1% : 8.85 [22:56:15]line НДС 12% : 106.26 [22:56:15]line Наличными: 1000.00 [22:56:15]line Безнал.: 0.00 [22:56:15]line Место: АЗС № 135 "Партнер Нефть" [22:56:15]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [22:56:15]line СНО: Общий режим [22:56:15]line Чек 119 16.05.2024 22:56 [22:56:15]line Смена: 44 ФФД: 1.0 [22:56:15]line ЗНМ: 0300000237 [22:56:15]line РНМ: 0000000000154221 [22:56:15]line Версия ККМ: v1.0 [22:56:15]line ФМ: 0000000000963259 [22:56:15]line ФД: 5059 [22:56:15]line ФПД: 74655798887565 [22:56:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T225615&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5059&fm=74655798887565&tin=02508201610067®Number=0000000000154221&sum=100000 [22:56:15]OFD Sender: Processing packet 5059 [packets to send 4, broken 3] [22:56:15]ProducePacketName [22:56:15]name=ofd_packets/00005059 [22:56:15]OFD Sender: To server: pG, [22:56:15]CommunicateWithHost lk.salyk.kg:30040 [22:56:15]ConnectInit lk.salyk.kg [22:56:15]written 0, free lines is 4095 [22:56:15]Connected sock=10 [22: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 33 32 35 39 0F 01 00 00 22 E6 07 01 DE 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 84 3A 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 E2 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 0F 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C3 13 00 00 35 04 06 00 43 E6 28 5F 84 8D 4E 16 99 B1 40 7B 9D FE [22:56:15]Write to MH i2c: 01 00 00 95 16 AB [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: 01 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: 01 07 00 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: 01 07 00 95 16 00 00 00 00 00 6C 0C 2A [22:56:15]RasterBufferAndPrint [22:56:15]line [22:56:15]line [22:56:15]line [22:56:15]line [22:56:15]line [22:56:15]written 0, free lines is 3184 [22:56:15]MH_Cut [22:56:15]Write to MH i2c: D1 01 00 9C 16 01 84 [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: D1 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: D1 01 00 [22:56:15]MH_I2C_Read... [22:56:15]Read from MH i2c: D1 01 00 9C 16 00 83 [22:56:15]Write to MH i2c: 01 00 00 9D 16 B3 [22:56:15]Write i2c OK [22:56:15]MH_I2C_Read... [22:56:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 FA C1 47 00 DD 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C3 13 00 00 F4 03 04 00 D2 3A 46 66 B6 04 01 00 00 66 94 F3 60 E9 91 CF DD [22:56:16]CommunicateWithHost err = 0 [22:56:16]CheckOFDResponse [22:56:16]1017 (14) - 77093643461234 [22:56:16]1041 (16) - 0000000000963259 [22:56:16]1040 (4) - 5059 [22:56:16]1012 (4) - 16.05.2024 16:56 [22:56:16]1206 (1) - 0 [22:56:16]OFD Sender: Remove packet 5059 [22:56:16]ProducePacketName [22:56:16]name=ofd_packets/00005059 [22:56:16]NVStorageDeleteData [22:56:17]*** Cut start [22:56:17]*** Partial cut [22:56:17]*** CUTSNS_PIN = 1 [22:56:17]*** CUTSNS_PIN = 0 [22:56:17]OFD Sender: No OFD packet to send [22:56:17]*** Brake cut motor [22:56:17]Read from MH i2c: 01 [22:56:17]MH_I2C_Read... [22:56:17]*** Stop cut motor [22:56:17]*** Cut end [22:56:17]Read from MH i2c: 01 07 00 [22:56:17]MH_I2C_Read... [22:56:17]Read from MH i2c: 01 07 00 9D 16 00 00 00 00 00 FF 0F C8 [22:56:17]process_action close_receipt done [22:56:17]requested_data is exist [22:56:17]produce_requested_data [22:56:17]requested_item fm.sn is exist - process it [22:56:17]wFMCommunicate request_size=4 [22:56:17]MH_SAM_APDU [22:56:17]CAPDU: 80 11 00 00 [22:56:17]Write to MH i2c: E2 08 00 9E 16 80 11 00 00 00 00 00 00 2E [22:56:17]Write i2c OK [22:56:17]MH_I2C_Read... [22:56:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:17]Read from MH i2c: E2 [22:56:17]MH_I2C_Read... [22:56:17]Read from MH i2c: E2 17 00 [22:56:17]MH_I2C_Read... [22:56:17]Read from MH i2c: E2 17 00 9E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 83 [22:56:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:56:17]wFMCommunicate OK [22:56:17]requested_item fd.num is exist - process it [22:56:17]SAM_PROTO_GetFieldsCounters [22:56:17]wFMCommunicate request_size=4 [22:56:17]MH_SAM_APDU [22:56:17]CAPDU: 80 13 00 00 [22:56:17]Write to MH i2c: E2 08 00 9F 16 80 13 00 00 00 00 00 00 31 [22:56:17]Write i2c OK [22:56:17]MH_I2C_Read... [22:56:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:17]Read from MH i2c: E2 [22:56:17]MH_I2C_Read... [22:56:17]Read from MH i2c: E2 62 00 [22:56:17]MH_I2C_Read... [22:56:17]Read from MH i2c: E2 62 00 9F 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C3 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [22: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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C3 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 77 00 00 00 5E 04 04 00 77 00 00 00 57 04 04 00 78 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:17]wFMCommunicate OK [22:56:17]SAM_PROTO_GetFieldsCounters done [22:56:17]requested_item shift.num is exist - process it [22:56:17]requested_item shift.opened is exist - process it [22:56:17]req_shift_opened [22:56:17]FM_GetShiftState [22:56:17]SAM_PROTO_GetShiftState [22:56:17]wFMCommunicate request_size=4 [22:56:17]MH_SAM_APDU [22:56:17]CAPDU: 80 13 01 00 [22:56:17]Write to MH i2c: E2 08 00 A0 16 80 13 01 00 00 00 00 00 33 [22:56:17]Write i2c OK [22:56:17]MH_I2C_Read... [22:56:17]Read from MH i2c: E2 [22:56:17]MH_I2C_Read... [22:56:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:17]Read from MH i2c: E2 0E 00 [22:56:17]MH_I2C_Read... [22:56:17]Read from MH i2c: E2 0E 00 A0 16 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3F [22:56:17]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:56:17]wFMCommunicate OK [22:56:17]SAM_PROTO_GetShiftState done [22:56:17]FM_GetShiftState done [22:56:17]req_shift_opened done [22:56:17]requested_item shift.open_date is exist - process it [22:56:17]req_shift_open_date [22:56:17]req_shift_open_date done [22:56:17]produce_requested_data done [22:56:17]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5059,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [22:56:17]process_action_free close_receipt [22:56:17]json_value_free [22:56:17]json_value_free done [22:56:17]process_json_proto returns [22:56:17]Send response to host [22:56:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5059,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [22:56:17]free response buf [22:56:17]execute_script done [22:56:17]execute_script returns [22:56:17]free content buf [22:56:17]Sock 9.Close socket [22:56:17]Sock 9.Thread stoped [22:56:22]OFD Sender: No OFD packet to send [22:56:22]accept exits with 7 [22:56:22]New connection [22:56:22]New thread 3067252068 created [22:56:22]Thread 3067108708 joined [22:56:22]Waiting for new connection... [22:56:22] Sock 7.Parse request [22:56:22]Sock 7.Check first char [22:56:22]Sock 7.First char is OK [22:56:22]request: POST /json_proto HTTP/1.0 [22:56:22]Method: POST [22:56:22]URL: /json_proto [22:56:22]Method is POST - this is cgi request [22:56:22]url: /json_proto [22:56:22]query_string will be loaded in cgi processing [22:56:22]execute_cgi json_proto POST (null) [22:56:22]execute_cgi path=json_proto method=POST [22:56:22]POST find Content-Length [22:56:22]Host: 172.17.44.4:8080 [22:56:22]Content-Length: 678 [22:56:22]Content-Type: application/json [22:56:22] [22:56:22]POST finish read [22:56:22]Found Content-Length = 678 [22:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:22]execute_script... [22:56:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 7.490, "sum" : 500.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:22]POST & json_proto [22:56:22]process_json_proto [22:56:22]json parsed OK: [22:56:22]protocol is kg_v1.0 [22:56:22]action value=close_receipt [22:56:22]process_action close_receipt [22:56:22]cmd_close_receipt [22:56:22]MH_GetDate [22:56:22]Write to MH i2c: F0 00 00 A1 16 A6 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: F0 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: F0 09 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: F0 09 00 A1 16 00 18 8F 46 66 6C E9 28 66 E5 [22:56:22]GetLastDocTimeStamp 1715900175 [22:56:22]current date 1715900184 [22:56:22]FM_GetShiftState [22:56:22]SAM_PROTO_GetShiftState [22:56:22]wFMCommunicate request_size=4 [22:56:22]MH_SAM_APDU [22:56:22]CAPDU: 80 13 01 00 [22:56:22]Write to MH i2c: E2 08 00 A2 16 80 13 01 00 00 00 00 00 35 [22:56:22]Write i2c OK [22:56:22]MH_I2C_Read... [22:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:22]Read from MH i2c: E2 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 0E 00 [22:56:22]MH_I2C_Read... [22:56:22]Read from MH i2c: E2 0E 00 A2 16 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 41 [22:56:22]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:56:22]wFMCommunicate OK [22:56:22]SAM_PROTO_GetShiftState done [22:56:22]FM_GetShiftState done [22:56:22]opened in 1715818246 [22:56:22]opened+sec_in_day 1715904646 [22:56:22]quantity*price = 50033 [22:56:22]sum+1 = 50034 [22:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.13 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 120 16.05.2024 22:56 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5060 ФПД: 17108232683590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T225624&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5060&fm=17108232683590&tin=02508201610067®Number=0000000000154221&sum=50000 [22:56:23]StoreToDocumentArchive [22:56:23]shift 44 fd 5060 [22:56:23]save to /storage/0044/doc_00005060 [22:56:23]save last doc name /storage/0044/doc_00005060 to /storage/kkm_last_doc_name [22:56:23]save OK [22:56:23]Clear old archive folders... [22:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:56:23]tlvbuf is 011FEE20 [22:56:23]SAM_PROTO_ClearQueue [22:56:23]wFMCommunicate request_size=4 [22:56:23]MH_SAM_APDU [22:56:23]CAPDU: 80 09 00 00 [22:56:23]Write to MH i2c: E2 08 00 AF 16 80 09 00 00 00 00 00 00 37 [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:23]Read from MH i2c: E2 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: E2 03 00 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: E2 03 00 AF 16 00 90 00 39 [22:56:23]RAPDU: 90 00 [22:56:23]wFMCommunicate OK [22:56:23]SAM_PROTO_ClearQueue done [22:56:23]KKMCreateOFDPacket [22:56:23]OFDProtocolAddRootSTLVToBuf [22:56:23]FM_MakeSignedData [22:56:23]FM_MakeSignedData [22:56:23]SAM_PROTO_SignData [22:56:23]wFMCommunicate request_size=4 [22:56:23]MH_SAM_APDU [22:56:23]CAPDU: 80 0D 01 02 [22:56:23]Write to MH i2c: E2 08 00 B0 16 80 0D 01 02 00 00 00 00 3F [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:23]Read from MH i2c: E2 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: E2 03 00 [22:56:23]MH_I2C_Read... [22:56:23]Read from MH i2c: E2 03 00 B0 16 00 90 00 3A [22:56:23]RAPDU: 90 00 [22:56:23]wFMCommunicate OK [22:56:23]wFMCommunicate request_size=255 [22:56:23]MH_SAM_APDU [22:56:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 18 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C4 13 00 00 35 04 06 00 0F [22:56:23]Write to MH i2c: E2 02 01 B1 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 18 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C4 13 00 00 35 04 06 00 0F 00 00 99 [22:56:23]Write i2c OK [22:56:23]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 03 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 03 00 B1 16 00 90 00 3B [22:56:24]RAPDU: 90 00 [22:56:24]wFMCommunicate OK [22:56:24]wFMCommunicate request_size=10 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 0D 02 02 05 8F 52 21 C0 46 [22:56:24]Write to MH i2c: E2 0D 00 B2 16 80 0D 02 02 05 00 8F 52 21 C0 46 00 00 54 [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 03 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 03 00 B2 16 00 90 00 3C [22:56:24]RAPDU: 90 00 [22:56:24]wFMCommunicate OK [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 0D 03 02 [22:56:24]Write to MH i2c: E2 08 00 B3 16 80 0D 03 02 00 00 00 00 44 [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0B 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 0B 00 B3 16 00 DC 17 71 F6 2C EF 0A AD 90 00 71 [22:56:24]RAPDU: DC 17 71 F6 2C EF 0A AD 90 00 [22:56:24]wFMCommunicate OK [22:56:24]SAM_PROTO_SignData done [22:56:24]FM_MakeSignedData done [22:56:24]CreateOFDProtocolMessage [22:56:24]wFMCommunicate request_size=4 [22:56:24]MH_SAM_APDU [22:56:24]CAPDU: 80 11 00 00 [22:56:24]Write to MH i2c: E2 08 00 B4 16 80 11 00 00 00 00 00 00 44 [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:24]Read from MH i2c: E2 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 17 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: E2 17 00 B4 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 99 [22:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:56:24]wFMCommunicate OK [22:56:24]CreateOFDProtocolMessage done [22:56:24]OFDSenderStorePacket 5060 [22:56:24]StoreOFDPacket docnum=5060 [22:56:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 F9 86 07 01 CA C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 18 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C4 13 00 00 35 04 06 00 0F 8F 52 21 C0 46 DC 17 71 F6 2C EF 0A AD [22:56:24]CheckFolder [22:56:24]dirname=/storage/ofd_packets [22:56:24]CheckFolder done [22:56:24]ProducePacketName [22:56:24]name=ofd_packets/00005060 [22:56:24]NVStorageSaveData ofd_packets/00005060 [22:56:24]File name is /storage/ofd_packets/00005060 [22:56:24]Write 301 bytes [22:56:24]NVStorageSaveData done [22:56:24]OFDSenderStorePacket done [22:56:24]KKMCreateOFDPacket done [22:56:24]NVStorageSaveData kkm_last_timestamp [22:56:24]File name is /storage/kkm_last_timestamp [22:56:24]Write 4 bytes [22:56:24]NVStorageSaveData done [22:56:24]ExternCall_PrintAddStr [22:56:24]wPrintStart [22:56:24]Write to MH i2c: 01 00 00 B5 16 CB [22:56:24]Write i2c OK [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: 01 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: 01 07 00 [22:56:24]MH_I2C_Read... [22:56:24]Read from MH i2c: 01 07 00 B5 16 00 00 00 00 00 FF 0F E0 [22:56:24]RasterBufferAndPrint [22:56:24]line Счет N : (1)1993279 [22:56:24]line ИНН: 02508201610067 [22:56:24]line Контрольно-Кассовый Чек [22:56:24]line ПРОДАЖА [22:56:24]line ТРК (МРК, ГНК) : 63 [22:56:24]line Товар: 2710124130 [22:56:24]line Аи-92-К-4 [22:56:24]line 7.490 * 66.80 [22:56:24]line = 500.33 [22:56:24]line НДС 12% НСП 1% [22:56:24]line > о реализуемом товаре [22:56:24]line ОКРУГЛЕНИЕ: -0.33 [22:56:24]line ИТОГО: 500.00 [22:56:24]line Внесено: 500.00 [22:56:24]line СДАЧА: 0.00 [22:56:24]line НСП 1% : 4.43 [22:56:24]line НДС 12% : 53.13 [22:56:24]line Наличными: 500.00 [22:56:24]line Безнал.: 0.00 [22:56:24]line Место: АЗС № 135 "Партнер Нефть" [22:56:24]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [22:56:24]line СНО: Общий режим [22:56:24]line Чек 120 16.05.2024 22:56 [22:56:24]line Смена: 44 ФФД: 1.0 [22:56:24]line ЗНМ: 0300000237 [22:56:24]line РНМ: 0000000000154221 [22:56:24]line Версия ККМ: v1.0 [22:56:24]line ФМ: 0000000000963259 [22:56:24]line ФД: 5060 [22:56:24]line ФПД: 17108232683590 [22:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T225624&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5060&fm=17108232683590&tin=02508201610067®Number=0000000000154221&sum=50000 [22:56:24]OFD Sender: Processing packet 5060 [packets to send 4, broken 3] [22:56:24]ProducePacketName [22:56:24]name=ofd_packets/00005060 [22:56:24]OFD Sender: To server: pG, [22:56:24]CommunicateWithHost lk.salyk.kg:30040 [22:56:24]ConnectInit lk.salyk.kg [22:56:24]written 0, free lines is 4095 [22:56:24]Connected sock=10 [22:56:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 F9 86 07 01 CA C9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 42 1D 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 71 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 18 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C4 13 00 00 35 04 06 00 0F 8F 52 21 C0 46 DC 17 71 F6 2C EF 0A AD [22:56:25]Write to MH i2c: 01 00 00 E0 16 F6 [22:56:25]Write i2c OK [22:56:25]MH_I2C_Read... [22:56:25]Read from MH i2c: 01 [22:56:25]MH_I2C_Read... [22:56:25]Read from MH i2c: 01 07 00 [22:56:25]MH_I2C_Read... [22:56:25]Read from MH i2c: 01 07 00 E0 16 00 00 00 00 00 78 0C 81 [22:56:25]RasterBufferAndPrint [22:56:25]line [22:56:25]line [22:56:25]line [22:56:25]line [22:56:25]line [22:56:25]written 0, free lines is 3196 [22:56:25]MH_Cut [22:56:25]Write to MH i2c: D1 01 00 E7 16 01 CF [22:56:25]Write i2c OK [22:56:25]MH_I2C_Read... [22:56:25]Read from MH i2c: D1 [22:56:25]MH_I2C_Read... [22:56:25]Read from MH i2c: D1 01 00 [22:56:25]MH_I2C_Read... [22:56:25]Read from MH i2c: D1 01 00 E7 16 00 CE [22:56:25]Write to MH i2c: 01 00 00 E8 16 FE [22:56:25]Write i2c OK [22:56:25]MH_I2C_Read... [22:56:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 24 83 47 00 30 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C4 13 00 00 F4 03 04 00 DB 3A 46 66 B6 04 01 00 00 24 AB D9 AF 70 86 51 C8 [22:56:25]CommunicateWithHost err = 0 [22:56:25]CheckOFDResponse [22:56:25]1017 (14) - 77093643461234 [22:56:25]1041 (16) - 0000000000963259 [22:56:25]1040 (4) - 5060 [22:56:25]1012 (4) - 16.05.2024 16:56 [22:56:25]1206 (1) - 0 [22:56:25]OFD Sender: Remove packet 5060 [22:56:25]ProducePacketName [22:56:25]name=ofd_packets/00005060 [22:56:25]NVStorageDeleteData [22:56:25]OFD Sender: No OFD packet to send [22:56:26]*** Cut start [22:56:26]*** Partial cut [22:56:26]*** CUTSNS_PIN = 1 [22:56:26]*** CUTSNS_PIN = 0 [22:56:26]*** Brake cut motor [22:56:26]Read from MH i2c: 01 [22:56:26]MH_I2C_Read... [22:56:26]*** Stop cut motor [22:56:26]*** Cut end [22:56:26]Read from MH i2c: 01 07 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: 01 07 00 E8 16 00 00 00 00 00 FF 0F 13 [22:56:26]process_action close_receipt done [22:56:26]requested_data is exist [22:56:26]produce_requested_data [22:56:26]requested_item fm.sn is exist - process it [22:56:26]wFMCommunicate request_size=4 [22:56:26]MH_SAM_APDU [22:56:26]CAPDU: 80 11 00 00 [22:56:26]Write to MH i2c: E2 08 00 E9 16 80 11 00 00 00 00 00 00 79 [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:26]Read from MH i2c: E2 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 17 00 [22:56:26]MH_I2C_Read... [22:56:26]Read from MH i2c: E2 17 00 E9 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 CE [22:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:56:26]wFMCommunicate OK [22:56:26]requested_item fd.num is exist - process it [22:56:26]SAM_PROTO_GetFieldsCounters [22:56:26]wFMCommunicate request_size=4 [22:56:26]MH_SAM_APDU [22:56:26]CAPDU: 80 13 00 00 [22:56:26]Write to MH i2c: E2 08 00 EA 16 80 13 00 00 00 00 00 00 7C [22:56:26]Write i2c OK [22:56:26]MH_I2C_Read... [22:56:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:27]Read from MH i2c: E2 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: E2 62 00 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: E2 62 00 EA 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C4 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [22:56:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C4 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 78 00 00 00 5E 04 04 00 78 00 00 00 57 04 04 00 79 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:56:27]wFMCommunicate OK [22:56:27]SAM_PROTO_GetFieldsCounters done [22:56:27]requested_item shift.num is exist - process it [22:56:27]requested_item shift.opened is exist - process it [22:56:27]req_shift_opened [22:56:27]FM_GetShiftState [22:56:27]SAM_PROTO_GetShiftState [22:56:27]wFMCommunicate request_size=4 [22:56:27]MH_SAM_APDU [22:56:27]CAPDU: 80 13 01 00 [22:56:27]Write to MH i2c: E2 08 00 EB 16 80 13 01 00 00 00 00 00 7E [22:56:27]Write i2c OK [22:56:27]MH_I2C_Read... [22:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:27]Read from MH i2c: E2 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: E2 0E 00 [22:56:27]MH_I2C_Read... [22:56:27]Read from MH i2c: E2 0E 00 EB 16 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 8A [22:56:27]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:56:27]wFMCommunicate OK [22:56:27]SAM_PROTO_GetShiftState done [22:56:27]FM_GetShiftState done [22:56:27]req_shift_opened done [22:56:27]requested_item shift.open_date is exist - process it [22:56:27]req_shift_open_date [22:56:27]req_shift_open_date done [22:56:27]produce_requested_data done [22:56:27]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5060,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [22:56:27]process_action_free close_receipt [22:56:27]json_value_free [22:56:27]json_value_free done [22:56:27]process_json_proto returns [22:56:27]Send response to host [22:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5060,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [22:56:27]free response buf [22:56:27]execute_script done [22:56:27]execute_script returns [22:56:27]free content buf [22:56:27]Sock 7.Close socket [22:56:27]Sock 7.Thread stoped [22:56:30]OFD Sender: No OFD packet to send [22:56:35]OFD Sender: No OFD packet to send [22:56:40]OFD Sender: No OFD packet to send [22:56:45]OFD Sender: No OFD packet to send [22:56:50]OFD Sender: No OFD packet to send [22:56:55]OFD Sender: No OFD packet to send [22:57:00]OFD Sender: No OFD packet to send [22:57:05]OFD Sender: No OFD packet to send [22:57:10]OFD Sender: No OFD packet to send [22:57:15]OFD Sender: No OFD packet to send [22:57:20]OFD Sender: No OFD packet to send [22:57:25]OFD Sender: No OFD packet to send [22:57:30]OFD Sender: No OFD packet to send [22:57:35]OFD Sender: No OFD packet to send [22:57:40]OFD Sender: No OFD packet to send [22:57:45]OFD Sender: No OFD packet to send [22:57:50]OFD Sender: No OFD packet to send [22:57:55]OFD Sender: No OFD packet to send [22:58:00]OFD Sender: No OFD packet to send [22:58:05]OFD Sender: No OFD packet to send [22:58:10]OFD Sender: No OFD packet to send [22:58:15]OFD Sender: No OFD packet to send [22:58:20]OFD Sender: No OFD packet to send [22:58:25]OFD Sender: No OFD packet to send [22:58:30]OFD Sender: No OFD packet to send [22:58:35]OFD Sender: No OFD packet to send [22:58:40]OFD Sender: No OFD packet to send [22:58:45]OFD Sender: No OFD packet to send [22:58:50]OFD Sender: No OFD packet to send [22:58:55]OFD Sender: No OFD packet to send [22:59:00]OFD Sender: No OFD packet to send [22:59:05]OFD Sender: No OFD packet to send [22:59:10]OFD Sender: No OFD packet to send [22:59:12]accept exits with 9 [22:59:12]New connection [22:59:12]New thread 3067108708 created [22:59:12]Thread 3067252068 joined [22:59:12]Waiting for new connection... [22:59:12] Sock 9.Parse request [22:59:12]Sock 9.Check first char [22:59:12]Sock 9.First char is OK [22:59:12]request: POST /json_proto HTTP/1.0 [22:59:12]Method: POST [22:59:12]URL: /json_proto [22:59:12]Method is POST - this is cgi request [22:59:12]url: /json_proto [22:59:12]query_string will be loaded in cgi processing [22:59:12]execute_cgi json_proto POST (null) [22:59:12]execute_cgi path=json_proto method=POST [22:59:12]POST find Content-Length [22:59:12]Host: 172.17.44.4:8080 [22:59:12]Content-Length: 607 [22:59:12]Content-Type: application/json [22:59:12] [22:59:12]POST finish read [22:59:12]Found Content-Length = 607 [22:59:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141042", "tax_sys" : 0, "items" : [ { "code": "4620103784222", "name": "\u0425\u043E\u043C\u0443\u0442 4,8 370 1\u0448\u0442", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 15.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:12]execute_script... [22:59: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)141042", "tax_sys" : 0, "items" : [ { "code": "4620103784222", "name": "\u0425\u043E\u043C\u0443\u0442 4,8 370 1\u0448\u0442", "price" : 15.00, "quantity" : 1.000, "sum" : 15.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 15.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:59:12]POST & json_proto [22:59:12]process_json_proto [22:59:12]json parsed OK: [22:59:12]protocol is kg_v1.0 [22:59:12]action value=close_receipt [22:59:12]process_action close_receipt [22:59:12]cmd_close_receipt [22:59:12]MH_GetDate [22:59:12]Write to MH i2c: F0 00 00 EC 16 F1 [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: F0 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: F0 09 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: F0 09 00 EC 16 00 C2 8F 46 66 6C E9 28 66 DA [22:59:12]GetLastDocTimeStamp 1715900184 [22:59:12]current date 1715900354 [22:59:12]FM_GetShiftState [22:59:12]SAM_PROTO_GetShiftState [22:59:12]wFMCommunicate request_size=4 [22:59:12]MH_SAM_APDU [22:59:12]CAPDU: 80 13 01 00 [22:59:12]Write to MH i2c: E2 08 00 ED 16 80 13 01 00 00 00 00 00 80 [22:59:12]Write i2c OK [22:59:12]MH_I2C_Read... [22:59:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:12]Read from MH i2c: E2 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 0E 00 [22:59:12]MH_I2C_Read... [22:59:12]Read from MH i2c: E2 0E 00 ED 16 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 8C [22:59:12]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:59:12]wFMCommunicate OK [22:59:12]SAM_PROTO_GetShiftState done [22:59:12]FM_GetShiftState done [22:59:12]opened in 1715818246 [22:59:12]opened+sec_in_day 1715904646 [22:59:12]quantity*price = 1500 [22:59:12]sum+1 = 1501 [22:59:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 15.00 НСП 1% : 0.13 НДС 12% : 1.59 Наличными: 15.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 121 16.05.2024 22:59 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5061 ФПД: 99148374879571 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T225914&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5061&fm=99148374879571&tin=02508201610067®Number=0000000000154221&sum=1500 0 [22:59:13]StoreToDocumentArchive [22:59:13]shift 44 fd 5061 [22:59:13]save to /storage/0044/doc_00005061 [22:59:13]save last doc name /storage/0044/doc_00005061 to /storage/kkm_last_doc_name [22:59:13]save OK [22:59:13]Clear old archive folders... [22:59:13]ProcessDocumentItem done err = 0, tmpTLVsize=266 [22:59:13]tlvbuf is 011DDD90 [22:59:13]SAM_PROTO_ClearQueue [22:59:13]wFMCommunicate request_size=4 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 09 00 00 [22:59:13]Write to MH i2c: E2 08 00 FA 16 80 09 00 00 00 00 00 00 82 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 03 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 03 00 FA 16 00 90 00 84 [22:59:13]RAPDU: 90 00 [22:59:13]wFMCommunicate OK [22:59:13]SAM_PROTO_ClearQueue done [22:59:13]KKMCreateOFDPacket [22:59:13]OFDProtocolAddRootSTLVToBuf [22:59:13]FM_MakeSignedData [22:59:13]FM_MakeSignedData [22:59:13]SAM_PROTO_SignData [22:59:13]wFMCommunicate request_size=4 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 0D 01 02 [22:59:13]Write to MH i2c: E2 08 00 FB 16 80 0D 01 02 00 00 00 00 8A [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 03 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 03 00 FB 16 00 90 00 85 [22:59:13]RAPDU: 90 00 [22:59:13]wFMCommunicate OK [22:59:13]wFMCommunicate request_size=255 [22:59:13]MH_SAM_APDU [22:59: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 36 32 30 31 30 33 37 38 34 32 32 32 06 04 18 00 D0 A5 D0 BE D0 BC D1 83 D1 82 20 34 2C 38 20 33 37 30 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 C2 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 [22:59:13]Write to MH i2c: E2 02 01 FC 16 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 31 30 33 37 38 34 32 32 32 06 04 18 00 D0 A5 D0 BE D0 BC D1 83 D1 82 20 34 2C 38 20 33 37 30 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 C2 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 00 00 82 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:13]Read from MH i2c: E2 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 03 00 [22:59:13]MH_I2C_Read... [22:59:13]Read from MH i2c: E2 03 00 FC 16 00 90 00 86 [22:59:13]RAPDU: 90 00 [22:59:13]wFMCommunicate OK [22:59:13]wFMCommunicate request_size=25 [22:59:13]MH_SAM_APDU [22:59:13]CAPDU: 80 0D 02 02 14 35 39 10 04 04 00 C5 13 00 00 35 04 06 00 5A 2C C7 AA 2D 53 [22:59:13]Write to MH i2c: E2 1C 00 FD 16 80 0D 02 02 14 00 35 39 10 04 04 00 C5 13 00 00 35 04 06 00 5A 2C C7 AA 2D 53 00 00 C9 [22:59:13]Write i2c OK [22:59:13]MH_I2C_Read... [22:59:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:59:14]Read from MH i2c: E2 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 03 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 03 00 FD 16 00 90 00 87 [22:59:14]RAPDU: 90 00 [22:59:14]wFMCommunicate OK [22:59:14]wFMCommunicate request_size=4 [22:59:14]MH_SAM_APDU [22:59:14]CAPDU: 80 0D 03 02 [22:59:14]Write to MH i2c: E2 08 00 FE 16 80 0D 03 02 00 00 00 00 8F [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:59:14]Read from MH i2c: E2 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 0B 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 0B 00 FE 16 00 E7 2B 5E 07 90 DD 4C C4 90 00 84 [22:59:14]RAPDU: E7 2B 5E 07 90 DD 4C C4 90 00 [22:59:14]wFMCommunicate OK [22:59:14]SAM_PROTO_SignData done [22:59:14]FM_MakeSignedData done [22:59:14]CreateOFDProtocolMessage [22:59:14]wFMCommunicate request_size=4 [22:59:14]MH_SAM_APDU [22:59:14]CAPDU: 80 11 00 00 [22:59:14]Write to MH i2c: E2 08 00 FF 16 80 11 00 00 00 00 00 00 8F [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:14]Read from MH i2c: E2 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 17 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: E2 17 00 FF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 E4 [22:59:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:59:14]wFMCommunicate OK [22:59:14]CreateOFDProtocolMessage done [22:59:14]OFDSenderStorePacket 5061 [22:59:14]StoreOFDPacket docnum=5061 [22:59:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 1E 01 00 00 7B 38 16 01 96 B3 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 31 30 33 37 38 34 32 32 32 06 04 18 00 D0 A5 D0 BE D0 BC D1 83 D1 82 20 34 2C 38 20 33 37 30 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 C2 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C5 13 00 00 35 04 06 00 5A 2C C7 AA 2D 53 E7 2B 5E 07 90 DD 4C C4 [22:59:14]CheckFolder [22:59:14]dirname=/storage/ofd_packets [22:59:14]CheckFolder done [22:59:14]ProducePacketName [22:59:14]name=ofd_packets/00005061 [22:59:14]NVStorageSaveData ofd_packets/00005061 [22:59:14]File name is /storage/ofd_packets/00005061 [22:59:14]Write 316 bytes [22:59:14]NVStorageSaveData done [22:59:14]OFDSenderStorePacket done [22:59:14]KKMCreateOFDPacket done [22:59:14]NVStorageSaveData kkm_last_timestamp [22:59:14]File name is /storage/kkm_last_timestamp [22:59:14]Write 4 bytes [22:59:14]NVStorageSaveData done [22:59:14]ExternCall_PrintAddStr [22:59:14]wPrintStart [22:59:14]Write to MH i2c: 01 00 00 00 17 17 [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: 01 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: 01 07 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: 01 07 00 00 17 00 00 00 00 00 FF 0F 2C [22:59:14]RasterBufferAndPrint [22:59:14]line Счет N : (3)141042 [22:59:14]line ИНН: 02508201610067 [22:59:14]line Контрольно-Кассовый Чек [22:59:14]line ПРОДАЖА [22:59:14]line Товар: 4620103784222 [22:59:14]line Хомут 4,8 370 1шт [22:59:14]line 1.000 * 15.00 [22:59:14]line = 15.00 [22:59:14]line НДС 12% НСП 1% [22:59:14]line > о реализуемом товаре [22:59:14]line ИТОГО: 15.00 [22:59:14]line НСП 1% : 0.13 [22:59:14]line НДС 12% : 1.59 [22:59:14]line Наличными: 15.00 [22:59:14]line Безнал.: 0.00 [22:59:14]line Место: АЗС № 135 "Партнер Нефть" [22:59:14]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [22:59:14]line СНО: Общий режим [22:59:14]line Чек 121 16.05.2024 22:59 [22:59:14]line Смена: 44 ФФД: 1.0 [22:59:14]line ЗНМ: 0300000237 [22:59:14]line РНМ: 0000000000154221 [22:59:14]line Версия ККМ: v1.0 [22:59:14]line ФМ: 0000000000963259 [22:59:14]line ФД: 5061 [22:59:14]line ФПД: 99148374879571 [22:59:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T225914&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5061&fm=99148374879571&tin=02508201610067®Number=0000000000154221&sum=1500 [22:59:14]OFD Sender: Processing packet 5061 [packets to send 4, broken 3] [22:59:14]ProducePacketName [22:59:14]name=ofd_packets/00005061 [22:59:14]OFD Sender: To server: pG, [22:59:14]CommunicateWithHost lk.salyk.kg:30040 [22:59:14]ConnectInit lk.salyk.kg [22:59:14]line 0 [22:59:14]written 0, free lines is 4095 [22:59:14]Write to MH i2c: 01 00 00 28 17 3F [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: 01 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: 01 07 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: 01 07 00 28 17 00 00 00 00 00 9D 0C EF [22:59:14]RasterBufferAndPrint [22:59:14]line [22:59:14]line [22:59:14]line [22:59:14]line [22:59:14]line [22:59:14]written 0, free lines is 3233 [22:59:14]Connected sock=10 [22:59:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 1E 01 00 00 7B 38 16 01 96 B3 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 36 32 30 31 30 33 37 38 34 32 32 32 06 04 18 00 D0 A5 D0 BE D0 BC D1 83 D1 82 20 34 2C 38 20 33 37 30 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 DC 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 05 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 00 00 00 00 00 07 04 06 00 DC 05 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 C2 8F 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C5 13 00 00 35 04 06 00 5A 2C C7 AA 2D 53 E7 2B 5E 07 90 DD 4C C4 [22:59:14]MH_Cut [22:59:14]Write to MH i2c: D1 01 00 2F 17 01 18 [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: D1 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: D1 01 00 [22:59:14]MH_I2C_Read... [22:59:14]Read from MH i2c: D1 01 00 2F 17 00 17 [22:59:14]Write to MH i2c: 01 00 00 30 17 47 [22:59:14]Write i2c OK [22:59:14]MH_I2C_Read... [22:59:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 2A 55 47 00 1A 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 33 32 35 39 10 04 04 00 C5 13 00 00 F4 03 04 00 85 3B 46 66 B6 04 01 00 00 21 19 86 2D BC FE 42 FA [22:59:15]CommunicateWithHost err = 0 [22:59:15]CheckOFDResponse [22:59:15]1017 (14) - 77093643461234 [22:59:15]1041 (16) - 0000000000963259 [22:59:15]1040 (4) - 5061 [22:59:15]1012 (4) - 16.05.2024 16:59 [22:59:15]1206 (1) - 0 [22:59:15]OFD Sender: Remove packet 5061 [22:59:15]ProducePacketName [22:59:15]name=ofd_packets/00005061 [22:59:15]NVStorageDeleteData [22:59:15]OFD Sender: No OFD packet to send [22:59:16]*** Cut start [22:59:16]*** Partial cut [22:59:16]*** CUTSNS_PIN = 1 [22:59:16]*** CUTSNS_PIN = 0 [22:59:16]*** Brake cut motor [22:59:16]Read from MH i2c: 01 [22:59:16]MH_I2C_Read... [22:59:16]*** Stop cut motor [22:59:16]*** Cut end [22:59:16]Read from MH i2c: 01 07 00 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: 01 07 00 30 17 00 00 00 00 00 FF 0F 5C [22:59:16]process_action close_receipt done [22:59:16]requested_data is exist [22:59:16]produce_requested_data [22:59:16]requested_item fm.sn is exist - process it [22:59:16]wFMCommunicate request_size=4 [22:59:16]MH_SAM_APDU [22:59:16]CAPDU: 80 11 00 00 [22:59:16]Write to MH i2c: E2 08 00 31 17 80 11 00 00 00 00 00 00 C2 [22:59:16]Write i2c OK [22:59:16]MH_I2C_Read... [22:59:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:59:16]Read from MH i2c: E2 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: E2 17 00 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: E2 17 00 31 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 17 [22:59:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [22:59:16]wFMCommunicate OK [22:59:16]requested_item fd.num is exist - process it [22:59:16]SAM_PROTO_GetFieldsCounters [22:59:16]wFMCommunicate request_size=4 [22:59:16]MH_SAM_APDU [22:59:16]CAPDU: 80 13 00 00 [22:59:16]Write to MH i2c: E2 08 00 32 17 80 13 00 00 00 00 00 00 C5 [22:59:16]Write i2c OK [22:59:16]MH_I2C_Read... [22:59:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:59:16]Read from MH i2c: E2 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: E2 62 00 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: E2 62 00 32 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C5 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [22:59:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C5 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 79 00 00 00 5E 04 04 00 79 00 00 00 57 04 04 00 7A 00 00 00 19 04 04 00 00 00 00 00 90 00 [22:59:16]wFMCommunicate OK [22:59:16]SAM_PROTO_GetFieldsCounters done [22:59:16]requested_item shift.num is exist - process it [22:59:16]requested_item shift.opened is exist - process it [22:59:16]req_shift_opened [22:59:16]FM_GetShiftState [22:59:16]SAM_PROTO_GetShiftState [22:59:16]wFMCommunicate request_size=4 [22:59:16]MH_SAM_APDU [22:59:16]CAPDU: 80 13 01 00 [22:59:16]Write to MH i2c: E2 08 00 33 17 80 13 01 00 00 00 00 00 C7 [22:59:16]Write i2c OK [22:59:16]MH_I2C_Read... [22:59:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:59:16]Read from MH i2c: E2 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: E2 0E 00 [22:59:16]MH_I2C_Read... [22:59:16]Read from MH i2c: E2 0E 00 33 17 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 D3 [22:59:16]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [22:59:16]wFMCommunicate OK [22:59:16]SAM_PROTO_GetShiftState done [22:59:16]FM_GetShiftState done [22:59:16]req_shift_opened done [22:59:16]requested_item shift.open_date is exist - process it [22:59:16]req_shift_open_date [22:59:16]req_shift_open_date done [22:59:16]produce_requested_data done [22:59:16]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5061,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [22:59:16]process_action_free close_receipt [22:59:16]json_value_free [22:59:16]json_value_free done [22:59:16]process_json_proto returns [22:59:16]Send response to host [22:59:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5061,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [22:59:16]free response buf [22:59:16]execute_script done [22:59:16]execute_script returns [22:59:16]free content buf [22:59:16]Sock 9.Close socket [22:59:16]Sock 9.Thread stoped [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:06]OFD Sender: No OFD packet to send [23:00:11]OFD Sender: No OFD packet to send [23:00:16]OFD Sender: No OFD packet to send [23:00:21]OFD Sender: No OFD packet to send [23:00:26]OFD Sender: No OFD packet to send [23:00:31]OFD Sender: No OFD packet to send [23:00:36]OFD Sender: No OFD packet to send [23:00:41]OFD Sender: No OFD packet to send [23:00:46]OFD Sender: No OFD packet to send [23:00:51]OFD Sender: No OFD packet to send [23:00:56]OFD Sender: No OFD packet to send [23:01:01]OFD Sender: No OFD packet to send [23:01:06]OFD Sender: No OFD packet to send [23:01:11]OFD Sender: No OFD packet to send [23:01:16]OFD Sender: No OFD packet to send [23:01:21]OFD Sender: No OFD packet to send [23:01:26]OFD Sender: No OFD packet to send [23:01:31]OFD Sender: No OFD packet to send [23:01:36]OFD Sender: No OFD packet to send [23:01:41]OFD Sender: No OFD packet to send [23:01:46]OFD Sender: No OFD packet to send [23:01:51]OFD Sender: No OFD packet to send [23:01:56]OFD Sender: No OFD packet to send [23:02:01]OFD Sender: No OFD packet to send [23:02:06]OFD Sender: No OFD packet to send [23:02:11]OFD Sender: No OFD packet to send [23:02:16]OFD Sender: No OFD packet to send [23:02:21]OFD Sender: No OFD packet to send [23:02:26]OFD Sender: No OFD packet to send [23:02:31]OFD Sender: No OFD packet to send [23:02:36]OFD Sender: No OFD packet to send [23:02:41]OFD Sender: No OFD packet to send [23:02:46]OFD Sender: No OFD packet to send [23:02:51]OFD Sender: No OFD packet to send [23:02:56]OFD Sender: No OFD packet to send [23:03:01]OFD Sender: No OFD packet to send [23:03:06]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:01]OFD Sender: No OFD packet to send [23:07:06]OFD Sender: No OFD packet to send [23:07:11]OFD Sender: No OFD packet to send [23:07:16]OFD Sender: No OFD packet to send [23:07:21]OFD Sender: No OFD packet to send [23:07:26]OFD Sender: No OFD packet to send [23:07:31]OFD Sender: No OFD packet to send [23:07:36]OFD Sender: No OFD packet to send [23:07:41]OFD Sender: No OFD packet to send [23:07:46]OFD Sender: No OFD packet to send [23:07:51]OFD Sender: No OFD packet to send [23:07:56]OFD Sender: No OFD packet to send [23:08:01]OFD Sender: No OFD packet to send [23:08:06]OFD Sender: No OFD packet to send [23:08:11]OFD Sender: No OFD packet to send [23:08:16]OFD Sender: No OFD packet to send [23:08:21]OFD Sender: No OFD packet to send [23:08:26]OFD Sender: No OFD packet to send [23:08:31]OFD Sender: No OFD packet to send [23:08:36]OFD Sender: No OFD packet to send [23:08:41]OFD Sender: No OFD packet to send [23:08:46]OFD Sender: No OFD packet to send [23:08:51]OFD Sender: No OFD packet to send [23:08:56]OFD Sender: No OFD packet to send [23:09:01]OFD Sender: No OFD packet to send [23:09:06]OFD Sender: No OFD packet to send [23:09:11]OFD Sender: No OFD packet to send [23:09:16]OFD Sender: No OFD packet to send [23:09:21]OFD Sender: No OFD packet to send [23:09:26]OFD Sender: No OFD packet to send [23:09:31]OFD Sender: No OFD packet to send [23:09:36]OFD Sender: No OFD packet to send [23:09:41]OFD Sender: No OFD packet to send [23:09:46]OFD Sender: No OFD packet to send [23:09:51]OFD Sender: No OFD packet to send [23:09:56]OFD Sender: No OFD packet to send [23:10:01]OFD Sender: No OFD packet to send [23:10:06]OFD Sender: No OFD packet to send [23:10:11]OFD Sender: No OFD packet to send [23:10:16]OFD Sender: No OFD packet to send [23:10:21]OFD Sender: No OFD packet to send [23:10:26]OFD Sender: No OFD packet to send [23:10:31]OFD Sender: No OFD packet to send [23:10:36]OFD Sender: No OFD packet to send [23:10:41]OFD Sender: No OFD packet to send [23:10:46]OFD Sender: No OFD packet to send [23:10:51]OFD Sender: No OFD packet to send [23:10:56]OFD Sender: No OFD packet to send [23:11:01]OFD Sender: No OFD packet to send [23:11:06]OFD Sender: No OFD packet to send [23:11:11]OFD Sender: No OFD packet to send [23:11:16]OFD Sender: No OFD packet to send [23:11:21]OFD Sender: No OFD packet to send [23:11:26]OFD Sender: No OFD packet to send [23:11:31]OFD Sender: No OFD packet to send [23:11:36]OFD Sender: No OFD packet to send [23:11:41]OFD Sender: No OFD packet to send [23:11:46]OFD Sender: No OFD packet to send [23:11:51]OFD Sender: No OFD packet to send [23:11:56]OFD Sender: No OFD packet to send [23:12:01]OFD Sender: No OFD packet to send [23:12: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:47]accept exits with 7 [23:18:47]New connection [23:18:47]New thread 3067252068 created [23:18:47]Thread 3067108708 joined [23:18:47]Waiting for new connection... [23:18:47] Sock 7.Parse request [23:18:47]Sock 7.Check first char [23:18:47]Sock 7.First char is OK [23:18:47]request: POST /json_proto HTTP/1.0 [23:18:47]Method: POST [23:18:47]URL: /json_proto [23:18:47]Method is POST - this is cgi request [23:18:47]url: /json_proto [23:18:47]query_string will be loaded in cgi processing [23:18:47]execute_cgi json_proto POST (null) [23:18:47]execute_cgi path=json_proto method=POST [23:18:47]POST find Content-Length [23:18:47]Host: 172.17.44.4:8080 [23:18:47]Content-Length: 1225 [23:18:47]Content-Type: application/json [23:18:47] [23:18:47]POST finish read [23:18:47]Found Content-Length = 1225 [23:18:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141043", "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 }]} ,{ "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 367.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:47]execute_script... [23:18: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)141043", "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 }]} ,{ "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "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" : 367.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:47]POST & json_proto [23:18:47]process_json_proto [23:18:47]json parsed OK: [23:18:47]protocol is kg_v1.0 [23:18:47]action value=close_receipt [23:18:47]process_action close_receipt [23:18:47]cmd_close_receipt [23:18:47]MH_GetDate [23:18:47]Write to MH i2c: F0 00 00 34 17 3A [23:18:47]Write i2c OK [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: F0 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: F0 09 00 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: F0 09 00 34 17 00 5A 94 46 66 6C E9 28 66 C0 [23:18:47]GetLastDocTimeStamp 1715900354 [23:18:47]current date 1715901530 [23:18:47]FM_GetShiftState [23:18:47]SAM_PROTO_GetShiftState [23:18:47]wFMCommunicate request_size=4 [23:18:47]MH_SAM_APDU [23:18:47]CAPDU: 80 13 01 00 [23:18:47]Write to MH i2c: E2 08 00 35 17 80 13 01 00 00 00 00 00 C9 [23:18:47]Write i2c OK [23:18:47]MH_I2C_Read... [23:18:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:47]Read from MH i2c: E2 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 0E 00 [23:18:47]MH_I2C_Read... [23:18:47]Read from MH i2c: E2 0E 00 35 17 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 D5 [23:18:47]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:18:47]wFMCommunicate OK [23:18:47]SAM_PROTO_GetShiftState done [23:18:47]FM_GetShiftState done [23:18:47]opened in 1715818246 [23:18:47]opened+sec_in_day 1715904646 [23:18:47]quantity*price = 16000 [23:18:47]sum+1 = 16001 [23:18:47]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522008 Напиток Maxi Чай Грушевый 0,45л 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 6931280300549 Зажигалка Cricket ПН пьезо 1.000 * 67.00 = 67.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 367.00 НСП 1% : 3.25 НДС 12% : 38.97 Наличными: 367.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 122 16.05.2024 23:18 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5062 ФПД: 179556926941087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T231850&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5062&fm=179556926941087&tin=02508201610067®Number=0000000000154221&sum=36700 0 [23:18:48]StoreToDocumentArchive [23:18:48]shift 44 fd 5062 [23:18:48]save to /storage/0044/doc_00005062 [23:18:48]save last doc name /storage/0044/doc_00005062 to /storage/kkm_last_doc_name [23:18:48]save OK [23:18:48]Clear old archive folders... [23:18:48]ProcessDocumentItem done err = 0, tmpTLVsize=512 [23:18:48]tlvbuf is 011D52B0 [23:18:48]SAM_PROTO_ClearQueue [23:18:48]wFMCommunicate request_size=4 [23:18:48]MH_SAM_APDU [23:18:48]CAPDU: 80 09 00 00 [23:18:48]Write to MH i2c: E2 08 00 42 17 80 09 00 00 00 00 00 00 CB [23:18:48]Write i2c OK [23:18:48]MH_I2C_Read... [23:18:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:48]Read from MH i2c: E2 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: E2 03 00 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: E2 03 00 42 17 00 90 00 CD [23:18:48]RAPDU: 90 00 [23:18:48]wFMCommunicate OK [23:18:48]SAM_PROTO_ClearQueue done [23:18:48]KKMCreateOFDPacket [23:18:48]OFDProtocolAddRootSTLVToBuf [23:18:48]FM_MakeSignedData [23:18:48]FM_MakeSignedData [23:18:48]SAM_PROTO_SignData [23:18:48]wFMCommunicate request_size=4 [23:18:48]MH_SAM_APDU [23:18:48]CAPDU: 80 0D 01 02 [23:18:48]Write to MH i2c: E2 08 00 43 17 80 0D 01 02 00 00 00 00 D3 [23:18:48]Write i2c OK [23:18:48]MH_I2C_Read... [23:18:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:48]Read from MH i2c: E2 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: E2 03 00 [23:18:48]MH_I2C_Read... [23:18:48]Read from MH i2c: E2 03 00 43 17 00 90 00 CE [23:18:48]RAPDU: 90 00 [23:18:48]wFMCommunicate OK [23:18:48]wFMCommunicate request_size=255 [23:18:48]MH_SAM_APDU [23:18:48]CAPDU: 80 0D 02 02 FA 03 00 00 02 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 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 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 6E 00 8A 04 0D 00 36 39 33 31 32 [23:18:49]Write to MH i2c: E2 02 01 44 17 80 0D 02 02 FA 00 03 00 00 02 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 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 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 6E 00 8A 04 0D 00 36 39 33 31 32 00 00 0F [23:18:49]Write i2c OK [23:18:49]MH_I2C_Read... [23:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:49]Read from MH i2c: E2 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: E2 03 00 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: E2 03 00 44 17 00 90 00 CF [23:18:49]RAPDU: 90 00 [23:18:49]wFMCommunicate OK [23:18:49]wFMCommunicate request_size=255 [23:18:49]MH_SAM_APDU [23:18:49]CAPDU: 80 0D 02 02 FA 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 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0F 00 00 00 00 07 04 06 00 5C 8F 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 5A 94 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 [23:18:49]Write to MH i2c: E2 02 01 45 17 80 0D 02 02 FA 00 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 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0F 00 00 00 00 07 04 06 00 5C 8F 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 5A 94 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 00 00 E1 [23:18:49]Write i2c OK [23:18:49]MH_I2C_Read... [23:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:49]Read from MH i2c: E2 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: E2 03 00 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: E2 03 00 45 17 00 90 00 D0 [23:18:49]RAPDU: 90 00 [23:18:49]wFMCommunicate OK [23:18:49]wFMCommunicate request_size=21 [23:18:49]MH_SAM_APDU [23:18:49]CAPDU: 80 0D 02 02 10 04 00 C6 13 00 00 35 04 06 00 A3 4E 5A D8 E7 9F [23:18:49]Write to MH i2c: E2 18 00 46 17 80 0D 02 02 10 00 04 00 C6 13 00 00 35 04 06 00 A3 4E 5A D8 E7 9F 00 00 BC [23:18:49]Write i2c OK [23:18:49]MH_I2C_Read... [23:18:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:49]Read from MH i2c: E2 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: E2 03 00 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: E2 03 00 46 17 00 90 00 D1 [23:18:49]RAPDU: 90 00 [23:18:49]wFMCommunicate OK [23:18:49]wFMCommunicate request_size=4 [23:18:49]MH_SAM_APDU [23:18:49]CAPDU: 80 0D 03 02 [23:18:49]Write to MH i2c: E2 08 00 47 17 80 0D 03 02 00 00 00 00 D9 [23:18:49]Write i2c OK [23:18:49]MH_I2C_Read... [23:18:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:49]Read from MH i2c: E2 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: E2 0B 00 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: E2 0B 00 47 17 00 A2 4E 24 EE AA 79 4B 7D 90 00 C7 [23:18:49]RAPDU: A2 4E 24 EE AA 79 4B 7D 90 00 [23:18:49]wFMCommunicate OK [23:18:49]SAM_PROTO_SignData done [23:18:49]FM_MakeSignedData done [23:18:49]CreateOFDProtocolMessage [23:18:49]wFMCommunicate request_size=4 [23:18:49]MH_SAM_APDU [23:18:49]CAPDU: 80 11 00 00 [23:18:49]Write to MH i2c: E2 08 00 48 17 80 11 00 00 00 00 00 00 D9 [23:18:49]Write i2c OK [23:18:49]MH_I2C_Read... [23:18:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:49]Read from MH i2c: E2 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: E2 17 00 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: E2 17 00 48 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 2E [23:18:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:18:49]wFMCommunicate OK [23:18:49]CreateOFDProtocolMessage done [23:18:49]OFDSenderStorePacket 5062 [23:18:49]StoreOFDPacket docnum=5062 [23:18:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 14 02 00 00 4E 13 0C 02 05 B5 5A 03 01 00 03 00 00 02 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 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 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 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 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0F 00 00 00 00 07 04 06 00 5C 8F 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 5A 94 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C6 13 00 00 35 04 06 00 A3 4E 5A D8 E7 9F A2 4E 24 EE AA 79 4B 7D [23:18:49]CheckFolder [23:18:49]dirname=/storage/ofd_packets [23:18:49]CheckFolder done [23:18:49]ProducePacketName [23:18:49]name=ofd_packets/00005062 [23:18:49]NVStorageSaveData ofd_packets/00005062 [23:18:49]File name is /storage/ofd_packets/00005062 [23:18:49]Write 562 bytes [23:18:49]NVStorageSaveData done [23:18:49]OFDSenderStorePacket done [23:18:49]KKMCreateOFDPacket done [23:18:49]NVStorageSaveData kkm_last_timestamp [23:18:49]File name is /storage/kkm_last_timestamp [23:18:49]Write 4 bytes [23:18:49]NVStorageSaveData done [23:18:49]ExternCall_PrintAddStr [23:18:49]wPrintStart [23:18:49]Write to MH i2c: 01 00 00 49 17 60 [23:18:49]OFD Sender: Processing packet 5062 [packets to send 4, broken 3] [23:18:49]ProducePacketName [23:18:49]name=ofd_packets/00005062 [23:18:49]OFD Sender: To server: pG, [23:18:49]CommunicateWithHost lk.salyk.kg:30040 [23:18:49]ConnectInit lk.salyk.kg [23:18:49]Write i2c OK [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: 01 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: 01 07 00 [23:18:49]MH_I2C_Read... [23:18:49]Read from MH i2c: 01 07 00 49 17 00 00 00 00 00 FF 0F 75 [23:18:49]RasterBufferAndPrint [23:18:49]line Счет N : (3)141043 [23:18:49]line ИНН: 02508201610067 [23:18:49]line Контрольно-Кассовый Чек [23:18:49]line ПРОДАЖА [23:18:49]line Товар: 4860019001346 [23:18:49]line Вода Боржоми 0,5л ст [23:18:49]line 1.000 * 160.00 [23:18:49]line = 160.00 [23:18:49]line НДС 12% НСП 1% [23:18:49]line > о реализуемом товаре [23:18:49]line Товар: 4870202522008 [23:18:49]line Напиток Maxi Чай Грушевый 0,45л [23:18:49]line 2.000 * 70.00 [23:18:49]line = 140.00 [23:18:49]line НДС 12% НСП 1% [23:18:49]line > о реализуемом товаре [23:18:49]line Товар: 6931280300549 [23:18:49]line Зажигалка Cricket ПН пьезо [23:18:49]line 1.000 * 67.00 [23:18:49]line = 67.00 [23:18:49]line НДС 12% НСП 1% [23:18:49]line > о реализуемом товаре [23:18:49]line ИТОГО: 367.00 [23:18:49]line НСП 1% : 3.25 [23:18:49]line НДС 12% : 38.97 [23:18:49]line Наличными: 367.00 [23:18:49]line Безнал.: 0.00 [23:18:49]line Место: АЗС № 135 "Партнер Нефть" [23:18:49]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [23:18:49]line СНО: Общий режим [23:18:49]line Чек 122 16.05.2024 23:18 [23:18:49]line Смена: 44 ФФД: 1.0 [23:18:49]line ЗНМ: 0300000237 [23:18:49]line РНМ: 0000000000154221 [23:18:49]line Версия ККМ: v1.0 [23:18:49]line ФМ: 0000000000963259 [23:18:49]line ФД: 5062 [23:18:49]line ФПД: 179556926941087 [23:18:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T231850&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5062&fm=179556926941087&tin=02508201610067®Number=0000000000154221&sum=36700 [23:18:49]line 0 [23:18:49]written 0, free lines is 4095 [23:18:50]Connected sock=9 [23:18:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 14 02 00 00 4E 13 0C 02 05 B5 5A 03 01 00 03 00 00 02 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 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 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 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 5C 8F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 0F 00 00 00 00 07 04 06 00 5C 8F 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 5A 94 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C6 13 00 00 35 04 06 00 A3 4E 5A D8 E7 9F A2 4E 24 EE AA 79 4B 7D [23:18:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 E8 DA 47 00 2F FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C6 13 00 00 F4 03 04 00 1C 40 46 66 B6 04 01 00 00 DB E7 C1 E3 B8 ED AD BC [23:18:50]CommunicateWithHost err = 0 [23:18:50]CheckOFDResponse [23:18:50]1017 (14) - 77093643461234 [23:18:50]1041 (16) - 0000000000963259 [23:18:50]1040 (4) - 5062 [23:18:50]1012 (4) - 16.05.2024 17:19 [23:18:50]1206 (1) - 0 [23:18:50]OFD Sender: Remove packet 5062 [23:18:50]ProducePacketName [23:18:50]name=ofd_packets/00005062 [23:18:50]NVStorageDeleteData [23:18:50]Write to MH i2c: 01 00 00 7E 17 95 [23:18:50]Write i2c OK [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: 01 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: 01 07 00 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: 01 07 00 7E 17 00 00 00 00 00 97 0B 3E [23:18:50]RasterBufferAndPrint [23:18:50]line [23:18:50]line [23:18:50]line [23:18:50]line [23:18:50]line [23:18:50]written 0, free lines is 2972 [23:18:50]MH_Cut [23:18:50]Write to MH i2c: D1 01 00 85 17 01 6E [23:18:50]Write i2c OK [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: D1 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: D1 01 00 [23:18:50]MH_I2C_Read... [23:18:50]Read from MH i2c: D1 01 00 85 17 00 6D [23:18:50]Write to MH i2c: 01 00 00 86 17 9D [23:18:50]Write i2c OK [23:18:50]MH_I2C_Read... [23:18:50]OFD Sender: No OFD packet to send [23:18:51]*** Cut start [23:18:51]*** Partial cut [23:18:51]*** CUTSNS_PIN = 1 [23:18:51]*** CUTSNS_PIN = 0 [23:18:52]*** Brake cut motor [23:18:52]Read from MH i2c: 01 [23:18:52]MH_I2C_Read... [23:18:52]*** Stop cut motor [23:18:52]*** Cut end [23:18:52]Read from MH i2c: 01 07 00 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: 01 07 00 86 17 00 00 00 00 00 FF 0F B2 [23:18:52]process_action close_receipt done [23:18:52]requested_data is exist [23:18:52]produce_requested_data [23:18:52]requested_item fm.sn is exist - process it [23:18:52]wFMCommunicate request_size=4 [23:18:52]MH_SAM_APDU [23:18:52]CAPDU: 80 11 00 00 [23:18:52]Write to MH i2c: E2 08 00 87 17 80 11 00 00 00 00 00 00 18 [23:18:52]Write i2c OK [23:18:52]MH_I2C_Read... [23:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:52]Read from MH i2c: E2 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 17 00 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 17 00 87 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 6D [23:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:18:52]wFMCommunicate OK [23:18:52]requested_item fd.num is exist - process it [23:18:52]SAM_PROTO_GetFieldsCounters [23:18:52]wFMCommunicate request_size=4 [23:18:52]MH_SAM_APDU [23:18:52]CAPDU: 80 13 00 00 [23:18:52]Write to MH i2c: E2 08 00 88 17 80 13 00 00 00 00 00 00 1B [23:18:52]Write i2c OK [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 [23:18:52]MH_I2C_Read... [23:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:52]Read from MH i2c: E2 62 00 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 62 00 88 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C6 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [23:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C6 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7A 00 00 00 5E 04 04 00 7A 00 00 00 57 04 04 00 7B 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:52]wFMCommunicate OK [23:18:52]SAM_PROTO_GetFieldsCounters done [23:18:52]requested_item shift.num is exist - process it [23:18:52]requested_item shift.opened is exist - process it [23:18:52]req_shift_opened [23:18:52]FM_GetShiftState [23:18:52]SAM_PROTO_GetShiftState [23:18:52]wFMCommunicate request_size=4 [23:18:52]MH_SAM_APDU [23:18:52]CAPDU: 80 13 01 00 [23:18:52]Write to MH i2c: E2 08 00 89 17 80 13 01 00 00 00 00 00 1D [23:18:52]Write i2c OK [23:18:52]MH_I2C_Read... [23:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:52]Read from MH i2c: E2 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 0E 00 [23:18:52]MH_I2C_Read... [23:18:52]Read from MH i2c: E2 0E 00 89 17 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 29 [23:18:52]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:18:52]wFMCommunicate OK [23:18:52]SAM_PROTO_GetShiftState done [23:18:52]FM_GetShiftState done [23:18:52]req_shift_opened done [23:18:52]requested_item shift.open_date is exist - process it [23:18:52]req_shift_open_date [23:18:52]req_shift_open_date done [23:18:52]produce_requested_data done [23:18:52]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5062,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [23:18:52]process_action_free close_receipt [23:18:52]json_value_free [23:18:52]json_value_free done [23:18:52]process_json_proto returns [23:18:52]Send response to host [23:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5062,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [23:18:52]free response buf [23:18:52]execute_script done [23:18:52]execute_script returns [23:18:52]free content buf [23:18:52]Sock 7.Close socket [23:18:52]Sock 7.Thread stoped [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:16]OFD Sender: No OFD packet to send [23:19:21]OFD Sender: No OFD packet to send [23:19:26]OFD Sender: No OFD packet to send [23:19:31]OFD Sender: No OFD packet to send [23:19:36]OFD Sender: No OFD packet to send [23:19:41]OFD Sender: No OFD packet to send [23:19:46]OFD Sender: No OFD packet to send [23:19:51]OFD Sender: No OFD packet to send [23:19:56]OFD Sender: No OFD packet to send [23:20:01]OFD Sender: No OFD packet to send [23:20:06]OFD Sender: No OFD packet to send [23:20:11]OFD Sender: No OFD packet to send [23:20:16]OFD Sender: No OFD packet to send [23:20:21]OFD Sender: No OFD packet to send [23:20:26]OFD Sender: No OFD packet to send [23:20:31]OFD Sender: No OFD packet to send [23:20:36]OFD Sender: No OFD packet to send [23:20:41]OFD Sender: No OFD packet to send [23:20:46]OFD Sender: No OFD packet to send [23:20:51]OFD Sender: No OFD packet to send [23:20:56]OFD Sender: No OFD packet to send [23:21:01]OFD Sender: No OFD packet to send [23:21:06]OFD Sender: No OFD packet to send [23:21:11]OFD Sender: No OFD packet to send [23:21:16]OFD Sender: No OFD packet to send [23:21:21]OFD Sender: No OFD packet to send [23:21:26]OFD Sender: No OFD packet to send [23:21:31]OFD Sender: No OFD packet to send [23:21:36]OFD Sender: No OFD packet to send [23:21:41]OFD Sender: No OFD packet to send [23:21:46]OFD Sender: No OFD packet to send [23:21:51]OFD Sender: No OFD packet to send [23:21:56]OFD Sender: No OFD packet to send [23:22:01]OFD Sender: No OFD packet to send [23:22:06]OFD Sender: No OFD packet to send [23:22:11]OFD Sender: No OFD packet to send [23:22:16]OFD Sender: No OFD packet to send [23:22:21]OFD Sender: No OFD packet to send [23:22:26]OFD Sender: No OFD packet to send [23:22:31]OFD Sender: No OFD packet to send [23:22:36]OFD Sender: No OFD packet to send [23:22:41]OFD Sender: No OFD packet to send [23:22:46]OFD Sender: No OFD packet to send [23:22:51]OFD Sender: No OFD packet to send [23:22:56]OFD Sender: No OFD packet to send [23:23:01]OFD Sender: No OFD packet to send [23:23:06]OFD Sender: No OFD packet to send [23:23:11]OFD Sender: No OFD packet to send [23:23:16]OFD Sender: No OFD packet to send [23:23:21]OFD Sender: No OFD packet to send [23:23:26]OFD Sender: No OFD packet to send [23:23:31]OFD Sender: No OFD packet to send [23:23:36]OFD Sender: No OFD packet to send [23:23:41]OFD Sender: No OFD packet to send [23:23:46]OFD Sender: No OFD packet to send [23:23:51]OFD Sender: No OFD packet to send [23:23:56]OFD Sender: No OFD packet to send [23:24:01]OFD Sender: No OFD packet to send [23:24:06]OFD Sender: No OFD packet to send [23:24:11]OFD Sender: No OFD packet to send [23:24:16]OFD Sender: No OFD packet to send [23:24:21]OFD Sender: No OFD packet to send [23:24:26]OFD Sender: No OFD packet to send [23:24:31]OFD Sender: No OFD packet to send [23:24:36]OFD Sender: No OFD packet to send [23:24:41]OFD Sender: No OFD packet to send [23:24:46]OFD Sender: No OFD packet to send [23:24:51]OFD Sender: No OFD packet to send [23:24:56]OFD Sender: No OFD packet to send [23:25:01]OFD Sender: No OFD packet to send [23:25:06]OFD Sender: No OFD packet to send [23:25:11]OFD Sender: No OFD packet to send [23:25:16]OFD Sender: No OFD packet to send [23:25:21]OFD Sender: No OFD packet to send [23:25:26]OFD Sender: No OFD packet to send [23:25:31]OFD Sender: No OFD packet to send [23:25:36]OFD Sender: No OFD packet to send [23:25:41]OFD Sender: No OFD packet to send [23:25:46]OFD Sender: No OFD packet to send [23:25:51]OFD Sender: No OFD packet to send [23:25:56]OFD Sender: No OFD packet to send [23:26:01]OFD Sender: No OFD packet to send [23:26:06]OFD Sender: No OFD packet to send [23:26:11]OFD Sender: No OFD packet to send [23:26:16]OFD Sender: No OFD packet to send [23:26:21]OFD Sender: No OFD packet to send [23:26:26]OFD Sender: No OFD packet to send [23:26:31]OFD Sender: No OFD packet to send [23:26:36]OFD Sender: No OFD packet to send [23:26:41]OFD Sender: No OFD packet to send [23:26:46]OFD Sender: No OFD packet to send [23:26:51]OFD Sender: No OFD packet to send [23:26:56]OFD Sender: No OFD packet to send [23:27:01]OFD Sender: No OFD packet to send [23:27:06]OFD Sender: No OFD packet to send [23:27:11]OFD Sender: No OFD packet to send [23:27:16]OFD Sender: No OFD packet to send [23:27:21]OFD Sender: No OFD packet to send [23:27:26]OFD Sender: No OFD packet to send [23:27:31]OFD Sender: No OFD packet to send [23:27:36]OFD Sender: No OFD packet to send [23:27:41]OFD Sender: No OFD packet to send [23:27:46]OFD Sender: No OFD packet to send [23:27:51]OFD Sender: No OFD packet to send [23:27:56]OFD Sender: No OFD packet to send [23:28:01]OFD Sender: No OFD packet to send [23:28:06]OFD Sender: No OFD packet to send [23:28:11]OFD Sender: No OFD packet to send [23:28:16]OFD Sender: No OFD packet to send [23:28:21]OFD Sender: No OFD packet to send [23:28:26]OFD Sender: No OFD packet to send [23:28:31]OFD Sender: No OFD packet to send [23:28:36]OFD Sender: No OFD packet to send [23:28:41]OFD Sender: No OFD packet to send [23:28:46]OFD Sender: No OFD packet to send [23:28:51]OFD Sender: No OFD packet to send [23:28:56]OFD Sender: No OFD packet to send [23:29:01]OFD Sender: No OFD packet to send [23:29:06]OFD Sender: No OFD packet to send [23:29:11]OFD Sender: No OFD packet to send [23:29:16]OFD Sender: No OFD packet to send [23:29:21]OFD Sender: No OFD packet to send [23:29:26]OFD Sender: No OFD packet to send [23:29:31]OFD Sender: No OFD packet to send [23:29:36]OFD Sender: No OFD packet to send [23:29:41]OFD Sender: No OFD packet to send [23:29:46]OFD Sender: No OFD packet to send [23:29:51]OFD Sender: No OFD packet to send [23:29:56]OFD Sender: No OFD packet to send [23:30:01]OFD Sender: No OFD packet to send [23:30:06]OFD Sender: No OFD packet to send [23:30:11]OFD Sender: No OFD packet to send [23:30:16]OFD Sender: No OFD packet to send [23:30:21]OFD Sender: No OFD packet to send [23:30:26]OFD Sender: No OFD packet to send [23:30:31]OFD Sender: No OFD packet to send [23:30:36]OFD Sender: No OFD packet to send [23:30:41]OFD Sender: No OFD packet to send [23:30:46]OFD Sender: No OFD packet to send [23:30:51]OFD Sender: No OFD packet to send [23:30:56]OFD Sender: No OFD packet to send [23:31:01]OFD Sender: No OFD packet to send [23:31:06]OFD Sender: No OFD packet to send [23:31:11]OFD Sender: No OFD packet to send [23:31:16]OFD Sender: No OFD packet to send [23:31:21]OFD Sender: No OFD packet to send [23:31:26]OFD Sender: No OFD packet to send [23:31:31]OFD Sender: No OFD packet to send [23:31:36]OFD Sender: No OFD packet to send [23:31:41]OFD Sender: No OFD packet to send [23:31:46]OFD Sender: No OFD packet to send [23:31:51]OFD Sender: No OFD packet to send [23:31:56]OFD Sender: No OFD packet to send [23:32:01]OFD Sender: No OFD packet to send [23:32:06]OFD Sender: No OFD packet to send [23:32:11]OFD Sender: No OFD packet to send [23:32:16]OFD Sender: No OFD packet to send [23:32:21]OFD Sender: No OFD packet to send [23:32:26]OFD Sender: No OFD packet to send [23:32:31]OFD Sender: No OFD packet to send [23:32:36]OFD Sender: No OFD packet to send [23:32:41]OFD Sender: No OFD packet to send [23:32:46]OFD Sender: No OFD packet to send [23:32:51]OFD Sender: No OFD packet to send [23:32:56]OFD Sender: No OFD packet to send [23:33:01]OFD Sender: No OFD packet to send [23:33:06]OFD Sender: No OFD packet to send [23:33:11]OFD Sender: No OFD packet to send [23:33:16]OFD Sender: No OFD packet to send [23:33:21]OFD Sender: No OFD packet to send [23:33:26]OFD Sender: No OFD packet to send [23:33:31]OFD Sender: No OFD packet to send [23:33:36]OFD Sender: No OFD packet to send [23:33:41]OFD Sender: No OFD packet to send [23:33:46]OFD Sender: No OFD packet to send [23:33:51]OFD Sender: No OFD packet to send [23:33:56]OFD Sender: No OFD packet to send [23:34:01]OFD Sender: No OFD packet to send [23:34:06]OFD Sender: No OFD packet to send [23:34:11]OFD Sender: No OFD packet to send [23:34:16]OFD Sender: No OFD packet to send [23:34:21]OFD Sender: No OFD packet to send [23:34:26]OFD Sender: No OFD packet to send [23:34:31]OFD Sender: No OFD packet to send [23:34:36]OFD Sender: No OFD packet to send [23:34:41]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:11]OFD Sender: No OFD packet to send [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:16]OFD Sender: No OFD packet to send [23:38:21]OFD Sender: No OFD packet to send [23:38:26]OFD Sender: No OFD packet to send [23:38:31]OFD Sender: No OFD packet to send [23:38:36]OFD Sender: No OFD packet to send [23:38:41]OFD Sender: No OFD packet to send [23:38:46]OFD Sender: No OFD packet to send [23:38:51]OFD Sender: No OFD packet to send [23:38:56]OFD Sender: No OFD packet to send [23:39:01]OFD Sender: No OFD packet to send [23:39:06]OFD Sender: No OFD packet to send [23:39:11]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:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:21]int [23:45:21]Write to MH i2c: 01 00 00 8A 17 A1 [23:45:21]*** FLAG_PRN_PAP1 set [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 [23:45:21]MH_I2C_Read... [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 8A 17 00 01 00 00 00 FF 0F B7 [23:45:21]state=0 [23:45:21]No paper [23:45:21]int [23:45:21]Write to MH i2c: 01 00 00 8B 17 A2 [23:45:21]*** FLAG_PRN_PAP2 set [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 [23:45:21]MH_I2C_Read... [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 8B 17 00 03 00 00 00 FF 0F BA [23:45:21]state=0 [23:45:21]No paper [23:45:21]Cover opened [23:45:21]int [23:45:21]Write to MH i2c: 01 00 00 8C 17 A3 [23:45:21]*** FLAG_PRN_PAP2 reset [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 [23:45:21]MH_I2C_Read... [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 8C 17 00 01 00 00 00 FF 0F B9 [23:45:21]state=3 [23:45:21]No paper [23:45:21]Cover closed [23:45:21]int [23:45:21]Write to MH i2c: 01 00 00 8D 17 A4 [23:45:21]*** FLAG_PRN_PAP2 set [23:45:21]Write i2c OK [23:45:21]MH_I2C_Read... [23:45:21]Read from MH i2c: 01 [23:45:21]MH_I2C_Read... [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 8D 17 00 03 00 00 00 FF 0F BC [23:45:21]state=0 [23:45:21]No paper [23:45:21]Cover opened [23:45:22]OFD Sender: No OFD packet to send [23:45:26]Write to MH i2c: 01 00 00 8E 17 A5 [23:45:26]Write i2c OK [23:45:26]MH_I2C_Read... [23:45:26]Read from MH i2c: 01 [23:45:26]MH_I2C_Read... [23:45:26]Read from MH i2c: 01 07 00 [23:45:26]MH_I2C_Read... [23:45:26]Read from MH i2c: 01 07 00 8E 17 00 03 00 00 00 FF 0F BD [23:45:26]state=3 [23:45:26]No paper [23:45:26]Cover opened [23:45:27]OFD Sender: No OFD packet to send [23:45:31]Write to MH i2c: 01 00 00 8F 17 A6 [23:45:31]Write i2c OK [23:45:31]MH_I2C_Read... [23:45:31]Read from MH i2c: 01 [23:45:31]MH_I2C_Read... [23:45:31]Read from MH i2c: 01 07 00 [23:45:31]MH_I2C_Read... [23:45:31]Read from MH i2c: 01 07 00 8F 17 00 03 00 00 00 FF 0F BE [23:45:31]state=3 [23:45:31]No paper [23:45:31]Cover opened [23:45:32]OFD Sender: No OFD packet to send [23:45:33]int [23:45:33]Write to MH i2c: 01 00 00 90 17 A7 [23:45:33]Write i2c OK [23:45:33]MH_I2C_Read... [23:45:33]Read from MH i2c: 01 [23:45:33]MH_I2C_Read... [23:45:33]*** FLAG_PRN_PAP2 reset [23:45:33]*** FLAG_PRN_PAP1 reset [23:45:33]Read from MH i2c: 01 07 00 [23:45:33]MH_I2C_Read... [23:45:33]Read from MH i2c: 01 07 00 90 17 00 00 00 00 00 FF 0F BC [23:45:33]state=3 [23:45:33]Cover closed [23:45:34]int [23:45:34]Write to MH i2c: 01 00 00 91 17 A8 [23:45:34]*** FLAG_PRN_KEY set [23:45:34]Write i2c OK [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: 01 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: 01 07 00 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: 01 07 00 91 17 00 08 00 00 00 FF 0F C5 [23:45:34]state=0 [23:45:34]Key pressed [23:45:34]Feed [23:45:34]Write to MH i2c: D8 00 00 92 17 80 [23:45:34]Write i2c OK [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: D8 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: D8 01 00 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: D8 01 00 92 17 00 81 [23:45:34]int [23:45:34]Write to MH i2c: 01 00 00 93 17 AA [23:45:34]Write i2c OK [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: 01 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: 01 07 00 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: 01 07 00 93 17 00 48 00 00 00 3C 00 35 [23:45:34]state=2 [23:45:34]Key pressed [23:45:34]int [23:45:34]Write to MH i2c: 01 00 00 94 17 AB [23:45:34]*** FLAG_PRN_KEY reset [23:45:34]Write i2c OK [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: 01 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: 01 07 00 [23:45:34]MH_I2C_Read... [23:45:34]Read from MH i2c: 01 07 00 94 17 00 00 00 00 00 FE 0F BF [23:45:34]state=2 [23:45:34]Stop feed [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:04]int [23:48:04]Write to MH i2c: 01 00 00 95 17 AC [23:48:04]*** FLAG_PRN_KEY set [23:48:04]Write i2c OK [23:48:04]MH_I2C_Read... [23:48:04]Read from MH i2c: 01 [23:48:04]MH_I2C_Read... [23:48:04]Read from MH i2c: 01 07 00 [23:48:04]MH_I2C_Read... [23:48:04]Read from MH i2c: 01 07 00 95 17 00 08 00 00 00 FF 0F C9 [23:48:04]state=0 [23:48:04]Key pressed [23:48:04]Feed [23:48:04]Write to MH i2c: D8 00 00 96 17 84 [23:48:04]Write i2c OK [23:48:04]MH_I2C_Read... [23:48:04]Read from MH i2c: D8 [23:48:04]MH_I2C_Read... [23:48:04]Read from MH i2c: D8 01 00 [23:48:04]MH_I2C_Read... [23:48:04]Read from MH i2c: D8 01 00 96 17 00 85 [23:48:04]int [23:48:04]Write to MH i2c: 01 00 00 97 17 AE [23:48:04]Write i2c OK [23:48:04]MH_I2C_Read... [23:48:05]Read from MH i2c: 01 [23:48:05]MH_I2C_Read... [23:48:05]Read from MH i2c: 01 07 00 [23:48:05]MH_I2C_Read... [23:48:05]Read from MH i2c: 01 07 00 97 17 00 48 00 00 00 3D 00 3A [23:48:05]state=2 [23:48:05]Key pressed [23:48:05]int [23:48:05]Write to MH i2c: 01 00 00 98 17 AF [23:48:05]*** FLAG_PRN_KEY reset [23:48:05]Write i2c OK [23:48:05]MH_I2C_Read... [23:48:05]Read from MH i2c: 01 [23:48:05]MH_I2C_Read... [23:48:05]Read from MH i2c: 01 07 00 [23:48:05]MH_I2C_Read... [23:48:05]Read from MH i2c: 01 07 00 98 17 00 00 00 00 00 FC 0F C1 [23:48:05]state=2 [23:48:05]Stop feed [23:48:06]int [23:48:06]Write to MH i2c: 01 00 00 99 17 B0 [23:48:06]*** FLAG_PRN_KEY set [23:48:06]Write i2c OK [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: 01 [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: 01 07 00 [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: 01 07 00 99 17 00 08 00 00 00 FF 0F CD [23:48:06]state=0 [23:48:06]Key pressed [23:48:06]Feed [23:48:06]Write to MH i2c: D8 00 00 9A 17 88 [23:48:06]Write i2c OK [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: D8 [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: D8 01 00 [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: D8 01 00 9A 17 00 89 [23:48:06]int [23:48:06]Write to MH i2c: 01 00 00 9B 17 B2 [23:48:06]Write i2c OK [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: 01 [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: 01 07 00 [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: 01 07 00 9B 17 00 48 00 00 00 3C 00 3D [23:48:06]state=2 [23:48:06]Key pressed [23:48:06]int [23:48:06]Write to MH i2c: 01 00 00 9C 17 B3 [23:48:06]*** FLAG_PRN_KEY reset [23:48:06]Write i2c OK [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: 01 [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: 01 07 00 [23:48:06]MH_I2C_Read... [23:48:06]Read from MH i2c: 01 07 00 9C 17 00 00 00 00 00 F6 0F BF [23:48:06]state=2 [23:48:06]Stop feed [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:15]accept exits with 10 [23:51:15]New connection [23:51:15]New thread 3067108708 created [23:51:15]Thread 3067252068 joined [23:51:15]Waiting for new connection... [23:51:15] Sock 10.Parse request [23:51:15]Sock 10.Check first char [23:51:15]Sock 10.First char is OK [23:51:15]request: POST /json_proto HTTP/1.0 [23:51:15]Method: POST [23:51:15]URL: /json_proto [23:51:15]Method is POST - this is cgi request [23:51:15]url: /json_proto [23:51:15]query_string will be loaded in cgi processing [23:51:15]execute_cgi json_proto POST (null) [23:51:15]execute_cgi path=json_proto method=POST [23:51:15]POST find Content-Length [23:51:15]Host: 172.17.44.4:8080 [23:51:15]Content-Length: 728 [23:51:15]Content-Type: application/json [23:51:15] [23:51:15]POST finish read [23:51:15]Found Content-Length = 728 [23:51:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141044", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 108.00, "quantity" : 1.000, "sum" : 108.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 108.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:15]execute_script... [23:51: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)141044", "tax_sys" : 0, "items" : [ { "code": "5449000027474", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0437\u0435\u043B \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C\u0430\u0448\u043A\u0430 1\u043B", "price" : 108.00, "quantity" : 1.000, "sum" : 108.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 108.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:51:15]POST & json_proto [23:51:15]process_json_proto [23:51:15]json parsed OK: [23:51:15]protocol is kg_v1.0 [23:51:15]action value=close_receipt [23:51:15]process_action close_receipt [23:51:15]cmd_close_receipt [23:51:15]MH_GetDate [23:51:15]Write to MH i2c: F0 00 00 9D 17 A3 [23:51:15]Write i2c OK [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: F0 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: F0 09 00 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: F0 09 00 9D 17 00 F5 9B 46 66 6C E9 28 66 CB [23:51:15]GetLastDocTimeStamp 1715901530 [23:51:15]current date 1715903477 [23:51:15]FM_GetShiftState [23:51:15]SAM_PROTO_GetShiftState [23:51:15]wFMCommunicate request_size=4 [23:51:15]MH_SAM_APDU [23:51:15]CAPDU: 80 13 01 00 [23:51:15]Write to MH i2c: E2 08 00 9E 17 80 13 01 00 00 00 00 00 32 [23:51:15]Write i2c OK [23:51:15]MH_I2C_Read... [23:51:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:15]Read from MH i2c: E2 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: E2 0E 00 [23:51:15]MH_I2C_Read... [23:51:15]Read from MH i2c: E2 0E 00 9E 17 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 3E [23:51:15]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:51:15]wFMCommunicate OK [23:51:15]SAM_PROTO_GetShiftState done [23:51:15]FM_GetShiftState done [23:51:15]opened in 1715818246 [23:51:15]opened+sec_in_day 1715904646 [23:51:15]quantity*price = 10800 [23:51:15]sum+1 = 10801 [23:51:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 108.00 НСП 1% : 0.96 НДС 12% : 11.47 Наличными: 108.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 123 16.05.2024 23:51 Смена: 44 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5063 ФПД: 81302362130191 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T235117&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5063&fm=81302362130191&tin=02508201610067®Number=0000000000154221&sum=10800 0 [23:51:16]StoreToDocumentArchive [23:51:16]shift 44 fd 5063 [23:51:16]save to /storage/0044/doc_00005063 [23:51:16]save last doc name /storage/0044/doc_00005063 to /storage/kkm_last_doc_name [23:51:16]save OK [23:51:16]Clear old archive folders... [23:51:16]ProcessDocumentItem done err = 0, tmpTLVsize=308 [23:51:16]tlvbuf is 01213C40 [23:51:16]SAM_PROTO_ClearQueue [23:51:16]wFMCommunicate request_size=4 [23:51:16]MH_SAM_APDU [23:51:16]CAPDU: 80 09 00 00 [23:51:16]Write to MH i2c: E2 08 00 AB 17 80 09 00 00 00 00 00 00 34 [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:16]*** iso7816_exchange 80 09 00 00... 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 AB 17 00 90 00 36 [23:51:16]RAPDU: 90 00 [23:51:16]wFMCommunicate OK [23:51:16]SAM_PROTO_ClearQueue done [23:51:16]KKMCreateOFDPacket [23:51:16]OFDProtocolAddRootSTLVToBuf [23:51:16]FM_MakeSignedData [23:51:16]FM_MakeSignedData [23:51:16]SAM_PROTO_SignData [23:51:16]wFMCommunicate request_size=4 [23:51:16]MH_SAM_APDU [23:51:16]CAPDU: 80 0D 01 02 [23:51:16]Write to MH i2c: E2 08 00 AC 17 80 0D 01 02 00 00 00 00 3C [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:16]*** iso7816_exchange 80 0D 01 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 AC 17 00 90 00 37 [23:51:16]RAPDU: 90 00 [23:51:16]wFMCommunicate OK [23:51:16]wFMCommunicate request_size=255 [23:51:16]MH_SAM_APDU [23:51:16]CAPDU: 80 0D 02 02 FA 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 2A 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 04 00 00 00 00 07 04 06 00 30 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 7B 00 00 00 F4 03 04 00 F5 9B 46 66 0E 04 04 00 2C 00 00 00 B9 [23:51:16]Write to MH i2c: E2 02 01 AD 17 80 0D 02 02 FA 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 2A 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 04 00 00 00 00 07 04 06 00 30 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 7B 00 00 00 F4 03 04 00 F5 9B 46 66 0E 04 04 00 2C 00 00 00 B9 00 00 F6 [23:51:16]Write i2c OK [23:51:16]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 AD 17 00 90 00 38 [23:51:16]RAPDU: 90 00 [23:51:16]wFMCommunicate OK [23:51:16]wFMCommunicate request_size=67 [23:51:16]MH_SAM_APDU [23:51:16]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C7 13 00 00 35 04 06 00 49 F1 AE 6A 07 0F [23:51:16]Write to MH i2c: E2 46 00 AE 17 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C7 13 00 00 35 04 06 00 49 F1 AE 6A 07 0F 00 00 D1 [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 [23:51:16]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 03 00 [23:51:16]MH_I2C_Read... [23:51:16]Read from MH i2c: E2 03 00 AE 17 00 90 00 39 [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 AF 17 80 0D 03 02 00 00 00 00 41 [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 AF 17 00 2C DF C2 38 FE BF 2A DF 90 00 0D [23:51:16]RAPDU: 2C DF C2 38 FE BF 2A DF 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 B0 17 80 11 00 00 00 00 00 00 41 [23:51:16]Write i2c OK [23:51:16]MH_I2C_Read... [23:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:17]Read from MH i2c: E2 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: E2 17 00 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: E2 17 00 B0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 96 [23:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:51:17]wFMCommunicate OK [23:51:17]CreateOFDProtocolMessage done [23:51:17]OFDSenderStorePacket 5063 [23:51:17]StoreOFDPacket docnum=5063 [23:51:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 48 01 00 00 F1 E1 40 01 B8 82 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 2A 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 04 00 00 00 00 07 04 06 00 30 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 7B 00 00 00 F4 03 04 00 F5 9B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C7 13 00 00 35 04 06 00 49 F1 AE 6A 07 0F 2C DF C2 38 FE BF 2A DF [23:51:17]CheckFolder [23:51:17]dirname=/storage/ofd_packets [23:51:17]CheckFolder done [23:51:17]ProducePacketName [23:51:17]name=ofd_packets/00005063 [23:51:17]NVStorageSaveData ofd_packets/00005063 [23:51:17]File name is /storage/ofd_packets/00005063 [23:51:17]Write 358 bytes [23:51:17]NVStorageSaveData done [23:51:17]OFDSenderStorePacket done [23:51:17]KKMCreateOFDPacket done [23:51:17]NVStorageSaveData kkm_last_timestamp [23:51:17]File name is /storage/kkm_last_timestamp [23:51:17]Write 4 bytes [23:51:17]NVStorageSaveData done [23:51:17]ExternCall_PrintAddStr [23:51:17]wPrintStart [23:51:17]Write to MH i2c: 01 00 00 B1 17 C8 [23:51:17]Write i2c OK [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: 01 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: 01 07 00 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: 01 07 00 B1 17 00 00 00 00 00 FF 0F DD [23:51:17]RasterBufferAndPrint [23:51:17]line Счет N : (3)141044 [23:51:17]line ИНН: 02508201610067 [23:51:17]line Контрольно-Кассовый Чек [23:51:17]line ПРОДАЖА [23:51:17]line Товар: 5449000027474 [23:51:17]line Напиток FuzeTea зел чай манго,ромашка 1л [23:51:17]line 1.000 * 108.00 [23:51:17]line = 108.00 [23:51:17]line НДС 12% НСП 1% [23:51:17]line > о реализуемом товаре [23:51:17]line ИТОГО: 108.00 [23:51:17]line НСП 1% : 0.96 [23:51:17]line НДС 12% : 11.47 [23:51:17]line Наличными: 108.00 [23:51:17]line Безнал.: 0.00 [23:51:17]line Место: АЗС № 135 "Партнер Нефть" [23:51:17]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [23:51:17]line СНО: Общий режим [23:51:17]line Чек 123 16.05.2024 23:51 [23:51:17]line Смена: 44 ФФД: 1.0 [23:51:17]line ЗНМ: 0300000237 [23:51:17]line РНМ: 0000000000154221 [23:51:17]line Версия ККМ: v1.0 [23:51:17]line ФМ: 0000000000963259 [23:51:17]line ФД: 5063 [23:51:17]line ФПД: 81302362130191 [23:51:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240516T235117&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5063&fm=81302362130191&tin=02508201610067®Number=0000000000154221&sum=10800 [23:51:17]line 0 [23:51:17]written 0, free lines is 4095 [23:51:17]OFD Sender: Processing packet 5063 [packets to send 4, broken 3] [23:51:17]ProducePacketName [23:51:17]name=ofd_packets/00005063 [23:51:17]OFD Sender: To server: pG, [23:51:17]CommunicateWithHost lk.salyk.kg:30040 [23:51:17]ConnectInit lk.salyk.kg [23:51:17]Write to MH i2c: 01 00 00 DA 17 F1 [23:51:17]Write i2c OK [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: 01 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: 01 07 00 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: 01 07 00 DA 17 00 00 00 00 00 6D 0C 71 [23:51:17]RasterBufferAndPrint [23:51:17]line [23:51:17]line [23:51:17]line [23:51:17]line [23:51:17]line [23:51:17]written 0, free lines is 3185 [23:51:17]MH_Cut [23:51:17]Write to MH i2c: D1 01 00 E1 17 01 CA [23:51:17]Write i2c OK [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: D1 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: D1 01 00 [23:51:17]MH_I2C_Read... [23:51:17]Read from MH i2c: D1 01 00 E1 17 00 C9 [23:51:17]Write to MH i2c: 01 00 00 E2 17 F9 [23:51:17]Write i2c OK [23:51:17]MH_I2C_Read... [23:51:17]Connected sock=9 [23:51:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 48 01 00 00 F1 E1 40 01 B8 82 5A 03 01 00 03 00 34 01 1E 04 01 00 01 23 04 86 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 37 34 06 04 42 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC D0 B0 D1 88 D0 BA D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 2A 00 00 00 00 13 04 06 00 30 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 2A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 60 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 04 00 00 00 00 07 04 06 00 30 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 7B 00 00 00 F4 03 04 00 F5 9B 46 66 0E 04 04 00 2C 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C7 13 00 00 35 04 06 00 49 F1 AE 6A 07 0F 2C DF C2 38 FE BF 2A DF [23:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 CB ED 47 00 D6 E4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C7 13 00 00 F4 03 04 00 B8 47 46 66 B6 04 01 00 00 F0 44 6C FA 2D 8E 91 3A [23:51:17]CommunicateWithHost err = 0 [23:51:17]CheckOFDResponse [23:51:17]1017 (14) - 77093643461234 [23:51:17]1041 (16) - 0000000000963259 [23:51:17]1040 (4) - 5063 [23:51:17]1012 (4) - 16.05.2024 17:51 [23:51:17]1206 (1) - 0 [23:51:17]OFD Sender: Remove packet 5063 [23:51:17]ProducePacketName [23:51:17]name=ofd_packets/00005063 [23:51:17]NVStorageDeleteData [23:51:18]OFD Sender: No OFD packet to send [23:51:18]*** Cut start [23:51:18]*** Partial cut [23:51:18]*** CUTSNS_PIN = 1 [23:51:18]*** CUTSNS_PIN = 0 [23:51:18]*** Brake cut motor [23:51:19]Read from MH i2c: 01 [23:51:19]MH_I2C_Read... [23:51:19]*** Stop cut motor [23:51:19]*** Cut end [23:51:19]Read from MH i2c: 01 07 00 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: 01 07 00 E2 17 00 00 00 00 00 FF 0F 0E [23:51:19]process_action close_receipt done [23:51:19]requested_data is exist [23:51:19]produce_requested_data [23:51:19]requested_item fm.sn is exist - process it [23:51:19]wFMCommunicate request_size=4 [23:51:19]MH_SAM_APDU [23:51:19]CAPDU: 80 11 00 00 [23:51:19]Write to MH i2c: E2 08 00 E3 17 80 11 00 00 00 00 00 00 74 [23:51:19]Write i2c OK [23:51:19]MH_I2C_Read... [23:51:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:51:19]Read from MH i2c: E2 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: E2 17 00 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: E2 17 00 E3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 C9 [23:51:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:51:19]wFMCommunicate OK [23:51:19]requested_item fd.num is exist - process it [23:51:19]SAM_PROTO_GetFieldsCounters [23:51:19]wFMCommunicate request_size=4 [23:51:19]MH_SAM_APDU [23:51:19]CAPDU: 80 13 00 00 [23:51:19]Write to MH i2c: E2 08 00 E4 17 80 13 00 00 00 00 00 00 77 [23:51:19]Write i2c OK [23:51:19]MH_I2C_Read... [23:51:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:51:19]Read from MH i2c: E2 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: E2 62 00 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: E2 62 00 E4 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 07 [23:51:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:51:19]wFMCommunicate OK [23:51:19]SAM_PROTO_GetFieldsCounters done [23:51:19]requested_item shift.num is exist - process it [23:51:19]requested_item shift.opened is exist - process it [23:51:19]req_shift_opened [23:51:19]FM_GetShiftState [23:51:19]SAM_PROTO_GetShiftState [23:51:19]wFMCommunicate request_size=4 [23:51:19]MH_SAM_APDU [23:51:19]CAPDU: 80 13 01 00 [23:51:19]Write to MH i2c: E2 08 00 E5 17 80 13 01 00 00 00 00 00 79 [23:51:19]Write i2c OK [23:51:19]MH_I2C_Read... [23:51:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:51:19]Read from MH i2c: E2 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: E2 0E 00 [23:51:19]MH_I2C_Read... [23:51:19]Read from MH i2c: E2 0E 00 E5 17 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 85 [23:51:19]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:51:19]wFMCommunicate OK [23:51:19]SAM_PROTO_GetShiftState done [23:51:19]FM_GetShiftState done [23:51:19]req_shift_opened done [23:51:19]requested_item shift.open_date is exist - process it [23:51:19]req_shift_open_date [23:51:19]req_shift_open_date done [23:51:19]produce_requested_data done [23:51:19]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [23:51:19]process_action_free close_receipt [23:51:19]json_value_free [23:51:19]json_value_free done [23:51:19]process_json_proto returns [23:51:19]Send response to host [23:51:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [23:51:19]free response buf [23:51:19]execute_script done [23:51:19]execute_script returns [23:51:19]free content buf [23:51:19]Sock 10.Close socket [23:51:19]Sock 10.Thread stoped [23:51:23]OFD Sender: No OFD packet to send [23:51:28]OFD Sender: No OFD packet to send [23:51:33]OFD Sender: No OFD packet to send [23:51:38]OFD Sender: No OFD packet to send [23:51:43]OFD Sender: No OFD packet to send [23:51:48]OFD Sender: No OFD packet to send [23:51:53]OFD Sender: No OFD packet to send [23:51:58]OFD Sender: No OFD packet to send [23:52:03]OFD Sender: No OFD packet to send [23:52:08]OFD Sender: No OFD packet to send [23:52:13]OFD Sender: No OFD packet to send [23:52:18]OFD Sender: No OFD packet to send [23:52:23]OFD Sender: No OFD packet to send [23:52:26]accept exits with 7 [23:52:26]New connection [23:52:26]New thread 3067252068 created [23:52:26]Thread 3067108708 joined [23:52:26]Waiting for new connection... [23:52:26] Sock 7.Parse request [23:52:26]Sock 7.Check first char [23:52:26]Sock 7.First char is OK [23:52:26]request: POST /json_proto HTTP/1.0 [23:52:26]Method: POST [23:52:26]URL: /json_proto [23:52:26]Method is POST - this is cgi request [23:52:26]url: /json_proto [23:52:26]query_string will be loaded in cgi processing [23:52:26]execute_cgi json_proto POST (null) [23:52:26]execute_cgi path=json_proto method=POST [23:52:26]POST find Content-Length [23:52:26]Host: 172.17.44.4:8080 [23:52:26]Content-Length: 215 [23:52:26]Content-Type: application/json [23:52:26] [23:52:26]POST finish read [23:52:26]Found Content-Length = 215 [23:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:26]execute_script... [23:52:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:52:26]POST & json_proto [23:52:26]process_json_proto [23:52:26]json parsed OK: [23:52:26]protocol is kg_v1.0 [23:52:26]action value=get_value [23:52:26]process_action get_value [23:52:26]cmd_get_value [23:52:26]process_action get_value done [23:52:26]requested_data is exist [23:52:26]produce_requested_data [23:52:26]requested_item kkm.sn is exist - process it [23:52:26]requested_item kkm.ver is exist - process it [23:52:26]requested_item fm.sn is exist - process it [23:52:26]wFMCommunicate request_size=4 [23:52:26]MH_SAM_APDU [23:52:26]CAPDU: 80 11 00 00 [23:52:26]Write to MH i2c: E2 08 00 E6 17 80 11 00 00 00 00 00 00 77 [23:52:26]Write i2c OK [23:52:26]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 17 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 17 00 E6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 CC [23:52:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:52:27]wFMCommunicate OK [23:52:27]requested_item fd.num is exist - process it [23:52:27]SAM_PROTO_GetFieldsCounters [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 13 00 00 [23:52:27]Write to MH i2c: E2 08 00 E7 17 80 13 00 00 00 00 00 00 7A [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 62 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 62 00 E7 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [23:52:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:52:27]wFMCommunicate OK [23:52:27]SAM_PROTO_GetFieldsCounters done [23:52:27]requested_item shift.num is exist - process it [23:52:27]requested_item shift.opened is exist - process it [23:52:27]req_shift_opened [23:52:27]FM_GetShiftState [23:52:27]SAM_PROTO_GetShiftState [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 13 01 00 [23:52:27]Write to MH i2c: E2 08 00 E8 17 80 13 01 00 00 00 00 00 7C [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 0E 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 0E 00 E8 17 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 88 [23:52:27]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:52:27]wFMCommunicate OK [23:52:27]SAM_PROTO_GetShiftState done [23:52:27]FM_GetShiftState done [23:52:27]req_shift_opened done [23:52:27]requested_item shift.open_date is exist - process it [23:52:27]req_shift_open_date [23:52:27]req_shift_open_date done [23:52:27]produce_requested_data done [23:52:27]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [23:52:27]process_action_free get_value [23:52:27]json_value_free [23:52:27]json_value_free done [23:52:27]process_json_proto returns [23:52:27]Send response to host [23:52:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [23:52:27]free response buf [23:52:27]execute_script done [23:52:27]execute_script returns [23:52:27]free content buf [23:52:27]Sock 7.Close socket [23:52:27]Sock 7.Thread stoped [23:52:27]accept exits with 9 [23:52:27]New connection [23:52:27]New thread 3067108708 created [23:52:27]Thread 3067252068 joined [23:52:27]Waiting for new connection... [23:52:27] Sock 9.Parse request [23:52:27]Sock 9.Check first char [23:52:27]Sock 9.First char is OK [23:52:27]request: POST /json_proto HTTP/1.0 [23:52:27]Method: POST [23:52:27]URL: /json_proto [23:52:27]Method is POST - this is cgi request [23:52:27]url: /json_proto [23:52:27]query_string will be loaded in cgi processing [23:52:27]execute_cgi json_proto POST (null) [23:52:27]execute_cgi path=json_proto method=POST [23:52:27]POST find Content-Length [23:52:27]Host: 172.17.44.4:8080 [23:52:27]Content-Length: 331 [23:52:27]Content-Type: application/json [23:52:27] [23:52:27]POST finish read [23:52:27]Found Content-Length = 331 [23:52:27]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:52:27]execute_script... [23:52:27]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:52:27]POST & json_proto [23:52:27]process_json_proto [23:52:27]json parsed OK: [23:52:27]protocol is kg_v1.0 [23:52:27]action value=get_value [23:52:27]process_action get_value [23:52:27]cmd_get_value [23:52:27]process_action get_value done [23:52:27]requested_data is exist [23:52:27]produce_requested_data [23:52:27]requested_item fm.sale.total is exist - process it [23:52:27]SAM_PROTO_GetFMData [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 13 03 00 [23:52:27]Write to MH i2c: E2 08 00 E9 17 80 13 03 00 00 00 00 00 7F [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:52:27]Read from MH i2c: E2 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 [23:52:27]MH_I2C_Read... [23:52:27]Read from MH i2c: E2 FD 00 E9 17 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 5B [23:52:27]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [23:52:27]wFMCommunicate OK [23:52:27]wFMCommunicate request_size=4 [23:52:27]MH_SAM_APDU [23:52:27]CAPDU: 80 17 00 00 [23:52:27]Write to MH i2c: E2 08 00 EA 17 80 17 00 00 00 00 00 00 81 [23:52:27]Write i2c OK [23:52:27]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 EA 17 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 1E [23:52:28]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:52:28]wFMCommunicate OK [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 17 00 00 [23:52:28]Write to MH i2c: E2 08 00 EB 17 80 17 00 00 00 00 00 00 82 [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 EB 17 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 26 [23:52:28]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 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 90 00 [23:52:28]wFMCommunicate OK [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 17 00 00 [23:52:28]Write to MH i2c: E2 08 00 EC 17 80 17 00 00 00 00 00 00 83 [23:52:28]OFD Sender: No OFD packet to send [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:28]Read from MH i2c: E2 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 [23:52:28]MH_I2C_Read... [23:52:28]Read from MH i2c: E2 FD 00 EC 17 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 FD [23:52:28]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:52:28]wFMCommunicate OK [23:52:28]wFMCommunicate request_size=4 [23:52:28]MH_SAM_APDU [23:52:28]CAPDU: 80 17 00 00 [23:52:28]Write to MH i2c: E2 08 00 ED 17 80 17 00 00 00 00 00 00 84 [23:52:28]Write i2c OK [23:52:28]MH_I2C_Read... [23:52:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:52:28]Read from MH i2c: E2 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 DC 00 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 DC 00 ED 17 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 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 68 [23:52:29]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 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:52:29]wFMCommunicate OK [23:52:29]SAM_PROTO_GetFMData done [23:52:29]requested_item fm.sale_refund.total is exist - process it [23:52:29]requested_item fm.buy.total is exist - process it [23:52:29]requested_item shift.sale.total is exist - process it [23:52:29]SAM_PROTO_GetShiftData [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 13 02 00 [23:52:29]Write to MH i2c: E2 08 00 EE 17 80 13 02 00 00 00 00 00 83 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:52:29]Read from MH i2c: E2 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 EE 17 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A6 [23:52:29]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:52:29]wFMCommunicate OK [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 17 00 00 [23:52:29]Write to MH i2c: E2 08 00 EF 17 80 17 00 00 00 00 00 00 86 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:29]Read from MH i2c: E2 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 [23:52:29]MH_I2C_Read... [23:52:29]Read from MH i2c: E2 FD 00 EF 17 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 A8 [23:52:29]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:52:29]wFMCommunicate OK [23:52:29]wFMCommunicate request_size=4 [23:52:29]MH_SAM_APDU [23:52:29]CAPDU: 80 17 00 00 [23:52:29]Write to MH i2c: E2 08 00 F0 17 80 17 00 00 00 00 00 00 87 [23:52:29]Write i2c OK [23:52:29]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 FD 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 FD 00 F0 17 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3E [23:52:30]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:52:30]wFMCommunicate OK [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 17 00 00 [23:52:30]Write to MH i2c: E2 08 00 F1 17 80 17 00 00 00 00 00 00 88 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 FD 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 FD 00 F1 17 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 FA [23:52:30]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:52:30]wFMCommunicate OK [23:52:30]wFMCommunicate request_size=4 [23:52:30]MH_SAM_APDU [23:52:30]CAPDU: 80 17 00 00 [23:52:30]Write to MH i2c: E2 08 00 F2 17 80 17 00 00 00 00 00 00 89 [23:52:30]Write i2c OK [23:52:30]MH_I2C_Read... [23:52:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:52:30]Read from MH i2c: E2 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 CB 00 [23:52:30]MH_I2C_Read... [23:52:30]Read from MH i2c: E2 CB 00 F2 17 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 72 [23:52:30]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:52:30]wFMCommunicate OK [23:52:30]SAM_PROTO_GetShiftData done [23:52:30]requested_item shift.sale.total_cash is exist - process it [23:52:30]requested_item shift.sale_refund.total is exist - process it [23:52:30]requested_item shift.sale_refund.total_cash is exist - process it [23:52:30]requested_item shift.buy.total is exist - process it [23:52:30]requested_item shift.buy.total_cash is exist - process it [23:52:30]produce_requested_data done [23:52:30]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:52:30]process_action_free get_value [23:52:30]json_value_free [23:52:30]json_value_free done [23:52:30]process_json_proto returns [23:52:30]Send response to host [23:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:52:30]free response buf [23:52:30]execute_script done [23:52:30]execute_script returns [23:52:30]free content buf [23:52:30]Sock 9.Close socket [23:52:30]Sock 9.Thread stoped [23:52:33]OFD Sender: No OFD packet to send [23:52:38]OFD Sender: No OFD packet to send [23:52:43]OFD Sender: No OFD packet to send [23:52:48]OFD Sender: No OFD packet to send [23:52:53]OFD Sender: No OFD packet to send [23:52:58]OFD Sender: No OFD packet to send [23:53:03]OFD Sender: No OFD packet to send [23:53:08]OFD Sender: No OFD packet to send [23:53:13]OFD Sender: No OFD packet to send [23:53:18]OFD Sender: No OFD packet to send [23:53:23]OFD Sender: No OFD packet to send [23:53:28]OFD Sender: No OFD packet to send [23:53:33]OFD Sender: No OFD packet to send [23:53:38]OFD Sender: No OFD packet to send [23:53:43]OFD Sender: No OFD packet to send [23:53:48]OFD Sender: No OFD packet to send [23:53:53]OFD Sender: No OFD packet to send [23:53:58]OFD Sender: No OFD packet to send [23:54:03]OFD Sender: No OFD packet to send [23:54:08]OFD Sender: No OFD packet to send [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:48]OFD Sender: No OFD packet to send [23:54:53]OFD Sender: No OFD packet to send [23:54:58]OFD Sender: No OFD packet to send [23:55:03]OFD Sender: No OFD packet to send [23:55:08]OFD Sender: No OFD packet to send [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:37]accept exits with 7 [23:55:37]New connection [23:55:37]New thread 3067252068 created [23:55:37]Thread 3067108708 joined [23:55:37]Waiting for new connection... [23:55:37] Sock 7.Parse request [23:55:37]Sock 7.Check first char [23:55:37]Sock 7.First char is OK [23:55:37]request: POST /json_proto HTTP/1.0 [23:55:37]Method: POST [23:55:37]URL: /json_proto [23:55:37]Method is POST - this is cgi request [23:55:37]url: /json_proto [23:55:37]query_string will be loaded in cgi processing [23:55:37]execute_cgi json_proto POST (null) [23:55:37]execute_cgi path=json_proto method=POST [23:55:37]POST find Content-Length [23:55:37]Host: 172.17.44.4:8080 [23:55:37]Content-Length: 215 [23:55:37]Content-Type: application/json [23:55:37] [23:55:37]POST finish read [23:55:37]Found Content-Length = 215 [23:55:37]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:37]execute_script... [23:55:37]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:37]POST & json_proto [23:55:37]process_json_proto [23:55:37]json parsed OK: [23:55:37]protocol is kg_v1.0 [23:55:37]action value=get_value [23:55:37]process_action get_value [23:55:37]cmd_get_value [23:55:37]process_action get_value done [23:55:37]requested_data is exist [23:55:37]produce_requested_data [23:55:37]requested_item kkm.sn is exist - process it [23:55:37]requested_item kkm.ver is exist - process it [23:55:37]requested_item fm.sn is exist - process it [23:55:37]wFMCommunicate request_size=4 [23:55:37]MH_SAM_APDU [23:55:37]CAPDU: 80 11 00 00 [23:55:37]Write to MH i2c: E2 08 00 F3 17 80 11 00 00 00 00 00 00 84 [23:55:37]Write i2c OK [23:55:37]MH_I2C_Read... [23:55:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:37]Read from MH i2c: E2 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: E2 17 00 [23:55:37]MH_I2C_Read... [23:55:37]Read from MH i2c: E2 17 00 F3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 D9 [23:55:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:55:37]wFMCommunicate OK [23:55:37]requested_item fd.num is exist - process it [23:55:37]SAM_PROTO_GetFieldsCounters [23:55:37]wFMCommunicate request_size=4 [23:55:37]MH_SAM_APDU [23:55:37]CAPDU: 80 13 00 00 [23:55:37]Write to MH i2c: E2 08 00 F4 17 80 13 00 00 00 00 00 00 87 [23:55:37]Write i2c OK [23:55:37]MH_I2C_Read... [23:55:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:38]Read from MH i2c: E2 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 62 00 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 62 00 F4 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [23:55:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:38]wFMCommunicate OK [23:55:38]SAM_PROTO_GetFieldsCounters done [23:55:38]requested_item shift.num is exist - process it [23:55:38]requested_item shift.opened is exist - process it [23:55:38]req_shift_opened [23:55:38]FM_GetShiftState [23:55:38]SAM_PROTO_GetShiftState [23:55:38]wFMCommunicate request_size=4 [23:55:38]MH_SAM_APDU [23:55:38]CAPDU: 80 13 01 00 [23:55:38]Write to MH i2c: E2 08 00 F5 17 80 13 01 00 00 00 00 00 89 [23:55:38]Write i2c OK [23:55:38]MH_I2C_Read... [23:55:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:38]Read from MH i2c: E2 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 0E 00 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 0E 00 F5 17 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 95 [23:55:38]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:55:38]wFMCommunicate OK [23:55:38]SAM_PROTO_GetShiftState done [23:55:38]FM_GetShiftState done [23:55:38]req_shift_opened done [23:55:38]requested_item shift.open_date is exist - process it [23:55:38]req_shift_open_date [23:55:38]req_shift_open_date done [23:55:38]produce_requested_data done [23:55:38]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [23:55:38]process_action_free get_value [23:55:38]json_value_free [23:55:38]json_value_free done [23:55:38]process_json_proto returns [23:55:38]Send response to host [23:55:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [23:55:38]free response buf [23:55:38]execute_script done [23:55:38]execute_script returns [23:55:38]free content buf [23:55:38]Sock 7.Close socket [23:55:38]Sock 7.Thread stoped [23:55:38]accept exits with 9 [23:55:38]New connection [23:55:38]New thread 3067108708 created [23:55:38]Thread 3067252068 joined [23:55:38]Waiting for new connection... [23:55:38] Sock 9.Parse request [23:55:38]Sock 9.Check first char [23:55:38]Sock 9.First char is OK [23:55:38]request: POST /json_proto HTTP/1.0 [23:55:38]Method: POST [23:55:38]URL: /json_proto [23:55:38]Method is POST - this is cgi request [23:55:38]url: /json_proto [23:55:38]query_string will be loaded in cgi processing [23:55:38]execute_cgi json_proto POST (null) [23:55:38]execute_cgi path=json_proto method=POST [23:55:38]POST find Content-Length [23:55:38]Host: 172.17.44.4:8080 [23:55:38]Content-Length: 331 [23:55:38]Content-Type: application/json [23:55:38] [23:55:38]POST finish read [23:55:38]Found Content-Length = 331 [23:55:38]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:38]execute_script... [23:55:38]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:38]POST & json_proto [23:55:38]process_json_proto [23:55:38]json parsed OK: [23:55:38]protocol is kg_v1.0 [23:55:38]action value=get_value [23:55:38]process_action get_value [23:55:38]cmd_get_value [23:55:38]process_action get_value done [23:55:38]requested_data is exist [23:55:38]produce_requested_data [23:55:38]requested_item fm.sale.total is exist - process it [23:55:38]SAM_PROTO_GetFMData [23:55:38]wFMCommunicate request_size=4 [23:55:38]MH_SAM_APDU [23:55:38]CAPDU: 80 13 03 00 [23:55:38]Write to MH i2c: E2 08 00 F6 17 80 13 03 00 00 00 00 00 8C [23:55:38]Write i2c OK [23:55:38]MH_I2C_Read... [23:55:38]OFD Sender: No OFD packet to send [23:55:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:55:38]Read from MH i2c: E2 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 FD 00 [23:55:38]MH_I2C_Read... [23:55:38]Read from MH i2c: E2 FD 00 F6 17 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 68 [23:55:38]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [23:55:38]wFMCommunicate OK [23:55:38]wFMCommunicate request_size=4 [23:55:38]MH_SAM_APDU [23:55:38]CAPDU: 80 17 00 00 [23:55:38]Write to MH i2c: E2 08 00 F7 17 80 17 00 00 00 00 00 00 8E [23:55:38]Write i2c OK [23:55:38]MH_I2C_Read... [23:55:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:39]Read from MH i2c: E2 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 FD 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 FD 00 F7 17 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2B [23:55:39]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:55:39]wFMCommunicate OK [23:55:39]wFMCommunicate request_size=4 [23:55:39]MH_SAM_APDU [23:55:39]CAPDU: 80 17 00 00 [23:55:39]Write to MH i2c: E2 08 00 F8 17 80 17 00 00 00 00 00 00 8F [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:39]Read from MH i2c: E2 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 FD 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 FD 00 F8 17 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 33 [23:55:39]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 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 90 00 [23:55:39]wFMCommunicate OK [23:55:39]wFMCommunicate request_size=4 [23:55:39]MH_SAM_APDU [23:55:39]CAPDU: 80 17 00 00 [23:55:39]Write to MH i2c: E2 08 00 F9 17 80 17 00 00 00 00 00 00 90 [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:39]Read from MH i2c: E2 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 FD 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 FD 00 F9 17 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0A [23:55:39]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:55:39]wFMCommunicate OK [23:55:39]wFMCommunicate request_size=4 [23:55:39]MH_SAM_APDU [23:55:39]CAPDU: 80 17 00 00 [23:55:39]Write to MH i2c: E2 08 00 FA 17 80 17 00 00 00 00 00 00 91 [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:55:39]Read from MH i2c: E2 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 DC 00 [23:55:39]MH_I2C_Read... [23:55:39]Read from MH i2c: E2 DC 00 FA 17 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 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 75 [23:55:39]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 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:39]wFMCommunicate OK [23:55:39]SAM_PROTO_GetFMData done [23:55:39]requested_item fm.sale_refund.total is exist - process it [23:55:39]requested_item fm.buy.total is exist - process it [23:55:39]requested_item shift.sale.total is exist - process it [23:55:39]SAM_PROTO_GetShiftData [23:55:39]wFMCommunicate request_size=4 [23:55:39]MH_SAM_APDU [23:55:39]CAPDU: 80 13 02 00 [23:55:39]Write to MH i2c: E2 08 00 FB 17 80 13 02 00 00 00 00 00 90 [23:55:39]Write i2c OK [23:55:39]MH_I2C_Read... [23:55:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:55:40]Read from MH i2c: E2 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 FB 17 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B3 [23:55:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:40]wFMCommunicate OK [23:55:40]wFMCommunicate request_size=4 [23:55:40]MH_SAM_APDU [23:55:40]CAPDU: 80 17 00 00 [23:55:40]Write to MH i2c: E2 08 00 FC 17 80 17 00 00 00 00 00 00 93 [23:55:40]Write i2c OK [23:55:40]MH_I2C_Read... [23:55:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:40]Read from MH i2c: E2 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 FC 17 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 B5 [23:55:40]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:40]wFMCommunicate OK [23:55:40]wFMCommunicate request_size=4 [23:55:40]MH_SAM_APDU [23:55:40]CAPDU: 80 17 00 00 [23:55:40]Write to MH i2c: E2 08 00 FD 17 80 17 00 00 00 00 00 00 94 [23:55:40]Write i2c OK [23:55:40]MH_I2C_Read... [23:55:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:40]Read from MH i2c: E2 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 [23:55:40]MH_I2C_Read... [23:55:40]Read from MH i2c: E2 FD 00 FD 17 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [23:55:40]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:40]wFMCommunicate OK [23:55:40]wFMCommunicate request_size=4 [23:55:40]MH_SAM_APDU [23:55:40]CAPDU: 80 17 00 00 [23:55:40]Write to MH i2c: E2 08 00 FE 17 80 17 00 00 00 00 00 00 95 [23:55:40]Write i2c OK [23:55:40]MH_I2C_Read... [23:55:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:41]Read from MH i2c: E2 [23:55:41]MH_I2C_Read... [23:55:41]Read from MH i2c: E2 FD 00 [23:55:41]MH_I2C_Read... [23:55:41]Read from MH i2c: E2 FD 00 FE 17 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 07 [23:55:41]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:41]wFMCommunicate OK [23:55:41]wFMCommunicate request_size=4 [23:55:41]MH_SAM_APDU [23:55:41]CAPDU: 80 17 00 00 [23:55:41]Write to MH i2c: E2 08 00 FF 17 80 17 00 00 00 00 00 00 96 [23:55:41]Write i2c OK [23:55:41]MH_I2C_Read... [23:55:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:55:41]Read from MH i2c: E2 [23:55:41]MH_I2C_Read... [23:55:41]Read from MH i2c: E2 CB 00 [23:55:41]MH_I2C_Read... [23:55:41]Read from MH i2c: E2 CB 00 FF 17 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 7F [23:55:41]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:41]wFMCommunicate OK [23:55:41]SAM_PROTO_GetShiftData done [23:55:41]requested_item shift.sale.total_cash is exist - process it [23:55:41]requested_item shift.sale_refund.total is exist - process it [23:55:41]requested_item shift.sale_refund.total_cash is exist - process it [23:55:41]requested_item shift.buy.total is exist - process it [23:55:41]requested_item shift.buy.total_cash is exist - process it [23:55:41]produce_requested_data done [23:55:41]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:41]process_action_free get_value [23:55:41]json_value_free [23:55:41]json_value_free done [23:55:41]process_json_proto returns [23:55:41]Send response to host [23:55:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:41]free response buf [23:55:41]execute_script done [23:55:41]execute_script returns [23:55:41]free content buf [23:55:41]Sock 9.Close socket [23:55:41]Sock 9.Thread stoped [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [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:41]accept exits with 7 [23:56:41]New connection [23:56:41]New thread 3067252068 created [23:56:41]Thread 3067108708 joined [23:56:41]Waiting for new connection... [23:56:41] Sock 7.Parse request [23:56:41]Sock 7.Check first char [23:56:41]Sock 7.First char is OK [23:56:41]request: POST /json_proto HTTP/1.0 [23:56:41]Method: POST [23:56:41]URL: /json_proto [23:56:41]Method is POST - this is cgi request [23:56:41]url: /json_proto [23:56:41]query_string will be loaded in cgi processing [23:56:41]execute_cgi json_proto POST (null) [23:56:41]execute_cgi path=json_proto method=POST [23:56:41]POST find Content-Length [23:56:41]Host: 172.17.44.4:8080 [23:56:41]Content-Length: 215 [23:56:41]Content-Type: application/json [23:56:41] [23:56:41]POST finish read [23:56:41]Found Content-Length = 215 [23:56:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:41]execute_script... [23:56:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:41]POST & json_proto [23:56:41]process_json_proto [23:56:41]json parsed OK: [23:56:41]protocol is kg_v1.0 [23:56:41]action value=get_value [23:56:41]process_action get_value [23:56:41]cmd_get_value [23:56:41]process_action get_value done [23:56:41]requested_data is exist [23:56:41]produce_requested_data [23:56:41]requested_item kkm.sn is exist - process it [23:56:41]requested_item kkm.ver is exist - process it [23:56:41]requested_item fm.sn is exist - process it [23:56:41]wFMCommunicate request_size=4 [23:56:41]MH_SAM_APDU [23:56:41]CAPDU: 80 11 00 00 [23:56:41]Write to MH i2c: E2 08 00 00 18 80 11 00 00 00 00 00 00 92 [23:56:41]Write i2c OK [23:56:41]MH_I2C_Read... [23:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:41]Read from MH i2c: E2 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 17 00 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 17 00 00 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 E7 [23:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:56:41]wFMCommunicate OK [23:56:41]requested_item fd.num is exist - process it [23:56:41]SAM_PROTO_GetFieldsCounters [23:56:41]wFMCommunicate request_size=4 [23:56:41]MH_SAM_APDU [23:56:41]CAPDU: 80 13 00 00 [23:56:41]Write to MH i2c: E2 08 00 01 18 80 13 00 00 00 00 00 00 95 [23:56:41]Write i2c OK [23:56:41]MH_I2C_Read... [23:56:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:41]Read from MH i2c: E2 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 62 00 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 62 00 01 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [23:56:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:41]wFMCommunicate OK [23:56:41]SAM_PROTO_GetFieldsCounters done [23:56:41]requested_item shift.num is exist - process it [23:56:41]requested_item shift.opened is exist - process it [23:56:41]req_shift_opened [23:56:41]FM_GetShiftState [23:56:41]SAM_PROTO_GetShiftState [23:56:41]wFMCommunicate request_size=4 [23:56:41]MH_SAM_APDU [23:56:41]CAPDU: 80 13 01 00 [23:56:41]Write to MH i2c: E2 08 00 02 18 80 13 01 00 00 00 00 00 97 [23:56:41]Write i2c OK [23:56:41]MH_I2C_Read... [23:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:41]Read from MH i2c: E2 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 0E 00 [23:56:41]MH_I2C_Read... [23:56:41]Read from MH i2c: E2 0E 00 02 18 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 A3 [23:56:41]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:56:41]wFMCommunicate OK [23:56:41]SAM_PROTO_GetShiftState done [23:56:41]FM_GetShiftState done [23:56:41]req_shift_opened done [23:56:41]requested_item shift.open_date is exist - process it [23:56:41]req_shift_open_date [23:56:41]req_shift_open_date done [23:56:41]produce_requested_data done [23:56:41]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [23:56:41]process_action_free get_value [23:56:41]json_value_free [23:56:41]json_value_free done [23:56:41]process_json_proto returns [23:56:41]Send response to host [23:56:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [23:56:41]free response buf [23:56:41]execute_script done [23:56:41]execute_script returns [23:56:41]free content buf [23:56:41]Sock 7.Close socket [23:56:41]Sock 7.Thread stoped [23:56:41]accept exits with 9 [23:56:41]New connection [23:56:41]New thread 3067108708 created [23:56:41]Thread 3067252068 joined [23:56:41]Waiting for new connection... [23:56:41] Sock 9.Parse request [23:56:41]Sock 9.Check first char [23:56:41]Sock 9.First char is OK [23:56:41]request: POST /json_proto HTTP/1.0 [23:56:41]Method: POST [23:56:41]URL: /json_proto [23:56:41]Method is POST - this is cgi request [23:56:41]url: /json_proto [23:56:41]query_string will be loaded in cgi processing [23:56:41]execute_cgi json_proto POST (null) [23:56:41]execute_cgi path=json_proto method=POST [23:56:41]POST find Content-Length [23:56:41]Host: 172.17.44.4:8080 [23:56:41]Content-Length: 331 [23:56:41]Content-Type: application/json [23:56:41] [23:56:41]POST finish read [23:56:41]Found Content-Length = 331 [23:56:41]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:41]execute_script... [23:56:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:41]POST & json_proto [23:56:41]process_json_proto [23:56:41]json parsed OK: [23:56:41]protocol is kg_v1.0 [23:56:41]action value=get_value [23:56:41]process_action get_value [23:56:41]cmd_get_value [23:56:41]process_action get_value done [23:56:41]requested_data is exist [23:56:41]produce_requested_data [23:56:41]requested_item fm.sale.total is exist - process it [23:56:41]SAM_PROTO_GetFMData [23:56:41]wFMCommunicate request_size=4 [23:56:41]MH_SAM_APDU [23:56:41]CAPDU: 80 13 03 00 [23:56:41]Write to MH i2c: E2 08 00 03 18 80 13 03 00 00 00 00 00 9A [23:56:41]Write i2c OK [23:56:41]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 03 18 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 76 [23:56:42]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [23:56:42]wFMCommunicate OK [23:56:42]wFMCommunicate request_size=4 [23:56:42]MH_SAM_APDU [23:56:42]CAPDU: 80 17 00 00 [23:56:42]Write to MH i2c: E2 08 00 04 18 80 17 00 00 00 00 00 00 9C [23:56:42]Write i2c OK [23:56:42]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 04 18 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 39 [23:56:42]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:56:42]wFMCommunicate OK [23:56:42]wFMCommunicate request_size=4 [23:56:42]MH_SAM_APDU [23:56:42]CAPDU: 80 17 00 00 [23:56:42]Write to MH i2c: E2 08 00 05 18 80 17 00 00 00 00 00 00 9D [23:56:42]Write i2c OK [23:56:42]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 05 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 41 [23:56:42]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 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 90 00 [23:56:42]wFMCommunicate OK [23:56:42]wFMCommunicate request_size=4 [23:56:42]MH_SAM_APDU [23:56:42]CAPDU: 80 17 00 00 [23:56:42]Write to MH i2c: E2 08 00 06 18 80 17 00 00 00 00 00 00 9E [23:56:42]Write i2c OK [23:56:42]MH_I2C_Read... [23:56:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:42]Read from MH i2c: E2 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 [23:56:42]MH_I2C_Read... [23:56:42]Read from MH i2c: E2 FD 00 06 18 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 18 [23:56:42]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:56:42]wFMCommunicate OK [23:56:42]wFMCommunicate request_size=4 [23:56:42]MH_SAM_APDU [23:56:42]CAPDU: 80 17 00 00 [23:56:42]Write to MH i2c: E2 08 00 07 18 80 17 00 00 00 00 00 00 9F [23:56:42]Write i2c OK [23:56:42]MH_I2C_Read... [23:56:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:56:43]Read from MH i2c: E2 [23:56:43]MH_I2C_Read... [23:56:43]Read from MH i2c: E2 DC 00 [23:56:43]MH_I2C_Read... [23:56:43]Read from MH i2c: E2 DC 00 07 18 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 83 [23:56:43]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 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:43]wFMCommunicate OK [23:56:43]SAM_PROTO_GetFMData done [23:56:43]requested_item fm.sale_refund.total is exist - process it [23:56:43]requested_item fm.buy.total is exist - process it [23:56:43]requested_item shift.sale.total is exist - process it [23:56:43]SAM_PROTO_GetShiftData [23:56:43]wFMCommunicate request_size=4 [23:56:43]MH_SAM_APDU [23:56:43]CAPDU: 80 13 02 00 [23:56:43]Write to MH i2c: E2 08 00 08 18 80 13 02 00 00 00 00 00 9E [23:56:43]Write i2c OK [23:56:43]MH_I2C_Read... [23:56:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:43]Read from MH i2c: E2 [23:56:43]MH_I2C_Read... [23:56:43]Read from MH i2c: E2 FD 00 [23:56:43]MH_I2C_Read... [23:56:43]Read from MH i2c: E2 FD 00 08 18 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C1 [23:56:43]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:43]wFMCommunicate OK [23:56:43]wFMCommunicate request_size=4 [23:56:43]MH_SAM_APDU [23:56:43]CAPDU: 80 17 00 00 [23:56:43]Write to MH i2c: E2 08 00 09 18 80 17 00 00 00 00 00 00 A1 [23:56:43]Write i2c OK [23:56:43]MH_I2C_Read... [23:56:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:43]Read from MH i2c: E2 [23:56:43]MH_I2C_Read... [23:56:43]Read from MH i2c: E2 FD 00 [23:56:43]MH_I2C_Read... [23:56:43]Read from MH i2c: E2 FD 00 09 18 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 C3 [23:56:43]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:43]wFMCommunicate OK [23:56:43]wFMCommunicate request_size=4 [23:56:43]MH_SAM_APDU [23:56:43]CAPDU: 80 17 00 00 [23:56:43]Write to MH i2c: E2 08 00 0A 18 80 17 00 00 00 00 00 00 A2 [23:56:43]OFD Sender: No OFD packet to send [23:56:43]Write i2c OK [23:56:43]MH_I2C_Read... [23:56:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:44]Read from MH i2c: E2 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 FD 00 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 FD 00 0A 18 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 59 [23:56:44]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:44]wFMCommunicate OK [23:56:44]wFMCommunicate request_size=4 [23:56:44]MH_SAM_APDU [23:56:44]CAPDU: 80 17 00 00 [23:56:44]Write to MH i2c: E2 08 00 0B 18 80 17 00 00 00 00 00 00 A3 [23:56:44]Write i2c OK [23:56:44]MH_I2C_Read... [23:56:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:44]Read from MH i2c: E2 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 FD 00 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 FD 00 0B 18 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 15 [23:56:44]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:44]wFMCommunicate OK [23:56:44]wFMCommunicate request_size=4 [23:56:44]MH_SAM_APDU [23:56:44]CAPDU: 80 17 00 00 [23:56:44]Write to MH i2c: E2 08 00 0C 18 80 17 00 00 00 00 00 00 A4 [23:56:44]Write i2c OK [23:56:44]MH_I2C_Read... [23:56:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:56:44]Read from MH i2c: E2 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 CB 00 [23:56:44]MH_I2C_Read... [23:56:44]Read from MH i2c: E2 CB 00 0C 18 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 8D [23:56:44]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:44]wFMCommunicate OK [23:56:44]SAM_PROTO_GetShiftData done [23:56:44]requested_item shift.sale.total_cash is exist - process it [23:56:44]requested_item shift.sale_refund.total is exist - process it [23:56:44]requested_item shift.sale_refund.total_cash is exist - process it [23:56:44]requested_item shift.buy.total is exist - process it [23:56:44]requested_item shift.buy.total_cash is exist - process it [23:56:44]produce_requested_data done [23:56:44]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:44]process_action_free get_value [23:56:44]json_value_free [23:56:44]json_value_free done [23:56:44]process_json_proto returns [23:56:44]Send response to host [23:56:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:44]free response buf [23:56:44]execute_script done [23:56:44]execute_script returns [23:56:44]free content buf [23:56:44]Sock 9.Close socket [23:56:44]Sock 9.Thread stoped [23:56:48]OFD Sender: No OFD packet to send [23:56:53]OFD Sender: No OFD packet to send [23:56:54]accept exits with 7 [23:56:54]New connection [23:56:54]New thread 3067252068 created [23:56:54]Thread 3067108708 joined [23:56:54]Waiting for new connection... [23:56:54] Sock 7.Parse request [23:56:54]Sock 7.Check first char [23:56:54]Sock 7.First char is OK [23:56:54]request: POST /json_proto HTTP/1.0 [23:56:54]Method: POST [23:56:54]URL: /json_proto [23:56:54]Method is POST - this is cgi request [23:56:54]url: /json_proto [23:56:54]query_string will be loaded in cgi processing [23:56:54]execute_cgi json_proto POST (null) [23:56:54]execute_cgi path=json_proto method=POST [23:56:54]POST find Content-Length [23:56:54]Host: 172.17.44.4:8080 [23:56:54]Content-Length: 215 [23:56:54]Content-Type: application/json [23:56:54] [23:56:54]POST finish read [23:56:54]Found Content-Length = 215 [23:56:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:54]execute_script... [23:56:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:54]POST & json_proto [23:56:54]process_json_proto [23:56:54]json parsed OK: [23:56:54]protocol is kg_v1.0 [23:56:54]action value=get_value [23:56:54]process_action get_value [23:56:54]cmd_get_value [23:56:54]process_action get_value done [23:56:54]requested_data is exist [23:56:54]produce_requested_data [23:56:54]requested_item kkm.sn is exist - process it [23:56:54]requested_item kkm.ver is exist - process it [23:56:54]requested_item fm.sn is exist - process it [23:56:54]wFMCommunicate request_size=4 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 11 00 00 [23:56:54]Write to MH i2c: E2 08 00 0D 18 80 11 00 00 00 00 00 00 9F [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 17 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 17 00 0D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 F4 [23:56:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:56:54]wFMCommunicate OK [23:56:54]requested_item fd.num is exist - process it [23:56:54]SAM_PROTO_GetFieldsCounters [23:56:54]wFMCommunicate request_size=4 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 13 00 00 [23:56:54]Write to MH i2c: E2 08 00 0E 18 80 13 00 00 00 00 00 00 A2 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 62 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 62 00 0E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [23:56:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:54]wFMCommunicate OK [23:56:54]SAM_PROTO_GetFieldsCounters done [23:56:54]requested_item shift.num is exist - process it [23:56:54]requested_item shift.opened is exist - process it [23:56:54]req_shift_opened [23:56:54]FM_GetShiftState [23:56:54]SAM_PROTO_GetShiftState [23:56:54]wFMCommunicate request_size=4 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 13 01 00 [23:56:54]Write to MH i2c: E2 08 00 0F 18 80 13 01 00 00 00 00 00 A4 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 0E 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 0E 00 0F 18 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 B0 [23:56:54]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:56:54]wFMCommunicate OK [23:56:54]SAM_PROTO_GetShiftState done [23:56:54]FM_GetShiftState done [23:56:54]req_shift_opened done [23:56:54]requested_item shift.open_date is exist - process it [23:56:54]req_shift_open_date [23:56:54]req_shift_open_date done [23:56:54]produce_requested_data done [23:56:54]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [23:56:54]process_action_free get_value [23:56:54]json_value_free [23:56:54]json_value_free done [23:56:54]process_json_proto returns [23:56:54]Send response to host [23:56:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [23:56:54]free response buf [23:56:54]execute_script done [23:56:54]execute_script returns [23:56:54]free content buf [23:56:54]Sock 7.Close socket [23:56:54]Sock 7.Thread stoped [23:56:54]accept exits with 9 [23:56:54]New connection [23:56:54]New thread 3067108708 created [23:56:54]Thread 3067252068 joined [23:56:54]Waiting for new connection... [23:56:54] Sock 9.Parse request [23:56:54]Sock 9.Check first char [23:56:54]Sock 9.First char is OK [23:56:54]request: POST /json_proto HTTP/1.0 [23:56:54]Method: POST [23:56:54]URL: /json_proto [23:56:54]Method is POST - this is cgi request [23:56:54]url: /json_proto [23:56:54]query_string will be loaded in cgi processing [23:56:54]execute_cgi json_proto POST (null) [23:56:54]execute_cgi path=json_proto method=POST [23:56:54]POST find Content-Length [23:56:54]Host: 172.17.44.4:8080 [23:56:54]Content-Length: 331 [23:56:54]Content-Type: application/json [23:56:54] [23:56:54]POST finish read [23:56:54]Found Content-Length = 331 [23:56:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:54]execute_script... [23:56:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:54]POST & json_proto [23:56:54]process_json_proto [23:56:54]json parsed OK: [23:56:54]protocol is kg_v1.0 [23:56:54]action value=get_value [23:56:54]process_action get_value [23:56:54]cmd_get_value [23:56:54]process_action get_value done [23:56:54]requested_data is exist [23:56:54]produce_requested_data [23:56:54]requested_item fm.sale.total is exist - process it [23:56:54]SAM_PROTO_GetFMData [23:56:54]wFMCommunicate request_size=4 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 13 03 00 [23:56:54]Write to MH i2c: E2 08 00 10 18 80 13 03 00 00 00 00 00 A7 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:55]Read from MH i2c: E2 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: E2 FD 00 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: E2 FD 00 10 18 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 83 [23:56:55]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [23:56:55]wFMCommunicate OK [23:56:55]wFMCommunicate request_size=4 [23:56:55]MH_SAM_APDU [23:56:55]CAPDU: 80 17 00 00 [23:56:55]Write to MH i2c: E2 08 00 11 18 80 17 00 00 00 00 00 00 A9 [23:56:55]Write i2c OK [23:56:55]MH_I2C_Read... [23:56:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:55]Read from MH i2c: E2 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: E2 FD 00 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: E2 FD 00 11 18 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 46 [23:56:55]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:56:55]wFMCommunicate OK [23:56:55]wFMCommunicate request_size=4 [23:56:55]MH_SAM_APDU [23:56:55]CAPDU: 80 17 00 00 [23:56:55]Write to MH i2c: E2 08 00 12 18 80 17 00 00 00 00 00 00 AA [23:56:55]Write i2c OK [23:56:55]MH_I2C_Read... [23:56:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:55]Read from MH i2c: E2 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: E2 FD 00 [23:56:55]MH_I2C_Read... [23:56:55]Read from MH i2c: E2 FD 00 12 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4E [23:56:55]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 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 90 00 [23:56:55]wFMCommunicate OK [23:56:55]wFMCommunicate request_size=4 [23:56:55]MH_SAM_APDU [23:56:55]CAPDU: 80 17 00 00 [23:56:55]Write to MH i2c: E2 08 00 13 18 80 17 00 00 00 00 00 00 AB [23:56:55]Write i2c OK [23:56:55]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 FD 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 FD 00 13 18 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 25 [23:56:56]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:56:56]wFMCommunicate OK [23:56:56]wFMCommunicate request_size=4 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 17 00 00 [23:56:56]Write to MH i2c: E2 08 00 14 18 80 17 00 00 00 00 00 00 AC [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 DC 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 DC 00 14 18 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 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 90 [23:56:56]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 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:56]wFMCommunicate OK [23:56:56]SAM_PROTO_GetFMData done [23:56:56]requested_item fm.sale_refund.total is exist - process it [23:56:56]requested_item fm.buy.total is exist - process it [23:56:56]requested_item shift.sale.total is exist - process it [23:56:56]SAM_PROTO_GetShiftData [23:56:56]wFMCommunicate request_size=4 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 13 02 00 [23:56:56]Write to MH i2c: E2 08 00 15 18 80 13 02 00 00 00 00 00 AB [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 FD 00 [23:56:56]MH_I2C_Read... [23:56:57]Read from MH i2c: E2 FD 00 15 18 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CE [23:56:57]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:57]wFMCommunicate OK [23:56:57]wFMCommunicate request_size=4 [23:56:57]MH_SAM_APDU [23:56:57]CAPDU: 80 17 00 00 [23:56:57]Write to MH i2c: E2 08 00 16 18 80 17 00 00 00 00 00 00 AE [23:56:57]Write i2c OK [23:56:57]MH_I2C_Read... [23:56:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:57]Read from MH i2c: E2 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: E2 FD 00 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: E2 FD 00 16 18 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 D0 [23:56:57]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:57]wFMCommunicate OK [23:56:57]wFMCommunicate request_size=4 [23:56:57]MH_SAM_APDU [23:56:57]CAPDU: 80 17 00 00 [23:56:57]Write to MH i2c: E2 08 00 17 18 80 17 00 00 00 00 00 00 AF [23:56:57]Write i2c OK [23:56:57]MH_I2C_Read... [23:56:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:57]Read from MH i2c: E2 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: E2 FD 00 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: E2 FD 00 17 18 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 66 [23:56:57]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:57]wFMCommunicate OK [23:56:57]wFMCommunicate request_size=4 [23:56:57]MH_SAM_APDU [23:56:57]CAPDU: 80 17 00 00 [23:56:57]Write to MH i2c: E2 08 00 18 18 80 17 00 00 00 00 00 00 B0 [23:56:57]Write i2c OK [23:56:57]MH_I2C_Read... [23:56:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:57]Read from MH i2c: E2 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: E2 FD 00 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: E2 FD 00 18 18 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 22 [23:56:57]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:57]wFMCommunicate OK [23:56:57]wFMCommunicate request_size=4 [23:56:57]MH_SAM_APDU [23:56:57]CAPDU: 80 17 00 00 [23:56:57]Write to MH i2c: E2 08 00 19 18 80 17 00 00 00 00 00 00 B1 [23:56:57]Write i2c OK [23:56:57]MH_I2C_Read... [23:56:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:56:58]Read from MH i2c: E2 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 CB 00 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 CB 00 19 18 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 9A [23:56:58]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:58]wFMCommunicate OK [23:56:58]SAM_PROTO_GetShiftData done [23:56:58]requested_item shift.sale.total_cash is exist - process it [23:56:58]requested_item shift.sale_refund.total is exist - process it [23:56:58]requested_item shift.sale_refund.total_cash is exist - process it [23:56:58]requested_item shift.buy.total is exist - process it [23:56:58]requested_item shift.buy.total_cash is exist - process it [23:56:58]produce_requested_data done [23:56:58]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:58]process_action_free get_value [23:56:58]json_value_free [23:56:58]json_value_free done [23:56:58]process_json_proto returns [23:56:58]Send response to host [23:56:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:58]free response buf [23:56:58]execute_script done [23:56:58]execute_script returns [23:56:58]free content buf [23:56:58]Sock 9.Close socket [23:56:58]Sock 9.Thread stoped [23:56:59]OFD Sender: No OFD packet to send [23:57:04]OFD Sender: No OFD packet to send [23:57:09]OFD Sender: No OFD packet to send [23:57:14]OFD Sender: No OFD packet to send [23:57:19]OFD Sender: No OFD packet to send [23:57:24]OFD Sender: No OFD packet to send [23:57:29]OFD Sender: No OFD packet to send [23:57:34]OFD Sender: No OFD packet to send [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:16]accept exits with 7 [23:58:16]New connection [23:58:16]New thread 3067252068 created [23:58:16]Thread 3067108708 joined [23:58:16]Waiting for new connection... [23:58:16] Sock 7.Parse request [23:58:16]Sock 7.Check first char [23:58:16]Sock 7.First char is OK [23:58:16]request: POST /json_proto HTTP/1.0 [23:58:16]Method: POST [23:58:16]URL: /json_proto [23:58:16]Method is POST - this is cgi request [23:58:16]url: /json_proto [23:58:16]query_string will be loaded in cgi processing [23:58:16]execute_cgi json_proto POST (null) [23:58:16]execute_cgi path=json_proto method=POST [23:58:16]POST find Content-Length [23:58:16]Host: 172.17.44.4:8080 [23:58:16]Content-Length: 215 [23:58:16]Content-Type: application/json [23:58:16] [23:58:16]POST finish read [23:58:16]Found Content-Length = 215 [23:58:16]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:58:16]execute_script... [23:58:16]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:58:16]POST & json_proto [23:58:16]process_json_proto [23:58:16]json parsed OK: [23:58:16]protocol is kg_v1.0 [23:58:16]action value=get_value [23:58:16]process_action get_value [23:58:16]cmd_get_value [23:58:16]process_action get_value done [23:58:16]requested_data is exist [23:58:16]produce_requested_data [23:58:16]requested_item kkm.sn is exist - process it [23:58:16]requested_item kkm.ver is exist - process it [23:58:16]requested_item fm.sn is exist - process it [23:58:16]wFMCommunicate request_size=4 [23:58:16]MH_SAM_APDU [23:58:16]CAPDU: 80 11 00 00 [23:58:16]Write to MH i2c: E2 08 00 1A 18 80 11 00 00 00 00 00 00 AC [23:58:16]Write i2c OK [23:58:16]MH_I2C_Read... [23:58:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:58:16]Read from MH i2c: E2 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 17 00 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 17 00 1A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 01 [23:58:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:58:16]wFMCommunicate OK [23:58:16]requested_item fd.num is exist - process it [23:58:16]SAM_PROTO_GetFieldsCounters [23:58:16]wFMCommunicate request_size=4 [23:58:16]MH_SAM_APDU [23:58:16]CAPDU: 80 13 00 00 [23:58:16]Write to MH i2c: E2 08 00 1B 18 80 13 00 00 00 00 00 00 AF [23:58:16]Write i2c OK [23:58:16]MH_I2C_Read... [23:58:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:58:16]Read from MH i2c: E2 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 62 00 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 62 00 1B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [23:58:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:58:16]wFMCommunicate OK [23:58:16]SAM_PROTO_GetFieldsCounters done [23:58:16]requested_item shift.num is exist - process it [23:58:16]requested_item shift.opened is exist - process it [23:58:16]req_shift_opened [23:58:16]FM_GetShiftState [23:58:16]SAM_PROTO_GetShiftState [23:58:16]wFMCommunicate request_size=4 [23:58:16]MH_SAM_APDU [23:58:16]CAPDU: 80 13 01 00 [23:58:16]Write to MH i2c: E2 08 00 1C 18 80 13 01 00 00 00 00 00 B1 [23:58:16]Write i2c OK [23:58:16]MH_I2C_Read... [23:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:58:16]Read from MH i2c: E2 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 0E 00 [23:58:16]MH_I2C_Read... [23:58:16]Read from MH i2c: E2 0E 00 1C 18 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 BD [23:58:16]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:58:16]wFMCommunicate OK [23:58:16]SAM_PROTO_GetShiftState done [23:58:16]FM_GetShiftState done [23:58:16]req_shift_opened done [23:58:16]requested_item shift.open_date is exist - process it [23:58:16]req_shift_open_date [23:58:16]req_shift_open_date done [23:58:16]produce_requested_data done [23:58:16]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [23:58:16]process_action_free get_value [23:58:16]json_value_free [23:58:16]json_value_free done [23:58:16]process_json_proto returns [23:58:16]Send response to host [23:58:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [23:58:16]free response buf [23:58:16]execute_script done [23:58:16]execute_script returns [23:58:16]free content buf [23:58:16]Sock 7.Close socket [23:58:16]Sock 7.Thread stoped [23:58:16]accept exits with 9 [23:58:16]New connection [23:58:16]New thread 3067108708 created [23:58:16]Thread 3067252068 joined [23:58:16]Waiting for new connection... [23:58:16] Sock 9.Parse request [23:58:16]Sock 9.Check first char [23:58:16]Sock 9.First char is OK [23:58:16]request: POST /json_proto HTTP/1.0 [23:58:16]Method: POST [23:58:16]URL: /json_proto [23:58:16]Method is POST - this is cgi request [23:58:16]url: /json_proto [23:58:16]query_string will be loaded in cgi processing [23:58:16]execute_cgi json_proto POST (null) [23:58:16]execute_cgi path=json_proto method=POST [23:58:16]POST find Content-Length [23:58:16]Host: 172.17.44.4:8080 [23:58:16]Content-Length: 331 [23:58:16]Content-Type: application/json [23:58:16] [23:58:16]POST finish read [23:58:16]Found Content-Length = 331 [23:58:16]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:58:16]execute_script... [23:58:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:58:17]POST & json_proto [23:58:17]process_json_proto [23:58:17]json parsed OK: [23:58:17]protocol is kg_v1.0 [23:58:17]action value=get_value [23:58:17]process_action get_value [23:58:17]cmd_get_value [23:58:17]process_action get_value done [23:58:17]requested_data is exist [23:58:17]produce_requested_data [23:58:17]requested_item fm.sale.total is exist - process it [23:58:17]SAM_PROTO_GetFMData [23:58:17]wFMCommunicate request_size=4 [23:58:17]MH_SAM_APDU [23:58:17]CAPDU: 80 13 03 00 [23:58:17]Write to MH i2c: E2 08 00 1D 18 80 13 03 00 00 00 00 00 B4 [23:58:17]Write i2c OK [23:58:17]MH_I2C_Read... [23:58:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:58:17]Read from MH i2c: E2 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: E2 FD 00 [23:58:17]MH_I2C_Read... [23:58:17]Read from MH i2c: E2 FD 00 1D 18 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 90 [23:58:17]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [23:58:17]wFMCommunicate OK [23:58:17]wFMCommunicate request_size=4 [23:58:17]MH_SAM_APDU [23:58:17]CAPDU: 80 17 00 00 [23:58:17]Write to MH i2c: E2 08 00 1E 18 80 17 00 00 00 00 00 00 B6 [23:58:17]Write i2c OK [23:58:17]MH_I2C_Read... [23:58:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:18]Read from MH i2c: E2 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 FD 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 FD 00 1E 18 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 53 [23:58:18]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:58:18]wFMCommunicate OK [23:58:18]wFMCommunicate request_size=4 [23:58:18]MH_SAM_APDU [23:58:18]CAPDU: 80 17 00 00 [23:58:18]Write to MH i2c: E2 08 00 1F 18 80 17 00 00 00 00 00 00 B7 [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:18]Read from MH i2c: E2 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 FD 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 FD 00 1F 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5B [23:58:18]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 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 90 00 [23:58:18]wFMCommunicate OK [23:58:18]wFMCommunicate request_size=4 [23:58:18]MH_SAM_APDU [23:58:18]CAPDU: 80 17 00 00 [23:58:18]Write to MH i2c: E2 08 00 20 18 80 17 00 00 00 00 00 00 B8 [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:18]Read from MH i2c: E2 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 FD 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 FD 00 20 18 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 32 [23:58:18]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:58:18]wFMCommunicate OK [23:58:18]wFMCommunicate request_size=4 [23:58:18]MH_SAM_APDU [23:58:18]CAPDU: 80 17 00 00 [23:58:18]Write to MH i2c: E2 08 00 21 18 80 17 00 00 00 00 00 00 B9 [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:58:18]Read from MH i2c: E2 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 DC 00 [23:58:18]MH_I2C_Read... [23:58:18]Read from MH i2c: E2 DC 00 21 18 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 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 9D [23:58:18]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 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:58:18]wFMCommunicate OK [23:58:18]SAM_PROTO_GetFMData done [23:58:18]requested_item fm.sale_refund.total is exist - process it [23:58:18]requested_item fm.buy.total is exist - process it [23:58:18]requested_item shift.sale.total is exist - process it [23:58:18]SAM_PROTO_GetShiftData [23:58:18]wFMCommunicate request_size=4 [23:58:18]MH_SAM_APDU [23:58:18]CAPDU: 80 13 02 00 [23:58:18]Write to MH i2c: E2 08 00 22 18 80 13 02 00 00 00 00 00 B8 [23:58:18]Write i2c OK [23:58:18]MH_I2C_Read... [23:58:19]OFD Sender: No OFD packet to send [23:58:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:58:19]Read from MH i2c: E2 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 22 18 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DB [23:58:19]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:58:19]wFMCommunicate OK [23:58:19]wFMCommunicate request_size=4 [23:58:19]MH_SAM_APDU [23:58:19]CAPDU: 80 17 00 00 [23:58:19]Write to MH i2c: E2 08 00 23 18 80 17 00 00 00 00 00 00 BB [23:58:19]Write i2c OK [23:58:19]MH_I2C_Read... [23:58:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:19]Read from MH i2c: E2 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 23 18 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 DD [23:58:19]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:58:19]wFMCommunicate OK [23:58:19]wFMCommunicate request_size=4 [23:58:19]MH_SAM_APDU [23:58:19]CAPDU: 80 17 00 00 [23:58:19]Write to MH i2c: E2 08 00 24 18 80 17 00 00 00 00 00 00 BC [23:58:19]Write i2c OK [23:58:19]MH_I2C_Read... [23:58:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:19]Read from MH i2c: E2 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 [23:58:19]MH_I2C_Read... [23:58:19]Read from MH i2c: E2 FD 00 24 18 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 73 [23:58:19]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:58:19]wFMCommunicate OK [23:58:19]wFMCommunicate request_size=4 [23:58:19]MH_SAM_APDU [23:58:19]CAPDU: 80 17 00 00 [23:58:19]Write to MH i2c: E2 08 00 25 18 80 17 00 00 00 00 00 00 BD [23:58:19]Write i2c OK [23:58:19]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 FD 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 FD 00 25 18 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 2F [23:58:20]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:58:20]wFMCommunicate OK [23:58:20]wFMCommunicate request_size=4 [23:58:20]MH_SAM_APDU [23:58:20]CAPDU: 80 17 00 00 [23:58:20]Write to MH i2c: E2 08 00 26 18 80 17 00 00 00 00 00 00 BE [23:58:20]Write i2c OK [23:58:20]MH_I2C_Read... [23:58:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:58:20]Read from MH i2c: E2 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 CB 00 [23:58:20]MH_I2C_Read... [23:58:20]Read from MH i2c: E2 CB 00 26 18 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 A7 [23:58:20]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:58:20]wFMCommunicate OK [23:58:20]SAM_PROTO_GetShiftData done [23:58:20]requested_item shift.sale.total_cash is exist - process it [23:58:20]requested_item shift.sale_refund.total is exist - process it [23:58:20]requested_item shift.sale_refund.total_cash is exist - process it [23:58:20]requested_item shift.buy.total is exist - process it [23:58:20]requested_item shift.buy.total_cash is exist - process it [23:58:20]produce_requested_data done [23:58:20]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:58:20]process_action_free get_value [23:58:20]json_value_free [23:58:20]json_value_free done [23:58:20]process_json_proto returns [23:58:20]Send response to host [23:58:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:58:20]free response buf [23:58:20]execute_script done [23:58:20]execute_script returns [23:58:20]free content buf [23:58:20]Sock 9.Close socket [23:58:20]Sock 9.Thread stoped [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:01]accept exits with 7 [23:59:01]New connection [23:59:01]New thread 3067252068 created [23:59:01]Thread 3067108708 joined [23:59:01]Waiting for new connection... [23:59:01] Sock 7.Parse request [23:59:01]Sock 7.Check first char [23:59:01]Sock 7.First char is OK [23:59:01]request: POST /json_proto HTTP/1.0 [23:59:01]Method: POST [23:59:01]URL: /json_proto [23:59:01]Method is POST - this is cgi request [23:59:01]url: /json_proto [23:59:01]query_string will be loaded in cgi processing [23:59:01]execute_cgi json_proto POST (null) [23:59:01]execute_cgi path=json_proto method=POST [23:59:01]POST find Content-Length [23:59:01]Host: 172.17.44.4:8080 [23:59:01]Content-Length: 215 [23:59:01]Content-Type: application/json [23:59:01] [23:59:01]POST finish read [23:59:01]Found Content-Length = 215 [23:59:01]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:59:01]execute_script... [23:59:01]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:59:01]POST & json_proto [23:59:01]process_json_proto [23:59:01]json parsed OK: [23:59:01]protocol is kg_v1.0 [23:59:01]action value=get_value [23:59:01]process_action get_value [23:59:01]cmd_get_value [23:59:01]process_action get_value done [23:59:01]requested_data is exist [23:59:01]produce_requested_data [23:59:01]requested_item kkm.sn is exist - process it [23:59:01]requested_item kkm.ver is exist - process it [23:59:01]requested_item fm.sn is exist - process it [23:59:01]wFMCommunicate request_size=4 [23:59:01]MH_SAM_APDU [23:59:01]CAPDU: 80 11 00 00 [23:59:01]Write to MH i2c: E2 08 00 27 18 80 11 00 00 00 00 00 00 B9 [23:59:01]Write i2c OK [23:59:01]MH_I2C_Read... [23:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:01]Read from MH i2c: E2 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 17 00 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 17 00 27 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 0E [23:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:59:01]wFMCommunicate OK [23:59:01]requested_item fd.num is exist - process it [23:59:01]SAM_PROTO_GetFieldsCounters [23:59:01]wFMCommunicate request_size=4 [23:59:01]MH_SAM_APDU [23:59:01]CAPDU: 80 13 00 00 [23:59:01]Write to MH i2c: E2 08 00 28 18 80 13 00 00 00 00 00 00 BC [23:59:01]Write i2c OK [23:59:01]MH_I2C_Read... [23:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:01]Read from MH i2c: E2 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 62 00 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 62 00 28 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [23:59:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:01]wFMCommunicate OK [23:59:01]SAM_PROTO_GetFieldsCounters done [23:59:01]requested_item shift.num is exist - process it [23:59:01]requested_item shift.opened is exist - process it [23:59:01]req_shift_opened [23:59:01]FM_GetShiftState [23:59:01]SAM_PROTO_GetShiftState [23:59:01]wFMCommunicate request_size=4 [23:59:01]MH_SAM_APDU [23:59:01]CAPDU: 80 13 01 00 [23:59:01]Write to MH i2c: E2 08 00 29 18 80 13 01 00 00 00 00 00 BE [23:59:01]Write i2c OK [23:59:01]MH_I2C_Read... [23:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:01]Read from MH i2c: E2 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 0E 00 [23:59:01]MH_I2C_Read... [23:59:01]Read from MH i2c: E2 0E 00 29 18 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 CA [23:59:01]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:59:01]wFMCommunicate OK [23:59:01]SAM_PROTO_GetShiftState done [23:59:01]FM_GetShiftState done [23:59:01]req_shift_opened done [23:59:01]requested_item shift.open_date is exist - process it [23:59:01]req_shift_open_date [23:59:01]req_shift_open_date done [23:59:01]produce_requested_data done [23:59:01]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [23:59:01]process_action_free get_value [23:59:01]json_value_free [23:59:01]json_value_free done [23:59:01]process_json_proto returns [23:59:01]Send response to host [23:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [23:59:01]free response buf [23:59:01]execute_script done [23:59:01]execute_script returns [23:59:01]free content buf [23:59:01]Sock 7.Close socket [23:59:01]Sock 7.Thread stoped [23:59:01]accept exits with 9 [23:59:01]New connection [23:59:01]New thread 3067108708 created [23:59:01]Thread 3067252068 joined [23:59:01]Waiting for new connection... [23:59:01] Sock 9.Parse request [23:59:01]Sock 9.Check first char [23:59:01]Sock 9.First char is OK [23:59:01]request: POST /json_proto HTTP/1.0 [23:59:01]Method: POST [23:59:01]URL: /json_proto [23:59:01]Method is POST - this is cgi request [23:59:01]url: /json_proto [23:59:01]query_string will be loaded in cgi processing [23:59:01]execute_cgi json_proto POST (null) [23:59:01]execute_cgi path=json_proto method=POST [23:59:01]POST find Content-Length [23:59:01]Host: 172.17.44.4:8080 [23:59:01]Content-Length: 331 [23:59:01]Content-Type: application/json [23:59:01] [23:59:01]POST finish read [23:59:01]Found Content-Length = 331 [23:59:01]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:59:01]execute_script... [23:59:02]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:59:02]POST & json_proto [23:59:02]process_json_proto [23:59:02]json parsed OK: [23:59:02]protocol is kg_v1.0 [23:59:02]action value=get_value [23:59:02]process_action get_value [23:59:02]cmd_get_value [23:59:02]process_action get_value done [23:59:02]requested_data is exist [23:59:02]produce_requested_data [23:59:02]requested_item fm.sale.total is exist - process it [23:59:02]SAM_PROTO_GetFMData [23:59:02]wFMCommunicate request_size=4 [23:59:02]MH_SAM_APDU [23:59:02]CAPDU: 80 13 03 00 [23:59:02]Write to MH i2c: E2 08 00 2A 18 80 13 03 00 00 00 00 00 C1 [23:59:02]Write i2c OK [23:59:02]MH_I2C_Read... [23:59:02]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:02]Read from MH i2c: E2 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 FD 00 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 FD 00 2A 18 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 9D [23:59:02]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [23:59:02]wFMCommunicate OK [23:59:02]wFMCommunicate request_size=4 [23:59:02]MH_SAM_APDU [23:59:02]CAPDU: 80 17 00 00 [23:59:02]Write to MH i2c: E2 08 00 2B 18 80 17 00 00 00 00 00 00 C3 [23:59:02]Write i2c OK [23:59:02]MH_I2C_Read... [23:59:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:02]Read from MH i2c: E2 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 FD 00 [23:59:02]MH_I2C_Read... [23:59:02]Read from MH i2c: E2 FD 00 2B 18 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 60 [23:59:02]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:59:02]wFMCommunicate OK [23:59:02]wFMCommunicate request_size=4 [23:59:02]MH_SAM_APDU [23:59:02]CAPDU: 80 17 00 00 [23:59:02]Write to MH i2c: E2 08 00 2C 18 80 17 00 00 00 00 00 00 C4 [23:59:02]Write i2c OK [23:59:02]MH_I2C_Read... [23:59:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:03]Read from MH i2c: E2 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 FD 00 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 FD 00 2C 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [23:59:03]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 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 90 00 [23:59:03]wFMCommunicate OK [23:59:03]wFMCommunicate request_size=4 [23:59:03]MH_SAM_APDU [23:59:03]CAPDU: 80 17 00 00 [23:59:03]Write to MH i2c: E2 08 00 2D 18 80 17 00 00 00 00 00 00 C5 [23:59:03]Write i2c OK [23:59:03]MH_I2C_Read... [23:59:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:03]Read from MH i2c: E2 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 FD 00 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 FD 00 2D 18 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 3F [23:59:03]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:59:03]wFMCommunicate OK [23:59:03]wFMCommunicate request_size=4 [23:59:03]MH_SAM_APDU [23:59:03]CAPDU: 80 17 00 00 [23:59:03]Write to MH i2c: E2 08 00 2E 18 80 17 00 00 00 00 00 00 C6 [23:59:03]Write i2c OK [23:59:03]MH_I2C_Read... [23:59:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:59:03]Read from MH i2c: E2 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 DC 00 [23:59:03]MH_I2C_Read... [23:59:03]Read from MH i2c: E2 DC 00 2E 18 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 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 AA [23:59:03]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 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:59:03]wFMCommunicate OK [23:59:03]SAM_PROTO_GetFMData done [23:59:03]requested_item fm.sale_refund.total is exist - process it [23:59:03]requested_item fm.buy.total is exist - process it [23:59:03]requested_item shift.sale.total is exist - process it [23:59:03]SAM_PROTO_GetShiftData [23:59:03]wFMCommunicate request_size=4 [23:59:03]MH_SAM_APDU [23:59:03]CAPDU: 80 13 02 00 [23:59:03]Write to MH i2c: E2 08 00 2F 18 80 13 02 00 00 00 00 00 C5 [23:59:03]Write i2c OK [23:59:03]MH_I2C_Read... [23:59:04]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:04]Read from MH i2c: E2 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 2F 18 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E8 [23:59:04]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:04]wFMCommunicate OK [23:59:04]wFMCommunicate request_size=4 [23:59:04]MH_SAM_APDU [23:59:04]CAPDU: 80 17 00 00 [23:59:04]Write to MH i2c: E2 08 00 30 18 80 17 00 00 00 00 00 00 C8 [23:59:04]Write i2c OK [23:59:04]MH_I2C_Read... [23:59:04]OFD Sender: No OFD packet to send [23:59:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:04]Read from MH i2c: E2 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 30 18 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 EA [23:59:04]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:59:04]wFMCommunicate OK [23:59:04]wFMCommunicate request_size=4 [23:59:04]MH_SAM_APDU [23:59:04]CAPDU: 80 17 00 00 [23:59:04]Write to MH i2c: E2 08 00 31 18 80 17 00 00 00 00 00 00 C9 [23:59:04]Write i2c OK [23:59:04]MH_I2C_Read... [23:59:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:04]Read from MH i2c: E2 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 31 18 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 80 [23:59:04]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:59:04]wFMCommunicate OK [23:59:04]wFMCommunicate request_size=4 [23:59:04]MH_SAM_APDU [23:59:04]CAPDU: 80 17 00 00 [23:59:04]Write to MH i2c: E2 08 00 32 18 80 17 00 00 00 00 00 00 CA [23:59:04]Write i2c OK [23:59:04]MH_I2C_Read... [23:59:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:04]Read from MH i2c: E2 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 [23:59:04]MH_I2C_Read... [23:59:04]Read from MH i2c: E2 FD 00 32 18 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 3C [23:59:04]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:59:04]wFMCommunicate OK [23:59:04]wFMCommunicate request_size=4 [23:59:04]MH_SAM_APDU [23:59:04]CAPDU: 80 17 00 00 [23:59:04]Write to MH i2c: E2 08 00 33 18 80 17 00 00 00 00 00 00 CB [23:59:04]Write i2c OK [23:59:04]MH_I2C_Read... [23:59:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:59:05]Read from MH i2c: E2 [23:59:05]MH_I2C_Read... [23:59:05]Read from MH i2c: E2 CB 00 [23:59:05]MH_I2C_Read... [23:59:05]Read from MH i2c: E2 CB 00 33 18 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 B4 [23:59:05]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:59:05]wFMCommunicate OK [23:59:05]SAM_PROTO_GetShiftData done [23:59:05]requested_item shift.sale.total_cash is exist - process it [23:59:05]requested_item shift.sale_refund.total is exist - process it [23:59:05]requested_item shift.sale_refund.total_cash is exist - process it [23:59:05]requested_item shift.buy.total is exist - process it [23:59:05]requested_item shift.buy.total_cash is exist - process it [23:59:05]produce_requested_data done [23:59:05]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:59:05]process_action_free get_value [23:59:05]json_value_free [23:59:05]json_value_free done [23:59:05]process_json_proto returns [23:59:05]Send response to host [23:59:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:59:05]free response buf [23:59:05]execute_script done [23:59:05]execute_script returns [23:59:05]free content buf [23:59:05]Sock 9.Close socket [23:59:05]Sock 9.Thread stoped [23:59:05]accept exits with 7 [23:59:05]New connection [23:59:05]New thread 3067252068 created [23:59:05]Thread 3067108708 joined [23:59:05]Waiting for new connection... [23:59:05] Sock 7.Parse request [23:59:05]Sock 7.Check first char [23:59:05]Sock 7.First char is OK [23:59:05]request: POST /json_proto HTTP/1.0 [23:59:05]Method: POST [23:59:05]URL: /json_proto [23:59:05]Method is POST - this is cgi request [23:59:05]url: /json_proto [23:59:05]query_string will be loaded in cgi processing [23:59:05]execute_cgi json_proto POST (null) [23:59:05]execute_cgi path=json_proto method=POST [23:59:05]POST find Content-Length [23:59:05]Host: 172.17.44.4:8080 [23:59:05]Content-Length: 331 [23:59:05]Content-Type: application/json [23:59:05] [23:59:05]POST finish read [23:59:05]Found Content-Length = 331 [23:59:05]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:59:05]execute_script... [23:59:05]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:59:05]POST & json_proto [23:59:05]process_json_proto [23:59:05]json parsed OK: [23:59:05]protocol is kg_v1.0 [23:59:05]action value=get_value [23:59:05]process_action get_value [23:59:05]cmd_get_value [23:59:05]process_action get_value done [23:59:05]requested_data is exist [23:59:05]produce_requested_data [23:59:05]requested_item fm.sale.total is exist - process it [23:59:05]SAM_PROTO_GetFMData [23:59:05]wFMCommunicate request_size=4 [23:59:05]MH_SAM_APDU [23:59:05]CAPDU: 80 13 03 00 [23:59:05]Write to MH i2c: E2 08 00 34 18 80 13 03 00 00 00 00 00 CB [23:59:05]Write i2c OK [23:59:05]MH_I2C_Read... [23:59:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:05]Read from MH i2c: E2 [23:59:05]MH_I2C_Read... [23:59:05]Read from MH i2c: E2 FD 00 [23:59:05]MH_I2C_Read... [23:59:05]Read from MH i2c: E2 FD 00 34 18 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 A7 [23:59:05]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [23:59:05]wFMCommunicate OK [23:59:05]wFMCommunicate request_size=4 [23:59:05]MH_SAM_APDU [23:59:05]CAPDU: 80 17 00 00 [23:59:05]Write to MH i2c: E2 08 00 35 18 80 17 00 00 00 00 00 00 CD [23:59:05]Write i2c OK [23:59:05]MH_I2C_Read... [23:59:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:06]Read from MH i2c: E2 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 FD 00 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 FD 00 35 18 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6A [23:59:06]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:59:06]wFMCommunicate OK [23:59:06]wFMCommunicate request_size=4 [23:59:06]MH_SAM_APDU [23:59:06]CAPDU: 80 17 00 00 [23:59:06]Write to MH i2c: E2 08 00 36 18 80 17 00 00 00 00 00 00 CE [23:59:06]Write i2c OK [23:59:06]MH_I2C_Read... [23:59:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:06]Read from MH i2c: E2 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 FD 00 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 FD 00 36 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 72 [23:59:06]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 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 90 00 [23:59:06]wFMCommunicate OK [23:59:06]wFMCommunicate request_size=4 [23:59:06]MH_SAM_APDU [23:59:06]CAPDU: 80 17 00 00 [23:59:06]Write to MH i2c: E2 08 00 37 18 80 17 00 00 00 00 00 00 CF [23:59:06]Write i2c OK [23:59:06]MH_I2C_Read... [23:59:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:06]Read from MH i2c: E2 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 FD 00 [23:59:06]MH_I2C_Read... [23:59:06]Read from MH i2c: E2 FD 00 37 18 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 49 [23:59:06]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:59:06]wFMCommunicate OK [23:59:07]wFMCommunicate request_size=4 [23:59:07]MH_SAM_APDU [23:59:07]CAPDU: 80 17 00 00 [23:59:07]Write to MH i2c: E2 08 00 38 18 80 17 00 00 00 00 00 00 D0 [23:59:07]Write i2c OK [23:59:07]MH_I2C_Read... [23:59:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:59:07]Read from MH i2c: E2 [23:59:07]MH_I2C_Read... [23:59:07]Read from MH i2c: E2 DC 00 [23:59:07]MH_I2C_Read... [23:59:07]Read from MH i2c: E2 DC 00 38 18 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 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 B4 [23:59:07]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 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:59:07]wFMCommunicate OK [23:59:07]SAM_PROTO_GetFMData done [23:59:07]requested_item fm.sale_refund.total is exist - process it [23:59:07]requested_item fm.buy.total is exist - process it [23:59:07]requested_item shift.sale.total is exist - process it [23:59:07]SAM_PROTO_GetShiftData [23:59:07]wFMCommunicate request_size=4 [23:59:07]MH_SAM_APDU [23:59:07]CAPDU: 80 13 02 00 [23:59:07]Write to MH i2c: E2 08 00 39 18 80 13 02 00 00 00 00 00 CF [23:59:07]Write i2c OK [23:59:07]MH_I2C_Read... [23:59:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:07]Read from MH i2c: E2 [23:59:07]MH_I2C_Read... [23:59:07]Read from MH i2c: E2 FD 00 [23:59:07]MH_I2C_Read... [23:59:07]Read from MH i2c: E2 FD 00 39 18 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F2 [23:59:07]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:07]wFMCommunicate OK [23:59:07]wFMCommunicate request_size=4 [23:59:07]MH_SAM_APDU [23:59:07]CAPDU: 80 17 00 00 [23:59:07]Write to MH i2c: E2 08 00 3A 18 80 17 00 00 00 00 00 00 D2 [23:59:07]Write i2c OK [23:59:07]MH_I2C_Read... [23:59:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:08]Read from MH i2c: E2 [23:59:08]MH_I2C_Read... [23:59:08]Read from MH i2c: E2 FD 00 [23:59:08]MH_I2C_Read... [23:59:08]Read from MH i2c: E2 FD 00 3A 18 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 F4 [23:59:08]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:59:08]wFMCommunicate OK [23:59:08]wFMCommunicate request_size=4 [23:59:08]MH_SAM_APDU [23:59:08]CAPDU: 80 17 00 00 [23:59:08]Write to MH i2c: E2 08 00 3B 18 80 17 00 00 00 00 00 00 D3 [23:59:08]Write i2c OK [23:59:08]MH_I2C_Read... [23:59:08]Read from MH i2c: E2 [23:59:08]MH_I2C_Read... [23:59:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:08]Read from MH i2c: E2 FD 00 [23:59:08]MH_I2C_Read... [23:59:08]Read from MH i2c: E2 FD 00 3B 18 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8A [23:59:08]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:59:08]wFMCommunicate OK [23:59:08]wFMCommunicate request_size=4 [23:59:08]MH_SAM_APDU [23:59:08]CAPDU: 80 17 00 00 [23:59:08]Write to MH i2c: E2 08 00 3C 18 80 17 00 00 00 00 00 00 D4 [23:59:08]Write i2c OK [23:59:08]MH_I2C_Read... [23:59:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:09]Read from MH i2c: E2 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 FD 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 FD 00 3C 18 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 46 [23:59:09]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:59:09]wFMCommunicate OK [23:59:09]wFMCommunicate request_size=4 [23:59:09]MH_SAM_APDU [23:59:09]CAPDU: 80 17 00 00 [23:59:09]Write to MH i2c: E2 08 00 3D 18 80 17 00 00 00 00 00 00 D5 [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]OFD Sender: No OFD packet to send [23:59:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:59:09]Read from MH i2c: E2 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 CB 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 CB 00 3D 18 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 BE [23:59:09]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:59:09]wFMCommunicate OK [23:59:09]SAM_PROTO_GetShiftData done [23:59:09]requested_item shift.sale.total_cash is exist - process it [23:59:09]requested_item shift.sale_refund.total is exist - process it [23:59:09]requested_item shift.sale_refund.total_cash is exist - process it [23:59:09]requested_item shift.buy.total is exist - process it [23:59:09]requested_item shift.buy.total_cash is exist - process it [23:59:09]produce_requested_data done [23:59:09]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:59:09]process_action_free get_value [23:59:09]json_value_free [23:59:09]json_value_free done [23:59:09]process_json_proto returns [23:59:09]Send response to host [23:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:59:09]free response buf [23:59:09]execute_script done [23:59:09]execute_script returns [23:59:09]free content buf [23:59:09]Sock 7.Close socket [23:59:09]Sock 7.Thread stoped [23:59:09]accept exits with 9 [23:59:09]New connection [23:59:09]New thread 3067108708 created [23:59:09]Thread 3067252068 joined [23:59:09]Waiting for new connection... [23:59:09] Sock 9.Parse request [23:59:09]Sock 9.Check first char [23:59:09]Sock 9.First char is OK [23:59:09]request: POST /json_proto HTTP/1.0 [23:59:09]Method: POST [23:59:09]URL: /json_proto [23:59:09]Method is POST - this is cgi request [23:59:09]url: /json_proto [23:59:09]query_string will be loaded in cgi processing [23:59:09]execute_cgi json_proto POST (null) [23:59:09]execute_cgi path=json_proto method=POST [23:59:09]POST find Content-Length [23:59:09]Host: 172.17.44.4:8080 [23:59:09]Content-Length: 263 [23:59:09]Content-Type: application/json [23:59:09] [23:59:09]POST finish read [23:59:09]Found Content-Length = 263 [23:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0442\u0430\u043A\u043E\u0437\u0443\u0435\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:09]execute_script... [23:59:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0410\u0442\u0430\u043A\u043E\u0437\u0443\u0435\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:59:09]POST & json_proto [23:59:09]process_json_proto [23:59:09]json parsed OK: [23:59:09]protocol is kg_v1.0 [23:59:09]action value=x_report [23:59:09]process_action x_report [23:59:09]cmd_x_report [23:59:09]MH_GetDate [23:59:09]Write to MH i2c: F0 00 00 3E 18 45 [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 09 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 09 00 3E 18 00 D0 9D 46 66 6C E9 28 66 4A [23:59:09]GetLastDocTimeStamp 1715903477 [23:59:09]current date 1715903952 [23:59:09]FM_GetShiftState [23:59:09]SAM_PROTO_GetShiftState [23:59:09]wFMCommunicate request_size=4 [23:59:09]MH_SAM_APDU [23:59:09]CAPDU: 80 13 01 00 [23:59:09]Write to MH i2c: E2 08 00 3F 18 80 13 01 00 00 00 00 00 D4 [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:09]Read from MH i2c: E2 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 0E 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 0E 00 3F 18 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 E0 [23:59:09]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:59:09]wFMCommunicate OK [23:59:09]SAM_PROTO_GetShiftState done [23:59:09]FM_GetShiftState done [23:59:09]KKMCreateXReportDocument [23:59:09]Load OK [23:59:09]Malloc new data [23:59:09]MH_GetDate [23:59:09]Write to MH i2c: F0 00 00 40 18 47 [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 09 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: F0 09 00 40 18 00 D0 9D 46 66 6C E9 28 66 4C [23:59:09]Malloc new data [23:59:09]Malloc new data [23:59:09]wFMCommunicate request_size=4 [23:59:09]MH_SAM_APDU [23:59:09]CAPDU: 80 11 00 00 [23:59:09]Write to MH i2c: E2 08 00 41 18 80 11 00 00 00 00 00 00 D3 [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:09]Read from MH i2c: E2 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 17 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 17 00 41 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 28 [23:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:59:09]wFMCommunicate OK [23:59:09]SAM_PROTO_GetFieldsCounters [23:59:09]wFMCommunicate request_size=4 [23:59:09]MH_SAM_APDU [23:59:09]CAPDU: 80 13 00 00 [23:59:09]Write to MH i2c: E2 08 00 42 18 80 13 00 00 00 00 00 00 D6 [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:09]Read from MH i2c: E2 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 62 00 [23:59:09]MH_I2C_Read... [23:59:09]Read from MH i2c: E2 62 00 42 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [23:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:09]wFMCommunicate OK [23:59:09]SAM_PROTO_GetFieldsCounters done [23:59:09]Malloc new data [23:59:09]Malloc new data [23:59:09]Malloc new data [23:59:09]KKMCreateXReportDocument OK [23:59:09]KKMSetXReportData OK [23:59:09]KKMPrepareXReportFMData [23:59:09]SAM_PROTO_GetShiftData [23:59:09]wFMCommunicate request_size=4 [23:59:09]MH_SAM_APDU [23:59:09]CAPDU: 80 13 02 00 [23:59:09]Write to MH i2c: E2 08 00 43 18 80 13 02 00 00 00 00 00 D9 [23:59:09]Write i2c OK [23:59:09]MH_I2C_Read... [23:59:10]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:10]Read from MH i2c: E2 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 FD 00 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 FD 00 43 18 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FC [23:59:10]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:10]wFMCommunicate OK [23:59:10]wFMCommunicate request_size=4 [23:59:10]MH_SAM_APDU [23:59:10]CAPDU: 80 17 00 00 [23:59:10]Write to MH i2c: E2 08 00 44 18 80 17 00 00 00 00 00 00 DC [23:59:10]Write i2c OK [23:59:10]MH_I2C_Read... [23:59:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:10]Read from MH i2c: E2 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 FD 00 [23:59:10]MH_I2C_Read... [23:59:10]Read from MH i2c: E2 FD 00 44 18 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 FE [23:59:10]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:59:10]wFMCommunicate OK [23:59:10]wFMCommunicate request_size=4 [23:59:10]MH_SAM_APDU [23:59:10]CAPDU: 80 17 00 00 [23:59:10]Write to MH i2c: E2 08 00 45 18 80 17 00 00 00 00 00 00 DD [23:59:10]Write i2c OK [23:59:10]MH_I2C_Read... [23:59:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:11]Read from MH i2c: E2 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 FD 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 FD 00 45 18 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 94 [23:59:11]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:59:11]wFMCommunicate OK [23:59:11]wFMCommunicate request_size=4 [23:59:11]MH_SAM_APDU [23:59:11]CAPDU: 80 17 00 00 [23:59:11]Write to MH i2c: E2 08 00 46 18 80 17 00 00 00 00 00 00 DE [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:11]Read from MH i2c: E2 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 FD 00 [23:59:11]MH_I2C_Read... [23:59:11]Read from MH i2c: E2 FD 00 46 18 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 50 [23:59:11]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:59:11]wFMCommunicate OK [23:59:11]wFMCommunicate request_size=4 [23:59:11]MH_SAM_APDU [23:59:11]CAPDU: 80 17 00 00 [23:59:11]Write to MH i2c: E2 08 00 47 18 80 17 00 00 00 00 00 00 DF [23:59:11]Write i2c OK [23:59:11]MH_I2C_Read... [23:59:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:59:12]Read from MH i2c: E2 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 CB 00 [23:59:12]MH_I2C_Read... [23:59:12]Read from MH i2c: E2 CB 00 47 18 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 C8 [23:59:12]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:59:12]wFMCommunicate OK [23:59:12]SAM_PROTO_GetShiftData done [23:59:12]1194 (1194) - счетчики итогов смены [23:59:12] 1134 (4) - 123 - количество чеков со всеми признаками расчетов [23:59:12] 1129 (155) - счетчики операций «приход» [23:59:12] 1135 (4) - 123 - количество чеков по признаку расчетов [23:59:12] 1201 (3) - 43087.82 - общая итоговая сумма в чеках [23:59:12] 1136 (3) - 24719.00 - итоговая сумма в чеках наличными [23:59:12] 1138 (3) - 18368.82 - итоговая сумма в чеках безналичными [23:59:12] 1024 (122) - суммы налогов [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 0% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1006 (12) - суммы НДС [23:59:12] 1010 (1) - 12% - код ставки НДС [23:59:12] 1011 (3) - 4576.15 - сумма НДС по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (11) - суммы НСП [23:59:12] 1014 (1) - 1% - код ставки НСП [23:59:12] 1015 (2) - 381.25 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 2% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 3% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 5% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1130 (141) - счетчики операций «возврат прихода» [23:59:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:12] 1024 (117) - суммы налогов [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 0% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 12% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 2% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 3% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 5% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1131 (141) - счетчики операций «расход» [23:59:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:12] 1024 (117) - суммы налогов [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 0% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 12% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 2% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 3% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 5% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1132 (141) - счетчики операций «возврат расхода» [23:59:12] 1135 (4) - 0 - количество чеков по признаку расчетов [23:59:12] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:59:12] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:59:12] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:59:12] 1024 (117) - суммы налогов [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 0% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1006 (9) - суммы НДС [23:59:12] 1010 (1) - 12% - код ставки НДС [23:59:12] 1011 (0) - 0.00 - сумма НДС по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 2% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 3% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 5% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 0,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1007 (9) - суммы НСП [23:59:12] 1014 (1) - 1,50% - код ставки НСП [23:59:12] 1015 (0) - 0.00 - сумма НСП по ставке [23:59:12] 1133 (588) - - счетчики коррекции - не используются [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1194 (04AA) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1134 (046E) [23:59:12]Malloc new data [23:59:12]Processing tag 1129 (0469) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1135 (046F) [23:59:12]Malloc new data [23:59:12]Processing tag 1201 (04B1) [23:59:12]Malloc new data [23:59:12]Processing tag 1136 (0470) [23:59:12]Malloc new data [23:59:12]Processing tag 1138 (0472) [23:59:12]Malloc new data [23:59:12]Processing tag 1024 (0400) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1006 (03EE) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1010 (03F2) [23:59:12]Malloc new data [23:59:12]Processing tag 1011 (03F3) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1006 (03EE) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1010 (03F2) [23:59:12]Malloc new data [23:59:12]Processing tag 1011 (03F3) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]SetTLVBufToDocument err=0 [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1130 (046A) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1135 (046F) [23:59:12]Malloc new data [23:59:12]Processing tag 1201 (04B1) [23:59:12]Malloc new data [23:59:12]Processing tag 1136 (0470) [23:59:12]Malloc new data [23:59:12]Processing tag 1138 (0472) [23:59:12]Malloc new data [23:59:12]Processing tag 1024 (0400) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1006 (03EE) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1010 (03F2) [23:59:12]Malloc new data [23:59:12]Processing tag 1011 (03F3) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1006 (03EE) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1010 (03F2) [23:59:12]Malloc new data [23:59:12]Processing tag 1011 (03F3) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:12]Malloc new data [23:59:12]SetTLVBufToDocument err=0 [23:59:12]Processing tag 1007 (03EF) [23:59:12]Load OK [23:59:12]SetTLVBufToDocument [23:59:12]Processing tag 1014 (03F6) [23:59:12]Malloc new data [23:59:12]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1131 (046B) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1135 (046F) [23:59:13]Malloc new data [23:59:13]Processing tag 1201 (04B1) [23:59:13]Malloc new data [23:59:13]Processing tag 1136 (0470) [23:59:13]Malloc new data [23:59:13]Processing tag 1138 (0472) [23:59:13]Malloc new data [23:59:13]Processing tag 1024 (0400) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1006 (03EE) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1010 (03F2) [23:59:13]Malloc new data [23:59:13]Processing tag 1011 (03F3) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1006 (03EE) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1010 (03F2) [23:59:13]Malloc new data [23:59:13]Processing tag 1011 (03F3) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1132 (046C) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1135 (046F) [23:59:13]Malloc new data [23:59:13]Processing tag 1201 (04B1) [23:59:13]Malloc new data [23:59:13]Processing tag 1136 (0470) [23:59:13]Malloc new data [23:59:13]Processing tag 1138 (0472) [23:59:13]Malloc new data [23:59:13]Processing tag 1024 (0400) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1006 (03EE) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1010 (03F2) [23:59:13]Malloc new data [23:59:13]Processing tag 1011 (03F3) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1006 (03EE) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1010 (03F2) [23:59:13]Malloc new data [23:59:13]Processing tag 1011 (03F3) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1007 (03EF) [23:59:13]Load OK [23:59:13]SetTLVBufToDocument [23:59:13]Processing tag 1014 (03F6) [23:59:13]Malloc new data [23:59:13]Processing tag 1015 (03F7) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Processing tag 1133 (046D) [23:59:13]Malloc new data [23:59:13]SetTLVBufToDocument err=0 [23:59:13]SetTLVBufToDocument err=0 [23:59:13]Malloc new data [23:59:13]SAM_PROTO_GetFMData [23:59:13]wFMCommunicate request_size=4 [23:59:13]MH_SAM_APDU [23:59:13]CAPDU: 80 13 03 00 [23:59:13]Write to MH i2c: E2 08 00 48 18 80 13 03 00 00 00 00 00 DF [23:59:13]Write i2c OK [23:59:13]MH_I2C_Read... [23:59:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:13]Read from MH i2c: E2 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 FD 00 [23:59:13]MH_I2C_Read... [23:59:13]Read from MH i2c: E2 FD 00 48 18 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 BB [23:59:14]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [23:59:14]wFMCommunicate OK [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 17 00 00 [23:59:14]Write to MH i2c: E2 08 00 49 18 80 17 00 00 00 00 00 00 E1 [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]OFD Sender: No OFD packet to send [23:59:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 FD 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 FD 00 49 18 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 7E [23:59:14]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:59:14]wFMCommunicate OK [23:59:14]wFMCommunicate request_size=4 [23:59:14]MH_SAM_APDU [23:59:14]CAPDU: 80 17 00 00 [23:59:14]Write to MH i2c: E2 08 00 4A 18 80 17 00 00 00 00 00 00 E2 [23:59:14]Write i2c OK [23:59:14]MH_I2C_Read... [23:59:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:14]Read from MH i2c: E2 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 FD 00 [23:59:14]MH_I2C_Read... [23:59:14]Read from MH i2c: E2 FD 00 4A 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 86 [23:59:15]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 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 90 00 [23:59:15]wFMCommunicate OK [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 17 00 00 [23:59:15]Write to MH i2c: E2 08 00 4B 18 80 17 00 00 00 00 00 00 E3 [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 FD 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 FD 00 4B 18 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 5D [23:59:15]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:59:15]wFMCommunicate OK [23:59:15]wFMCommunicate request_size=4 [23:59:15]MH_SAM_APDU [23:59:15]CAPDU: 80 17 00 00 [23:59:15]Write to MH i2c: E2 08 00 4C 18 80 17 00 00 00 00 00 00 E4 [23:59:15]Write i2c OK [23:59:15]MH_I2C_Read... [23:59:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:59:15]Read from MH i2c: E2 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 DC 00 [23:59:15]MH_I2C_Read... [23:59:15]Read from MH i2c: E2 DC 00 4C 18 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 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 C8 [23:59:16]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 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:59:16]wFMCommunicate OK [23:59:16]SAM_PROTO_GetFMData done [23:59:16]FM_GetFMData:85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 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 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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:59:16]oper:6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:16]total:96 CF 90 0F [23:59:16]Malloc new data [23:59:16]oper:6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 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 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:59:16]total:FC 97 C5 [23:59:16]Malloc new data [23:59:16]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:59:17]total: [23:59:17]Malloc new data [23:59:17]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:59:17]total: [23:59:17]Malloc new data [23:59:17]KKMPrepareXReportFMData err=0 [23:59:17]Х отчет ИНН: 02508201610067 Кассир: Атакозуев М. 16.05.2024 23:59 Смена: 10 РНМ: 0000000000154221 ЗНМ: 0300000237 СНО: Общий режим Всего чеков: 123 ИТОГИ ПРИХОД Чеков: 123 Общий итог: 43087.82 Итого наличными: 24719.00 Итого безнал.: 18368.82 НДС 0% : 0.00 НДС 12% : 4576.15 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 381.25 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 24719.00 НС Приход: 2611485.66 НС Возвр.Прихода: 129495.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000963259 [23:59:17]StoreToDocumentArchive [23:59:17]MH_GetDate [23:59:17]Write to MH i2c: F0 00 00 4D 18 54 [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: F0 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: F0 09 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: F0 09 00 4D 18 00 D7 9D 46 66 6C E9 28 66 60 [23:59:17]shift 10 fd 1715903959 [23:59:17]Create dir for shift 0010 [23:59:17]save to /storage/0010/doc_1715903959 [23:59:17]save last doc name /storage/0010/doc_1715903959 to /storage/kkm_last_doc_name [23:59:17]save OK [23:59:17]Clear old archive folders... [23:59:17]NVStorageSaveData kkm_last_timestamp [23:59:17]File name is /storage/kkm_last_timestamp [23:59:17]Write 4 bytes [23:59:17]NVStorageSaveData done [23:59:17]ExternCall_PrintAddStr [23:59:17]wPrintStart [23:59:17]Write to MH i2c: 01 00 00 4E 18 66 [23:59:17]Write i2c OK [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 07 00 [23:59:17]MH_I2C_Read... [23:59:17]Read from MH i2c: 01 07 00 4E 18 00 00 00 00 00 FF 0F 7B [23:59:17]RasterBufferAndPrint [23:59:17]line Х отчет [23:59:17]line ИНН: 02508201610067 [23:59:17]line Кассир: Атакозуев М. [23:59:17]line 16.05.2024 23:59 [23:59:17]line Смена: 10 [23:59:17]line РНМ: 0000000000154221 [23:59:17]line ЗНМ: 0300000237 [23:59:17]line СНО: Общий режим [23:59:17]line Всего чеков: 123 [23:59:17]line ИТОГИ ПРИХОД [23:59:17]line Чеков: 123 [23:59:17]line Общий итог: 43087.82 [23:59:17]line Итого наличными: 24719.00 [23:59:17]line Итого безнал.: 18368.82 [23:59:17]line НДС 0% : 0.00 [23:59:17]line НДС 12% : 4576.15 [23:59:17]line НСП 0% : 0.00 [23:59:17]line НСП 1,50% : 0.00 [23:59:17]line НСП 0,50% : 0.00 [23:59:17]line НСП 5% : 0.00 [23:59:17]line НСП 3% : 0.00 [23:59:17]line НСП 2% : 0.00 [23:59:17]line НСП 1% : 381.25 [23:59:17]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:59:17]line Чеков: 0 [23:59:17]line Общий итог: 0.00 [23:59:17]line Итого наличными: 0.00 [23:59:17]line Итого безнал.: 0.00 [23:59:17]line НДС 0% : 0.00 [23:59:17]line НДС 12% : 0.00 [23:59:17]line НСП 0% : 0.00 [23:59:17]line НСП 1,50% : 0.00 [23:59:17]line НСП 0,50% : 0.00 [23:59:17]line НСП 5% : 0.00 [23:59:17]line НСП 3% : 0.00 [23:59:17]line НСП 2% : 0.00 [23:59:17]line НСП 1% : 0.00 [23:59:17]line ИТОГИ РАСХОД [23:59:17]line Чеков: 0 [23:59:17]line Общий итог: 0.00 [23:59:17]line Итого наличными: 0.00 [23:59:17]line Итого безнал.: 0.00 [23:59:17]line НДС 0% : 0.00 [23:59:17]line НДС 12% : 0.00 [23:59:17]line НСП 0% : 0.00 [23:59:17]line НСП 1,50% : 0.00 [23:59:17]line НСП 0,50% : 0.00 [23:59:17]line НСП 5% : 0.00 [23:59:17]line НСП 3% : 0.00 [23:59:17]line НСП 2% : 0.00 [23:59:17]line НСП 1% : 0.00 [23:59:17]line ИТОГИ ВОЗВРАТ РАСХОДА [23:59:17]line Чеков: 0 [23:59:17]line Общий итог: 0.00 [23:59:17]line Итого наличными: 0.00 [23:59:17]line Итого безнал.: 0.00 [23:59:17]line НДС 0% : 0.00 [23:59:17]line НДС 12% : 0.00 [23:59:17]line НСП 0% : 0.00 [23:59:17]line НСП 1,50% : 0.00 [23:59:17]line НСП 0,50% : 0.00 [23:59:17]line НСП 5% : 0.00 [23:59:17]line НСП 3% : 0.00 [23:59:17]line НСП 2% : 0.00 [23:59:17]line НСП 1% : 0.00 [23:59:17]line Сумма внесений: 0.00 [23:59:17]line Сумма выплат: 0.00 [23:59:17]line Нал. в кассе: 24719.00 [23:59:17]line НС Приход: 2611485.66 [23:59:17]line НС Возвр.Прихода: 129495.00 [23:59:17]line НС Расход: 0.00 [23:59:17]line НС Возвр.Расхода: 0.00 [23:59:17]line ФМ: 0000000000963259 [23:59:17]written 0, free lines is 4095 [23:59:18]Write to MH i2c: 01 00 00 99 18 B1 [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 07 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: 01 07 00 99 18 00 00 00 00 00 A3 09 64 [23:59:18]RasterBufferAndPrint [23:59:18]line [23:59:18]line [23:59:18]line [23:59:18]line [23:59:18]line [23:59:18]written 0, free lines is 2493 [23:59:18]MH_Cut [23:59:18]Write to MH i2c: D1 01 00 A0 18 01 8A [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: D1 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: D1 01 00 [23:59:18]MH_I2C_Read... [23:59:18]Read from MH i2c: D1 01 00 A0 18 00 89 [23:59:18]Write to MH i2c: 01 00 00 A1 18 B9 [23:59:18]Write i2c OK [23:59:18]MH_I2C_Read... [23:59:19]OFD Sender: No OFD packet to send [23:59:19]*** Cut start [23:59:19]*** Partial cut [23:59:19]*** CUTSNS_PIN = 1 [23:59:19]*** CUTSNS_PIN = 0 [23:59:20]*** Brake cut motor [23:59:20]Read from MH i2c: 01 [23:59:20]MH_I2C_Read... [23:59:20]*** Stop cut motor [23:59:20]*** Cut end [23:59:20]Read from MH i2c: 01 07 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: 01 07 00 A1 18 00 00 00 00 00 FF 0F CE [23:59:20]process_action x_report done [23:59:20]requested_data is exist [23:59:20]produce_requested_data [23:59:20]requested_item fd.num is exist - process it [23:59:20]SAM_PROTO_GetFieldsCounters [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 13 00 00 [23:59:20]Write to MH i2c: E2 08 00 A2 18 80 13 00 00 00 00 00 00 36 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:20]Read from MH i2c: E2 62 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 62 00 A2 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 C6 [23:59:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:20]wFMCommunicate OK [23:59:20]SAM_PROTO_GetFieldsCounters done [23:59:20]requested_item shift.num is exist - process it [23:59:20]requested_item shift.opened is exist - process it [23:59:20]req_shift_opened [23:59:20]FM_GetShiftState [23:59:20]SAM_PROTO_GetShiftState [23:59:20]wFMCommunicate request_size=4 [23:59:20]MH_SAM_APDU [23:59:20]CAPDU: 80 13 01 00 [23:59:20]Write to MH i2c: E2 08 00 A3 18 80 13 01 00 00 00 00 00 38 [23:59:20]Write i2c OK [23:59:20]MH_I2C_Read... [23:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:20]Read from MH i2c: E2 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 0E 00 [23:59:20]MH_I2C_Read... [23:59:20]Read from MH i2c: E2 0E 00 A3 18 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 44 [23:59:20]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:59:20]wFMCommunicate OK [23:59:20]SAM_PROTO_GetShiftState done [23:59:20]FM_GetShiftState done [23:59:20]req_shift_opened done [23:59:20]requested_item shift.open_date is exist - process it [23:59:20]req_shift_open_date [23:59:20]req_shift_open_date done [23:59:20]produce_requested_data done [23:59:20]produce_requested_data return {"fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [23:59:20]process_action_free x_report [23:59:20]json_value_free [23:59:20]json_value_free done [23:59:20]process_json_proto returns [23:59:20]Send response to host [23:59:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [23:59:20]free response buf [23:59:20]execute_script done [23:59:20]execute_script returns [23:59:20]free content buf [23:59:20]Sock 9.Close socket [23:59:20]Sock 9.Thread stoped [23:59:24]OFD Sender: No OFD packet to send [23:59:29]OFD Sender: No OFD packet to send [23:59:34]OFD Sender: No OFD packet to send [23:59:39]OFD Sender: No OFD packet to send [23:59:44]OFD Sender: No OFD packet to send [23:59:49]OFD Sender: No OFD packet to send [23:59:53]accept exits with 7 [23:59:53]New connection [23:59:53]New thread 3067252068 created [23:59:53]Thread 3067108708 joined [23:59:53]Waiting for new connection... [23:59:53] Sock 7.Parse request [23:59:53]Sock 7.Check first char [23:59:53]Sock 7.First char is OK [23:59:53]request: POST /json_proto HTTP/1.0 [23:59:53]Method: POST [23:59:53]URL: /json_proto [23:59:53]Method is POST - this is cgi request [23:59:53]url: /json_proto [23:59:53]query_string will be loaded in cgi processing [23:59:53]execute_cgi json_proto POST (null) [23:59:53]execute_cgi path=json_proto method=POST [23:59:53]POST find Content-Length [23:59:53]Host: 172.17.44.4:8080 [23:59:53]Content-Length: 215 [23:59:53]Content-Type: application/json [23:59:53] [23:59:53]POST finish read [23:59:53]Found Content-Length = 215 [23:59:53]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:59:53]execute_script... [23:59:53]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:59:53]POST & json_proto [23:59:53]process_json_proto [23:59:53]json parsed OK: [23:59:53]protocol is kg_v1.0 [23:59:53]action value=get_value [23:59:53]process_action get_value [23:59:53]cmd_get_value [23:59:53]process_action get_value done [23:59:53]requested_data is exist [23:59:53]produce_requested_data [23:59:53]requested_item kkm.sn is exist - process it [23:59:53]requested_item kkm.ver is exist - process it [23:59:53]requested_item fm.sn is exist - process it [23:59:53]wFMCommunicate request_size=4 [23:59:53]MH_SAM_APDU [23:59:53]CAPDU: 80 11 00 00 [23:59:53]Write to MH i2c: E2 08 00 A4 18 80 11 00 00 00 00 00 00 36 [23:59:53]Write i2c OK [23:59:53]MH_I2C_Read... [23:59:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:59:53]Read from MH i2c: E2 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 17 00 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 17 00 A4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 8B [23:59:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [23:59:53]wFMCommunicate OK [23:59:53]requested_item fd.num is exist - process it [23:59:53]SAM_PROTO_GetFieldsCounters [23:59:53]wFMCommunicate request_size=4 [23:59:53]MH_SAM_APDU [23:59:53]CAPDU: 80 13 00 00 [23:59:53]Write to MH i2c: E2 08 00 A5 18 80 13 00 00 00 00 00 00 39 [23:59:53]Write i2c OK [23:59:53]MH_I2C_Read... [23:59:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:59:53]Read from MH i2c: E2 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 62 00 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 62 00 A5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [23:59:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C7 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7C 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:59:53]wFMCommunicate OK [23:59:53]SAM_PROTO_GetFieldsCounters done [23:59:53]requested_item shift.num is exist - process it [23:59:53]requested_item shift.opened is exist - process it [23:59:53]req_shift_opened [23:59:53]FM_GetShiftState [23:59:53]SAM_PROTO_GetShiftState [23:59:53]wFMCommunicate request_size=4 [23:59:53]MH_SAM_APDU [23:59:53]CAPDU: 80 13 01 00 [23:59:53]Write to MH i2c: E2 08 00 A6 18 80 13 01 00 00 00 00 00 3B [23:59:53]Write i2c OK [23:59:53]MH_I2C_Read... [23:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:59:53]Read from MH i2c: E2 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 0E 00 [23:59:53]MH_I2C_Read... [23:59:53]Read from MH i2c: E2 0E 00 A6 18 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 47 [23:59:53]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [23:59:53]wFMCommunicate OK [23:59:53]SAM_PROTO_GetShiftState done [23:59:53]FM_GetShiftState done [23:59:53]req_shift_opened done [23:59:53]requested_item shift.open_date is exist - process it [23:59:53]req_shift_open_date [23:59:53]req_shift_open_date done [23:59:53]produce_requested_data done [23:59:53]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246} [23:59:53]process_action_free get_value [23:59:53]json_value_free [23:59:53]json_value_free done [23:59:53]process_json_proto returns [23:59:53]Send response to host [23:59:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5063,"shift.num":44,"shift.opened":1,"shift.open_date":1715818246}}} [23:59:53]free response buf [23:59:53]execute_script done [23:59:53]execute_script returns [23:59:53]free content buf [23:59:53]Sock 7.Close socket [23:59:53]Sock 7.Thread stoped [23:59:53]accept exits with 9 [23:59:53]New connection [23:59:53]New thread 3067108708 created [23:59:53]Thread 3067252068 joined [23:59:53]Waiting for new connection... [23:59:53] Sock 9.Parse request [23:59:53]Sock 9.Check first char [23:59:53]Sock 9.First char is OK [23:59:53]request: POST /json_proto HTTP/1.0 [23:59:53]Method: POST [23:59:53]URL: /json_proto [23:59:53]Method is POST - this is cgi request [23:59:53]url: /json_proto [23:59:53]query_string will be loaded in cgi processing [23:59:53]execute_cgi json_proto POST (null) [23:59:53]execute_cgi path=json_proto method=POST [23:59:53]POST find Content-Length [23:59:53]Host: 172.17.44.4:8080 [23:59:53]Content-Length: 331 [23:59:53]Content-Type: application/json [23:59:53] [23:59:53]POST finish read [23:59:53]Found Content-Length = 331 [23:59: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" ] } } [23:59:53]execute_script... [23:59: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" ] } } [23:59:53]POST & json_proto [23:59:53]process_json_proto [23:59:53]json parsed OK: [23:59:53]protocol is kg_v1.0 [23:59:53]action value=get_value [23:59:53]process_action get_value [23:59:53]cmd_get_value [23:59:53]process_action get_value done [23:59:53]requested_data is exist [23:59:53]produce_requested_data [23:59:53]requested_item fm.sale.total is exist - process it [23:59:53]SAM_PROTO_GetFMData [23:59:53]wFMCommunicate request_size=4 [23:59:53]MH_SAM_APDU [23:59:53]CAPDU: 80 13 03 00 [23:59:53]Write to MH i2c: E2 08 00 A7 18 80 13 03 00 00 00 00 00 3E [23:59:53]Write i2c OK [23:59:53]MH_I2C_Read... [23:59:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:54]Read from MH i2c: E2 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 A7 18 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 1A [23:59:54]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [23:59:54]wFMCommunicate OK [23:59:54]wFMCommunicate request_size=4 [23:59:54]MH_SAM_APDU [23:59:54]CAPDU: 80 17 00 00 [23:59:54]Write to MH i2c: E2 08 00 A8 18 80 17 00 00 00 00 00 00 40 [23:59:54]Write i2c OK [23:59:54]MH_I2C_Read... [23:59:54]OFD Sender: No OFD packet to send [23:59:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:54]Read from MH i2c: E2 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 A8 18 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 DD [23:59:54]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:59:54]wFMCommunicate OK [23:59:54]wFMCommunicate request_size=4 [23:59:54]MH_SAM_APDU [23:59:54]CAPDU: 80 17 00 00 [23:59:54]Write to MH i2c: E2 08 00 A9 18 80 17 00 00 00 00 00 00 41 [23:59:54]Write i2c OK [23:59:54]MH_I2C_Read... [23:59:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:54]Read from MH i2c: E2 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 [23:59:54]MH_I2C_Read... [23:59:54]Read from MH i2c: E2 FD 00 A9 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [23:59:54]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 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 90 00 [23:59:54]wFMCommunicate OK [23:59:54]wFMCommunicate request_size=4 [23:59:54]MH_SAM_APDU [23:59:54]CAPDU: 80 17 00 00 [23:59:54]Write to MH i2c: E2 08 00 AA 18 80 17 00 00 00 00 00 00 42 [23:59:54]Write i2c OK [23:59:54]MH_I2C_Read... [23:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:55]Read from MH i2c: E2 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 FD 00 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 FD 00 AA 18 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 BC [23:59:55]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:59:55]wFMCommunicate OK [23:59:55]wFMCommunicate request_size=4 [23:59:55]MH_SAM_APDU [23:59:55]CAPDU: 80 17 00 00 [23:59:55]Write to MH i2c: E2 08 00 AB 18 80 17 00 00 00 00 00 00 43 [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:59:55]Read from MH i2c: E2 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 DC 00 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 DC 00 AB 18 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 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 27 [23:59:55]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 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:59:55]wFMCommunicate OK [23:59:55]SAM_PROTO_GetFMData done [23:59:55]requested_item fm.sale_refund.total is exist - process it [23:59:55]requested_item fm.buy.total is exist - process it [23:59:55]requested_item shift.sale.total is exist - process it [23:59:55]SAM_PROTO_GetShiftData [23:59:55]wFMCommunicate request_size=4 [23:59:55]MH_SAM_APDU [23:59:55]CAPDU: 80 13 02 00 [23:59:55]Write to MH i2c: E2 08 00 AC 18 80 13 02 00 00 00 00 00 42 [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:59:55]Read from MH i2c: E2 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 FD 00 [23:59:55]MH_I2C_Read... [23:59:55]Read from MH i2c: E2 FD 00 AC 18 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 65 [23:59:55]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:59:55]wFMCommunicate OK [23:59:55]wFMCommunicate request_size=4 [23:59:55]MH_SAM_APDU [23:59:55]CAPDU: 80 17 00 00 [23:59:55]Write to MH i2c: E2 08 00 AD 18 80 17 00 00 00 00 00 00 45 [23:59:55]Write i2c OK [23:59:55]MH_I2C_Read... [23:59:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:56]Read from MH i2c: E2 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 AD 18 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 67 [23:59:56]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:59:56]wFMCommunicate OK [23:59:56]wFMCommunicate request_size=4 [23:59:56]MH_SAM_APDU [23:59:56]CAPDU: 80 17 00 00 [23:59:56]Write to MH i2c: E2 08 00 AE 18 80 17 00 00 00 00 00 00 46 [23:59:56]Write i2c OK [23:59:56]MH_I2C_Read... [23:59:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:56]Read from MH i2c: E2 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 AE 18 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FD [23:59:56]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:59:56]wFMCommunicate OK [23:59:56]wFMCommunicate request_size=4 [23:59:56]MH_SAM_APDU [23:59:56]CAPDU: 80 17 00 00 [23:59:56]Write to MH i2c: E2 08 00 AF 18 80 17 00 00 00 00 00 00 47 [23:59:56]Write i2c OK [23:59:56]MH_I2C_Read... [23:59:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:56]Read from MH i2c: E2 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 [23:59:56]MH_I2C_Read... [23:59:56]Read from MH i2c: E2 FD 00 AF 18 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 B9 [23:59:57]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:59:57]wFMCommunicate OK [23:59:57]wFMCommunicate request_size=4 [23:59:57]MH_SAM_APDU [23:59:57]CAPDU: 80 17 00 00 [23:59:57]Write to MH i2c: E2 08 00 B0 18 80 17 00 00 00 00 00 00 48 [23:59:57]Write i2c OK [23:59:57]MH_I2C_Read... [23:59:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [23:59:57]Read from MH i2c: E2 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 CB 00 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 CB 00 B0 18 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 31 [23:59:57]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:59:57]wFMCommunicate OK [23:59:57]SAM_PROTO_GetShiftData done [23:59:57]requested_item shift.sale.total_cash is exist - process it [23:59:57]requested_item shift.sale_refund.total is exist - process it [23:59:57]requested_item shift.sale_refund.total_cash is exist - process it [23:59:57]requested_item shift.buy.total is exist - process it [23:59:57]requested_item shift.buy.total_cash is exist - process it [23:59:57]produce_requested_data done [23:59:57]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:59:57]process_action_free get_value [23:59:57]json_value_free [23:59:57]json_value_free done [23:59:57]process_json_proto returns [23:59:57]Send response to host [23:59:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:59:57]free response buf [23:59:57]execute_script done [23:59:57]execute_script returns [23:59:57]free content buf [23:59:57]Sock 9.Close socket [23:59:57]Sock 9.Thread stoped [23:59:57]accept exits with 7 [23:59:57]New connection [23:59:57]New thread 3067252068 created [23:59:57]Thread 3067108708 joined [23:59:57]Waiting for new connection... [23:59:57] Sock 7.Parse request [23:59:57]Sock 7.Check first char [23:59:57]Sock 7.First char is OK [23:59:57]request: POST /json_proto HTTP/1.0 [23:59:57]Method: POST [23:59:57]URL: /json_proto [23:59:57]Method is POST - this is cgi request [23:59:57]url: /json_proto [23:59:57]query_string will be loaded in cgi processing [23:59:57]execute_cgi json_proto POST (null) [23:59:57]execute_cgi path=json_proto method=POST [23:59:57]POST find Content-Length [23:59:57]Host: 172.17.44.4:8080 [23:59:57]Content-Length: 331 [23:59:57]Content-Type: application/json [23:59:57] [23:59:57]POST finish read [23:59:57]Found Content-Length = 331 [23:59:57]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:59:57]execute_script... [23:59:57]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:59:57]POST & json_proto [23:59:57]process_json_proto [23:59:57]json parsed OK: [23:59:57]protocol is kg_v1.0 [23:59:57]action value=get_value [23:59:57]process_action get_value [23:59:57]cmd_get_value [23:59:57]process_action get_value done [23:59:57]requested_data is exist [23:59:57]produce_requested_data [23:59:57]requested_item fm.sale.total is exist - process it [23:59:57]SAM_PROTO_GetFMData [23:59:57]wFMCommunicate request_size=4 [23:59:57]MH_SAM_APDU [23:59:57]CAPDU: 80 13 03 00 [23:59:57]Write to MH i2c: E2 08 00 B1 18 80 13 03 00 00 00 00 00 48 [23:59:57]Write i2c OK [23:59:57]MH_I2C_Read... [23:59:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:59:57]Read from MH i2c: E2 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 FD 00 [23:59:57]MH_I2C_Read... [23:59:57]Read from MH i2c: E2 FD 00 B1 18 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 24 [23:59:58]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [23:59:58]wFMCommunicate OK [23:59:58]wFMCommunicate request_size=4 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 17 00 00 [23:59:58]Write to MH i2c: E2 08 00 B2 18 80 17 00 00 00 00 00 00 4A [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 [23:59:58]MH_I2C_Read... [23:59:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:58]Read from MH i2c: E2 FD 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 FD 00 B2 18 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E7 [23:59:58]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:59:58]wFMCommunicate OK [23:59:58]wFMCommunicate request_size=4 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 17 00 00 [23:59:58]Write to MH i2c: E2 08 00 B3 18 80 17 00 00 00 00 00 00 4B [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:58]Read from MH i2c: E2 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 FD 00 [23:59:58]MH_I2C_Read... [23:59:58]Read from MH i2c: E2 FD 00 B3 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 EF [23:59:58]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 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 90 00 [23:59:58]wFMCommunicate OK [23:59:58]wFMCommunicate request_size=4 [23:59:58]MH_SAM_APDU [23:59:58]CAPDU: 80 17 00 00 [23:59:58]Write to MH i2c: E2 08 00 B4 18 80 17 00 00 00 00 00 00 4C [23:59:58]Write i2c OK [23:59:58]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:59:59]Read from MH i2c: E2 FD 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 FD 00 B4 18 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C6 [23:59:59]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [23:59:59]wFMCommunicate OK [23:59:59]wFMCommunicate request_size=4 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 17 00 00 [23:59:59]Write to MH i2c: E2 08 00 B5 18 80 17 00 00 00 00 00 00 4D [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [23:59:59]OFD Sender: No OFD packet to send [23:59:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [23:59:59]Read from MH i2c: E2 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 DC 00 [23:59:59]MH_I2C_Read... [23:59:59]Read from MH i2c: E2 DC 00 B5 18 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 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 31 [23:59:59]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 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:59:59]wFMCommunicate OK [23:59:59]SAM_PROTO_GetFMData done [23:59:59]requested_item fm.sale_refund.total is exist - process it [23:59:59]requested_item fm.buy.total is exist - process it [23:59:59]requested_item shift.sale.total is exist - process it [23:59:59]SAM_PROTO_GetShiftData [23:59:59]wFMCommunicate request_size=4 [23:59:59]MH_SAM_APDU [23:59:59]CAPDU: 80 13 02 00 [23:59:59]Write to MH i2c: E2 08 00 B6 18 80 13 02 00 00 00 00 00 4C [23:59:59]Write i2c OK [23:59:59]MH_I2C_Read... [00:00:00]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:00:00]Read from MH i2c: E2 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: E2 FD 00 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: E2 FD 00 B6 18 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 6F [00:00:00]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:00]wFMCommunicate OK [00:00:00]wFMCommunicate request_size=4 [00:00:00]MH_SAM_APDU [00:00:00]CAPDU: 80 17 00 00 [00:00:00]Write to MH i2c: E2 08 00 B7 18 80 17 00 00 00 00 00 00 4F [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:00]Read from MH i2c: E2 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: E2 FD 00 [00:00:00]MH_I2C_Read... [00:00:00]Read from MH i2c: E2 FD 00 B7 18 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 71 [00:00:00]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:00:00]wFMCommunicate OK [00:00:00]wFMCommunicate request_size=4 [00:00:00]MH_SAM_APDU [00:00:00]CAPDU: 80 17 00 00 [00:00:00]Write to MH i2c: E2 08 00 B8 18 80 17 00 00 00 00 00 00 50 [00:00:00]Write i2c OK [00:00:00]MH_I2C_Read... [00:00:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:01]Read from MH i2c: E2 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 B8 18 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [00:00:01]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:00:01]wFMCommunicate OK [00:00:01]wFMCommunicate request_size=4 [00:00:01]MH_SAM_APDU [00:00:01]CAPDU: 80 17 00 00 [00:00:01]Write to MH i2c: E2 08 00 B9 18 80 17 00 00 00 00 00 00 51 [00:00:01]Write i2c OK [00:00:01]MH_I2C_Read... [00:00:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:01]Read from MH i2c: E2 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 [00:00:01]MH_I2C_Read... [00:00:01]Read from MH i2c: E2 FD 00 B9 18 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 C3 [00:00:01]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:00:01]wFMCommunicate OK [00:00:01]wFMCommunicate request_size=4 [00:00:01]MH_SAM_APDU [00:00:01]CAPDU: 80 17 00 00 [00:00:01]Write to MH i2c: E2 08 00 BA 18 80 17 00 00 00 00 00 00 52 [00:00:01]Write i2c OK [00:00:01]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 CB 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 CB 00 BA 18 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 3B [00:00:02]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:00:02]wFMCommunicate OK [00:00:02]SAM_PROTO_GetShiftData done [00:00:02]requested_item shift.sale.total_cash is exist - process it [00:00:02]requested_item shift.sale_refund.total is exist - process it [00:00:02]requested_item shift.sale_refund.total_cash is exist - process it [00:00:02]requested_item shift.buy.total is exist - process it [00:00:02]requested_item shift.buy.total_cash is exist - process it [00:00:02]produce_requested_data done [00:00:02]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:00:02]process_action_free get_value [00:00:02]json_value_free [00:00:02]json_value_free done [00:00:02]process_json_proto returns [00:00:02]Send response to host [00:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:00:02]free response buf [00:00:02]execute_script done [00:00:02]execute_script returns [00:00:02]free content buf [00:00:02]Sock 7.Close socket [00:00:02]Sock 7.Thread stoped [00:00:02]accept exits with 9 [00:00:02]New connection [00:00:02]New thread 3067108708 created [00:00:02]Thread 3067252068 joined [00:00:02]Waiting for new connection... [00:00:02] Sock 9.Parse request [00:00:02]Sock 9.Check first char [00:00:02]Sock 9.First char is OK [00:00:02]request: POST /json_proto HTTP/1.0 [00:00:02]Method: POST [00:00:02]URL: /json_proto [00:00:02]Method is POST - this is cgi request [00:00:02]url: /json_proto [00:00:02]query_string will be loaded in cgi processing [00:00:02]execute_cgi json_proto POST (null) [00:00:02]execute_cgi path=json_proto method=POST [00:00:02]POST find Content-Length [00:00:02]Host: 172.17.44.4:8080 [00:00:02]Content-Length: 266 [00:00:02]Content-Type: application/json [00:00:02] [00:00:02]POST finish read [00:00:02]Found Content-Length = 266 [00:00:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0442\u0430\u043A\u043E\u0437\u0443\u0435\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:02]execute_script... [00:00:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0410\u0442\u0430\u043A\u043E\u0437\u0443\u0435\u0432 \u041C. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:00:02]POST & json_proto [00:00:02]process_json_proto [00:00:02]json parsed OK: [00:00:02]protocol is kg_v1.0 [00:00:02]action value=close_shift [00:00:02]process_action close_shift [00:00:02]cmd_close_shift [00:00:02]MH_GetDate [00:00:02]Write to MH i2c: F0 00 00 BB 18 C2 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: F0 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: F0 09 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: F0 09 00 BB 18 00 04 9E 46 66 6C E9 28 66 FC [00:00:02]GetLastDocTimeStamp 1715903952 [00:00:02]current date 1715904004 [00:00:02]FM_GetShiftState [00:00:02]SAM_PROTO_GetShiftState [00:00:02]wFMCommunicate request_size=4 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 13 01 00 [00:00:02]Write to MH i2c: E2 08 00 BC 18 80 13 01 00 00 00 00 00 51 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 0E 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 0E 00 BC 18 00 09 00 01 06 4F 45 66 00 00 00 00 90 00 5D [00:00:02]RAPDU: 09 00 01 06 4F 45 66 00 00 00 00 90 00 [00:00:02]wFMCommunicate OK [00:00:02]SAM_PROTO_GetShiftState done [00:00:02]FM_GetShiftState done [00:00:02]KKMCreateCloseShiftDocument [00:00:02]Load OK [00:00:02]Malloc new data [00:00:02]MH_GetDate [00:00:02]Write to MH i2c: F0 00 00 BD 18 C4 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: F0 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: F0 09 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: F0 09 00 BD 18 00 04 9E 46 66 6C E9 28 66 FE [00:00:02]Malloc new data [00:00:02]Malloc new data [00:00:02]Malloc new data [00:00:02]Malloc new data [00:00:02]KKMCreateCloseShiftDocument OK [00:00:02]KKMSetCloseShiftData OK [00:00:02]ProcessDocumentItem done err = 0, tmpTLVsize=73 [00:00:02]tlvbuf is 01240430 [00:00:02]KKMLoadAndSignCloseShiftData [00:00:02]SAM_PROTO_ProcessDocument [00:00:02]wFMCommunicate request_size=9 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 15 01 00 04 05 00 49 00 [00:00:02]Write to MH i2c: E2 0C 00 BE 18 80 15 01 00 04 00 05 00 49 00 00 00 AB [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 BE 18 00 90 00 4A [00:00:02]RAPDU: 90 00 [00:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=23 [00:00:02]MH_SAM_APDU [00:00:02]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:00:02]Write to MH i2c: E2 1A 00 BF 18 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 4C [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 BF 18 00 90 00 4B [00:00:02]RAPDU: 90 00 [00:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=32 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 15 02 00 1B FD 03 17 00 D0 90 D1 82 D0 B0 D0 BA D0 BE D0 B7 D1 83 D0 B5 D0 B2 20 D0 9C 2E 20 [00:00:02]Write to MH i2c: E2 23 00 C0 18 80 15 02 00 1B 00 FD 03 17 00 D0 90 D1 82 D0 B0 D0 BA D0 BE D0 B7 D1 83 D0 B5 D0 B2 20 D0 9C 2E 20 00 00 AC [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 C0 18 00 90 00 4C [00:00:02]RAPDU: 90 00 [00:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=13 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 15 02 00 08 F4 03 04 00 04 9E 46 66 [00:00:02]Write to MH i2c: E2 10 00 C1 18 80 15 02 00 08 00 F4 03 04 00 04 9E 46 66 00 00 B2 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 C1 18 00 90 00 4D [00:00:02]RAPDU: 90 00 [00:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=25 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 [00:00:02]Write to MH i2c: E2 1C 00 C2 18 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 00 00 B2 [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:02]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:00:02]Read from MH i2c: E2 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 [00:00:02]MH_I2C_Read... [00:00:02]Read from MH i2c: E2 03 00 C2 18 00 90 00 4E [00:00:02]RAPDU: 90 00 [00:00:02]wFMCommunicate OK [00:00:02]wFMCommunicate request_size=4 [00:00:02]MH_SAM_APDU [00:00:02]CAPDU: 80 15 03 00 [00:00:02]Write to MH i2c: E2 08 00 C3 18 80 15 03 00 00 00 00 00 5C [00:00:02]Write i2c OK [00:00:02]MH_I2C_Read... [00:00:03]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 FD 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 FD 00 C3 18 00 F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C8 13 00 00 0E 04 04 00 2C 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7D 00 00 00 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1F [00:00:03]RAPDU: F1 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C8 13 00 00 0E 04 04 00 2C 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7D 00 00 00 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:03]wFMCommunicate OK [00:00:03]SAM_PROTO_ProcessDocument answer len = 1265 [00:00:03]SAM_PROTO_ProcessDocument remain to read = 1017 [00:00:03]wFMCommunicate request_size=4 [00:00:03]MH_SAM_APDU [00:00:03]CAPDU: 80 17 00 00 [00:00:03]Write to MH i2c: E2 08 00 C4 18 80 17 00 00 00 00 00 00 5C [00:00:03]Write i2c OK [00:00:03]MH_I2C_Read... [00:00:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:03]Read from MH i2c: E2 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 FD 00 [00:00:03]MH_I2C_Read... [00:00:03]Read from MH i2c: E2 FD 00 C4 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A5 [00:00:04]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 [00:00:04]wFMCommunicate OK [00:00:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:04]SAM_PROTO_ProcessDocument remain to read = 767 [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 17 00 00 [00:00:04]Write to MH i2c: E2 08 00 C5 18 80 17 00 00 00 00 00 00 5D [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 FD 00 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 FD 00 C5 18 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 BF [00:00:04]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 OFD Sender: No OFD packet to send [00:00:04]00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:00:04]wFMCommunicate OK [00:00:04]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:04]SAM_PROTO_ProcessDocument remain to read = 517 [00:00:04]wFMCommunicate request_size=4 [00:00:04]MH_SAM_APDU [00:00:04]CAPDU: 80 17 00 00 [00:00:04]Write to MH i2c: E2 08 00 C6 18 80 17 00 00 00 00 00 00 5E [00:00:04]Write i2c OK [00:00:04]MH_I2C_Read... [00:00:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:04]Read from MH i2c: E2 [00:00:04]MH_I2C_Read... [00:00:04]Read from MH i2c: E2 FD 00 [00:00:04]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 FD 00 C6 18 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 E8 [00:00:05]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 [00:00:05]wFMCommunicate OK [00:00:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:05]SAM_PROTO_ProcessDocument remain to read = 267 [00:00:05]wFMCommunicate request_size=4 [00:00:05]MH_SAM_APDU [00:00:05]CAPDU: 80 17 00 00 [00:00:05]Write to MH i2c: E2 08 00 C7 18 80 17 00 00 00 00 00 00 5F [00:00:05]Write i2c OK [00:00:05]MH_I2C_Read... [00:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:05]Read from MH i2c: E2 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 FD 00 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 FD 00 C7 18 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 27 [00:00:05]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 [00:00:05]wFMCommunicate OK [00:00:05]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:00:05]SAM_PROTO_ProcessDocument remain to read = 17 [00:00:05]wFMCommunicate request_size=4 [00:00:05]MH_SAM_APDU [00:00:05]CAPDU: 80 17 00 00 [00:00:05]Write to MH i2c: E2 08 00 C8 18 80 17 00 00 00 00 00 00 60 [00:00:05]Write i2c OK [00:00:05]MH_I2C_Read... [00:00:05]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 17! [00:00:05]Read from MH i2c: E2 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 14 00 [00:00:05]MH_I2C_Read... [00:00:05]Read from MH i2c: E2 14 00 C8 18 00 01 00 06 F7 03 00 00 35 04 06 00 68 81 89 01 63 75 90 00 F0 [00:00:05]RAPDU: 01 00 06 F7 03 00 00 35 04 06 00 68 81 89 01 63 75 90 00 [00:00:05]wFMCommunicate OK [00:00:05]SAM_PROTO_ProcessDocument received (without SW) 17 bytes [00:00:05]SAM_PROTO_ProcessDocument done [00:00:05]1209 (1) - 1.0 - номер версии ФФД [00:00:05]1041 (16) - 0000000000963259 - номер ФМ [00:00:05]1040 (4) - 5064 - номер ФД [00:00:05]1038 (4) - 44 - номер смены [00:00:05]1118 (4) - 123 - количество кассовых чеков за смену [00:00:05]1111 (4) - 125 - общее количество ФД за смену [00:00:05]1194 (1194) - счетчики итогов смены [00:00:05] 1134 (4) - 123 - количество чеков со всеми признаками расчетов [00:00:05] 1129 (155) - счетчики операций «приход» [00:00:05] 1135 (4) - 123 - количество чеков по признаку расчетов [00:00:05] 1201 (3) - 43087.82 - общая итоговая сумма в чеках [00:00:05] 1136 (3) - 24719.00 - итоговая сумма в чеках наличными [00:00:05] 1138 (3) - 18368.82 - итоговая сумма в чеках безналичными [00:00:05] 1024 (122) - суммы налогов [00:00:05] 1006 (9) - суммы НДС [00:00:05] 1010 (1) - 0% - код ставки НДС [00:00:05] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:05] 1006 (12) - суммы НДС [00:00:05] 1010 (1) - 12% - код ставки НДС [00:00:05] 1011 (3) - 4576.15 - сумма НДС по ставке [00:00:05] 1007 (9) - суммы НСП [00:00:05] 1014 (1) - 0% - код ставки НСП [00:00:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:05] 1007 (11) - суммы НСП [00:00:05] 1014 (1) - 1% - код ставки НСП [00:00:05] 1015 (2) - 381.25 - сумма НСП по ставке [00:00:05] 1007 (9) - суммы НСП [00:00:05] 1014 (1) - 2% - код ставки НСП [00:00:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:05] 1007 (9) - суммы НСП [00:00:05] 1014 (1) - 3% - код ставки НСП [00:00:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:05] 1007 (9) - суммы НСП [00:00:05] 1014 (1) - 5% - код ставки НСП [00:00:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:05] 1007 (9) - суммы НСП [00:00:05] 1014 (1) - 0,50% - код ставки НСП [00:00:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:05] 1007 (9) - суммы НСП [00:00:05] 1014 (1) - 1,50% - код ставки НСП [00:00:05] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1130 (141) - счетчики операций «возврат прихода» [00:00:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:06] 1024 (117) - суммы налогов [00:00:06] 1006 (9) - суммы НДС [00:00:06] 1010 (1) - 0% - код ставки НДС [00:00:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:06] 1006 (9) - суммы НДС [00:00:06] 1010 (1) - 12% - код ставки НДС [00:00:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 0% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 1% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 2% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 3% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 5% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 0,50% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 1,50% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1131 (141) - счетчики операций «расход» [00:00:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:06] 1024 (117) - суммы налогов [00:00:06] 1006 (9) - суммы НДС [00:00:06] 1010 (1) - 0% - код ставки НДС [00:00:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:06] 1006 (9) - суммы НДС [00:00:06] 1010 (1) - 12% - код ставки НДС [00:00:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 0% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 1% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 2% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 3% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 5% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 0,50% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 1,50% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1132 (141) - счетчики операций «возврат расхода» [00:00:06] 1135 (4) - 0 - количество чеков по признаку расчетов [00:00:06] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:00:06] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:00:06] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:00:06] 1024 (117) - суммы налогов [00:00:06] 1006 (9) - суммы НДС [00:00:06] 1010 (1) - 0% - код ставки НДС [00:00:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:06] 1006 (9) - суммы НДС [00:00:06] 1010 (1) - 12% - код ставки НДС [00:00:06] 1011 (0) - 0.00 - сумма НДС по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 0% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 1% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 2% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 3% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 5% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 0,50% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1007 (9) - суммы НСП [00:00:06] 1014 (1) - 1,50% - код ставки НСП [00:00:06] 1015 (0) - 0.00 - сумма НСП по ставке [00:00:06] 1133 (588) - - счетчики коррекции - не используются [00:00:06]1077 (6) - 114905558639477 - ФПД [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1209 (04B9) [00:00:06]Malloc new data [00:00:06]Processing tag 1041 (0411) [00:00:06]Processing tag 1040 (0410) [00:00:06]Malloc new data [00:00:06]Processing tag 1038 (040E) [00:00:06]Malloc new data [00:00:06]Processing tag 1118 (045E) [00:00:06]Malloc new data [00:00:06]Processing tag 1111 (0457) [00:00:06]Malloc new data [00:00:06]Processing tag 1194 (04AA) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1134 (046E) [00:00:06]Malloc new data [00:00:06]Processing tag 1129 (0469) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1135 (046F) [00:00:06]Malloc new data [00:00:06]Processing tag 1201 (04B1) [00:00:06]Malloc new data [00:00:06]Processing tag 1136 (0470) [00:00:06]Malloc new data [00:00:06]Processing tag 1138 (0472) [00:00:06]Malloc new data [00:00:06]Processing tag 1024 (0400) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1006 (03EE) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1010 (03F2) [00:00:06]Malloc new data [00:00:06]Processing tag 1011 (03F3) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1006 (03EE) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1010 (03F2) [00:00:06]Malloc new data [00:00:06]Processing tag 1011 (03F3) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]SetTLVBufToDocument err=0 [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1130 (046A) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1135 (046F) [00:00:06]Malloc new data [00:00:06]Processing tag 1201 (04B1) [00:00:06]Malloc new data [00:00:06]Processing tag 1136 (0470) [00:00:06]Malloc new data [00:00:06]Processing tag 1138 (0472) [00:00:06]Malloc new data [00:00:06]Processing tag 1024 (0400) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1006 (03EE) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1010 (03F2) [00:00:06]Malloc new data [00:00:06]Processing tag 1011 (03F3) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1006 (03EE) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1010 (03F2) [00:00:06]Malloc new data [00:00:06]Processing tag 1011 (03F3) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]SetTLVBufToDocument err=0 [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1131 (046B) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1135 (046F) [00:00:06]Malloc new data [00:00:06]Processing tag 1201 (04B1) [00:00:06]Malloc new data [00:00:06]Processing tag 1136 (0470) [00:00:06]Malloc new data [00:00:06]Processing tag 1138 (0472) [00:00:06]Malloc new data [00:00:06]Processing tag 1024 (0400) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1006 (03EE) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1010 (03F2) [00:00:06]Malloc new data [00:00:06]Processing tag 1011 (03F3) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1006 (03EE) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1010 (03F2) [00:00:06]Malloc new data [00:00:06]Processing tag 1011 (03F3) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]SetTLVBufToDocument err=0 [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1132 (046C) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1135 (046F) [00:00:06]Malloc new data [00:00:06]Processing tag 1201 (04B1) [00:00:06]Malloc new data [00:00:06]Processing tag 1136 (0470) [00:00:06]Malloc new data [00:00:06]Processing tag 1138 (0472) [00:00:06]Malloc new data [00:00:06]Processing tag 1024 (0400) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1006 (03EE) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1010 (03F2) [00:00:06]Malloc new data [00:00:06]Processing tag 1011 (03F3) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1006 (03EE) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1010 (03F2) [00:00:06]Malloc new data [00:00:06]Processing tag 1011 (03F3) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:06]Processing tag 1015 (03F7) [00:00:06]Malloc new data [00:00:06]SetTLVBufToDocument err=0 [00:00:06]Processing tag 1007 (03EF) [00:00:06]Load OK [00:00:06]SetTLVBufToDocument [00:00:06]Processing tag 1014 (03F6) [00:00:06]Malloc new data [00:00:07]Processing tag 1015 (03F7) [00:00:07]Malloc new data [00:00:07]SetTLVBufToDocument err=0 [00:00:07]Processing tag 1007 (03EF) [00:00:07]Load OK [00:00:07]SetTLVBufToDocument [00:00:07]Processing tag 1014 (03F6) [00:00:07]Malloc new data [00:00:07]Processing tag 1015 (03F7) [00:00:07]Malloc new data [00:00:07]SetTLVBufToDocument err=0 [00:00:07]SetTLVBufToDocument err=0 [00:00:07]SetTLVBufToDocument err=0 [00:00:07]Processing tag 1133 (046D) [00:00:07]Malloc new data [00:00:07]SetTLVBufToDocument err=0 [00:00:07]Processing tag 1077 (0435) [00:00:07]Malloc new data [00:00:07]SetTLVBufToDocument err=0 [00:00:07]Malloc new data [00:00:07]SAM_PROTO_GetFMData [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 13 03 00 [00:00:07]Write to MH i2c: E2 08 00 C9 18 80 13 03 00 00 00 00 00 60 [00:00:07]Write i2c OK [00:00:07]MH_I2C_Read... [00:00:07]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:00:07]Read from MH i2c: E2 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 FD 00 [00:00:07]MH_I2C_Read... [00:00:07]Read from MH i2c: E2 FD 00 C9 18 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 3C [00:00:07]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [00:00:07]wFMCommunicate OK [00:00:07]wFMCommunicate request_size=4 [00:00:07]MH_SAM_APDU [00:00:07]CAPDU: 80 17 00 00 [00:00:08]Write to MH i2c: E2 08 00 CA 18 80 17 00 00 00 00 00 00 62 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 CA 18 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 FF [00:00:08]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:00:08]wFMCommunicate OK [00:00:08]wFMCommunicate request_size=4 [00:00:08]MH_SAM_APDU [00:00:08]CAPDU: 80 17 00 00 [00:00:08]Write to MH i2c: E2 08 00 CB 18 80 17 00 00 00 00 00 00 63 [00:00:08]Write i2c OK [00:00:08]MH_I2C_Read... [00:00:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:08]Read from MH i2c: E2 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 [00:00:08]MH_I2C_Read... [00:00:08]Read from MH i2c: E2 FD 00 CB 18 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [00:00:09]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 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 90 00 [00:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 17 00 00 [00:00:09]Write to MH i2c: E2 08 00 CC 18 80 17 00 00 00 00 00 00 64 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:00:09]Read from MH i2c: E2 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 FD 00 [00:00:09]MH_I2C_Read... [00:00:09]Read from MH i2c: E2 FD 00 CC 18 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 DE [00:00:09]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [00:00:09]00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:00:09]wFMCommunicate OK [00:00:09]wFMCommunicate request_size=4 [00:00:09]MH_SAM_APDU [00:00:09]CAPDU: 80 17 00 00 [00:00:09]Write to MH i2c: E2 08 00 CD 18 80 17 00 00 00 00 00 00 65 [00:00:09]Write i2c OK [00:00:09]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 DC 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 DC 00 CD 18 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 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 49 [00:00:10]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 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:00:10]wFMCommunicate OK [00:00:10]SAM_PROTO_GetFMData done [00:00:10]Malloc new data [00:00:10]Malloc new data [00:00:10]Malloc new data [00:00:10]Malloc new data [00:00:10]KKMLoadAndSignCloseShiftData err=0 [00:00:10]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Атакозуев М. 17.05.2024 00:00 Смена: 44 РНМ: 0000000000154221 ЗНМ: 0300000237 СНО: Общий режим Чеков за смену: 123 ФД за смену: 125 Всего чеков: 123 ИТОГИ ПРИХОД Чеков: 123 Общий итог: 43087.82 Итого наличными: 24719.00 Итого безнал.: 18368.82 НДС 0% : 0.00 НДС 12% : 4576.15 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 381.25 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 24719.00 НС Приход: 2611485.66 НС Возвр.Прихода: 129495.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 5064 ФМ: 0000000000963259 ФПД: 114905558639477 [00:00:10]StoreToDocumentArchive [00:00:10]shift 44 fd 5064 [00:00:10]save to /storage/0044/doc_00005064 [00:00:10]save last doc name /storage/0044/doc_00005064 to /storage/kkm_last_doc_name [00:00:10]save OK [00:00:10]Clear old archive folders... [00:00:10]Remove dir /storage/0010 [00:00:10]opendir ok [00:00:10]file . [00:00:10]file .. [00:00:10]file doc_1715903959 [00:00:10]remove file /storage/0010/doc_1715903959 [00:00:10]remove dir /storage/0010 [00:00:10]NVStorageSaveData kkm_registers [00:00:10]File name is /storage/kkm_registers [00:00:10]Write 24 bytes [00:00:10]NVStorageSaveData done [00:00:10]NVStorageSaveData kkm_registers [00:00:10]File name is /storage/kkm_registers [00:00:10]Write 24 bytes [00:00:10]NVStorageSaveData done [00:00:10]ProcessDocumentItem done err = 0, tmpTLVsize=1381 [00:00:10]tlvbuf is 01216250 [00:00:10]SAM_PROTO_ClearQueue [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 09 00 00 [00:00:10]Write to MH i2c: E2 08 00 CE 18 80 09 00 00 00 00 00 00 58 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 CE 18 00 90 00 5A [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]SAM_PROTO_ClearQueue done [00:00:10]KKMCreateOFDPacket [00:00:10]OFDProtocolAddRootSTLVToBuf [00:00:10]FM_MakeSignedData [00:00:10]FM_MakeSignedData [00:00:10]SAM_PROTO_SignData [00:00:10]wFMCommunicate request_size=4 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 0D 01 02 [00:00:10]Write to MH i2c: E2 08 00 CF 18 80 0D 01 02 00 00 00 00 60 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:00:10]Read from MH i2c: E2 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: E2 03 00 CF 18 00 90 00 5B [00:00:10]RAPDU: 90 00 [00:00:10]wFMCommunicate OK [00:00:10]wFMCommunicate request_size=255 [00:00:10]MH_SAM_APDU [00:00:10]CAPDU: 80 0D 02 02 FA 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D1 82 D0 B0 D0 BA D0 BE D0 B7 D1 83 D0 B5 D0 B2 20 D0 9C 2E 20 F4 03 04 00 04 9E 46 66 0E 04 04 00 2C 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 5E 04 04 00 7B 00 00 00 57 04 04 00 7D 00 00 00 AA 04 D5 04 6E 04 04 00 7B 00 00 00 69 04 A2 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 [00:00:10]Write to MH i2c: E2 02 01 D0 18 80 0D 02 02 FA 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D1 82 D0 B0 D0 BA D0 BE D0 B7 D1 83 D0 B5 D0 B2 20 D0 9C 2E 20 F4 03 04 00 04 9E 46 66 0E 04 04 00 2C 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 5E 04 04 00 7B 00 00 00 57 04 04 00 7D 00 00 00 AA 04 D5 04 6E 04 04 00 7B 00 00 00 69 04 A2 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 00 00 1E [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 D0 18 00 90 00 5C [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=255 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 0D 02 02 FA F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 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 [00:00:11]Write to MH i2c: E2 02 01 D1 18 80 0D 02 02 FA 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 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 00 00 4E [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:11]Read from MH i2c: E2 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: E2 03 00 D1 18 00 90 00 5D [00:00:11]RAPDU: 90 00 [00:00:11]wFMCommunicate OK [00:00:11]wFMCommunicate request_size=255 [00:00:11]MH_SAM_APDU [00:00:11]CAPDU: 80 0D 02 02 FA 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 [00:00:12]Write to MH i2c: E2 02 01 D2 18 80 0D 02 02 FA 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 00 00 2B [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:12]Read from MH i2c: E2 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 [00:00:12]MH_I2C_Read... [00:00:12]Read from MH i2c: E2 03 00 D2 18 00 90 00 5E [00:00:12]RAPDU: 90 00 [00:00:12]wFMCommunicate OK [00:00:12]wFMCommunicate request_size=255 [00:00:12]MH_SAM_APDU [00:00:12]CAPDU: 80 0D 02 02 FA 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 [00:00:12]Write to MH i2c: E2 02 01 D3 18 80 0D 02 02 FA 00 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 00 00 29 [00:00:12]Write i2c OK [00:00:12]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 03 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 03 00 D3 18 00 90 00 5F [00:00:13]RAPDU: 90 00 [00:00:13]wFMCommunicate OK [00:00:13]wFMCommunicate request_size=255 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 0D 02 02 FA 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:00:13]Write to MH i2c: E2 02 01 D4 18 80 0D 02 02 FA 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 F1 [00:00:13]Write i2c OK [00:00:13]MH_I2C_Read... [00:00:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:13]Read from MH i2c: E2 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 03 00 [00:00:13]MH_I2C_Read... [00:00:13]Read from MH i2c: E2 03 00 D4 18 00 90 00 60 [00:00:13]RAPDU: 90 00 [00:00:13]wFMCommunicate OK [00:00:13]wFMCommunicate request_size=140 [00:00:13]MH_SAM_APDU [00:00:13]CAPDU: 80 0D 02 02 87 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 13 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 35 04 06 00 68 81 89 01 63 75 [00:00:13]Write to MH i2c: E2 8F 00 D5 18 80 0D 02 02 87 00 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C8 13 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 35 04 06 00 68 81 89 01 63 75 00 00 CE [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 03 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 03 00 D5 18 00 90 00 61 [00:00:14]RAPDU: 90 00 [00:00:14]wFMCommunicate OK [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 0D 03 02 [00:00:14]Write to MH i2c: E2 08 00 D6 18 80 0D 03 02 00 00 00 00 69 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 0B 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 0B 00 D6 18 00 21 04 83 AF D1 7F C3 FC 90 00 D0 [00:00:14]RAPDU: 21 04 83 AF D1 7F C3 FC 90 00 [00:00:14]wFMCommunicate OK [00:00:14]SAM_PROTO_SignData done [00:00:14]FM_MakeSignedData done [00:00:14]CreateOFDProtocolMessage [00:00:14]wFMCommunicate request_size=4 [00:00:14]MH_SAM_APDU [00:00:14]CAPDU: 80 11 00 00 [00:00:14]Write to MH i2c: E2 08 00 D7 18 80 11 00 00 00 00 00 00 69 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:00:14]Read from MH i2c: E2 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 17 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: E2 17 00 D7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 BE [00:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [00:00:14]wFMCommunicate OK [00:00:14]CreateOFDProtocolMessage done [00:00:14]OFDSenderStorePacket 5064 [00:00:14]StoreOFDPacket docnum=5064 [00:00:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 79 05 00 00 F7 FF 71 05 C9 7F 5A 05 01 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D1 82 D0 B0 D0 BA D0 BE D0 B7 D1 83 D0 B5 D0 B2 20 D0 9C 2E 20 F4 03 04 00 04 9E 46 66 0E 04 04 00 2C 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 5E 04 04 00 7B 00 00 00 57 04 04 00 7D 00 00 00 AA 04 D5 04 6E 04 04 00 7B 00 00 00 69 04 A2 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 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 C8 13 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 35 04 06 00 68 81 89 01 63 75 21 04 83 AF D1 7F C3 FC [00:00:14]CheckFolder [00:00:14]dirname=/storage/ofd_packets [00:00:14]CheckFolder done [00:00:14]ProducePacketName [00:00:14]name=ofd_packets/00005064 [00:00:14]NVStorageSaveData ofd_packets/00005064 [00:00:14]File name is /storage/ofd_packets/00005064 [00:00:14]Write 1431 bytes [00:00:14]NVStorageSaveData done [00:00:14]OFDSenderStorePacket done [00:00:14]KKMCreateOFDPacket done [00:00:14]NVStorageSaveData kkm_last_timestamp [00:00:14]File name is /storage/kkm_last_timestamp [00:00:14]Write 4 bytes [00:00:14]NVStorageSaveData done [00:00:14]ExternCall_PrintAddStr [00:00:14]wPrintStart [00:00:14]Write to MH i2c: 01 00 00 D8 18 F0 [00:00:14]Write i2c OK [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: 01 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: 01 07 00 [00:00:14]MH_I2C_Read... [00:00:14]Read from MH i2c: 01 07 00 D8 18 00 00 00 00 00 FF 0F 05 [00:00:14]RasterBufferAndPrint [00:00:14]line Отчет о закрытии смены [00:00:14]line ФФД: 1.0 [00:00:14]line ИНН: 02508201610067 [00:00:14]line Кассир: Атакозуев М. [00:00:14]line 17.05.2024 00:00 [00:00:14]line Смена: 44 [00:00:14]line РНМ: 0000000000154221 [00:00:14]line ЗНМ: 0300000237 [00:00:14]line СНО: Общий режим [00:00:14]line Чеков за смену: 123 [00:00:14]line ФД за смену: 125 [00:00:14]line Всего чеков: 123 [00:00:14]line ИТОГИ ПРИХОД [00:00:14]line Чеков: 123 [00:00:14]line Общий итог: 43087.82 [00:00:14]line Итого наличными: 24719.00 [00:00:14]line Итого безнал.: 18368.82 [00:00:14]line НДС 0% : 0.00 [00:00:14]line НДС 12% : 4576.15 [00:00:14]line НСП 0% : 0.00 [00:00:14]line НСП 1,50% : 0.00 [00:00:14]line НСП 0,50% : 0.00 [00:00:14]line НСП 5% : 0.00 [00:00:14]line НСП 3% : 0.00 [00:00:14]line НСП 2% : 0.00 [00:00:14]line НСП 1% : 381.25 [00:00:14]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:00:14]line Чеков: 0 [00:00:14]line Общий итог: 0.00 [00:00:14]line Итого наличными: 0.00 [00:00:14]line Итого безнал.: 0.00 [00:00:14]line НДС 0% : 0.00 [00:00:14]line НДС 12% : 0.00 [00:00:14]line НСП 0% : 0.00 [00:00:14]line НСП 1,50% : 0.00 [00:00:14]line НСП 0,50% : 0.00 [00:00:14]line НСП 5% : 0.00 [00:00:14]line НСП 3% : 0.00 [00:00:14]line НСП 2% : 0.00 [00:00:14]line НСП 1% : 0.00 [00:00:14]line ИТОГИ РАСХОД [00:00:14]line Чеков: 0 [00:00:14]line Общий итог: 0.00 [00:00:14]line Итого наличными: 0.00 [00:00:14]line Итого безнал.: 0.00 [00:00:14]line НДС 0% : 0.00 [00:00:14]line НДС 12% : 0.00 [00:00:14]OFD Sender: Processing packet 5064 [packets to send 4, broken 3] [00:00:14]line НСП 0% : 0.00 [00:00:14]ProducePacketName [00:00:14]line НСП 1,50% : 0.00 [00:00:14]name=ofd_packets/00005064 [00:00:14]line НСП 0,50% : 0.00 [00:00:14]OFD Sender: To server: pG, [00:00:14]line НСП 5% : 0.00 [00:00:14]CommunicateWithHost lk.salyk.kg:30040 [00:00:14]line НСП 3% : 0.00 [00:00:14]ConnectInit lk.salyk.kg [00:00:14]line НСП 2% : 0.00 [00:00:14]line НСП 1% : 0.00 [00:00:14]line ИТОГИ ВОЗВРАТ РАСХОДА [00:00:14]line Чеков: 0 [00:00:14]line Общий итог: 0.00 [00:00:14]line Итого наличными: 0.00 [00:00:14]line Итого безнал.: 0.00 [00:00:14]line НДС 0% : 0.00 [00:00:14]line НДС 12% : 0.00 [00:00:14]line НСП 0% : 0.00 [00:00:14]line НСП 1,50% : 0.00 [00:00:14]line НСП 0,50% : 0.00 [00:00:14]line НСП 5% : 0.00 [00:00:14]line НСП 3% : 0.00 [00:00:14]line НСП 2% : 0.00 [00:00:14]line НСП 1% : 0.00 [00:00:14]line Сумма внесений: 0.00 [00:00:14]line Сумма выплат: 0.00 [00:00:14]line Нал. в кассе: 24719.00 [00:00:14]line НС Приход: 2611485.66 [00:00:14]line НС Возвр.Прихода: 129495.00 [00:00:14]line НС Расход: 0.00 [00:00:14]line НС Возвр.Расхода: 0.00 [00:00:14]line ФД: 5064 [00:00:14]line ФМ: 0000000000963259 [00:00:14]line ФПД: 114905558639477 [00:00:14]written 0, free lines is 4095 [00:00:15]Connected sock=10 [00:00:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 79 05 00 00 F7 FF 71 05 C9 7F 5A 05 01 00 05 00 65 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 17 00 D0 90 D1 82 D0 B0 D0 BA D0 BE D0 B7 D1 83 D0 B5 D0 B2 20 D0 9C 2E 20 F4 03 04 00 04 9E 46 66 0E 04 04 00 2C 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 5E 04 04 00 7B 00 00 00 57 04 04 00 7D 00 00 00 AA 04 D5 04 6E 04 04 00 7B 00 00 00 69 04 A2 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 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 Write to MH i2c: 00 01 00 04 00 7E 28 00 19 EE 41 03 [00:00:15]0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 Write i2c OK [00:00:15]F2 MH_I2C_Read... [00:00:15]03 Read from MH i2c: 01 01 00 [00:00:15]01 MH_I2C_Read... [00:00:15]F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 Read from MH i2c: 00 01 00 07 EF 00 03 [00:00:15]0A MH_I2C_Read... [00:00:15]00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 Read from MH i2c: 01 01 00 07 00 05 28 F7 19 03 00 01 00 00 00 00 00 EF 00 03 6B 0A 09 00 BC F6 [00:00:15]03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 RasterBufferAndPrint [00:00:15]01 00 line [00:00:15]03 line [00:00:15]F7 line [00:00:15]03 line [00:00:15]01 line [00:00:15]00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 written 0, free lines is 2513 [00:00:15]0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F MH_Cut [00:00:15]04 Write to MH i2c: 04 D1 00 01 00 00 00 2F 00 19 00 01 1A B1 [00:00:15]04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE Write i2c OK [00:00:15]03 MH_I2C_Read... [00:00:15]0A Read from MH i2c: 00 D1 F2 [00:00:15]03 MH_I2C_Read... [00:00:15]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 Read from MH i2c: 03 D1 F7 01 03 00 01 [00:00:16]00 MH_I2C_Read... [00:00:16]00 EF 03 Read from MH i2c: 0A D1 00 01 F6 00 03 2F 01 19 00 00 02 19 F7 [00:00:16]03 Write to MH i2c: 01 01 00 00 00 00 EF 30 03 19 0A 49 00 [00:00:16]F6 03 01 00 01 F7 03 01 00 00 6D Write i2c OK [00:00:16]04 MH_I2C_Read... [00:00:16]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 C8 13 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 35 04 06 00 68 81 89 01 63 75 21 04 83 AF D1 7F C3 FC [00:00:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 95 FE 47 00 F5 EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C8 13 00 00 F4 03 04 00 D3 49 46 66 B6 04 01 00 00 37 78 B5 86 6D 8A 0E E8 [00:00:17]CommunicateWithHost err = 0 [00:00:17]CheckOFDResponse [00:00:17]1017 (14) - 77093643461234 [00:00:17]1041 (16) - 0000000000963259 [00:00:17]1040 (4) - 5064 [00:00:17]1012 (4) - 16.05.2024 18:00 [00:00:17]1206 (1) - 0 [00:00:17]OFD Sender: Remove packet 5064 [00:00:17]ProducePacketName [00:00:17]name=ofd_packets/00005064 [00:00:17]NVStorageDeleteData [00:00:17]*** Cut start [00:00:17]*** Partial cut [00:00:17]*** CUTSNS_PIN = 1 [00:00:17]*** CUTSNS_PIN = 0 [00:00:17]OFD Sender: No OFD packet to send [00:00:17]*** Brake cut motor [00:00:18]Read from MH i2c: 01 [00:00:18]MH_I2C_Read... [00:00:18]*** Stop cut motor [00:00:18]*** Cut end [00:00:18]Read from MH i2c: 01 07 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: 01 07 00 30 19 00 00 00 00 00 FF 0F 5E [00:00:18]process_action close_shift done [00:00:18]requested_data is exist [00:00:18]produce_requested_data [00:00:18]requested_item fd.num is exist - process it [00:00:18]SAM_PROTO_GetFieldsCounters [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 13 00 00 [00:00:18]Write to MH i2c: E2 08 00 31 19 80 13 00 00 00 00 00 00 C6 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:00:18]Read from MH i2c: E2 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 62 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 62 00 31 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C8 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [00: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 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C8 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:00:18]wFMCommunicate OK [00:00:18]SAM_PROTO_GetFieldsCounters done [00:00:18]requested_item shift.num is exist - process it [00:00:18]requested_item shift.opened is exist - process it [00:00:18]req_shift_opened [00:00:18]FM_GetShiftState [00:00:18]SAM_PROTO_GetShiftState [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 13 01 00 [00:00:18]Write to MH i2c: E2 08 00 32 19 80 13 01 00 00 00 00 00 C8 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:18]Read from MH i2c: E2 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 0E 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 0E 00 32 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D3 [00:00:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:00:18]wFMCommunicate OK [00:00:18]SAM_PROTO_GetShiftState done [00:00:18]FM_GetShiftState done [00:00:18]req_shift_opened done [00:00:18]requested_item shift.open_date is exist - process it [00:00:18]req_shift_open_date [00:00:18]FM_GetShiftState [00:00:18]SAM_PROTO_GetShiftState [00:00:18]wFMCommunicate request_size=4 [00:00:18]MH_SAM_APDU [00:00:18]CAPDU: 80 13 01 00 [00:00:18]Write to MH i2c: E2 08 00 33 19 80 13 01 00 00 00 00 00 C9 [00:00:18]Write i2c OK [00:00:18]MH_I2C_Read... [00:00:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:00:18]Read from MH i2c: E2 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 0E 00 [00:00:18]MH_I2C_Read... [00:00:18]Read from MH i2c: E2 0E 00 33 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D4 [00:00:18]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:00:18]wFMCommunicate OK [00:00:18]SAM_PROTO_GetShiftState done [00:00:18]FM_GetShiftState done [00:00:18]req_shift_open_date done [00:00:18]produce_requested_data done [00:00:18]produce_requested_data return {"fd.num":5064,"shift.num":44,"shift.opened":0,"shift.open_date":0} [00:00:18]process_action_free close_shift [00:00:18]json_value_free [00:00:18]json_value_free done [00:00:18]process_json_proto returns [00:00:18]Send response to host [00:00:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":5064,"shift.num":44,"shift.opened":0,"shift.open_date":0}}} [00:00:18]free response buf [00:00:18]execute_script done [00:00:18]execute_script returns [00:00:18]free content buf [00:00:18]Sock 9.Close socket [00:00:18]Sock 9.Thread stoped [00:00:22]OFD Sender: No OFD packet to send [00:00:27]OFD Sender: No OFD packet to send [00:00:32]OFD Sender: No OFD packet to send [00:00:37]OFD Sender: No OFD packet to send [00:00:42]OFD Sender: No OFD packet to send [00:00:47]OFD Sender: No OFD packet to send [00:00:52]OFD Sender: No OFD packet to send [00:00:57]OFD Sender: No OFD packet to send [00:01:02]OFD Sender: No OFD packet to send [00:01:07]OFD Sender: No OFD packet to send [00:01:12]OFD Sender: No OFD packet to send [00:01:17]OFD Sender: No OFD packet to send [00:01:22]OFD Sender: No OFD packet to send [00:01:27]OFD Sender: No OFD packet to send [00:01:32]OFD Sender: No OFD packet to send [00:01:37]OFD Sender: No OFD packet to send [00:01:42]OFD Sender: No OFD packet to send [00:01:47]OFD Sender: No OFD packet to send [00:01:52]OFD Sender: No OFD packet to send [00:01:57]OFD Sender: No OFD packet to send [00:02:02]OFD Sender: No OFD packet to send [00:02:07]OFD Sender: No OFD packet to send [00:02:12]OFD Sender: No OFD packet to send [00:02:17]OFD Sender: No OFD packet to send [00:02:22]OFD Sender: No OFD packet to send [00:02:27]OFD Sender: No OFD packet to send [00:02:32]OFD Sender: No OFD packet to send [00:02:37]OFD Sender: No OFD packet to send [00:02:42]OFD Sender: No OFD packet to send [00:02:47]OFD Sender: No OFD packet to send [00:02:52]OFD Sender: No OFD packet to send [00:02:57]OFD Sender: No OFD packet to send [00:03:02]OFD Sender: No OFD packet to send [00:03:07]OFD Sender: No OFD packet to send [00:03:12]OFD Sender: No OFD packet to send [00:03:17]OFD Sender: No OFD packet to send [00:03:22]OFD Sender: No OFD packet to send [00:03:27]OFD Sender: No OFD packet to send [00:03:32]OFD Sender: No OFD packet to send [00:03:37]OFD Sender: No OFD packet to send [00:03:42]OFD Sender: No OFD packet to send [00:03:47]OFD Sender: No OFD packet to send [00:03:52]OFD Sender: No OFD packet to send [00:03:57]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:18]OFD Sender: No OFD packet to send [00:06:23]OFD Sender: No OFD packet to send [00:06:28]OFD Sender: No OFD packet to send [00:06:33]OFD Sender: No OFD packet to send [00:06:38]OFD Sender: No OFD packet to send [00:06:43]OFD Sender: No OFD packet to send [00:06:48]OFD Sender: No OFD packet to send [00:06:53]OFD Sender: No OFD packet to send [00:06:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:33]OFD Sender: No OFD packet to send [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:18]OFD Sender: No OFD packet to send [00:08:23]OFD Sender: No OFD packet to send [00:08:28]OFD Sender: No OFD packet to send [00:08:33]OFD Sender: No OFD packet to send [00:08:38]OFD Sender: No OFD packet to send [00:08:43]OFD Sender: No OFD packet to send [00:08:48]OFD Sender: No OFD packet to send [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:18]OFD Sender: No OFD packet to send [00:09:23]OFD Sender: No OFD packet to send [00:09:28]OFD Sender: No OFD packet to send [00:09:33]OFD Sender: No OFD packet to send [00:09:38]OFD Sender: No OFD packet to send [00:09:43]OFD Sender: No OFD packet to send [00:09:48]OFD Sender: No OFD packet to send [00:09:53]OFD Sender: No OFD packet to send [00:09:58]OFD Sender: No OFD packet to send [00:10:03]OFD Sender: No OFD packet to send [00:10:08]OFD Sender: No OFD packet to send [00:10:13]OFD Sender: No OFD packet to send [00:10:18]OFD Sender: No OFD packet to send [00:10:23]OFD Sender: No OFD packet to send [00:10:28]OFD Sender: No OFD packet to send [00:10:33]OFD Sender: No OFD packet to send [00:10:38]OFD Sender: No OFD packet to send [00:10:43]OFD Sender: No OFD packet to send [00:10:48]OFD Sender: No OFD packet to send [00:10:53]OFD Sender: No OFD packet to send [00:10:58]OFD Sender: No OFD packet to send [00:11:03]OFD Sender: No OFD packet to send [00:11:08]OFD Sender: No OFD packet to send [00:11:08]accept exits with 7 [00:11:08]New connection [00:11:08]New thread 3067252068 created [00:11:08]Thread 3067108708 joined [00:11:08]Waiting for new connection... [00:11:08] Sock 7.Parse request [00:11:08]Sock 7.Check first char [00:11:08]Sock 7.First char is OK [00:11:08]request: POST /json_proto HTTP/1.0 [00:11:08]Method: POST [00:11:08]URL: /json_proto [00:11:08]Method is POST - this is cgi request [00:11:08]url: /json_proto [00:11:08]query_string will be loaded in cgi processing [00:11:08]execute_cgi json_proto POST (null) [00:11:08]execute_cgi path=json_proto method=POST [00:11:08]POST find Content-Length [00:11:08]Host: 172.17.44.4:8080 [00:11:08]Content-Length: 215 [00:11:08]Content-Type: application/json [00:11:08] [00:11:08]POST finish read [00:11:08]Found Content-Length = 215 [00:11:08]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:11:08]execute_script... [00:11:08]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:11:08]POST & json_proto [00:11:08]process_json_proto [00:11:08]json parsed OK: [00:11:08]protocol is kg_v1.0 [00:11:08]action value=get_value [00:11:08]process_action get_value [00:11:08]cmd_get_value [00:11:08]process_action get_value done [00:11:08]requested_data is exist [00:11:08]produce_requested_data [00:11:08]requested_item kkm.sn is exist - process it [00:11:08]requested_item kkm.ver is exist - process it [00:11:08]requested_item fm.sn is exist - process it [00:11:08]wFMCommunicate request_size=4 [00:11:08]MH_SAM_APDU [00:11:08]CAPDU: 80 11 00 00 [00:11:08]Write to MH i2c: E2 08 00 34 19 80 11 00 00 00 00 00 00 C7 [00:11:08]Write i2c OK [00:11:08]MH_I2C_Read... [00:11:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:08]Read from MH i2c: E2 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 17 00 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 17 00 34 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 1C [00:11:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [00:11:08]wFMCommunicate OK [00:11:08]requested_item fd.num is exist - process it [00:11:08]SAM_PROTO_GetFieldsCounters [00:11:08]wFMCommunicate request_size=4 [00:11:08]MH_SAM_APDU [00:11:08]CAPDU: 80 13 00 00 [00:11:08]Write to MH i2c: E2 08 00 35 19 80 13 00 00 00 00 00 00 CA [00:11:08]Write i2c OK [00:11:08]MH_I2C_Read... [00:11:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:08]Read from MH i2c: E2 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 62 00 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 62 00 35 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C8 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [00:11:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C8 13 00 00 0E 04 04 00 2C 00 00 00 12 04 04 00 7B 00 00 00 5E 04 04 00 7B 00 00 00 57 04 04 00 7D 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:08]wFMCommunicate OK [00:11:08]SAM_PROTO_GetFieldsCounters done [00:11:08]requested_item shift.num is exist - process it [00:11:08]requested_item shift.opened is exist - process it [00:11:08]req_shift_opened [00:11:08]FM_GetShiftState [00:11:08]SAM_PROTO_GetShiftState [00:11:08]wFMCommunicate request_size=4 [00:11:08]MH_SAM_APDU [00:11:08]CAPDU: 80 13 01 00 [00:11:08]Write to MH i2c: E2 08 00 36 19 80 13 01 00 00 00 00 00 CC [00:11:08]Write i2c OK [00:11:08]MH_I2C_Read... [00:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:08]Read from MH i2c: E2 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 0E 00 [00:11:08]MH_I2C_Read... [00:11:08]Read from MH i2c: E2 0E 00 36 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D7 [00:11:08]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:08]wFMCommunicate OK [00:11:08]SAM_PROTO_GetShiftState done [00:11:08]FM_GetShiftState done [00:11:08]req_shift_opened done [00:11:08]requested_item shift.open_date is exist - process it [00:11:08]req_shift_open_date [00:11:08]FM_GetShiftState [00:11:08]SAM_PROTO_GetShiftState [00:11:08]wFMCommunicate request_size=4 [00:11:08]MH_SAM_APDU [00:11:08]CAPDU: 80 13 01 00 [00:11:08]Write to MH i2c: E2 08 00 37 19 80 13 01 00 00 00 00 00 CD [00:11:08]Write i2c OK [00:11:08]MH_I2C_Read... [00:11:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:09]Read from MH i2c: E2 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 0E 00 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 0E 00 37 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 D8 [00:11:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:09]wFMCommunicate OK [00:11:09]SAM_PROTO_GetShiftState done [00:11:09]FM_GetShiftState done [00:11:09]req_shift_open_date done [00:11:09]produce_requested_data done [00:11:09]produce_requested_data return {"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5064,"shift.num":44,"shift.opened":0,"shift.open_date":0} [00:11:09]process_action_free get_value [00:11:09]json_value_free [00:11:09]json_value_free done [00:11:09]process_json_proto returns [00:11:09]Send response to host [00:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000237","kkm.ver":"v1.0","fm.sn":"0000000000963259","fd.num":5064,"shift.num":44,"shift.opened":0,"shift.open_date":0}}} [00:11:09]free response buf [00:11:09]execute_script done [00:11:09]execute_script returns [00:11:09]free content buf [00:11:09]Sock 7.Close socket [00:11:09]Sock 7.Thread stoped [00:11:09]accept exits with 9 [00:11:09]New connection [00:11:09]New thread 3067108708 created [00:11:09]Thread 3067252068 joined [00:11:09]Waiting for new connection... [00:11:09] Sock 9.Parse request [00:11:09]Sock 9.Check first char [00:11:09]Sock 9.First char is OK [00:11:09]request: POST /json_proto HTTP/1.0 [00:11:09]Method: POST [00:11:09]URL: /json_proto [00:11:09]Method is POST - this is cgi request [00:11:09]url: /json_proto [00:11:09]query_string will be loaded in cgi processing [00:11:09]execute_cgi json_proto POST (null) [00:11:09]execute_cgi path=json_proto method=POST [00:11:09]POST find Content-Length [00:11:09]Host: 172.17.44.4:8080 [00:11:09]Content-Length: 331 [00:11:09]Content-Type: application/json [00:11:09] [00:11:09]POST finish read [00:11:09]Found Content-Length = 331 [00:11:09]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:11:09]execute_script... [00:11:09]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:11:09]POST & json_proto [00:11:09]process_json_proto [00:11:09]json parsed OK: [00:11:09]protocol is kg_v1.0 [00:11:09]action value=get_value [00:11:09]process_action get_value [00:11:09]cmd_get_value [00:11:09]process_action get_value done [00:11:09]requested_data is exist [00:11:09]produce_requested_data [00:11:09]requested_item fm.sale.total is exist - process it [00:11:09]SAM_PROTO_GetFMData [00:11:09]wFMCommunicate request_size=4 [00:11:09]MH_SAM_APDU [00:11:09]CAPDU: 80 13 03 00 [00:11:09]Write to MH i2c: E2 08 00 38 19 80 13 03 00 00 00 00 00 D0 [00:11:09]Write i2c OK [00:11:09]MH_I2C_Read... [00:11:09]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:09]Read from MH i2c: E2 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 FD 00 [00:11:09]MH_I2C_Read... [00:11:09]Read from MH i2c: E2 FD 00 38 19 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 AC [00:11:09]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [00:11:09]wFMCommunicate OK [00:11:09]wFMCommunicate request_size=4 [00:11:09]MH_SAM_APDU [00:11:09]CAPDU: 80 17 00 00 [00:11:09]Write to MH i2c: E2 08 00 39 19 80 17 00 00 00 00 00 00 D2 [00:11:09]Write i2c OK [00:11:09]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 FD 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 FD 00 39 19 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 6F [00:11:10]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:11:10]wFMCommunicate OK [00:11:10]wFMCommunicate request_size=4 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 17 00 00 [00:11:10]Write to MH i2c: E2 08 00 3A 19 80 17 00 00 00 00 00 00 D3 [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 FD 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 FD 00 3A 19 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 77 [00:11: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 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 90 00 [00:11:10]wFMCommunicate OK [00:11:10]wFMCommunicate request_size=4 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 17 00 00 [00:11:10]Write to MH i2c: E2 08 00 3B 19 80 17 00 00 00 00 00 00 D4 [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 FD 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 FD 00 3B 19 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 4E [00:11:10]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:11:10]wFMCommunicate OK [00:11:10]wFMCommunicate request_size=4 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 17 00 00 [00:11:10]Write to MH i2c: E2 08 00 3C 19 80 17 00 00 00 00 00 00 D5 [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:11:10]Read from MH i2c: E2 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 DC 00 [00:11:10]MH_I2C_Read... [00:11:10]Read from MH i2c: E2 DC 00 3C 19 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 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 B9 [00:11:10]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 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:11:10]wFMCommunicate OK [00:11:10]SAM_PROTO_GetFMData done [00:11:10]requested_item fm.sale_refund.total is exist - process it [00:11:10]requested_item fm.buy.total is exist - process it [00:11:10]requested_item shift.sale.total is exist - process it [00:11:10]SAM_PROTO_GetShiftData [00:11:10]wFMCommunicate request_size=4 [00:11:10]MH_SAM_APDU [00:11:10]CAPDU: 80 13 02 00 [00:11:10]Write to MH i2c: E2 08 00 3D 19 80 13 02 00 00 00 00 00 D4 [00:11:10]Write i2c OK [00:11:10]MH_I2C_Read... [00:11:11]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:11]Read from MH i2c: E2 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 FD 00 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 FD 00 3D 19 00 AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 F7 [00:11:11]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 7B 00 00 00 69 04 9B 00 6F 04 04 00 7B 00 00 00 B1 04 03 00 2E BF 41 70 04 03 00 DC B7 25 72 04 03 00 52 07 1C 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 8F FB 06 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 ED 94 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:11:11]wFMCommunicate OK [00:11:11]wFMCommunicate request_size=4 [00:11:11]MH_SAM_APDU [00:11:11]CAPDU: 80 17 00 00 [00:11:11]Write to MH i2c: E2 08 00 3E 19 80 17 00 00 00 00 00 00 D7 [00:11:11]Write i2c OK [00:11:11]MH_I2C_Read... [00:11:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:11]Read from MH i2c: E2 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 FD 00 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 FD 00 3E 19 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 F9 [00:11:11]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:11:11]wFMCommunicate OK [00:11:11]wFMCommunicate request_size=4 [00:11:11]MH_SAM_APDU [00:11:11]CAPDU: 80 17 00 00 [00:11:11]Write to MH i2c: E2 08 00 3F 19 80 17 00 00 00 00 00 00 D8 [00:11:11]Write i2c OK [00:11:11]MH_I2C_Read... [00:11:11]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:11]Read from MH i2c: E2 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 FD 00 [00:11:11]MH_I2C_Read... [00:11:11]Read from MH i2c: E2 FD 00 3F 19 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 8F [00:11:11]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:11:11]wFMCommunicate OK [00:11:11]wFMCommunicate request_size=4 [00:11:11]MH_SAM_APDU [00:11:11]CAPDU: 80 17 00 00 [00:11:11]Write to MH i2c: E2 08 00 40 19 80 17 00 00 00 00 00 00 D9 [00:11:11]Write i2c OK [00:11:11]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 FD 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 FD 00 40 19 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 4B [00:11:12]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:11:12]wFMCommunicate OK [00:11:12]wFMCommunicate request_size=4 [00:11:12]MH_SAM_APDU [00:11:12]CAPDU: 80 17 00 00 [00:11:12]Write to MH i2c: E2 08 00 41 19 80 17 00 00 00 00 00 00 DA [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 CB 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 CB 00 41 19 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 C3 [00:11:12]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:11:12]wFMCommunicate OK [00:11:12]SAM_PROTO_GetShiftData done [00:11:12]requested_item shift.sale.total_cash is exist - process it [00:11:12]requested_item shift.sale_refund.total is exist - process it [00:11:12]requested_item shift.sale_refund.total_cash is exist - process it [00:11:12]requested_item shift.buy.total is exist - process it [00:11:12]requested_item shift.buy.total_cash is exist - process it [00:11:12]produce_requested_data done [00:11:12]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:11:12]process_action_free get_value [00:11:12]json_value_free [00:11:12]json_value_free done [00:11:12]process_json_proto returns [00:11:12]Send response to host [00:11:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.00,"fm.buy.total":0.00,"shift.sale.total":43087.82,"shift.sale.total_cash":24719.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:11:12]free response buf [00:11:12]execute_script done [00:11:12]execute_script returns [00:11:12]free content buf [00:11:12]Sock 9.Close socket [00:11:12]Sock 9.Thread stoped [00:11:12]accept exits with 7 [00:11:12]New connection [00:11:12]New thread 3067252068 created [00:11:12]Thread 3067108708 joined [00:11:12]Waiting for new connection... [00:11:12] Sock 7.Parse request [00:11:12]Sock 7.Check first char [00:11:12]Sock 7.First char is OK [00:11:12]request: POST /json_proto HTTP/1.0 [00:11:12]Method: POST [00:11:12]URL: /json_proto [00:11:12]Method is POST - this is cgi request [00:11:12]url: /json_proto [00:11:12]query_string will be loaded in cgi processing [00:11:12]execute_cgi json_proto POST (null) [00:11:12]execute_cgi path=json_proto method=POST [00:11:12]POST find Content-Length [00:11:12]Host: 172.17.44.4:8080 [00:11:12]Content-Length: 271 [00:11:12]Content-Type: application/json [00:11:12] [00:11:12]POST finish read [00:11:12]Found Content-Length = 271 [00:11:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0416\u0430\u043C\u0431\u043E\u043B\u043E\u0442\u043E\u0432 \u0428. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:12]execute_script... [00:11:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0416\u0430\u043C\u0431\u043E\u043B\u043E\u0442\u043E\u0432 \u0428. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:12]POST & json_proto [00:11:12]process_json_proto [00:11:12]json parsed OK: [00:11:12]protocol is kg_v1.0 [00:11:12]action value=open_shift [00:11:12]process_action open_shift [00:11:12]cmd_open_shift [00:11:12]MH_GetDate [00:11:12]Write to MH i2c: F0 00 00 42 19 4A [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: F0 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: F0 09 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: F0 09 00 42 19 00 A3 A0 46 66 6C E9 28 66 25 [00:11:12]GetLastDocTimeStamp 1715904004 [00:11:12]current date 1715904675 [00:11:12]FM_GetShiftState [00:11:12]SAM_PROTO_GetShiftState [00:11:12]wFMCommunicate request_size=4 [00:11:12]MH_SAM_APDU [00:11:12]CAPDU: 80 13 01 00 [00:11:12]Write to MH i2c: E2 08 00 43 19 80 13 01 00 00 00 00 00 D9 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 0E 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 0E 00 43 19 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E4 [00:11:12]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:12]wFMCommunicate OK [00:11:12]SAM_PROTO_GetShiftState done [00:11:12]FM_GetShiftState done [00:11:12]KKMCreateOpenShiftDocument [00:11:12]Load OK [00:11:12]Malloc new data [00:11:12]MH_GetDate [00:11:12]Write to MH i2c: F0 00 00 44 19 4C [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: F0 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: F0 09 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: F0 09 00 44 19 00 A3 A0 46 66 6C E9 28 66 27 [00:11:12]Malloc new data [00:11:12]KKMCreateOpenShiftDocument OK [00:11:12]KKMSetOpenShiftData OK [00:11:12]ProcessDocumentItem done err = 0, tmpTLVsize=220 [00:11:12]tlvbuf is 01236260 [00:11:12]KKMLoadAndSignOpenShiftData [00:11:12]SAM_PROTO_ProcessDocument [00:11:12]wFMCommunicate request_size=9 [00:11:12]MH_SAM_APDU [00:11:12]CAPDU: 80 15 01 00 04 02 00 DC 00 [00:11:12]Write to MH i2c: E2 0C 00 45 19 80 15 01 00 04 00 02 00 DC 00 00 00 C3 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 45 19 00 90 00 D2 [00:11:12]RAPDU: 90 00 [00:11:12]wFMCommunicate OK [00:11:12]wFMCommunicate request_size=23 [00:11:12]MH_SAM_APDU [00:11:12]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:11:12]Write to MH i2c: E2 1A 00 46 19 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 D4 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 46 19 00 90 00 D3 [00:11:12]RAPDU: 90 00 [00:11:12]wFMCommunicate OK [00:11:12]wFMCommunicate request_size=34 [00:11:12]MH_SAM_APDU [00:11:12]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 96 D0 B0 D0 BC D0 B1 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B2 20 D0 A8 2E 20 [00:11:12]Write to MH i2c: E2 25 00 47 19 80 15 02 00 1D 00 FD 03 19 00 D0 96 D0 B0 D0 BC D0 B1 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B2 20 D0 A8 2E 20 00 00 16 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 47 19 00 90 00 D4 [00:11:12]RAPDU: 90 00 [00:11:12]wFMCommunicate OK [00:11:12]wFMCommunicate request_size=104 [00:11:12]MH_SAM_APDU [00:11:12]CAPDU: 80 15 02 00 63 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A3 D1 87 D0 B0 D1 80 2C 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 20 D0 B0 2F D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B0 D0 BC D1 8B D1 80 D0 BE D0 B2 D0 B0 20 D0 B1 2F D0 BD 2C 20 34 30 2E 35 30 32 34 35 31 2C 37 32 2E 37 38 31 30 34 31 [00:11:12]Write to MH i2c: E2 6B 00 48 19 80 15 02 00 63 00 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A3 D1 87 D0 B0 D1 80 2C 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 20 D0 B0 2F D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B0 D0 BC D1 8B D1 80 D0 BE D0 B2 D0 B0 20 D0 B1 2F D0 BD 2C 20 34 30 2E 35 30 32 34 35 31 2C 37 32 2E 37 38 31 30 34 31 00 00 20 [00:11:12]Write i2c OK [00:11:12]MH_I2C_Read... [00:11:12]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:12]Read from MH i2c: E2 [00:11:12]MH_I2C_Read... [00:11:12]Read from MH i2c: E2 03 00 [00:11:12]MH_I2C_Read... [00:11:13]Read from MH i2c: E2 03 00 48 19 00 90 00 D5 [00:11:13]RAPDU: 90 00 [00:11:13]wFMCommunicate OK [00:11:13]wFMCommunicate request_size=51 [00:11:13]MH_SAM_APDU [00:11:13]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 35 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:11:13]Write to MH i2c: E2 36 00 49 19 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 35 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 8D [00:11:13]Write i2c OK [00:11:13]MH_I2C_Read... [00:11:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:13]Read from MH i2c: E2 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: E2 03 00 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: E2 03 00 49 19 00 90 00 D6 [00:11:13]RAPDU: 90 00 [00:11:13]wFMCommunicate OK [00:11:13]wFMCommunicate request_size=13 [00:11:13]MH_SAM_APDU [00:11:13]CAPDU: 80 15 02 00 08 F4 03 04 00 A3 A0 46 66 [00:11:13]Write to MH i2c: E2 10 00 4A 19 80 15 02 00 08 00 F4 03 04 00 A3 A0 46 66 00 00 DD [00:11:13]Write i2c OK [00:11:13]MH_I2C_Read... [00:11:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:13]Read from MH i2c: E2 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: E2 03 00 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: E2 03 00 4A 19 00 90 00 D7 [00:11:13]RAPDU: 90 00 [00:11:13]wFMCommunicate OK [00:11:13]wFMCommunicate request_size=25 [00:11:13]MH_SAM_APDU [00:11:13]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 [00:11:13]Write to MH i2c: E2 1C 00 4B 19 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 00 00 3C [00:11:13]Write i2c OK [00:11:13]MH_I2C_Read... [00:11:13]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:11:13]Read from MH i2c: E2 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: E2 03 00 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: E2 03 00 4B 19 00 90 00 D8 [00:11:13]RAPDU: 90 00 [00:11:13]wFMCommunicate OK [00:11:13]wFMCommunicate request_size=4 [00:11:13]MH_SAM_APDU [00:11:13]CAPDU: 80 15 03 00 [00:11:13]Write to MH i2c: E2 08 00 4C 19 80 15 03 00 00 00 00 00 E6 [00:11:13]Write i2c OK [00:11:13]MH_I2C_Read... [00:11:13]OFD Sender: No OFD packet to send [00:11:13]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:11:13]Read from MH i2c: E2 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: E2 38 00 [00:11:13]MH_I2C_Read... [00:11:13]Read from MH i2c: E2 38 00 4C 19 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C9 13 00 00 0E 04 04 00 2D 00 00 00 35 04 06 00 EB 48 7C 12 4C C1 90 00 8B [00:11:13]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C9 13 00 00 0E 04 04 00 2D 00 00 00 35 04 06 00 EB 48 7C 12 4C C1 90 00 [00:11:13]wFMCommunicate OK [00:11:13]SAM_PROTO_ProcessDocument answer len = 51 [00:11:13]SAM_PROTO_ProcessDocument done [00:11:13]SetTLVBufToDocument [00:11:13]Processing tag 1209 (04B9) [00:11:13]Malloc new data [00:11:13]Processing tag 1041 (0411) [00:11:13]Processing tag 1040 (0410) [00:11:13]Malloc new data [00:11:13]Processing tag 1038 (040E) [00:11:13]Malloc new data [00:11:13]Processing tag 1077 (0435) [00:11:13]Malloc new data [00:11:13]SetTLVBufToDocument err=0 [00:11:13]KKMLoadAndSignOpenShiftData store KKM data [00:11:13]KKMLoadAndSignOpenShiftData err=0 [00:11:13]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Жамболотов Ш. Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 Место: АЗС № 135 "Партнер Нефть" 17.05.2024 00:11 Смена: 45 РНМ: 0000000000154221 ЗНМ: 0300000237 ФД: 5065 ФМ: 0000000000963259 ФПД: 258696551746753 [00:11:13]StoreToDocumentArchive [00:11:13]shift 45 fd 5065 [00:11:13]Create dir for shift 0045 [00:11:13]save to /storage/0045/doc_00005065 [00:11:13]save last doc name /storage/0045/doc_00005065 to /storage/kkm_last_doc_name [00:11:13]save OK [00:11:13]Clear old archive folders... [00:11:13]Remove dir /storage/0044 [00:11:13]opendir ok [00:11:13]file . [00:11:13]file .. [00:11:13]file doc_00004940 [00:11:13]remove file /storage/0044/doc_00004940 [00:11:13]file doc_00004941 [00:11:13]remove file /storage/0044/doc_00004941 [00:11:13]file doc_00004942 [00:11:13]remove file /storage/0044/doc_00004942 [00:11:13]file doc_00004943 [00:11:13]remove file /storage/0044/doc_00004943 [00:11:13]file doc_00004944 [00:11:13]remove file /storage/0044/doc_00004944 [00:11:13]file doc_00004945 [00:11:13]remove file /storage/0044/doc_00004945 [00:11:13]file doc_00004946 [00:11:13]remove file /storage/0044/doc_00004946 [00:11:13]file doc_00004947 [00:11:13]remove file /storage/0044/doc_00004947 [00:11:13]file doc_00004948 [00:11:13]remove file /storage/0044/doc_00004948 [00:11:13]file doc_00004949 [00:11:13]remove file /storage/0044/doc_00004949 [00:11:13]file doc_00004950 [00:11:13]remove file /storage/0044/doc_00004950 [00:11:13]file doc_00004951 [00:11:13]remove file /storage/0044/doc_00004951 [00:11:13]file doc_00004952 [00:11:13]remove file /storage/0044/doc_00004952 [00:11:13]file doc_00004953 [00:11:13]remove file /storage/0044/doc_00004953 [00:11:13]file doc_00004954 [00:11:13]remove file /storage/0044/doc_00004954 [00:11:13]file doc_00004955 [00:11:13]remove file /storage/0044/doc_00004955 [00:11:13]file doc_00004956 [00:11:13]remove file /storage/0044/doc_00004956 [00:11:13]file doc_00004957 [00:11:13]remove file /storage/0044/doc_00004957 [00:11:13]file doc_00004958 [00:11:13]remove file /storage/0044/doc_00004958 [00:11:13]file doc_00004959 [00:11:13]remove file /storage/0044/doc_00004959 [00:11:13]file doc_00004960 [00:11:13]remove file /storage/0044/doc_00004960 [00:11:13]file doc_00004961 [00:11:13]remove file /storage/0044/doc_00004961 [00:11:13]file doc_00004962 [00:11:13]remove file /storage/0044/doc_00004962 [00:11:13]file doc_00004963 [00:11:13]remove file /storage/0044/doc_00004963 [00:11:13]file doc_00004964 [00:11:13]remove file /storage/0044/doc_00004964 [00:11:13]file doc_00004965 [00:11:13]remove file /storage/0044/doc_00004965 [00:11:13]file doc_00004966 [00:11:13]remove file /storage/0044/doc_00004966 [00:11:13]file doc_00004967 [00:11:13]remove file /storage/0044/doc_00004967 [00:11:13]file doc_00004968 [00:11:13]remove file /storage/0044/doc_00004968 [00:11:13]file doc_00004969 [00:11:13]remove file /storage/0044/doc_00004969 [00:11:13]file doc_00004970 [00:11:13]remove file /storage/0044/doc_00004970 [00:11:13]file doc_00004971 [00:11:13]remove file /storage/0044/doc_00004971 [00:11:13]file doc_00004972 [00:11:13]remove file /storage/0044/doc_00004972 [00:11:13]file doc_00004973 [00:11:13]remove file /storage/0044/doc_00004973 [00:11:13]file doc_00004974 [00:11:13]remove file /storage/0044/doc_00004974 [00:11:13]file doc_00004975 [00:11:13]remove file /storage/0044/doc_00004975 [00:11:13]file doc_00004976 [00:11:13]remove file /storage/0044/doc_00004976 [00:11:13]file doc_00004977 [00:11:13]remove file /storage/0044/doc_00004977 [00:11:13]file doc_00004978 [00:11:13]remove file /storage/0044/doc_00004978 [00:11:13]file doc_00004979 [00:11:13]remove file /storage/0044/doc_00004979 [00:11:13]file doc_00004980 [00:11:13]remove file /storage/0044/doc_00004980 [00:11:13]file doc_00004981 [00:11:13]remove file /storage/0044/doc_00004981 [00:11:13]file doc_00004982 [00:11:13]remove file /storage/0044/doc_00004982 [00:11:13]file doc_00004983 [00:11:13]remove file /storage/0044/doc_00004983 [00:11:13]file doc_00004984 [00:11:13]remove file /storage/0044/doc_00004984 [00:11:13]file doc_00004985 [00:11:13]remove file /storage/0044/doc_00004985 [00:11:13]file doc_00004986 [00:11:13]remove file /storage/0044/doc_00004986 [00:11:13]file doc_00004987 [00:11:13]remove file /storage/0044/doc_00004987 [00:11:13]file doc_00004988 [00:11:13]remove file /storage/0044/doc_00004988 [00:11:13]file doc_00004989 [00:11:13]remove file /storage/0044/doc_00004989 [00:11:13]file doc_00004990 [00:11:13]remove file /storage/0044/doc_00004990 [00:11:13]file doc_00004991 [00:11:13]remove file /storage/0044/doc_00004991 [00:11:13]file doc_00004992 [00:11:13]remove file /storage/0044/doc_00004992 [00:11:13]file doc_00004993 [00:11:13]remove file /storage/0044/doc_00004993 [00:11:13]file doc_00004994 [00:11:13]remove file /storage/0044/doc_00004994 [00:11:13]file doc_00004995 [00:11:13]remove file /storage/0044/doc_00004995 [00:11:13]file doc_00004996 [00:11:13]remove file /storage/0044/doc_00004996 [00:11:13]file doc_00004997 [00:11:13]remove file /storage/0044/doc_00004997 [00:11:13]file doc_00004998 [00:11:13]remove file /storage/0044/doc_00004998 [00:11:13]file doc_00004999 [00:11:13]remove file /storage/0044/doc_00004999 [00:11:13]file doc_00005000 [00:11:13]remove file /storage/0044/doc_00005000 [00:11:13]file doc_00005001 [00:11:13]remove file /storage/0044/doc_00005001 [00:11:13]file doc_00005002 [00:11:13]remove file /storage/0044/doc_00005002 [00:11:13]file doc_00005003 [00:11:13]remove file /storage/0044/doc_00005003 [00:11:13]file doc_00005004 [00:11:13]remove file /storage/0044/doc_00005004 [00:11:13]file doc_00005005 [00:11:13]remove file /storage/0044/doc_00005005 [00:11:13]file doc_00005006 [00:11:13]remove file /storage/0044/doc_00005006 [00:11:13]file doc_00005007 [00:11:13]remove file /storage/0044/doc_00005007 [00:11:13]file doc_00005008 [00:11:13]remove file /storage/0044/doc_00005008 [00:11:13]file doc_00005009 [00:11:13]remove file /storage/0044/doc_00005009 [00:11:13]file doc_00005010 [00:11:13]remove file /storage/0044/doc_00005010 [00:11:13]file doc_00005011 [00:11:13]remove file /storage/0044/doc_00005011 [00:11:13]file doc_00005012 [00:11:13]remove file /storage/0044/doc_00005012 [00:11:14]file doc_00005013 [00:11:14]remove file /storage/0044/doc_00005013 [00:11:14]file doc_00005014 [00:11:14]remove file /storage/0044/doc_00005014 [00:11:14]file doc_00005015 [00:11:14]remove file /storage/0044/doc_00005015 [00:11:14]file doc_00005016 [00:11:14]remove file /storage/0044/doc_00005016 [00:11:14]file doc_00005017 [00:11:14]remove file /storage/0044/doc_00005017 [00:11:14]file doc_00005018 [00:11:14]remove file /storage/0044/doc_00005018 [00:11:14]file doc_00005019 [00:11:14]remove file /storage/0044/doc_00005019 [00:11:14]file doc_00005020 [00:11:14]remove file /storage/0044/doc_00005020 [00:11:14]file doc_00005021 [00:11:14]remove file /storage/0044/doc_00005021 [00:11:14]file doc_00005022 [00:11:14]remove file /storage/0044/doc_00005022 [00:11:14]file doc_00005023 [00:11:14]remove file /storage/0044/doc_00005023 [00:11:14]file doc_00005024 [00:11:14]remove file /storage/0044/doc_00005024 [00:11:14]file doc_00005025 [00:11:14]remove file /storage/0044/doc_00005025 [00:11:14]file doc_00005026 [00:11:14]remove file /storage/0044/doc_00005026 [00:11:14]file doc_00005027 [00:11:14]remove file /storage/0044/doc_00005027 [00:11:14]file doc_00005028 [00:11:14]remove file /storage/0044/doc_00005028 [00:11:14]file doc_00005029 [00:11:14]remove file /storage/0044/doc_00005029 [00:11:14]file doc_00005030 [00:11:14]remove file /storage/0044/doc_00005030 [00:11:14]file doc_00005031 [00:11:14]remove file /storage/0044/doc_00005031 [00:11:14]file doc_00005032 [00:11:14]remove file /storage/0044/doc_00005032 [00:11:14]file doc_00005033 [00:11:14]remove file /storage/0044/doc_00005033 [00:11:14]file doc_00005034 [00:11:14]remove file /storage/0044/doc_00005034 [00:11:14]file doc_00005035 [00:11:14]remove file /storage/0044/doc_00005035 [00:11:14]file doc_00005036 [00:11:14]remove file /storage/0044/doc_00005036 [00:11:14]file doc_00005037 [00:11:14]remove file /storage/0044/doc_00005037 [00:11:14]file doc_00005038 [00:11:14]remove file /storage/0044/doc_00005038 [00:11:14]file doc_00005039 [00:11:14]remove file /storage/0044/doc_00005039 [00:11:14]file doc_00005040 [00:11:14]remove file /storage/0044/doc_00005040 [00:11:14]file doc_00005041 [00:11:14]remove file /storage/0044/doc_00005041 [00:11:14]file doc_00005042 [00:11:14]remove file /storage/0044/doc_00005042 [00:11:14]file doc_00005043 [00:11:14]remove file /storage/0044/doc_00005043 [00:11:14]file doc_00005044 [00:11:14]remove file /storage/0044/doc_00005044 [00:11:14]file doc_00005045 [00:11:14]remove file /storage/0044/doc_00005045 [00:11:14]file doc_00005046 [00:11:14]remove file /storage/0044/doc_00005046 [00:11:14]file doc_00005047 [00:11:14]remove file /storage/0044/doc_00005047 [00:11:14]file doc_00005048 [00:11:14]remove file /storage/0044/doc_00005048 [00:11:14]file doc_00005049 [00:11:14]remove file /storage/0044/doc_00005049 [00:11:14]file doc_00005050 [00:11:14]remove file /storage/0044/doc_00005050 [00:11:14]file doc_00005051 [00:11:14]remove file /storage/0044/doc_00005051 [00:11:14]file doc_00005052 [00:11:14]remove file /storage/0044/doc_00005052 [00:11:14]file doc_00005053 [00:11:14]remove file /storage/0044/doc_00005053 [00:11:14]file doc_00005054 [00:11:14]remove file /storage/0044/doc_00005054 [00:11:14]file doc_00005055 [00:11:14]remove file /storage/0044/doc_00005055 [00:11:14]file doc_00005056 [00:11:14]remove file /storage/0044/doc_00005056 [00:11:14]file doc_00005057 [00:11:14]remove file /storage/0044/doc_00005057 [00:11:14]file doc_00005058 [00:11:14]remove file /storage/0044/doc_00005058 [00:11:14]file doc_00005059 [00:11:14]remove file /storage/0044/doc_00005059 [00:11:14]file doc_00005060 [00:11:14]remove file /storage/0044/doc_00005060 [00:11:14]file doc_00005061 [00:11:14]remove file /storage/0044/doc_00005061 [00:11:14]file doc_00005062 [00:11:14]remove file /storage/0044/doc_00005062 [00:11:14]file doc_00005063 [00:11:14]remove file /storage/0044/doc_00005063 [00:11:14]file doc_00005064 [00:11:14]remove file /storage/0044/doc_00005064 [00:11:14]remove dir /storage/0044 [00:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=271 [00:11:14]tlvbuf is 0123B1F0 [00:11:14]SAM_PROTO_ClearQueue [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 09 00 00 [00:11:14]Write to MH i2c: E2 08 00 4D 19 80 09 00 00 00 00 00 00 D8 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 03 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 03 00 4D 19 00 90 00 DA [00:11:14]RAPDU: 90 00 [00:11:14]wFMCommunicate OK [00:11:14]SAM_PROTO_ClearQueue done [00:11:14]KKMCreateOFDPacket [00:11:14]OFDProtocolAddRootSTLVToBuf [00:11:14]FM_MakeSignedData [00:11:14]FM_MakeSignedData [00:11:14]SAM_PROTO_SignData [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 0D 01 02 [00:11:14]Write to MH i2c: E2 08 00 4E 19 80 0D 01 02 00 00 00 00 E0 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 03 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 03 00 4E 19 00 90 00 DB [00:11:14]RAPDU: 90 00 [00:11:14]wFMCommunicate OK [00:11:14]wFMCommunicate request_size=255 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 0D 02 02 FA 02 00 0F 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 19 00 D0 96 D0 B0 D0 BC D0 B1 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B2 20 D0 A8 2E 20 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A3 D1 87 D0 B0 D1 80 2C 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 20 D0 B0 2F D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B0 D0 BC D1 8B D1 80 D0 BE D0 B2 D0 B0 20 D0 B1 2F D0 BD 2C 20 34 30 2E 35 30 32 34 35 31 2C 37 32 2E 37 38 31 30 34 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 35 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 A3 A0 46 66 0E 04 04 00 2D 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C9 13 00 00 11 04 10 00 30 [00:11:14]Write to MH i2c: E2 02 01 4F 19 80 0D 02 02 FA 00 02 00 0F 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 19 00 D0 96 D0 B0 D0 BC D0 B1 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B2 20 D0 A8 2E 20 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A3 D1 87 D0 B0 D1 80 2C 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 20 D0 B0 2F D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B0 D0 BC D1 8B D1 80 D0 BE D0 B2 D0 B0 20 D0 B1 2F D0 BD 2C 20 34 30 2E 35 30 32 34 35 31 2C 37 32 2E 37 38 31 30 34 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 35 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 A3 A0 46 66 0E 04 04 00 2D 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C9 13 00 00 11 04 10 00 30 00 00 E3 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 03 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 03 00 4F 19 00 90 00 DC [00:11:14]RAPDU: 90 00 [00:11:14]wFMCommunicate OK [00:11:14]wFMCommunicate request_size=30 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 0D 02 02 19 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 35 04 06 00 EB 48 7C 12 4C C1 [00:11:14]Write to MH i2c: E2 21 00 50 19 80 0D 02 02 19 00 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 35 04 06 00 EB 48 7C 12 4C C1 00 00 14 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 [00:11:14]MH_I2C_Read... [00:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:14]Read from MH i2c: E2 03 00 [00:11:14]MH_I2C_Read... [00:11:14]Read from MH i2c: E2 03 00 50 19 00 90 00 DD [00:11:14]RAPDU: 90 00 [00:11:14]wFMCommunicate OK [00:11:14]wFMCommunicate request_size=4 [00:11:14]MH_SAM_APDU [00:11:14]CAPDU: 80 0D 03 02 [00:11:14]Write to MH i2c: E2 08 00 51 19 80 0D 03 02 00 00 00 00 E5 [00:11:14]Write i2c OK [00:11:14]MH_I2C_Read... [00:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:15]Read from MH i2c: E2 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 0B 00 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 0B 00 51 19 00 6D 4E EC 93 18 5B F8 7E 90 00 09 [00:11:15]RAPDU: 6D 4E EC 93 18 5B F8 7E 90 00 [00:11:15]wFMCommunicate OK [00:11:15]SAM_PROTO_SignData done [00:11:15]FM_MakeSignedData done [00:11:15]CreateOFDProtocolMessage [00:11:15]wFMCommunicate request_size=4 [00:11:15]MH_SAM_APDU [00:11:15]CAPDU: 80 11 00 00 [00:11:15]Write to MH i2c: E2 08 00 52 19 80 11 00 00 00 00 00 00 E5 [00:11:15]Write i2c OK [00:11:15]MH_I2C_Read... [00:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:15]Read from MH i2c: E2 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 17 00 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: E2 17 00 52 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 3A [00:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [00:11:15]wFMCommunicate OK [00:11:15]CreateOFDProtocolMessage done [00:11:15]OFDSenderStorePacket 5065 [00:11:15]StoreOFDPacket docnum=5065 [00:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 23 01 00 00 84 ED 1B 01 F8 07 5A 02 01 00 02 00 0F 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 19 00 D0 96 D0 B0 D0 BC D0 B1 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B2 20 D0 A8 2E 20 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A3 D1 87 D0 B0 D1 80 2C 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 20 D0 B0 2F D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B0 D0 BC D1 8B D1 80 D0 BE D0 B2 D0 B0 20 D0 B1 2F D0 BD 2C 20 34 30 2E 35 30 32 34 35 31 2C 37 32 2E 37 38 31 30 34 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 35 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 A3 A0 46 66 0E 04 04 00 2D 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C9 13 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 35 04 06 00 EB 48 7C 12 4C C1 6D 4E EC 93 18 5B F8 7E [00:11:15]CheckFolder [00:11:15]dirname=/storage/ofd_packets [00:11:15]CheckFolder done [00:11:15]ProducePacketName [00:11:15]name=ofd_packets/00005065 [00:11:15]NVStorageSaveData ofd_packets/00005065 [00:11:15]File name is /storage/ofd_packets/00005065 [00:11:15]Write 321 bytes [00:11:15]NVStorageSaveData done [00:11:15]OFDSenderStorePacket done [00:11:15]KKMCreateOFDPacket done [00:11:15]NVStorageSaveData kkm_last_timestamp [00:11:15]File name is /storage/kkm_last_timestamp [00:11:15]Write 4 bytes [00:11:15]NVStorageSaveData done [00:11:15]ExternCall_PrintAddStr [00:11:15]wPrintStart [00:11:15]Write to MH i2c: 01 00 00 53 19 6C [00:11:15]Write i2c OK [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: 01 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: 01 07 00 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: 01 07 00 53 19 00 00 00 00 00 FF 0F 81 [00:11:15]RasterBufferAndPrint [00:11:15]line Отчет об открытии смены [00:11:15]line ФФД: 1.0 [00:11:15]line ИНН: 02508201610067 [00:11:15]line Кассир: Жамболотов Ш. [00:11:15]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [00:11:15]line Место: АЗС № 135 "Партнер Нефть" [00:11:15]line 17.05.2024 00:11 [00:11:15]line Смена: 45 [00:11:15]line РНМ: 0000000000154221 [00:11:15]line ЗНМ: 0300000237 [00:11:15]line ФД: 5065 [00:11:15]line ФМ: 0000000000963259 [00:11:15]line ФПД: 258696551746753 [00:11:15]written 0, free lines is 4095 [00:11:15]OFD Sender: Processing packet 5065 [packets to send 4, broken 3] [00:11:15]ProducePacketName [00:11:15]name=ofd_packets/00005065 [00:11:15]OFD Sender: To server: pG, [00:11:15]CommunicateWithHost lk.salyk.kg:30040 [00:11:15]ConnectInit lk.salyk.kg [00:11:15]Connected sock=10 [00:11:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 23 01 00 00 84 ED 1B 01 F8 07 5A 02 01 00 02 00 0F 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 19 00 D0 96 D0 B0 D0 BC D0 B1 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B2 20 D0 A8 2E 20 F1 03 5F 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A3 D1 87 D0 B0 D1 80 2C 20 D0 A2 D0 BE D0 BB D0 BE D0 B9 D0 BA D0 BE D0 BD 20 D0 B0 2F D0 B0 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B0 D0 BC D1 8B D1 80 D0 BE D0 B2 D0 B0 20 D0 B1 2F D0 BD 2C 20 34 30 2E 35 30 32 34 35 31 2C 37 32 2E 37 38 31 30 34 31 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 33 35 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 A3 A0 46 66 0E 04 04 00 2D 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C9 13 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 35 04 06 00 EB 48 7C 12 4C C1 6D 4E EC 93 18 5B F8 7E [00:11:15]Write to MH i2c: 01 00 00 65 19 7E [00:11:15]Write i2c OK [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: 01 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: 01 07 00 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: 01 07 00 65 19 00 00 00 00 00 E3 0E 76 [00:11:15]RasterBufferAndPrint [00:11:15]line [00:11:15]line [00:11:15]line [00:11:15]line [00:11:15]line [00:11:15]written 0, free lines is 3825 [00:11:15]MH_Cut [00:11:15]Write to MH i2c: D1 01 00 6C 19 01 57 [00:11:15]Write i2c OK [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: D1 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: D1 01 00 [00:11:15]MH_I2C_Read... [00:11:15]Read from MH i2c: D1 01 00 6C 19 00 56 [00:11:15]Write to MH i2c: 01 00 00 6D 19 86 [00:11:15]Write i2c OK [00:11:15]MH_I2C_Read... [00:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 14 2F 47 00 1D 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 C9 13 00 00 F4 03 04 00 66 4C 46 66 B6 04 01 00 00 6C DF C7 99 FC 60 5B ED [00:11:15]CommunicateWithHost err = 0 [00:11:15]CheckOFDResponse [00:11:15]1017 (14) - 77093643461234 [00:11:15]1041 (16) - 0000000000963259 [00:11:15]1040 (4) - 5065 [00:11:15]1012 (4) - 16.05.2024 18:11 [00:11:15]1206 (1) - 0 [00:11:15]OFD Sender: Remove packet 5065 [00:11:15]ProducePacketName [00:11:15]name=ofd_packets/00005065 [00:11:15]NVStorageDeleteData [00:11:16]*** Cut start [00:11:16]*** Partial cut [00:11:16]*** CUTSNS_PIN = 1 [00:11:16]*** CUTSNS_PIN = 0 [00:11:16]*** Brake cut motor [00:11:16]OFD Sender: No OFD packet to send [00:11:16]Read from MH i2c: 01 [00:11:16]MH_I2C_Read... [00:11:16]*** Stop cut motor [00:11:16]*** Cut end [00:11:16]Read from MH i2c: 01 07 00 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: 01 07 00 6D 19 00 00 00 00 00 FF 0F 9B [00:11:16]process_action open_shift done [00:11:16]requested_data is exist [00:11:16]produce_requested_data [00:11:16]requested_item fd.num is exist - process it [00:11:16]SAM_PROTO_GetFieldsCounters [00:11:16]wFMCommunicate request_size=4 [00:11:16]MH_SAM_APDU [00:11:16]CAPDU: 80 13 00 00 [00:11:16]Write to MH i2c: E2 08 00 6E 19 80 13 00 00 00 00 00 00 03 [00:11:16]Write i2c OK [00:11:16]MH_I2C_Read... [00:11:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:16]Read from MH i2c: E2 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 62 00 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 62 00 6E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C9 13 00 00 0E 04 04 00 2D 00 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 25 [00:11:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C9 13 00 00 0E 04 04 00 2D 00 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:11:16]wFMCommunicate OK [00:11:16]SAM_PROTO_GetFieldsCounters done [00:11:16]requested_item shift.num is exist - process it [00:11:16]requested_item shift.opened is exist - process it [00:11:16]req_shift_opened [00:11:16]FM_GetShiftState [00:11:16]SAM_PROTO_GetShiftState [00:11:16]wFMCommunicate request_size=4 [00:11:16]MH_SAM_APDU [00:11:16]CAPDU: 80 13 01 00 [00:11:16]Write to MH i2c: E2 08 00 6F 19 80 13 01 00 00 00 00 00 05 [00:11:16]Write i2c OK [00:11:16]MH_I2C_Read... [00:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:16]Read from MH i2c: E2 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 0E 00 [00:11:16]MH_I2C_Read... [00:11:16]Read from MH i2c: E2 0E 00 6F 19 00 09 00 01 A3 A0 46 66 00 00 00 00 90 00 00 [00:11:16]RAPDU: 09 00 01 A3 A0 46 66 00 00 00 00 90 00 [00:11:16]wFMCommunicate OK [00:11:16]SAM_PROTO_GetShiftState done [00:11:16]FM_GetShiftState done [00:11:16]req_shift_opened done [00:11:16]requested_item shift.open_date is exist - process it [00:11:16]req_shift_open_date [00:11:16]req_shift_open_date done [00:11:16]produce_requested_data done [00:11:16]produce_requested_data return {"fd.num":5065,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675} [00:11:16]process_action_free open_shift [00:11:16]json_value_free [00:11:16]json_value_free done [00:11:16]process_json_proto returns [00:11:16]Send response to host [00:11:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":5065,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675}}} [00:11:16]free response buf [00:11:16]execute_script done [00:11:16]execute_script returns [00:11:16]free content buf [00:11:16]Sock 7.Close socket [00:11:16]Sock 7.Thread stoped [00:11:16]accept exits with 9 [00:11:16]New connection [00:11:16]New thread 3067108708 created [00:11:16]Thread 3067252068 joined [00:11:16]Waiting for new connection... [00:11:16] Sock 9.Parse request [00:11:16]Sock 9.Check first char [00:11:16]Sock 9.First char is OK [00:11:16]request: POST /json_proto HTTP/1.0 [00:11:16]Method: POST [00:11:16]URL: /json_proto [00:11:16]Method is POST - this is cgi request [00:11:16]url: /json_proto [00:11:16]query_string will be loaded in cgi processing [00:11:16]execute_cgi json_proto POST (null) [00:11:16]execute_cgi path=json_proto method=POST [00:11:16]POST find Content-Length [00:11:16]Host: 172.17.44.4:8080 [00:11:16]Content-Length: 331 [00:11:16]Content-Type: application/json [00:11:16] [00:11:16]POST finish read [00:11:16]Found Content-Length = 331 [00:11:16]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:11:16]execute_script... [00:11:16]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:11:16]POST & json_proto [00:11:16]process_json_proto [00:11:16]json parsed OK: [00:11:16]protocol is kg_v1.0 [00:11:16]action value=get_value [00:11:16]process_action get_value [00:11:16]cmd_get_value [00:11:16]process_action get_value done [00:11:16]requested_data is exist [00:11:16]produce_requested_data [00:11:16]requested_item fm.sale.total is exist - process it [00:11:16]SAM_PROTO_GetFMData [00:11:16]wFMCommunicate request_size=4 [00:11:16]MH_SAM_APDU [00:11:16]CAPDU: 80 13 03 00 [00:11:16]Write to MH i2c: E2 08 00 70 19 80 13 03 00 00 00 00 00 08 [00:11:16]Write i2c OK [00:11:16]MH_I2C_Read... [00:11:17]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:17]Read from MH i2c: E2 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 70 19 00 BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 E4 [00:11:17]RAPDU: BF 04 85 04 BB 04 6E 04 04 00 6F 13 00 00 69 04 A0 00 6F 04 04 00 3C 13 00 00 B1 04 04 00 96 CF 90 0F 70 04 04 00 1C 71 0C 07 72 04 04 00 7A 5E 84 08 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 DF 2F A7 01 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 41 23 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 33 00 00 00 B1 04 03 00 FC 97 C5 70 04 03 00 FC 97 C5 72 04 00 00 00 04 7B 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 69 FC 14 EF 03 09 00 F6 03 01 00 00 90 00 [00:11:17]wFMCommunicate OK [00:11:17]wFMCommunicate request_size=4 [00:11:17]MH_SAM_APDU [00:11:17]CAPDU: 80 17 00 00 [00:11:17]Write to MH i2c: E2 08 00 71 19 80 17 00 00 00 00 00 00 0A [00:11:17]Write i2c OK [00:11:17]MH_I2C_Read... [00:11:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:17]Read from MH i2c: E2 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 [00:11:17]MH_I2C_Read... [00:11:17]Read from MH i2c: E2 FD 00 71 19 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A7 [00:11:17]RAPDU: F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 AD BF 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:11:17]wFMCommunicate OK [00:11:17]wFMCommunicate request_size=4 [00:11:17]MH_SAM_APDU [00:11:17]CAPDU: 80 17 00 00 [00:11:17]Write to MH i2c: E2 08 00 72 19 80 17 00 00 00 00 00 00 0B [00:11:17]Write i2c OK [00:11:17]MH_I2C_Read... [00:11:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:18]Read from MH i2c: E2 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 FD 00 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 FD 00 72 19 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 AF [00:11:18]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 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 90 00 [00:11:18]wFMCommunicate OK [00:11:18]wFMCommunicate request_size=4 [00:11:18]MH_SAM_APDU [00:11:18]CAPDU: 80 17 00 00 [00:11:18]Write to MH i2c: E2 08 00 73 19 80 17 00 00 00 00 00 00 0C [00:11:18]Write i2c OK [00:11:18]MH_I2C_Read... [00:11:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:18]Read from MH i2c: E2 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 FD 00 [00:11:18]MH_I2C_Read... [00:11:18]Read from MH i2c: E2 FD 00 73 19 00 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 86 [00:11:18]RAPDU: 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:11:18]wFMCommunicate OK [00:11:18]wFMCommunicate request_size=4 [00:11:18]MH_SAM_APDU [00:11:18]CAPDU: 80 17 00 00 [00:11:18]Write to MH i2c: E2 08 00 74 19 80 17 00 00 00 00 00 00 0D [00:11:18]Write i2c OK [00:11:18]MH_I2C_Read... [00:11:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 217! [00:11:19]Read from MH i2c: E2 [00:11:19]MH_I2C_Read... [00:11:19]Read from MH i2c: E2 DC 00 [00:11:19]MH_I2C_Read... [00:11:19]Read from MH i2c: E2 DC 00 74 19 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 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 F1 [00:11:19]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 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:11:19]wFMCommunicate OK [00:11:19]SAM_PROTO_GetFMData done [00:11:19]requested_item fm.sale_refund.total is exist - process it [00:11:19]requested_item fm.buy.total is exist - process it [00:11:19]requested_item shift.sale.total is exist - process it [00:11:19]SAM_PROTO_GetShiftData [00:11:19]wFMCommunicate request_size=4 [00:11:19]MH_SAM_APDU [00:11:19]CAPDU: 80 13 02 00 [00:11:19]Write to MH i2c: E2 08 00 75 19 80 13 02 00 00 00 00 00 0C [00:11:19]Write i2c OK [00:11:19]MH_I2C_Read... [00:11:19]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:19]Read from MH i2c: E2 [00:11:19]MH_I2C_Read... [00:11:19]Read from MH i2c: E2 FD 00 [00:11:19]MH_I2C_Read... [00:11:19]Read from MH i2c: E2 FD 00 75 19 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 7F [00:11:19]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:11:19]wFMCommunicate OK [00:11:19]wFMCommunicate request_size=4 [00:11:19]MH_SAM_APDU [00:11:19]CAPDU: 80 17 00 00 [00:11:19]Write to MH i2c: E2 08 00 76 19 80 17 00 00 00 00 00 00 0F [00:11:19]Write i2c OK [00:11:19]MH_I2C_Read... [00:11:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:20]Read from MH i2c: E2 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 76 19 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 17 [00:11:20]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:11:20]wFMCommunicate OK [00:11:20]wFMCommunicate request_size=4 [00:11:20]MH_SAM_APDU [00:11:20]CAPDU: 80 17 00 00 [00:11:20]Write to MH i2c: E2 08 00 77 19 80 17 00 00 00 00 00 00 10 [00:11:20]Write i2c OK [00:11:20]MH_I2C_Read... [00:11:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:20]Read from MH i2c: E2 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 [00:11:20]MH_I2C_Read... [00:11:20]Read from MH i2c: E2 FD 00 77 19 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 E2 [00:11:20]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:11:20]wFMCommunicate OK [00:11:20]wFMCommunicate request_size=4 [00:11:20]MH_SAM_APDU [00:11:20]CAPDU: 80 17 00 00 [00:11:20]Write to MH i2c: E2 08 00 78 19 80 17 00 00 00 00 00 00 11 [00:11:20]Write i2c OK [00:11:20]MH_I2C_Read... [00:11:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:21]Read from MH i2c: E2 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 FD 00 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 FD 00 78 19 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 83 [00:11:21]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:11:21]wFMCommunicate OK [00:11:21]wFMCommunicate request_size=4 [00:11:21]MH_SAM_APDU [00:11:21]CAPDU: 80 17 00 00 [00:11:21]Write to MH i2c: E2 08 00 79 19 80 17 00 00 00 00 00 00 12 [00:11:21]Write i2c OK [00:11:21]MH_I2C_Read... [00:11:21]OFD Sender: No OFD packet to send [00:11:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:11:21]Read from MH i2c: E2 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 BD 00 [00:11:21]MH_I2C_Read... [00:11:21]Read from MH i2c: E2 BD 00 79 19 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 F8 [00:11:21]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:11:21]wFMCommunicate OK [00:11:21]SAM_PROTO_GetShiftData done [00:11:21]requested_item shift.sale.total_cash is exist - process it [00:11:21]requested_item shift.sale_refund.total is exist - process it [00:11:21]requested_item shift.sale_refund.total_cash is exist - process it [00:11:21]requested_item shift.buy.total is exist - process it [00:11:21]requested_item shift.buy.total_cash is exist - process it [00:11:21]produce_requested_data done [00:11:21]produce_requested_data return {"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.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:11:21]process_action_free get_value [00:11:21]json_value_free [00:11:21]json_value_free done [00:11:21]process_json_proto returns [00:11:21]Send response to host [00:11:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":2611485.66,"fm.sale_refund.total":129495.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:11:21]free response buf [00:11:21]execute_script done [00:11:21]execute_script returns [00:11:21]free content buf [00:11:21]Sock 9.Close socket [00:11:21]Sock 9.Thread stoped [00:11:26]OFD Sender: No OFD packet to send [00:11:31]OFD Sender: No OFD packet to send [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:51]OFD Sender: No OFD packet to send [00:12:56]OFD Sender: No OFD packet to send [00:13:01]OFD Sender: No OFD packet to send [00:13:06]OFD Sender: No OFD packet to send [00:13:11]OFD Sender: No OFD packet to send [00:13:16]OFD Sender: No OFD packet to send [00:13:21]OFD Sender: No OFD packet to send [00:13:26]OFD Sender: No OFD packet to send [00:13:31]OFD Sender: No OFD packet to send [00:13:36]OFD Sender: No OFD packet to send [00:13:41]OFD Sender: No OFD packet to send [00:13:46]OFD Sender: No OFD packet to send [00:13:51]OFD Sender: No OFD packet to send [00:13:56]OFD Sender: No OFD packet to send [00:14:01]OFD Sender: No OFD packet to send [00:14:06]OFD Sender: No OFD packet to send [00:14:11]OFD Sender: No OFD packet to send [00:14:16]OFD Sender: No OFD packet to send [00:14:21]OFD Sender: No OFD packet to send [00:14:26]OFD Sender: No OFD packet to send [00:14:31]OFD Sender: No OFD packet to send [00:14:36]OFD Sender: No OFD packet to send [00:14:41]OFD Sender: No OFD packet to send [00:14:46]OFD Sender: No OFD packet to send [00:14:51]OFD Sender: No OFD packet to send [00:14:56]OFD Sender: No OFD packet to send [00:15:01]OFD Sender: No OFD packet to send [00:15:06]OFD Sender: No OFD packet to send [00:15:11]OFD Sender: No OFD packet to send [00:15:16]OFD Sender: No OFD packet to send [00:15:21]OFD Sender: No OFD packet to send [00:15:26]OFD Sender: No OFD packet to send [00:15:31]OFD Sender: No OFD packet to send [00:15:36]OFD Sender: No OFD packet to send [00:15:41]OFD Sender: No OFD packet to send [00:15:46]OFD Sender: No OFD packet to send [00:15:51]OFD Sender: No OFD packet to send [00:15:56]OFD Sender: No OFD packet to send [00:16:01]OFD Sender: No OFD packet to send [00:16:06]OFD Sender: No OFD packet to send [00:16:11]OFD Sender: No OFD packet to send [00:16:16]OFD Sender: No OFD packet to send [00:16:21]OFD Sender: No OFD packet to send [00:16:26]OFD Sender: No OFD packet to send [00:16:31]OFD Sender: No OFD packet to send [00:16:36]OFD Sender: No OFD packet to send [00:16:41]OFD Sender: No OFD packet to send [00:16:46]OFD Sender: No OFD packet to send [00:16:51]OFD Sender: No OFD packet to send [00:16:56]OFD Sender: No OFD packet to send [00:17:01]OFD Sender: No OFD packet to send [00:17:06]OFD Sender: No OFD packet to send [00:17:11]OFD Sender: No OFD packet to send [00:17:16]OFD Sender: No OFD packet to send [00:17:21]OFD Sender: No OFD packet to send [00:17:26]OFD Sender: No OFD packet to send [00:17:31]OFD Sender: No OFD packet to send [00:17:36]OFD Sender: No OFD packet to send [00:17:41]OFD Sender: No OFD packet to send [00:17:46]OFD Sender: No OFD packet to send [00:17:51]OFD Sender: No OFD packet to send [00:17:56]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:51]OFD Sender: No OFD packet to send [00:21:56]OFD Sender: No OFD packet to send [00:22:01]OFD Sender: No OFD packet to send [00:22:06]OFD Sender: No OFD packet to send [00:22:11]OFD Sender: No OFD packet to send [00:22:16]OFD Sender: No OFD packet to send [00:22:21]OFD Sender: No OFD packet to send [00:22:26]OFD Sender: No OFD packet to send [00:22:31]OFD Sender: No OFD packet to send [00:22:36]OFD Sender: No OFD packet to send [00:22:41]OFD Sender: No OFD packet to send [00:22:46]OFD Sender: No OFD packet to send [00:22:51]OFD Sender: No OFD packet to send [00:22:56]OFD Sender: No OFD packet to send [00:23:01]OFD Sender: No OFD packet to send [00:23:06]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:37]OFD Sender: No OFD packet to send [00:25:42]OFD Sender: No OFD packet to send [00:25:47]OFD Sender: No OFD packet to send [00:25:52]OFD Sender: No OFD packet to send [00:25:57]OFD Sender: No OFD packet to send [00:26:02]OFD Sender: No OFD packet to send [00:26:07]OFD Sender: No OFD packet to send [00:26:12]OFD Sender: No OFD packet to send [00:26:17]OFD Sender: No OFD packet to send [00:26:22]OFD Sender: No OFD packet to send [00:26:27]OFD Sender: No OFD packet to send [00:26:32]OFD Sender: No OFD packet to send [00:26:37]OFD Sender: No OFD packet to send [00:26:42]OFD Sender: No OFD packet to send [00:26:47]OFD Sender: No OFD packet to send [00:26:52]OFD Sender: No OFD packet to send [00:26:57]OFD Sender: No OFD packet to send [00:27:02]OFD Sender: No OFD packet to send [00:27:07]OFD Sender: No OFD packet to send [00:27:12]OFD Sender: No OFD packet to send [00:27:17]OFD Sender: No OFD packet to send [00:27:22]OFD Sender: No OFD packet to send [00:27:27]OFD Sender: No OFD packet to send [00:27:32]OFD Sender: No OFD packet to send [00:27:37]OFD Sender: No OFD packet to send [00:27:42]OFD Sender: No OFD packet to send [00:27:47]OFD Sender: No OFD packet to send [00:27:52]OFD Sender: No OFD packet to send [00:27:57]OFD Sender: No OFD packet to send [00:28:02]OFD Sender: No OFD packet to send [00:28:07]OFD Sender: No OFD packet to send [00:28:12]OFD Sender: No OFD packet to send [00:28:17]OFD Sender: No OFD packet to send [00:28:22]OFD Sender: No OFD packet to send [00:28:27]OFD Sender: No OFD packet to send [00:28:32]OFD Sender: No OFD packet to send [00:28:37]OFD Sender: No OFD packet to send [00:28:42]OFD Sender: No OFD packet to send [00:28:47]OFD Sender: No OFD packet to send [00:28:52]OFD Sender: No OFD packet to send [00:28:57]OFD Sender: No OFD packet to send [00:29:02]OFD Sender: No OFD packet to send [00:29:07]OFD Sender: No OFD packet to send [00:29:12]OFD Sender: No OFD packet to send [00:29:17]OFD Sender: No OFD packet to send [00:29:22]OFD Sender: No OFD packet to send [00:29:27]OFD Sender: No OFD packet to send [00:29:32]OFD Sender: No OFD packet to send [00:29:37]OFD Sender: No OFD packet to send [00:29:42]OFD Sender: No OFD packet to send [00:29:47]OFD Sender: No OFD packet to send [00:29:52]OFD Sender: No OFD packet to send [00:29:57]OFD Sender: No OFD packet to send [00:30:02]OFD Sender: No OFD packet to send [00:30:07]OFD Sender: No OFD packet to send [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:17]OFD Sender: No OFD packet to send [00:32:22]OFD Sender: No OFD packet to send [00:32:27]OFD Sender: No OFD packet to send [00:32:32]OFD Sender: No OFD packet to send [00:32:37]OFD Sender: No OFD packet to send [00:32:42]OFD Sender: No OFD packet to send [00:32:47]OFD Sender: No OFD packet to send [00:32:52]OFD Sender: No OFD packet to send [00:32:57]OFD Sender: No OFD packet to send [00:33:02]OFD Sender: No OFD packet to send [00:33:07]OFD Sender: No OFD packet to send [00:33:12]OFD Sender: No OFD packet to send [00:33:17]OFD Sender: No OFD packet to send [00:33:22]OFD Sender: No OFD packet to send [00:33:27]OFD Sender: No OFD packet to send [00:33:32]OFD Sender: No OFD packet to send [00:33:37]OFD Sender: No OFD packet to send [00:33:42]OFD Sender: No OFD packet to send [00:33:47]OFD Sender: No OFD packet to send [00:33:52]OFD Sender: No OFD packet to send [00:33:57]OFD Sender: No OFD packet to send [00:34:02]OFD Sender: No OFD packet to send [00:34:07]OFD Sender: No OFD packet to send [00:34:12]OFD Sender: No OFD packet to send [00:34:17]OFD Sender: No OFD packet to send [00:34:22]OFD Sender: No OFD packet to send [00:34:27]OFD Sender: No OFD packet to send [00:34:32]OFD Sender: No OFD packet to send [00:34:37]OFD Sender: No OFD packet to send [00:34:42]OFD Sender: No OFD packet to send [00:34:47]OFD Sender: No OFD packet to send [00:34:52]OFD Sender: No OFD packet to send [00:34:57]OFD Sender: No OFD packet to send [00:35:02]OFD Sender: No OFD packet to send [00:35:07]OFD Sender: No OFD packet to send [00:35:12]OFD Sender: No OFD packet to send [00:35:17]OFD Sender: No OFD packet to send [00:35:22]OFD Sender: No OFD packet to send [00:35:27]OFD Sender: No OFD packet to send [00:35:32]OFD Sender: No OFD packet to send [00:35:37]OFD Sender: No OFD packet to send [00:35:42]OFD Sender: No OFD packet to send [00:35:47]OFD Sender: No OFD packet to send [00:35:52]OFD Sender: No OFD packet to send [00:35:57]OFD Sender: No OFD packet to send [00:36:02]OFD Sender: No OFD packet to send [00:36:07]OFD Sender: No OFD packet to send [00:36:12]OFD Sender: No OFD packet to send [00:36:17]OFD Sender: No OFD packet to send [00:36:22]OFD Sender: No OFD packet to send [00:36:27]OFD Sender: No OFD packet to send [00:36:32]OFD Sender: No OFD packet to send [00:36:37]OFD Sender: No OFD packet to send [00:36:42]OFD Sender: No OFD packet to send [00:36:47]OFD Sender: No OFD packet to send [00:36:52]OFD Sender: No OFD packet to send [00:36:57]OFD Sender: No OFD packet to send [00:37:02]OFD Sender: No OFD packet to send [00:37:07]OFD Sender: No OFD packet to send [00:37:12]OFD Sender: No OFD packet to send [00:37:17]OFD Sender: No OFD packet to send [00:37:22]OFD Sender: No OFD packet to send [00:37:27]OFD Sender: No OFD packet to send [00:37:32]OFD Sender: No OFD packet to send [00:37:37]OFD Sender: No OFD packet to send [00:37:42]OFD Sender: No OFD packet to send [00:37:47]OFD Sender: No OFD packet to send [00:37:52]OFD Sender: No OFD packet to send [00:37:57]OFD Sender: No OFD packet to send [00:38:02]OFD Sender: No OFD packet to send [00:38:07]OFD Sender: No OFD packet to send [00:38:12]OFD Sender: No OFD packet to send [00:38:17]OFD Sender: No OFD packet to send [00:38:22]OFD Sender: No OFD packet to send [00:38:27]OFD Sender: No OFD packet to send [00:38:32]OFD Sender: No OFD packet to send [00:38:37]OFD Sender: No OFD packet to send [00:38:42]OFD Sender: No OFD packet to send [00:38:47]OFD Sender: No OFD packet to send [00:38:52]OFD Sender: No OFD packet to send [00:38:57]OFD Sender: No OFD packet to send [00:39:02]OFD Sender: No OFD packet to send [00:39:07]OFD Sender: No OFD packet to send [00:39:12]OFD Sender: No OFD packet to send [00:39:17]OFD Sender: No OFD packet to send [00:39:22]OFD Sender: No OFD packet to send [00:39:27]OFD Sender: No OFD packet to send [00:39:32]OFD Sender: No OFD packet to send [00:39:37]OFD Sender: No OFD packet to send [00:39:42]OFD Sender: No OFD packet to send [00:39:47]OFD Sender: No OFD packet to send [00:39:52]OFD Sender: No OFD packet to send [00:39:57]OFD Sender: No OFD packet to send [00:40:02]OFD Sender: No OFD packet to send [00:40:07]OFD Sender: No OFD packet to send [00:40:12]OFD Sender: No OFD packet to send [00:40:17]OFD Sender: No OFD packet to send [00:40:22]OFD Sender: No OFD packet to send [00:40:27]OFD Sender: No OFD packet to send [00:40:32]OFD Sender: No OFD packet to send [00:40:37]OFD Sender: No OFD packet to send [00:40:42]OFD Sender: No OFD packet to send [00:40:47]OFD Sender: No OFD packet to send [00:40:52]OFD Sender: No OFD packet to send [00:40:57]OFD Sender: No OFD packet to send [00:41:02]OFD Sender: No OFD packet to send [00:41:07]OFD Sender: No OFD packet to send [00:41:12]OFD Sender: No OFD packet to send [00:41:17]OFD Sender: No OFD packet to send [00:41:22]OFD Sender: No OFD packet to send [00:41:27]OFD Sender: No OFD packet to send [00:41:32]OFD Sender: No OFD packet to send [00:41:37]OFD Sender: No OFD packet to send [00:41:42]OFD Sender: No OFD packet to send [00:41:47]OFD Sender: No OFD packet to send [00:41:52]OFD Sender: No OFD packet to send [00:41:57]OFD Sender: No OFD packet to send [00:42:02]OFD Sender: No OFD packet to send [00:42:07]OFD Sender: No OFD packet to send [00:42:12]OFD Sender: No OFD packet to send [00:42:17]OFD Sender: No OFD packet to send [00:42:22]OFD Sender: No OFD packet to send [00:42:27]OFD Sender: No OFD packet to send [00:42:32]OFD Sender: No OFD packet to send [00:42:37]OFD Sender: No OFD packet to send [00:42:42]OFD Sender: No OFD packet to send [00:42:47]OFD Sender: No OFD packet to send [00:42:52]OFD Sender: No OFD packet to send [00:42:57]OFD Sender: No OFD packet to send [00:43:02]OFD Sender: No OFD packet to send [00:43:07]OFD Sender: No OFD packet to send [00:43:12]OFD Sender: No OFD packet to send [00:43:17]OFD Sender: No OFD packet to send [00:43:22]OFD Sender: No OFD packet to send [00:43:27]OFD Sender: No OFD packet to send [00:43:32]OFD Sender: No OFD packet to send [00:43:37]OFD Sender: No OFD packet to send [00:43:42]OFD Sender: No OFD packet to send [00:43:47]OFD Sender: No OFD packet to send [00:43:52]OFD Sender: No OFD packet to send [00:43:57]OFD Sender: No OFD packet to send [00:44:02]OFD Sender: No OFD packet to send [00:44:07]OFD Sender: No OFD packet to send [00:44:12]OFD Sender: No OFD packet to send [00:44:17]OFD Sender: No OFD packet to send [00:44:22]OFD Sender: No OFD packet to send [00:44:27]OFD Sender: No OFD packet to send [00:44:32]OFD Sender: No OFD packet to send [00:44:37]OFD Sender: No OFD packet to send [00:44:42]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:03]OFD Sender: No OFD packet to send [00:51:07]accept exits with 7 [00:51:07]New connection [00:51:07]New thread 3067252068 created [00:51:07]Thread 3067108708 joined [00:51:07]Waiting for new connection... [00:51:07] Sock 7.Parse request [00:51:07]Sock 7.Check first char [00:51:07]Sock 7.First char is OK [00:51:07]request: POST /json_proto HTTP/1.0 [00:51:07]Method: POST [00:51:07]URL: /json_proto [00:51:07]Method is POST - this is cgi request [00:51:07]url: /json_proto [00:51:07]query_string will be loaded in cgi processing [00:51:07]execute_cgi json_proto POST (null) [00:51:07]execute_cgi path=json_proto method=POST [00:51:07]POST find Content-Length [00:51:07]Host: 172.17.44.4:8080 [00:51:07]Content-Length: 1207 [00:51:07]Content-Type: application/json [00:51:07] [00:51:07]POST finish read [00:51:07]Found Content-Length = 1207 [00:51:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-135\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043C\u0431\u043E\u043B\u043E\u0442\u043E\u0432 \u0428. \u000A\u0421\u0447\u0435\u0442 N : (1)1993312\u000A17.05.2024 00:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:07]execute_script... [00:51:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_text", "params" : { "text" : " *****\u0422\u041E\u0412\u0410\u0420\u041D\u042B\u0419 \u0427\u0415\u041A*****\u000A \u0410\u0417\u0421-135\u000A \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u043D\u0435\u0444\u0442\u044C\u000A 02508201610067\u000A\u041A\u0430\u0441\u0441\u0438\u0440 : \u0416\u0430\u043C\u0431\u043E\u043B\u043E\u0442\u043E\u0432 \u0428. \u000A\u0421\u0447\u0435\u0442 N : (1)1993312\u000A17.05.2024 00:43\u000A \u041F\u0420\u041E\u0414\u0410\u0416\u0410\u000A\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A): 21\u000A\u0412\u0438\u0434 \u0413\u0421\u041C : 2710194210\u000A\u0414\u0422-\u041A-5\u000A 20.000 x 74.70\u000A\u0418\u0422\u041E\u0413: 1494.00\u000A\u0422\u0438\u043F \u043E\u043F\u043B\u0430\u0442\u044B: \u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A1\u000A ______________________\u000A (\u043F\u043E\u0434\u043F\u0438\u0441\u044C)" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:07]POST & json_proto [00:51:07]process_json_proto [00:51:07]json parsed OK: [00:51:07]protocol is kg_v1.0 [00:51:07]action value=print_text [00:51:07]process_action print_text [00:51:07]cmd_print_text [00:51:07]ExternCall_PrintAddStr [00:51:07]wPrintStart [00:51:07]Write to MH i2c: 01 00 00 7A 19 93 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 07 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 07 00 7A 19 00 00 00 00 00 FF 0F A8 [00:51:07]RasterBufferAndPrint [00:51:07]line *****ТОВАРНЫЙ ЧЕК***** [00:51:07]line АЗС-135 [00:51:07]line Партнер нефть [00:51:07]line 02508201610067 [00:51:07]line Кассир : Жамболотов Ш. [00:51:07]line Счет N : (1)1993312 [00:51:07]line 17.05.2024 00:43 [00:51:07]line ПРОДАЖА [00:51:07]line ТРК (МРК, ГНК): 21 [00:51:07]line Вид ГСМ : 2710194210 [00:51:07]line ДТ-К-5 [00:51:07]line 20.000 x 74.70 [00:51:07]line ИТОГ: 1494.00 [00:51:07]line Тип оплаты: Талоны: Топливные Талоны [00:51:07]line 1 [00:51:07]line ______________________ [00:51:07]line (подпись) [00:51:07]written 0, free lines is 4095 [00:51:07]Write to MH i2c: 01 00 00 8F 19 A8 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 07 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: 01 07 00 8F 19 00 00 00 00 00 EF 0D AB [00:51:07]RasterBufferAndPrint [00:51:07]line [00:51:07]line [00:51:07]line [00:51:07]line [00:51:07]line [00:51:07]written 0, free lines is 3569 [00:51:07]MH_Cut [00:51:07]Write to MH i2c: D1 01 00 96 19 01 81 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: D1 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: D1 01 00 [00:51:07]MH_I2C_Read... [00:51:07]Read from MH i2c: D1 01 00 96 19 00 80 [00:51:07]Write to MH i2c: 01 00 00 97 19 B0 [00:51:07]Write i2c OK [00:51:07]MH_I2C_Read... [00:51:08]OFD Sender: No OFD packet to send [00:51:08]*** Cut start [00:51:08]*** Partial cut [00:51:08]*** CUTSNS_PIN = 1 [00:51:08]*** CUTSNS_PIN = 0 [00:51:08]*** Brake cut motor [00:51:08]Read from MH i2c: 01 [00:51:08]MH_I2C_Read... [00:51:08]*** Stop cut motor [00:51:08]*** Cut end [00:51:08]Read from MH i2c: 01 07 00 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: 01 07 00 97 19 00 00 00 00 00 FF 0F C5 [00:51:08]process_action print_text done [00:51:08]requested_data is exist [00:51:08]produce_requested_data [00:51:08]requested_item fm.sn is exist - process it [00:51:08]wFMCommunicate request_size=4 [00:51:08]MH_SAM_APDU [00:51:08]CAPDU: 80 11 00 00 [00:51:08]Write to MH i2c: E2 08 00 98 19 80 11 00 00 00 00 00 00 2B [00:51:08]Write i2c OK [00:51:08]MH_I2C_Read... [00:51:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:08]Read from MH i2c: E2 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: E2 17 00 [00:51:08]MH_I2C_Read... [00:51:08]Read from MH i2c: E2 17 00 98 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 80 [00:51:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [00:51:08]wFMCommunicate OK [00:51:08]requested_item fd.num is exist - process it [00:51:08]SAM_PROTO_GetFieldsCounters [00:51:08]wFMCommunicate request_size=4 [00:51:08]MH_SAM_APDU [00:51:08]CAPDU: 80 13 00 00 [00:51:08]Write to MH i2c: E2 08 00 99 19 80 13 00 00 00 00 00 00 2E [00:51:08]Write i2c OK [00:51:08]MH_I2C_Read... [00:51:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:09]Read from MH i2c: E2 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 62 00 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 62 00 99 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C9 13 00 00 0E 04 04 00 2D 00 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 50 [00:51:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 C9 13 00 00 0E 04 04 00 2D 00 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:51:09]wFMCommunicate OK [00:51:09]SAM_PROTO_GetFieldsCounters done [00:51:09]requested_item shift.num is exist - process it [00:51:09]requested_item shift.opened is exist - process it [00:51:09]req_shift_opened [00:51:09]FM_GetShiftState [00:51:09]SAM_PROTO_GetShiftState [00:51:09]wFMCommunicate request_size=4 [00:51:09]MH_SAM_APDU [00:51:09]CAPDU: 80 13 01 00 [00:51:09]Write to MH i2c: E2 08 00 9A 19 80 13 01 00 00 00 00 00 30 [00:51:09]Write i2c OK [00:51:09]MH_I2C_Read... [00:51:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:09]Read from MH i2c: E2 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 0E 00 [00:51:09]MH_I2C_Read... [00:51:09]Read from MH i2c: E2 0E 00 9A 19 00 09 00 01 A3 A0 46 66 00 00 00 00 90 00 2B [00:51:09]RAPDU: 09 00 01 A3 A0 46 66 00 00 00 00 90 00 [00:51:09]wFMCommunicate OK [00:51:09]SAM_PROTO_GetShiftState done [00:51:09]FM_GetShiftState done [00:51:09]req_shift_opened done [00:51:09]requested_item shift.open_date is exist - process it [00:51:09]req_shift_open_date [00:51:09]req_shift_open_date done [00:51:09]produce_requested_data done [00:51:09]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5065,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675} [00:51:09]process_action_free print_text [00:51:09]json_value_free [00:51:09]json_value_free done [00:51:09]process_json_proto returns [00:51:09]Send response to host [00:51:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5065,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675}}} [00:51:09]free response buf [00:51:09]execute_script done [00:51:09]execute_script returns [00:51:09]free content buf [00:51:09]Sock 7.Close socket [00:51:09]Sock 7.Thread stoped [00:51:13]OFD Sender: No OFD packet to send [00:51:18]OFD Sender: No OFD packet to send [00:51:23]OFD Sender: No OFD packet to send [00:51:28]OFD Sender: No OFD packet to send [00:51:33]OFD Sender: No OFD packet to send [00:51:38]OFD Sender: No OFD packet to send [00:51:43]OFD Sender: No OFD packet to send [00:51:48]OFD Sender: No OFD packet to send [00:51:53]OFD Sender: No OFD packet to send [00:51:58]OFD Sender: No OFD packet to send [00:52:03]OFD Sender: No OFD packet to send [00:52:08]OFD Sender: No OFD packet to send [00:52:13]OFD Sender: No OFD packet to send [00:52:18]OFD Sender: No OFD packet to send [00:52:23]OFD Sender: No OFD packet to send [00:52:28]OFD Sender: No OFD packet to send [00:52:33]OFD Sender: No OFD packet to send [00:52:38]OFD Sender: No OFD packet to send [00:52:43]OFD Sender: No OFD packet to send [00:52:48]OFD Sender: No OFD packet to send [00:52:53]OFD Sender: No OFD packet to send [00:52:58]OFD Sender: No OFD packet to send [00:53:03]OFD Sender: No OFD packet to send [00:53:08]OFD Sender: No OFD packet to send [00:53:13]OFD Sender: No OFD packet to send [00:53:18]OFD Sender: No OFD packet to send [00:53:23]OFD Sender: No OFD packet to send [00:53:28]OFD Sender: No OFD packet to send [00:53:33]OFD Sender: No OFD packet to send [00:53:38]OFD Sender: No OFD packet to send [00:53:43]OFD Sender: No OFD packet to send [00:53:48]OFD Sender: No OFD packet to send [00:53:53]OFD Sender: No OFD packet to send [00:53:58]OFD Sender: No OFD packet to send [00:54:03]OFD Sender: No OFD packet to send [00:54:08]OFD Sender: No OFD packet to send [00:54:13]OFD Sender: No OFD packet to send [00:54:18]OFD Sender: No OFD packet to send [00:54:23]OFD Sender: No OFD packet to send [00:54:28]OFD Sender: No OFD packet to send [00:54:33]OFD Sender: No OFD packet to send [00:54:38]OFD Sender: No OFD packet to send [00:54:43]OFD Sender: No OFD packet to send [00:54:48]OFD Sender: No OFD packet to send [00:54:53]OFD Sender: No OFD packet to send [00:54:58]OFD Sender: No OFD packet to send [00:55:03]OFD Sender: No OFD packet to send [00:55:08]OFD Sender: No OFD packet to send [00:55:13]OFD Sender: No OFD packet to send [00:55:18]OFD Sender: No OFD packet to send [00:55:23]OFD Sender: No OFD packet to send [00:55:28]OFD Sender: No OFD packet to send [00:55:33]OFD Sender: No OFD packet to send [00:55:38]OFD Sender: No OFD packet to send [00:55:43]OFD Sender: No OFD packet to send [00:55:48]OFD Sender: No OFD packet to send [00:55:53]OFD Sender: No OFD packet to send [00:55:58]OFD Sender: No OFD packet to send [00:56:03]OFD Sender: No OFD packet to send [00:56:08]OFD Sender: No OFD packet to send [00:56:13]OFD Sender: No OFD packet to send [00:56:18]OFD Sender: No OFD packet to send [00:56:23]OFD Sender: No OFD packet to send [00:56:28]OFD Sender: No OFD packet to send [00:56:33]OFD Sender: No OFD packet to send [00:56:38]OFD Sender: No OFD packet to send [00:56:43]OFD Sender: No OFD packet to send [00:56:47]accept exits with 9 [00:56:47]New connection [00:56:47]New thread 3067108708 created [00:56:47]Thread 3067252068 joined [00:56:47]Waiting for new connection... [00:56:47] Sock 9.Parse request [00:56:47]Sock 9.Check first char [00:56:47]Sock 9.First char is OK [00:56:47]request: POST /json_proto HTTP/1.0 [00:56:47]Method: POST [00:56:47]URL: /json_proto [00:56:47]Method is POST - this is cgi request [00:56:47]url: /json_proto [00:56:47]query_string will be loaded in cgi processing [00:56:47]execute_cgi json_proto POST (null) [00:56:47]execute_cgi path=json_proto method=POST [00:56:47]POST find Content-Length [00:56:47]Host: 172.17.44.4:8080 [00:56:47]Content-Length: 802 [00:56:47]Content-Type: application/json [00:56:47] [00:56:47]POST finish read [00:56:47]Found Content-Length = 802 [00:56:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 11.980, "sum" : 800.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 800.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:47]execute_script... [00:56:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 66.80, "quantity" : 11.980, "sum" : 800.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 800.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:47]POST & json_proto [00:56:47]process_json_proto [00:56:47]json parsed OK: [00:56:47]protocol is kg_v1.0 [00:56:47]action value=close_receipt [00:56:47]process_action close_receipt [00:56:47]cmd_close_receipt [00:56:47]MH_GetDate [00:56:47]Write to MH i2c: F0 00 00 9B 19 A3 [00:56:47]Write i2c OK [00:56:47]MH_I2C_Read... [00:56:47]Read from MH i2c: F0 [00:56:47]MH_I2C_Read... [00:56:47]Read from MH i2c: F0 09 00 [00:56:47]MH_I2C_Read... [00:56:47]Read from MH i2c: F0 09 00 9B 19 00 52 AB 46 66 6C E9 28 66 38 [00:56:47]GetLastDocTimeStamp 1715904675 [00:56:47]current date 1715907410 [00:56:47]FM_GetShiftState [00:56:47]SAM_PROTO_GetShiftState [00:56:47]wFMCommunicate request_size=4 [00:56:47]MH_SAM_APDU [00:56:47]CAPDU: 80 13 01 00 [00:56:47]Write to MH i2c: E2 08 00 9C 19 80 13 01 00 00 00 00 00 32 [00:56:47]Write i2c OK [00:56:47]MH_I2C_Read... [00:56:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:47]Read from MH i2c: E2 [00:56:47]MH_I2C_Read... [00:56:47]Read from MH i2c: E2 0E 00 [00:56:47]MH_I2C_Read... [00:56:47]Read from MH i2c: E2 0E 00 9C 19 00 09 00 01 A3 A0 46 66 00 00 00 00 90 00 2D [00:56:47]RAPDU: 09 00 01 A3 A0 46 66 00 00 00 00 90 00 [00:56:47]wFMCommunicate OK [00:56:47]SAM_PROTO_GetShiftState done [00:56:47]FM_GetShiftState done [00:56:47]opened in 1715904675 [00:56:47]opened+sec_in_day 1715991075 [00:56:47]quantity*price = 80026 [00:56:47]sum+1 = 80027 [00:56:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.26 НСП 1% : 7.08 НДС 12% : 84.98 Наличными: 0.00 Безнал.: 800.26 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 1 17.05.2024 00:56 Смена: 45 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5066 ФПД: 166650048178759 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T005650&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5066&fm=166650048178759&tin=02508201610067®Number=0000000000154221&sum=80026 [00:56:48]StoreToDocumentArchive [00:56:48]shift 45 fd 5066 [00:56:48]save to /storage/0045/doc_00005066 [00:56:48]save last doc name /storage/0045/doc_00005066 to /storage/kkm_last_doc_name [00:56:48]save OK [00:56:48]Clear old archive folders... [00:56:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:56:48]tlvbuf is 011FF420 [00:56:48]SAM_PROTO_ClearQueue [00:56:48]wFMCommunicate request_size=4 [00:56:48]MH_SAM_APDU [00:56:48]CAPDU: 80 09 00 00 [00:56:48]Write to MH i2c: E2 08 00 A9 19 80 09 00 00 00 00 00 00 34 [00:56:48]Write i2c OK [00:56:48]MH_I2C_Read... [00:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:48]Read from MH i2c: E2 [00:56:48]MH_I2C_Read... [00:56:48]Read from MH i2c: E2 03 00 [00:56:48]MH_I2C_Read... [00:56:48]Read from MH i2c: E2 03 00 A9 19 00 90 00 36 [00:56:48]RAPDU: 90 00 [00:56:48]wFMCommunicate OK [00:56:48]SAM_PROTO_ClearQueue done [00:56:48]KKMCreateOFDPacket [00:56:48]OFDProtocolAddRootSTLVToBuf [00:56:48]FM_MakeSignedData [00:56:48]FM_MakeSignedData [00:56:48]SAM_PROTO_SignData [00:56:48]wFMCommunicate request_size=4 [00:56:48]MH_SAM_APDU [00:56:48]CAPDU: 80 0D 01 02 [00:56:48]Write to MH i2c: E2 08 00 AA 19 80 0D 01 02 00 00 00 00 3C [00:56:48]Write i2c OK [00:56:48]MH_I2C_Read... [00:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:48]Read from MH i2c: E2 [00:56:48]MH_I2C_Read... [00:56:48]Read from MH i2c: E2 03 00 [00:56:48]MH_I2C_Read... [00:56:48]Read from MH i2c: E2 03 00 AA 19 00 90 00 37 [00:56:48]RAPDU: 90 00 [00:56:48]wFMCommunicate OK [00:56:48]wFMCommunicate request_size=255 [00:56:48]MH_SAM_APDU [00:56:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 52 AB 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CA 13 00 00 35 04 06 00 97 [00:56:48]Write to MH i2c: E2 02 01 AB 19 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 52 AB 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CA 13 00 00 35 04 06 00 97 00 00 46 [00:56:48]Write i2c OK [00:56:48]MH_I2C_Read... [00:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:49]Read from MH i2c: E2 [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: E2 03 00 [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: E2 03 00 AB 19 00 90 00 38 [00:56:49]RAPDU: 90 00 [00:56:49]wFMCommunicate OK [00:56:49]wFMCommunicate request_size=10 [00:56:49]MH_SAM_APDU [00:56:49]CAPDU: 80 0D 02 02 05 91 3C EC 6A 47 [00:56:49]Write to MH i2c: E2 0D 00 AC 19 80 0D 02 02 05 00 91 3C EC 6A 47 00 00 B3 [00:56:49]Write i2c OK [00:56:49]MH_I2C_Read... [00:56:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:49]Read from MH i2c: E2 [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: E2 03 00 [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: E2 03 00 AC 19 00 90 00 39 [00:56:49]RAPDU: 90 00 [00:56:49]wFMCommunicate OK [00:56:49]wFMCommunicate request_size=4 [00:56:49]MH_SAM_APDU [00:56:49]CAPDU: 80 0D 03 02 [00:56:49]Write to MH i2c: E2 08 00 AD 19 80 0D 03 02 00 00 00 00 41 [00:56:49]Write i2c OK [00:56:49]MH_I2C_Read... [00:56:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:49]Read from MH i2c: E2 [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: E2 0B 00 [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: E2 0B 00 AD 19 00 7F F5 CC 97 02 52 F1 22 90 00 80 [00:56:49]RAPDU: 7F F5 CC 97 02 52 F1 22 90 00 [00:56:49]wFMCommunicate OK [00:56:49]SAM_PROTO_SignData done [00:56:49]FM_MakeSignedData done [00:56:49]CreateOFDProtocolMessage [00:56:49]wFMCommunicate request_size=4 [00:56:49]MH_SAM_APDU [00:56:49]CAPDU: 80 11 00 00 [00:56:49]Write to MH i2c: E2 08 00 AE 19 80 11 00 00 00 00 00 00 41 [00:56:49]Write i2c OK [00:56:49]MH_I2C_Read... [00:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:49]Read from MH i2c: E2 [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: E2 17 00 [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: E2 17 00 AE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 96 [00:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [00:56:49]wFMCommunicate OK [00:56:49]CreateOFDProtocolMessage done [00:56:49]OFDSenderStorePacket 5066 [00:56:49]StoreOFDPacket docnum=5066 [00:56:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 C8 5F 07 01 2C FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 52 AB 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CA 13 00 00 35 04 06 00 97 91 3C EC 6A 47 7F F5 CC 97 02 52 F1 22 [00:56:49]CheckFolder [00:56:49]dirname=/storage/ofd_packets [00:56:49]CheckFolder done [00:56:49]ProducePacketName [00:56:49]name=ofd_packets/00005066 [00:56:49]NVStorageSaveData ofd_packets/00005066 [00:56:49]File name is /storage/ofd_packets/00005066 [00:56:49]Write 301 bytes [00:56:49]NVStorageSaveData done [00:56:49]OFDSenderStorePacket done [00:56:49]KKMCreateOFDPacket done [00:56:49]NVStorageSaveData kkm_last_timestamp [00:56:49]File name is /storage/kkm_last_timestamp [00:56:49]Write 4 bytes [00:56:49]NVStorageSaveData done [00:56:49]ExternCall_PrintAddStr [00:56:49]wPrintStart [00:56:49]Write to MH i2c: 01 00 00 AF 19 C8 [00:56:49]Write i2c OK [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: 01 [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: 01 07 00 [00:56:49]MH_I2C_Read... [00:56:49]Read from MH i2c: 01 07 00 AF 19 00 00 00 00 00 FF 0F DD [00:56:49]RasterBufferAndPrint [00:56:49]line Счет N : (1)1993314 [00:56:49]line ИНН: 02508201610067 [00:56:49]line Контрольно-Кассовый Чек [00:56:49]line ПРОДАЖА [00:56:49]line ТРК (МРК, ГНК) : 53 [00:56:49]line Товар: 2710124130 [00:56:49]line Аи-92-К-4 [00:56:49]line 11.980 * 66.80 [00:56:49]line = 800.26 [00:56:49]line НДС 12% НСП 1% [00:56:49]line > о реализуемом товаре [00:56:49]line ИТОГО: 800.26 [00:56:49]line НСП 1% : 7.08 [00:56:49]line НДС 12% : 84.98 [00:56:49]line Наличными: 0.00 [00:56:49]line Безнал.: 800.26 [00:56:49]line Место: АЗС № 135 "Партнер Нефть" [00:56:49]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [00:56:49]line СНО: Общий режим [00:56:49]line Чек 1 17.05.2024 00:56 [00:56:49]line Смена: 45 ФФД: 1.0 [00:56:49]line ЗНМ: 0300000237 [00:56:49]line РНМ: 0000000000154221 [00:56:49]line Версия ККМ: v1.0 [00:56:49]line Платежная система: O! деньги [00:56:49]line ФМ: 0000000000963259 [00:56:49]line ФД: 5066 [00:56:49]line ФПД: 166650048178759 [00:56:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T005650&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5066&fm=166650048178759&tin=02508201610067®Number=0000000000154221&sum=80026 [00:56:49]OFD Sender: Processing packet 5066 [packets to send 4, broken 3] [00:56:49]ProducePacketName [00:56:49]name=ofd_packets/00005066 [00:56:49]OFD Sender: To server: pG, [00:56:49]CommunicateWithHost lk.salyk.kg:30040 [00:56:49]ConnectInit lk.salyk.kg [00:56:49]written 0, free lines is 4095 [00:56:49]Connected sock=10 [00:56:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 C8 5F 07 01 2C FB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 CC 2E 00 00 00 00 00 37 04 06 00 18 1A 00 00 00 00 13 04 06 00 9A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9A 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 32 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9A 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 52 AB 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CA 13 00 00 35 04 06 00 97 91 3C EC 6A 47 7F F5 CC 97 02 52 F1 22 [00:56:50]Write to MH i2c: 01 00 00 D9 19 F2 [00:56:50]Write i2c OK [00:56:50]MH_I2C_Read... [00:56:50]Read from MH i2c: 01 [00:56:50]MH_I2C_Read... [00:56:50]Read from MH i2c: 01 07 00 [00:56:50]MH_I2C_Read... [00:56:50]Read from MH i2c: 01 07 00 D9 19 00 00 00 00 00 77 0C 7C [00:56:50]RasterBufferAndPrint [00:56:50]line [00:56:50]line [00:56:50]line [00:56:50]line [00:56:50]line [00:56:50]written 0, free lines is 3196 [00:56:50]MH_Cut [00:56:50]Write to MH i2c: D1 01 00 E0 19 01 CB [00:56:50]Write i2c OK [00:56:50]MH_I2C_Read... [00:56:50]Read from MH i2c: D1 [00:56:50]MH_I2C_Read... [00:56:50]Read from MH i2c: D1 01 00 [00:56:50]MH_I2C_Read... [00:56:50]Read from MH i2c: D1 01 00 E0 19 00 CA [00:56:50]Write to MH i2c: 01 00 00 E1 19 FA [00:56:50]Write i2c OK [00:56:50]MH_I2C_Read... [00:56:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 68 0A 47 00 D4 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CA 13 00 00 F4 03 04 00 15 57 46 66 B6 04 01 00 00 DF 47 B0 E5 F6 80 70 04 [00:56:51]CommunicateWithHost err = 0 [00:56:51]CheckOFDResponse [00:56:51]1017 (14) - 77093643461234 [00:56:51]1041 (16) - 0000000000963259 [00:56:51]1040 (4) - 5066 [00:56:51]1012 (4) - 16.05.2024 18:57 [00:56:51]1206 (1) - 0 [00:56:51]OFD Sender: Remove packet 5066 [00:56:51]ProducePacketName [00:56:51]name=ofd_packets/00005066 [00:56:51]NVStorageDeleteData [00:56:51]*** Cut start [00:56:51]*** Partial cut [00:56:51]*** CUTSNS_PIN = 1 [00:56:51]*** CUTSNS_PIN = 0 [00:56:51]OFD Sender: No OFD packet to send [00:56:51]*** Brake cut motor [00:56:52]Read from MH i2c: 01 [00:56:52]MH_I2C_Read... [00:56:52]*** Stop cut motor [00:56:52]*** Cut end [00:56:52]Read from MH i2c: 01 07 00 [00:56:52]MH_I2C_Read... [00:56:52]Read from MH i2c: 01 07 00 E1 19 00 00 00 00 00 FF 0F 0F [00:56:52]process_action close_receipt done [00:56:52]requested_data is exist [00:56:52]produce_requested_data [00:56:52]requested_item fm.sn is exist - process it [00:56:52]wFMCommunicate request_size=4 [00:56:52]MH_SAM_APDU [00:56:52]CAPDU: 80 11 00 00 [00:56:52]Write to MH i2c: E2 08 00 E2 19 80 11 00 00 00 00 00 00 75 [00:56:52]Write i2c OK [00:56:52]MH_I2C_Read... [00:56:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:52]Read from MH i2c: E2 [00:56:52]MH_I2C_Read... [00:56:52]Read from MH i2c: E2 17 00 [00:56:52]MH_I2C_Read... [00:56:52]Read from MH i2c: E2 17 00 E2 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 CA [00:56:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [00:56:52]wFMCommunicate OK [00:56:52]requested_item fd.num is exist - process it [00:56:52]SAM_PROTO_GetFieldsCounters [00:56:52]wFMCommunicate request_size=4 [00:56:52]MH_SAM_APDU [00:56:52]CAPDU: 80 13 00 00 [00:56:52]Write to MH i2c: E2 08 00 E3 19 80 13 00 00 00 00 00 00 78 [00:56:52]Write i2c OK [00:56:52]MH_I2C_Read... [00:56:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:52]Read from MH i2c: E2 [00:56:52]MH_I2C_Read... [00:56:52]Read from MH i2c: E2 62 00 [00:56:52]MH_I2C_Read... [00:56:52]Read from MH i2c: E2 62 00 E3 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 CA 13 00 00 0E 04 04 00 2D 00 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 9E [00:56:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 CA 13 00 00 0E 04 04 00 2D 00 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:56:52]wFMCommunicate OK [00:56:52]SAM_PROTO_GetFieldsCounters done [00:56:52]requested_item shift.num is exist - process it [00:56:52]requested_item shift.opened is exist - process it [00:56:52]req_shift_opened [00:56:52]FM_GetShiftState [00:56:52]SAM_PROTO_GetShiftState [00:56:52]wFMCommunicate request_size=4 [00:56:52]MH_SAM_APDU [00:56:52]CAPDU: 80 13 01 00 [00:56:52]Write to MH i2c: E2 08 00 E4 19 80 13 01 00 00 00 00 00 7A [00:56:52]Write i2c OK [00:56:52]MH_I2C_Read... [00:56:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:52]Read from MH i2c: E2 [00:56:52]MH_I2C_Read... [00:56:52]Read from MH i2c: E2 0E 00 [00:56:52]MH_I2C_Read... [00:56:52]Read from MH i2c: E2 0E 00 E4 19 00 09 00 01 A3 A0 46 66 00 00 00 00 90 00 75 [00:56:52]RAPDU: 09 00 01 A3 A0 46 66 00 00 00 00 90 00 [00:56:52]wFMCommunicate OK [00:56:52]SAM_PROTO_GetShiftState done [00:56:52]FM_GetShiftState done [00:56:52]req_shift_opened done [00:56:52]requested_item shift.open_date is exist - process it [00:56:52]req_shift_open_date [00:56:52]req_shift_open_date done [00:56:52]produce_requested_data done [00:56:52]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5066,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675} [00:56:52]process_action_free close_receipt [00:56:52]json_value_free [00:56:52]json_value_free done [00:56:52]process_json_proto returns [00:56:52]Send response to host [00:56:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5066,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675}}} [00:56:52]free response buf [00:56:52]execute_script done [00:56:52]execute_script returns [00:56:52]free content buf [00:56:52]Sock 9.Close socket [00:56:52]Sock 9.Thread stoped [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]accept exits with 7 [00:58:31]New connection [00:58:31]New thread 3067252068 created [00:58:31]Thread 3067108708 joined [00:58:31]Waiting for new connection... [00:58:31] Sock 7.Parse request [00:58:31]Sock 7.Check first char [00:58:31]Sock 7.First char is OK [00:58:31]request: POST /json_proto HTTP/1.0 [00:58:31]Method: POST [00:58:31]URL: /json_proto [00:58:31]Method is POST - this is cgi request [00:58:31]url: /json_proto [00:58:31]query_string will be loaded in cgi processing [00:58:31]execute_cgi json_proto POST (null) [00:58:31]execute_cgi path=json_proto method=POST [00:58:31]POST find Content-Length [00:58:31]Host: 172.17.44.4:8080 [00:58:31]Content-Length: 782 [00:58:31]Content-Type: application/json [00:58:31] [00:58:31]POST finish read [00:58:31]Found Content-Length = 782 [00:58:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:31]execute_script... [00:58:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710124130", "name": "SU-92", "price" : 67.80, "quantity" : 8.850, "sum" : 600.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 600.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:31]POST & json_proto [00:58:31]process_json_proto [00:58:31]json parsed OK: [00:58:31]protocol is kg_v1.0 [00:58:31]action value=close_receipt [00:58:31]process_action close_receipt [00:58:31]cmd_close_receipt [00:58:31]MH_GetDate [00:58:31]Write to MH i2c: F0 00 00 E5 19 ED [00:58:31]Write i2c OK [00:58:31]MH_I2C_Read... [00:58:31]Read from MH i2c: F0 [00:58:31]MH_I2C_Read... [00:58:31]Read from MH i2c: F0 09 00 [00:58:31]MH_I2C_Read... [00:58:31]Read from MH i2c: F0 09 00 E5 19 00 BA AB 46 66 6C E9 28 66 EA [00:58:31]GetLastDocTimeStamp 1715907410 [00:58:31]current date 1715907514 [00:58:31]FM_GetShiftState [00:58:31]SAM_PROTO_GetShiftState [00:58:31]wFMCommunicate request_size=4 [00:58:31]MH_SAM_APDU [00:58:31]CAPDU: 80 13 01 00 [00:58:31]Write to MH i2c: E2 08 00 E6 19 80 13 01 00 00 00 00 00 7C [00:58:31]Write i2c OK [00:58:31]MH_I2C_Read... [00:58:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:31]Read from MH i2c: E2 [00:58:31]MH_I2C_Read... [00:58:31]Read from MH i2c: E2 0E 00 [00:58:31]MH_I2C_Read... [00:58:31]Read from MH i2c: E2 0E 00 E6 19 00 09 00 01 A3 A0 46 66 00 00 00 00 90 00 77 [00:58:31]RAPDU: 09 00 01 A3 A0 46 66 00 00 00 00 90 00 [00:58:31]wFMCommunicate OK [00:58:31]SAM_PROTO_GetShiftState done [00:58:31]FM_GetShiftState done [00:58:31]opened in 1715904675 [00:58:31]opened+sec_in_day 1715991075 [00:58:31]quantity*price = 60003 [00:58:31]sum+1 = 60004 [00:58:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.03 НСП 1% : 5.31 НДС 12% : 63.72 Наличными: 0.00 Безнал.: 600.03 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 2 17.05.2024 00:58 Смена: 45 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5067 ФПД: 213579112263381 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T005834&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5067&fm=213579112263381&tin=02508201610067®Number=0000000000154221&sum=60003 [00:58:32]StoreToDocumentArchive [00:58:32]shift 45 fd 5067 [00:58:32]save to /storage/0045/doc_00005067 [00:58:32]save last doc name /storage/0045/doc_00005067 to /storage/kkm_last_doc_name [00:58:32]save OK [00:58:32]Clear old archive folders... [00:58:32]ProcessDocumentItem done err = 0, tmpTLVsize=244 [00:58:32]tlvbuf is 011FEEA0 [00:58:32]SAM_PROTO_ClearQueue [00:58:32]wFMCommunicate request_size=4 [00:58:32]MH_SAM_APDU [00:58:32]CAPDU: 80 09 00 00 [00:58:32]Write to MH i2c: E2 08 00 F3 19 80 09 00 00 00 00 00 00 7E [00:58:32]Write i2c OK [00:58:32]MH_I2C_Read... [00:58:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:58:32]Read from MH i2c: E2 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 03 00 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 03 00 F3 19 00 90 00 80 [00:58:32]RAPDU: 90 00 [00:58:32]wFMCommunicate OK [00:58:32]SAM_PROTO_ClearQueue done [00:58:32]KKMCreateOFDPacket [00:58:32]OFDProtocolAddRootSTLVToBuf [00:58:32]FM_MakeSignedData [00:58:32]FM_MakeSignedData [00:58:32]SAM_PROTO_SignData [00:58:32]wFMCommunicate request_size=4 [00:58:32]MH_SAM_APDU [00:58:32]CAPDU: 80 0D 01 02 [00:58:32]Write to MH i2c: E2 08 00 F4 19 80 0D 01 02 00 00 00 00 86 [00:58:32]Write i2c OK [00:58:32]MH_I2C_Read... [00:58:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:58:32]Read from MH i2c: E2 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 03 00 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 03 00 F4 19 00 90 00 81 [00:58:32]RAPDU: 90 00 [00:58:32]wFMCommunicate OK [00:58:32]wFMCommunicate request_size=253 [00:58:32]MH_SAM_APDU [00:58:32]CAPDU: 80 0D 02 02 F8 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BA AB 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CB 13 00 00 35 04 06 00 C2 3F C3 1E 2E D5 [00:58:32]Write to MH i2c: E2 00 01 F5 19 80 0D 02 02 F8 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BA AB 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CB 13 00 00 35 04 06 00 C2 3F C3 1E 2E D5 00 00 7B [00:58:32]Write i2c OK [00:58:32]MH_I2C_Read... [00:58:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:32]Read from MH i2c: E2 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 03 00 [00:58:32]MH_I2C_Read... [00:58:32]Read from MH i2c: E2 03 00 F5 19 00 90 00 82 [00:58:32]RAPDU: 90 00 [00:58:32]wFMCommunicate OK [00:58:32]wFMCommunicate request_size=4 [00:58:32]MH_SAM_APDU [00:58:32]CAPDU: 80 0D 03 02 [00:58:32]Write to MH i2c: E2 08 00 F6 19 80 0D 03 02 00 00 00 00 8A [00:58:32]Write i2c OK [00:58:32]MH_I2C_Read... [00:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:58:33]Read from MH i2c: E2 [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: E2 0B 00 [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: E2 0B 00 F6 19 00 47 CE D5 B5 C2 37 59 77 90 00 F3 [00:58:33]RAPDU: 47 CE D5 B5 C2 37 59 77 90 00 [00:58:33]wFMCommunicate OK [00:58:33]SAM_PROTO_SignData done [00:58:33]FM_MakeSignedData done [00:58:33]CreateOFDProtocolMessage [00:58:33]wFMCommunicate request_size=4 [00:58:33]MH_SAM_APDU [00:58:33]CAPDU: 80 11 00 00 [00:58:33]Write to MH i2c: E2 08 00 F7 19 80 11 00 00 00 00 00 00 8A [00:58:33]Write i2c OK [00:58:33]MH_I2C_Read... [00:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:33]Read from MH i2c: E2 [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: E2 17 00 [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: E2 17 00 F7 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 DF [00:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [00:58:33]wFMCommunicate OK [00:58:33]CreateOFDProtocolMessage done [00:58:33]OFDSenderStorePacket 5067 [00:58:33]StoreOFDPacket docnum=5067 [00:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 08 01 00 00 79 DA 00 01 40 0E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BA AB 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CB 13 00 00 35 04 06 00 C2 3F C3 1E 2E D5 47 CE D5 B5 C2 37 59 77 [00:58:33]CheckFolder [00:58:33]dirname=/storage/ofd_packets [00:58:33]CheckFolder done [00:58:33]ProducePacketName [00:58:33]name=ofd_packets/00005067 [00:58:33]NVStorageSaveData ofd_packets/00005067 [00:58:33]File name is /storage/ofd_packets/00005067 [00:58:33]Write 294 bytes [00:58:33]NVStorageSaveData done [00:58:33]OFDSenderStorePacket done [00:58:33]KKMCreateOFDPacket done [00:58:33]NVStorageSaveData kkm_last_timestamp [00:58:33]File name is /storage/kkm_last_timestamp [00:58:33]Write 4 bytes [00:58:33]NVStorageSaveData done [00:58:33]ExternCall_PrintAddStr [00:58:33]wPrintStart [00:58:33]Write to MH i2c: 01 00 00 F8 19 11 [00:58:33]Write i2c OK [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: 01 [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: 01 07 00 [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: 01 07 00 F8 19 00 00 00 00 00 FF 0F 26 [00:58:33]RasterBufferAndPrint [00:58:33]line Счет N : (1)1993315 [00:58:33]line ИНН: 02508201610067 [00:58:33]line Контрольно-Кассовый Чек [00:58:33]line ПРОДАЖА [00:58:33]line ТРК (МРК, ГНК) : 44 [00:58:33]line Товар: 2710124130 [00:58:33]line SU-92 [00:58:33]line 8.850 * 67.80 [00:58:33]line = 600.03 [00:58:33]line НДС 12% НСП 1% [00:58:33]line > о реализуемом товаре [00:58:33]line ИТОГО: 600.03 [00:58:33]line НСП 1% : 5.31 [00:58:33]line НДС 12% : 63.72 [00:58:33]line Наличными: 0.00 [00:58:33]line Безнал.: 600.03 [00:58:33]line Место: АЗС № 135 "Партнер Нефть" [00:58:33]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [00:58:33]line СНО: Общий режим [00:58:33]line Чек 2 17.05.2024 00:58 [00:58:33]line Смена: 45 ФФД: 1.0 [00:58:33]line ЗНМ: 0300000237 [00:58:33]line РНМ: 0000000000154221 [00:58:33]line Версия ККМ: v1.0 [00:58:33]line Платежная система: O! деньги [00:58:33]line ФМ: 0000000000963259 [00:58:33]line ФД: 5067 [00:58:33]line ФПД: 213579112263381 [00:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T005834&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5067&fm=213579112263381&tin=02508201610067®Number=0000000000154221&sum=60003 [00:58:33]OFD Sender: Processing packet 5067 [packets to send 4, broken 3] [00:58:33]ProducePacketName [00:58:33]name=ofd_packets/00005067 [00:58:33]OFD Sender: To server: pG, [00:58:33]CommunicateWithHost lk.salyk.kg:30040 [00:58:33]ConnectInit lk.salyk.kg [00:58:33]written 0, free lines is 4095 [00:58:33]Write to MH i2c: 01 00 00 22 1A 3C [00:58:33]Write i2c OK [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: 01 [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: 01 07 00 [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: 01 07 00 22 1A 00 00 00 00 00 73 0C C2 [00:58:33]RasterBufferAndPrint [00:58:33]line [00:58:33]line [00:58:33]line [00:58:33]line [00:58:33]line [00:58:33]written 0, free lines is 3190 [00:58:33]MH_Cut [00:58:33]Write to MH i2c: D1 01 00 29 1A 01 15 [00:58:33]Write i2c OK [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: D1 [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: D1 01 00 [00:58:33]MH_I2C_Read... [00:58:33]Read from MH i2c: D1 01 00 29 1A 00 14 [00:58:33]Write to MH i2c: 01 00 00 2A 1A 44 [00:58:33]Write i2c OK [00:58:33]MH_I2C_Read... [00:58:34]Connected sock=10 [00:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 08 01 00 00 79 DA 00 01 40 0E 5A 03 01 00 03 00 F4 00 1E 04 01 00 01 23 04 46 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 05 00 53 55 2D 39 32 FF 03 08 00 03 92 22 00 00 00 00 00 37 04 06 00 7C 1A 00 00 00 00 13 04 06 00 63 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 63 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 63 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 BA AB 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CB 13 00 00 35 04 06 00 C2 3F C3 1E 2E D5 47 CE D5 B5 C2 37 59 77 [00:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 D5 84 47 00 A8 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CB 13 00 00 F4 03 04 00 7D 57 46 66 B6 04 01 00 00 F2 A8 36 3D 87 BC C6 7B [00:58:34]CommunicateWithHost err = 0 [00:58:34]CheckOFDResponse [00:58:34]1017 (14) - 77093643461234 [00:58:34]1041 (16) - 0000000000963259 [00:58:34]1040 (4) - 5067 [00:58:34]1012 (4) - 16.05.2024 18:59 [00:58:34]1206 (1) - 0 [00:58:34]OFD Sender: Remove packet 5067 [00:58:34]ProducePacketName [00:58:34]name=ofd_packets/00005067 [00:58:34]NVStorageDeleteData [00:58:35]*** Cut start [00:58:35]*** Partial cut [00:58:35]*** CUTSNS_PIN = 1 [00:58:35]*** CUTSNS_PIN = 0 [00:58:35]OFD Sender: No OFD packet to send [00:58:35]*** Brake cut motor [00:58:35]Read from MH i2c: 01 [00:58:35]MH_I2C_Read... [00:58:35]*** Stop cut motor [00:58:35]*** Cut end [00:58:35]Read from MH i2c: 01 07 00 [00:58:35]MH_I2C_Read... [00:58:35]Read from MH i2c: 01 07 00 2A 1A 00 00 00 00 00 FF 0F 59 [00:58:35]process_action close_receipt done [00:58:35]requested_data is exist [00:58:35]produce_requested_data [00:58:35]requested_item fm.sn is exist - process it [00:58:35]wFMCommunicate request_size=4 [00:58:35]MH_SAM_APDU [00:58:35]CAPDU: 80 11 00 00 [00:58:35]Write to MH i2c: E2 08 00 2B 1A 80 11 00 00 00 00 00 00 BF [00:58:35]Write i2c OK [00:58:35]MH_I2C_Read... [00:58:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:35]Read from MH i2c: E2 [00:58:35]MH_I2C_Read... [00:58:35]Read from MH i2c: E2 17 00 [00:58:35]MH_I2C_Read... [00:58:35]Read from MH i2c: E2 17 00 2B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 14 [00:58:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [00:58:35]wFMCommunicate OK [00:58:35]requested_item fd.num is exist - process it [00:58:35]SAM_PROTO_GetFieldsCounters [00:58:35]wFMCommunicate request_size=4 [00:58:35]MH_SAM_APDU [00:58:35]CAPDU: 80 13 00 00 [00:58:35]Write to MH i2c: E2 08 00 2C 1A 80 13 00 00 00 00 00 00 C2 [00:58:35]Write i2c OK [00:58:35]MH_I2C_Read... [00:58:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:35]Read from MH i2c: E2 [00:58:35]MH_I2C_Read... [00:58:35]Read from MH i2c: E2 62 00 [00:58:35]MH_I2C_Read... [00:58:35]Read from MH i2c: E2 62 00 2C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 CB 13 00 00 0E 04 04 00 2D 00 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 EC [00:58:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 CB 13 00 00 0E 04 04 00 2D 00 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:58:35]wFMCommunicate OK [00:58:35]SAM_PROTO_GetFieldsCounters done [00:58:35]requested_item shift.num is exist - process it [00:58:35]requested_item shift.opened is exist - process it [00:58:35]req_shift_opened [00:58:35]FM_GetShiftState [00:58:35]SAM_PROTO_GetShiftState [00:58:35]wFMCommunicate request_size=4 [00:58:35]MH_SAM_APDU [00:58:35]CAPDU: 80 13 01 00 [00:58:35]Write to MH i2c: E2 08 00 2D 1A 80 13 01 00 00 00 00 00 C4 [00:58:35]Write i2c OK [00:58:35]MH_I2C_Read... [00:58:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:35]Read from MH i2c: E2 [00:58:35]MH_I2C_Read... [00:58:35]Read from MH i2c: E2 0E 00 [00:58:35]MH_I2C_Read... [00:58:35]Read from MH i2c: E2 0E 00 2D 1A 00 09 00 01 A3 A0 46 66 00 00 00 00 90 00 BF [00:58:35]RAPDU: 09 00 01 A3 A0 46 66 00 00 00 00 90 00 [00:58:35]wFMCommunicate OK [00:58:35]SAM_PROTO_GetShiftState done [00:58:35]FM_GetShiftState done [00:58:35]req_shift_opened done [00:58:35]requested_item shift.open_date is exist - process it [00:58:35]req_shift_open_date [00:58:35]req_shift_open_date done [00:58:35]produce_requested_data done [00:58:35]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5067,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675} [00:58:35]process_action_free close_receipt [00:58:35]json_value_free [00:58:35]json_value_free done [00:58:35]process_json_proto returns [00:58:35]Send response to host [00:58:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5067,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675}}} [00:58:35]free response buf [00:58:35]execute_script done [00:58:35]execute_script returns [00:58:35]free content buf [00:58:35]Sock 7.Close socket [00:58:35]Sock 7.Thread stoped [00:58:40]OFD Sender: No OFD packet to send [00:58:45]OFD Sender: No OFD packet to send [00:58:50]OFD Sender: No OFD packet to send [00:58:55]OFD Sender: No OFD packet to send [00:59:00]OFD Sender: No OFD packet to send [00:59:05]OFD Sender: No OFD packet to send [00:59:10]OFD Sender: No OFD packet to send [00:59:15]OFD Sender: No OFD packet to send [00:59:20]OFD Sender: No OFD packet to send [00:59:25]OFD Sender: No OFD packet to send [00:59:30]OFD Sender: No OFD packet to send [00:59:35]OFD Sender: No OFD packet to send [00:59:40]OFD Sender: No OFD packet to send [00:59:45]OFD Sender: No OFD packet to send [00:59:50]OFD Sender: No OFD packet to send [00:59:55]OFD Sender: No OFD packet to send [01:00:00]OFD Sender: No OFD packet to send [01:00:05]OFD Sender: No OFD packet to send [01:00:10]OFD Sender: No OFD packet to send [01:00:15]OFD Sender: No OFD packet to send [01:00:20]OFD Sender: No OFD packet to send [01:00:25]OFD Sender: No OFD packet to send [01:00:30]OFD Sender: No OFD packet to send [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:40]accept exits with 9 [01:01:40]New connection [01:01:40]New thread 3067108708 created [01:01:40]Thread 3067252068 joined [01:01:40]Waiting for new connection... [01:01:40] Sock 9.Parse request [01:01:40]Sock 9.Check first char [01:01:40]Sock 9.First char is OK [01:01:40]request: POST /json_proto HTTP/1.0 [01:01:40]Method: POST [01:01:40]URL: /json_proto [01:01:40]Method is POST - this is cgi request [01:01:40]url: /json_proto [01:01:40]query_string will be loaded in cgi processing [01:01:40]execute_cgi json_proto POST (null) [01:01:40]execute_cgi path=json_proto method=POST [01:01:40]POST find Content-Length [01:01:40]Host: 172.17.44.4:8080 [01:01:40]Content-Length: 804 [01:01:40]Content-Type: application/json [01:01:40] [01:01:40]POST finish read [01:01:40]Found Content-Length = 804 [01:01:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 27.330, "sum" : 2000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:01:40]execute_script... [01:01:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1993317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 52", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 73.20, "quantity" : 27.330, "sum" : 2000.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 2000.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:01:40]POST & json_proto [01:01:40]process_json_proto [01:01:40]json parsed OK: [01:01:40]protocol is kg_v1.0 [01:01:40]action value=close_receipt [01:01:40]process_action close_receipt [01:01:40]cmd_close_receipt [01:01:40]MH_GetDate [01:01:40]Write to MH i2c: F0 00 00 2E 1A 37 [01:01:40]Write i2c OK [01:01:40]MH_I2C_Read... [01:01:40]Read from MH i2c: F0 [01:01:40]MH_I2C_Read... [01:01:40]Read from MH i2c: F0 09 00 [01:01:40]MH_I2C_Read... [01:01:40]Read from MH i2c: F0 09 00 2E 1A 00 77 AC 46 66 6C E9 28 66 F2 [01:01:40]GetLastDocTimeStamp 1715907514 [01:01:40]current date 1715907703 [01:01:40]FM_GetShiftState [01:01:40]SAM_PROTO_GetShiftState [01:01:40]wFMCommunicate request_size=4 [01:01:40]MH_SAM_APDU [01:01:40]CAPDU: 80 13 01 00 [01:01:40]Write to MH i2c: E2 08 00 2F 1A 80 13 01 00 00 00 00 00 C6 [01:01:40]Write i2c OK [01:01:40]MH_I2C_Read... [01:01:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:40]Read from MH i2c: E2 [01:01:40]MH_I2C_Read... [01:01:40]Read from MH i2c: E2 0E 00 [01:01:40]MH_I2C_Read... [01:01:40]Read from MH i2c: E2 0E 00 2F 1A 00 09 00 01 A3 A0 46 66 00 00 00 00 90 00 C1 [01:01:40]RAPDU: 09 00 01 A3 A0 46 66 00 00 00 00 90 00 [01:01:40]wFMCommunicate OK [01:01:40]SAM_PROTO_GetShiftState done [01:01:40]FM_GetShiftState done [01:01:40]opened in 1715904675 [01:01:40]opened+sec_in_day 1715991075 [01:01:40]quantity*price = 200055 [01:01:40]sum+1 = 200057 [01:01:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.56 НСП 1% : 17.70 НДС 12% : 212.45 Наличными: 0.00 Безнал.: 2000.56 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 3 17.05.2024 01:01 Смена: 45 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 Платежная система: O! деньги ФМ: 0000000000963259 ФД: 5068 ФПД: 233471349121291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T010143&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5068&fm=233471349121291&tin=02508201610067®Number=0000000000154221&sum=200056 [01:01:42]StoreToDocumentArchive [01:01:42]shift 45 fd 5068 [01:01:42]save to /storage/0045/doc_00005068 [01:01:42]save last doc name /storage/0045/doc_00005068 to /storage/kkm_last_doc_name [01:01:42]save OK [01:01:42]Clear old archive folders... [01:01:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:01:42]tlvbuf is 011E0FC0 [01:01:42]SAM_PROTO_ClearQueue [01:01:42]wFMCommunicate request_size=4 [01:01:42]MH_SAM_APDU [01:01:42]CAPDU: 80 09 00 00 [01:01:42]Write to MH i2c: E2 08 00 3C 1A 80 09 00 00 00 00 00 00 C8 [01:01:42]Write i2c OK [01:01:42]MH_I2C_Read... [01:01:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:01:42]Read from MH i2c: E2 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 03 00 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 03 00 3C 1A 00 90 00 CA [01:01:42]RAPDU: 90 00 [01:01:42]wFMCommunicate OK [01:01:42]SAM_PROTO_ClearQueue done [01:01:42]KKMCreateOFDPacket [01:01:42]OFDProtocolAddRootSTLVToBuf [01:01:42]FM_MakeSignedData [01:01:42]FM_MakeSignedData [01:01:42]SAM_PROTO_SignData [01:01:42]wFMCommunicate request_size=4 [01:01:42]MH_SAM_APDU [01:01:42]CAPDU: 80 0D 01 02 [01:01:42]Write to MH i2c: E2 08 00 3D 1A 80 0D 01 02 00 00 00 00 D0 [01:01:42]Write i2c OK [01:01:42]MH_I2C_Read... [01:01:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:01:42]Read from MH i2c: E2 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 03 00 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 03 00 3D 1A 00 90 00 CB [01:01:42]RAPDU: 90 00 [01:01:42]wFMCommunicate OK [01:01:42]wFMCommunicate request_size=255 [01:01:42]MH_SAM_APDU [01:01:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 6A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 78 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 77 AC 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CC 13 00 00 35 04 06 00 D4 [01:01:42]Write to MH i2c: E2 02 01 3E 1A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 6A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 78 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 77 AC 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CC 13 00 00 35 04 06 00 D4 00 00 3F [01:01:42]Write i2c OK [01:01:42]MH_I2C_Read... [01:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:42]Read from MH i2c: E2 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 03 00 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 03 00 3E 1A 00 90 00 CC [01:01:42]RAPDU: 90 00 [01:01:42]wFMCommunicate OK [01:01:42]wFMCommunicate request_size=10 [01:01:42]MH_SAM_APDU [01:01:42]CAPDU: 80 0D 02 02 05 57 48 D4 61 0B [01:01:42]Write to MH i2c: E2 0D 00 3F 1A 80 0D 02 02 05 00 57 48 D4 61 0B 00 00 BC [01:01:42]Write i2c OK [01:01:42]MH_I2C_Read... [01:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:01:42]Read from MH i2c: E2 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 03 00 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 03 00 3F 1A 00 90 00 CD [01:01:42]RAPDU: 90 00 [01:01:42]wFMCommunicate OK [01:01:42]wFMCommunicate request_size=4 [01:01:42]MH_SAM_APDU [01:01:42]CAPDU: 80 0D 03 02 [01:01:42]Write to MH i2c: E2 08 00 40 1A 80 0D 03 02 00 00 00 00 D5 [01:01:42]Write i2c OK [01:01:42]MH_I2C_Read... [01:01:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:01:42]Read from MH i2c: E2 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 0B 00 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 0B 00 40 1A 00 95 D6 C7 EB C9 B0 88 3E 90 00 32 [01:01:42]RAPDU: 95 D6 C7 EB C9 B0 88 3E 90 00 [01:01:42]wFMCommunicate OK [01:01:42]SAM_PROTO_SignData done [01:01:42]FM_MakeSignedData done [01:01:42]CreateOFDProtocolMessage [01:01:42]wFMCommunicate request_size=4 [01:01:42]MH_SAM_APDU [01:01:42]CAPDU: 80 11 00 00 [01:01:42]Write to MH i2c: E2 08 00 41 1A 80 11 00 00 00 00 00 00 D5 [01:01:42]Write i2c OK [01:01:42]MH_I2C_Read... [01:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:42]Read from MH i2c: E2 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 17 00 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: E2 17 00 41 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 2A [01:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [01:01:42]wFMCommunicate OK [01:01:42]CreateOFDProtocolMessage done [01:01:42]OFDSenderStorePacket 5068 [01:01:42]StoreOFDPacket docnum=5068 [01:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 51 84 07 01 68 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 6A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 78 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 77 AC 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CC 13 00 00 35 04 06 00 D4 57 48 D4 61 0B 95 D6 C7 EB C9 B0 88 3E [01:01:42]CheckFolder [01:01:42]dirname=/storage/ofd_packets [01:01:42]CheckFolder done [01:01:42]ProducePacketName [01:01:42]name=ofd_packets/00005068 [01:01:42]NVStorageSaveData ofd_packets/00005068 [01:01:42]File name is /storage/ofd_packets/00005068 [01:01:42]Write 301 bytes [01:01:42]NVStorageSaveData done [01:01:42]OFDSenderStorePacket done [01:01:42]KKMCreateOFDPacket done [01:01:42]NVStorageSaveData kkm_last_timestamp [01:01:42]File name is /storage/kkm_last_timestamp [01:01:42]Write 4 bytes [01:01:42]NVStorageSaveData done [01:01:42]ExternCall_PrintAddStr [01:01:42]wPrintStart [01:01:42]Write to MH i2c: 01 00 00 42 1A 5C [01:01:42]Write i2c OK [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: 01 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: 01 07 00 [01:01:42]MH_I2C_Read... [01:01:42]Read from MH i2c: 01 07 00 42 1A 00 00 00 00 00 FF 0F 71 [01:01:42]RasterBufferAndPrint [01:01:42]line Счет N : (1)1993317 [01:01:42]line ИНН: 02508201610067 [01:01:42]line Контрольно-Кассовый Чек [01:01:42]line ПРОДАЖА [01:01:42]line ТРК (МРК, ГНК) : 52 [01:01:42]line Товар: 2710124500 [01:01:42]line Аи-95-К-5 [01:01:42]line 27.330 * 73.20 [01:01:42]line = 2000.56 [01:01:42]line НДС 12% НСП 1% [01:01:42]line > о реализуемом товаре [01:01:42]line ИТОГО: 2000.56 [01:01:42]line НСП 1% : 17.70 [01:01:42]line НДС 12% : 212.45 [01:01:42]line Наличными: 0.00 [01:01:42]line Безнал.: 2000.56 [01:01:42]line Место: АЗС № 135 "Партнер Нефть" [01:01:42]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [01:01:42]line СНО: Общий режим [01:01:42]line Чек 3 17.05.2024 01:01 [01:01:42]line Смена: 45 ФФД: 1.0 [01:01:42]line ЗНМ: 0300000237 [01:01:42]line РНМ: 0000000000154221 [01:01:42]line Версия ККМ: v1.0 [01:01:42]line Платежная система: O! деньги [01:01:42]line ФМ: 0000000000963259 [01:01:42]line ФД: 5068 [01:01:42]line ФПД: 233471349121291 [01:01:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T010143&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5068&fm=233471349121291&tin=02508201610067®Number=0000000000154221&sum=200056 [01:01:42]OFD Sender: Processing packet 5068 [packets to send 4, broken 3] [01:01:42]ProducePacketName [01:01:42]name=ofd_packets/00005068 [01:01:42]OFD Sender: To server: pG, [01:01:42]CommunicateWithHost lk.salyk.kg:30040 [01:01:42]ConnectInit lk.salyk.kg [01:01:42]written 0, free lines is 4095 [01:01:43]Connected sock=10 [01:01:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0F 01 00 00 51 84 07 01 68 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 C2 6A 00 00 00 00 00 37 04 06 00 98 1C 00 00 00 00 13 04 06 00 78 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FD 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 78 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 77 AC 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CC 13 00 00 35 04 06 00 D4 57 48 D4 61 0B 95 D6 C7 EB C9 B0 88 3E [01:01:43]Write to MH i2c: 01 00 00 6C 1A 86 [01:01:43]Write i2c OK [01:01:43]MH_I2C_Read... [01:01:43]Read from MH i2c: 01 [01:01:43]MH_I2C_Read... [01:01:43]Read from MH i2c: 01 07 00 [01:01:43]MH_I2C_Read... [01:01:43]Read from MH i2c: 01 07 00 6C 1A 00 00 00 00 00 75 0C 0E [01:01:43]RasterBufferAndPrint [01:01:43]line [01:01:43]line [01:01:43]line [01:01:43]line [01:01:43]line [01:01:43]written 0, free lines is 3193 [01:01:43]MH_Cut [01:01:43]Write to MH i2c: D1 01 00 73 1A 01 5F [01:01:43]Write i2c OK [01:01:43]MH_I2C_Read... [01:01:43]Read from MH i2c: D1 [01:01:43]MH_I2C_Read... [01:01:43]Read from MH i2c: D1 01 00 [01:01:43]MH_I2C_Read... [01:01:43]Read from MH i2c: D1 01 00 73 1A 00 5E [01:01:43]Write to MH i2c: 01 00 00 74 1A 8E [01:01:43]Write i2c OK [01:01:43]MH_I2C_Read... [01:01:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 0C 38 47 00 2D FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CC 13 00 00 F4 03 04 00 39 58 46 66 B6 04 01 00 00 57 32 CE 1C 89 F7 C3 98 [01:01:43]CommunicateWithHost err = 0 [01:01:43]CheckOFDResponse [01:01:43]1017 (14) - 77093643461234 [01:01:43]1041 (16) - 0000000000963259 [01:01:43]1040 (4) - 5068 [01:01:43]1012 (4) - 16.05.2024 19:02 [01:01:43]1206 (1) - 0 [01:01:43]OFD Sender: Remove packet 5068 [01:01:43]ProducePacketName [01:01:43]name=ofd_packets/00005068 [01:01:43]NVStorageDeleteData [01:01:43]OFD Sender: No OFD packet to send [01:01:44]*** Cut start [01:01:44]*** Partial cut [01:01:44]*** CUTSNS_PIN = 1 [01:01:44]*** CUTSNS_PIN = 0 [01:01:44]*** Brake cut motor [01:01:45]Read from MH i2c: 01 [01:01:45]*** Stop cut motor [01:01:45]*** Cut end [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: 01 07 00 [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: 01 07 00 74 1A 00 00 00 00 00 FF 0F A3 [01:01:45]process_action close_receipt done [01:01:45]requested_data is exist [01:01:45]produce_requested_data [01:01:45]requested_item fm.sn is exist - process it [01:01:45]wFMCommunicate request_size=4 [01:01:45]MH_SAM_APDU [01:01:45]CAPDU: 80 11 00 00 [01:01:45]Write to MH i2c: E2 08 00 75 1A 80 11 00 00 00 00 00 00 09 [01:01:45]Write i2c OK [01:01:45]MH_I2C_Read... [01:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:01:45]Read from MH i2c: E2 [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: E2 17 00 [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: E2 17 00 75 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 5E [01:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [01:01:45]wFMCommunicate OK [01:01:45]requested_item fd.num is exist - process it [01:01:45]SAM_PROTO_GetFieldsCounters [01:01:45]wFMCommunicate request_size=4 [01:01:45]MH_SAM_APDU [01:01:45]CAPDU: 80 13 00 00 [01:01:45]Write to MH i2c: E2 08 00 76 1A 80 13 00 00 00 00 00 00 0C [01:01:45]Write i2c OK [01:01:45]MH_I2C_Read... [01:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:01:45]Read from MH i2c: E2 [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: E2 62 00 [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: E2 62 00 76 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 CC 13 00 00 0E 04 04 00 2D 00 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 3A [01:01:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 CC 13 00 00 0E 04 04 00 2D 00 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 [01:01:45]wFMCommunicate OK [01:01:45]SAM_PROTO_GetFieldsCounters done [01:01:45]requested_item shift.num is exist - process it [01:01:45]requested_item shift.opened is exist - process it [01:01:45]req_shift_opened [01:01:45]FM_GetShiftState [01:01:45]SAM_PROTO_GetShiftState [01:01:45]wFMCommunicate request_size=4 [01:01:45]MH_SAM_APDU [01:01:45]CAPDU: 80 13 01 00 [01:01:45]Write to MH i2c: E2 08 00 77 1A 80 13 01 00 00 00 00 00 0E [01:01:45]Write i2c OK [01:01:45]MH_I2C_Read... [01:01:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:01:45]Read from MH i2c: E2 [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: E2 0E 00 [01:01:45]MH_I2C_Read... [01:01:45]Read from MH i2c: E2 0E 00 77 1A 00 09 00 01 A3 A0 46 66 00 00 00 00 90 00 09 [01:01:45]RAPDU: 09 00 01 A3 A0 46 66 00 00 00 00 90 00 [01:01:45]wFMCommunicate OK [01:01:45]SAM_PROTO_GetShiftState done [01:01:45]FM_GetShiftState done [01:01:45]req_shift_opened done [01:01:45]requested_item shift.open_date is exist - process it [01:01:45]req_shift_open_date [01:01:45]req_shift_open_date done [01:01:45]produce_requested_data done [01:01:45]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5068,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675} [01:01:45]process_action_free close_receipt [01:01:45]json_value_free [01:01:45]json_value_free done [01:01:45]process_json_proto returns [01:01:45]Send response to host [01:01:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5068,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675}}} [01:01:45]free response buf [01:01:45]execute_script done [01:01:45]execute_script returns [01:01:45]free content buf [01:01:45]Sock 9.Close socket [01:01:45]Sock 9.Thread stoped [01:01:48]OFD Sender: No OFD packet to send [01:01:53]OFD Sender: No OFD packet to send [01:01:58]OFD Sender: No OFD packet to send [01:02:03]OFD Sender: No OFD packet to send [01:02:08]OFD Sender: No OFD packet to send [01:02:13]OFD Sender: No OFD packet to send [01:02:18]OFD Sender: No OFD packet to send [01:02:23]OFD Sender: No OFD packet to send [01:02:28]OFD Sender: No OFD packet to send [01:02:33]OFD Sender: No OFD packet to send [01:02:38]OFD Sender: No OFD packet to send [01:02:43]OFD Sender: No OFD packet to send [01:02:48]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:44]OFD Sender: No OFD packet to send [01:03:49]OFD Sender: No OFD packet to send [01:03:54]OFD Sender: No OFD packet to send [01:03:59]OFD Sender: No OFD packet to send [01:04:04]OFD Sender: No OFD packet to send [01:04:09]OFD Sender: No OFD packet to send [01:04:14]OFD Sender: No OFD packet to send [01:04:19]OFD Sender: No OFD packet to send [01:04:24]OFD Sender: No OFD packet to send [01:04:29]OFD Sender: No OFD packet to send [01:04:34]OFD Sender: No OFD packet to send [01:04:39]OFD Sender: No OFD packet to send [01:04:44]OFD Sender: No OFD packet to send [01:04:49]OFD Sender: No OFD packet to send [01:04:54]OFD Sender: No OFD packet to send [01:04:59]OFD Sender: No OFD packet to send [01:05:04]OFD Sender: No OFD packet to send [01:05:09]OFD Sender: No OFD packet to send [01:05:14]OFD Sender: No OFD packet to send [01:05:19]OFD Sender: No OFD packet to send [01:05:24]OFD Sender: No OFD packet to send [01:05:29]OFD Sender: No OFD packet to send [01:05:34]OFD Sender: No OFD packet to send [01:05:39]OFD Sender: No OFD packet to send [01:05:44]OFD Sender: No OFD packet to send [01:05:49]OFD Sender: No OFD packet to send [01:05:54]OFD Sender: No OFD packet to send [01:05:59]OFD Sender: No OFD packet to send [01:06:04]OFD Sender: No OFD packet to send [01:06:09]OFD Sender: No OFD packet to send [01:06:14]OFD Sender: No OFD packet to send [01:06:19]OFD Sender: No OFD packet to send [01:06:24]OFD Sender: No OFD packet to send [01:06:29]OFD Sender: No OFD packet to send [01:06:34]OFD Sender: No OFD packet to send [01:06:39]OFD Sender: No OFD packet to send [01:06:44]OFD Sender: No OFD packet to send [01:06:49]OFD Sender: No OFD packet to send [01:06:54]OFD Sender: No OFD packet to send [01:06:59]OFD Sender: No OFD packet to send [01:07:01]accept exits with 7 [01:07:01]New connection [01:07:01]New thread 3067252068 created [01:07:01]Thread 3067108708 joined [01:07:01]Waiting for new connection... [01:07:01] Sock 7.Parse request [01:07:01]Sock 7.Check first char [01:07:01]Sock 7.First char is OK [01:07:01]request: POST /json_proto HTTP/1.0 [01:07:01]Method: POST [01:07:01]URL: /json_proto [01:07:01]Method is POST - this is cgi request [01:07:01]url: /json_proto [01:07:01]query_string will be loaded in cgi processing [01:07:01]execute_cgi json_proto POST (null) [01:07:01]execute_cgi path=json_proto method=POST [01:07:01]POST find Content-Length [01:07:01]Host: 172.17.44.4:8080 [01:07:01]Content-Length: 632 [01:07:01]Content-Type: application/json [01:07:01] [01:07:01]POST finish read [01:07:01]Found Content-Length = 632 [01:07:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)141046", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.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" ] } } [01:07:01]execute_script... [01:07: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)141046", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.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" ] } } [01:07:01]POST & json_proto [01:07:01]process_json_proto [01:07:01]json parsed OK: [01:07:01]protocol is kg_v1.0 [01:07:01]action value=close_receipt [01:07:01]process_action close_receipt [01:07:01]cmd_close_receipt [01:07:01]MH_GetDate [01:07:01]Write to MH i2c: F0 00 00 78 1A 81 [01:07:01]Write i2c OK [01:07:01]MH_I2C_Read... [01:07:01]Read from MH i2c: F0 [01:07:01]MH_I2C_Read... [01:07:01]Read from MH i2c: F0 09 00 [01:07:01]MH_I2C_Read... [01:07:01]Read from MH i2c: F0 09 00 78 1A 00 B7 AD 46 66 6C E9 28 66 7D [01:07:01]GetLastDocTimeStamp 1715907703 [01:07:01]current date 1715908023 [01:07:01]FM_GetShiftState [01:07:01]SAM_PROTO_GetShiftState [01:07:01]wFMCommunicate request_size=4 [01:07:01]MH_SAM_APDU [01:07:01]CAPDU: 80 13 01 00 [01:07:01]Write to MH i2c: E2 08 00 79 1A 80 13 01 00 00 00 00 00 10 [01:07:01]Write i2c OK [01:07:01]MH_I2C_Read... [01:07:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:01]Read from MH i2c: E2 [01:07:01]MH_I2C_Read... [01:07:01]Read from MH i2c: E2 0E 00 [01:07:01]MH_I2C_Read... [01:07:01]Read from MH i2c: E2 0E 00 79 1A 00 09 00 01 A3 A0 46 66 00 00 00 00 90 00 0B [01:07:01]RAPDU: 09 00 01 A3 A0 46 66 00 00 00 00 90 00 [01:07:01]wFMCommunicate OK [01:07:01]SAM_PROTO_GetShiftState done [01:07:01]FM_GetShiftState done [01:07:01]opened in 1715904675 [01:07:01]opened+sec_in_day 1715991075 [01:07:01]quantity*price = 10000 [01:07:01]sum+1 = 10001 [01:07:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 135 "Партнер Нефть" Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 СНО: Общий режим Чек 4 17.05.2024 01:07 Смена: 45 ФФД: 1.0 ЗНМ: 0300000237 РНМ: 0000000000154221 Версия ККМ: v1.0 ФМ: 0000000000963259 ФД: 5069 ФПД: 68908863400535 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T010703&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5069&fm=68908863400535&tin=02508201610067®Number=0000000000154221&sum=10000 0 [01:07:02]StoreToDocumentArchive [01:07:02]shift 45 fd 5069 [01:07:02]save to /storage/0045/doc_00005069 [01:07:02]save last doc name /storage/0045/doc_00005069 to /storage/kkm_last_doc_name [01:07:02]save OK [01:07:02]Clear old archive folders... [01:07:02]ProcessDocumentItem done err = 0, tmpTLVsize=269 [01:07:02]tlvbuf is 011A2270 [01:07:02]SAM_PROTO_ClearQueue [01:07:02]wFMCommunicate request_size=4 [01:07:02]MH_SAM_APDU [01:07:02]CAPDU: 80 09 00 00 [01:07:02]Write to MH i2c: E2 08 00 86 1A 80 09 00 00 00 00 00 00 12 [01:07:02]Write i2c OK [01:07:02]MH_I2C_Read... [01:07:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:07:02]Read from MH i2c: E2 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 03 00 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 03 00 86 1A 00 90 00 14 [01:07:02]RAPDU: 90 00 [01:07:02]wFMCommunicate OK [01:07:02]SAM_PROTO_ClearQueue done [01:07:02]KKMCreateOFDPacket [01:07:02]OFDProtocolAddRootSTLVToBuf [01:07:02]FM_MakeSignedData [01:07:02]FM_MakeSignedData [01:07:02]SAM_PROTO_SignData [01:07:02]wFMCommunicate request_size=4 [01:07:02]MH_SAM_APDU [01:07:02]CAPDU: 80 0D 01 02 [01:07:02]Write to MH i2c: E2 08 00 87 1A 80 0D 01 02 00 00 00 00 1A [01:07:02]Write i2c OK [01:07:02]MH_I2C_Read... [01:07:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:07:02]Read from MH i2c: E2 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 03 00 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 03 00 87 1A 00 90 00 15 [01:07:02]RAPDU: 90 00 [01:07:02]wFMCommunicate OK [01:07:02]wFMCommunicate request_size=255 [01:07:02]MH_SAM_APDU [01:07:02]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 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 04 00 00 00 F4 03 04 00 B7 AD 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 [01:07:02]Write to MH i2c: E2 02 01 88 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 04 00 00 00 F4 03 04 00 B7 AD 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 00 00 6A [01:07:02]Write i2c OK [01:07:02]MH_I2C_Read... [01:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:02]Read from MH i2c: E2 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 03 00 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 03 00 88 1A 00 90 00 16 [01:07:02]RAPDU: 90 00 [01:07:02]wFMCommunicate OK [01:07:02]wFMCommunicate request_size=28 [01:07:02]MH_SAM_APDU [01:07:02]CAPDU: 80 0D 02 02 17 36 33 32 35 39 10 04 04 00 CD 13 00 00 35 04 06 00 3E AC 18 53 2A 57 [01:07:02]Write to MH i2c: E2 1F 00 89 1A 80 0D 02 02 17 00 36 33 32 35 39 10 04 04 00 CD 13 00 00 35 04 06 00 3E AC 18 53 2A 57 00 00 61 [01:07:02]Write i2c OK [01:07:02]MH_I2C_Read... [01:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:07:02]Read from MH i2c: E2 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 03 00 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 03 00 89 1A 00 90 00 17 [01:07:02]RAPDU: 90 00 [01:07:02]wFMCommunicate OK [01:07:02]wFMCommunicate request_size=4 [01:07:02]MH_SAM_APDU [01:07:02]CAPDU: 80 0D 03 02 [01:07:02]Write to MH i2c: E2 08 00 8A 1A 80 0D 03 02 00 00 00 00 1F [01:07:02]Write i2c OK [01:07:02]MH_I2C_Read... [01:07:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:07:02]Read from MH i2c: E2 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 0B 00 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 0B 00 8A 1A 00 49 7C 38 1A 17 2C 23 26 90 00 C3 [01:07:02]RAPDU: 49 7C 38 1A 17 2C 23 26 90 00 [01:07:02]wFMCommunicate OK [01:07:02]SAM_PROTO_SignData done [01:07:02]FM_MakeSignedData done [01:07:02]CreateOFDProtocolMessage [01:07:02]wFMCommunicate request_size=4 [01:07:02]MH_SAM_APDU [01:07:02]CAPDU: 80 11 00 00 [01:07:02]Write to MH i2c: E2 08 00 8B 1A 80 11 00 00 00 00 00 00 1F [01:07:02]Write i2c OK [01:07:02]MH_I2C_Read... [01:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:02]Read from MH i2c: E2 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 17 00 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: E2 17 00 8B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 74 [01:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [01:07:02]wFMCommunicate OK [01:07:02]CreateOFDProtocolMessage done [01:07:02]OFDSenderStorePacket 5069 [01:07:02]StoreOFDPacket docnum=5069 [01:07:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 21 01 00 00 0C E0 19 01 C7 90 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 04 00 00 00 F4 03 04 00 B7 AD 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CD 13 00 00 35 04 06 00 3E AC 18 53 2A 57 49 7C 38 1A 17 2C 23 26 [01:07:02]CheckFolder [01:07:02]dirname=/storage/ofd_packets [01:07:02]CheckFolder done [01:07:02]ProducePacketName [01:07:02]name=ofd_packets/00005069 [01:07:02]NVStorageSaveData ofd_packets/00005069 [01:07:02]File name is /storage/ofd_packets/00005069 [01:07:02]Write 319 bytes [01:07:02]NVStorageSaveData done [01:07:02]OFDSenderStorePacket done [01:07:02]KKMCreateOFDPacket done [01:07:02]NVStorageSaveData kkm_last_timestamp [01:07:02]File name is /storage/kkm_last_timestamp [01:07:02]Write 4 bytes [01:07:02]NVStorageSaveData done [01:07:02]ExternCall_PrintAddStr [01:07:02]wPrintStart [01:07:02]Write to MH i2c: 01 00 00 8C 1A A6 [01:07:02]Write i2c OK [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: 01 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: 01 07 00 [01:07:02]MH_I2C_Read... [01:07:02]Read from MH i2c: 01 07 00 8C 1A 00 00 00 00 00 FF 0F BB [01:07:02]RasterBufferAndPrint [01:07:02]line Счет N : (3)141046 [01:07:02]line ИНН: 02508201610067 [01:07:02]line Контрольно-Кассовый Чек [01:07:02]line ПРОДАЖА [01:07:02]line Товар: 4700000160358 [01:07:02]line Вода Легенда 1л [01:07:02]line 2.000 * 50.00 [01:07:02]line = 100.00 [01:07:02]line НДС 12% НСП 1% [01:07:02]line > о реализуемом товаре [01:07:02]line ИТОГО: 100.00 [01:07:02]line НСП 1% : 0.88 [01:07:02]line НДС 12% : 10.62 [01:07:02]line Наличными: 100.00 [01:07:02]line Безнал.: 0.00 [01:07:02]line Место: АЗС № 135 "Партнер Нефть" [01:07:02]line Адрес: 720001, с. Учар, Толойкон а/а, ул. Мамырова б/н, 40.502451,72.781041 [01:07:02]line СНО: Общий режим [01:07:02]line Чек 4 17.05.2024 01:07 [01:07:02]line Смена: 45 ФФД: 1.0 [01:07:02]line ЗНМ: 0300000237 [01:07:02]line РНМ: 0000000000154221 [01:07:02]line Версия ККМ: v1.0 [01:07:02]line ФМ: 0000000000963259 [01:07:02]line ФД: 5069 [01:07:02]line ФПД: 68908863400535 [01:07:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240517T010703&type=1&operation_type=1&fn_number=0000000000963259&fd_number=5069&fm=68908863400535&tin=02508201610067®Number=0000000000154221&sum=10000 [01:07:03]OFD Sender: Processing packet 5069 [packets to send 4, broken 3] [01:07:03]ProducePacketName [01:07:03]name=ofd_packets/00005069 [01:07:03]OFD Sender: To server: pG, [01:07:03]CommunicateWithHost lk.salyk.kg:30040 [01:07:03]ConnectInit lk.salyk.kg [01:07:03]line 0 [01:07:03]written 0, free lines is 4095 [01:07:03]Write to MH i2c: 01 00 00 B4 1A CE [01:07:03]Write i2c OK [01:07:03]MH_I2C_Read... [01:07:03]Read from MH i2c: 01 [01:07:03]MH_I2C_Read... [01:07:03]Read from MH i2c: 01 07 00 [01:07:03]MH_I2C_Read... [01:07:03]Read from MH i2c: 01 07 00 B4 1A 00 00 00 00 00 95 0C 76 [01:07:03]RasterBufferAndPrint [01:07:03]line [01:07:03]line [01:07:03]line [01:07:03]line [01:07:03]line [01:07:03]written 0, free lines is 3225 [01:07:03]MH_Cut [01:07:03]Write to MH i2c: D1 01 00 BB 1A 01 A7 [01:07:03]Write i2c OK [01:07:03]MH_I2C_Read... [01:07:03]Read from MH i2c: D1 [01:07:03]MH_I2C_Read... [01:07:03]Read from MH i2c: D1 01 00 [01:07:03]MH_I2C_Read... [01:07:03]Read from MH i2c: D1 01 00 BB 1A 00 A6 [01:07:03]Write to MH i2c: 01 00 00 BC 1A D6 [01:07:03]Write i2c OK [01:07:03]MH_I2C_Read... [01:07:04]*** Cut start [01:07:04]*** Partial cut [01:07:04]*** CUTSNS_PIN = 1 [01:07:04]*** CUTSNS_PIN = 0 [01:07:04]*** Brake cut motor [01:07:05]Read from MH i2c: 01 [01:07:05]MH_I2C_Read... [01:07:05]*** Stop cut motor [01:07:05]Read from MH i2c: 01 07 00 [01:07:05]MH_I2C_Read... [01:07:05]*** Cut end [01:07:05]Read from MH i2c: 01 07 00 BC 1A 00 00 00 00 00 FF 0F EB [01:07:05]process_action close_receipt done [01:07:05]requested_data is exist [01:07:05]produce_requested_data [01:07:05]requested_item fm.sn is exist - process it [01:07:05]wFMCommunicate request_size=4 [01:07:05]MH_SAM_APDU [01:07:05]CAPDU: 80 11 00 00 [01:07:05]Write to MH i2c: E2 08 00 BD 1A 80 11 00 00 00 00 00 00 51 [01:07:05]Write i2c OK [01:07:05]MH_I2C_Read... [01:07:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:07:05]Read from MH i2c: E2 [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: E2 17 00 [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: E2 17 00 BD 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 A6 [01:07:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 90 00 [01:07:05]wFMCommunicate OK [01:07:05]requested_item fd.num is exist - process it [01:07:05]SAM_PROTO_GetFieldsCounters [01:07:05]wFMCommunicate request_size=4 [01:07:05]MH_SAM_APDU [01:07:05]CAPDU: 80 13 00 00 [01:07:05]Write to MH i2c: E2 08 00 BE 1A 80 13 00 00 00 00 00 00 54 [01:07:05]Write i2c OK [01:07:05]MH_I2C_Read... [01:07:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:07:05]Read from MH i2c: E2 [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: E2 62 00 [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: E2 62 00 BE 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 CD 13 00 00 0E 04 04 00 2D 00 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 86 [01:07:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 10 04 04 00 CD 13 00 00 0E 04 04 00 2D 00 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:07:05]wFMCommunicate OK [01:07:05]SAM_PROTO_GetFieldsCounters done [01:07:05]requested_item shift.num is exist - process it [01:07:05]requested_item shift.opened is exist - process it [01:07:05]req_shift_opened [01:07:05]FM_GetShiftState [01:07:05]SAM_PROTO_GetShiftState [01:07:05]wFMCommunicate request_size=4 [01:07:05]MH_SAM_APDU [01:07:05]CAPDU: 80 13 01 00 [01:07:05]Write to MH i2c: E2 08 00 BF 1A 80 13 01 00 00 00 00 00 56 [01:07:05]Write i2c OK [01:07:05]MH_I2C_Read... [01:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:07:05]Read from MH i2c: E2 [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: E2 0E 00 [01:07:05]MH_I2C_Read... [01:07:05]Read from MH i2c: E2 0E 00 BF 1A 00 09 00 01 A3 A0 46 66 00 00 00 00 90 00 51 [01:07:05]RAPDU: 09 00 01 A3 A0 46 66 00 00 00 00 90 00 [01:07:05]wFMCommunicate OK [01:07:05]SAM_PROTO_GetShiftState done [01:07:05]FM_GetShiftState done [01:07:05]req_shift_opened done [01:07:05]requested_item shift.open_date is exist - process it [01:07:05]req_shift_open_date [01:07:05]req_shift_open_date done [01:07:05]produce_requested_data done [01:07:05]produce_requested_data return {"fm.sn":"0000000000963259","fd.num":5069,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675} [01:07:05]process_action_free close_receipt [01:07:05]json_value_free [01:07:05]json_value_free done [01:07:05]process_json_proto returns [01:07:05]Send response to host [01:07:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000963259","fd.num":5069,"shift.num":45,"shift.opened":1,"shift.open_date":1715904675}}} [01:07:05]free response buf [01:07:05]execute_script done [01:07:05]execute_script returns [01:07:05]free content buf [01:07:05]Sock 7.Close socket [01:07:05]Sock 7.Thread stoped [01:09:16]ConnectInit Can't connect to host [01:09:16]CommunicateWithHost connect error [01:09:16]CommunicateWithHost err = -1 [01:09:16]OFD Sender: Server communicate error [01:09:21]OFD Sender: Processing packet 5069 [packets to send 4, broken 3] [01:09:21]ProducePacketName [01:09:21]name=ofd_packets/00005069 [01:09:21]OFD Sender: To server: pG, [01:09:21]CommunicateWithHost lk.salyk.kg:30040 [01:09:21]ConnectInit lk.salyk.kg [01:09:21]Connected sock=7 [01:09:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 21 01 00 00 0C E0 19 01 C7 90 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 D0 07 00 00 00 00 00 37 04 06 00 88 13 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 04 00 00 00 F4 03 04 00 B7 AD 46 66 0E 04 04 00 2D 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 35 34 32 32 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CD 13 00 00 35 04 06 00 3E AC 18 53 2A 57 49 7C 38 1A 17 2C 23 26 [01:09:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 4F 00 00 00 C7 93 47 00 41 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 33 32 35 39 10 04 04 00 CD 13 00 00 F4 03 04 00 04 5A 46 66 B6 04 01 00 00 8B 35 DC B1 FE E2 79 B3 [01:09:21]CommunicateWithHost err = 0 [01:09:21]CheckOFDResponse [01:09:21]1017 (14) - 77093643461234 [01:09:21]1041 (16) - 0000000000963259 [01:09:21]1040 (4) - 5069 [01:09:21]1012 (4) - 16.05.2024 19:09 [01:09:21]1206 (1) - 0 [01:09:21]OFD Sender: Remove packet 5069 [01:09:21]ProducePacketName [01:09:21]name=ofd_packets/00005069 [01:09:21]NVStorageDeleteData [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]OFD Sender: No OFD packet to send [01:09:37]OFD Sender: No OFD packet to send [01:09:42]OFD Sender: No OFD packet to send [01:09:47]OFD Sender: No OFD packet to send [01:09:52]OFD Sender: No OFD packet to send [01:09:57]OFD Sender: No OFD packet to send [01:10:02]OFD Sender: No OFD packet to send [01:10:07]OFD Sender: No OFD packet to send [01:10:12]OFD Sender: No OFD packet to send [01:10:17]OFD Sender: No OFD packet to send [01:10:22]OFD Sender: No OFD packet to send [01:10:27]OFD Sender: No OFD packet to send [01:10:32]OFD Sender: No OFD packet to send [01:10:37]OFD Sender: No OFD packet to send [01:10:42]OFD Sender: No OFD packet to send [01:10:47]OFD Sender: No OFD packet to send [01:10:52]OFD Sender: No OFD packet to send [01:10:57]OFD Sender: No OFD packet to send [01:11:02]OFD Sender: No OFD packet to send [01:11:07]OFD Sender: No OFD packet to send [01:11:12]OFD Sender: No OFD packet to send [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:02]OFD Sender: No OFD packet to send [01:12:07]OFD Sender: No OFD packet to send [01:12:12]OFD Sender: No OFD packet to send [01:12:17]OFD Sender: No OFD packet to send [01:12:22]OFD Sender: No OFD packet to send [01:12:27]OFD Sender: No OFD packet to send [01:12:32]OFD Sender: No OFD packet to send [01:12:37]OFD Sender: No OFD packet to send [01:12:42]OFD Sender: No OFD packet to send [01:12:47]OFD Sender: No OFD packet to send [01:12:52]OFD Sender: No OFD packet to send [01:12:57]OFD Sender: No OFD packet to send [01:13:02]OFD Sender: No OFD packet to send [01:13:07]OFD Sender: No OFD packet to send [01:13:12]OFD Sender: No OFD packet to send [01:13:17]OFD Sender: No OFD packet to send [01:13:22]OFD Sender: No OFD packet to send [01:13:27]OFD Sender: No OFD packet to send [01:13:32]OFD Sender: No OFD packet to send [01:13:37]OFD Sender: No OFD packet to send [01:13:42]OFD Sender: No OFD packet to send [01:13:47]OFD Sender: No OFD packet to send [01:13:52]OFD Sender: No OFD packet to send [01:13:57]OFD Sender: No OFD packet to send [01:14:02]OFD Sender: No OFD packet to send [01:14:07]OFD Sender: No OFD packet to send [01:14:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:47]OFD Sender: No OFD packet to send [01:18:52]OFD Sender: No OFD packet to send [01:18:57]OFD Sender: No OFD packet to send [01:19:02]OFD Sender: No OFD packet to send [01:19:07]OFD Sender: No OFD packet to send [01:19:12]OFD Sender: No OFD packet to send [01:19:17]OFD Sender: No OFD packet to send [01:19:22]OFD Sender: No OFD packet to send [01:19:27]OFD Sender: No OFD packet to send [01:19:32]OFD Sender: No OFD packet to send [01:19:37]OFD Sender: No OFD packet to send [01:19:42]OFD Sender: No OFD packet to send [01:19:47]OFD Sender: No OFD packet to send [01:19:52]OFD Sender: No OFD packet to send [01:19:57]OFD Sender: No OFD packet to send [01:20:02]OFD Sender: No OFD packet to send [01:20:07]OFD Sender: No OFD packet to send [01:20:12]OFD Sender: No OFD packet to send [01:20:17]OFD Sender: No OFD packet to send [01:20:22]OFD Sender: No OFD packet to send [01:20:27]OFD Sender: No OFD packet to send [01:20:32]OFD Sender: No OFD packet to send [01:20:37]OFD Sender: No OFD packet to send [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:52]OFD Sender: No OFD packet to send [01:23:57]OFD Sender: No OFD packet to send [01:24:02]OFD Sender: No OFD packet to send [01:24:07]OFD Sender: No OFD packet to send [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:37]OFD Sender: No OFD packet to send [01:25:42]OFD Sender: No OFD packet to send [01:25:47]OFD Sender: No OFD packet to send [01:25:52]OFD Sender: No OFD packet to send [01:25:57]OFD Sender: No OFD packet to send [01:26:02]OFD Sender: No OFD packet to send [01:26:07]OFD Sender: No OFD packet to send [01:26:12]OFD Sender: No OFD packet to send [01:26:17]OFD Sender: No OFD packet to send [01:26:22]OFD Sender: No OFD packet to send [01:26:27]OFD Sender: No OFD packet to send [01:26:32]OFD Sender: No OFD packet to send [01:26:37]OFD Sender: No OFD packet to send [01:26:42]OFD Sender: No OFD packet to send [01:26:47]OFD Sender: No OFD packet to send [01:26:52]OFD Sender: No OFD packet to send [01:26:57]OFD Sender: No OFD packet to send [01:27:02]OFD Sender: No OFD packet to send [01:27:07]OFD Sender: No OFD packet to send [01:27:12]OFD Sender: No OFD packet to send [01:27:17]OFD Sender: No OFD packet to send [01:27:22]OFD Sender: No OFD packet to send [01:27:27]OFD Sender: No OFD packet to send [01:27:32]OFD Sender: No OFD packet to send [01:27:37]OFD Sender: No OFD packet to send [01:27:42]OFD Sender: No OFD packet to send [01:27:47]OFD Sender: No OFD packet to send [01:27:52]OFD Sender: No OFD packet to send [01:27:57]OFD Sender: No OFD packet to send [01:28:02]OFD Sender: No OFD packet to send [01:28:07]OFD Sender: No OFD packet to send [01:28:12]OFD Sender: No OFD packet to send [01:28:17]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:48]OFD Sender: No OFD packet to send [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:48]OFD Sender: No OFD packet to send [01:36:53]OFD Sender: No OFD packet to send [01:36:58]OFD Sender: No OFD packet to send [01:37:03]OFD Sender: No OFD packet to send [01:37:08]OFD Sender: No OFD packet to send [01:37:13]OFD Sender: No OFD packet to send [01:37:18]OFD Sender: No OFD packet to send [01:37:23]OFD Sender: No OFD packet to send [01:37:28]OFD Sender: No OFD packet to send [01:37:33]OFD Sender: No OFD packet to send [01:37:38]OFD Sender: No OFD packet to send [01:37:43]OFD Sender: No OFD packet to send [01:37:48]OFD Sender: No OFD packet to send [01:37:53]OFD Sender: No OFD packet to send [01:37:58]OFD Sender: No OFD packet to send [01:38:03]OFD Sender: No OFD packet to send [01:38:08]OFD Sender: No OFD packet to send [01:38:13]OFD Sender: No OFD packet to send [01:38:18]OFD Sender: No OFD packet to send [01:38:23]OFD Sender: No OFD packet to send [01:38:28]OFD Sender: No OFD packet to send [01:38:33]OFD Sender: No OFD packet to send [01:38:38]OFD Sender: No OFD packet to send [01:38:43]OFD Sender: No OFD packet to send [01:38:48]OFD Sender: No OFD packet to send [01:38:53]OFD Sender: No OFD packet to send [01:38:58]OFD Sender: No OFD packet to send [01:39:03]OFD Sender: No OFD packet to send [01:39:08]OFD Sender: No OFD packet to send [01:39:13]OFD Sender: No OFD packet to send [01:39:18]OFD Sender: No OFD packet to send [01:39:23]OFD Sender: No OFD packet to send [01:39:28]OFD Sender: No OFD packet to send [01:39:33]OFD Sender: No OFD packet to send [01:39:38]OFD Sender: No OFD packet to send [01:39:43]OFD Sender: No OFD packet to send [01:39:48]OFD Sender: No OFD packet to send [01:39:53]OFD Sender: No OFD packet to send [01:39:58]OFD Sender: No OFD packet to send [01:40:03]OFD Sender: No OFD packet to send [01:40:08]OFD Sender: No OFD packet to send [01:40:13]OFD Sender: No OFD packet to send [01:40:18]OFD Sender: No OFD packet to send [01:40:23]OFD Sender: No OFD packet to send [01:40:28]OFD Sender: No OFD packet to send [01:40:33]OFD Sender: No OFD packet to send [01:40:38]OFD Sender: No OFD packet to send [01:40:43]OFD Sender: No OFD packet to send [01:40:48]OFD Sender: No OFD packet to send [01:40:53]OFD Sender: No OFD packet to send [01:40:58]OFD Sender: No OFD packet to send [01:41:03]OFD Sender: No OFD packet to send [01:41:08]OFD Sender: No OFD packet to send [01:41:13]OFD Sender: No OFD packet to send [01:41:18]OFD Sender: No OFD packet to send [01:41:23]OFD Sender: No OFD packet to send [01:41:28]OFD Sender: No OFD packet to send [01:41:33]OFD Sender: No OFD packet to send [01:41:38]OFD Sender: No OFD packet to send [01:41:43]OFD Sender: No OFD packet to send [01:41:48]OFD Sender: No OFD packet to send [01:41:53]OFD Sender: No OFD packet to send [01:41:58]OFD Sender: No OFD packet to send [01:42:03]OFD Sender: No OFD packet to send [01:42:08]OFD Sender: No OFD packet to send [01:42:13]OFD Sender: No OFD packet to send [01:42:18]OFD Sender: No OFD packet to send [01:42:23]OFD Sender: No OFD packet to send [01:42:28]OFD Sender: No OFD packet to send [01:42:33]OFD Sender: No OFD packet to send [01:42:38]OFD Sender: No OFD packet to send [01:42:43]OFD Sender: No OFD packet to send [01:42:48]OFD Sender: No OFD packet to send [01:42:53]OFD Sender: No OFD packet to send [01:42:58]OFD Sender: No OFD packet to send [01:43:03]OFD Sender: No OFD packet to send [01:43:08]OFD Sender: No OFD packet to send [01:43:13]OFD Sender: No OFD packet to send [01:43:18]OFD Sender: No OFD packet to send [01:43:23]OFD Sender: No OFD packet to send [01:43:28]OFD Sender: No OFD packet to send [01:43:33]OFD Sender: No OFD packet to send [01:43:38]OFD Sender: No OFD packet to send [01:43:43]OFD Sender: No OFD packet to send [01:43:48]OFD Sender: No OFD packet to send [01:43:53]OFD Sender: No OFD packet to send [01:43:58]OFD Sender: No OFD packet to send [01:44:03]OFD Sender: No OFD packet to send [01:44:08]OFD Sender: No OFD packet to send [01:44:13]OFD Sender: No OFD packet to send [01:44:18]OFD Sender: No OFD packet to send [01:44:23]OFD Sender: No OFD packet to send [01:44:28]OFD Sender: No OFD packet to send [01:44:33]OFD Sender: No OFD packet to send [01:44:38]OFD Sender: No OFD packet to send [01:44:43]OFD Sender: No OFD packet to send [01:44:48]OFD Sender: No OFD packet to send [01:44:53]OFD Sender: No OFD packet to send [01:44:58]OFD Sender: No OFD packet to send [01:45:03]OFD Sender: No OFD packet to send [01:45:08]OFD Sender: No OFD packet to send [01:45:13]OFD Sender: No OFD packet to send [01:45:18]OFD Sender: No OFD packet to send [01:45:23]OFD Sender: No OFD packet to send [01:45:28]OFD Sender: No OFD packet to send [01:45:33]OFD Sender: No OFD packet to send [01:45:38]OFD Sender: No OFD packet to send [01:45:43]OFD Sender: No OFD packet to send [01:45:48]OFD Sender: No OFD packet to send [01:45:53]OFD Sender: No OFD packet to send [01:45:58]OFD Sender: No OFD packet to send [01:46:03]OFD Sender: No OFD packet to send [01:46:08]OFD Sender: No OFD packet to send [01:46:13]OFD Sender: No OFD packet to send [01:46:18]OFD Sender: No OFD packet to send [01:46:23]OFD Sender: No OFD packet to send [01:46:28]OFD Sender: No OFD packet to send [01:46:33]OFD Sender: No OFD packet to send [01:46:38]OFD Sender: No OFD packet to send [01:46:43]OFD Sender: No OFD packet to send [01:46:48]OFD Sender: No OFD packet to send [01:46:53]OFD Sender: No OFD packet to send [01:46:58]OFD Sender: No OFD packet to send [01:47:03]OFD Sender: No OFD packet to send [01:47:08]OFD Sender: No OFD packet to send [01:47:13]OFD Sender: No OFD packet to send [01:47:18]OFD Sender: No OFD packet to send [01:47:23]OFD Sender: No OFD packet to send [01:47:28]OFD Sender: No OFD packet to send [01:47:33]OFD Sender: No OFD packet to send [01:47:38]OFD Sender: No OFD packet to send [01:47:43]OFD Sender: No OFD packet to send [01:47:48]OFD Sender: No OFD packet to send [01:47:53]OFD Sender: No OFD packet to send [01:47:58]OFD Sender: No OFD packet to send [01:48:03]OFD Sender: No OFD packet to send [01:48:08]OFD Sender: No OFD packet to send [01:48:13]OFD Sender: No OFD packet to send [01:48:18]OFD Sender: No OFD packet to send [01:48:23]OFD Sender: No OFD packet to send [01:48:28]OFD Sender: No OFD packet to send [01:48:33]OFD Sender: No OFD packet to send [01:48:38]OFD Sender: No OFD packet to send [01:48:43]OFD Sender: No OFD packet to send [01:48:48]OFD Sender: No OFD packet to send [01:48:53]OFD Sender: No OFD packet to send [01:48:58]OFD Sender: No OFD packet to send [01:49:03]OFD Sender: No OFD packet to send [01:49:08]OFD Sender: No OFD packet to send [01:49:13]OFD Sender: No OFD packet to send [01:49:18]OFD Sender: No OFD packet to send [01:49:23]OFD Sender: No OFD packet to send [01:49:28]OFD Sender: No OFD packet to send [01:49:33]OFD Sender: No OFD packet to send [01:49:38]OFD Sender: No OFD packet to send [01:49:43]OFD Sender: No OFD packet to send [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58:19]OFD Sender: No OFD packet to send [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:44]OFD Sender: No OFD packet to send [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:59]OFD Sender: No OFD packet to send [02:05:04]OFD Sender: No OFD packet to send [02:05:09]OFD Sender: No OFD packet to send [02:05:14]OFD Sender: No OFD packet to send [02:05:19]OFD Sender: No OFD packet to send [02:05:24]OFD Sender: No OFD packet to send [02:05:29]OFD Sender: No OFD packet to send [02:05:34]OFD Sender: No OFD packet to send [02:05:39]OFD Sender: No OFD packet to send [02:05:44]OFD Sender: No OFD packet to send [02:05:49]OFD Sender: No OFD packet to send [02:05:54]OFD Sender: No OFD packet to send [02:05:59]OFD Sender: No OFD packet to send [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:24]OFD Sender: No OFD packet to send [02:08:29]OFD Sender: No OFD packet to send [02:08:34]OFD Sender: No OFD packet to send [02:08:39]OFD Sender: No OFD packet to send [02:08:44]OFD Sender: No OFD packet to send [02:08:49]OFD Sender: No OFD packet to send [02:08:54]OFD Sender: No OFD packet to send [02:08:59]OFD Sender: No OFD packet to send [02:09:04]OFD Sender: No OFD packet to send [02:09:09]OFD Sender: No OFD packet to send [02:09:14]OFD Sender: No OFD packet to send [02:09:19]OFD Sender: No OFD packet to send [02:09:24]OFD Sender: No OFD packet to send [02:09:29]OFD Sender: No OFD packet to send [02:09:34]OFD Sender: No OFD packet to send [02:09:39]OFD Sender: No OFD packet to send [02:09:44]OFD Sender: No OFD packet to send [02:09:49]OFD Sender: No OFD packet to send [02:09:54]OFD Sender: No OFD packet to send [02:09:59]OFD Sender: No OFD packet to send [02:10:04]OFD Sender: No OFD packet to send [02:10:09]OFD Sender: No OFD packet to send [02:10:14]OFD Sender: No OFD packet to send [02:10:19]OFD Sender: No OFD packet to send [02:10:24]OFD Sender: No OFD packet to send [02:10:29]OFD Sender: No OFD packet to send [02:10:34]OFD Sender: No OFD packet to send [02:10:39]OFD Sender: No OFD packet to send [02:10:44]OFD Sender: No OFD packet to send [02:10:49]OFD Sender: No OFD packet to send [02:10:54]OFD Sender: No OFD packet to send [02:10:59]OFD Sender: No OFD packet to send [02:11:04]OFD Sender: No OFD packet to send [02:11:09]OFD Sender: No OFD packet to send [02:11:14]OFD Sender: No OFD packet to send [02:11:19]OFD Sender: No OFD packet to send [02:11:24]OFD Sender: No OFD packet to send [02:11:29]OFD Sender: No OFD packet to send [02:11:34]OFD Sender: No OFD packet to send [02:11:39]OFD Sender: No OFD packet to send [02:11:44]OFD Sender: No OFD packet to send [02:11:49]OFD Sender: No OFD packet to send [02:11:54]OFD Sender: No OFD packet to send [02:11:59]OFD Sender: No OFD packet to send [02:12:04]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:20]OFD Sender: No OFD packet to send [02:23:25]OFD Sender: No OFD packet to send [02:23:30]OFD Sender: No OFD packet to send [02:23:35]OFD Sender: No OFD packet to send [02:23:40]OFD Sender: No OFD packet to send [02:23:45]OFD Sender: No OFD packet to send [02:23:50]OFD Sender: No OFD packet to send [02:23:55]OFD Sender: No OFD packet to send [02:24:00]OFD Sender: No OFD packet to send [02:24:05]OFD Sender: No OFD packet to send [02:24:10]OFD Sender: No OFD packet to send [02:24:15]OFD Sender: No OFD packet to send [02:24:20]OFD Sender: No OFD packet to send [02:24:25]OFD Sender: No OFD packet to send [02:24:30]OFD Sender: No OFD packet to send [02:24:35]OFD Sender: No OFD packet to send [02:24:40]OFD Sender: No OFD packet to send [02:24:45]OFD Sender: No OFD packet to send [02:24:50]OFD Sender: No OFD packet to send [02:24:55]OFD Sender: No OFD packet to send [02:25:00]OFD Sender: No OFD packet to send [02:25:05]OFD Sender: No OFD packet to send [02:25:10]OFD Sender: No OFD packet to send [02:25:15]OFD Sender: No OFD packet to send [02:25:20]OFD Sender: No OFD packet to send [02:25:25]OFD Sender: No OFD packet to send [02:25:30]OFD Sender: No OFD packet to send [02:25:35]OFD Sender: No OFD packet to send [02:25:40]OFD Sender: No OFD packet to send [02:25:45]OFD Sender: No OFD packet to send [02:25:50]OFD Sender: No OFD packet to send [02:25:55]OFD Sender: No OFD packet to send [02:26:00]OFD Sender: No OFD packet to send [02:26:05]OFD Sender: No OFD packet to send [02:26:10]OFD Sender: No OFD packet to send [02:26:15]OFD Sender: No OFD packet to send [02:26:20]OFD Sender: No OFD packet to send [02:26:25]OFD Sender: No OFD packet to send [02:26:30]OFD Sender: No OFD packet to send [02:26:35]OFD Sender: No OFD packet to send [02:26:40]OFD Sender: No OFD packet to send [02:26:45]OFD Sender: No OFD packet to send [02:26:50]OFD Sender: No OFD packet to send [02:26:55]OFD Sender: No OFD packet to send [02:27:00]OFD Sender: No OFD packet to send [02:27:05]OFD Sender: No OFD packet to send [02:27:10]OFD Sender: No OFD packet to send [02:27:15]OFD Sender: No OFD packet to send [02:27:20]OFD Sender: No OFD packet to send [02:27:25]OFD Sender: No OFD packet to send [02:27:30]OFD Sender: No OFD packet to send [02:27:35]OFD Sender: No OFD packet to send [02:27:40]OFD Sender: No OFD packet to send [02:27:45]OFD Sender: No OFD packet to send [02:27:50]OFD Sender: No OFD packet to send [02:27:55]OFD Sender: No OFD packet to send [02:28:00]OFD Sender: No OFD packet to send [02:28:05]OFD Sender: No OFD packet to send [02:28:10]OFD Sender: No OFD packet to send [02:28:15]OFD Sender: No OFD packet to send [02:28:20]OFD Sender: No OFD packet to send [02:28:25]OFD Sender: No OFD packet to send [02:28:30]OFD Sender: No OFD packet to send [02:28:35]OFD Sender: No OFD packet to send [02:28:40]OFD Sender: No OFD packet to send [02:28:45]OFD Sender: No OFD packet to send [02:28:50]OFD Sender: No OFD packet to send [02:28:55]OFD Sender: No OFD packet to send [02:29:00]OFD Sender: No OFD packet to send [02:29:05]OFD Sender: No OFD packet to send [02:29:10]OFD Sender: No OFD packet to send [02:29:15]OFD Sender: No OFD packet to send [02:29:20]OFD Sender: No OFD packet to send [02:29:25]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:15]OFD Sender: No OFD packet to send [02:33:20]OFD Sender: No OFD packet to send [02:33:25]OFD Sender: No OFD packet to send [02:33:30]OFD Sender: No OFD packet to send [02:33:35]OFD Sender: No OFD packet to send [02:33:40]OFD Sender: No OFD packet to send [02:33:45]OFD Sender: No OFD packet to send [02:33:50]OFD Sender: No OFD packet to send [02:33:55]OFD Sender: No OFD packet to send [02:34:00]OFD Sender: No OFD packet to send [02:34: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:16]OFD Sender: No OFD packet to send [02:41:21]OFD Sender: No OFD packet to send [02:41:26]OFD Sender: No OFD packet to send [02:41:31]OFD Sender: No OFD packet to send [02:41:36]OFD Sender: No OFD packet to send [02:41:41]OFD Sender: No OFD packet to send [02:41:46]OFD Sender: No OFD packet to send [02:41:51]OFD Sender: No OFD packet to send [02:41:56]OFD Sender: No OFD packet to send [02:42:01]OFD Sender: No OFD packet to send [02:42:06]OFD Sender: No OFD packet to send [02:42:11]OFD Sender: No OFD packet to send [02:42:16]OFD Sender: No OFD packet to send [02:42:21]OFD Sender: No OFD packet to send [02:42:26]OFD Sender: No OFD packet to send [02:42:31]OFD Sender: No OFD packet to send [02:42:36]OFD Sender: No OFD packet to send [02:42:41]OFD Sender: No OFD packet to send [02:42:46]OFD Sender: No OFD packet to send [02:42:51]OFD Sender: No OFD packet to send [02:42:56]OFD Sender: No OFD packet to send [02:43:01]OFD Sender: No OFD packet to send [02:43:06]OFD Sender: No OFD packet to send [02:43:11]OFD Sender: No OFD packet to send [02:43:16]OFD Sender: No OFD packet to send [02:43:21]OFD Sender: No OFD packet to send [02:43:26]OFD Sender: No OFD packet to send [02:43:31]OFD Sender: No OFD packet to send [02:43:36]OFD Sender: No OFD packet to send [02:43:41]OFD Sender: No OFD packet to send [02:43:46]OFD Sender: No OFD packet to send [02:43:51]OFD Sender: No OFD packet to send [02:43:56]OFD Sender: No OFD packet to send [02:44:01]OFD Sender: No OFD packet to send [02:44:06]OFD Sender: No OFD packet to send [02:44:11]OFD Sender: No OFD packet to send [02:44:16]OFD Sender: No OFD packet to send [02:44:21]OFD Sender: No OFD packet to send [02:44:26]OFD Sender: No OFD packet to send [02:44:31]OFD Sender: No OFD packet to send [02:44:36]OFD Sender: No OFD packet to send [02:44:41]OFD Sender: No OFD packet to send [02:44:46]OFD Sender: No OFD packet to send [02:44:51]OFD Sender: No OFD packet to send [02:44:56]OFD Sender: No OFD packet to send [02:45:01]OFD Sender: No OFD packet to send [02:45:06]OFD Sender: No OFD packet to send [02:45:11]OFD Sender: No OFD packet to send [02:45:16]OFD Sender: No OFD packet to send [02:45:21]OFD Sender: No OFD packet to send [02:45:26]OFD Sender: No OFD packet to send [02:45:31]OFD Sender: No OFD packet to send [02:45:36]OFD Sender: No OFD packet to send [02:45:41]OFD Sender: No OFD packet to send [02:45:46]OFD Sender: No OFD packet to send [02:45:51]OFD Sender: No OFD packet to send [02:45:56]OFD Sender: No OFD packet to send [02:46:01]OFD Sender: No OFD packet to send [02:46:06]OFD Sender: No OFD packet to send [02:46:11]OFD Sender: No OFD packet to send [02:46:16]OFD Sender: No OFD packet to send [02:46:21]OFD Sender: No OFD packet to send [02:46:26]OFD Sender: No OFD packet to send [02:46:31]OFD Sender: No OFD packet to send [02:46:36]OFD Sender: No OFD packet to send [02:46:41]OFD Sender: No OFD packet to send [02:46:46]OFD Sender: No OFD packet to send [02:46:51]OFD Sender: No OFD packet to send [02:46:56]OFD Sender: No OFD packet to send [02:47:01]OFD Sender: No OFD packet to send [02:47:06]OFD Sender: No OFD packet to send [02:47:11]OFD Sender: No OFD packet to send [02:47:16]OFD Sender: No OFD packet to send [02:47:21]OFD Sender: No OFD packet to send [02:47:26]OFD Sender: No OFD packet to send [02:47:31]OFD Sender: No OFD packet to send [02:47:36]OFD Sender: No OFD packet to send [02:47:41]OFD Sender: No OFD packet to send [02:47:46]OFD Sender: No OFD packet to send [02:47:51]OFD Sender: No OFD packet to send [02:47:56]OFD Sender: No OFD packet to send [02:48:01]OFD Sender: No OFD packet to send [02:48:06]OFD Sender: No OFD packet to send [02:48:11]OFD Sender: No OFD packet to send [02:48:16]OFD Sender: No OFD packet to send [02:48:21]OFD Sender: No OFD packet to send [02:48:26]OFD Sender: No OFD packet to send [02:48:31]OFD Sender: No OFD packet to send [02:48:36]OFD Sender: No OFD packet to send [02:48:41]OFD Sender: No OFD packet to send [02:48:46]OFD Sender: No OFD packet to send [02:48:51]OFD Sender: No OFD packet to send [02:48:56]OFD Sender: No OFD packet to send [02:49:01]OFD Sender: No OFD packet to send [02:49:06]OFD Sender: No OFD packet to send [02:49:11]OFD Sender: No OFD packet to send [02:49:16]OFD Sender: No OFD packet to send [02:49:21]OFD Sender: No OFD packet to send [02:49:26]OFD Sender: No OFD packet to send [02:49:31]OFD Sender: No OFD packet to send [02:49:36]OFD Sender: No OFD packet to send [02:49:41]OFD Sender: No OFD packet to send [02:49:46]OFD Sender: No OFD packet to send [02:49:51]OFD Sender: No OFD packet to send [02:49:56]OFD Sender: No OFD packet to send [02:50:01]OFD Sender: No OFD packet to send [02:50:06]OFD Sender: No OFD packet to send [02:50:11]OFD Sender: No OFD packet to send [02:50:16]OFD Sender: No OFD packet to send [02:50:21]OFD Sender: No OFD packet to send [02:50:26]OFD Sender: No OFD packet to send [02:50:31]OFD Sender: No OFD packet to send [02:50:36]OFD Sender: No OFD packet to send [02:50:41]OFD Sender: No OFD packet to send [02:50:46]OFD Sender: No OFD packet to send [02:50:51]OFD Sender: No OFD packet to send [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:11]OFD Sender: No OFD packet to send [02:52:16]OFD Sender: No OFD packet to send [02:52:21]OFD Sender: No OFD packet to send [02:52:26]OFD Sender: No OFD packet to send [02:52:31]OFD Sender: No OFD packet to send [02:52:36]OFD Sender: No OFD packet to send [02:52:41]OFD Sender: No OFD packet to send [02:52:46]OFD Sender: No OFD packet to send [02:52:51]OFD Sender: No OFD packet to send [02:52:56]OFD Sender: No OFD packet to send [02:53:01]OFD Sender: No OFD packet to send [02:53:06]OFD Sender: No OFD packet to send [02:53:11]OFD Sender: No OFD packet to send [02:53:16]OFD Sender: No OFD packet to send [02:53:21]OFD Sender: No OFD packet to send [02:53:26]OFD Sender: No OFD packet to send [02:53:31]OFD Sender: No OFD packet to send [02:53:36]OFD Sender: No OFD packet to send [02:53:41]OFD Sender: No OFD packet to send [02:53:46]OFD Sender: No OFD packet to send [02:53:51]OFD Sender: No OFD packet to send [02:53:56]OFD Sender: No OFD packet to send [02:54:01]OFD Sender: No OFD packet to send [02:54:06]OFD Sender: No OFD packet to send [02:54:11]OFD Sender: No OFD packet to send [02:54:16]OFD Sender: No OFD packet to send [02:54:21]OFD Sender: No OFD packet to send [02:54:26]OFD Sender: No OFD packet to send [02:54:31]OFD Sender: No OFD packet to send [02:54:36]OFD Sender: No OFD packet to send [02:54:41]OFD Sender: No OFD packet to send [02:54:46]OFD Sender: No OFD packet to send [02:54:51]OFD Sender: No OFD packet to send [02:54:56]OFD Sender: No OFD packet to send [02:55:01]OFD Sender: No OFD packet to send [02:55:06]OFD Sender: No OFD packet to send [02:55:11]OFD Sender: No OFD packet to send [02:55:16]OFD Sender: No OFD packet to send [02:55:21]OFD Sender: No OFD packet to send [02:55:26]OFD Sender: No OFD packet to send [02:55:31]OFD Sender: No OFD packet to send [02:55:36]OFD Sender: No OFD packet to send [02:55:41]OFD Sender: No OFD packet to send [02:55:46]OFD Sender: No OFD packet to send [02:55:51]OFD Sender: No OFD packet to send [02:55:56]OFD Sender: No OFD packet to send [02:56: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 [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